1 2009-12-24 Eric Blake <ebb9@byu.net>
3 build: pull in conditional headers during GNULIB_POSIXCHECK
4 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
5 definitions from any conditionally-included headers.
6 * lib/stdlib.in.h (includes): Likewise.
7 * lib/unistd.in.h (includes): Likewise.
9 2009-12-24 Bruno Haible <bruno@clisp.org>
11 * tests/test-argv-iter.c: Include header file being tested immediately
13 * tests/test-base64.c: Likewise.
14 * tests/test-flock.c: Likewise.
15 * tests/test-fsync.c: Likewise.
16 * tests/test-getdate.c: Likewise.
17 * tests/test-getndelim2.c: Likewise.
18 * tests/test-isfinite.c: Likewise.
19 * tests/test-isinf.c: Likewise.
20 * tests/test-strerror.c: Likewise.
21 * tests/test-strsignal.c: Likewise.
23 2009-12-23 Eric Blake <ebb9@byu.net>
25 unistd: work around cygwin bug
26 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
28 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30 2009-12-23 Bruno Haible <bruno@clisp.org>
32 localename: More tests.
33 * tests/test-localename.c (SIZEOF): New macro.
34 (categories): New variable.
35 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36 test_locale_name_default): Add test w.r.t. thread locale.
37 (test_locale_name_thread): New function.
40 localename: Make aware of thread locale.
41 * lib/localename.h (gl_locale_name_thread): New declaration.
42 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
43 behaviour with respect to thread locale.
44 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
45 <langinfo.h>, glthread/lock.h.
46 (SIZE_BITS): New macro.
47 (string_hash): New function.
48 (struct hash_node): New type.
49 (HASH_TABLE_SIZE): New macro.
50 (struniq_hash_table, struniq_lock): New variables.
51 (struniq): New function.
52 (gl_locale_name_thread): New function.
53 (gl_locale_name): Invoke it.
54 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
55 * modules/localename (Depends-on): Add lock.
56 Reported by Mike Gran <spk121@yahoo.com>.
58 2009-12-23 Eric Blake <ebb9@byu.net>
61 * modules/va-args: New file.
62 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
63 * MODULES.html.sh (Core language properties): Mention it.
65 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
66 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
67 named alias for __attribute__((__unused__)).
68 * lib/chown.c: Update client.
69 * lib/fchmodat.c: Likewise.
70 * lib/fts.c: Likewise.
71 * lib/getdate.y: Likewise.
72 * lib/getgroups.c: Likewise.
73 * lib/getopt.c: Likewise.
74 * lib/getugroups.c: Likewise.
75 * lib/mkdir.c: Likewise.
76 * lib/mkfifo.c: Likewise.
77 * lib/mkfifoat.c: Likewise.
78 * lib/mknod.c: Likewise.
79 * lib/mknodat.c: Likewise.
80 * lib/readlink.c: Likewise.
81 * lib/se-context.in.h: Likewise.
82 * lib/se-selinux.in.h: Likewise.
83 * lib/sockets.c: Likewise.
84 * lib/symlink.c: Likewise.
85 * lib/symlinkat.c: Likewise.
86 * lib/unicodeio.c: Likewise.
87 * lib/unistr.h: Likewise.
88 * tests/test-areadlink.c: Likewise.
89 * tests/test-areadlinkat.c: Likewise.
90 * tests/test-filenamecat.c: Likewise.
91 * tests/test-fseeko.c: Likewise.
92 * tests/test-ftello.c: Likewise.
93 * tests/test-getdate.c: Likewise.
94 * tests/test-getgroups.c: Likewise.
95 * tests/test-gethostname.c: Likewise.
96 * tests/test-quotearg.c: Likewise.
97 * tests/test-version-etc.c: Likewise.
98 * tests/test-xalloc-die.c: Likewise.
99 * tests/test-xfprintf-posix.c: Likewise.
100 * tests/test-xprintf-posix.c: Likewise.
101 * tests/test-xvasprintf.c: Likewise.
103 tests: avoid compiler warnings
104 * tests/test-fcntl.c (main): Delete unused parameters.
105 * tests/test-freopen-safer.c (main): Likewise.
106 * tests/test-xalloc-die.c (main): Mark unused parameters.
107 * tests/test-fseeko.c (main): Likewise.
108 * tests/test-ftello.c (main): Likewise.
109 * tests/test-nanosleep.c (main): Avoid declaration warning.
110 * tests/test-sleep.c (main): Likewise.
111 * tests/test-unsetenv.c (main): Silence warning about string
113 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
115 2009-12-23 Bruno Haible <bruno@clisp.org>
117 * tests/test-localename.c (test_locale_name): New function, extracted
118 from main. Also test mixed situations.
119 (test_locale_name_posix, test_locale_name_environ,
120 test_locale_name_default): New functions.
121 (main): Invoke them all.
122 * modules/localename-tests (configure.ac): Test for newlocale.
124 2009-12-23 Bruno Haible <bruno@clisp.org>
126 unistd: Ensure getcwd gets declared before being overridden.
127 * lib/unistd.in.h: Conditionally include <io.h>.
129 2009-12-22 Bruno Haible <bruno@clisp.org>
131 wchar: Diagnose broken combination of glibc and gcc versions and flags.
132 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
133 (gl_WCHAR_H): Invoke it.
134 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
135 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
136 Reported by Karl Berry <karl@freefriends.org>.
138 2009-12-22 Eric Blake <ebb9@byu.net>
140 math, unistd: avoid redundant includes
141 * lib/math.in.h (isnan): No need to re-include <math.h>.
142 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
144 getsubopt: work around cygwin bug
145 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
146 avoid conflicting with system getsubopt.
147 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
150 getopt: synchronize from glibc
151 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
152 parameter order. Adjust all callers.
153 (_getopt_internal_r, main): Adjust quoting in error messages.
154 Drop considerations for outdated POSIX 1003.2 error message.
155 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
157 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
159 test-getopt: test stderr behavior
160 * modules/getopt-posix-tests (Depends-on): Add dup2.
161 * tests/test-getopt.c (ASSERT): Avoid stderr.
162 (main): Move stderr to a temporary file.
163 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
164 Instead, add parameter to inform caller if output occurred.
165 (test_getopt): Adjust all existing tests to expect silence, and
166 add new tests of leading ":".
167 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
168 glibc shortcomings with leading "-:" or "+:" in optstring.
169 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
171 * doc/posix-functions/getopt.texi (getopt): Likewise.
173 test-getopt: enhance test
174 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
176 * tests/test-getopt.c (OPTIND_MIN): Move...
177 * tests/test-getopt.h (OPTIND_MIN): ...here.
178 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
179 Require that optind=0 works, since modern BSD supports it in
180 addition to optreset, and since coreutils expects it.
181 (test_getopt_long_only): New test.
182 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
183 glibc shortcomings with 'W;', and enforcement of optind=0.
184 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
187 2009-12-21 Bruno Haible <bruno@clisp.org>
189 localename: Improvements for MacOS X and Cygwin.
190 * lib/localename.h (gl_locale_name_environ): New declaration.
191 * lib/localename.c (gl_locale_name_environ): New function, extracted from
192 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
193 (gl_locale_name_posix): Invoke it.
194 (gl_locale_name_default): Add comments. Use Windows native API also on
197 2009-12-21 Bruno Haible <bruno@clisp.org>
199 Update list of Win32 locale ids.
200 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
201 (LANG_SAMI): Renamed from LANG_SAAMI.
202 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
203 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
204 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
205 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
206 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
207 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
208 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
209 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
210 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
211 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
212 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
213 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
214 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
215 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
216 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
217 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
218 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
219 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
220 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
221 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
222 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
223 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
224 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
225 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
226 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
227 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
228 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
229 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
230 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
231 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
232 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
233 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
234 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
235 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
236 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
237 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
238 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
239 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
240 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
241 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
242 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
243 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
244 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
245 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
246 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
247 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
248 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
249 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
250 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
251 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
252 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
253 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
254 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
255 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
256 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
257 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
258 Add more languages and countries for Sami, Sorbian. Add more countries
259 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
260 for Pashto. Change country for Syriac, Tswana.
262 2009-12-21 Eric Blake <ebb9@byu.net>
264 test-utimens: avoid spurious failure
265 * tests/test-chown.h (nap): Factor...
266 * tests/nap.h: ...into new file.
267 * tests/test-lchown.h (nap): Avoid duplication.
268 * tests/test-utimens-common.h (nap): Use shared implementation,
269 necessary on file systems with 1-second resolution.
270 * modules/chown-tests (Files): Include new file.
271 * modules/fdutimensat-tests (Files): Likewise.
272 * modules/futimens-tests (Files): Likewise.
273 * modules/lchown-tests (Files): Likewise.
274 * modules/openat-tests (Files): Likewise.
275 * modules/utimens-tests (Files): Likewise.
276 * modules/utimensat-tests (Files): Likewise.
278 2009-12-19 Eric Blake <ebb9@byu.net>
280 futimens, utimensat: work around Linux bug
281 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
282 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
283 * lib/utimensat.c (rpl_utimensat): Work around it.
284 * lib/futimens.c (rpl_futimens): Adjust comment.
286 utimens: work around Linux ctime bug
287 * lib/utimens.c (detect_ctime_bug): New helper function.
288 (update_timespec): Differentiate between workaround needed for
289 this bug vs. what is needed for systems that lack utimensat.
290 (fdutimens, lutimens): Work around bug.
292 utimens: check for ctime update
293 * tests/test-utimens-common.h (check_ctime): Define.
294 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
295 * tests/test-futimens.h (test_futimens): Likewise.
296 * tests/test-lutimens.h (test_lutimens): Likewise.
297 * doc/posix-functions/futimens.texi (futimens): Document the bug.
298 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
300 2009-12-19 Bruno Haible <bruno@clisp.org>
302 dprintf-posix: Check against memory leak fixed on 2009-12-15.
303 * tests/test-dprintf-posix2.sh: New file.
304 * tests/test-dprintf-posix2.c: New file.
305 * modules/dprintf-posix-tests (Files): Add them.
306 (configure.ac): Check for getrlimit and setrlimit.
307 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
309 2009-12-19 Bruno Haible <bruno@clisp.org>
311 fprintf-posix: Check against memory leak fixed on 2009-12-15.
312 * tests/test-fprintf-posix3.sh: New file.
313 * tests/test-fprintf-posix3.c: New file.
314 * modules/fprintf-posix-tests (Files): Add them.
315 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
317 2009-12-19 Eric Blake <ebb9@byu.net>
320 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
321 * lib/dirfd.c (dirfd): Likewise.
323 canonicalize: reduce memory usage
324 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
326 Reported by Solar Designer <solar@openwall.com>.
328 2009-12-19 Bruno Haible <bruno@clisp.org>
330 New module attribute 'Applicability'.
331 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
332 * gnulib-tool: New option --extract-applicability.
333 (func_usage): Document it.
334 (sed_extract_prog): Recognize it.
335 (func_get_applicability): New function.
336 (func_import): Generalize handling of 'link-warning' module.
337 * modules/link-warning (Applicability): New section.
338 * modules/arg-nonnull (Applicability): New section.
339 Repoted by Simon Josefsson <simon@josefsson.org>.
341 2009-12-19 Bruno Haible <bruno@clisp.org>
344 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
345 * lib/fseeko.c (rpl_fseeko): Likewise.
347 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
349 * lib/gl_list.h: Fix typo in comment.
351 2009-12-16 Eric Blake <ebb9@byu.net>
353 fcntl: use to simplify other modules
354 * modules/cloexec (Depends-on): Add fcntl.
355 * modules/fchdir (Depends-on): Likewise.
356 * modules/fd-safer-flag (Depends-on): Likewise.
357 * modules/unistd-safer (Depends-on): Likewise.
358 * modules/dup3 (configure.ac): Set module indicator.
359 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
361 * lib/fchdir.c (_gl_register_dup): Fix comment.
362 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
363 * lib/dup-safer.c (dup_safer): Likewise.
364 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
365 * lib/dup3.c (dup3): Likewise.
366 * tests/test-fchdir.c (main): Enhance test.
367 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
369 fcntl: port portions of fcntl to mingw
370 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
371 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
372 replacement for mingw.
373 * modules/fcntl (Description): Update.
374 (Depends-on): Add dup2.
375 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
376 * modules/fcntl-h (Makefile.am): Substitute it.
377 * lib/fcntl.in.h (fcntl): Update declaration.
378 (F_DUPFD, F_GETFD): New macros, when needed.
379 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
380 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
381 * tests/test-fcntl.c (check_flags, main): Enhance test for items
384 fcntl: work around cygwin bug in F_DUPFD
385 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
386 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
387 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
388 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
389 * doc/posix-functions/fcntl.texi (fcntl): Document it.
391 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
392 * modules/fcntl (Files): List new files.
393 (configure.ac): Run a test.
394 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
395 * lib/fcntl.c (rpl_fcntl): Likewise.
396 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
397 (gl_FCNTL_H): Always replace fcntl.h.
398 * modules/fcntl-h (Makefile.am): Substitute witnesses.
399 * lib/fcntl.in.h (fcntl): Declare replacement.
400 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
401 needed, plus a witness.
402 * doc/posix-functions/fcntl.texi (fcntl): Document this.
403 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
404 * tests/test-fcntl.c: New file.
405 * modules/fcntl-tests: Likewise.
407 binary-io: avoid potential compilation warning
408 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
411 fflush: avoid compilation error on NetBSD
412 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
413 between off_t and fpos_t, since the latter is sometimes a struct.
414 * lib/fseeko.c (rpl_fseeko): Likewise.
415 Reported by Alexander Nasonov <alnsn@yandex.ru>.
417 2009-12-15 Eric Blake <ebb9@byu.net>
419 fcntl-h, stdio, sys_ioctl: fix declarations
420 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
421 function must not take arguments.
422 * lib/sys_ioctl.in.h (ioctl): Likewise.
423 * lib/fcntl.in.h (openat): Likewise. Declare extern.
424 (open): Add a link warning.
426 2009-12-15 Jim Meyering <meyering@redhat.com>
428 areadlink, areadlink-with-size: relax license to LGPLv2+
429 * modules/areadlink (License): Relax to LGPLv2+.
430 * modules/areadlink-with-size (License): Likewise.
432 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
433 Bruno Haible <bruno@clisp.org>
435 *printf: Fix memory leak.
436 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
437 * lib/vfprintf.c (vfprintf): Likewise.
438 * lib/dprintf.c (dprintf): Likewise.
439 * lib/vdprintf.c (vdprintf): Likewise.
441 2009-12-14 Eric Blake <ebb9@byu.net>
443 accept4: adjust module dependencies
444 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
446 utimens: one more try at avoiding compiler warning
447 * lib/utimens.c (lutimens): Lower scope of result.
449 2009-12-13 Bruno Haible <bruno@clisp.org>
451 Move the malloc checking from module 'list' to new module 'xlist'.
452 * modules/xlist: New file.
453 * lib/gl_xlist.h: New file.
454 * lib/gl_xlist.c: New file.
455 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
456 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
457 gl_list_add_last, gl_list_add_before, gl_list_add_after,
458 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
459 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
460 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
461 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
462 gl_sortedlist_nx_add): New declarations.
463 (struct gl_list_implementation): Rename and change methods accordingly.
464 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
465 (gl_list_nx_create): Renamed from gl_list_create.
466 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
467 (gl_list_nx_set_at): Renamed from gl_list_set_at.
468 (gl_list_nx_add_first): Renamed from gl_list_add_first.
469 (gl_list_nx_add_last): Renamed from gl_list_add_last.
470 (gl_list_nx_add_before): Renamed from gl_list_add_before.
471 (gl_list_nx_add_after): Renamed from gl_list_add_after.
472 (gl_list_nx_add_at): Renamed from gl_list_add_at.
473 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
474 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
475 gl_list_create_empty.
476 (gl_list_nx_create): Renamed from gl_list_create.
477 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
478 (gl_list_nx_set_at): Renamed from gl_list_set_at.
479 (gl_list_nx_add_first): Renamed from gl_list_add_first.
480 (gl_list_nx_add_last): Renamed from gl_list_add_last.
481 (gl_list_nx_add_before): Renamed from gl_list_add_before.
482 (gl_list_nx_add_after): Renamed from gl_list_add_after.
483 (gl_list_nx_add_at): Renamed from gl_list_add_at.
484 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
485 * lib/gl_array_list.c: Don't include xalloc.h.
486 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
487 NULL upon out-of-memory.
488 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
490 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
491 Change return type to 'int'.
492 (gl_array_nx_set_at): Renamed from gl_array_set_at.
493 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
494 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
496 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
498 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
500 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
502 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
504 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
506 (gl_array_list_implementation): Update.
507 * lib/gl_carray_list.c: Don't include xalloc.h.
508 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
509 Return NULL upon out-of-memory.
510 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
512 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
513 Change return type to 'int'.
514 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
515 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
516 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
518 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
520 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
522 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
523 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
524 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
526 (gl_carray_list_implementation): Update.
527 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
528 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
529 gl_linked_create_empty. Return NULL upon out-of-memory.
530 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
532 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
533 Change return type to 'int'. Return -1 upon out-of-memory.
534 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
536 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
538 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
540 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
541 NULL upon out-of-memory.
542 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
544 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
546 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
548 * lib/gl_linked_list.c: Don't include xalloc.h.
549 (gl_linked_list_implementation): Update.
550 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
551 (add_to_bucket): Change return type to 'int'.
552 (gl_linkedhash_list_implementation): Update.
553 * lib/gl_anytree_list1.h (free_subtree): New function.
554 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
555 gl_tree_create_empty. Return NULL upon out-of-memory.
556 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
557 Change return type to 'int'. Return -1 upon out-of-memory.
558 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
560 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
561 (gl_tree_remove_node): New function, moved here from
562 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
563 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
565 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
566 malloc, not xmalloc. Return NULL upon out-of-memory.
567 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
569 (gl_tree_remove_node_from_tree): New function, extracted from
571 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
573 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
575 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
577 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
579 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
580 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
581 not xmalloc. Return NULL upon out-of-memory.
582 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
584 (gl_tree_remove_node_from_tree): New function, extracted from
586 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
588 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
590 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
592 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
594 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
595 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
596 gl_anytree_list1.h before gl_anyavltree_list2.h.
597 (gl_avltree_list_implementation): Update.
598 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
599 gl_anytree_list1.h before gl_anyavltree_list2.h.
600 (gl_rbtree_list_implementation): Update.
601 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
602 Change return type to 'int'. Return -1 upon out-of-memory. Use
604 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
605 (gl_avltreehash_list_implementation): Update.
606 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
607 (gl_rbtreehash_list_implementation): Update.
608 * modules/array-list (Depends-on): Remove xalloc.
609 * modules/carray-list (Depends-on): Likewise.
610 * modules/linked-list (Depends-on): Likewise.
611 * modules/linkedhash-list (Depends-on): Likewise.
612 * modules/avltree-list (Depends-on): Likewise.
613 * modules/rbtree-list (Depends-on): Likewise.
614 * modules/avltreehash-list (Depends-on): Likewise.
615 * modules/rbtreehash-list (Depends-on): Likewise.
617 * modules/xsublist: New file.
618 * lib/gl_xsublist.h: New file.
619 * lib/gl_xsublist.c: New file.
620 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
621 (gl_sublist_nx_create): New declaration.
622 * lib/gl_sublist.c: Don't include xalloc.h.
623 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
624 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
625 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
626 Change return type to 'int'. Return -1 upon out-of-memory.
627 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
629 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
630 NULL upon out-of-memory.
631 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
633 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
634 NULL upon out-of-memory.
635 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
636 NULL upon out-of-memory.
637 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
639 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
640 (gl_sublist_list_implementation): Update.
641 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
643 * modules/sublist (Depends-on): Remove xalloc.
645 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
646 * tests/test-carray_list.c: Likewise.
647 * tests/test-linked_list.c: Likewise.
648 * tests/test-linkedhash_list.c: Likewise.
649 * tests/test-avltree_list.c: Likewise.
650 * tests/test-rbtree_list.c: Likewise.
651 * tests/test-avltreehash_list.c: Likewise.
652 * tests/test-rbtreehash_list.c: Likewise.
653 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
654 * modules/carray-list-tests (Makefile.am): Likewise.
655 * modules/linked-list-tests (Makefile.am): Likewise.
656 * modules/linkedhash-list-tests (Makefile.am): Likewise.
657 * modules/avltree-list-tests (Makefile.am): Likewise.
658 * modules/rbtree-list-tests (Makefile.am): Likewise.
659 * modules/avltreehash-list-tests (Makefile.am): Likewise.
660 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
662 * NEWS: Mention the changes.
664 * lib/clean-temp.c: Include gl_xlist.h.
665 * modules/clean-temp (Depends-on): Add xlist.
667 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
668 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
670 * tests/test-array_oset.c: Include gl_xlist.h.
671 * modules/array-oset-tests (Depends-on): Add xlist.
673 Reported by José E. Marchesi <jemarch@gnu.org>.
675 2009-12-13 Bruno Haible <bruno@clisp.org>
677 Move the malloc checking from module 'oset' to new module 'xoset'.
678 * modules/xoset: New file.
679 * lib/gl_xoset.h: New file.
680 * lib/gl_xoset.c: New file.
681 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
683 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
684 (struct gl_oset_implementation): Rename and change methods accordingly.
685 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
686 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
687 'int'. Mark as __warn_unused_result__.
688 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
689 gl_oset_create_empty.
690 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
692 * lib/gl_array_oset.c: Don't include xalloc.h.
693 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
695 (grow): Change return type to 'int'. Don't call xalloc_die.
696 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
698 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
700 (gl_array_oset_implementation): Update.
701 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
702 gl_tree_create_empty.
703 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
705 * lib/gl_avltree_oset.c: Don't include xalloc.h.
706 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
708 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
710 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
712 (gl_avltree_oset_implementation): Update.
713 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
714 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
716 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
718 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
720 (gl_rbtree_oset_implementation): Update.
721 * modules/array-oset (Depends-on): Remove xalloc.
722 * modules/avltree-oset (Depends-on): Likewise.
723 * modules/rbtree-oset (Depends-on): Likewise.
724 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
725 * tests/test-avltree_oset.c: Likewise.
726 * tests/test-rbtree_oset.c: Likewise.
727 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
728 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
729 * modules/rbtree-oset-tests (Makefile.am): Likewise.
730 * NEWS: Mention the change.
732 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
734 maint.mk: allow a project to override release-prep commands
735 * top/maint.mk (alpha, beta, stable): Move release-preparatory
736 commands into a new rule.
737 (release-prep): New rule.
738 (release-prep-hook): New overridable variable.
740 2009-12-13 Bruno Haible <bruno@clisp.org>
742 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
744 2009-12-13 Jim Meyering <meyering@redhat.com>
746 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
747 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
749 2009-12-12 Bruno Haible <bruno@clisp.org>
752 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
754 2009-12-12 Karl Berry <karl@gnu.org>
756 * config/srclist.txt (strtoll.c): tab changes, no more sync.
758 2009-12-12 Bruno Haible <bruno@clisp.org>
760 * m4/po.m4: Undo incorrect untabification.
762 2009-12-12 Bruno Haible <bruno@clisp.org>
764 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
765 * modules/c-strtod (Depends-on): Add locale.
766 * modules/c-strtold (Depends-on): Likewise.
768 2009-12-12 Bruno Haible <bruno@clisp.org>
770 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
772 2009-12-11 Eric Blake <ebb9@byu.net>
774 setenv: relax requirement in light of POSIX ruling
775 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
777 * tests/test-setenv.c (main): Relax test.
778 * tests/test-unsetenv.c (main): Likewise.
779 * doc/posix-functions/setenv.texi (setenv): Document this.
780 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
782 2009-12-11 Bruno Haible <bruno@clisp.org>
784 New module 'fd-safer-flag'.
785 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
786 * lib/dup-safer.c (dup_safer_flag): Remove function.
787 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
788 * lib/fd-safer.c (fd_safer_flag): Remove function.
789 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
790 * modules/cloexec (configure.ac): Drop indicator macro.
791 * modules/fd-safer-flag: New file.
792 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
793 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
794 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
796 2009-12-11 Bruno Haible <bruno@clisp.org>
798 Tests for module 'nl_langinfo'.
799 * modules/nl_langinfo-tests: New file.
800 * tests/test-nl_langinfo.sh: New file.
801 * tests/test-nl_langinfo.c: New file.
803 New module 'nl_langinfo'.
804 * lib/nl_langinfo.c: New file.
805 * m4/nl_langinfo.m4: New file.
806 * modules/nl_langinfo: New file.
807 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
809 2009-12-11 Bruno Haible <bruno@clisp.org>
811 Tests for module 'langinfo'.
812 * modules/langinfo-tests: New file.
813 * tests/test-langinfo.c: New file.
815 New module 'langinfo'.
816 * lib/langinfo.in.h: New file.
817 * m4/langinfo_h.m4: New file.
818 * modules/langinfo: New file.
819 * doc/posix-headers/langinfo.texi: Mention the new module.
821 2009-12-11 Bruno Haible <bruno@clisp.org>
823 * lib/config.charset: Untabify.
825 2009-12-11 Bruno Haible <bruno@clisp.org>
827 * modules/unistd-safer (configure.ac): Drop indicator macro.
829 2009-12-11 Bruno Haible <bruno@clisp.org>
831 Move pipe2-safer code to its own file.
832 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
833 * lib/pipe-safer.c (pipe2_safer): Remove function.
834 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
835 (Makefile.am): Add it to lib_SOURCES.
837 2009-12-10 Bruno Haible <bruno@clisp.org>
839 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
841 2009-12-10 Bruno Haible <bruno@clisp.org>
843 Declare which arguments expect non-NULL values, for GCC and clang.
844 * build-aux/arg-nonnull.h: New file.
845 * modules/arg-nonnull: New file.
846 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
847 (inet_ntop, inet_pton): Use it.
848 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
849 (closedir, dirfd, opendir, scandir, alphasort): Use it.
850 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
851 (open, openat): Use it.
852 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
854 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
855 (getopt, getopt_long, getopt_long_only): Use it.
856 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
857 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
859 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
860 (iconv_open): Use it.
861 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
862 (strtoimax, strtoumax): Use it.
863 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
865 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
866 (frexp, frexpl): Use it.
867 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
868 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
869 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
870 (tsearch, tfind, tdelete, twalk): Use it.
871 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
872 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
874 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
875 (posix_spawn, posix_spawnp, posix_spawnattr_init,
876 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
877 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
878 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
879 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
880 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
881 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
882 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
883 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
884 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
886 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
887 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
888 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
889 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
890 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
891 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
892 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
893 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
894 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
895 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
896 strtoull, unsetenv): Use it.
897 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
898 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
899 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
900 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
901 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
902 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
903 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
904 (strcasecmp, strncasecmp): Use it.
905 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
906 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
907 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
908 rpl_setsockopt): Use it.
909 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
910 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
911 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
912 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
913 (gettimeofday): Use it.
914 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
916 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
918 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
919 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
920 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
921 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
922 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
923 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
924 unlinkat, write): Use it.
925 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
926 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
927 * lib/argv-iter.h: Include arg-nonnull.h.
928 (_ATTRIBUTE_NONNULL_): Remove macro.
929 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
930 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
931 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
933 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
934 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
935 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
936 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
937 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
938 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
939 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
940 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
941 * modules/arpa_inet (Depends-on): Add arg-nonnull.
942 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
943 * modules/dirent (Depends-on): Add arg-nonnull.
944 (Makefile.am): Insert arg-nonnull.h into dirent.h.
945 * modules/fcntl-h (Depends-on): Add arg-nonnull.
946 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
947 * modules/fnmatch (Depends-on): Add arg-nonnull.
948 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
949 * modules/getopt-posix (Depends-on): Add arg-nonnull.
950 (Makefile.am): Insert arg-nonnull.h into getopt.h.
951 * modules/glob (Depends-on): Add arg-nonnull.
952 (Makefile.am): Insert arg-nonnull.h into glob.h.
953 * modules/iconv_open (Depends-on): Add arg-nonnull.
954 (Makefile.am): Insert arg-nonnull.h into iconv.h.
955 * modules/inttypes (Depends-on): Add arg-nonnull.
956 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
957 * modules/locale (Depends-on): Add arg-nonnull.
958 (Makefile.am): Insert arg-nonnull.h into locale.h.
959 * modules/math (Depends-on): Add arg-nonnull.
960 (Makefile.am): Insert arg-nonnull.h into math.h.
961 * modules/netdb (Depends-on): Add arg-nonnull.
962 (Makefile.am): Insert arg-nonnull.h into netdb.h.
963 * modules/search (Depends-on): Add arg-nonnull.
964 (Makefile.am): Insert arg-nonnull.h into search.h.
965 * modules/signal (Depends-on): Add arg-nonnull.
966 (Makefile.am): Insert arg-nonnull.h into signal.h.
967 * modules/spawn (Depends-on): Add arg-nonnull.
968 (Makefile.am): Insert arg-nonnull.h into spawn.h.
969 * modules/stdio (Depends-on): Add arg-nonnull.
970 (Makefile.am): Insert arg-nonnull.h into stdio.h.
971 * modules/stdlib (Depends-on): Add arg-nonnull.
972 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
973 * modules/string (Depends-on): Add arg-nonnull.
974 (Makefile.am): Insert arg-nonnull.h into string.h.
975 * modules/strings (Depends-on): Add arg-nonnull.
976 (Makefile.am): Insert arg-nonnull.h into strings.h.
977 * modules/sys_socket (Depends-on): Add arg-nonnull.
978 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
979 * modules/sys_stat (Depends-on): Add arg-nonnull.
980 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
981 * modules/sys_time (Depends-on): Add arg-nonnull.
982 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
983 * modules/sys_times (Depends-on): Add arg-nonnull.
984 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
985 * modules/sys_utsname (Depends-on): Add arg-nonnull.
986 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
987 * modules/time (Depends-on): Add arg-nonnull.
988 (Makefile.am): Insert arg-nonnull.h into time.h.
989 * modules/unistd (Depends-on): Add arg-nonnull.
990 (Makefile.am): Insert arg-nonnull.h into unistd.h.
991 * modules/wchar (Depends-on): Add arg-nonnull.
992 (Makefile.am): Insert arg-nonnull.h into wchar.h.
993 * modules/argv-iter (Depends-on): Add arg-nonnull.
994 * tests/test-canonicalize.c (null_ptr): New function.
996 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
998 * tests/test-memmem.c (null_ptr): New function.
1000 Reported by Jim Meyering.
1002 2009-12-10 Bruno Haible <bruno@clisp.org>
1004 Use spaces for indentation, not tabs.
1005 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1006 * m4/*.m4: Untabify.
1007 * build-aux/*.h: Untabify.
1008 * tests/**/*.[hc]: Untabify.
1009 * README: New section "Indent with spaces, not TABs", based on
1010 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
1011 * NEWS: Mention the change.
1013 2009-12-10 Bruno Haible <bruno@clisp.org>
1015 pty test: Fix link error.
1016 * modules/pty-tests (Makefile.am): Add the default LDADD value to
1019 2009-12-07 Simon Josefsson <simon@josefsson.org>
1021 * modules/pty: New file.
1022 * modules/pty-tests: New file.
1023 * m4/pty.m4: New file.
1024 * tests/test-pty.c: New file.
1025 * doc/glibc-headers/pty.texi: Modified.
1026 * doc/glibc-functions/forkpty.texi: Modified.
1027 * doc/glibc-functions/openpty.texi: Modified.
1029 2009-12-10 Bruno Haible <bruno@clisp.org>
1031 Avoid syntax error in C++ mode.
1032 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
1034 2009-12-10 Bruno Haible <bruno@clisp.org>
1036 Use sed with option -e.
1037 * gnulib-tool (func_version, func_emit_copyright_notice,
1038 func_emit_initmacro_end, func_import, func_create_testdir): Pass
1040 * modules/link-warning (Makefile.am): Likewise.
1042 2009-12-10 Jim Meyering <meyering@redhat.com>
1044 mgetgroups: do not write bytes beyond end of malloc'd buffer
1045 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
1046 username, we call getgroups with a one-element-shorter buffer,
1047 but still told it the length was original, max_n_groups.
1049 2009-12-09 Eric Blake <ebb9@byu.net>
1051 cloexec: relax license
1052 * modules/cloexec (Maintainer): Add myself.
1053 (License): Use LGPL, not GPL.
1055 link-warning: optimize generation
1056 * modules/link-warning (Makefile.am): Reduce process usage.
1058 2009-12-09 Bruno Haible <bruno@clisp.org>
1060 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
1061 workaround was added on 2009-11-17.
1063 2009-12-09 Jim Meyering <meyering@redhat.com>
1064 Bruno Haible <bruno@clisp.org>
1066 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
1067 * modules/link-warning (Makefile.am): Make the comment-removing sed
1068 command more robust in the face of bootstrap-prepended comment lines.
1070 2009-12-09 Bruno Haible <bruno@clisp.org>
1072 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
1075 2009-12-09 Simon Josefsson <simon@josefsson.org>
1076 Bruno Haible <bruno@clisp.org>
1078 * build-aux/link-warning.h: Add copyright notice.
1079 * modules/link-warning (Makefile.am): Generate link-warning.h from
1080 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
1081 * NEWS: Mention change in link-warning module.
1082 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
1083 * modules/dirent (Makefile.am): Add dependency to dirent.h.
1084 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
1085 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
1086 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
1087 * modules/math (Makefile.am): Add dependency to math.h.
1088 * modules/search (Makefile.am): Add dependency to search.h.
1089 * modules/signal (Makefile.am): Add dependency to signal.h.
1090 * modules/spawn (Makefile.am): Add dependency to spawn.h.
1091 * modules/stdio (Makefile.am): Add dependency to stdio.h.
1092 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
1093 * modules/string (Makefile.am): Add dependency to string.h.
1094 * modules/strings (Makefile.am): Add dependency to strings.h.
1095 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
1096 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
1097 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
1098 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
1099 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
1100 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
1101 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
1102 * modules/unistd (Makefile.am): Add dependency to unistd.h.
1103 * modules/wchar (Makefile.am): Add dependency to wchar.h.
1105 2009-12-09 Bruno Haible <bruno@clisp.org>
1107 fchdir: Optimize away rpl_fstat when possible.
1108 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
1109 REPLACE_OPEN_DIRECTORY.
1110 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
1112 2009-12-09 Bruno Haible <bruno@clisp.org>
1114 * lib/fchdir.c: Update comment.
1116 2009-12-09 Bruno Haible <bruno@clisp.org>
1118 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
1120 2009-12-08 Eric Blake <ebb9@byu.net>
1122 fchdir: avoid memory leak on re-registration.
1123 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
1125 2009-12-08 Jim Meyering <meyering@redhat.com>
1127 init.sh: avoid Solaris 10 /bin/sh portability problem
1128 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
1130 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
1131 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
1133 tests/init.sh relied on that, accepting a --set-path=DIR argument,
1134 and two tests used that idiom.
1135 * tests/init.sh: Update suggested usage comments.
1136 (path_prepend_): New function, to be used in place
1137 of the --src-path=DIR option.
1138 (setup_): Move PATH-prepending code into path_prepend_.
1139 * tests/test-pread.sh: Adapt to new usage.
1140 * tests/test-xalloc-die.sh: Likewise.
1142 2009-12-08 Simon Josefsson <simon@josefsson.org>
1144 * doc/gnulib.texi (Glibc pty.h): Add.
1145 * doc/glibc-functions/forkpty.texi: Add.
1146 * doc/glibc-functions/openpty.texi: Add.
1147 Suggested by Bruno Haible.
1149 2009-12-08 Eric Blake <ebb9@byu.net>
1151 fchdir: fix logic bugs
1152 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
1153 * tests/test-fchdir.c (main): Enhance test.
1154 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
1157 dup2: fix logic bugs
1158 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
1159 REPLACE_DUP2 to decide when rpl_dup2 is needed.
1160 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
1162 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
1164 2009-12-07 Eric Blake <ebb9@byu.net>
1166 unlink: fix m4 detection
1167 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
1169 unistd-safer: add unit test
1170 * modules/unistd-safer-tests: New file.
1171 * tests/test-dup-safer.c: Likewise.
1172 * tests/test-cloexec.c (setmode): Avoid compiler warning.
1173 * tests/test-dup2.c (setmode): Likewise.
1174 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
1176 cloexec: preserve text vs. binary across dup_cloexec
1177 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
1179 * modules/dup2-tests (Depends-on): Add binary-io.
1180 * modules/cloexec-tests (Depends-on): Likewise.
1181 * tests/test-dup2.c (setmode, is_mode): New helpers.
1182 (main): Add tests that translation mode is preserved.
1183 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
1184 Reported by Bruno Haible.
1186 mgetgroups: reduce duplicate listings
1187 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
1189 * tests/test-chown.h (test_chown): Simplify client.
1190 * tests/test-lchown.h (test_lchown): Likewise.
1192 2009-12-06 Bruno Haible <bruno@clisp.org>
1194 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
1197 2009-12-06 Bruno Haible <bruno@clisp.org>
1199 * lib/progname.c: Include stdio.h, stdlib.h.
1200 (set_program_name): Reject a NULL argument.
1202 2009-12-05 Eric Blake <ebb9@byu.net>
1204 pipe2-safer: new module
1205 * modules/pipe2-safer: New file.
1206 * lib/unistd-safer.h (pipe2_safer): New prototype.
1207 * lib/unistd--.h (pipe2): New wrapper.
1208 * lib/pipe-safer.c (pipe2_safer): New function.
1209 * modules/pipe (Depends-on): Add pipe2-safer.
1210 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
1212 stdlib-safer: preserve cloexec flag for mkostemp[s]
1213 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
1216 unistd-safer: allow preservation of cloexec status via flag
1217 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
1219 * lib/dup-safer.c (dup_safer_flag): New function.
1220 * lib/fd-safer.c (fd_safer_flag): Likewise.
1221 * modules/cloexec (configure.ac): Set witness.
1223 test-dup2: enhance test
1224 * modules/dup2-tests (Depends-on): Add cloexec.
1225 * tests/test-dup2.c (main): Enhance test.
1227 cloexec: add dup_cloexec
1228 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
1229 header and comments.
1230 * lib/cloexec.c (set_cloexec_flag): Add comments.
1231 (dup_cloexec): New function, with mingw implementation borrowed
1233 * lib/w32spawn.h (dup_noinherit): ...here.
1234 * modules/execute (Depends-on): Add cloexec.
1235 * modules/pipe (Depends-on): Likewise.
1236 * modules/cloexec (Depends-on): Add dup2.
1237 * modules/cloexec-tests (Files): New file.
1238 * tests/test-cloexec.c: Likewise.
1240 test-xalloc-die: fix test for mingw
1241 * modules/xalloc-die-tests (Files): Add tests/init.sh.
1242 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
1243 directory and .exe suffix off argv[0] output.
1245 test-fseeko: fix test for mingw
1246 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
1247 than undefining fseek, so test will pass on mingw.
1249 2009-12-05 Bruno Haible <bruno@clisp.org>
1251 * lib/progname.h (set_program_name): Clarify specification.
1252 * lib/progname.c (set_program_name): Likewise.
1253 Reported by Jim Meyering.
1255 2009-12-05 Jim Meyering <meyering@redhat.com>
1257 maint.mk: backslash-escape parens in default regexp
1258 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
1259 backslash-escape the literal parentheses.
1261 maint.mk: news-date-check: use grep -E
1262 * top/maint.mk (today): Define a Make variable, not a...
1263 (news-date-check): ...shell variable.
1264 (news-date-regexp): Use the Make variable.
1265 Use grep's -E option. Change the failing diagnostic to mention
1266 the variable, $(news-date-regexp).
1268 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
1270 maintainer-makefile: allow customization of NEWS entry format
1271 * top/maint.mk (news-date-regexp): New overridable variable.
1272 (news-date-check): Use it.
1274 2009-12-04 Eric Blake <ebb9@byu.net>
1276 mgetgroups: add xgetgroups, and avoid ENOSYS failures
1277 * lib/mgetgroups.h (xgetgroups): New prototype.
1278 * lib/mgetgroups.c (xgetgroups): New wrapper.
1279 (mgetgroups): Handle ENOSYS.
1280 * modules/mgetgroups (Depends-on): Add realloc.
1281 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
1283 mgetgroups: avoid argument promotion issues with -1
1284 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
1286 * tests/test-chown.h (getegid, test_chown): Likewise.
1287 * tests/test-lchown.h (getegid, test_lchown): Likewise.
1289 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
1291 exclude: Fix header file problems.
1292 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
1294 2009-12-01 Jim Meyering <meyering@redhat.com>
1296 fts: fts_open: do not let an empty string cause immediate failure
1297 This is required in support of GNU rm, for which the command
1298 "rm A '' B" must process and remove both A and B, in spite of
1299 the empty string argument.
1300 * lib/fts.c (fts_open): Do not let the presence of an empty string
1301 cause fts_open to fail immediately. Most fts-using tools must be
1302 able to process all arguments, in order, and can be expected to
1303 diagnose such arguments themselves.
1305 2009-11-30 Eric Blake <ebb9@byu.net>
1307 utimens: fix compilation error
1308 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
1309 Declare variable at right scope.
1311 2009-11-29 Jim Meyering <meyering@redhat.com>
1313 bootstrap: handle perl-5.11's changed --version output
1314 * build-aux/bootstrap (get_version): Handle perl separately,
1315 since perl-5.11's --version output is different.
1317 2009-11-28 Jim Meyering <meyering@redhat.com>
1319 userspec: depend on the inttostr module, too
1320 * modules/userspec (Depends-on): Add inttostr.
1322 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
1323 * lib/userspec.c (parse_with_separator): Do not accept a user ID
1324 number of MAXUID when it evaluates to (uid_t) -1.
1325 Likewise for group ID. Reported by Matt McCutchen in
1326 <http://savannah.gnu.org/bugs/?28113>
1328 userspec: reformat to use spaces, not TABs
1329 * lib/userspec.c: Expand TABs to spaces.
1330 Add Emacs' "indent-tabs-mode: nil" hint.
1332 2009-11-27 Eric Blake <ebb9@byu.net>
1334 getopt-gnu: flush out another BSD bug
1335 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
1336 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
1338 * tests/test-getopt.h (test_getopt): End lists with NULL.
1339 * tests/test-getopt_long.h (test_getopt_long): Likewise.
1340 (test_getopt_long_posix): Enhance test.
1341 * modules/getopt-posix-tests (Depends-on): Add stdbool.
1342 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
1344 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1347 2009-11-27 Simon Josefsson <simon@josefsson.org>
1349 * modules/idpriv-droptemp-tests (Notice): Fix text.
1351 2009-11-27 Jim Meyering <meyering@redhat.com>
1353 test-xalloc-die: avoid spurious failure due to libtool argv difference
1354 In a libtool-enabled project, this test would fail due to a difference
1355 in the emitted program name, e.g.,
1356 -test-xalloc-die: memory exhausted
1357 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
1358 Use program to avoid that.
1359 * modules/xalloc-die-tests (Depends-on): Add progname.
1360 * tests/test-xalloc-die.c: Include progname.h".
1361 (program_name): Remove decl.
1362 (main): Call set_program_name.
1363 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
1365 2009-11-26 Richard Jones <rjones@redhat.com>
1367 w32sock: leave win32 error in place.
1368 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
1370 2009-11-26 Eric Blake <ebb9@byu.net>
1372 init.sh: suggest to use skip_ and fail_ functions in comments
1373 * tests/init.sh: Add a sentence.
1375 2009-11-25 Bruno Haible <bruno@clisp.org>
1377 init.sh: add documentation in comments
1378 * tests/init.sh: Add some developer and user documentation.
1380 2009-11-26 Jim Meyering <meyering@redhat.com>
1382 init.sh: accommodate even those who specify bogus srcdir manually
1383 * tests/init.sh: Normally, srcdir is guaranteed by automake and
1384 configure-time tests to be sanitized, so that there is no need to
1385 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
1386 (with no double quotes) suffices. However, since tests may be
1387 invoked manually, and since you may explicitly set srcdir to the
1388 name of a directory containing spaces, do quote its uses here.
1389 * tests/test-pread.sh: Likewise.
1390 Suggested by Bruno Haible.
1392 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
1393 * tests/test-pread.sh: Write no data into the pipe, because
1394 test-pread actually reads none. This avoids a diagnostic,
1395 "bash: echo: write error: Broken pipe", that arises in the unusual
1396 event something is ignoring SIGPIPE, and might be interpreted
1397 as some sort of failure. Reported by Bruno Haible.
1399 2009-11-25 Jim Meyering <meyering@redhat.com>
1401 test-pread: cover failure with ESPIPE and EINVAL
1402 * tests/test-pread.c (main): Test for failure, too.
1403 * tests/test-pread.sh: Invoke with stdin on a pipe.
1404 Suggested by Eric Blake.
1406 pread: improvement and fix
1407 * modules/pread (Depends-on): Depend on lseek, for portability to
1408 e.g., mingw. Suggested by Eric Blake.
1409 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
1411 unistd.in.h: correct declaration of pread
1412 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
1413 Reported by Richard W.M. Jones.
1415 test-pread.sh: distribute the test script
1416 * modules/pread-tests (Files): Include test-pread.sh.
1418 test-pread.sh: clean up
1419 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
1420 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
1421 That is unnecessary, since it's always ".".
1422 Suggestion from Eric Blake.
1424 test-pread.sh: make executable
1425 * tests/test-pread.sh: Set executable bit.
1426 Reported by Eric Blake.
1428 correct typo in test-pread.sh
1429 * tests/test-pread.sh: Add #! line.
1432 * tests/test-pread.c: New file.
1433 * tests/test-pread.sh: Likewise.
1434 * modules/pread-tests: Likewise.
1437 * modules/pread: New file.
1438 * lib/unistd.in.h (pread): Define/declare.
1439 * lib/pread.c (pread): New file.
1440 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
1441 * modules/unistd (Makefile.am): Substitute witnesses.
1442 * doc/posix-functions/pread.texi (pread): Update.
1443 * MODULES.html.sh: Add pread.
1445 2009-11-25 Jim Meyering <meyering@redhat.com>
1447 tests/init.sh: new file to be used via most *.sh tests
1448 * tests/init.sh: New file.
1450 2009-11-25 Eric Blake <ebb9@byu.net>
1452 utimens: work around older Linux failure with symlinks
1453 * lib/utimens.c (lutimensat_works_really): New variable.
1454 (fdutimens, lutimens): Use it to manage kernels that support
1455 nanosecond times on files, but not on symlinks.
1456 Reported by OndÅ™ej VaÅ¡Ãk.
1458 utimes: fix configure grammar
1459 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
1461 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
1463 regex: Fix fastmap for multibyte character ranges.
1464 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
1465 characters when a multibyte character range is included.
1467 2009-11-22 Andy Wingo <wingo@pobox.com>
1469 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
1470 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
1472 2009-11-24 Bruno Haible <bruno@clisp.org>
1474 doc: Most *_l functions exist in MacOS X 10.5.
1475 * doc/posix-functions/duplocale.texi: Update platforms list.
1476 * doc/posix-functions/freelocale.texi: Likewise.
1477 * doc/posix-functions/newlocale.texi: Likewise.
1478 * doc/posix-functions/uselocale.texi: Likewise.
1479 * doc/posix-functions/isalnum_l.texi: Likewise.
1480 * doc/posix-functions/isalpha_l.texi: Likewise.
1481 * doc/posix-functions/isblank_l.texi: Likewise.
1482 * doc/posix-functions/iscntrl_l.texi: Likewise.
1483 * doc/posix-functions/isdigit_l.texi: Likewise.
1484 * doc/posix-functions/isgraph_l.texi: Likewise.
1485 * doc/posix-functions/islower_l.texi: Likewise.
1486 * doc/posix-functions/isprint_l.texi: Likewise.
1487 * doc/posix-functions/ispunct_l.texi: Likewise.
1488 * doc/posix-functions/isspace_l.texi: Likewise.
1489 * doc/posix-functions/isupper_l.texi: Likewise.
1490 * doc/posix-functions/iswalnum_l.texi: Likewise.
1491 * doc/posix-functions/iswalpha_l.texi: Likewise.
1492 * doc/posix-functions/iswblank_l.texi: Likewise.
1493 * doc/posix-functions/iswcntrl_l.texi: Likewise.
1494 * doc/posix-functions/iswctype_l.texi: Likewise.
1495 * doc/posix-functions/iswdigit_l.texi: Likewise.
1496 * doc/posix-functions/iswgraph_l.texi: Likewise.
1497 * doc/posix-functions/iswlower_l.texi: Likewise.
1498 * doc/posix-functions/iswprint_l.texi: Likewise.
1499 * doc/posix-functions/iswpunct_l.texi: Likewise.
1500 * doc/posix-functions/iswspace_l.texi: Likewise.
1501 * doc/posix-functions/iswupper_l.texi: Likewise.
1502 * doc/posix-functions/iswxdigit_l.texi: Likewise.
1503 * doc/posix-functions/isxdigit_l.texi: Likewise.
1504 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
1505 * doc/posix-functions/strcasecmp_l.texi: Likewise.
1506 * doc/posix-functions/strcoll_l.texi: Likewise.
1507 * doc/posix-functions/strfmon_l.texi: Likewise.
1508 * doc/posix-functions/strftime_l.texi: Likewise.
1509 * doc/posix-functions/strncasecmp_l.texi: Likewise.
1510 * doc/posix-functions/strxfrm_l.texi: Likewise.
1511 * doc/posix-functions/tolower_l.texi: Likewise.
1512 * doc/posix-functions/toupper_l.texi: Likewise.
1513 * doc/posix-functions/towctrans_l.texi: Likewise.
1514 * doc/posix-functions/towlower_l.texi: Likewise.
1515 * doc/posix-functions/towupper_l.texi: Likewise.
1516 * doc/posix-functions/wcscoll_l.texi: Likewise.
1517 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
1518 * doc/posix-functions/wctrans_l.texi: Likewise.
1519 * doc/posix-functions/wctype_l.texi: Likewise.
1520 * doc/glibc-functions/strptime_l.texi: Likewise.
1521 * doc/glibc-functions/strtod_l.texi: Likewise.
1522 * doc/glibc-functions/strtof_l.texi: Likewise.
1523 * doc/glibc-functions/strtol_l.texi: Likewise.
1524 * doc/glibc-functions/strtold_l.texi: Likewise.
1525 * doc/glibc-functions/strtoll_l.texi: Likewise.
1526 * doc/glibc-functions/strtoul_l.texi: Likewise.
1527 * doc/glibc-functions/strtoull_l.texi: Likewise.
1528 * doc/glibc-functions/wcsftime_l.texi: Likewise.
1529 * doc/glibc-functions/wcstod_l.texi: Likewise.
1530 * doc/glibc-functions/wcstof_l.texi: Likewise.
1531 * doc/glibc-functions/wcstol_l.texi: Likewise.
1532 * doc/glibc-functions/wcstold_l.texi: Likewise.
1533 * doc/glibc-functions/wcstoll_l.texi: Likewise.
1534 * doc/glibc-functions/wcstoul_l.texi: Likewise.
1535 * doc/glibc-functions/wcstoull_l.texi: Likewise.
1537 2009-11-24 Bruno Haible <bruno@clisp.org>
1539 duplocale: Fix logic bug.
1540 * lib/duplocale.c: Don't include <langinfo.h>.
1541 (_NL_LOCALE_NAME): Remove macro.
1542 (rpl_duplocale): Use setlocale instead of nl_langinfo.
1543 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
1545 2009-11-23 Jim Meyering <meyering@redhat.com>
1547 test-update-copyright: don't hard-code /usr/bin/perl
1548 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
1549 perl to print the current year. Gilles Espinasse reported that
1550 the replaced use of perl was hard-coded as /usr/bin/perl.
1552 2009-11-23 Bruno Haible <bruno@clisp.org>
1554 duplocale: Add support for glibc 2.3.x.
1555 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
1557 2009-11-22 Bruno Haible <bruno@clisp.org>
1559 vasnprintf: Tiny optimization.
1560 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
1563 2009-11-22 Bruno Haible <bruno@clisp.org>
1565 Tests for module 'duplocale'.
1566 * modules/duplocale-tests: New file.
1567 * tests/test-duplocale.c: New file.
1569 New module 'duplocale'.
1570 * m4/duplocale.m4: New file.
1571 * lib/locale.in.h (duplocale): New declaration.
1572 * lib/duplocale.c: New file.
1573 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
1574 gl_LOCALE_H_DEFAULTS): New macros.
1575 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
1576 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
1577 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
1579 * modules/duplocale: New file.
1580 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
1582 2009-11-22 Bruno Haible <bruno@clisp.org>
1584 * modules/locale-tests (configure.ac): Test for newlocale function.
1585 * tests/test-locale.c: When the system has extended locale functions,
1586 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
1588 locale: Make locale_t available when possible.
1589 * lib/locale.in.h: Include <xlocale.h> when it exists.
1590 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
1591 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
1592 * modules/locale (Depends-on): Add extensions.
1593 (Makefile.am): Also substitute HAVE_XLOCALE_H.
1594 * doc/posix-headers/locale.texi: Document the problem with locale_t.
1596 2009-11-22 Bruno Haible <bruno@clisp.org>
1599 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
1601 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1602 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1603 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1605 2009-11-22 Bruno Haible <bruno@clisp.org>
1607 error: account for the possibility of freopen (stdout).
1608 * lib/error.c: Include <unistd.h>.
1609 (flush_stdout): New function, extracted from error and error_at_line.
1610 Determine stdout's fd dynamically.
1611 (error, error_at_line): Invoke flush_stdout.
1612 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
1613 * modules/error (Depends-on): Add unistd.
1615 2009-11-22 Bruno Haible <bruno@clisp.org>
1617 diffseq: Add comment.
1618 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
1620 2009-11-22 Jim Meyering <meyering@redhat.com>
1622 c-stack: avoid defining an unused static function
1623 * lib/c-stack.c (find_stack_direction): Do not define this function
1624 when it will not be used.
1626 diffseq: avoid spurious gcc warnings
1627 * lib/diffseq.h (IF_LINT2): Define.
1628 (compareseq): Use it to initialize two members of "part".
1629 This avoids two used-uninitialized warnings.
1631 2009-11-21 Jim Meyering <meyering@redhat.com>
1633 c-stack: avoid "ignoring return value of `write'" warning
1634 * lib/c-stack.c: Include "ignore-value.h".
1635 (die): Explicitly ignore each write return value.
1636 * modules/c-stack (Depends-on): Add ignore-value.
1638 2009-11-21 Bruno Haible <bruno@clisp.org>
1640 diffseq: reduce scope of variable 'best'.
1641 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
1642 variable, earlier used for two different purposes.
1644 2009-11-21 Jim Meyering <meyering@redhat.com>
1646 diffseq: remove useless assignment to "best"
1647 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
1648 assignment. At that point "best" is already guaranteed to be zero.
1650 2009-11-20 Eric Blake <ebb9@byu.net>
1652 build: mention ftp redirector in release announcements
1653 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
1654 values that used to come from cfg.mk; mention FTP redirect URL.
1655 * build-aux/announce-gen: Mention the mirror list.
1656 Suggested by Karl Berry.
1658 nanosleep: improve port to mingw
1659 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
1660 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
1661 LIB_NANOSLEEP, but only when needed.
1662 * modules/select (Link): Document LIBSOCKET.
1663 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
1666 nanosleep: work around cygwin bug
1667 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
1668 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
1670 (getnow): Delete, not needed.
1671 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
1673 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
1674 clock-time, gettime.
1675 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
1677 * modules/nanosleep-tests: New test.
1678 * tests/test-nanosleep.c: New file.
1680 sleep: work around cygwin bug
1681 * lib/sleep.c (rpl_sleep): Work around the bug.
1682 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
1683 (gl_PREREQ_SLEEP): Delete unused macro.
1684 * modules/sleep (Depends-on): Add verify.
1685 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
1686 * modules/unistd (Makefile.am): Substitute witness.
1687 * lib/unistd.in.h (sleep): Update prototype.
1688 * doc/posix-functions/sleep.texi (sleep): Document the bug.
1689 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
1690 * modules/sleep-tests (Depends-on): Check for alarm.
1692 2009-11-20 Jim Meyering <meyering@redhat.com>
1694 maint.mk: improve sc_prohibit_magic_number_exit
1695 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
1696 so it does not match uses like System.exit(1).
1697 Add comments showing how to correct all offenders.
1699 2009-11-19 Eric Blake <ebb9@byu.net>
1701 xalloc-die-tests: add missing library
1702 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
1704 test-xvasprintf: silence compiler warnings
1705 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
1706 empty string from gcc.
1708 2009-11-19 Jim Meyering <meyering@redhat.com>
1710 xfreopen: new module, from coreutils
1711 * modules/xfreopen: New module.
1712 * lib/xfreopen.c: New file.
1713 * lib/xfreopen.h: New file.
1714 * MODULES.html.sh (File stream based Input/Output"): Add it.
1716 2009-11-19 Eric Blake <ebb9@byu.net>
1718 manywarnings: depend on warnings
1719 * modules/manywarnings (Depends-on): Add warnings.
1721 build: avoid compiler warnings
1722 * lib/select.c (rpl_select): Delete unused variable.
1723 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
1725 2009-11-18 Eric Blake <ebb9@byu.net>
1727 tests: avoid false negative with --with-packager
1728 * tests/test-version-etc.sh: Discard packager information.
1729 * tests/test-argp-version-etc-1.sh: Likewise.
1730 Reported by Mike Frysinger.
1732 utimens: fix regression on Solaris
1733 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
1734 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
1735 can only change fd timestamps via futimesat. Instead, use an
1736 additional witness macro to avoid BSD bug.
1737 Reported by Jim Meyering.
1739 2009-11-17 Eric Blake <ebb9@byu.net>
1741 usleep: use it to simplify tests
1742 * modules/stat-time-tests (Depends-on): Add usleep.
1743 (configure.ac): Drop usleep check.
1744 * modules/chown-tests (Depends-on, configure.ac): Likewise.
1745 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
1746 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
1747 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
1748 * modules/openat-tests (Depends-on, configure.ac): Likewise.
1749 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
1750 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
1751 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
1753 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
1754 * tests/test-lchown.h (nap): Likewise.
1755 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
1756 * tests/test-stat-time.c (nap): Likewise.
1757 * tests/test-utimens-common.h (nap): Update comments.
1760 * modules/usleep: New file.
1761 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
1762 * lib/usleep.c (usleep): Likewise.
1763 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
1764 * modules/unistd (Makefile.am): Substitute witnesses.
1765 * lib/unistd.in.h (usleep): Add declaration.
1766 * doc/pastposix-functions/usleep.texi (usleep): Document this.
1767 * MODULES.html.sh (Date and time): Likewise.
1768 * modules/usleep-tests (Depends-on): New test.
1769 * tests/test-usleep.c: New file.
1771 chown: work around OpenBSD bug
1772 * lib/chown.c (rpl_chown): Work around the bug.
1773 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
1774 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
1775 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
1776 * modules/chown (Depends-on): Add stdbool.
1777 * modules/lchown (Depends-on): Likewise.
1778 * doc/posix-functions/chown.texi (chown): Document the bug.
1779 * doc/posix-functions/lchown.texi (lchown): Likewise.
1780 * tests/test-lchown.h (test_chown): Relax test.
1782 mkstemp: avoid conflict with C++ keyword template
1783 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
1784 * lib/mkostemp.c (mkostemp): Likewise.
1785 * lib/mkostemps.c (mkostemps): Likewise.
1786 * lib/mkstemp.c (mkstemp): Likewise.
1787 * lib/mkstemps.c (mkstemps): Likewise.
1789 xalloc-die-tests: optimize
1790 * tests/test-xalloc-die.sh: Reduce number of processes.
1792 2009-11-17 Simon Josefsson <simon@josefsson.org>
1794 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
1795 patch from ludo@gnu.org (Ludovic Courtès).
1797 2009-11-17 Jim Meyering <meyering@redhat.com>
1799 version-etc: use proper license string
1800 * modules/version-etc (License): Use LGPL, not LGPLv3+.
1801 * modules/version-etc-fsf: Likewise.
1803 2009-11-17 Simon Josefsson <simon@josefsson.org>
1805 * tests/test-xalloc-die.sh: Add license. Check that nothing is
1806 printed to stdout. Deal with EOL differences.
1808 2009-11-17 Eric Blake <ebb9@byu.net>
1810 unsetenv: work around Solaris bug
1811 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
1812 * lib/unsetenv.c (rpl_unsetenv): Work around it.
1813 Reported by Jim Meyering.
1815 vasnprintf: avoid compiler warnings
1816 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
1818 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
1820 2009-11-17 Simon Josefsson <simon@josefsson.org>
1822 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
1823 settings since xalloc-die is no longer the self test,
1826 2009-11-17 Jim Meyering <meyering@redhat.com>
1828 test-xalloc-die.sh: make the code agree with the commit log
1829 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
1830 at the end, just in case you happen to have a test-xalloc-die
1831 program in some other PATH directory.
1833 test-xalloc-die.sh: fix a portability bug
1834 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
1835 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
1836 Otherwise, argv[0] (as often seen in diagnostics) would be too
1837 system-dependent, sometimes with, and sometimes without the leading "./".
1839 version-etc-fsf: relax license to LGPLv3+
1840 * modules/version-etc-fsf (License): Relax license.
1842 2009-11-16 Eric Blake <ebb9@byu.net>
1844 xalloc-die-tests: avoid printing null pointer
1845 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
1847 * tests/test-xalloc-die.c (program_name): Declare.
1848 * tests/test-xalloc-die.sh (tmpfiles): New file.
1850 setenv, unsetenv: work around various bugs
1851 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
1852 (setenv) [HAVE_SETENV]: Work around bugs.
1853 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
1854 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
1856 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
1857 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
1858 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
1859 * modules/stdlib (Makefile.am): Update substitutions.
1860 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
1861 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
1862 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
1863 * modules/setenv-tests: New test.
1864 * modules/unsetenv-tests: Likewise.
1865 * tests/test-setenv.c: New file.
1866 * tests/test-unsetenv.c: Likewise.
1868 2009-11-16 Jim Meyering <meyering@redhat.com>
1870 version-etc: relax license to LGPLv3+
1871 * modules/version-etc (License): Relax license.
1873 better AC_REQUIRE expanded-before-required-warning avoidance
1874 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
1875 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
1876 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
1877 which is no longer needed.
1879 2009-11-16 Eric Blake <ebb9@byu.net>
1881 test-freading: clean up temporary file
1882 * tests/test-freading.c (main): Remove file on success, and use
1883 ASSERT more liberally.
1884 Reported by Jim Meyering.
1886 2009-11-16 Jim Meyering <meyering@redhat.com>
1888 avoid new AC_REQUIRE expanded-before-required warnings
1889 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
1891 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
1892 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
1894 2009-11-15 Simon Josefsson <simon@josefsson.org>
1896 * tests/test-xalloc-die.c: New file.
1897 * modules/xalloc-die-tests: New file.
1898 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
1899 XFAIL_TESTS so it can be appended by modules.
1901 2009-11-15 Simon Josefsson <simon@josefsson.org>
1903 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
1904 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
1906 2009-11-14 Eric Blake <ebb9@byu.net>
1908 fnmatch: avoid compiler warning
1909 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
1910 to silence compiler warning about mismatch signedness in ?:.
1911 Reported by Robert Millan.
1913 intprops: add double-inclusion guard
1914 * lib/intprops.h: Allow idempotent includes.
1915 Suggested by Bruce Korb.
1917 openat: detect Solaris fchownat bug
1918 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
1919 penalizing glibc chownat when only lchownat is broken.
1920 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
1921 trailing slash bugs.
1922 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
1923 * modules/openat-tests (Files): Include more files.
1924 (Depends-on): Add mgetgroups, sleep, stat-time.
1925 (configure.ac): Add additional checks.
1926 (Makefile.am): Build new test.
1927 * tests/test-fchownat.c: New file.
1929 lchown: detect Solaris and FreeBSD bug
1930 * lib/lchown.c (rpl_lchown): Work around bug.
1931 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
1932 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1933 * modules/unistd (Makefile.am): Populate it.
1934 * lib/unistd.in.h (lchown): Update declaration.
1935 * doc/posix-functions/lchown.texi (lchown): Document the bug.
1936 * modules/lchown-tests: New file.
1937 * tests/test-lchown.h (test_lchown): Likewise.
1938 * tests/test-lchown.c (main): Likewise.
1940 chown: detect Solaris and FreeBSD bug
1941 * lib/chown.c (rpl_chown): Work around bug.
1942 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
1943 (gl_PREREQ_CHOWN): Delete.
1944 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1945 * modules/unistd (Makefile.am): Populate it.
1946 * lib/unistd.in.h (chown): Update declaration.
1947 * lib/lchown.c (chown): Update client.
1948 * modules/lchown (Depends-on): Add lstat.
1949 * doc/posix-functions/chown.texi (chown): Document the bug.
1950 * doc/posix-functions/getgroups.texi (getgroups): Document
1952 * modules/chown-tests: New file.
1953 * tests/test-chown.h (test_chown): Likewise.
1954 * tests/test-chown.c (main): Likewise.
1956 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
1958 gnulib-tool: correctly detect absence of m4 directories
1959 * gnulib-tool: Avoid extra newline on data passed to wc -l.
1961 2009-11-14 Jim Meyering <meyering@redhat.com>
1963 maint.mk: Prohibit inclusion of "xalloc.h" without use.
1964 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
1966 2009-11-14 John W. Eaton <jwe@gnu.org>
1968 strftime.h: wrap funtion declaration in extern "C" block
1969 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
1971 2009-11-13 Eric Blake <ebb9@byu.net>
1973 getgroups: avoid compiler warning
1974 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
1976 getgroups: work around FreeBSD bug
1977 * lib/getgroups.c (rpl_getgroups): Work around the bug.
1978 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
1979 * doc/posix-functions/getgroups.texi (getgroups): Document it.
1980 * tests/test-getgroups.c (main): Fix buffer overrun.
1982 getgroups: avoid compilation failure
1983 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
1984 * modules/getgroups (Depends-on): Add stdint.
1986 2009-11-13 Jim Meyering <meyering@redhat.com>
1988 test-getgroups: avoid compilation failure
1989 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
1991 2009-11-13 Eric Blake <ebb9@byu.net>
1993 mgetgroups: new module, taken from coreutils
1994 * modules/mgetgroups: New file.
1995 * lib/mgetgroups.h: Likewise.
1996 * lib/mgetgroups.c (mgetgroups): Likewise.
1997 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
1998 * MODULES.html.sh (Users and groups): Mention it.
2000 getgroups: don't expose GETGROUPS_T to user
2001 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
2002 an element at a time if GETGROUPS_T is wrong size.
2003 * lib/getugroups.h (getugroups): Change signature.
2004 * lib/unistd.in.h (getgroups): Likewise.
2005 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
2006 signature needs fixing.
2007 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
2009 * modules/group-member (Depends-on): Add getgroups.
2010 * lib/group-member.c (group_info, get_group_info): Use gid_t.
2011 (group_member): Rely on getgroups replacement.
2012 * lib/getugroups.c (getugroups): Use gid_t.
2013 * tests/test-getgroups.c (main): Likewise.
2014 * NEWS: Mention the signature change.
2015 * doc/posix-functions/getgroups.texi (getgroups): Mention the
2016 problem with signature.
2017 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
2018 GETGROUPS_T is still useful for setgroups.
2020 getgroups, getugroups: provide stubs for mingw
2021 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
2022 * lib/getugroups.c (getugroups): Likewise.
2023 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
2024 function. Modernize replacement scheme.
2025 (gl_PREREQ_GETGROUPS): Delete.
2026 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
2027 * modules/getgroups (configure.ac): Declare witness.
2028 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
2029 * modules/unistd (Depends-on): Substitute witness.
2030 * lib/unistd.in.h (getgroups): Declare replacement.
2032 getgroups: avoid calling exit
2033 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
2035 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
2037 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
2038 exiting, in the rare case of malloc failure.
2040 getgroups: fix logic error
2041 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
2042 has more than 20 groups.
2043 * modules/getgroups-tests: New test.
2044 * tests/test-getgroups.c: New file.
2046 2009-11-13 Simon Josefsson <simon@josefsson.org>
2048 * tests/test-base64.c: Improve.
2050 2009-11-13 Simon Josefsson <simon@josefsson.org>
2052 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
2053 Blake <ebb9@byu.net>.
2055 2009-11-13 Simon Josefsson <simon@josefsson.org>
2057 * tests/test-xvasprintf.c: Add %s%s related checks.
2059 2009-11-12 Eric Blake <ebb9@byu.net>
2061 version-etc: match standards.texi style
2062 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
2063 and use <> only for URLs.
2065 2009-11-10 Kamil Dudka <kdudka@redhat.com>
2067 fts: do not fail on a submount during traversal
2068 * lib/fts.c (fts_build): Read the stat info again after opening
2069 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
2070 Original report at http://bugzilla.redhat.com/501848.
2072 2009-11-12 Jim Meyering <meyering@redhat.com>
2074 bootstrap: sync from coreutils
2075 * build-aux/bootstrap (bootstrap_epilogue): New function.
2076 Use git_modules_config in one more place. This make bootstrap's
2077 --gnulib-srcdir option more useful for testing.
2079 bootstrap: generalize autoheader check
2080 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
2083 2009-11-11 Eric Blake <ebb9@byu.net>
2085 mkfifoat: use new modules for Solaris and BSD bugs
2086 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
2087 * lib/mkfifoat.c (mknodat): Split...
2088 * lib/mknodat.c (mknodat): ...into new file.
2089 * modules/mkfifoat (Files): Ship new file.
2090 (Depends-on): Add mkfifo, mknod.
2091 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
2092 (Depends-on): Add symlink.
2093 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
2094 redundant with test_mkfifo.h.
2095 (do_mkfifoat, do_mknodat): New helpers.
2098 * modules/mknod: New file.
2099 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
2100 * lib/mknod.c (mknod): Likewise.
2101 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
2103 * modules/sys_stat (Makefile.am): Substitute them.
2104 * lib/sys_stat.in.h (mknod): Declare replacement.
2105 * MODULES.html.sh (Support for systems lacking POSIX:2008):
2107 * doc/posix-functions/mknod.texi (mknod): Likewise.
2108 * modules/mknod-tests: New test.
2109 * tests/test-mknod.c: Likewise.
2112 * modules/mkfifo: New file.
2113 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2114 * lib/mkfifo.c (mkfifo): Likewise.
2115 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
2117 * modules/sys_stat (Makefile.am): Substitute them.
2118 * lib/sys_stat.in.h (mkfifo): Declare replacement.
2119 * MODULES.html.sh (Support for systems lacking POSIX:2008):
2121 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
2122 * modules/mkfifo-tests: New test.
2123 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
2124 from test-mkfifoat.c.
2125 * tests/test-mkfifo.c: New file.
2127 readlink: detect FreeBSD bug
2128 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
2130 * doc/posix-functions/readlink.texi (readlink): Document the bug.
2131 * tests/test-readlink.h (test_readlink): Enhance test.
2133 symlink: detect FreeBSD bug
2134 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
2136 * doc/posix-functions/symlink.texi (symlink): Document the bug.
2137 * tests/test-symlink.h (test_symlink): Enhance test.
2139 2009-11-10 Eric Blake <ebb9@byu.net>
2141 link: detect FreeBSD bug
2142 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
2144 * doc/posix-functions/link.texi (link): Document the bug.
2145 * tests/test-link.h (test_link): Enhance test.
2146 * tests/test-linkat.c (main): Update caller.
2148 unlink, remove: detect FreeBSD bug
2149 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
2151 * doc/posix-functions/unlink.texi (unlink): Document the bug.
2152 * doc/posix-functions/remove.texi (remove): Likewise.
2153 * tests/test-unlink.h (test_unlink): Enhance test.
2154 * tests/test-remove.c (main): Likewise.
2156 2009-11-09 Eric Blake <ebb9@byu.net>
2158 rename: detect FreeBSD bug
2159 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
2161 * modules/renameat-tests (Depends-on): Add filenamecat.
2162 * tests/test-rename.h (test_rename): Allow one more errno.
2163 * tests/test-renameat.c (main): Likewise.
2164 * doc/posix-functions/rename.texi (rename): Document the bug.
2166 open: detect FreeBSD bug
2167 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
2169 * doc/posix-functions/open.texi (open): Document the bug.
2170 * doc/posix-functions/utimes.texi (utimes): Likewise.
2171 * tests/test-open.h (test_open): Add parameters, and test symlink
2173 * tests/test-open.c (main): Adjust caller.
2174 * tests/test-fcntl-safer.c (main): Likewise.
2175 * modules/open-tests (Depends-on): Add stdbool, symlink.
2176 * modules/fcntl-safer-tests (Depends-on): Likewise.
2177 * tests/test-openat.c (main): Add test-open tests.
2179 stat: detect FreeBSD bug
2180 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
2182 * doc/posix-functions/stat.texi (stat): Document the bug.
2183 * tests/test-stat.h (test_stat_func): Add argument.
2184 * tests/test-stat.c (main): Adjust caller.
2185 * tests/test-fstatat.c (main): Likewise.
2186 * modules/stat-tests (Depends-on): Add stdbool, symlink.
2187 Reported by Jim Meyering.
2189 2009-11-09 James Youngman <jay@gnu.org>
2191 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
2192 * lib/strftime.c: Correct placement of #include "ignore-value.h".
2194 2009-11-08 Jim Meyering <meyering@redhat.com>
2196 utimens: remove invalid futimesat call
2197 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
2198 It used the file descriptor of the target file as the DIR_FD
2199 parameter and NULL as the file name. That caused failure with
2200 errno == EFAULT on FreeBSD-8.0-rc2
2202 2009-11-07 Eric Blake <ebb9@byu.net>
2204 fflush, freadseek: use fseeko, not fseek
2205 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2206 (clear_ungetc_buffer): Avoid potential problems on large files.
2207 * lib/freadseek.c (freadseek): Likewise.
2208 * modules/freadseek (Depends-on): Add fseeko.
2209 * modules/fseek (configure.ac): Set a witness.
2210 * tests/test-fflush.c (main): Use fseeko.
2211 * tests/test-fpurge.c (fseek): Disable link warning.
2212 * tests/test-freadable.c (fseek): Likewise.
2213 * tests/test-freading.c (fseek): Likewise.
2214 * tests/test-fseeko.c (fseek): Likewise.
2215 * tests/test-ftell.c (fseek): Likewise.
2216 * tests/test-ftello.c (fseek): Likewise.
2217 * tests/test-fwritable.c (fseek): Likewise.
2218 * tests/test-fwriting.c (fseek): Likewise.
2220 2009-11-06 Simon Josefsson <simon@josefsson.org>
2222 * modules/memchr (Depends-on): Drop getpagesize dependency.
2224 2009-11-06 Simon Josefsson <simon@josefsson.org>
2226 * build-aux/pmccabe2html: Disable execute bit. Suggested by
2227 Reported by Ludovic Courtès.
2228 * build-aux/pmccabe2html: Improve example usage.
2229 * build-aux/pmccabe2html: Drop #! header. Doc fix.
2231 2009-11-06 Jim Meyering <meyering@redhat.com>
2233 do-release-commit-and-tag: New module.
2234 Automate the release-commit and tag process.
2235 * build-aux/do-release-commit-and-tag: New script, from coreutils.
2236 * modules/do-release-commit-and-tag: New file.
2237 * MODULES.html.sh (Support for maintaining and releasing): Add it.
2239 2009-11-06 Simon Josefsson <simon@josefsson.org>
2241 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
2242 because test-select.c uses inet_pton.
2244 2009-11-06 Simon Josefsson <simon@josefsson.org>
2246 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
2247 GETADDRINFO_LIB. Bump serial number.
2248 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
2249 Suggested by Eric Blake <ebb9@byu.net>.
2251 2009-11-05 Eric Blake <ebb9@byu.net>
2253 strtod: detect darwin bug
2254 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
2255 Reported by Leo Davis.
2257 freopen-safer: new module
2258 * modules/freopen-safer: New module.
2259 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
2260 * lib/freopen-safer.c (freopen_safer): New file.
2261 * lib/stdio-safer.h (freopen_safer): New declaration.
2262 * lib/stdio--.h (freopen): New override.
2263 * MODULES.html.sh (File stream based Input/Output): Mention it.
2264 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
2265 freopen-safer module.
2266 * doc/posix-functions/stderr.texi (stderr): Likewise.
2267 * doc/posix-functions/stdin.texi (stdin): Likewise.
2268 * doc/posix-functions/stdout.texi (stdout): Likewise.
2269 * modules/freopen-safer-tests: New test.
2270 * tests/test-reopen-safer.c: New file.
2272 2009-11-05 Jim Meyering <meyering@redhat.com>
2274 maint.mk: Prohibit inclusion of "close-stream.h" without use.
2275 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
2277 2009-11-05 Simon Josefsson <simon@josefsson.org>
2279 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
2281 2009-11-05 Simon Josefsson <simon@josefsson.org>
2283 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
2285 2009-11-05 Simon Josefsson <simon@josefsson.org>
2288 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
2289 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2291 2009-11-05 Simon Josefsson <simon@josefsson.org>
2293 * tests/test-func.c: Also test value of __func__.
2295 2009-11-05 Simon Josefsson <simon@josefsson.org>
2297 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
2298 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
2300 2009-11-05 Bruno Haible <bruno@clisp.org>
2303 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
2304 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2305 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
2307 2009-11-05 Bruno Haible <bruno@clisp.org>
2309 Tests for module 'inet_pton'.
2310 * modules/inet_pton-tests: New file.
2311 * tests/test-inet_pton.c: New file.
2313 2009-11-05 Bruno Haible <bruno@clisp.org>
2315 Tests for module 'inet_ntop'.
2316 * modules/inet_ntop-tests: New file.
2317 * tests/test-inet_ntop.c: New file.
2319 2009-11-04 Eric Blake <ebb9@byu.net>
2321 stdlib-safer: wrap all mkstemp variants
2322 * modules/mkostemp (configure.ac): Set witness.
2323 * modules/mkostemps (configure.ac): Likewise.
2324 * modules/mkstemps (configure.ac): Likewise.
2325 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
2326 (mkstemps_safer): Wrap more functions.
2327 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
2329 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
2330 (mkstemps_safer): Implement the wrappers.
2332 mkstemps, mkostemps: new modules
2333 * modules/mkostemps: New module.
2334 * modules/mkstemps: Likewise.
2335 * lib/mkostemps.c (mkostemps): New file.
2336 * lib/mkstemps.c (mkstemps): Likewise.
2337 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
2338 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
2339 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
2340 * modules/stdlib (Makefile.am): Substitute them.
2341 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
2342 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
2343 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2344 * doc/gnulib.texi (Glibc stdlib.h): Include them.
2345 * MODULES.html.sh (File system functions): Mention them.
2347 tempname: resync from glibc
2348 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
2349 same values for __GT_FILE as glibc. Abort even when assertions
2351 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
2352 match its value otherwise. Allow idempotent inclusion.
2353 * lib/mkdtemp.c (mkdtemp): Adjust caller.
2354 * lib/mkostemp.c (mkostemp): Likewise.
2355 * lib/mkstemp.c (mkstemp): Likewise.
2356 * lib/tmpfile.c (tmpfile): Likewise.
2357 * NEWS: Document this.
2359 utimens: fix use of futimens on older Linux
2360 * lib/utimens.c (fdutimens): Use updated, rather than original,
2361 timespec to avoid bug in older Linux kernel.
2362 Reported by Simon Josefsson.
2364 2009-11-04 Bruno Haible <bruno@clisp.org>
2366 Make num_processors more flexible and consistent.
2367 * lib/nproc.h (enum nproc_query): New type.
2368 (num_processors): Add a 'query' argument.
2369 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
2370 (num_processors): Add a 'query' argument. Test the value of the
2371 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
2372 mingw, count the number of CPUs available for the current process.
2373 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
2374 Check for sched_getaffinity and sched_getaffinity_np.
2375 * modules/nproc (Depends-on): Add c-ctype, extensions.
2376 * NEWS: Mention the change.
2378 2009-11-03 Bruno Haible <bruno@clisp.org>
2380 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
2382 2009-11-03 Jim Meyering <meyering@redhat.com>
2384 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
2385 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
2388 2009-11-02 Eric Blake <ebb9@byu.net>
2390 mktime, timegm: share common declaration
2391 * lib/mktime-internal.h: New file.
2392 * lib/mktime.c: Use it rather than open-coding a declaration.
2393 * lib/timegm.c: Likewise.
2394 * modules/mktime (Files): Ship it.
2395 * modules/timegm (Files): Likewise.
2396 Suggested by Bruno Haible.
2398 test-update-copyright: update test to match script changes
2399 * tests/test-update-copyright.sh: Avoid hard-coding perl
2400 location. Don't update *.bak created by earlier runs.
2402 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
2403 Simon Josefsson <simon@josefsson.org>
2404 Bruno Haible <bruno@clisp.org>
2406 Fix link error on Solaris 8.
2407 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
2408 also in libnsl. Define also INET_PTON_LIB.
2409 * modules/inet_pton (Link): New section.
2411 2009-11-02 Simon Josefsson <simon@josefsson.org>
2412 Bruno Haible <bruno@clisp.org>
2414 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
2415 * modules/inet_ntop (Link): New section.
2416 Reported by Boyan Kasarov <bkasarov@gmail.com>.
2418 2009-11-02 Eric Blake <ebb9@byu.net>
2420 maint: avoid compiler warnings in m4 macros
2421 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
2422 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
2424 2009-11-02 Simon Josefsson <simon@josefsson.org>
2426 * m4/pmccabe2html.m4: Remove file.
2427 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
2428 function. Change maintainer.
2429 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
2430 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
2433 2009-10-31 Eric Blake <ebb9@byu.net>
2435 fseeko: fix m4 regression
2436 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
2437 regression from 2009-10-27.
2438 Reported by Ralf Wildenhues.
2440 2009-10-31 Jim Meyering <meyering@redhat.com>
2442 inttostr: aesthetics and improved (compile-time) safety
2443 Define inttype_is_signed rather than inttype_is_unsigned,
2444 since the sole use is via "#if inttype_is_signed".
2445 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
2446 inttype_is_unsigned.
2447 * lib/offtostr.c (inttype_is_signed): Likewise.
2448 * lib/uinttostr.c (inttype_is_signed): Likewise.
2449 * lib/umaxtostr.c (inttype_is_signed): Likewise.
2450 * lib/inttostr.c (inttostr): Use verify to cross-check the
2451 inttype_is_signed value and the signedness of the actual type.
2452 * modules/inttostr (Depends-on): Add verify.
2454 2009-10-30 Eric Blake <ebb9@byu.net>
2456 build: avoid compiler warnings
2457 * lib/fchmodat.c (lchmod): Mark unused variables.
2458 * lib/getopt.c (_getopt_initialize): Likewise.
2459 * lib/mktime.c (__mktime_internal): Provide prototype.
2460 * lib/inttostr.c (inttostr): Avoid compiler warning even with
2461 older gcc that do not understand #pragma GCC diagnostic.
2462 * lib/uinttostr.c (inttype_is_unsigned): Define.
2463 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
2465 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2467 stat: fix compilation on AIX
2468 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
2469 only see struct stat64.
2471 2009-10-30 Eric Blake <ebb9@byu.net>
2473 exclude: make more robust
2474 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
2475 rather than masking a coding bug.
2476 Suggested by Bruno Haible.
2478 2009-10-30 Jim Meyering <meyering@redhat.com>
2480 perl scripts: remove #!/usr/bin/perl in favor of more portable...
2481 Rather than putting #!/usr/bin/perl on the first line,
2482 start with a variant of what's recommended by "man perlrun" that
2483 invokes the first "perl" program from your shell's search path.
2484 * build-aux/gitlog-to-changelog: Replace #!... as above.
2485 Add a "Local Variables" perl mode setting.
2486 Prompted by a patch from Ludovic Courtès.
2487 Improved by Eric Blake.
2488 * build-aux/useless-if-before-free: Likewise.
2489 * build-aux/announce-gen: Likewise.
2490 * build-aux/update-copyright: Likewise.
2492 2009-10-29 Eric Blake <ebb9@byu.net>
2494 filenamecat-lgpl: adjust clients
2495 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
2497 * modules/renameat (Depends-on): Likewise.
2499 filenamecat: split into filenamecat-lgpl
2500 * modules/filenamecat-lgpl: New module.
2501 * modules/filenamecat (Files): Move library-safe files into
2503 (Depends-on): Add filenamecat-lgpl.
2504 (configure.ac): Declare witness.
2505 * lib/filenamecat.h (file_name_concat): Only declare when using
2507 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
2509 * lib/filenamecat-lgpl.c: ...into new file.
2510 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
2511 (gl_FILE_NAME_CONCAT): Use it.
2512 * MODULES.html.sh (File system functions): Mention new module.
2514 argp: avoid memory leak
2515 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
2516 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
2517 base_name, since the latter malloc()s and can call exit().
2518 Leak introduced 2006-07-03.
2520 dirname-lgpl: adjust clients that don't need full dirname
2521 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
2522 * modules/filenamecat (Depends-on): Likewise.
2523 * modules/linkat (Depends-on): Likewise.
2524 * modules/mkancesdirs (Depends-on): Likewise.
2525 * modules/mkdir (Depends-on): Likewise.
2526 * modules/openat (Depends-on): Likewise.
2527 * modules/savewd (Depends-on): Likewise.
2528 * modules/rename (Depends-on): Likewise.
2529 (License): Relax license.
2530 * modules/mkdir-tests (Depends-on): Drop progname.
2531 (Makefile.am): Delete unneeded LDADD.
2532 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
2534 dirname: split into dirname-lgpl
2535 * modules/dirname-lgpl: New module.
2536 * modules/dirname (Files): Move library-safe files into
2538 (Depends-on): Add dirname-lgpl.
2539 (configure.ac): Declare witness.
2540 * modules/double-slash-root (License): Relax license.
2541 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
2543 * lib/dirname.c (dir_len, mdir_name): Move...
2544 * lib/dirname-lgpl.c: ...into new file.
2545 * lib/basename.c (last_component, base_len): Move...
2546 * lib/basename-lgpl.c: ...into new file.
2547 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
2548 (gl_DIRNAME): Use it.
2549 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
2551 * modules/dirname-tests (Depends-on): Add progname.
2552 * tests/test-dirname.c (program_name): Delete.
2554 mkdir: make safe for libraries
2555 * modules/mkdir (Depends-on): Drop xalloc.
2556 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
2559 tests: avoid some compiler warnings
2560 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
2562 * tests/test-memchr.c (main): Avoid type mismatch.
2563 * tests/test-arpa_inet.c (main): Avoid unused parameters.
2564 * tests/test-base64.c (main): Likewise.
2565 * tests/test-getdelim.c (main): Likewise.
2566 * tests/test-gethostname.c (main): Likewise.
2567 * tests/test-getline.c (main): Likewise.
2568 * tests/test-netinet_in.c (main): Likewise.
2569 * tests/test-select.c (open_server_socket, main): Likewise.
2570 * tests/test-select-stdin.c (main): Likewise.
2571 * tests/test-sockets.c (main): Likewise.
2572 * tests/test-strsignal.c (main): Likewise.
2573 * tests/test-sys_select.c (main): Likewise.
2574 * tests/test-sys_socket.c (main): Likewise.
2575 * tests/test-u64.c (main): Likewise.
2576 * tests/test-xfprintf-posix.c (main): Likewise.
2577 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
2579 sockets: avoid compiler warning
2580 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
2582 maint: detect usage(1) and other suspicious exits
2583 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
2585 2009-10-29 Jim Meyering <meyering@redhat.com>
2587 timespec: long-to-int truncation could make timespec_cmp malfunction
2588 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
2589 a multiple of 2^32 nanoseconds as no difference.
2591 2009-10-28 Jim Meyering <meyering@redhat.com>
2593 fprintftime: wrap macro code argument in "do {...} while(0)"
2594 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
2595 cpy macro must be a statement that can be followed by a semicolon.
2596 Now that the else clause contains a comment and is hence longer
2597 than one line, I require curly braces. That in turn requires
2598 that we wrap this code block in the standard do...while(0).
2600 fprintftime: remove stray semicolon from previous change
2601 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
2603 fprintftime: avoid a warning about ignored fwrite return value
2604 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
2605 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
2607 * modules/fprintftime (Depends-on): Add ignore-value.
2609 exclude: avoid an unwarranted warning
2610 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
2612 2009-10-27 Eric Blake <ebb9@byu.net>
2614 fseek: avoid compilation failure when fflush is replaced
2615 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
2616 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
2618 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
2619 module is not in use; since REPLACE_FSEEK worked otherwise.
2620 (GNULIB_FTELLO): Likewise for ftell.
2621 Reported by Ian Beckwith and others.
2623 2009-10-27 Bruno Haible <bruno@clisp.org>
2625 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
2626 Reported by Jim Meyering.
2628 2009-10-27 Jim Meyering <jim@meyering.net>
2629 Bruno Haible <bruno@clisp.org>
2631 Avoid warning despite dropping the return value of fwrite.
2632 * lib/unicodeio.c: Include ignore-value.h.
2633 (fwrite_success_callback): Explicitly ignore fwrite's return value.
2634 * modules/unicodeio (Depends-on): Add ignore-value.
2636 2009-10-26 Eric Blake <ebb9@byu.net>
2638 areadlinkat: fix fallback path
2639 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
2642 2009-10-22 Pádraig Brady <P@draigBrady.com>
2644 Use a better IO block size for modern systems
2645 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
2646 * lib/md2.c: Likewise.
2647 * lib/md4.c: Likewise.
2648 * lib/md5.c: Likewise.
2649 * lib/sha1.c: Likewise.
2650 * lib/sha256.c: Likewise.
2651 * lib/sha512.c: Likewise.
2653 2009-10-22 Eric Blake <ebb9@byu.net>
2655 tests: avoid several compiler warnings
2656 * tests/test-getcwd.c (main): Avoid buffer underflow.
2657 * tests/test-getdate.c (main): String literals are not safe with
2658 putenv, so use setenv. Declare unused argument.
2659 * modules/getdate-tests (Depends-on): Add setenv.
2660 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
2661 problems with string literals in char *.
2662 * tests/test-hash.c (main): Avoid shadowing declaration.
2663 (insert_new): Treat string literals as char const *.
2664 * tests/test-getopt.h (test_getopt): Likewise.
2665 (getopt_loop): Alter types to minimize casting elsewhere.
2666 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
2667 (test_getopt_long_posix): Likewise.
2668 (do_getopt_long): Add wrapper to minimize casting.
2669 * tests/test-atexit.c (clear_temp_file): Use void.
2670 * tests/test-areadlink-with-size.c (main): Declare unused
2672 * tests/test-areadlink.c (main): Likewise.
2673 * tests/test-areadlinkat-with-size.c (main): Likewise.
2674 * tests/test-areadlinkat.c (main): Likewise.
2675 * tests/test-canonicalize-lgpl.c (main): Likewise.
2676 * tests/test-canonicalize.c (main): Likewise.
2677 * tests/test-dirent-safer.c (main): Likewise.
2678 * tests/test-dirname.c (main): Likewise.
2679 * tests/test-dup2.c (main): Likewise.
2680 * tests/test-fchdir.c (main): Likewise.
2681 * tests/test-fcntl-h.c (main): Likewise.
2682 * tests/test-fcntl-safer.c (main): Likewise.
2683 * tests/test-fdopendir.c (main): Likewise.
2684 * tests/test-fdutimensat.c (main): Likewise.
2685 * tests/test-fflush.c (main): Likewise.
2686 * tests/test-filenamecat.c (main): Likewise.
2687 * tests/test-filevercmp.c (main): Likewise.
2688 * tests/test-fopen-safer.c (main): Likewise.
2689 * tests/test-fopen.c (main): Likewise.
2690 * tests/test-fpending.c (main): Likewise.
2691 * tests/test-fpurge.c (main): Likewise.
2692 * tests/test-freading.c (main): Likewise.
2693 * tests/test-fstatat.c (main): Likewise.
2694 * tests/test-fsync.c (main): Likewise.
2695 * tests/test-futimens.c (main): Likewise.
2696 * tests/test-getndelim2.c (main): Likewise.
2697 * tests/test-gettimeofday.c (main): Likewise.
2698 * tests/test-getopt.c (main): Likewise.
2699 * tests/test-i-ring.c (main): Likewise.
2700 * tests/test-inttypes.c (main): Likewise.
2701 * tests/test-link.c (main): Likewise.
2702 * tests/test-lstat.c (main): Likewise.
2703 * tests/test-math.c (main): Likewise.
2704 * tests/test-md5.c (main): Likewise.
2705 * tests/test-memchr2.c (main): Likewise.
2706 * tests/test-memrchr.c (main): Likewise.
2707 * tests/test-mkdir.c (main): Likewise.
2708 * tests/test-mkdirat.c (main): Likewise.
2709 * tests/test-mkfifoat.c (main): Likewise.
2710 * tests/test-open.c (main): Likewise.
2711 * tests/test-openat-safer.c (main): Likewise.
2712 * tests/test-openat.c (main): Likewise.
2713 * tests/test-quotearg.c (main): Likewise.
2714 * tests/test-rawmemchr.c (main): Likewise.
2715 * tests/test-readlink.c (main): Likewise.
2716 * tests/test-remove.c (main): Likewise.
2717 * tests/test-rename.c (main): Likewise.
2718 * tests/test-renameat.c (main): Likewise.
2719 * tests/test-rmdir.c (main): Likewise.
2720 * tests/test-sha1.c (main): Likewise.
2721 * tests/test-signal.c (main): Likewise.
2722 * tests/test-sigaction.c (main): Likewise.
2723 * tests/test-stat.c (main): Likewise.
2724 * tests/test-stat-time.c (main): Likewise.
2725 * tests/test-stddef.c (main): Likewise.
2726 * tests/test-stdint.c (main): Likewise.
2727 * tests/test-stdio.c (main): Likewise.
2728 * tests/test-stdlib.c (main): Likewise.
2729 * tests/test-strchrnul.c (main): Likewise.
2730 * tests/test-strerror.c (main): Likewise.
2731 * tests/test-string.c (main): Likewise.
2732 * tests/test-strtod.c (main): Likewise.
2733 * tests/test-strverscmp.c (main): Likewise.
2734 * tests/test-symlink.c (main): Likewise.
2735 * tests/test-symlinkat.c (main): Likewise.
2736 * tests/test-sys_stat.c (main): Likewise.
2737 * tests/test-sys_time.c (main): Likewise.
2738 * tests/test-time.c (main): Likewise.
2739 * tests/test-unistd.c (main): Likewise.
2740 * tests/test-unlink.c (main): Likewise.
2741 * tests/test-unlinkat.c (main): Likewise.
2742 * tests/test-utimens.c (main): Likewise.
2743 * tests/test-utimensat.c (main): Likewise.
2744 * tests/test-version-etc.c (main): Likewise.
2745 * tests/test-wchar.c (main): Likewise.
2746 * tests/test-wctype.c (main): Likewise.
2747 * tests/test-xprintf-posix.c (main): Likewise.
2748 * tests/test-posixtm.c (main): Likewise.
2749 (STREQ): Delete unused macro.
2750 * tests/test-linkat.c (main): Declare unused arguments. Avoid
2752 * tests/test-memchr.c (main): Likewise.
2754 2009-10-21 Eric Blake <ebb9@byu.net>
2756 areadlinkat: avoid failure on older glibc
2757 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
2758 rather than mis-comparing 0 against FUNC_RESULT of char*.
2760 2009-10-21 Bruno Haible <bruno@clisp.org>
2762 * modules/stpncpy (License): Relicense under LGPLv2+.
2763 Reported by David Lutterkort <lutter@redhat.com>.
2765 2009-10-20 Eric Blake <ebb9@byu.net>
2767 utimensat: work around Solaris 9 bug
2768 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
2769 has trailing slash bugs.
2770 * tests/test-lutimens.h (test_lutimens): Enhance test.
2771 * tests/test-utimens.h (test_utimens): Likewise.
2772 * doc/posix-functions/utime.texi (utime): Enhance documentation.
2773 * doc/posix-functions/utimes.texi (utimes): Likewise.
2774 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2775 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
2776 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
2777 * doc/posix-functions/futimens.texi (futimens): Likewise.
2779 fdutimensat: new module
2780 * modules/fdutimensat: New file.
2781 * lib/fdutimensat.c (fdutimensat): Likewise.
2782 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
2783 * MODULES.html.sh (File system functions): Mention module.
2784 * modules/fdutimensat-tests: New test.
2785 * tests/test-fdutimensat.c: Likewise.
2787 doc: regenerate INSTALL
2788 * doc/INSTALL: Reflect recent autoconf update.
2789 * doc/INSTALL.ISO: Likewise.
2790 * doc/INSTALL.UTF-8: Likewise.
2792 2009-10-20 Pádraig Brady <P@draigBrady.com>
2794 acl: warn if ACL support is not detected
2795 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
2797 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
2799 * lib/nproc.h: Add extern "C" block for C++.
2801 2009-10-18 Reuben Thomas <rrt@sc3d.org>
2802 Bruno Haible <bruno@clisp.org>
2804 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
2805 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
2806 * doc/posix-functions/isalpha.texi: Likewise.
2807 * doc/posix-functions/isblank.texi: Likewise.
2808 * doc/posix-functions/iscntrl.texi: Likewise.
2809 * doc/posix-functions/isdigit.texi: Likewise.
2810 * doc/posix-functions/isgraph.texi: Likewise.
2811 * doc/posix-functions/islower.texi: Likewise.
2812 * doc/posix-functions/isprint.texi: Likewise.
2813 * doc/posix-functions/ispunct.texi: Likewise.
2814 * doc/posix-functions/isspace.texi: Likewise.
2815 * doc/posix-functions/isupper.texi: Likewise.
2816 * doc/posix-functions/isxdigit.texi: Likewise.
2818 2009-10-18 Bruno Haible <bruno@clisp.org>
2820 Tests for module 'isblank'.
2821 * modules/isblank-tests: New file.
2822 * tests/test-isblank.c: New file.
2824 New module 'isblank'.
2825 * lib/isblank.c: New file.
2826 * m4/isblank.m4: New file.
2827 * modules/isblank: New file.
2828 * doc/posix-functions/isblank.texi: Mention the new module.
2830 2009-10-18 Bruno Haible <bruno@clisp.org>
2833 * lib/ctype.in.h: New file.
2834 * m4/ctype.m4: New file.
2835 * modules/ctype: New file.
2836 * doc/posix-headers/ctype.texi: Mention the new module.
2838 2009-10-18 Jim Meyering <meyering@redhat.com>
2840 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
2841 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
2842 right after its initialization, rather than farther down.
2843 Keeping these in close proximity makes it easier to ensure
2844 that each such variable is initialized. E.g.,
2847 AC_SUBST([LIB_CLOCK_GETTIME])
2849 This change also increments these serial numbers.
2850 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
2851 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2852 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2854 2009-10-18 Bruno Haible <bruno@clisp.org>
2856 Don't let environment variables perturb build.
2857 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
2858 (gl_PREREQ_GETHRXTIME): ... not here.
2860 2009-10-18 Bruno Haible <bruno@clisp.org>
2862 Avoid symlink attack in localcharset module.
2863 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
2864 (O_NOFOLLOW): Define fallback.
2865 (get_charset_aliases): Don't open the file if it is a symbolic link.
2866 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
2868 (gl_FCNTL_H): Require it.
2869 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
2870 * modules/localcharset (Files): Add m4/fcntl_h.m4.
2871 Reported by Fergal Glynn <fglynn@veracode.com>.
2873 2009-10-18 Bruno Haible <bruno@clisp.org>
2875 Implement nproc for mingw.
2876 * lib/nproc.c: Include <windows.h>
2877 (num_processors): On native Windows platforms, try GetSystemInfo.
2879 2009-10-18 Bruno Haible <bruno@clisp.org>
2881 Implement nproc for IRIX.
2882 * lib/nproc.c: Include <sys/sysmp.h>.
2883 (num_processors): On IRIX systems, try sysmp.
2884 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
2886 2009-10-18 Bruno Haible <bruno@clisp.org>
2888 Implement nproc for HP-UX.
2889 * lib/nproc.c: Include <sys/pstat.h>
2890 (num_processors): On HP-UX systems, try pstat_getdynamic.
2891 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
2894 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
2895 Bruno Haible <bruno@clisp.org>
2897 Implement nproc for NetBSD, OpenBSD.
2898 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
2899 (ARRAY_SIZE): New macro.
2900 (num_processors): On BSD systems, try sysctl of HW_NCPU.
2901 * m4/nproc.m4: New file.
2902 * modules/nproc (Files): Add m4/nproc.m4.
2903 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
2904 (Makefile.am): Instead, augment lib_SOURCES.
2906 2009-10-18 Bruno Haible <bruno@clisp.org>
2908 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
2909 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
2912 2009-10-16 Eric Blake <ebb9@byu.net>
2914 utimensat: new module
2915 * modules/utimensat: New file.
2916 * lib/utimensat.c (utimensat): Likewise.
2917 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2918 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
2919 so we can work around Linux bugs.
2920 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
2921 * modules/sys_stat (Makefile.am): Substitute them.
2922 * lib/sys_stat.in.h (utimensat): Declare it.
2923 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
2924 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
2925 * modules/utimensat-tests: New test.
2926 * tests/test-utimensat.c: Likewise.
2928 utimens: let lutimens work on non-symlinks
2929 * lib/utimens.c (lutimens): Fall back to utimens rather than
2930 failing with ENOSYS, when file is not a symlink.
2931 (utimens): Reduce redirection.
2932 * tests/test-lutimens.h (test_lutimens): Update test to cover
2934 * tests/test-utimens.h (test_utimens): Update test to cover
2936 * tests/test-utimens.c (main): Update caller.
2938 utimens: cache whether utimensat syscall works
2939 * lib/utimens.c (utimensat_works_really): New cache variable.
2940 (fdutimens, lutimens): Use it to avoid failing syscall.
2942 test-stat-time, test-utimens: improve portability
2943 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
2944 ext4 on alpha, and for cygwin.
2945 * tests/test-utimens-common.h: New file.
2946 (nap): Factor delays into single function.
2947 * tests/test-lutimens.h (test_lutimens): Use new header.
2948 * tests/test-futimens.h (test_futimens): Likewise.
2949 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
2950 timestamps to occur from same machine, as was done previously for
2952 * modules/utimens-tests (Files): Ship new file.
2953 * modules/futimens-tests (Files): Likewise.
2954 Reported in part by Jim Meyering.
2956 sys_stat: sort replacement declarations
2957 * lib/sys_stat.in.h: Sort declarations.
2958 * lib/futimens.c (futimens): Fix typo.
2960 2009-10-15 Jim Meyering <meyering@redhat.com>
2962 don't let environment settings perturb build
2963 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
2964 could cause a configure-time and/or build-time malfunction.
2965 Typically, a configure-time function-in-library test is performed
2970 prefix_saved_LIBS=$LIBS
2971 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
2972 [test "$ac_cv_search_FUNC" = "none required" ||
2973 LIB_VAR=$ac_cv_search_FUNC])
2974 LIBS=$prefix_saved_LIBS
2976 However, in each of the files affected by this change, the LIB_VAR=
2977 initialization was omitted. Thus, when set in the environment, its
2978 value would propagate into generated Makefiles when FUNC is not found
2980 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
2981 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
2982 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
2984 2009-10-14 Eric Blake <ebb9@byu.net>
2986 fchdir: avoid infinite recursion in mingw
2987 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
2990 test-stat-time: port to mingw
2991 * tests/test-stat-time.c (force_unlink): Return a value.
2992 (test_ctime) [W32]: Fix compilation error.
2993 (nap): Don't call usleep with too large an argument. Use
2995 * doc/pastposix-functions/usleep.texi (usleep): Document the
2998 2009-10-13 Jim Meyering <meyering@redhat.com>
3000 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
3001 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
3002 * modules/pipe-filter-ii: Likewise.
3003 * modules/sys_socket-tests: Likewise.
3004 * modules/tsearch-tests: Likewise.
3005 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
3006 (check): Depend on it.
3008 2009-10-12 Eric Blake <ebb9@byu.net>
3010 utimens-tests: port to NFS file systems
3011 * tests/test-utimens.h (test_utimens): Refactor utimecmp
3012 comparisons to avoid spurious failures from timestamp drift
3013 between NFS machines.
3015 2009-10-12 Eric Blake <ebb9@byu.net>
3017 stat-time-tests: minor cleanups
3018 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
3019 * tests/test-stat-time.c (nap): Separate assignment from call.
3020 Suggested by Paolo Bonzini and Bruno Haible.
3022 sys_stat: guarantee struct timespec
3023 * lib/sys_stat.in.h (includes): Always include <time.h>
3024 * modules/sys_stat (Depends-on): Add time.
3025 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
3026 mode_t permission values.
3027 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
3028 get at subsecond timestamps.
3030 2009-10-10 Eric Blake <ebb9@byu.net>
3032 futimens: new module
3033 * modules/futimens: New file.
3034 * lib/futimens.c (futimens): Likewise.
3035 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3036 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
3037 we can work around Linux bugs.
3038 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
3039 * modules/sys_stat (Makefile.am): Substitute them.
3040 * lib/sys_stat.in.h (futimens): Declare it.
3041 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3042 * doc/posix-functions/futimens.texi (futimens): Likewise.
3043 * modules/futimens-tests: New test.
3044 * tests/test-futimens.c: Likewise.
3046 utimens: introduce fdutimens
3047 * lib/utimens.h (fdutimens): New prototype.
3048 * lib/utimens.c (gl_futimens): Move guts...
3049 (fdutimens): ...to new interface.
3050 * tests/test-utimens.c (do_fdutimens): Use it.
3052 utimens: add UTIME_NOW and UTIME_OMIT support
3053 * lib/utimens.c (validate_timespec, update_timespec): New helper
3055 (gl_futimens, lutimens): Use them.
3056 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
3058 (Link): Mention resulting library dependency.
3059 * modules/utimecmp (Link): Likewise.
3060 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
3061 (Makefile.am): Pick up library dependency.
3062 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
3064 * tests/test-sys_stat.c: Test the definitions.
3065 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
3066 * NEWS: Document library dependency.
3068 utimecmp: support symlink timestamps
3069 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
3070 hashing when possible. Use pathconf when available.
3071 (SYSCALL_RESOLUTION): Recognize tighter resolution.
3072 * modules/utimecmp (Depends-on): Add lstat.
3074 utimens: add lutimens interface
3075 * lib/utimens.c (lutimens): New function.
3076 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
3077 * lib/utimens.h (lutimens): Declare new interface.
3078 * tests/test-utimens.c (main): Enhance test.
3079 * tests/test-lutimens.h (test_lutimens): New file.
3080 * modules/utimens-tests (Files): Distribute it.
3081 (Depends-on): Add symlink.
3082 (configure.ac): Check for usleep.
3084 utimens: validate futimens usage
3085 * lib/utimens.c (gl_futimens): Require valid fd up front, using
3086 fewer syscalls on failure later on. Avoid compiler warning on
3088 * modules/utimens (Depends-on): Add dup2.
3091 * modules/utimens-tests: New test.
3092 * tests/test-utimens.h: New file.
3093 * tests/test-futimens.h: Likewise.
3094 * tests/test-utimens.c: Likewise.
3096 doc: mention timestamp portability issues
3097 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
3099 * doc/posix-functions/utime.texi (utime): Likewise.
3100 * doc/posix-functions/utimes.texi (utimes): Likewise.
3101 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
3103 * doc/posix-functions/futimens.texi (futimens): Mention utimens
3105 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3106 Mention weakness with symlink timestamps.
3107 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
3108 to utimensat/futimens instead.
3109 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
3111 test-dup2: enhance test
3112 * tests/test-dup2.c (main): Also check AT_FDCWD.
3114 test-stat-time: avoid more spurious failures
3115 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
3116 xfs; and avoid race if the two timestamps cross quantization edge.
3118 relocatable: prefer 'file system' over 'filesystem'
3119 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
3120 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
3121 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
3122 * doc/relocatable.texi (Enabling Relocatability): Likewise.
3123 * lib/relocatable.c (compute_curr_prefix): Likewise.
3125 2009-10-10 Jim Meyering <meyering@redhat.com>
3127 stat-time-tests: check for the usleep function
3128 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
3130 2009-10-10 Bruno Haible <bruno@clisp.org>
3132 * modules/xnanosleep: Put the Link section after the Include section.
3134 2009-10-09 Eric Blake <ebb9@byu.net>
3136 dup2: work around FreeBSD 6.1 bug
3137 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
3138 * doc/posix-functions/dup2.texi (dup2): Document it.
3139 Reported by Nelson H. F. Beebe and Jim Meyering.
3141 test-stat-time: port to buggy NFS clients
3142 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
3143 (test_ctime): Also skip test if mtime and ctime are skewed.
3145 maint: prefer 'file system' over 'filesystem'
3146 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
3147 * doc/posix-functions/lstat.texi (lstat): Likewise.
3148 * lib/file-has-acl.c (file_has_acl): Likewise.
3149 * lib/fwriteerror.c [TEST]: Likewise.
3150 * tests/test-areadlink.h (test_areadlink): Likewise.
3151 * tests/test-areadlinkat-with-size.c (main): Likewise.
3152 * tests/test-areadlinkat.c (main): Likewise.
3153 * tests/test-canonicalize-lgpl.c (main): Likewise.
3154 * tests/test-canonicalize.c (main): Likewise.
3155 * tests/test-fstatat.c (main): Likewise.
3156 * tests/test-linkat.c (main): Likewise.
3157 * tests/test-lstat.h (test_lstat_func): Likewise.
3158 * tests/test-mkdir.h (test_mkdir): Likewise.
3159 * tests/test-readlink.h (test_readlink): Likewise.
3160 * tests/test-remove.c (main): Likewise.
3161 * tests/test-rename.h (test_rename): Likewise.
3162 * tests/test-renameat.c (main): Likewise.
3163 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3164 * tests/test-symlink.h (test_symlink): Likewise.
3165 * tests/test-symlinkat.c (main): Likewise.
3166 * tests/test-unlink.h (test_unlink_func): Likewise.
3167 * tests/test-unlinkat.c (main): Likewise.
3169 maint: make realtime library usage explicit
3170 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
3171 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
3172 * modules/settime (Link): Likewise.
3173 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
3175 test-stat-time: speed up execution
3176 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
3178 (nap): New helper function.
3179 (prepare_test): Use it to reduce sleep time.
3180 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
3182 * modules/stat-time-tests (configure.ac): Check for usleep.
3184 2009-10-09 Jim Meyering <meyering@redhat.com>
3186 selinux-h: always use getfilecon wrappers
3187 * lib/getfilecon.c: New file.
3188 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
3189 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
3190 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
3191 (fgetfilecon): Provide a stub.
3192 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
3193 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
3194 file unconditionally.
3195 When <selinux/selinux.h> is found, arrange to use wrappers.
3196 * modules/selinux-h (Files): Add getfilecon.c.
3197 (Makefile.am): Substitute include-next-related bits
3198 into the now-always-generated selinux/selinux.h file.
3199 * doc/glibc-functions/lgetfilecon.texi: New file.
3200 * doc/glibc-functions/fgetfilecon.texi: New file.
3201 * doc/glibc-functions/getfilecon.texi: New file.
3202 * doc/glibc-functions/getfilecon-desc.texi: New file.
3203 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
3204 which to pull in the new files.
3205 * MODULES.html.sh (Misc): Add selinux-h.
3207 2009-10-08 Jim Meyering <meyering@redhat.com>
3209 unistd: fix comment typo
3210 * lib/unistd.in.h (euidaccess): Fix a comment typo.
3212 2009-10-08 Eric Blake <ebb9@byu.net>
3214 areadlink: use SIZE_MAX consistently
3215 * modules/areadlink (Depends-on): Add stdint.
3216 * modules/areadlink-with-size (Depends-on): Likewise.
3217 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
3218 gives NULL; drop sys/types, since unistd gives size_t; and add
3219 stdint for SIZE_MAX.
3220 (SIZE_MAX): Rely on headers.
3221 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
3223 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
3224 (SIZE_MAX): Likewise.
3225 (INITIAL_BUF_SIZE): Turn into enum.
3226 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
3228 2009-10-08 Jim Meyering <meyering@redhat.com>
3230 areadlinkat: avoid compilation failure
3231 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
3232 Fix typo in comment.
3234 2009-10-07 Eric Blake <ebb9@byu.net>
3236 areadlinkat-with-size: new module
3237 * modules/areadlinkat-with-size: New module.
3238 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
3239 * lib/areadlink.h (areadlinkat): Declare it.
3240 * MODULES.html.sh (File system functions): Mention it.
3241 * modules/areadlinkat-with-size-tests: New test.
3242 * tests/test-areadlinkat-with-size.c: New file.
3244 xreadlinkat: new module
3245 * modules/xreadlinkat: New module.
3246 * lib/xreadlinkat.c (xreadlinkat): New file.
3247 * lib/xreadlink.h (xreadlinkat): Declare it.
3248 * MODULES.html.sh (File system functions): Mention it.
3250 areadlinkat: new module
3251 * lib/at-func.c (FUNC_FAIL): New define.
3252 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
3253 * modules/areadlinkat: New module.
3254 * lib/linkat.c (areadlinkat): Move...
3255 * lib/areadlinkat.c (areadlinkat): ...to new file.
3256 * lib/areadlink.h (areadlinkat): Declare it.
3257 * modules/linkat (Depends-on): Add areadlinkat.
3258 * MODULES.html.sh (File system functions): Mention it.
3259 * modules/areadlinkat-tests: New test.
3260 * tests/test-areadlinkat.c: New file.
3262 areadlink, areadlink-with-size: add tests
3263 * modules/areadlink-tests: New test.
3264 * modules/areadlink-with-size-tests: Likewise.
3265 * tests/test-areadlink.h: New file.
3266 * tests/test-areadlink.c: Likewise.
3267 * tests/test-areadlink-with-size.c: Likewise.
3269 maint: minor cleanups
3270 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
3271 _UNUSED_PARAMETER_ instead.
3272 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
3273 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
3274 * modules/linkat-tests (Files): Distribute test-link.h.
3276 openat, utimens: whitespace cleanup
3277 * lib/openat.c: Prefer space throughout, rather than mix of 8
3279 * lib/at-func.c: Likewise.
3280 * lib/utimens.c: Likewise.
3282 openat: avoid using wrong fd
3283 * lib/openat.c (openat_permissive): Reject user's fd if saving the
3284 working directory chooses same fd.
3285 * lib/at-func.c (AT_FUNC_NAME): Likewise.
3287 mkdir, mkdirat: fix cygwin 1.5.x bug
3288 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
3289 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
3290 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
3292 (gl_PREREQ_MKDIR): Delete unused macro.
3293 * modules/mkdir (Files): Track file rename.
3294 (configure.ac): Update macro name.
3295 * modules/openat (Depends-on): Add mkdir.
3296 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
3298 mkdir, mkdirat: add tests
3299 * modules/mkdir-tests: New test.
3300 * tests/test-mkdir.h: New file.
3301 * tests/test-mkdir.c: Likewise.
3302 * tests/test-mkdirat.c: Likewise.
3303 * modules/openat-tests (Files): Add new files.
3304 (Makefile.am): Run new test.
3306 2009-10-06 Eric Blake <ebb9@byu.net>
3308 doc: tweak *at function documentation
3309 * doc/posix-functions/faccessat.texi (faccessat): Mention
3310 known issue with replacement.
3311 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
3312 * doc/posix-functions/linkat.texi (linkat): Likewise.
3313 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
3314 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
3315 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3316 * doc/posix-functions/renameat.texi (renameat): Likewise.
3317 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
3319 openat: fix GNU/Hurd bug in unlinkat
3320 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
3322 * doc/posix-functions/unlink.texi (unlink): Document this.
3323 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
3325 fdopendir: fix GNU/Hurd bug
3326 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
3327 allowing non-directory fds.
3328 * lib/fdopendir.c (rpl_fdopendir): Work around it.
3329 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3330 * modules/dirent (Makefile.am): Substitute it.
3331 * lib/dirent.in.h (fdopendir): Declare replacement.
3332 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
3333 * tests/test-fdopendir.c (main): Test something other than
3334 /dev/null, since on Hurd that behaves like a directory.
3336 test-symlink: port to GNU/Hurd
3337 * tests/test-symlink.h (test_symlink): Relax expected errno.
3339 doc: tweak more cygwin information
3340 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
3341 now compatible with glibc.
3342 * doc/posix-functions/getopt.texi (getopt): Likewise.
3344 getopt-gnu: add another test
3345 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
3346 guarantee behavior relied on by m4.
3347 * tests/test-getopt.c (main): Use it.
3348 * modules/getopt-posix-tests (Depends-on): Add setenv.
3349 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
3351 getopt: fix compilation on darwin
3352 * lib/getopt.in.h (includes): Leave breadcrumbs during system
3354 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
3355 Reported by Ludovic Courtès.
3357 2009-10-06 Bruno Haible <bruno@clisp.org>
3359 * modules/size_max (Description): Discourage its use.
3360 Reported by Simon Josefsson.
3362 2009-10-06 Jim Meyering <meyering@redhat.com>
3364 linkat: avoid compilation failure
3365 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
3367 2009-10-05 Eric Blake <ebb9@byu.net>
3369 linkat: support Linux 2.6.17
3370 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
3371 linkat on Linux, but allow cache variable override.
3372 * lib/linkat.c (rpl_linkat): Define override.
3373 * modules/linkat (Depends-on): Add symlinkat.
3374 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
3375 * modules/unistd (Makefile.am): Substitute it.
3376 * lib/unistd.in.h (linkat): Declare replacement.
3377 Reported by Pádraig Brady.
3379 quotearg: port test to systems with C.UTF-8 locale
3380 * tests/test-quotearg.c (struct result_strings): Add another
3381 member, differentiating between C.ASCII and C.UTF-8 handling.
3382 (compare_strings): Add parameter.
3383 (main): Adjust all callers.
3385 getopt: avoid clash with FreeBSD _getopt_internal
3386 * lib/getopt.in.h (_getopt_internal): Override the name.
3387 * lib/getopt_int.h (includes): Pick up any overrides.
3388 Reported by Reuben Thomas.
3390 hash: allow C89 compilation
3391 * lib/hash.c (check_tuning): Move declaration before statement.
3392 Reported by Reuben Thomas.
3394 2009-10-05 Karl Berry <karl@gnu.org>
3396 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
3398 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
3399 Bruno Haible <bruno@clisp.org>
3401 * lib/uname.c (uname): Use a table-driven algorithm to compute
3402 Windows NT versions.
3404 2009-10-04 Bruno Haible <bruno@clisp.org>
3406 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
3407 program_invocation_short_name.
3408 * modules/progname (configure.ac): Test for presence of
3409 program_invocation_short_name.
3410 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3412 2009-10-04 Bruno Haible <bruno@clisp.org>
3414 * lib/progname.c (set_program_name): Fix comment.
3415 Reported by Jim Meyering.
3417 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
3418 Bruno Haible <bruno@clisp.org>
3420 * lib/uname.c: Include <string.h>.
3421 (uname): Do only one call to GetVersionEx in the common case.
3423 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
3424 Bruno Haible <bruno@clisp.org>
3426 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
3427 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
3428 (uname): Add support for Windows CE and various non-x86 CPU types.
3430 2009-10-03 Bruno Haible <bruno@clisp.org>
3432 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
3433 invocation to tests/configure.ac.
3434 Reported by Ian Beckwith <ianb@erislabs.net>.
3436 2009-10-02 Eric Blake <ebb9@byu.net>
3438 fchdir: avoid compiler warning
3439 * lib/fchdir.c (canonicalize_file_name)
3440 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
3442 test-open: support mingw errno values
3443 * tests/test-open.h (test_open): Relax test.
3444 * tests/test-fopen.h (test_fopen): Likewise.
3445 * tests/test-openat-safer.c (main): Likewise.
3447 open: fix opening directory on mingw
3448 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
3450 test-open: on GNU/Hurd, /dev/null is a directory
3451 * tests/test-fopen.h (main): Rename...
3452 (test_fopen): ...to this. Use a guaranteed non-directory when
3453 confirming open behavior on trailing slash.
3454 * tests/test-openat-safer.c (main): Likewise.
3455 * tests/test-open.h (main): Likewise....
3456 (test_open): ...to this.
3457 * tests/test-fopen.c (main): Adjust caller.
3458 * tests/test-fopen-safer.c (main): Likewise.
3459 * tests/test-open.c (main): Likewise.
3460 * tests/test-fcntl-safer.c (main): Likewise.
3461 Reported by Samuel Thibault.
3463 rename, fchdir: don't ignore chdir failure
3464 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
3465 * lib/rename.c (rpl_rename) [W32]: Likewise.
3466 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
3467 an empty destination directory if source cannot be renamed,
3468 although there is still possibility for failure.
3469 * doc/posix-functions/rename.texi (rename): Document the race.
3470 Reported by Jim Meyering.
3472 maint: cleanup whitespace in recent commits
3473 * lib/rename.c (rpl_rename): Remove tabs.
3474 * tests/test-link.h (test_link): Likewise.
3475 * lib/fchdir.c (get_name): Likewise.
3476 Reported by Jim Meyering.
3478 2009-10-02 Ben Pfaff <blp@gnu.org>
3480 relocatable-prog-wrapper: Add missing dependency on
3482 * modules/relocatable-prog-wrapper: Add dependency.
3483 Reported by Ian Beckwith <ianb@erislabs.net>.
3485 2009-10-02 Eric Blake <ebb9@byu.net>
3487 renameat: fix Solaris bugs
3488 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
3490 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
3491 * modules/stdio (Makefile.am): Substitute it.
3492 * lib/stdio.in.h (renameat): Declare replacement.
3493 * lib/renameat.c (rpl_renameat): Implement fix.
3495 renameat: new module
3496 * modules/renameat: New file.
3497 * lib/renameat.c (renameat): Likewise.
3498 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
3499 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
3500 * modules/stdio (Makefile.am): Substitute them.
3501 * lib/stdio.in.h (renameat): Declare it.
3502 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3503 * doc/posix-functions/renameat.texi (renameat): Likewise.
3504 * modules/renameat-tests: New test.
3505 * tests/test-renameat.c: Likewise.
3507 rename: fix mingw bugs
3508 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
3509 directory overwrite bugs.
3511 rename: fix another cygwin 1.5 bug
3512 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
3514 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
3515 unnecessary cygwin workarounds. Also work around bug with moving
3516 full directory onto an empty one.
3517 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
3519 rename-dest-slash: merge into rename module
3520 * modules/rename-dest-slash (Status): Mark obsolete.
3521 (Depends-on): Add rename.
3522 (Files): Let rename do it all.
3523 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
3524 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
3525 * m4/rename-dest-slash.m4: ...so this file can be deleted.
3526 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
3527 * lib/rename.c (rpl_rename): Update comments.
3529 rename: fix cygwin 1.5.x bugs
3530 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
3531 * lib/rename.c (rpl_rename): Work around them.
3532 * modules/rename (Depends-on): Add same-inode.
3534 rename: fix Solaris 10 bug
3535 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3536 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
3539 rename: fix Solaris 9 bug
3540 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
3541 on non-directory. Avoid calling exit.
3542 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
3544 * modules/rename-tests (Depends-on): Drop lstat.
3545 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3546 (gl_PREREQ_RENAME): Delete unused macro.
3548 rename-dest-slash: fix NetBSD bug
3549 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
3551 * modules/rename-dest-slash (Depends-on): Add same-inode.
3553 rename-tests: new test, exposes several platform bugs
3554 * modules/rename-tests: New file.
3555 * tests/test-rename.h: Likewise.
3556 * tests/test-rename.c: Likewise.
3557 * doc/posix-functions/rename.texi (rename): Improve documentation,
3558 including bugs that will eventually be fixed in gnulib.
3560 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
3562 * lib/uname.c: Include <stdlib.h>
3563 (uname): Assume version info is available.
3565 2009-10-02 Jim Meyering <meyering@redhat.com>
3567 gnu-web-doc-update: correct --help output
3568 * build-aux/gnu-web-doc-update: Make --help output relevant.
3570 gnu-web-doc-update: add standard options
3571 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
3573 gnu-web-doc-update: New module.
3574 Use this script to automatically update the on-line web documentation
3575 for your GNU project at http://www.gnu.org/software/$pkg/manual/
3576 * modules/gnu-web-doc-update: New file, from coreutils.
3577 * build-aux/gnu-web-doc-update: New script.
3579 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
3581 link: LoadLibrary is not needed.
3582 * lib/link.c: Use GetModuleHandle.
3584 2009-10-01 Eric Blake <ebb9@byu.net>
3586 getopt: bump serial number
3587 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
3590 tests: tighten link, rmdir, and remove tests
3591 * tests/test-link.h (includes): No need to use <config.h> here.
3592 Clean up if directory hard link was created, otherwise test for
3594 * tests/test-linkat.c (main): Simplify.
3595 * tests/test-remove.c (main): Enhance test for trailing '.'.
3596 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3598 2009-10-01 Jim Meyering <meyering@redhat.com>
3600 maint.mk: requiring "make major" was annoying, for a "minor" release.
3601 What is intended is "stable", to contrast with alpha and beta,
3602 so require "make stable", not "make major".
3603 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
3604 (get_tool_versions): Likewise.
3605 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
3607 2009-09-30 Ben Pfaff <blp@gnu.org>
3609 Fix broken build of replacement for Windows tmpfile().
3610 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
3611 flags argument added along with the 'mkostemp' module.
3613 2009-09-28 Bruno Haible <bruno@clisp.org>
3615 Avoid identifier clash with POSIX function 'remove' defined as a macro.
3616 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
3618 (gl_list_remove): Update.
3619 * lib/gl_list.c (gl_list_remove): Update.
3620 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
3622 (gl_oset_remove): Update.
3623 * lib/gl_list.c (gl_oset_remove): Update.
3624 Reported by Eric Blake.
3626 2009-09-28 Eric Blake <ebb9@byu.net>
3628 doc: mention yet more cygwin 1.7 status
3629 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
3631 * doc/glibc-functions/execvpe.texi (execvpe): New file.
3632 * doc/gnulib.texi (Glibc unistd.h): Mention it.
3634 argp: fix test failure
3635 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
3636 that are not upper-case. Pass correct range to tolower.
3638 2009-09-27 Jim Meyering <meyering@redhat.com>
3640 test-yesno: work around sparc-dash here-document infelicity
3641 Without this change, the literal \177 byte in a here document
3642 would make dash 0.5.5.1-3 access uninitialized memory.
3643 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
3644 Instead, use a marker, "@", and filter through tr to create the desired
3645 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
3647 2009-09-27 Bruno Haible <bruno@clisp.org>
3649 Disable untested support for new flavours of ACLs on AIX.
3650 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
3652 * lib/set-mode-acl.c (qset_acl): Likewise.
3654 2008-12-07 Bruno Haible <bruno@clisp.org>
3656 Add support for new flavours of ACLs on AIX. (Untested.)
3657 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
3658 (file_has_acl): Add support for newer AIX.
3659 * lib/set-mode-acl.c (qset_acl): Likewise.
3660 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
3661 Rainer Tammer <tammer@tammer.net>.
3663 2009-09-26 Eric Blake <ebb9@byu.net>
3665 argp: fix compilation of getopt
3666 * lib/getopt.in.h (includes): Use different guard than glibc.
3667 Reported by Sergey Poznyakoff.
3669 doc: mention more cygwin 1.7 status
3670 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
3672 * doc/posix-functions/execl.texi (execl): Likewise.
3673 * doc/posix-functions/execle.texi (execle): Likewise.
3674 * doc/posix-functions/execlp.texi (execlp): Likewise.
3675 * doc/posix-functions/execv.texi (execv): Likewise.
3676 * doc/posix-functions/execve.texi (execve): Likewise.
3677 * doc/posix-functions/execvp.texi (execvp): Likewise.
3678 * doc/glibc-functions/canonicalize_file_name.texi
3679 (canonicalize_file_name): Cygwin 1.7 now provides this.
3680 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
3681 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
3682 on AT_SYMLINK_NOFOLLOW.
3684 2009-09-24 Eric Blake <ebb9@byu.net>
3686 test-linkat: make test more robust
3687 * tests/test-linkat.c (main): Avoid collision with EEXIST.
3689 getopt: fix inclusion guards for cygwin
3690 * modules/getopt-posix (Depends-on): Add include-next.
3691 (Makefile.am): Substitute more items in replacement header.
3692 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
3694 * lib/getopt.in.h (includes): Use split inclusion guard, and
3695 prefer <getopt.h> over include <unistd.h> when one is present.
3696 (option): Also override name of 'struct option'.
3698 same-inode: revert prior change; it is not yet ready
3699 * NEWS: Undo mention of this change.
3700 * lib/same-inode.h (same-inode.h): Undo tri-state change.
3701 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
3702 * lib/cycle-check.c (cycle_check): Likewise.
3703 * lib/same.c (same_name): Likewise.
3704 * lib/at-func2.c (at_func2): Likewise.
3706 2009-09-23 Eric Blake <ebb9@byu.net>
3709 * modules/linkat: New file.
3710 * lib/at-func2.c (at_func2): Likewise.
3711 * lib/linkat.c (linkat): Likewise.
3712 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
3713 * lib/openat-priv.h (at_func2): Add declaration.
3714 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
3715 * modules/unistd (Makefile.am): Substitute them.
3716 * lib/unistd.in.h (linkat): Declare it.
3717 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3718 * doc/posix-functions/linkat.texi (linkat): Likewise.
3719 * doc/posix-functions/link.texi (link): Tweak wording.
3720 * tests/test-link.c (main): Move guts...
3721 * tests/test-link.h (test_link): ...into new file.
3722 * modules/linkat-tests: New test.
3723 * tests/test-linkat.c: Likewise.
3724 * modules/link-tests (Files): Ship new file.
3725 (Depends-on): Add stdbool.
3727 dirname: add library-safe mdir_name
3728 * lib/dirname.h (mdir_name): New prototype.
3729 * lib/dirname.c (dir_name): Move guts...
3730 (mdir_name): ...to new function that avoids xalloc_die.
3732 fchdir: another mingw fix
3733 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
3734 * lib/fchdir.c (get_name): New helper method; skips canonicalize
3735 on mingw (where it has not yet been ported), and make it optional
3737 (_gl_register_fd): Use it.
3739 same-inode: make SAME_INODE tri-state, to port to mingw
3740 * NEWS: Mention this change.
3741 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
3742 st_ino always being 0.
3743 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
3744 * lib/cycle-check.c (cycle_check): Likewise.
3745 * lib/same.c (same_name): Likewise.
3747 lstat: avoid mingw compilation error
3748 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
3749 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
3751 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
3753 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
3754 the checks for lstat.
3755 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
3757 link: fix test failure on Solaris 9
3758 * lib/link.c (rpl_link): Don't assume link will catch bogus
3759 trailing slash on source.
3761 test-symlinkat: enhance test
3762 * tests/test-readlink.c (main): Move guts...
3763 * tests/test-readlink.h (test_readlink): ...into new file.
3764 * tests/test-symlink.c (main): Move guts...
3765 * tests/test-symlink.h (test_symlink): ...into new file.
3766 * tests/test-symlinkat.c (main): Use new files for further
3768 (do_symlink, do_readlink): New helper functions.
3769 * modules/symlink-tests (Files): Ship new file.
3770 (Depends-on): Add stdbool.
3771 * modules/readlink-tests (Files): Ship new file.
3772 (Depends-on): Add stdbool.
3773 * modules/symlinkat-tests (Files): Use new files.
3775 2009-09-23 Eric Blake <ebb9@byu.net>
3777 readlink: document portability issue with symlink length
3778 * doc/posix-functions/lstat.texi (lstat): Mention that some file
3779 systems have bogus st_size on symlinks, and mention the
3780 areadlink-with-size module.
3781 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
3782 * doc/posix-functions/readlink.texi (readlink): Mention the
3783 areadlink module, and ERANGE failure.
3784 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3785 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
3787 readlink: fix Solaris 9 bug with trailing slash
3788 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
3789 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
3790 * doc/posix-functions/readlink.texi (readlink): Document this.
3791 * modules/readlink-tests: New test.
3792 * tests/test-readlink.c: Likewise.
3794 readlink: fix cygwin 1.5.x bug with return type
3795 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
3796 * lib/unistd.in.h (readlink): Use ssize_t.
3797 * lib/readlink.c (readlink): Likewise.
3798 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3799 * modules/unistd (Makefile.am): Substitute it.
3800 * lib/unistd.in.h (readlink): Declare replacement.
3801 * doc/posix-functions/readlink.texi (readlink): Document this.
3803 symlink: use throughout gnulib
3804 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
3805 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
3806 symlink is not used.
3807 * modules/symlinkat (Depends-on): Add symlink.
3808 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
3809 * modules/canonicalize-tests (Depends-on): Likewise.
3810 * modules/lstat-tests (Depends-on): Likewise.
3811 * modules/openat-tests (Depends-on): Likewise.
3812 * modules/remove-tests (Depends-on): Likewise.
3813 * modules/rmdir-tests (Depends-on): Likewise.
3814 * modules/unlink-tests (Depends-on): Likewise.
3815 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
3816 * tests/test-canonicalize.c (symlink): Likewise.
3817 * tests/test-fstatat.c (symlink): Likewise.
3818 * tests/test-lstat.c (symlink): Likewise.
3819 * tests/test-remove.c (symlink): Likewise.
3820 * tests/test-rmdir.c (symlink): Likewise.
3821 * tests/test-unlink.c (symlink): Likewise.
3822 * tests/test-unlinkat.c (symlink): Likewise.
3824 symlink: new module, for Solaris 9 bug
3825 * modules/symlink: New file.
3826 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
3827 * lib/symlink.c: Likewise.
3828 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
3829 * modules/unistd (Makefile.am): Substitute them.
3830 * lib/unistd.in.h (symlink): Declare replacement.
3831 * MODULES.html.sh (File system functions): Mention it.
3832 * doc/posix-functions/symlink.texi (symlink): Likewise.
3833 * modules/symlink-tests: New test.
3834 * tests/test-symlink.c: Likewise.
3836 2009-09-23 Bruno Haible <bruno@clisp.org>
3838 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
3840 Test case: gnulib-tool --import --with-tests atexit inttypes.
3841 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
3843 2009-09-23 Bruno Haible <bruno@clisp.org>
3845 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
3846 subcommand, not in a subshell.
3848 2009-09-22 Eric Blake <ebb9@byu.net>
3850 unistd: sort replacement declarations
3851 * lib/unistd.in.h: Sort declarations.
3853 open, openat: minor optimization
3854 * lib/open.c (open): If open succeeded, len is non-zero.
3855 * lib/openat.c (rpl_openat): Likewise.
3857 link-follow: ensure correct result
3858 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
3859 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
3860 distinguish between possible failures.
3862 2009-09-21 Eric Blake <ebb9@byu.net>
3864 fts: avoid compiler warning
3865 * lib/fts.c (dirent_inode_sort_may_be_useful)
3866 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
3868 2009-09-19 Bruno Haible <bruno@clisp.org>
3870 * lib/progreloc.c (canonicalize_file_name): New declaration.
3872 2009-09-19 Eric Blake <ebb9@byu.net>
3875 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
3877 openat: fix openat bugs on Solaris 9
3878 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
3879 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
3880 * modules/openat (Depends-on): Add open.
3881 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
3882 * modules/fcntl-h (Makefile.am): Substitute it.
3883 * lib/fcntl.in.h (openat): Declare replacement.
3884 * doc/posix-functions/openat.texi (openat): Document this.
3886 openat: move fstatat and unlinkat into correct files
3887 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
3889 * lib/openat.c (fstatat, unlinkat): Move...
3890 * lib/fstatat.c (fstatat): ...into correct files.
3891 * lib/unlinkat.c (unlinkat): Likewise.
3893 openat: fix unlinkat bugs on Solaris 9
3894 * lib/unlinkat.c (unlinkat): New file.
3895 * modules/openat (Depends-on): Add unlink.
3896 (Files): Distribute it.
3897 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
3898 trailing slash behavior is broken.
3899 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3900 * modules/unistd (Makefile.am): Substitute it.
3901 * lib/unistd.in.h (unlinkat): Declare replacement.
3902 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
3904 openat: fix fstatat bugs on Solaris 9
3905 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
3907 * doc/posix-functions/fstatat.texi (fstatat): Document this.
3909 test-unlinkat: enhance test, to expose Solaris 9 bug
3910 * tests/test-unlink.c (main): Factor guts...
3911 * tests/test-unlink.h (test_rmdir_func): ...into new file.
3912 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
3913 * tests/test-rmdir.c (main): Adjust caller.
3914 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
3915 (unlinker): New helper function.
3916 (rmdirat): Enhance check.
3917 * modules/rmdir-tests (Depends-on): Add stdbool.
3918 * modules/unlink-tests (Depends-on): Likewise.
3919 (Files): Add test-unlink.h.
3920 * modules/openat-tests (Files): Likewise.
3921 (Depends-on): Add unlinkdir.
3923 test-fstatat: new test, to expose Solaris 9 bugs
3924 * tests/test-stat.c (main): Factor guts...
3925 * tests/test-stat.h (test_stat_func): ...into new file.
3926 * tests/test-lstat.c (main): Factor guts...
3927 * tests/test-lstat.h (test_lstat_func): ...into new file.
3928 * tests/test-fstatat.c: New file.
3929 * modules/stat-tests (Files): Add test-stat.h.
3930 * modules/lstat-tests (Files): Add test-lstat.h.
3931 (Depends-on): Add stdbool.
3932 * modules/openat-tests (Depends-on): Add pathmax.
3933 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
3934 (Makefile.am): Run new test.
3936 remove: new module, for mingw and Solaris 9 bugs
3937 * modules/remove: New file.
3938 * lib/remove.c: Likewise.
3939 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
3940 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
3941 * modules/stdio (Makefile.am): Use them.
3942 * lib/stdio.in.h (remove): Declare replacement.
3943 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3944 * doc/posix-functions/remove.texi (remove): Likewise.
3945 * modules/remove-tests: New test.
3946 * tests/test-remove.c: Likewise.
3948 unlink: new module, for Solaris 9 bug
3949 * modules/unlink: New file.
3950 * lib/unlink.c: Likewise.
3951 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
3952 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
3953 * modules/unistd (Makefile.am): Use them.
3954 * lib/unistd.in.h (stat): Declare replacement.
3955 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3956 * doc/posix-functions/unlink.texi (unlink): Likewise.
3957 * modules/unlink-tests: New test.
3958 * tests/test-unlink.c: Likewise.
3960 lstat: fix Solaris 9 bug
3961 * lib/lstat.c (lstat): Also check for trailing slash on
3962 non-symlink, non-directories. Use stat module to simplify logic.
3963 * doc/posix-functions/lstat.texi (lstat): Document it.
3964 * modules/lstat-tests (Depends-on): Add errno, same-inode.
3965 (configure.ac): Check for symlink.
3966 * tests/test-lstat.c (main): Add more tests.
3968 stat: add as dependency to other modules
3969 * modules/chown (Depends-on): Add stat.
3970 * modules/euidaccess (Depends-on): Likewise.
3971 * modules/fchdir (Depends-on): Likewise.
3972 * modules/isdir (Depends-on): Likewise.
3973 * modules/link (Depends-on): Likewise.
3974 * modules/lstat (Depends-on): Likewise.
3975 * modules/mkdir-p (Depends-on): Likewise.
3976 * modules/modechange (Depends-on): Likewise.
3977 * modules/open (Depends-on): Likewise.
3978 * modules/readlink (Depends-on): Likewise.
3979 * modules/same (Depends-on): Likewise.
3981 stat: fix Solaris 9 bug
3982 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
3984 * lib/stat.c (rpl_stat): Work around it.
3985 * doc/posix-functions/stat.texi (stat): Update documentation.
3987 stat: new module, for mingw bug
3988 * modules/stat: New file.
3989 * lib/stat.c: Likewise.
3990 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
3991 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
3992 * modules/sys_stat (Makefile.am): Use them.
3993 * lib/sys_stat.in.h (stat): Declare replacement.
3994 * lib/openat.c (fstatat): Deal with lstat and stat being function
3996 * modules/openat (Depends-on): Add inline.
3997 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3998 * doc/posix-functions/stat.texi (stat): Likewise.
3999 * modules/stat-tests: New test.
4000 * tests/test-stat.c: Likewise.
4002 2009-09-19 Jim Meyering <meyering@redhat.com>
4004 syntax-check: detect unnecessary inclusion of canonicalize.h
4005 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
4007 2009-09-19 Eric Blake <ebb9@byu.net>
4009 canonicalize-lgpl: adjust clients to use correct header
4010 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4011 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
4012 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
4013 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
4014 * lib/progreloc.c (includes): Likewise.
4016 2009-09-19 Jim Meyering <meyering@redhat.com>
4018 test-posixtm.c: correct a comment
4019 * tests/test-posixtm.c: Correct first-line comment.
4020 Spotted by Eric Blake.
4022 2009-09-16 Jim Meyering <meyering@redhat.com>
4024 posixtm-tests: make T const-correct; add a test case
4025 * tests/test-posixtm.c (T): Declare const.
4026 Add a test for -(2^31+1).
4027 Remove useless can-succeed-only-in-2002 test.
4029 posixtm-tests: adjust the sole failing test
4030 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
4031 expected output matches what mktime now produces. Cross-checked via
4032 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
4034 posixtm: move #ifdef'd tests into a new module
4035 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
4036 * tests/test-posixtm.c: ... this new file.
4037 * modules/posixtm-tests: New module.
4039 2009-09-19 Eric Blake <ebb9@byu.net>
4041 openat: simplify use of at-func.c
4042 * lib/at-func.c (includes): Include prerequisites here, to
4043 simplify requirements on client files.
4044 * lib/openat-priv.h: Add double-inclusion guard.
4045 * lib/faccessat.c (includes): Simplify.
4046 * lib/fchmodat.c (includes): Likewise.
4047 * lib/fchownat.c (includes): Likewise.
4048 * lib/mkdirat.c (includes): Likewise.
4049 * lib/mkfifoat.c (includes): Likewise.
4050 * lib/symlinkat.c (includes): Likewise.
4052 openat: allow return of fd 0
4053 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
4054 * modules/save-cwd (Depends-on): Replace fcntl-safer with
4056 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
4057 <fcntl.h>; this module does not leak fds.
4058 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
4059 must be allowed to return 0, leaving openat_safer to add the
4061 (openat_permissive): Avoid writing to just-opened fd 2 if
4062 restoring the current directory fails.
4063 * lib/openat-die.c (openat_restore_fail): Add comment.
4064 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
4065 (save_cwd): Guarantee safe fd, but without use of open_safer.
4066 * tests/test-openat.c: New test.
4067 * modules/openat-tests (Files, Makefile.am): Distribute and build
4070 relocatable-prog-wrapper: fix build
4071 * modules/relocatable-prog-wrapper (Files): Update name of
4072 canonicalize m4 file, broken on 2009-09-17.
4073 Reported by emad hajjar <aleppos@hotmail.com>.
4075 2009-09-19 Bruno Haible <bruno@clisp.org>
4077 * lib/safe-alloc.h: Use the standard header with GPL copyright.
4078 * lib/safe-alloc.c: Likewise.
4079 Reported by Ian Beckwith <ianb@erislabs.net>.
4081 2009-09-18 Bruno Haible <bruno@clisp.org>
4083 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
4084 Reported by <erobles@sensacd.com.mx>.
4086 2009-09-17 Eric Blake <ebb9@byu.net>
4088 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
4089 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
4090 slashes when checking if last component is missing.
4091 * tests/test-canonicalize.c (main): Test this.
4093 canonicalize, canonicalize-lgpl: honor // if distinct from /
4094 * modules/canonicalize (Files): Add double-slash-root.m4.
4095 * modules/canonicalize-lgpl (Files): Likewise.
4096 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4097 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
4098 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
4099 fallback definition.
4100 (canonicalize_filename_mode): Use it to protect //.
4101 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
4102 (__realpath): Likewise.
4103 * tests/test-canonicalize.c (main): Test this.
4104 * tests/test-canonicalize-lgpl.c (main): Likewise.
4105 * modules/canonicalize-tests (Depends-on): Add same-inode.
4106 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
4108 canonicalize-lgpl: fix glibc bug with trailing slash
4109 * m4/canonicalize-lgpl.m4: Move contents...
4110 * m4/canonicalize.m4: ...here.
4111 (gl_CANONICALIZE_LGPL): Factor realpath check...
4112 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
4113 glibc 2.3.5 bug, fixed 2005-04-27.
4114 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
4115 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
4116 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
4117 * modules/canonicalize-lgpl (Files): Manage file rename.
4118 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
4119 * modules/stdlib (Makefile.am): Substitute witness.
4120 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
4122 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
4123 replacement is required.
4124 * lib/canonicalize.c (canonicalize_file_name): Likewise.
4125 * doc/glibc-functions/canonicalize_file_name.texi
4126 (canonicalize_file_name): Document this.
4127 * doc/posix-functions/realpath.texi (realpath): Likewise.
4129 canonicalize-lgpl: reject non-directory with trailing slash
4130 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
4131 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
4132 catches failures in glibc 2.3.5.
4133 * tests/test-canonicalize.c (main): Likewise.
4135 canonicalize-lgpl: use native realpath if it works
4136 * lib/canonicalize-lgpl.c (realpath): Guard with
4137 FUNC_REALPATH_WORKS.
4138 * lib/stdlib.in.h (realpath): Make declaration optional based on
4140 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
4141 native realpath works.
4142 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
4143 * modules/stdlib (Makefile.am): Substitute witness.
4145 canonicalize, canonicalize-lgpl: use <stdlib.h>
4146 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
4147 (Include): Mention <stdlib.h>.
4148 (configure.ac): Mention functions we provide.
4149 * modules/canonicalize (configure.ac): Likewise.
4150 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
4151 realpath if canonicalize_file_name is missing.
4152 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
4153 * modules/stdlib (Makefile.am): Substitute witnesses.
4154 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
4155 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
4156 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
4157 * NEWS: Document this.
4158 * doc/glibc-functions/canonicalize_file_name.texi
4159 (canonicalize_file_name): Likewise.
4160 * doc/posix-functions/realpath.texi (realpath): Likewise.
4161 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
4163 test-canonicalize: consolidate into single C program
4164 * tests/test-canonicalize.sh: Delete; move setup into...
4165 * tests/test-canonicalize.c (main): ...the program, making it
4166 easier to run in debugger. Add some tests.
4167 * modules/canonicalize-tests (Files): Remove unused file.
4168 (Depends-on): Add progname.
4169 (configure.ac, Makefile.am): Simplify.
4171 test-canonicalize-lgpl: consolidate into single C program
4172 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
4173 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
4174 easier to run in debugger. Add some tests.
4175 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
4176 (configure.ac, Makefile.am): Simplify.
4178 canonicalize: avoid resolvepath
4179 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
4181 * lib/canonicalize.c (includes): Simplify.
4182 (canonicalize_file_name): Drop resolvepath implementation.
4183 * modules/canonicalize (Depends-on): Drop filenamecat.
4185 canonicalize: don't lose errno
4186 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
4189 canonicalize: simplify errno handling
4190 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
4193 canonicalize, canonicalize-lgpl: update module dependencies
4194 * modules/canonicalize (Depends-on): Add extensions, lstat,
4196 (Files): Drop pathmax.h.
4197 (configure.ac): Adjust macro name.
4198 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
4199 lstat, stdlib, sys_stat.
4200 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
4201 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
4203 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
4204 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
4205 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
4206 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
4207 declaration, if available.
4208 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
4209 we can rely on the readlink module.
4210 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
4211 (includes): Use <unistd.h> unconditionally.
4213 2009-09-17 Eric Blake <ebb9@byu.net>
4215 maint: make Include sections of modules consistent
4216 * modules/alloca: Use only header name; no need to list #include.
4217 * modules/alloca-opt: Likewise.
4218 * modules/arpa_inet: Likewise.
4219 * modules/canon-host: Likewise.
4220 * modules/configmake: Likewise.
4221 * modules/dirent: Likewise.
4222 * modules/eealloc: Likewise.
4223 * modules/environ: Likewise.
4224 * modules/fchdir: Likewise.
4225 * modules/fcntl: Likewise.
4226 * modules/fcntl-h: Likewise.
4227 * modules/gethrxtime: Likewise.
4228 * modules/gettime: Likewise.
4229 * modules/ignore-value: Likewise.
4230 * modules/inet_ntop: Likewise.
4231 * modules/inet_pton: Likewise.
4232 * modules/inttypes: Likewise.
4233 * modules/isnand-nolibm: Likewise.
4234 * modules/isnanf-nolibm: Likewise.
4235 * modules/mbchar: Likewise.
4236 * modules/mbfile: Likewise.
4237 * modules/mbiter: Likewise.
4238 * modules/mbuiter: Likewise.
4239 * modules/netdb: Likewise.
4240 * modules/netinet_in: Likewise.
4241 * modules/nproc: Likewise.
4242 * modules/pagealign_alloc: Likewise.
4243 * modules/poll: Likewise.
4244 * modules/printf-frexp: Likewise.
4245 * modules/pthread: Likewise.
4246 * modules/putenv: Likewise.
4247 * modules/random_r: Likewise.
4248 * modules/relocatable-prog: Likewise.
4249 * modules/search: Likewise.
4250 * modules/select: Likewise.
4251 * modules/selinux-h: Likewise.
4252 * modules/settime: Likewise.
4253 * modules/signal: Likewise.
4254 * modules/size_max: Likewise.
4255 * modules/socklen: Likewise.
4256 * modules/ssize_t: Likewise.
4257 * modules/stdarg: Likewise.
4258 * modules/stdbool: Likewise.
4259 * modules/stddef: Likewise.
4260 * modules/stdint: Likewise.
4261 * modules/stdio: Likewise.
4262 * modules/stdlib: Likewise.
4263 * modules/string: Likewise.
4264 * modules/strings: Likewise.
4265 * modules/sys_file: Likewise.
4266 * modules/sys_ioctl: Likewise.
4267 * modules/sys_select: Likewise.
4268 * modules/sys_socket: Likewise.
4269 * modules/sys_stat: Likewise.
4270 * modules/sys_time: Likewise.
4271 * modules/sys_times: Likewise.
4272 * modules/sys_utsname: Likewise.
4273 * modules/sys_wait: Likewise.
4274 * modules/sysexits: Likewise.
4275 * modules/time: Likewise.
4276 * modules/times: Likewise.
4277 * modules/tmpfile: Likewise.
4278 * modules/trim: Likewise.
4279 * modules/unistd: Likewise.
4280 * modules/wchar: Likewise.
4281 * modules/wctype: Likewise.
4283 2009-09-17 Bruno Haible <bruno@clisp.org>
4285 Make getdate.y compile on QNX and NetBSD 5 / i386.
4286 * m4/getdate.m4 (gl_GETDATE): Conditionally define
4287 TIME_T_FITS_IN_LONG_INT.
4288 * lib/getdate.y (long_time_t): New type.
4289 (relative_time): Change type of 'seconds' field to long_time_t.
4290 (get_date): Update types of local variables. Check against overflow
4291 during conversion from long_time_t to time_t.
4292 Reported by Matt Kraai <kraai@ftbfs.org>
4293 and Hasso Tepper <hasso@netbsd.org>.
4295 2009-09-17 Bruno Haible <bruno@clisp.org>
4297 * modules/COPYING: Update copyright years.
4298 * modules/README: Likeiwse.
4299 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
4300 Reported by Ian Beckwith <ianb@erislabs.net>.
4302 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
4304 * users.txt: Update references for gnuit package.
4306 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
4308 * m4/getdelim.m4: Fix typo in copyright line.
4310 2009-09-17 Bruno Haible <bruno@clisp.org>
4312 * lib/atoll.c: Use the standard header with GPL copyright.
4313 * lib/argz.in.h: Likewise.
4314 * lib/glob.c: Likewise.
4315 * lib/glob-libc.h: Likewise.
4316 * lib/random_r.c: Likewise.
4317 * lib/siglist.h: Likewise.
4318 * lib/strsignal.c: Likewise.
4319 Reported by Ian Beckwith <ianb@erislabs.net>.
4321 2009-09-17 Eric Blake <ebb9@byu.net>
4323 rmdir: ensure correct dependency order
4324 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
4326 2009-09-17 Bruno Haible <bruno@clisp.org>
4328 Disable assertion that fails on NetBSD 5 / i386.
4329 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
4330 Reported by Sam Steingold <sds@gnu.org>
4331 and Hasso Tepper <hasso@netbsd.org>.
4333 2009-09-16 Eric Blake <ebb9@byu.net>
4335 unlinkdir: port to mingw
4336 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
4337 on which no one can unlink a directory.
4339 stdlib: sort witness names
4340 * modules/stdlib (Makefile.am): Sort replacements.
4341 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4342 * lib/stdlib.in.h: Likewise.
4344 parse-duration-tests: avoid link failure
4345 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
4347 Reported by Tom G. Christensen.
4349 openat-tests: ensure unlinkat behaves like rmdir
4350 * tests/test-rmdir.c (main): Factor guts...
4351 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
4352 * modules/rmdir-tests (Files): Ship new file.
4353 * modules/openat-tests: New test.
4354 * tests/test-unlinkat.c: Likewise.
4356 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
4357 * modules/rmdir-errno (Status, Notice): Now obsolete.
4359 rmdir: work around cygwin 1.5.x and mingw bugs
4360 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
4361 * lib/rmdir.c (rmdir): Work around it.
4362 * modules/rmdir (Status, Notice): No longer obsolete.
4363 (Files): Add dos.m4.
4364 (Depends-on): Add unistd.
4365 (configure.ac): Set witnesses.
4366 (License): Relax to LGPLv2+.
4367 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
4368 * modules/unistd (Makefile.am): Substitute witnesses.
4369 * lib/unistd.in.h (rmdir): Declare replacement.
4370 * doc/posix-functions/rmdir.texi (rmdir): Document this.
4371 * modules/rmdir-tests: New tests.
4372 * tests/test-rmdir.c: Likewise.
4374 2009-09-15 Eric Blake <ebb9@byu.net>
4376 fchdir: improve use of replacement functions
4377 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
4378 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
4379 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
4381 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
4382 * modules/sys_stat (Makefile.am): Substitute correct witness.
4383 * modules/dirent (Makefile.am): Likewise.
4384 * modules/unistd (Makefile.am): Likewise.
4385 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
4386 * lib/unistd.in.h (dup): Likewise.
4387 * lib/sys_stat.in.h (fstat): Likewise.
4389 maint: ignore gnulib-tool temp files
4390 * .gitignore: Ignore files created during gnulib-tool --test.
4392 2009-09-13 Jim Meyering <meyering@redhat.com>
4394 posixtm: don't reject a time that specify "60" as the number of seconds
4395 * lib/posixtm.c (posixtime): The code to reject invalid dates
4396 would also reject a time specified with the .60 suffix.
4397 But POSIX allows that, in order to accommodate leap seconds.
4399 (main): Adjust tests accordingly.
4400 * modules/posixtm (Depends-on): Add stpcpy.
4402 2009-09-11 Jim Meyering <meyering@redhat.com>
4404 announce-gen: include [$release_type] in emitted Subject:
4405 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
4406 e.g., [stable] in the emitted Subject: line.
4408 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4410 Remove obsolete macros from several modules.
4411 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
4412 obsolete Autoconf macros with their modern counterparts.
4413 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
4414 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
4415 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
4416 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4417 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
4418 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4419 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4420 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4421 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4422 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
4423 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4424 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4425 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4426 * m4/sockets.m4 (gl_SOCKETS): Likewise.
4427 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
4428 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
4429 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
4430 * m4/time_r.m4 (gl_TIME_R): Likewise.
4431 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4432 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
4433 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
4435 Fix copyright header in build-aux scripts.
4436 * build-aux/git-version-gen: Fix copyright header to match GPLv3
4438 * build-aux/ncftpput-ftp: Likewise.
4439 * build-aux/update-copyright: Likewise.
4441 2009-09-09 Eric Blake <ebb9@byu.net>
4443 test-link: allow Linux choice of errno
4444 * tests/test-link.c (main): Relax test for alternate error.
4446 strndup: fix improper m4 caching
4447 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
4448 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
4449 (gl_PREREQ_STRNDUP): Delete.
4450 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
4451 * modules/string (Makefile.am): Substitute it.
4452 * lib/string.in.h (strndup): Modernize prototype.
4454 getcwd: port to mingw
4455 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
4456 different from the POSIX assumptions made throughout the getcwd
4457 module; fortunately, the mingw getcwd does not need replacement.
4458 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
4459 * modules/getcwd-tests: New test.
4460 * tests/test-getcwd.c: Likewise.
4462 link: fix platform bugs
4463 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
4464 * lib/link.c (link): Work around them. Fix related mingw bug.
4465 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
4466 * modules/unistd (Makefile.am): Substitute it.
4467 * lib/unistd.in.h (link): Declare replacement.
4468 * doc/posix-functions/link.texi (link): Document this.
4469 * modules/link (Depends-on): Add strdup-posix, sys_stat.
4471 test-link: consolidate into single C program, test more cases
4472 * tests/test-link.sh: Delete.
4473 * tests/test-link.c: Test more error conditions. Exposes bugs on
4474 at least Cygwin and Solaris.
4475 * modules/link-tests (Files): Remove unused file.
4476 (Depends-on): Add errno, sys_stat.
4477 (Makefile.am): Simplify.
4479 2009-09-08 Bruno Haible <bruno@clisp.org>
4481 Work around towlower, towupper bug on mingw.
4482 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
4483 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
4484 * doc/posix-functions/towlower.texi: Mention the mingw bug.
4485 * doc/posix-functions/towupper.texi: Likewise.
4486 Reported by Eric Blake.
4488 2009-09-08 Jim Meyering <meyering@redhat.com>
4490 build: don't try to run autoheader if we don't use it
4491 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
4492 is not used in configure.ac.
4494 2009-09-08 Eric Blake <ebb9@byu.net>
4496 euidaccess: fix compilation error
4497 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
4499 rawmemchr: relax license
4500 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
4502 Reported by Jim Meyering.
4504 mkfifoat: new module
4505 * modules/mkfifoat: New file.
4506 * lib/mkfifoat.c: Likewise.
4507 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
4508 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4509 * modules/sys_stat (Makefile.am): Use them.
4510 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
4511 * MODULES.html.sh (File system functions): Mention module.
4512 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
4513 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
4514 * modules/mkfifoat-tests: New test.
4515 * tests/test-mkfifoat.c: Likewise.
4517 strchrnul: relax license
4518 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
4520 Reported by Jim Meyering.
4522 2009-09-08 Eric Blake <ebb9@byu.net>
4524 fstatat: fix compilation on Solaris
4525 * lib/fstatat.c (includes): Add fcntl.h.
4526 Reported by Pádraig Brady.
4528 2009-09-07 Eric Blake <ebb9@byu.net>
4530 rename: modernize replacement
4531 * modules/rename (Depends-on): Add stdio.
4532 (configure.ac): Declare witness.
4533 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
4534 stdio take care of replacement.
4535 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
4536 * modules/stdio (Makefile.am): Substitute them.
4537 * lib/stdio.in.h (rename): Declare replacement.
4538 * lib/rename.c (includes): Allow cross-compilation to non-windows
4540 * doc/posix-functions/rename.texi (rename): Improve
4543 stdio: sort witness names
4544 * modules/stdio (Makefile.am): Sort replacements.
4545 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4546 * lib/stdio.in.h: Likewise.
4548 getcwd: minor cleanups
4549 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
4550 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
4552 openat: provide more convenience names
4553 * modules/faccessat (configure.ac): Add C witness.
4554 * lib/unistd.in.h (readlinkat): Fix typo.
4555 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
4556 convenience wrappers.
4557 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
4558 wrappers in syntax checks.
4560 2009-09-06 Eric Blake <ebb9@byu.net>
4562 doc: fix comments in recent patches
4563 * lib/faccessat.c: Mention correct function.
4564 * lib/fchmodat.c: Likewise.
4565 * lib/fchownat.c: Likewise.
4566 * lib/symlinkat.c: Likewise.
4567 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
4570 faccessat, symlinkat: continue cleanup of previous patch
4571 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
4572 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
4573 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
4574 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
4575 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
4576 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
4579 2009-09-06 Bruno Haible <bruno@clisp.org>
4581 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
4582 (fstatat): Declare if GNULIB_FSTATAT is set.
4583 (mkdirat): Declare if GNULIB_MKDIRAT is set.
4584 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
4585 (unlinkat): Declare if GNULIB_UNLINKAT is set.
4586 * modules/fcntl-h (Files): Remove m4/openat.m4.
4587 * modules/sys_stat (Files): Remove m4/openat.m4.
4588 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
4589 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
4590 * modules/unistd (Files): Remove m4/openat.m4.
4591 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
4593 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
4594 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
4595 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
4596 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
4597 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
4599 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
4600 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
4601 Don't require gl_OPENAT_DEFAULTS.
4602 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
4603 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
4604 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
4605 (gl_OPENAT_DEFAULTS): Remove macro.
4607 2009-09-06 Bruno Haible <bruno@clisp.org>
4609 * modules/openat (configure.ac): Remove unneeded witness.
4611 2009-09-06 Bruno Haible <bruno@clisp.org>
4613 Set errno to ENOSYS when a function is entirely unsupported.
4614 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
4616 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
4617 * modules/chown (Depends-on): Remove errno.
4619 2009-09-06 Bruno Haible <bruno@clisp.org>
4621 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
4623 2009-09-06 Bruno Haible <bruno@clisp.org>
4625 * lib/sys_stat.in.h: Fix preprocessor command indentation.
4627 2009-09-06 Ben Pfaff <blp@gnu.org>
4628 Bruno Haible <bruno@clisp.org>
4630 Work around a glibc bug in strtok_r.
4631 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
4632 Undefine if UNDEFINE_STRTOK_R is set.
4633 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
4634 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4635 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
4636 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
4637 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
4639 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
4641 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
4644 * lib/exclude.c: Include wctype.h
4646 2009-09-06 Akim Demaille <demaille@gostai.com>
4648 bootstrap: improve error message
4649 * build-aux/bootstrap (find_tool): Upon failure, report the list
4651 Honor the initial value of the envvar.
4653 2009-09-05 Eric Blake <ebb9@byu.net>
4655 symlinkat: new module
4656 * modules/symlinkat: New file.
4657 * lib/symlinkat.c: Likewise.
4658 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4659 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
4660 * modules/unistd (Makefile.am): Use them.
4661 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
4662 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
4663 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
4664 * MODULES.html.sh (File system functions): Mention module.
4665 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4666 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4667 * modules/symlinkat-tests: New test.
4668 * tests/test-symlinkat.c: Likewise.
4670 test-openat-safer: add more checks
4671 * tests/test-openat-safer.c (main): Check more code paths.
4673 2009-09-05 Jim Meyering <meyering@redhat.com>
4675 syntax-check: detect unnecessary inclusion of openat.h
4676 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
4678 2009-09-05 Bruno Haible <bruno@clisp.org>
4680 Support towlower, towupper.
4681 * doc/posix-functions/towlower.texi: Mention module wctype.
4682 * doc/posix-functions/towupper.texi: Likewise.
4683 * lib/wctype.in.h (towlower, towupper): New functions.
4684 * tests/test-wctype.c: Include stdio.h, stdlib.h.
4685 (ASSERT): New macro.
4687 (main): Test also towlower, towupper. Test WEOF argument.
4688 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4690 2009-09-05 Bruno Haible <bruno@clisp.org>
4692 Fix conversion behaviour when the input is invalid.
4693 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
4694 mark occurring in first pass of indirect conversion.
4695 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
4697 Found by clang's static analyzer.
4699 2009-09-05 Bruno Haible <bruno@clisp.org>
4701 * tests/test-striconveh.c (main): Test indirect conversion on platforms
4702 where direct conversion is possible.
4704 2009-09-04 Eric Blake <ebb9@byu.net>
4706 openat: fail with ENOENT on empty name
4707 * lib/openat-proc.c (openat_proc_name): Special-case the empty
4710 link-follow: fix logic bug in prior patch
4711 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
4712 reversed sense of yes and no in prior patch. Avoid confusing
4713 compilation failure with desired semantics.
4715 link-follow: accomodate mingw and cross-compilation
4716 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
4717 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
4718 cross-compilation results to -1, to make linkat easier to
4719 implement when cross-compiling. Trivially support mingw.
4720 * modules/link-follow (configure.ac): Call new name.
4721 * NEWS: Mention this.
4723 2009-09-03 Eric Blake <ebb9@byu.net>
4725 faccessat: compile replacement
4726 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
4729 fts: fix compilation error
4730 * lib/fts.c (includes): Re-add "openat.h", for
4731 openat_needs_fchdir.
4733 faccessat: new module
4734 * modules/faccessat: New file.
4735 * lib/faccessat.c: Likewise.
4736 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
4737 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4738 * modules/unistd (Makefile.am): Use it.
4739 * lib/unistd.in.h (faccessat): Declare it.
4740 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
4741 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
4742 * MODULES.html.sh (File system functions): Mention it.
4743 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
4744 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4746 euidaccess: prefer POSIX over non-standard implementation
4747 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
4748 * lib/euidaccess.c (euidaccess): Use it if available.
4750 openat: make template easier to use
4751 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
4752 AT_FUNC_F2 to be undefined.
4753 (VALIDATE_FLAG): New macro; use it to reject bad flags.
4754 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
4755 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
4756 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
4757 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
4759 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
4760 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
4761 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
4764 openat: declare in POSIX headers
4765 * NEWS: Mention this.
4766 * modules/openat (configure.ac): Declare witnesses.
4767 (Depends-on): Add fcntl-h, sys_stat, unistd.
4768 (Include): Mention correct headers.
4769 * modules/fcntl-h (Depends-on): Add link-warning.
4770 (Files): Add openat.m4.
4771 (Makefile.am): Substitute witnesses.
4772 * modules/sys_stat (Files, Makefile.am): Likewise.
4773 * modules/unistd (Files, Makefile.am): Likewise.
4774 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
4775 (gl_OPENAT_DEFAULTS): New macro.
4776 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
4777 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
4778 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
4779 (SYS_STAT_H): Remove unused variable.
4780 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
4781 * lib/fcntl--.h (includes): Remove unneeded header.
4782 * lib/openat-safer.c (includes): Likewise.
4783 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
4784 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
4785 appropriate headers.
4786 (__OPENAT_PREFIX): Delete.
4787 * lib/fcntl.in.h (openat): Provide declaration.
4788 (AT_FDCWD): Fix Solaris bug.
4789 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
4790 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
4791 * lib/fchmodat.c (includes): Adjust to find declaration.
4792 * lib/fchownat.c (includes): Likewise.
4793 * lib/mkdirat.c (includes): Likewise.
4794 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
4797 2009-09-02 Eric Blake <ebb9@byu.net>
4799 errno: use consistently
4800 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
4801 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
4802 * lib/canonicalize.c (ELOOP): Likewise.
4803 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
4804 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
4805 * lib/lchown.c (EOPNOTSUPP): Likewise.
4806 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
4807 * lib/savewd.c (ESTALE): Likewise.
4808 * lib/settime.c (ENOSYS): Likewise.
4809 * lib/utimens.c (ENOSYS): Likewise.
4810 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
4811 * lib/chdir-safer.c (ELOOP): Likewise.
4812 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
4813 * modules/c-stack (Depends-on): Add errno.
4814 * modules/canonicalize (Depends-on): Likewise.
4815 * modules/chdir-safer (Depends-on): Likewise.
4816 * modules/fdopendir (Depends-on): Likewise.
4817 * modules/inet_ntop (Depends-on): Likewise.
4818 * modules/inet_pton (Depends-on): Likewise.
4819 * modules/lchown (Depends-on): Likewise.
4820 * modules/openat (Depends-on): Likewise.
4821 * modules/savewd (Depends-on): Likewise.
4822 * modules/settime (Depends-on): Likewise.
4823 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
4825 fts: avoid leaking fds
4826 * modules/fts (Depends-on): Add cloexec.
4827 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
4830 fts: make directory fds more robust
4831 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
4832 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
4834 backupfile, chdir-long, fts, savedir: make safer
4835 * lib/backupfile.c (includes): Use "dirent--.h", since
4836 numbered_backup can write to stderr during readdir.
4837 * lib/savedir.c (includes): Likewise.
4838 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
4839 emulation can write to stderr on failure.
4840 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
4841 * lib/getcwd.c: Document why opendir_safer is unused.
4842 * lib/glob.c: Likewise.
4843 * lib/scandir.c: Likewise.
4844 * lib/openat-proc.c: Likewise, for open_safer.
4845 * modules/backupfile (Depends-on): Add dirent-safer.
4846 * modules/savedir (Depends-on): Likewise.
4847 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
4848 * modules/chdir-long (Depends-on): Add openat-safer.
4850 openat-safer: new module
4851 * modules/openat-safer: New file.
4852 * lib/openat-safer.c: Likewise.
4853 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
4854 * lib/fcntl-safer.h (openat_safer): Declare.
4855 * lib/fcntl--.h (openat): Override.
4856 * MODULES.html.sh (File descriptor based I/O): Mention it.
4857 * lib/openat.h: Add double-inclusion guards.
4858 * lib/openat.c (includes): Only include "fcntl-safer.h", not
4859 "fcntl--.h", so we can implement openat.
4860 * modules/openat-safer-tests: New test.
4861 * tests/test-openat-safer.c: New file.
4863 dirent-safer: new module
4864 * modules/dirent-safer: New file.
4865 * lib/dirent--.h: Likewise.
4866 * lib/dirent-safer.h: Likewise.
4867 * lib/opendir-safer.c: Likewise.
4868 * m4/dirent-safer.m4: Likewise.
4869 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
4870 * modules/dirent-safer-tests: New test.
4871 * tests/test-dirent-safer.c: New file.
4872 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
4874 fdopendir: optimize on mingw
4875 * lib/unistd.in.h (_gl_directory_name): New prototype.
4876 * lib/fchdir.c (_gl_directory_name): Implement it.
4877 (fchdir): Use it to simplify implementation.
4878 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
4879 fchdir, when available, to avoid calling [f]chdir().
4881 fdopendir: split into its own module
4882 * lib/openat.c (fdopendir): Move...
4883 * lib/fdopendir.c: ...into new file.
4884 * modules/fdopendir: New module.
4885 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
4886 * modules/openat (Depends-on): Add fdopendir.
4887 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
4889 * modules/savedir (Depends-on): Only need fdopendir, not full
4891 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
4892 * lib/openat.h (fdopendir): Drop prototype.
4893 * lib/dirent.in.h (fdopendir): Provide prototype.
4894 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
4895 * modules/dirent (Makefile.am): Substitute them.
4896 * MODULES.html.sh (File system functions): Mention it.
4897 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
4898 * modules/fdopendir-tests: New file.
4899 * tests/test-fdopendir.c: Likewise.
4901 fchdir: use more consistent macro convention
4902 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
4903 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
4904 REPLACE_FCHDIR, rather than relying on config.h macros.
4905 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
4906 inside a single make-time REPLACE_FCHDIR block, rather than using
4907 the config.h FCHDIR_REPLACEMENT.
4908 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
4909 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
4910 Manage fstat replacement.
4911 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
4913 * modules/sys_stat (Files): Add m4/unistd_h.m4.
4914 (Makefile.am): Substitute REPLACE_FCHDIR.
4915 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
4917 * lib/dup-safer.c (dup_safer): Likewise.
4918 * lib/dup2.c (rpl_dup2): Likewise.
4919 * lib/dup3.c (rpl_dup3): Likewise.
4920 * lib/open.c (rpl_open): Likewise.
4922 fchdir: simplify error handling, and support dup3
4923 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
4924 stdbool, malloc-posix, realloc-posix.
4925 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
4926 (ensure_dirs_slot): Return false on allocation failure.
4928 (_gl_register_dup): New function.
4929 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
4930 (_gl_register_fd): Close fd on allocation failure.
4931 * lib/fcntl.in.h (_gl_register_fd): Update signature.
4932 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
4934 (rpl_dup2_fchdir): Delete prototype.
4935 * lib/open.c (open): Update caller.
4936 * lib/dup2.c (dup2): Track fchdir metadata.
4937 * lib/dup3.c (dup3): Likewise.
4938 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
4939 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
4941 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4943 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
4944 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
4945 don't pass arguments to AC_OUTPUT.
4947 2009-09-02 Bruno Haible <bruno@clisp.org>
4949 * modules/mkdtemp (License): Relicense under LGPLv2+.
4950 Reported by Paolo Bonzini.
4952 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4954 Replace uses of obsolete autoconf macros in Jim's modules.
4955 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
4956 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
4957 can evoke a warning from autoconf when run with -Wobsolete
4958 enabled. They were declared obsolete for good reasons (see
4959 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
4960 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
4961 should not continue using the deprecated macros.
4962 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
4963 obsolete Autoconf macros with modern counterparts.
4964 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
4965 * m4/dos.m4 (gl_AC_DOS): Likewise.
4966 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4967 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
4968 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4969 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
4970 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
4971 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
4972 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
4973 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
4974 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
4976 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4977 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4978 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
4979 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
4980 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
4981 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
4983 2009-09-01 Eric Blake <ebb9@byu.net>
4985 fchdir: fix off-by-one bug in previous patch
4986 * lib/fchdir.c (rpl_fstat): Use correct bounds.
4987 (_gl_unregister_fd): Delete useless if.
4989 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
4991 maint.mk: sort the list of syntax-check rules
4992 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
4993 easier to get a sense of progress when the rules are run sequentially
4994 and take a long time.
4996 2009-09-01 Simon Josefsson <simon@josefsson.org>
4998 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
4999 * modules/netinet_in: Likewise.
5000 * modules/sys_file: Likewise.
5001 * modules/sys_ioctl: Likewise.
5002 * modules/sys_select: Likewise.
5003 * modules/sys_socket: Likewise.
5004 * modules/sys_stat: Likewise.
5005 * modules/sys_time: Likewise.
5006 * modules/sys_times: Likewise.
5007 * modules/sys_utsname: Likewise.
5008 * modules/sys_wait: Likewise.
5010 2009-09-01 Jim Meyering <meyering@redhat.com>
5012 fts: help ensure that return values are not ignored
5013 * lib/fts_.h (__GNUC_PREREQ): Define.
5014 (__attribute_warn_unused_result__): Define.
5015 (fts_children, fts_close, fts_open, fts_read): Declare with
5016 __attribute_warn_unused_result__.
5018 fts: fts_close now fails also when closing a dir file descriptor fails
5019 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
5020 and propagate to caller, along with errno.
5022 announce-gen: correct formatting in --help output
5023 * build-aux/announce-gen (usage): Move the one-line description in
5024 --help output "up", to where it belongs, just after Usage:.
5026 2009-08-31 Eric Blake <ebb9@byu.net>
5028 fchdir: port to mingw
5029 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
5030 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
5031 opened, then use a substitute.
5032 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
5034 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
5035 (_gl_register_fd): No need to check stat if open already filters
5037 (fchdir): Fix error condition to match POSIX.
5038 * modules/fchdir (Depends-on): Add sys_stat.
5039 * doc/posix-functions/open.texi (open): Document the limitation.
5040 * modules/fchdir-tests: New file.
5041 * tests/test-fchdir.c: Likewise.
5043 canonicalize: allow cross-testing from cygwin to mingw
5044 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
5045 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
5046 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
5048 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
5049 target does not support symlinks.
5050 * tests/test-canonicalize-lgpl.sh: Likewise.
5052 chown: avoid compilation warning on mingw
5053 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
5054 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
5056 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
5057 * modules/chown (Depends-on): Add errno.
5059 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
5061 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
5064 2009-08-31 Jim Meyering <meyering@redhat.com>
5066 canonicalize: remove useless initialization
5067 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
5068 initialization of local, "end".
5070 2009-08-30 Bruno Haible <bruno@clisp.org>
5072 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
5073 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
5076 2009-08-30 Bruno Haible <bruno@clisp.org>
5078 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
5079 /usr/xpg4/bin/tr when it exists.
5080 * tests/test-pipe-filter-gi1.sh: Likewise.
5082 2009-08-30 Bruno Haible <bruno@clisp.org>
5084 Work around deficient /usr/bin/id program on Solaris.
5085 * tests/test-file-has-acl.sh (ID): New variable.
5086 * tests/test-set-mode-acl.sh (ID): Likewise.
5087 * tests/test-copy-acl.sh (ID): Likewise.
5088 * tests/test-copy-file.sh (ID): Likewise.
5090 2009-08-30 Bruno Haible <bruno@clisp.org>
5092 New module 'xstriconveh'.
5093 * lib/xstriconveh.h: New file.
5094 * lib/xstriconveh.c: New file.
5095 * modules/xstriconveh: New file.
5097 2009-08-30 Bruno Haible <bruno@clisp.org>
5099 Make it easier to use mem_cd_iconveh.
5100 * lib/striconveh.h (iconveh_t): New type.
5101 (iconveh_open, iconveh_close): New declarations.
5102 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
5103 with a single 'const iconveh_t *' argument.
5104 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
5105 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
5106 with a single 'const iconveh_t *' argument.
5107 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
5108 * tests/test-striconveh.c (main): Update.
5109 * NEWS: Mention the change.
5111 2009-08-30 Bruno Haible <bruno@clisp.org>
5113 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
5116 2009-08-30 Bruno Haible <bruno@clisp.org>
5118 Work around iconv_open problem on Solaris.
5119 * lib/iconv_open-solaris.gperf: New file.
5120 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
5121 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
5122 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
5123 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
5124 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
5125 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
5127 2009-08-29 Jim Meyering <meyering@redhat.com>
5129 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
5130 * top/maint.mk (cvs-check): Remove target; it was just an alias
5131 to the better-named vc-diff-check.
5132 (maintainer-distcheck): Remove rule. It was used only from
5133 the (alpha/beta/major) target, and all of its commands but one
5134 were coreutils-specific.
5135 (vc-dist): Remove rule.
5136 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
5137 Run vc-diff-check, not vc-dist.
5138 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
5140 2009-08-27 Bruno Haible <bruno@clisp.org>
5142 * tests/test-bitrotate.c (main): Remove test that uses a shift count
5145 2009-08-27 Bruno Haible <bruno@clisp.org>
5147 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
5149 * doc/func.texi: Document the SunPRO C bug.
5151 2009-08-27 Bruno Haible <bruno@clisp.org>
5153 Fix link error on Solaris.
5154 * tests/test-parse-duration.c (xstrdup): Remove function.
5156 2009-08-26 Pádraig Brady <P@draigbrady.com>
5158 ignore-value: handle pointer types, too
5159 * lib/ignore-value.h (__attribute__): Remove definition.
5160 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
5161 of a more concise and more-often effective "(void) i" statement.
5162 (ignore_ptr): New function to suppress warnings from functions that
5163 return pointers, and to make it explicit that one function doesn't
5166 2009-08-25 Bruno Haible <bruno@clisp.org>
5168 dup2: work around a Linux bug.
5169 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
5170 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
5171 * doc/posix-functions/dup2.texi: Mention the Linux bug.
5172 Reported by Simon Josefsson.
5174 2009-08-25 Jim Meyering <meyering@redhat.com>
5176 libguestfs uses gnulib
5177 * users.txt: Add libguestfs.
5179 2009-08-24 Eric Blake <ebb9@byu.net>
5181 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
5182 * lib/pipe2.c (includes): Add binary-io.h.
5183 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
5185 2009-08-24 Bruno Haible <bruno@clisp.org>
5187 Tolerate declared but missing accept4 syscall.
5188 * lib/accept4.c (accept4): Invoke original accept4 function first, if
5190 * lib/sys_socket.in.h (accept4): If the function is already present,
5192 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
5193 * modules/accept4 (Makefile.am): Compile accept4.c always.
5194 Reported by Paolo Bonzini and Eric Blake.
5196 2009-08-23 Bruno Haible <bruno@clisp.org>
5198 New module 'accept4'.
5199 * lib/sys_socket.in.h (accept4): New declaration.
5200 * lib/accept4.c: New file.
5201 * m4/accept4.m4: New file.
5202 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5203 GNULIB_ACCEPT4, HAVE_ACCEPT4.
5204 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
5206 * modules/accept4: New file.
5207 * doc/glibc-functions/accept4.texi: Mention the new module.
5209 2009-08-24 Jim Meyering <meyering@redhat.com>
5211 progname: also set global program_invocation_name, when possible
5212 Before this change, a libtool-enabled program that calls glibc's
5213 error function would report the program name as
5214 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
5215 * modules/progname (configure.ac): Check for a declaration of
5216 program_invocation_name.
5217 * lib/progname.c: Include <errno.h>.
5218 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
5219 Set program_invocation_name.
5221 2009-08-23 Bruno Haible <bruno@clisp.org>
5223 * lib/dup3.c: Include <string.h>.
5225 2009-08-23 Bruno Haible <bruno@clisp.org>
5227 * lib/dup3.c (dup3): Test only once whether the system actually exists.
5228 * lib/pipe2.c (pipe2): Likewise.
5229 Suggested by Eric Blake.
5231 2009-08-23 Bruno Haible <bruno@clisp.org>
5233 Tolerate declared but missing dup3 syscall.
5234 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
5235 * lib/unistd.in.h (dup3): If the function is already present,
5237 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
5238 * modules/dup3 (Makefile.am): Compile dup3.c always.
5239 Reported by Paolo Bonzini.
5241 2009-08-23 Bruno Haible <bruno@clisp.org>
5243 Tolerate declared but missing pipe2 syscall.
5244 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
5246 * lib/unistd.in.h (pipe2): If the function is already present,
5248 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
5249 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
5250 Reported by Paolo Bonzini.
5252 2009-08-23 Bruno Haible <bruno@clisp.org>
5254 * lib/pipe2.c (pipe2): Move #ifs inside function.
5256 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
5258 quotearg: document limitations of quote_these_too
5259 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
5260 those limitations are created.
5261 * lib/quotearg.h (set_char_quoting): Document that digits and
5262 letters that are special after backslash are not permitted.
5263 (quotearg_char): Cross-reference set_char_quoting documentation.
5265 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
5267 quotearg: implement custom_quoting_style
5268 * lib/quotearg.c: (struct quoting_options): Add left_quote and
5270 (set_custom_quoting): New public function.
5271 (quotearg_buffer_restyled): Add left_quote and right_quote
5272 arguments, handle them very much like locale quoting, and update
5274 (quotearg_n_custom): New public function.
5275 (quotearg_n_custom_mem): New public function.
5276 (quotearg_custom): New public function.
5277 (quotearg_custom_mem): New public function.
5278 * lib/quotearg.h: Prototype and document new public functions.
5279 (enum quoting_style): For escape_quoting_style and
5280 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
5281 ignored even though they're otherwise like c_quoting_style.
5282 Add custom_quoting_style member and document with comparison to
5283 clocale_quoting_style.
5284 * tests/test-quotearg.c (custom_quotes): New array.
5285 (custom_results): New array.
5286 (main): Extend to test custom quoting.
5288 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
5290 quotearg: fix right quote escaping when it's in quote_these_too
5291 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
5292 quote, be sure to prepend only one backslash.
5293 * tests/test-quotearg.c (use_quote_double_quotes): New function.
5296 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
5298 quotearg-tests: test escaping of embedded locale quotes
5299 * tests/test-quotearg.c (struct result_strings): Add member for
5301 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
5302 (inputs): Add new input.
5303 (results_g): Add expected results.
5304 (flag_results): Likewise.
5305 (locale_results): Likewise.
5306 (compare_strings): Check those.
5308 2009-08-23 Bruno Haible <bruno@clisp.org>
5310 Tests for module 'dup3'.
5311 * modules/dup3-tests: New file.
5312 * tests/test-dup3.c: New file.
5315 * lib/unistd.in.h (dup3): New declaration.
5316 * lib/dup3.c: New file.
5317 * m4/dup3.m4: New file.
5318 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
5320 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
5321 * modules/dup3: New file.
5322 * doc/glibc-functions/dup3.texi: Mention the new module.
5324 2009-08-23 Bruno Haible <bruno@clisp.org>
5326 Tweak the dup2 test.
5327 * tests/test-dup2.c (main): Create the test file empty. Verify that an
5328 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
5329 the test file is still empty. Fix argument order of lseek.
5331 2009-08-23 Bruno Haible <bruno@clisp.org>
5333 Avoid test link errors when the modules getopt-gnu, gettext are used.
5334 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
5335 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5337 2009-08-23 Bruno Haible <bruno@clisp.org>
5339 Fix getdtablesize() on mingw.
5340 * lib/getdtablesize.c (getdtablesize): Implement differently.
5341 * lib/unistd.in.h (getdtablesize): Improve comment.
5343 2009-08-23 Bruno Haible <bruno@clisp.org>
5345 New module 'mkostemp'.
5346 Based on Ulrich Drepper's 2007-08-10 change in glibc.
5347 * lib/stdlib.in.h (mksotemp): New declaration.
5348 * lib/mkostemp.c: New file, from glibc with modifications.
5349 * lib/tempname.h (GT_FILE): Remove outdated comment.
5350 (gen_tempname): Add flags argument.
5351 * lib/tempname.c (__GT_BIGFILE): Remove macro.
5352 (__GT_FILE): Map to 1.
5353 (small_open, large_open): Remove macros.
5354 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
5355 * lib/mkstemp.c (mkstemp): Update.
5356 * lib/mkdtemp.c (mkdtemp): Likewise.
5357 * m4/mkostemp.m4: New file.
5358 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
5360 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
5362 * modules/mkostemp: New file, based on modules/mkstemp.
5363 * doc/glibc-functions/mkostemp.texi: Mention the new module.
5364 * NEWS: Mention the change.
5366 2009-08-23 Bruno Haible <bruno@clisp.org>
5368 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
5369 Reported by Eric Blake.
5371 2009-08-23 Bruno Haible <bruno@clisp.org>
5373 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
5374 Reported by Eric Blake.
5376 2009-08-23 Bruno Haible <bruno@clisp.org>
5378 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
5379 * modules/pipe2 (Depends-on): Likewise.
5381 2009-08-23 Eric Blake <ebb9@byu.net>
5383 fcntl-h: add O_TTY_INIT support
5384 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
5385 * tests/test-fcntl-h.c (o): Test it.
5386 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5388 fcntl-h: rename from fcntl, in preparation for fcntl(2)
5389 * modules/fcntl: Move <fcntl.h> header replacement...
5390 * modules/fcntl-h: ...to new name, so as not to collide with
5391 like-named function.
5392 * tests/test-fcntl.c: Rename...
5393 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
5394 * modules/fcntl-tests: Rename...
5395 * modules/fcntl-h-tests: ...to this. Update test file name.
5396 * modules/chdir-long (Depends-on): Update clients.
5397 * modules/chdir-safer (Depends-on): Likewise.
5398 * modules/fcntl-safer (Depends-on): Likewise.
5399 * modules/fts (Depends-on): Likewise.
5400 * modules/mkancesdirs (Depends-on): Likewise.
5401 * modules/mkdir-p (Depends-on): Likewise.
5402 * modules/open (Depends-on): Likewise.
5403 * modules/savewd (Depends-on): Likewise.
5404 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
5405 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5407 2009-08-22 Bruno Haible <bruno@clisp.org>
5409 * modules/binary-io (License): Relicense under LGPL.
5410 * modules/pipe2 (License): Likewise.
5412 2009-08-22 Bruno Haible <bruno@clisp.org>
5414 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
5416 * lib/pipe-filter-gi.c (filter_init): Likewise.
5417 Reported by Eric Blake.
5419 2009-08-22 Bruno Haible <bruno@clisp.org>
5421 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
5422 * modules/pipe (Depends-on): Add pipe2.
5424 2009-08-22 Bruno Haible <bruno@clisp.org>
5426 Tests for module 'pipe2'.
5427 * modules/pipe2-tests: New file.
5428 * tests/test-pipe2.c: New file.
5431 * lib/unistd.in.h (pipe2): New declaration.
5432 * lib/pipe2.c: New file.
5433 * m4/pipe2.m4: New file.
5434 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
5436 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
5437 * modules/pipe2: New file.
5438 * doc/glibc-functions/pipe2.texi: Mention the new module.
5440 2009-08-22 Bruno Haible <bruno@clisp.org>
5442 Reference some new glibc functions.
5443 * doc/glibc-functions/accept4.texi: New file.
5444 * doc/glibc-functions/dup3.texi: New file.
5445 * doc/glibc-functions/mkostemp.texi: New file.
5446 * doc/glibc-functions/pipe2.texi: New file.
5447 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
5448 (Glibc sys/socket.h): Refer to accept4.
5449 (Glibc unistd.h): Refer to dup3, pipe2.
5450 Reported by Eric Blake.
5452 2009-08-22 Jim Meyering <meyering@redhat.com>
5453 Bruno Haible <bruno@clisp.org>
5455 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
5456 This makes it so packages using automake-1.11's silent-rules option
5457 can print e.g., a single "GEN configmake.h" line, rather than
5458 the 30+ statements that perform the job. If you want to see the
5459 actual commands, you can still run "make V=1".
5460 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
5461 so that make output is abbreviated when those variables are defined
5463 * modules/argz: Likewise.
5464 * modules/arpa_inet: Likewise.
5465 * modules/byteswap: Likewise.
5466 * modules/configmake: Likewise.
5467 * modules/dirent: Likewise.
5468 * modules/errno: Likewise.
5469 * modules/fcntl: Likewise.
5470 * modules/float: Likewise.
5471 * modules/fnmatch: Likewise.
5472 * modules/getopt-posix: Likewise.
5473 * modules/glob: Likewise.
5474 * modules/iconv_open: Likewise.
5475 * modules/inttypes: Likewise.
5476 * modules/localcharset: Likewise.
5477 * modules/locale: Likewise.
5478 * modules/math: Likewise.
5479 * modules/netdb: Likewise.
5480 * modules/netinet_in: Likewise.
5481 * modules/poll: Likewise.
5482 * modules/posix_spawnp-tests: Likewise.
5483 * modules/sched: Likewise.
5484 * modules/search: Likewise.
5485 * modules/selinux-h: Likewise.
5486 * modules/signal: Likewise.
5487 * modules/spawn: Likewise.
5488 * modules/stdarg: Likewise.
5489 * modules/stdbool: Likewise.
5490 * modules/stddef: Likewise.
5491 * modules/stdint: Likewise.
5492 * modules/stdio: Likewise.
5493 * modules/stdlib: Likewise.
5494 * modules/string: Likewise.
5495 * modules/strings: Likewise.
5496 * modules/sys_file: Likewise.
5497 * modules/sys_ioctl: Likewise.
5498 * modules/sys_select: Likewise.
5499 * modules/sys_socket: Likewise.
5500 * modules/sys_stat: Likewise.
5501 * modules/sys_time: Likewise.
5502 * modules/sys_times: Likewise.
5503 * modules/sys_utsname: Likewise.
5504 * modules/sys_wait: Likewise.
5505 * modules/sysexits: Likewise.
5506 * modules/time: Likewise.
5507 * modules/unistd: Likewise.
5508 * modules/wchar: Likewise.
5509 * modules/wctype: Likewise.
5511 2009-08-22 Jim Meyering <meyering@redhat.com>
5513 announce-gen: detect write failure
5514 * build-aux/announce-gen: Add Coda at end.
5515 Remove equivalent-but-more-verbose block at top.
5517 2009-08-19 Akim Demaille <demaille@gostai.com>
5519 bootstrap: --help to stdout.
5520 * bootstrap (usage): Don't send --help to stderr.
5521 Use a here doc instead of a long string.
5523 2009-08-21 Eric Blake <ebb9@byu.net>
5525 test-popen-safer: split from test-popen
5526 * tests/test-popen.c (main): Move...
5527 * tests/test-popen.h: ...into new file.
5528 * tests/test-popen-safer2.c: New file.
5529 * modules/popen-tests (Files): Add test-popen.h.
5530 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
5531 Suggested by Bruno Haible.
5533 test-fcntl-safer: split from test-open
5534 * tests/test-open.c (main): Move...
5535 * tests/test-open.h: ...into new file.
5536 * tests/test-fcntl-safer.c: New file.
5537 * modules/open-tests (Files): Add test-open.h.
5538 * modules/fcntl-safer-tests: New file.
5539 Suggested by Bruno Haible.
5541 test-fopen-safer: split from test-fopen
5542 * tests/test-fopen.c (main): Move...
5543 * tests/test-fopen.h: ...into new file.
5544 * tests/test-fopen-safer.c: New file.
5545 * modules/fopen-tests (Files): Add test-fopen.h.
5546 * modules/fopen-safer-tests: New file.
5547 Suggested by Bruno Haible.
5549 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
5551 popen-safer: test O_CLOEXEC at run-time.
5552 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
5554 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
5556 fcntl: move more flags to the header
5557 * lib/cloexec.c: Do not define FD_CLOEXEC here.
5558 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
5559 * lib/fcntl.in.h: Do both things here.
5561 2009-08-21 Jim Meyering <meyering@redhat.com>
5563 consistently remove $@-t before redirecting to it
5564 * modules/argz: Remove $@-t and $@ before redirecting to the former.
5565 * modules/alloca-opt: Likewise.
5566 * modules/byteswap: Likewise.
5567 * modules/fnmatch: Likewise.
5568 * modules/getopt-posix: Likewise.
5569 * modules/glob: Likewise.
5570 * modules/poll: Likewise.
5571 * modules/posix_spawnp-tests: Likewise.
5572 * modules/sys_socket: Likewise.
5573 * modules/sysexits: Likewise.
5575 2009-08-21 Eric Blake <ebb9@byu.net>
5577 popen: simplify access to original popen
5578 * lib/popen.c (rpl_popen): No need to worry about popen being a
5580 Reported by Bruno Haible.
5582 2009-08-20 Eric Blake <ebb9@byu.net>
5584 build: avoid some compiler warnings
5585 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
5586 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
5588 (new_exclude_segment, excluded_file_pattern_p)
5589 (excluded_file_name_p): Reduce scope.
5590 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
5591 old-style declaration.
5593 2009-08-20 Simon Josefsson <simon@josefsson.org>
5595 * tests/test-exclude1.sh: Handle Windows EOL.
5596 * tests/test-exclude2.sh: Likewise.
5597 * tests/test-exclude3.sh: Likewise.
5598 * tests/test-exclude4.sh: Likewise.
5599 * tests/test-exclude5.sh: Likewise.
5600 * tests/test-exclude6.sh: Likewise.
5601 * tests/test-exclude7.sh: Likewise.
5603 2009-08-19 Akim Demaille <demaille@gostai.com>
5605 bootstrap: find sha1sum when named gsha1sum.
5606 * bootstrap (find_tool): New.
5610 2009-08-20 Jim Meyering <meyering@redhat.com>
5612 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
5613 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
5614 expression that converts "." in a file name to "\." in the resulting
5615 regexp. Start with a dummy statement, so that prior shell variable
5616 definitions are expanded portably. Reported by Simon Josefsson.
5618 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
5620 Fix polling for writeability of a screen buffer.
5621 * lib/poll.c: Distinguish input and screen buffers for the
5622 Win32 implementation.
5623 * lib/select.c: Likewise.
5625 2009-08-19 Eric Blake <ebb9@byu.net>
5627 popen-safer: prevent popen from clobbering std descriptors
5628 * modules/popen-safer: New file.
5629 * lib/popen-safer.c: Likewise.
5630 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
5631 * lib/stdio--.h (popen): Provide override.
5632 * lib/stdio-safer.h (popen_safer): Provide declaration.
5633 * tests/test-popen.c (includes): Partially test this.
5634 * modules/popen-safer-tests: New file, for more tests.
5635 * tests/test-popen-safer.c: Likewise.
5636 * MODULES.html.sh (file stream based Input/Output): Mention it.
5638 tests: test some of the *-safer modules
5639 * modules/fopen-safer (Depends-on): Add fopen.
5640 * modules/fcntl-safer (Depends-on): Add fcntl.
5641 * modules/stdlib-safer (Depends-on): Add stdlib.
5642 (configure.ac): Set indicator.
5643 * modules/unistd-safer (configure.ac): Likewise.
5644 * modules/tmpfile-safer (configure.ac): Likewise.
5645 (Depends-on): Add tmpfile.
5646 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
5648 * tests/test-fopen.c (includes): Test safer versions when they are
5650 * tests/test-open.c (includes): Likewise.
5652 popen: fix cygwin 1.5 bug when stdin closed
5653 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
5654 * modules/popen: New file.
5655 * modules/popen-tests: Likewise.
5656 * tests/test-popen.c: Likewise.
5657 * m4/popen.m4: Likewise.
5658 * lib/popen.c: Likewise.
5659 * lib/stdio.in.h (popen): New declaration.
5660 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
5661 * modules/stdio (Makefile.am): Likewise.
5662 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
5664 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
5666 maint.mk: give full control over update-copyright exclusions
5667 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
5668 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
5669 (update-copyright): Don't force inclusion of top-level
5670 ChangeLog. Don't force exclusion of all COPYING files, but make
5671 them the default exclusion instead.
5673 2009-08-16 Bruno Haible <bruno@clisp.org>
5675 Fix test failures on Solaris 10.
5676 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
5677 tests when Solaris iconv() is used.
5678 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
5679 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
5680 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
5681 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
5682 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
5684 2009-08-16 Bruno Haible <bruno@clisp.org>
5686 Fix test failures on Solaris 10.
5687 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
5688 'tr' program and pass it as first argument.
5689 * tests/test-pipe-filter-gi1.sh: Likewise.
5690 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
5691 program as first argument.
5692 * tests/test-pipe-filter-gi1.c (main): Likewise.
5694 2009-08-16 Eric Blake <ebb9@byu.net>
5696 fpurge: fix previous commits
5697 * modules/fpurge (Makefile.am): Make replacement conditional,
5698 partially reverting 2007-04-29 change; missed in previous
5700 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
5703 2009-08-16 Bruno Haible <bruno@clisp.org>
5705 Clarify fpurge's effect on the file position.
5706 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
5707 * tests/test-fpurge.c (main): Make a second pass for checking the file
5710 2009-08-16 Bruno Haible <bruno@clisp.org>
5712 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
5713 declaration of fpurge is missing.
5714 * tests/test-fpurge.c (main): Check that the file has not more contents
5715 than expected. Close the file before removing it.
5717 2009-08-15 Eric Blake <ebb9@byu.net>
5719 fpurge: don't wrap working cygwin implementation
5720 * lib/fpurge.c (fpurge): Fix comment typo.
5721 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
5722 1.7 to avoid replacement.
5723 * tests/test-fpurge.c (main): Enhance test.
5725 2009-08-15 Eric Blake <ebb9@byu.net>
5726 and Jim Meyering <meyering@redhat.com>
5728 test-update-copyright: skip if perl is insufficient
5729 * tests/test-update-copyright.sh: Failure to run maintainer tool
5730 should not cause testsuite failure on cygwin 1.5.
5732 2009-08-14 Eric Blake <ebb9@byu.net>
5734 doc: mention more functions added in cygwin 1.7.0
5735 * doc/posix-headers/limits.texi (limits.h): Update for recent
5737 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
5738 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5739 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
5740 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
5741 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
5743 2009-08-14 Eric Blake <ebb9@byu.net>
5745 maint.mk: simplify update-copyright rule
5746 * top/maint.mk (update-copyright-local): Delete, and document how
5747 to do it in cfg.mk instead.
5748 (update-copyright-exclude-regexp): Delete, and document how to do
5749 it in .x-update-copyright instead.
5750 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
5753 2009-08-14 Bruno Haible <bruno@clisp.org>
5755 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
5757 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
5759 maint.mk: support update-copyright-env
5760 * top/maint.mk (update-copyright-env): Define place-holder.
5761 (update-copyright): Expand $(update-copyright-env) before
5762 invoking update-copyright.
5764 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
5766 update-copyright: implement forced reformatting
5767 * build-aux/update-copyright: Implement and document
5768 UPDATE_COPYRIGHT_FORCE.
5769 * tests/test-update-copyright.sh: Test it.
5771 2009-08-14 Eric Blake <ebb9@byu.net>
5772 and Bruno Haible <bruno@clisp.org>
5774 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
5775 * tests/test-locale.c: Revert previous patch related to NULL.
5776 * tests/test-stdio.c: Likewise.
5777 * tests/test-stdlib.c: Likewise.
5778 * tests/test-string.c: Likewise.
5779 * tests/test-unistd.c: Likewise.
5780 * modules/time-tests (Depends-on): Add verify.
5781 * modules/wchar-tests (Depends-on): Likewise.
5782 * tests/test-time.c: Test for NULL compliance.
5783 * tests/test-wchar.c: Likewise.
5784 * modules/locale (Depends-on): Add stddef.
5785 * modules/stdio (Depends-on): Likewise.
5786 * modules/stdlib (Depends-on): Likewise.
5787 * modules/string (Depends-on): Likewise.
5788 * modules/time (Depends-on): Likewise.
5789 * modules/unistd (Depends-on): Likewise.
5790 * modules/wchar (Depends-on): Likewise.
5791 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
5792 * lib/stdlib.in.h (includes): Likewise.
5793 * lib/string.in.h (includes): Likewise.
5794 * lib/time.in.h (includes): Likewise.
5795 * lib/unistd.in.h (includes): Likewise.
5796 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
5798 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
5799 * m4/stddef_h.m4: New file.
5800 * modules/stddef: Likewise.
5801 * lib/stddef.in.h: Likewise.
5802 * modules/stddef-tests: Likewise.
5803 * tests/test-stddef.c: Likewise.
5804 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
5805 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
5806 * doc/posix-headers/locale.texi (locale.h): Likewise.
5807 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
5808 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
5809 * doc/posix-headers/string.texi (string.h): Likewise.
5810 * doc/posix-headers/time.texi (time.h): Likewise.
5811 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
5812 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
5814 2009-08-14 Eric Blake <ebb9@byu.net>
5816 doc: improve git diff of texinfo files
5817 * .gitattributes: Add rule for *.texi files, with hint on how to
5819 Copied from m4, and based on a report by Bruno Haible.
5821 2009-08-14 Bruno Haible <bruno@clisp.org>
5823 Disable multithread support by default on Cygwin 1.5.x for real.
5824 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
5826 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
5828 update-copyright: much ado about intervals
5829 * build-aux/update-copyright: Implement and document
5830 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
5831 of copyright year intervals.
5832 Also, document UPDATE_COPYRIGHT_YEAR.
5833 * tests/test-update-copyright.sh: Test it.
5835 update-copyright: convert 2-digit to 4-digit years
5836 * build-aux/update-copyright: Implement and document.
5837 * tests/test-update-copyright.sh: Update.
5839 2009-08-14 Jim Meyering <meyering@redhat.com>
5841 test-exclude: avoid coreutils "make check" failure
5842 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
5843 just as in test-argmatch.c.
5845 2009-08-13 Eric Blake <ebb9@byu.net>
5847 test-dup2: fix bad assumption
5848 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
5849 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
5851 test-version-etc: fix CRLF portability issue
5852 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
5854 * tests/test-argp-version-etc-1.sh: Likewise.
5856 getopt: update client modules
5857 * modules/argp (Depends-on): Use getopt-gnu.
5858 * modules/git-merge-changelog (Depends-on): Likewise.
5859 * modules/long-options (Depends-on): Likewise.
5860 * modules/xstrtol (Depends-on): Likewise.
5862 2009-08-13 Simon Josefsson <simon@josefsson.org>
5864 * tests/test-version-etc.sh: Don't fail on different
5865 project/version. Don't fail on CRLF differences. Rewrite to use
5866 multiple -e instead of multiple sed forks, suggested by Eric Blake
5868 * tests/test-argp-version-etc-1.sh: Likewise.
5870 2009-08-13 Simon Josefsson <simon@josefsson.org>
5872 * tests/test-version-etc.sh: Don't fail on different
5875 2009-08-12 Bruno Haible <bruno@clisp.org>
5877 Tests for modules 'getopt-posix', 'getopt-gnu'.
5878 * modules/getopt-posix-tests: New file.
5879 * tests/test-getopt.c: New file.
5880 * tests/test-getopt.h: New file.
5881 * tests/test-getopt_long.h: New file.
5883 New modules 'getopt-posix', 'getopt-gnu'.
5884 * modules/getopt-gnu: New file, renamed from modules/getopt.
5885 * modules/getopt-posix: New file.
5886 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
5887 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
5888 (gl_GETOPT): Remove macro.
5889 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
5890 Disable the test against BSD systems that declare optreset. Test
5891 against mingw bug. Test against lack of support of optional arguments
5893 * doc/glibc-headers/getopt.texi: Update module name and list of
5895 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
5896 'getopt-gnu' and more portability problems.
5897 * NEWS: Mention the changes.
5899 2009-08-12 Bruno Haible <bruno@clisp.org>
5901 Ensure that optarg etc. get declared by <unistd.h>.
5902 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
5903 AC_USE_SYSTEM_EXTENSIONS.
5904 * modules/getopt (Depends-on): Add 'extensions'.
5906 2009-08-12 Bruno Haible <bruno@clisp.org>
5908 Avoid test link errors.
5909 * modules/pipe-filter-ii-tests (Makefile.am): Define
5910 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
5911 * modules/pipe-filter-gi-tests (Makefile.am): Define
5912 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
5913 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5915 2009-08-12 Bruno Haible <bruno@clisp.org>
5917 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
5918 gl_GETOPT_SUBSTITUTE before.
5919 (gl_GETOPT): Use it.
5920 * m4/argp.m4 (gl_ARGP): Update.
5921 Reported by Sergey Poznyakoff.
5923 * m4/getopt.m4: Reorder macros.
5924 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
5925 (gl_GETOPT_SUBSTITUTE): Remove macro.
5927 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
5929 Minor improvement in gitlog-to-changelog
5931 * build-aux/gitlog-to-changelog: New option `--format' makes
5932 output format string configurable.
5934 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
5936 Optimize exclude: use hash tables for non-wildcard patterns.
5938 * lib/exclude.c: Include hash.h and mbuiter.h
5939 (struct exclude_pattern, exclude_segment): New data types.
5940 (struct exclude): Rewrite.
5941 (fnmatch_pattern_has_wildcards): New function.
5942 (new_exclude_segment, free_exclude_segment): New functions.
5943 (excluded_file_pattern_p, excluded_file_name_p): New functions.
5944 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
5945 * lib/exclude.h (is_fnmatch_pattern): New prototype.
5946 * modules/exclude: Depend on hash and mbuiter.
5948 * modules/exclude-tests: New file.
5949 * tests/test-exclude.c: New file.
5950 * tests/test-exclude1.sh: New file.
5951 * tests/test-exclude2.sh: New file.
5952 * tests/test-exclude3.sh: New file.
5953 * tests/test-exclude4.sh: New file.
5954 * tests/test-exclude5.sh: New file.
5955 * tests/test-exclude6.sh: New file.
5956 * tests/test-exclude7.sh: New file.
5958 2009-08-12 Bruno Haible <bruno@clisp.org>
5960 Ensure that getopt() gets declared by <unistd.h>.
5961 * lib/unistd.in.h: Conditionally include getopt.h.
5962 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
5963 Set GNULIB_UNISTD_H_GETOPT.
5964 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5965 GNULIB_UNISTD_H_GETOPT.
5966 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
5968 2009-08-12 Bruno Haible <bruno@clisp.org>
5971 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
5972 gl_replace_getopt instead of GETOPT_H.
5974 2009-08-12 Bruno Haible <bruno@clisp.org>
5976 * m4/getopt.m4: Add comments.
5978 2009-08-12 Bruno Haible <bruno@clisp.org>
5980 Disable multithread support by default on Cygwin 1.5.x.
5981 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
5982 set gl_use_threads=no if not specified otherwise.
5984 2009-08-11 Bruno Haible <bruno@clisp.org>
5986 Avoid compilation error on NetBSD 5.0.
5987 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
5988 * tests/test-stdio.c: Likewise.
5989 * tests/test-stdlib.c: Likewise.
5990 * tests/test-string.c: Likewise.
5991 * tests/test-unistd.c: Likewise.
5992 Reported by Greg Troxel <gdt@ir.bbn.com>
5993 at <https://savannah.gnu.org/support/?106973>.
5995 2009-08-11 Bruno Haible <bruno@clisp.org>
5997 * modules/dup2-tests (Depends-on): Remove close.
5999 Undo 2009-07-19 commit.
6000 * modules/acl-tests (Depends-on): Remove close.
6001 * modules/binary-io-tests (Depends-on): Likewise.
6002 * modules/closein-tests (Depends-on): Likewise.
6003 * modules/flock-tests (Depends-on): Likewise.
6004 * modules/fsync-tests (Depends-on): Likewise.
6005 * modules/lseek-tests (Depends-on): Likewise.
6006 * modules/pipe-tests (Depends-on): Likewise.
6007 * modules/posix_spawn-tests (Depends-on): Likewise.
6008 * modules/posix_spawnp-tests (Depends-on): Likewise.
6009 * modules/stat-time-tests (Depends-on): Likewise.
6010 * modules/yesno-tests (Depends-on): Likewise.
6012 2009-08-10 Bruno Haible <bruno@clisp.org>
6014 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
6016 2009-08-10 Bruno Haible <bruno@clisp.org>
6019 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
6021 2009-08-10 Bruno Haible <bruno@clisp.org>
6023 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
6024 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
6025 not only the first time.
6026 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
6027 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
6028 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
6029 is 1, not only the the first time.
6031 2009-08-10 Bruno Haible <bruno@clisp.org>
6033 Make it possible to use module 'gethostname' without module 'close'.
6034 * lib/unistd.in.h (close): Evoke a link error only if
6035 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
6036 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6037 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6038 * modules/unistd (Makefile.am): Substitute
6039 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6040 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
6041 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
6042 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6043 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6044 * modules/sys_ioctl (Makefile.am): Substitute
6045 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6046 * modules/socket (configure.ac): On native Windows, set
6047 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
6048 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6049 Reported by Sam Steingold <sds@gnu.org>.
6051 2009-08-10 Bruno Haible <bruno@clisp.org>
6053 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
6054 * modules/ioctl (configure.ac): Likewise.
6056 2009-08-10 Bruno Haible <bruno@clisp.org>
6058 Avoid collision between gnulib wrapper and libintl wrapper.
6059 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
6060 already defined in intl/printf.c.
6061 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
6062 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
6064 2009-08-09 Bruno Haible <bruno@clisp.org>
6066 Make <sys/select.h> really self-contained, also on Solaris 10.
6067 * lib/sys_select.in.h: Include <string.h>.
6068 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
6070 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
6071 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
6072 Reported by Jim Meyering.
6074 2009-08-09 Bruno Haible <bruno@clisp.org>
6076 Avoid warnings from 'aclocal' that are due to a use of macro name
6077 AM_XGETTEXT_OPTION that is not defined in automake.
6078 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
6080 * modules/error (configure.ac): Likewise.
6081 * modules/propername (configure.ac): Likewise.
6082 * modules/vasprintf (configure.ac): Likewise.
6083 * modules/verror (configure.ac): Likewise.
6084 * modules/xprintf (configure.ac): Likewise.
6085 * modules/xvasprintf (configure.ac): Likewise.
6087 2009-08-08 Bruno Haible <bruno@clisp.org>
6089 Avoid compilation error in C++ mode.
6090 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
6091 Reported by Sam Steingold <sds@gnu.org>.
6093 2009-08-08 Bruno Haible <bruno@clisp.org>
6095 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
6096 for the various Unix platforms.
6097 * doc/posix-headers/limits.texi: Update platforms list regarding
6099 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6101 2009-08-07 Jim Meyering <meyering@redhat.com>
6103 selinux-at: fix typo in a comment
6104 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
6105 Spotted by Paolo Bonzini.
6107 selinux-at: remove redundant m4 code, add documentation
6108 * modules/selinux-at (configure.ac): Remove redundant code.
6109 LIB_SELINUX is already set via the dependent module, selinux-h.
6110 (Include): Add quotes around selinux-at.h.
6111 * lib/selinux-at.h: Add documentation.
6112 Reported by Bruno Haible in
6113 http://marc.info/?l=gnulib-bug&m=124958988300749
6115 2009-08-07 Bruno Haible <bruno@clisp.org>
6117 Avoid link error on MacOS X 10.3 and 10.4.
6118 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
6120 * lib/argp-pv.c (argp_program_version): Likewise.
6121 Reported by Simon Josefsson.
6123 2009-08-07 Simon Josefsson <simon@josefsson.org>
6125 * tests/test-version-etc.sh: Use $EXEEXT.
6127 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
6129 update-copyright: update documentation to point to maint.mk
6130 * build-aux/update-copyright: Here.
6132 2009-08-06 Jim Meyering <meyering@redhat.com>
6134 maint.mk: support update-copyright-local
6135 * top/maint.mk (update-copyright-local): Define place-holder.
6136 (update-copyright): Depend on $(update-copyright-local).
6138 2009-08-06 Jim Meyering <meyering@redhat.com>
6140 selinux-at: new module
6141 Initially written for coreutils, this module will soon be
6142 used by findutils, too.
6143 * MODULES.html.sh [Misc]: Add selinux-at.
6144 * lib/selinux-at.h: New file, from coreutils.
6145 * lib/selinux-at.c: Likewise.
6146 * modules/selinux-at: Likewise.
6147 (License): Change from LGPL to GPL, since it depends
6148 on the GPL'd openat module.
6151 * README: Remove references to cogito.
6152 Remove cvs-repo-updating instructions from 2007.
6153 Don't imply that CVS is better if you have limited disk space.
6155 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6157 update-copyright: support C-style comments
6158 * build-aux/update-copyright: Implement and document.
6159 * tests/test-update-copyright.sh: Test.
6161 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6163 update-copyright: support omitted "(C)"
6164 * build-aux/update-copyright: Implement and document. Also,
6165 allow variable whitespace before "(C)".
6166 * tests/test-update-copyright.sh: Test.
6168 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6170 update-copyright: don't trip on non-FSF copyright statements
6171 * build-aux/update-copyright: Fix so that the first correctly
6172 formatted FSF copyright statement is recognized no matter what
6173 appears before it. Update documentation.
6174 * tests/test-update-copyright.sh: Test that.
6176 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6178 update-copyright: clean up code a little
6179 * build-aux/update-copyright: Append "_re" to the name of any
6180 variable holding a regular expression.
6181 Replace "old" and "new" with "stmt" in variable names.
6182 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
6184 Format code more consistently.
6186 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6188 update-copyright-tests: improve portability
6189 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
6190 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
6192 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
6194 update-copyright: support @copyright{} and ©
6195 * build-aux/update-copyright: Implement and document.
6196 * tests/test-update-copyright.sh: Test.
6198 2009-08-04 Jim Meyering <meyering@redhat.com>
6200 update-copyright-tests: correctly test EOL=\r\n handling
6201 * tests/test-update-copyright.sh: Put \r at the end of some lines
6202 for the dos-eol tests. Based on a patch by Joel E. Denny.
6204 maint.mk: make update-copyright exclusion list more configurable
6205 * top/maint.mk (update-copyright): Default to excluding COPYING,
6206 but allow an override, in case someone does want to update that file.
6208 maint.mk: don't update copyright date in COPYING
6209 * top/maint.mk (update-copyright): Exclude COPYING.
6211 maint.mk: add a copyright-updating rule
6212 * top/maint.mk (update-copyright): New rule.
6213 Derived from coreutils/Makefile.am.
6215 update-copyright: rename some variables
6216 * build-aux/update-copyright: Rename a few variables for clarity.
6217 Tweak syntax. List Joel E. Denny as coauthor.
6219 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
6221 update-copyright: fix bug for 2-digit last year and add tests
6222 * build-aux/update-copyright: Fix bug.
6223 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
6225 * modules/update-copyright-tests: New
6226 * tests/test-update-copyright.sh: New.
6228 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
6230 update-copyright: handle leading tabs in line prefix
6231 * build-aux/update-copyright: Count leading tabs as 8 spaces
6232 when computing margin. This helps with the formatting of
6233 ChangeLogs, for example.
6234 Fix documentation a little.
6236 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
6238 update-copyright: support EOL=\r\n
6239 * build-aux/update-copyright: Implement that.
6241 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
6243 update-copyright: automatically format copyright statements
6244 * build-aux/update-copyright: Implement that.
6245 Also, be a little more predictable and safer by always failing
6246 when the full copyright format is not perfectly recognized as an
6247 unbroken whole. Discussed at
6248 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
6249 Rewrite documentation.
6251 2009-08-03 Bruno Haible <bruno@clisp.org>
6253 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
6255 2009-08-02 Bruno Haible <bruno@clisp.org>
6257 Tests for module 'uname'.
6258 * modules/uname-tests: New file.
6259 * tests/test-uname.c: New file.
6262 * lib/uname.c: New file.
6263 * m4/uname.m4: New file.
6264 * modules/uname: New file.
6265 * doc/posix-functions/uname.texi: Mention the new module.
6267 2009-08-02 Bruno Haible <bruno@clisp.org>
6269 Tests for module 'sys_utsname'.
6270 * modules/sys_utsname-tests: New file.
6271 * tests/test-sys_utsname.c: New file.
6273 New module 'sys_utsname'.
6274 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
6275 * m4/sys_utsname_h.m4: New file.
6276 * modules/sys_utsname: New file.
6277 * doc/posix-headers/sys_utsname.texi: Mention the new module.
6279 2009-08-02 Bruno Haible <bruno@clisp.org>
6281 Implicitly initialize the sockets library.
6282 * lib/gethostname.c: Include sockets.h.
6283 (rpl_gethostname): Invoke gl_sockets_startup.
6284 * lib/socket.c: Include sockets.h.
6285 (rpl_socket): Invoke gl_sockets_startup.
6286 * modules/gethostname (Depends-on): Add sockets.
6287 * modules/socket (Depends-on): Likewise.
6288 * tests/test-poll.c: Don't include sockets.h.
6289 (main): Don't invoke gl_sockets_startup.
6290 * tests/test-select.c: Don't include sockets.h.
6291 (main): Don't invoke gl_sockets_startup.
6293 2009-08-02 Bruno Haible <bruno@clisp.org>
6295 Allow multiple calls to gl_sockets_startup.
6296 * lib/sockets.c (initialized_sockets_version): New variable.
6297 (gl_sockets_startup): Do nothing if already called for this or a higher
6299 (gl_sockets_cleanup): Reset initialized_sockets_version.
6301 2009-08-03 Simon Josefsson <simon@josefsson.org>
6303 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
6304 different project/version.
6306 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
6307 Bruno Haible <bruno@clisp.org>
6309 Tests for module 'pipe-filter-gi'.
6310 * modules/pipe-filter-gi-tests: New file.
6311 * tests/test-pipe-filter-gi1.sh: New file.
6312 * tests/test-pipe-filter-gi1.c: New file.
6313 * tests/test-pipe-filter-gi2.sh: New file.
6314 * tests/test-pipe-filter-gi2-main.c: New file.
6315 * tests/test-pipe-filter-gi2-child.c: New file.
6317 New module 'pipe-filter-gi'.
6318 * lib/pipe-filter-gi.c: New file.
6319 * modules/pipe-filter-gi: New file.
6321 2009-08-02 Bruno Haible <bruno@clisp.org>
6322 Paolo Bonzini <bonzini@gnu.org>
6324 Tests for module 'pipe-filter-ii'.
6325 * modules/pipe-filter-ii-tests: New file.
6326 * tests/test-pipe-filter-ii1.sh: New file.
6327 * tests/test-pipe-filter-ii1.c: New file.
6328 * tests/test-pipe-filter-ii2.sh: New file.
6329 * tests/test-pipe-filter-ii2-main.c: New file.
6330 * tests/test-pipe-filter-ii2-child.c: New file.
6332 New module 'pipe-filter-ii'.
6333 * lib/pipe-filter.h: New file.
6334 * lib/pipe-filter-ii.c: New file.
6335 * lib/pipe-filter-aux.h: New file.
6336 * modules/pipe-filter-ii: New file.
6338 2009-08-02 Simon Josefsson <simon@josefsson.org>
6340 * lib/gc-libgcrypt.c: Change copyright to FSF.
6341 * lib/gc-gnulib.c: Likewise.
6343 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
6345 * lib/gethostname.c: Include limits.h.
6347 2009-08-02 Simon Josefsson <simon@josefsson.org>
6348 Bruno Haible <bruno@clisp.org>
6350 Ensure HOST_NAME_MAX as part of the gethostname module.
6351 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
6352 define also HOST_NAME_MAX.
6353 * tests/test-gethostname.c: Include <limits.h>.
6354 (main): Check also HOST_NAME_MAX.
6355 * doc/posix-headers/limits.texi: Document the mingw problem.
6357 2009-08-02 Bruno Haible <bruno@clisp.org>
6359 * lib/gethostname.c (gethostname): Fix handling of large len argument.
6362 2009-03-31 Simon Josefsson <simon@josefsson.org>
6364 * lib/gethostname.c: Add Windows wrapper.
6365 * m4/gethostname.m4: Look for gethostname in -lws2_32.
6366 * modules/gethostname: Depend on sys_socket & errno, for also
6367 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
6368 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
6370 2009-07-31 Jim Meyering <meyering@redhat.com>
6372 getloadavg: fix symbol name in comment
6373 * lib/getloadavg.c: Correct a typo I introduced when adding
6374 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
6375 Matt Kraai spotted the problem.
6377 2009-07-29 Matt Kraai <mkraai@beckman.com>
6379 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
6380 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
6381 code also if ! defined N_NAME_POINTER.
6382 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
6383 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
6384 but the n_name member is a 12-byte array.
6386 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
6388 update-copyright: generalize comment handling
6389 * build-aux/update-copyright: Handle copyright statements
6390 within more comment styles.
6392 Report any file with an external copyright holder or parse failure.
6394 2009-07-29 Jim Meyering <meyering@redhat.com>
6396 mktime: correct setting of REPLACE_MKTIME
6397 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
6399 update-copyright: new module
6400 * modules/update-copyright: New file.
6401 * build-aux/update-copyright: New file.
6402 * MODULES.html.sh (maint+release support): Add update-copyright.
6404 2009-07-27 Bruno Haible <bruno@clisp.org>
6406 Fix compilation error when <ctime> is used and mktime is replaced.
6407 * lib/time.in.h (mktime): New declaration.
6408 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
6409 REPLACE_MKTIME instead of defining mktime in config.h.
6410 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
6411 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
6412 Reported by Ross McFarland <rwmcfa1@neces.com>.
6414 2009-07-27 Bruno Haible <bruno@clisp.org>
6416 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
6417 Reported by Matt Kraai <mkraai@beckman.com>.
6419 2009-07-25 Jim Meyering <meyering@redhat.com>
6421 maint.mk: avoid warnings about missing files
6422 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
6423 diagnostic when .prev-version does not exist.
6424 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
6425 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
6427 Suggestions from Simon Josefsson.
6429 2009-07-25 Bruno Haible <bruno@clisp.org>
6431 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
6432 defined as macros. Needed on QNX 6.4.1.
6433 Reported by Matt Kraai <mkraai@beckman.com>.
6435 2009-07-23 Jim Meyering <meyering@redhat.com>
6437 maint.mk: invoke "make dist" with a working value of XZ_OPT
6438 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
6440 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
6442 Make fseeko.c compile on QNX.
6443 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
6445 2009-07-22 Peter Simons <simons@cryp.to>
6447 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
6448 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
6449 * lib/md4.h: Likewise.
6450 * lib/md5.h: Likewise.
6451 * lib/sha1.h: Likewise.
6452 * lib/sha256.h: Likewise.
6453 * lib/sha512.h: Likewise.
6455 tests-sha1: don't assign literal string to 'char *' variable
6456 * tests/test-sha1.c (main): Declare locals with "const" to match
6457 attributes of the right hand side.
6459 2009-07-21 Eric Blake <ebb9@byu.net>
6461 dup2: fix more mingw problems
6462 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
6464 * doc/posix-functions/dup2.texi (dup2): Document the bug.
6465 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
6466 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
6467 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
6470 2009-07-21 Jim Meyering <meyering@redhat.com>
6472 vc-list-files: avoid failure when /bin/sh is dash
6473 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
6474 On some Debian based systems, /bin/sh is a symlink to dash, and running
6475 this command would omit the "/" following each 'tests' prefix:
6476 dash -x build-aux/vc-list-files -C . tests
6477 That is because bash and dash work differently:
6478 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
6482 2009-07-21 Eric Blake <ebb9@byu.net>
6484 dup2-tests: test previous patch
6485 * modules/dup2-tests: New file.
6486 * tests/test-dup2.c: Likewise.
6487 * tests/test-open.c (main): Avoid unspecified behavior.
6488 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
6491 dup2: work around mingw and cygwin 1.5 bug
6492 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
6493 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6494 * modules/unistd (Makefile.am): Substitute it.
6495 * lib/unistd.in.h (dup2): Declare the replacement.
6496 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
6497 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
6498 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
6499 * modules/execute (Depends-on): Add dup2.
6500 * modules/fseterr (Depends-on): Likewise.
6501 * modules/pipe (Depends-on): Likewise.
6502 * modules/posix_spawn-internal (Depends-on): Likewise.
6504 2009-07-21 Bruno Haible <bruno@clisp.org>
6506 * modules/.gitattributes: New file.
6508 2009-07-20 Bruno Haible <bruno@clisp.org>
6510 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
6513 2009-07-20 Eric Blake <ebb9@byu.net>
6515 test-pipe: make a bit more robust.
6516 * tests/test-pipe.c (myerr): Allow error messages regardless of
6517 what we do to stderr.
6518 (test_pipe): Rearrange to avoid deadlock.
6519 (child_main): Try a larger read, to ensure we avoided deadlock.
6520 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
6521 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
6524 2009-07-19 Jim Meyering <meyering@redhat.com>
6526 fts: avoid false-positive cycle-detection
6527 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
6528 for each new command line argument.
6530 2009-07-19 Bruno Haible <bruno@clisp.org>
6532 Fix build error on mingw with the modules sys_select and unistd.
6533 * modules/acl-tests (Depends-on): Add close.
6534 * modules/binary-io-tests (Depends-on): Likewise.
6535 * modules/closein-tests (Depends-on): Likewise.
6536 * modules/flock-tests (Depends-on): Likewise.
6537 * modules/fsync-tests (Depends-on): Likewise.
6538 * modules/lseek-tests (Depends-on): Likewise.
6539 * modules/pipe-tests (Depends-on): Likewise.
6540 * modules/posix_spawn-tests (Depends-on): Likewise.
6541 * modules/posix_spawnp-tests (Depends-on): Likewise.
6542 * modules/stat-time-tests (Depends-on): Likewise.
6543 * modules/yesno-tests (Depends-on): Likewise.
6545 2009-07-19 Bruno Haible <bruno@clisp.org>
6548 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
6549 macros, not at the compiler macros.
6550 * lib/pipe.c: Likewise.
6551 * lib/execute.c: Likewise.
6552 * lib/spawni.c: Likewise.
6554 2009-07-19 Bruno Haible <bruno@clisp.org>
6556 Fix handling of closed stdin/stdout/stderr on mingw.
6557 * lib/w32spawn.h: Include unistd.h.
6558 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
6559 file descriptor with O_NOINHERIT flag.
6560 (fd_safer_noinherit): New function, based on fd-safer.c.
6561 (dup_safer_noinherit): New function, based on dup-safer.c.
6562 (undup_safer_noinherit): New function.
6563 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
6564 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
6565 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
6566 instead of fd_safer.
6567 * tests/test-pipe.c: Include <windows.h>.
6568 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
6570 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
6572 (test_pipe): Pass an extra argument for disambiguation.
6573 (main): Invoke parent_main or child_main.
6575 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
6578 2009-07-18 Eric Blake <ebb9@byu.net>
6580 test-pipe: fix mingw build
6581 * tests/test-pipe.c (main): Avoid fcntl on mingw.
6583 2009-07-18 Bruno Haible <bruno@clisp.org>
6585 * modules/pipe-tests (Makefile.am): Fix typo.
6587 2009-07-18 Eric Blake <ebb9@byu.net>
6589 error: fix mingw build
6590 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
6591 Reported by Bruno Haible.
6593 error: avoid undefined use of stdout
6594 * lib/error.c (error, error_at_line): Check that fd 1 is open
6595 before flushing stdout. Avoids a crash on cygwin when libsigsegv
6596 is handling faults and the close_stdout module wants to report the
6597 detection of closed stdout as an error.
6599 2009-07-17 Eric Blake <ebb9@byu.net>
6601 pipe: be robust in face of closed fds
6602 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
6603 should cause child to misbehave.
6604 * modules/pipe-tests: New module.
6605 * tests/test-pipe.c: New file.
6606 * tests/test-pipe.sh: New file.
6607 Reported by Akim Demaille.
6609 2009-07-14 Bruno Haible <bruno@clisp.org>
6611 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
6612 Reported by anonymous kc.
6614 2009-07-07 Jim Meyering <meyering@redhat.com>
6616 maint.mk: don't look for translatable strings in *.m4 or *.mk
6617 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
6618 when searching for translatable strings.
6620 2009-07-05 Jim Meyering <meyering@redhat.com>
6622 remove superfluous parentheses in STREQ definition
6623 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
6624 * lib/getugroups.c (STREQ): Likewise.
6625 * lib/fnmatch.c (STREQ): Likewise.
6626 Spotted by Bruno Haible.
6628 2009-07-04 Jim Meyering <meyering@redhat.com>
6630 argv-iter: new module
6631 * MODULES.html.sh: Add argv-iter.
6632 * lib/argv-iter.c, lib/argv-iter.h: New files.
6633 * modules/argv-iter: New file.
6634 * modules/argv-iter-tests: New file.
6635 * tests/test-argv-iter.c: Test it.
6637 2009-07-04 Bruno Haible <bruno@clisp.org>
6640 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
6641 contains more exact copies of a given entry than file2, leave the extra
6642 copies unpaired rather than aborting.
6643 Reported by Eric Blake.
6645 2009-07-02 Bruno Haible <bruno@clisp.org>
6647 Speedup git-merge-changelog for git cherry-pick.
6648 * lib/git-merge-changelog.c (struct entries_mapping): New type.
6649 (entries_mapping_get): New function, extracted from compute_mapping.
6650 (entries_mapping_reverse_get): New function.
6651 (compute_mapping): Add a 'full' argument. Return the result in a
6652 'struct entries_mapping'.
6653 (main): Update. Access the mappings through entries_mapping_get.
6654 Reported by Eric Blake.
6656 2009-07-02 Bruno Haible <bruno@clisp.org>
6658 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
6661 2009-07-02 Bruno Haible <bruno@clisp.org>
6663 Speed up approximate search for matching ChangeLog entries.
6664 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
6665 argument. Call fstrcmp_bounded instead of fstrcmp.
6666 (compute_mapping, try_split_merged_entry, main): Update callers.
6668 2009-07-02 Bruno Haible <bruno@clisp.org>
6670 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
6672 2009-06-30 Bruno Haible <bruno@clisp.org>
6674 Reduce the number of uc_is_cased calls.
6675 * lib/unicase.h (casing_suffix_context_t): Add
6676 'first_char_except_ignorable' field.
6677 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
6678 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
6679 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
6681 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
6682 case-ignorable characters.
6683 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
6684 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
6685 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
6686 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
6687 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
6689 2009-06-30 Bruno Haible <bruno@clisp.org>
6691 Tests for module 'unicase/ignorable'.
6692 * modules/unicase/ignorable-tests: New file.
6693 * tests/unicase/test-ignorable.c: New file, generated by
6696 Tests for module 'unicase/cased'.
6697 * modules/unicase/cased-tests: New file.
6698 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
6699 * tests/unicase/test-predicate-part1.h: New file, derived from
6700 tests/unictype/test-predicate-part1.h.
6701 * tests/unicase/test-predicate-part2.h: New file, same as
6702 tests/unictype/test-predicate-part2.h.
6704 Fix evaluation of "Before C" condition of FINAL_SIGMA.
6705 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
6706 (output_casing_properties): New function.
6708 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
6709 * lib/unicase/cased.c: Include unictype/bitmap.h.
6710 (uc_is_cased): Define through a bitmap lookup.
6711 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
6712 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
6713 (uc_is_case_ignorable): Define through a bitmap lookup.
6714 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
6715 lib/unictype/bitmap.h.
6716 (Depends-on): Add inline. Clean up.
6717 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
6718 lib/unictype/bitmap.h.
6719 (Depends-on): Add inline. Clean up.
6720 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
6722 * tests/unicase/test-u16-tolower.c (main): Likewise.
6723 * tests/unicase/test-u32-tolower.c (main): Likewise.
6725 2009-06-30 Bruno Haible <bruno@clisp.org>
6727 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
6728 * lib/unicase/u16-casemap.c: Likewise.
6729 * lib/unicase/u32-casemap.c: Likewise.
6731 2009-06-29 Bruno Haible <bruno@clisp.org>
6733 Define u32_casefold as a wrapper around u32_ct_casefold.
6734 * lib/unicase/u32-casefold.c: Update.
6735 * modules/unicase/u32-casefold (Depends-on): Add
6736 unicase/u32-ct-casefold, unicase/empty-prefix-context,
6737 unicase/empty-suffix-context. Clean up.
6739 Define u16_casefold as a wrapper around u16_ct_casefold.
6740 * lib/unicase/u16-casefold.c: Update.
6741 * modules/unicase/u16-casefold (Depends-on): Add
6742 unicase/u16-ct-casefold, unicase/empty-prefix-context,
6743 unicase/empty-suffix-context. Clean up.
6745 Define u8_casefold as a wrapper around u8_ct_casefold.
6746 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
6747 * lib/unicase/u8-casefold.c: Update.
6748 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
6749 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6751 Define u32_totitle as a wrapper around u32_ct_totitle.
6752 * lib/unicase/u32-totitle.c: Update.
6753 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
6754 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6756 Define u16_totitle as a wrapper around u16_ct_totitle.
6757 * lib/unicase/u16-totitle.c: Update.
6758 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
6759 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6761 Define u8_totitle as a wrapper around u8_ct_totitle.
6762 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
6764 (FUNC): Delegate to U_CT_TOTITLE.
6765 * lib/unicase/u8-totitle.c: Update.
6766 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
6767 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
6769 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
6771 * modules/unicase/u32-tolower (Depends-on): Add
6772 unicase/empty-prefix-context, unicase/empty-suffix-context.
6774 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
6776 * modules/unicase/u16-tolower (Depends-on): Add
6777 unicase/empty-prefix-context, unicase/empty-suffix-context.
6779 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
6780 * modules/unicase/u8-tolower (Depends-on): Add
6781 unicase/empty-prefix-context, unicase/empty-suffix-context.
6783 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
6785 * modules/unicase/u32-toupper (Depends-on): Add
6786 unicase/empty-prefix-context, unicase/empty-suffix-context.
6788 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
6790 * modules/unicase/u16-toupper (Depends-on): Add
6791 unicase/empty-prefix-context, unicase/empty-suffix-context.
6793 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
6794 * modules/unicase/u8-toupper (Depends-on): Add
6795 unicase/empty-prefix-context, unicase/empty-suffix-context.
6797 New module 'unicase/u32-ct-casefold'.
6798 * lib/unicase/u32-ct-casefold.c: New file.
6799 * modules/unicase/u32-ct-casefold: New file.
6801 New module 'unicase/u16-ct-casefold'.
6802 * lib/unicase/u16-ct-casefold.c: New file.
6803 * modules/unicase/u16-ct-casefold: New file.
6805 New module 'unicase/u8-ct-casefold'.
6806 * lib/unicase/u8-ct-casefold.c: New file.
6807 * lib/unicase/u-ct-casefold.h: New file, derived from
6808 lib/unicase/u-casefold.h.
6809 * modules/unicase/u8-ct-casefold: New file.
6811 New module 'unicase/u32-ct-totitle'.
6812 * lib/unicase/u32-ct-totitle.c: New file.
6813 * modules/unicase/u32-ct-totitle: New file.
6815 New module 'unicase/u16-ct-totitle'.
6816 * lib/unicase/u16-ct-totitle.c: New file.
6817 * modules/unicase/u16-ct-totitle: New file.
6819 New module 'unicase/u8-ct-totitle'.
6820 * lib/unicase/u8-ct-totitle.c: New file.
6821 * lib/unicase/u-ct-totitle.h: New file, derived from
6822 lib/unicase/u-totitle.h.
6823 * modules/unicase/u8-ct-totitle: New file.
6825 New module 'unicase/u32-ct-tolower'.
6826 * lib/unicase/u32-ct-tolower.c: New file.
6827 * modules/unicase/u32-ct-tolower: New file.
6829 New module 'unicase/u16-ct-tolower'.
6830 * lib/unicase/u16-ct-tolower.c: New file.
6831 * modules/unicase/u16-ct-tolower: New file.
6833 New module 'unicase/u8-ct-tolower'.
6834 * lib/unicase/u8-ct-tolower.c: New file.
6835 * modules/unicase/u8-ct-tolower: New file.
6837 New module 'unicase/u32-ct-toupper'.
6838 * lib/unicase/u32-ct-toupper.c: New file.
6839 * modules/unicase/u32-ct-toupper: New file.
6841 New module 'unicase/u16-ct-toupper'.
6842 * lib/unicase/u16-ct-toupper.c: New file.
6843 * modules/unicase/u16-ct-toupper: New file.
6845 New module 'unicase/u8-ct-toupper'.
6846 * lib/unicase/u8-ct-toupper.c: New file.
6847 * modules/unicase/u8-ct-toupper: New file.
6849 Add context arguments to u*_casemap functions.
6850 * lib/unicase/unicasemap.h: Include unicase.h.
6851 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
6852 suffix_context arguments.
6853 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
6855 (FUNC): Add prefix_context and suffix_context arguments. Use
6856 uc_is_cased and uc_is_case_ignorable.
6857 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
6858 * lib/unicase/u16-casemap.c: Likewise.
6859 * lib/unicase/u32-casemap.c: Likewise.
6860 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
6861 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
6862 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
6863 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
6864 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
6865 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
6867 New module 'unicase/u32-suffix-context'.
6868 * lib/unicase/u32-suffix-context.c: New file.
6869 * modules/unicase/u32-suffix-context: New file.
6871 New module 'unicase/u16-suffix-context'.
6872 * lib/unicase/u16-suffix-context.c: New file.
6873 * modules/unicase/u16-suffix-context: New file.
6875 New module 'unicase/u8-suffix-context'.
6876 * lib/unicase/u8-suffix-context.c: New file.
6877 * lib/unicase/u-suffix-context.h: New file.
6878 * modules/unicase/u8-suffix-context: New file.
6880 New module 'unicase/empty-suffix-context'.
6881 * lib/unicase/empty-suffix-context.c: New file.
6882 * modules/unicase/empty-suffix-context: New file.
6884 New module 'unicase/u32-prefix-context'.
6885 * lib/unicase/u32-prefix-context.c: New file.
6886 * modules/unicase/u32-prefix-context: New file.
6888 New module 'unicase/u16-prefix-context'.
6889 * lib/unicase/u16-prefix-context.c: New file.
6890 * modules/unicase/u16-prefix-context: New file.
6892 New module 'unicase/u8-prefix-context'.
6893 * lib/unicase/u8-prefix-context.c: New file.
6894 * lib/unicase/u-prefix-context.h: New file.
6895 * lib/unicase/context.h: New file.
6896 * modules/unicase/u8-prefix-context: New file.
6898 New module 'unicase/empty-prefix-context'.
6899 * lib/unicase/empty-prefix-context.c: New file.
6900 * modules/unicase/empty-prefix-context: New file.
6902 New module 'unicase/ignorable'.
6903 * lib/unicase/ignorable.c: New file.
6904 * modules/unicase/ignorable: New file.
6906 New module 'unicase/cased'.
6907 * lib/unicase/caseprop.h: New file.
6908 * lib/unicase/cased.c: New file.
6909 * modules/unicase/cased: New file.
6911 New functions for case mapping of substrings.
6912 * lib/unicase.h (casing_prefix_context_t): New type.
6913 (unicase_empty_prefix_context): New variable.
6914 (u8_casing_prefix_context, u16_casing_prefix_context,
6915 u32_casing_prefix_context, u8_casing_prefixes_context,
6916 u16_casing_prefixes_context, u32_casing_prefixes_context): New
6918 (casing_suffix_context_t): New type.
6919 (unicase_empty_suffix_context): New variable.
6920 (u8_casing_suffix_context, u16_casing_suffix_context,
6921 u32_casing_suffix_context, u8_casing_suffixes_context,
6922 u16_casing_suffixes_context, u32_casing_suffixes_context,
6923 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
6924 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
6925 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
6928 2009-06-28 Jim Meyering <meyering@redhat.com>
6930 boostrap: indent only with spaces
6931 * build-aux/bootstrap: Indent only with spaces, never TABs.
6933 bootstrap: split long lines
6934 * build-aux/bootstrap: Keep line length < 80.
6936 bootstrap: sync from coreutils
6937 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
6938 just as autoreconf does. Verify a list of prerequisite
6939 package-name,version-number pairs if defined in bootstrap.conf.
6940 Refer to README-prereq, if prerequisites are not satisfied.
6942 2009-06-27 Eric Blake <ebb9@byu.net>
6944 tests: add test for bogus NULL definition
6945 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
6946 * tests/test-stdlib.c: Likewise.
6947 * tests/test-string.c: Likewise.
6948 * tests/test-locale.c: Likewise.
6949 * tests/test-unistd.c: Likewise.
6950 * modules/stdio-tests (Depends-on): Add verify.
6951 * modules/stdlib-tests (Depends-on): Likewise.
6952 * modules/string-tests (Depends-on): Likewise.
6953 * modules/locale-tests (Depends-on): Likewise.
6954 * modules/unistd-tests (Depends-on): Likewise.
6956 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
6958 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
6959 self-explaining comment.
6960 * m4/selinux-selinux-h: Update serial.
6961 (gl_LIBSELINUX): New macro, adding a warning for missing development
6962 packages to code extracted from...
6963 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
6964 Add warning for missing development packages here, too.
6966 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
6968 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
6970 2009-06-25 Eric Blake <ebb9@byu.net>
6972 version-etc: fix regression
6973 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
6975 (version_etc): Use it, to catch bugs with trailing NULL.
6976 * lib/version-etc.c (version_etc_arn): Delete unused argument.
6977 (version_etc_va): Fix logic bug.
6978 * modules/version-etc-tests: Add test.
6979 * tests/test-version-etc.c: New file.
6980 * tests/test-version-etc.sh: Likewise.
6982 2009-06-25 Sam Steingold <sds@gnu.org>
6984 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
6987 2009-06-25 Eric Blake <ebb9@byu.net>
6989 fpurge: migrate into <stdio.h>
6990 * lib/fpurge.h: Delete...
6991 * lib/stdio.in.h (fpurge): ...and declare here, instead.
6992 * lib/fpurge.c (fpurge): Change declaring header.
6993 * modules/fpurge (Files): Drop deleted file.
6994 (Depends-on): Add stdio.
6995 (configure.ac): Set witness.
6996 * modules/stdio (Makefile.am): Support fpurge macros.
6997 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
6998 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
6999 * lib/fflush.c: Update client.
7000 * tests/test-fpurge.c: Likewise.
7001 * NEWS: Mention the change.
7003 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
7005 * lib/argp-version-etc.c (program_authors): Add const
7007 * lib/version-etc.c: Fix typos in the comments.
7008 * modules/argp-version-etc: Depends on version-etc.
7010 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
7012 argp-version-etc: new module.
7014 * lib/argp-version-etc.c: New file.
7015 * lib/argp-version-etc.h: New file.
7016 * modules/argp-version-etc: New file.
7017 * modules/argp-version-etc-tests: New file.
7018 * tests/test-argp-version-etc.c: New test.
7019 * tests/test-argp-version-etc-1.sh: New test.
7021 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
7023 Provide additional interfaces and documentation for version-etc
7026 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
7028 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
7031 2009-06-24 Bruno Haible <bruno@clisp.org>
7033 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
7034 HAVE_LIB${NAME} macro.
7035 Reported by Sam Steingold <sds@gnu.org>.
7037 2009-06-23 Simon Josefsson <simon@josefsson.org>
7039 * modules/hash-tests (test_hash_LDADD): Link to libintl when
7042 2009-06-21 Bruno Haible <bruno@clisp.org>
7044 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
7046 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
7047 together with LIB${NAME}, LTLIB${NAME}.
7048 Reported by Sam Steingold <sds@gnu.org>.
7050 2009-06-20 Jim Meyering <meyering@redhat.com>
7052 tests: make sc_require_test_exit_idiom more generic
7053 * top/maint.mk (Exit_witness_file): New overridable variable.
7054 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
7055 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
7057 2009-06-19 Jim Meyering <meyering@redhat.com>
7059 hash: reverse order of src/dst parameters in an internal interface
7060 * lib/hash.c (transfer_entries): Reverse order of parameters to
7061 put DST before SRC. Adjust callers.
7063 tests: test-hash: avoid wholesale duplication
7064 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
7065 Instead, use a loop and add a single conditional.
7067 tests: test-hash: allow seed selection via a command line argument
7068 * tests/test-hash.c (get_seed): New function.
7071 2009-06-19 Eric Blake <ebb9@byu.net>
7073 hash: avoid memory leak on allocation failure
7074 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
7075 failure. Factor repeated algorithm...
7076 (transfer_entries): ...into new helper routine.
7077 (hash_delete): React to hash_rehash return value.
7079 hash: reduce memory pressure in hash_rehash no-op case
7080 * lib/hash.c (next_prime): Avoid overflow.
7081 (hash_initialize): Factor bucket size computation...
7082 (compute_bucket_size): ...into new helper function.
7083 (hash_rehash): Use new function and open coding to reduce memory
7084 pressure, and avoid a memory leak in USE_OBSTACK code.
7085 Reported by Jim Meyering.
7087 2009-06-18 Eric Blake <ebb9@byu.net>
7089 hash: make rotation more obvious
7090 * modules/hash (Depends-on): Add bitrotate and stdint.
7091 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
7092 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
7093 (SIZE_MAX): Rely on headers for definition.
7094 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
7095 (raw_hasher): Use rotr_sz.
7096 Suggested by Jim Meyering.
7098 hash: fix memory leak in last patch
7099 * lib/hash.c (hash_rehash): Avoid memory leak.
7101 hash: avoid no-op rehashing
7102 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
7104 hash: provide default callback functions
7105 * lib/hash.c (raw_hasher, raw_comparator): New functions.
7106 (hash_initialize): Use them as defaults.
7107 * tests/test-hash.c (main): Test this.
7109 hash: minor optimization
7110 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
7112 (hash_initialize): Document this promise.
7113 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
7114 * tests/test-hash.c (hash_compare_strings): Test this.
7116 2009-06-18 Bruno Haible <bruno@clisp.org>
7118 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
7119 going to be replaced anyway.
7121 2009-06-18 Bruno Haible <bruno@clisp.org>
7123 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
7125 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
7128 2009-06-18 Eric Blake <ebb9@byu.net>
7130 hash: check for resize before insertion
7131 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
7132 threshold before insertion, so that a pathological hash_rehash
7133 that fills every bucket can still trigger another rehash.
7135 2009-06-18 Jim Meyering <meyering@redhat.com>
7137 hash-tests: add a loop around the small tests
7138 * tests/test-hash.c (main): Repeat small tests with selected
7139 small initial table sizes.
7141 2009-06-17 Eric Blake <ebb9@byu.net>
7143 hash: minor cleanups
7144 * lib/hash.h (hash_entry): Make opaque, by moving...
7145 * lib/hash.c (hash_entry): ...here.
7146 (hash_insert): Clarify restrictions on what can be inserted.
7147 (hash_get_next): Clarify when it is safe to remove an element
7149 (check_tuning): Skip verification when tuning is known safe.
7150 (hash_initialize): Clarify restrictions on tuning.
7152 2009-06-17 Jim Meyering <jim@meyering.net>
7153 and Eric Blake <ebb9@byu.net>
7155 hash-tests: new module
7156 * modules/hash-tests: New file.
7157 * tests/test-hash.c: New file.
7159 2009-06-17 Eric Blake <ebb9@byu.net>
7161 strstr-simple: document new module
7162 * MODULES.html.sh: Document new module.
7164 strstr, strcasestr: replace on platforms with broken memchr
7165 * modules/strstr: Split into...
7166 * modules/strstr-simple: ...new module that does not care about
7167 performance, but does care about glibc bug.
7168 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
7169 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
7170 if platform memchr is broken, per Debian bug 521737.
7171 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
7173 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
7174 * doc/posix-functions/strstr.texi (strstr): Document the fix.
7175 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7176 * modules/mountlist (Depends-on): Add strstr-simple.
7177 * modules/gen-uni-tables (Depends-on): Likewise.
7178 * modules/argz (Depends-on): Add strstr.
7180 2009-06-17 Bruno Haible <bruno@clisp.org>
7182 * modules/posix_spawn-internal (Depends-on): Add errno.
7184 2009-06-17 Bruno Haible <bruno@clisp.org>
7186 Define missing ESTALE on Interix 3.5.
7187 * lib/errno.in.h (ESTALE): Assign a value if missing.
7188 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
7189 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
7191 * doc/posix-headers/errno.texi: Mention the Interix bug.
7192 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
7194 2009-06-15 Eric Blake <ebb9@byu.net>
7196 memchr, memchr2: add valgrind exception
7197 * lib/memchr.valgrind: New file.
7198 * lib/memchr2.valgrind: New file.
7199 * modules/memchr (Files): Distribute valgrind file.
7200 * modules/memchr2 (Files): Likewise.
7202 docs: memchr is no longer obsolete
7203 * MODULES.html.sh: Move memchr from obsolete to string.h section.
7204 * lib/string.in.h (memchr): Simplify logic.
7206 2009-06-14 Jim Meyering <meyering@redhat.com>
7208 link-follow: fix the "checking..." message to not mention trailing slash
7209 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
7210 never considered trailing slashes.
7212 2009-06-14 Bruno Haible <bruno@clisp.org>
7214 * m4/memchr.m4: Mention also the bug on IA-64.
7215 * doc/posix-functions/memchr.texi: Likewise.
7217 2009-06-12 Eric Blake <ebb9@byu.net>
7219 memchr: detect broken x86_64 and alpha implementations
7220 * modules/memchr-tests (Depends-on): Move mmap detection...
7221 * modules/memchr (Depends-on): ...here.
7222 (configure.ac): Set indicator.
7223 * lib/string.in.h (memchr): Declare replacement.
7224 * modules/string (Makefile.am): Trigger replacement.
7225 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7226 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
7228 * doc/posix-functions/memchr.texi (memchr): Document the bug.
7229 * modules/getpagesize (License): Relax license.
7231 2009-06-11 Bruno Haible <bruno@clisp.org>
7233 * lib/idpriv.h: Add more references.
7235 2009-06-08 Bruno Haible <bruno@clisp.org>
7237 Tests for module 'idpriv-droptemp'.
7238 * modules/idpriv-droptemp-tests: New file.
7239 * tests/test-idpriv-droptemp.sh: New file.
7240 * tests/test-idpriv-droptemp.su.sh: New file.
7241 * tests/test-idpriv-droptemp.c: New file.
7243 New module 'idpriv-droptemp'.
7244 * lib/idpriv-droptemp.c: New file.
7245 * modules/idpriv-droptemp: New file.
7247 2009-06-08 Bruno Haible <bruno@clisp.org>
7249 Tests for module 'idpriv-drop'.
7250 * modules/idpriv-drop-tests: New file.
7251 * tests/test-idpriv-drop.sh: New file.
7252 * tests/test-idpriv-drop.su.sh: New file.
7253 * tests/test-idpriv-drop.c: New file.
7255 New module 'idpriv-drop'.
7256 * lib/idpriv.h: New file.
7257 * lib-idpriv-drop.c: New file.
7258 * m4/idpriv.m4: New file.
7259 * modules/idpriv-drop: New file.
7261 2009-06-08 Bruno Haible <bruno@clisp.org>
7263 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
7264 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7265 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7266 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7267 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7268 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7269 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7271 2009-06-08 Eric Blake <ebb9@byu.net>
7273 test-strstr: use memory fence, when possible
7274 * tests/test-strstr.c (main): Use memory fence, in order to be
7275 more likely to trigger Debian bug 521737.
7276 * modules/strstr-tests (Files): Pull in additional files.
7278 memchr: no longer obsolete, for wider field testing
7279 * modules/memchr (Status, Notice): Delete, this module is no
7281 * modules/vasnprintf (Depends-on): Add memchr.
7283 2009-06-07 Jim Meyering <meyering@redhat.com>
7285 hash: declare some functions with the warn_unused_result attribute
7286 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
7288 2009-06-07 Bruno Haible <bruno@clisp.org>
7290 * tests/test-alignof.c: Don't test int64_t if it does not exist.
7291 Reported by Eric Blake.
7293 2009-06-06 Eric Blake <ebb9@byu.net>
7295 test-alignof: fix typo with long double
7296 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
7299 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
7301 Escape non-texinfo { and }s.
7302 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
7305 2009-06-04 Jim Meyering <meyering@redhat.com>
7307 gitlog-to-changelog: don't infloop on an empty commit log
7308 * build-aux/gitlog-to-changelog: Warn about an empty log message.
7309 Reported by Boris Petersen <transacid@centerim.org>.
7311 2009-06-03 Mike Frysinger <vapier@gentoo.org>
7313 version-etc: extend for packagers
7314 Add three new configure options, intended for packagers:
7315 --with-packager="packager name"
7316 --with-packager-version="packager-specific version"
7317 --with-packager-bug-reports="packager bug reporting"
7318 An example with coreutils:
7320 --with-packager=Gentoo \
7321 --with-packager-bug-report=http://bugs.gentoo.org/ \
7322 --with-packager-version="patchset 1.6"
7323 $ ./src/ls --version | head -n3
7324 ls (GNU coreutils) 7.1-dirty
7325 Packaged by Gentoo (patchset 1.6)
7326 Copyright (C) 2009 Free Software Foundation, Inc.
7327 Note that the bug reporting info via --help doesn't show up because
7328 coreutils uses its own custom emit_bug_reporting_address() implementation
7329 in src/system.h. If it didn't, it'd look like:
7330 $ ./src/ls --help | tail -n4
7331 Report bugs to <bug-coreutils@gnu.org>.
7332 Report Gentoo bugs to <http://bugs.gentoo.org/>.
7333 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
7334 General help using GNU software: <http://www.gnu.org/gethelp/>.
7335 * lib/version-etc.c: Print new information, if provided.
7336 * m4/version-etc.m4: New file.
7337 * modules/version-etc (Files): Add m4/version-etc.m4.
7338 (configure.ac): Add gl_VERSION_ETC.
7340 2009-05-31 Bruno Haible <bruno@clisp.org>
7342 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
7344 * modules/alignof-tests (Dependencies): Add stdint.
7345 Reported by Eric Blake.
7347 2009-05-31 Bruno Haible <bruno@clisp.org>
7349 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
7350 restriction due to compiler bugs.
7351 Reported by Eric Blake.
7353 2009-05-31 Simon Josefsson <simon@josefsson.org>
7354 Bruno Haible <bruno@clisp.org>
7356 Fix test-alignof failure.
7357 * lib/alignof.h (alignof_slot): New macro.
7358 (alignof_type): New macro, with the same semantics as the previous
7360 (alignof): Alias to alignof_slot.
7361 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
7362 check that the results are usable as constant expressions.
7364 2009-05-31 Bruno Haible <bruno@clisp.org>
7366 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
7367 * tests/test-memchr.c (main): Check that memchr does not read past the
7368 first occurrence of the byte.
7369 * tests/test-strstr.c (main): Update comment.
7370 Suggested by Eric Blake.
7372 2009-05-30 Bruno Haible <bruno@clisp.org>
7374 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
7375 detail how to use dumpbin.
7376 Reported by David Byron <dbyron@dbyron.com>.
7378 2009-06-02 Simon Josefsson <simon@josefsson.org>
7380 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
7382 2009-06-02 Simon Josefsson <simon@josefsson.org>
7384 * m4/manywarnings.m4: Add GCC 4.4 warnings.
7386 2009-05-28 Bruno Haible <bruno@clisp.org>
7388 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
7391 2009-05-28 Simon Josefsson <simon@josefsson.org>
7393 * gnulib-tool (func_import): Transform license on build-aux/ files too.
7395 2009-05-27 Simon Josefsson <simon@josefsson.org>
7397 * gnulib-tool (sed_transform_main_lib_file)
7398 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
7401 2009-05-26 Simon Josefsson <simon@josefsson.org>
7403 * tests/test-strstr.c: Add another self-test.
7404 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
7405 strdup. Suggested by Eric Blake <ebb9@byu.net>.
7407 2009-05-23 Bruno Haible <bruno@clisp.org>
7409 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
7412 2009-05-21 Bruno Haible <bruno@clisp.org>
7414 Simplify use of mode_t varargs.
7415 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
7416 uses 'mode_t' or 'int'.
7417 * lib/openat.c (openat): Likewise.
7418 * lib/open-safer.c (open_safer): Likewise.
7419 * m4/mode_t.m4: New file.
7420 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
7421 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
7422 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
7423 * modules/open (Files): Add m4/mode_t.m4.
7424 * modules/openat (Files): Likewise.
7425 * modules/fcntl-safer (Files): Likewise.
7426 Suggested by Eric Blake.
7428 2009-05-21 Pádraig Brady <P@draigbrady.com>
7430 * doc/glibc-functions/fallocate.texi: New file.
7431 * doc/gnulib.texi: Include it.
7433 2009-05-21 Eric Blake <ebb9@byu.net>
7434 Bruno Haible <bruno@clisp.org>
7436 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
7438 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7440 2009-05-21 Eric Blake <ebb9@byu.net>
7441 Bruno Haible <bruno@clisp.org>
7443 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
7444 include_next. Fix of 2008-11-20 commit.
7445 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
7446 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
7447 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
7449 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
7450 instead of NEXT_MATH_H.
7452 2009-05-21 Bruno Haible <bruno@clisp.org>
7454 Avoid redefinition warnings for SIZE_MAX.
7455 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
7456 Reported by Simon Josefsson.
7458 2009-05-21 Bruno Haible <bruno@clisp.org>
7460 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
7463 2009-05-20 Bruno Haible <bruno@clisp.org>
7465 Make zeroptr.h work on mingw.
7466 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
7468 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
7469 * modules/memchr2-tests (configure.ac): Likewise.
7470 * modules/memcmp-tests (configure.ac): Likewise.
7471 * modules/memmem-tests (configure.ac): Likewise.
7472 * modules/memrchr-tests (configure.ac): Likewise.
7473 Reported by Simon Josefsson.
7475 2009-05-20 Simon Josefsson <simon@josefsson.org>
7477 * tests/test-glob.c: Include string.h for strcmp prototype.
7479 2009-05-20 Simon Josefsson <simon@josefsson.org>
7481 * modules/getdelim (Depends-on): Add explicit stdint, although it
7482 was implicitly already pulled in via realloc-posix.
7483 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
7485 2009-05-20 Simon Josefsson <simon@josefsson.org>
7487 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
7488 G. Christensen" <tgc@jupiterrise.com>.
7489 * m4/sys_socket_h.m4: Check for sa_family_t.
7490 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
7491 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
7492 * tests/test-sys_socket.c: Check that sa_family_t works.
7494 2009-05-18 Eric Blake <ebb9@byu.net>
7496 maint.mk: allow gnulib_dir in VPATH build
7497 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
7499 2009-05-15 Jim Meyering <meyering@redhat.com>
7501 maint.mk: Give gnulib_dir a default definition.
7502 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
7503 Thus, most packages no longer need to specify this variable in cfg.mk
7505 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
7507 rename.m4: fix typos that would make non-mingw cross-configure fail
7508 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
7510 2009-05-13 Eric Blake <ebb9@byu.net>
7512 mmap-anon: avoid out-of-order autoconf expansion
7513 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
7514 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
7515 * modules/memchr-tests (Depends-on): Add extensions.
7516 * modules/memchr2-tests (Depends-on): Add extensions.
7517 * modules/memcmp-tests (Depends-on): Add extensions.
7518 * modules/memmem-tests (Depends-on): Add extensions.
7519 * modules/memrchr-tests (Depends-on): Add extensions.
7521 2009-05-13 Bruno Haible <bruno@clisp.org>
7523 Make some tests ISO C 99 compliant.
7524 * tests/zerosize-ptr.h: New file.
7525 * tests/test-memchr.c: Include zerosize-ptr.h.
7526 (main): Use a zero-size object pointer instead of NULL.
7527 * tests/test-memchr2.c: Include zerosize-ptr.h.
7528 (main): Use a zero-size object pointer instead of NULL.
7529 * tests/test-memcmp.c: Include zerosize-ptr.h.
7530 (main): Use a zero-size object pointer instead of NULL.
7531 * tests/test-memmem.c: Include zerosize-ptr.h.
7532 (main): Use a zero-size object pointer instead of NULL.
7533 * tests/test-memrchr.c: Include zerosize-ptr.h.
7534 (main): Use a zero-size object pointer instead of NULL.
7535 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
7537 (Depends-on): Add getpagesize.
7538 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7539 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
7541 (Depends-on): Add getpagesize.
7542 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7543 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
7545 (Depends-on): Add getpagesize.
7546 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7547 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
7549 (Depends-on): Add getpagesize.
7550 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7551 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
7553 (Depends-on): Add getpagesize.
7554 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7556 2009-05-12 Bruno Haible <bruno@clisp.org>
7558 Tests for module 'alignof'.
7559 * modules/alignof-tests: New file.
7560 * tests/test-alignof.c: New file.
7562 2009-05-12 Bruno Haible <bruno@clisp.org>
7565 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
7566 vendor compilers that are always correct.
7568 2009-05-12 Bruno Haible <bruno@clisp.org>
7570 Make the MAP_ANONYMOUS detection work on HP-UX 11.
7571 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
7572 not whether its fully works.
7574 2009-05-12 Bruno Haible <bruno@clisp.org>
7576 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
7578 2009-05-12 Jim Meyering <meyering@redhat.com>
7580 * top/maint.mk: Adjust backslash alignment.
7582 2009-05-11 Simon Josefsson <simon@josefsson.org>
7584 * top/maint.mk: Make $(srcdir)/build-aux configurable.
7586 2009-05-11 Eric Blake <ebb9@byu.net>
7588 argp: avoid undefined behavior
7589 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
7592 2009-05-08 Simon Josefsson <simon@josefsson.org>
7594 * tests/test-vc-list-files-git.sh: Do git config of user.email and
7595 user.name to prevent git commit from complaining.
7597 2009-05-10 Bruno Haible <bruno@clisp.org>
7599 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
7600 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
7601 it rewrites every file name only once.
7602 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
7604 2009-05-08 Bruno Haible <bruno@clisp.org>
7606 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
7609 2009-05-08 Simon Josefsson <simon@josefsson.org>
7611 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
7612 sockaddr_storage test.
7614 2009-05-07 Simon Josefsson <simon@josefsson.org>
7616 * modules/sys_socket (Makefile.am): Substitute
7617 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
7618 * m4/sys_socket_h.m4: Check for sockaddr_storage.
7619 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
7620 * tests/test-sys_socket.c: Check sockaddr_storage.
7622 2009-05-08 Bruno Haible <bruno@clisp.org>
7624 New module 'alignof'.
7625 * lib/alignof.h: New file.
7626 * modules/alignof: New file.
7628 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
7629 Bruno Haible <bruno@clisp.org>
7631 Fix test-file-has-acl on FreeBSD.
7632 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
7633 mask is implicitly added.
7634 * tests/test-file-has-acl.c: Include <signal.h>.
7635 (main): Terminate the test after 5 seconds.
7636 * modules/acl-tests (configure.ac): Check for alarm function.
7638 2009-05-04 Bruno Haible <bruno@clisp.org>
7640 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
7641 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
7642 * modules/errno (configure.ac): Drop AC_REQUIRE.
7643 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
7644 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
7646 2009-05-04 Simon Josefsson <simon@josefsson.org>
7648 * modules/glob-tests: New module.
7649 * tests/test-glob.c: Add.
7651 2009-05-04 Simon Josefsson <simon@josefsson.org>
7653 * modules/fnmatch-tests: New module.
7654 * tests/test-fnmatch.c: Add.
7656 2009-05-04 Eric Blake <ebb9@byu.net>
7658 maint: make the new no-submodule-changes rule VPATH-safe
7659 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
7661 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
7662 Bruno Haible <bruno@clisp.org>
7664 acl: Fix infinite loop on FreeBSD.
7665 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
7666 of return value from acl_get_entry.
7667 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
7670 2009-05-03 Bruno Haible <bruno@clisp.org>
7672 * lib/acl-internal.h (acl_entries): Clarify return value.
7673 * lib/acl_entries.c (acl_entries): Likewise.
7675 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
7677 Bug fix in acl module.
7678 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
7680 2009-05-03 Bruno Haible <bruno@clisp.org>
7682 Create gperf-generated file in the source dir, not in the build dir.
7683 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
7684 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
7685 * modules/unicase/locale-language (unicase/locale-languages.h):
7687 * modules/unicase/special-casing (unicase/special-casing-table.h):
7689 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
7690 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
7691 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
7692 Reported by Ralf Wildenhues.
7694 2009-05-03 Bruno Haible <bruno@clisp.org>
7696 * modules/fnmatch (Description, configure.ac): Taken from
7698 * modules/fnmatch-posix: Turn into a symbolic reference to the
7699 'fnmatch' module, and deprecate.
7700 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
7702 2009-05-03 Bruno Haible <bruno@clisp.org>
7704 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
7705 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
7706 Reported by Ralf Wildenhues.
7708 2009-05-04 Simon Josefsson <simon@josefsson.org>
7710 * m4/fnmatch.m4: Fix fnmatch re-define.
7712 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
7714 priv-set: new module and tests; adapt write-any-file
7715 * lib/priv-set.c: New file.
7716 * lib/priv-set.h: New file.
7717 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
7718 * lib/write-any-file.c: Simplify by using priv-set module.
7719 * m4/priv-set.m4: New file.
7720 * modules/priv-set: New file.
7721 * modules/unlinkdir: Add dependency on priv-set module.
7722 * modules/write-any-file: Likewise.
7724 Tests for module 'priv-set'.
7725 * modules/priv-set-tests: New file.
7726 * tests/test-priv-set.c: New file.
7728 2009-05-03 Jim Meyering <meyering@redhat.com>
7729 Bruno Haible <bruno@clisp.org>
7731 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
7732 use the converted UTF-8 variant of the name instead.
7734 2009-05-03 Jim Meyering <meyering@redhat.com>
7736 tests: tighten some getdate tests
7737 * tests/test-getdate.c (main): Tighten tests: require equality,
7738 not just greater than. Set TZ envvar to UTC0.
7740 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
7742 getdate: correctly interpret "next monday" when run on a Monday
7743 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
7744 that e.g., "next tues" (when run on a tuesday) results in a date
7745 that is one week in the future, and not today's date.
7746 I.e., add a week when the wday is the same as the current one.
7747 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
7748 and earlier by Martin Bernreuther and Jan Minář.
7749 * tests/test-getdate.c (main): Check that "next DAY" is always in
7750 the future and that "last DAY" is always in the past.
7752 2009-05-02 Jim Meyering <meyering@redhat.com>
7754 build: ensure that a release build fails when a submodule is unclean
7755 * top/maint.mk (no-submodule-changes): New rule.
7756 (alpha beta major): Depend on it.
7758 2009-05-02 Bruno Haible <bruno@clisp.org>
7760 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
7761 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
7762 shell variable gl_fnmatch_required to detect which variant is
7764 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
7765 gl_FUNC_FNMATCH_POSIX.
7766 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
7767 exclude fnmatch-posix.
7769 2009-05-02 Bruno Haible <bruno@clisp.org>
7771 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
7772 * modules/mbsrtowcs (License): Change to LGPLv2+.
7773 * modules/strnlen1 (License): Likewise.
7774 Reported by Simon Josefsson.
7776 2009-05-02 Bruno Haible <bruno@clisp.org>
7778 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
7780 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
7781 gnulib-tool was called with option --source-base=lib.
7783 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7785 Use automake *-local hooks without commands, for extensibility.
7786 * modules/localcharset (Makefile.am): Rename install-exec-local
7787 rule to install-exec-localcharset, and make it a prerequisite of
7788 install-exec-local. Likewise, rename the uninstall-local rule to
7789 uninstall-localcharset, and make it a prerequisite of the former.
7791 2009-05-01 Bruno Haible <bruno@clisp.org>
7793 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
7794 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
7795 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
7796 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
7797 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
7798 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
7799 m4/locale-zh.m4, m4/codeset.m4.
7801 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
7802 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
7803 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
7806 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
7807 REPLACE_WCRTOMB if mbstate_t must be replaced.
7808 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
7809 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
7811 2009-05-01 Bruno Haible <bruno@clisp.org>
7813 Avoid compiler warnings when redefining macros defined by <libintl.h>.
7814 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
7815 dngettext, dcngettext, textdomain, bindtextdomain,
7816 bind_textdomain_codeset): Undefine before redefining.
7818 2009-04-30 Bruno Haible <bruno@clisp.org>
7820 Fix bug introduced on 2009-04-25.
7821 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
7822 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
7823 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
7825 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
7827 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
7829 Reported by Elbert_Pol <elbert.pol@gmail.com>.
7831 2009-04-28 Bruno Haible <bruno@clisp.org>
7834 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
7835 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
7836 * lib/unicase.h (u*_casexfrm): Likewise.
7837 Reported by Paolo Bonzini.
7839 2009-04-28 Bruno Haible <bruno@clisp.org>
7841 Fix a compilation error.
7842 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
7843 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
7844 Reported by Jim Meyering.
7846 2009-04-27 Bruno Haible <bruno@clisp.org>
7848 New module 'libunistring'.
7849 * modules/libunistring: New file.
7850 * m4/libunistring.m4: New file.
7851 * MODULES.html.sh (Unicode string functions): Add it.
7853 2009-04-27 Eric Blake <ebb9@byu.net>
7855 maint.mk: allow package-specific header to provide <config.h>
7856 * top/maint.mk (sc_require_config_h): New variable.
7857 (sc_require_config_h, sc_require_config_h_first): Use it.
7859 2009-04-27 Simon Josefsson <simon@josefsson.org>
7861 * top/maint.mk (sc_avoid_if_before_free): Except
7862 useless-if-before-free script.
7864 2009-04-27 Eric Blake <ebb9@byu.net>
7866 maintainer-makefile: depend on all required helper scripts
7867 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
7868 useless-if-before-free.
7869 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
7870 version, rather than assuming gnulib checkout is available.
7871 Reported by Simen Josefsson.
7873 2009-04-26 Bruno Haible <bruno@clisp.org>
7875 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
7876 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
7879 2009-04-26 Bruno Haible <bruno@clisp.org>
7881 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
7882 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
7883 AC_LIB_HAVE_LINKFLAGS.
7885 2009-04-26 Bruno Haible <bruno@clisp.org>
7887 Simplify calling convention of u*_conv_from_encoding.
7888 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
7889 u32_conv_from_encoding): Expect a resultbuf argument and return the
7890 result directly as a pointer.
7891 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
7892 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
7893 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
7894 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
7895 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
7896 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
7898 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
7899 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
7900 * lib/vasnprintf.c (VASNPRINTF): Update.
7901 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
7902 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
7903 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
7904 * NEWS: Mention the change.
7906 2009-04-26 Bruno Haible <bruno@clisp.org>
7908 Simplify calling convention of u*_conv_to_encoding.
7909 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
7910 u32_conv_to_encoding): Expect a resultbuf argument and return the
7911 result directly as a pointer.
7912 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7913 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
7914 freeing scaled_offsets if mem_iconveha failed.
7915 * lib/unicase/u-casexfrm.h (FUNC): Update.
7916 * lib/uninorm/u-normxfrm.h (FUNC): Update.
7917 * lib/vasnprintf.c (VASNPRINTF): Update.
7918 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
7919 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
7920 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
7921 * NEWS: Mention the change.
7923 2009-04-26 Bruno Haible <bruno@clisp.org>
7925 Avoid test failures on AIX and OSF/1.
7926 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
7928 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
7929 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
7931 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
7932 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
7933 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
7934 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
7935 * doc/posix-functions/malloc.texi: Document the portability problem
7936 related to malloc(0).
7938 2009-04-26 Bruno Haible <bruno@clisp.org>
7940 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
7941 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
7942 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
7944 2009-04-25 Bruno Haible <bruno@clisp.org>
7946 Avoid link error when creating a namespace clean library.
7947 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
7948 as macro with arguments if already defined as an alias.
7949 * lib/signbitf.c (gl_signbitf): Don't undefine.
7950 * lib/signbitd.c (gl_signbitd): Don't undefine.
7951 * lib/signbitl.c (gl_signbitl): Don't undefine.
7953 2009-04-25 Jim Meyering <meyering@redhat.com>
7955 vc-list-files: fix another quoting bug
7956 * build-aux/vc-list-files: Avoid sed backslash expansion
7957 of pathological directory names.
7959 2009-04-25 Eric Blake <ebb9@byu.net>
7961 vc-list-files: fix shell quoting error
7962 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
7965 2009-04-25 Jim Meyering <meyering@redhat.com>
7967 vc-list-files: restore lost functionality with subdir argument
7968 * build-aux/vc-list-files: When given a non-"." sub-directory
7969 argument, substitute the $dir/ prefix back onto each resulting name.
7970 Otherwise, coreutils' root_tests check would fail.
7972 2009-04-24 Eric Blake <ebb9@byu.net>
7974 vc-list-files: ignore git symlinks
7975 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
7976 than ls-files, to ignore git symlinks.
7978 maint.mk: import improvements from m4
7979 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
7980 (move_if_change): Delete unused macro.
7981 (news-date-check, vc-diff-check): Support VPATH builds.
7982 (announcement): Likewise. Split --bootstrap-tools list...
7983 (boostrap-tools): ...into separate list, which can be overridden
7985 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
7986 requiring dependency on useless-if-before-free module.
7987 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
7988 Support VPATH builds.
7990 2009-04-24 Jim Meyering <meyering@redhat.com>
7992 maint.mk: remove coreutils-specific rules and variables
7993 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
7994 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
7995 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
7997 maint.mk: remove obsolete rule
7998 * top/maint.mk (rel-check): Remove rule.
7999 (WGET, WGETFLAGS): Remove now-unused variables.
8001 2009-04-24 Simon Josefsson <simon@josefsson.org>
8003 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
8006 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
8007 '$(PATH_SEPARATOR)' instead of ':'.
8009 2009-04-24 Simon Josefsson <simon@josefsson.org>
8011 * lib/getopt1.c (main): Use 'const' for static array.
8013 2009-04-24 Simon Josefsson <simon@josefsson.org>
8015 * top/maint.mk: Sync with coreutils.
8016 * NEWS: Explain incompatibilities.
8018 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8019 Bruno Haible <bruno@clisp.org>
8021 Fix cross-compilation results.
8022 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
8023 statement, as third argument of AC_TRY_RUN.
8024 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8025 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8027 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8028 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8030 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8031 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
8032 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
8034 2009-04-20 Bruno Haible <bruno@clisp.org>
8036 Avoid test failure on mingw.
8037 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
8039 2009-04-20 Bruno Haible <bruno@clisp.org>
8041 Avoid compilation error on mingw.
8042 * modules/localename-tests (Depends-on): Add locale.
8044 2009-04-19 Bruno Haible <bruno@clisp.org>
8046 Support for building a shared library on Windows platforms.
8047 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
8048 (main): Test the presence of UNINORM_NFC here.
8049 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
8050 (main): Test the presence of UNINORM_NFD here.
8051 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
8052 (main): Test the presence of UNINORM_NFKC here.
8053 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
8054 (main): Test the presence of UNINORM_NFKD here.
8056 2009-04-19 Bruno Haible <bruno@clisp.org>
8058 Avoid a compiler warning.
8059 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
8060 Change type of variable 'sequence'.
8062 2009-04-19 Bruno Haible <bruno@clisp.org>
8064 * modules/configmake (Makefile.am): When the contents of configmake.h
8065 does not change, arrange to preserve its modification time.
8067 2009-04-17 Simon Josefsson <simon@josefsson.org>
8069 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
8072 2009-04-16 Jim Meyering <meyering@redhat.com>
8074 useless-if-before-free: improve conversion code
8075 * build-aux/useless-if-before-free: Adjust code-in-comment to match
8076 "...!= 0" as well as "...!= NULL". emacs has one of the former.
8078 2009-04-14 Bruno Haible <bruno@clisp.org>
8080 * modules/fcntl (Depends-on): Add extensions.
8081 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
8083 2009-04-12 Ben Pfaff <blp@gnu.org>
8085 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
8086 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
8088 2009-03-20 Ben Pfaff <blp@gnu.org>
8090 Make rename replace existing destinations on Windows.
8091 * m4/rename.m4: Add test for Mingw.
8092 * lib/rename.c: Add rename replacement that uses MoveFileEx with
8093 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
8094 * doc/posix-functions/rename.texi: Document.
8096 2009-04-10 Bruno Haible <bruno@clisp.org>
8098 New include file "iconveh.h".
8099 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
8100 * lib/striconveh.h: Include it.
8101 (enum iconv_ilseq_handler): Remove definition.
8102 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
8104 * lib/striconveha.c: Include striconveh.h.
8105 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
8106 * modules/striconveh (Files): Add lib/iconveh.h.
8107 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
8110 2009-04-10 Bruno Haible <bruno@clisp.org>
8112 * lib/uniconv.h: Update comment.
8114 2009-04-10 Bruno Haible <bruno@clisp.org>
8116 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
8118 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
8119 * lib/unistr/u16-mbtouc-aux.c: Likewise.
8120 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
8121 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
8122 "unistring-notinline.h", so that the function gets defined always.
8123 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
8124 * lib/unistr/u8-uctomb.c: Likewise.
8125 * lib/unistr/u16-mbtouc.c: Likewise.
8126 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
8127 * lib/unistr/u16-uctomb.c: Likewise.
8128 * lib/unistr/u32-mbtouc.c: Likewise.
8129 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
8130 * lib/unistr/u32-uctomb.c: Likewise.
8132 2009-04-10 Bruno Haible <bruno@clisp.org>
8134 Mark 'utime' obsolete.
8135 * modules/utime (Status, Notice): New sections.
8136 Suggested by Jim Meyering.
8138 Fix cross-compile guess for utime test.
8139 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
8141 * doc/posix-functions/utime.texi: Give more precisions.
8142 Reported by Jan <ipif@ymail.com>.
8144 2009-04-09 Kamil Dudka <kdudka@redhat.com>
8146 filevercmp: correct today's change
8147 * lib/filevercmp.c: Also handle coreutils' test inputs.
8148 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
8150 Fix regression in 'filevercmp' module. Thanks Sven Joachim
8152 * lib/filevercmp.c: Special handle for "", "." and "..".
8153 * tests/test-filevercmp.c: Enlarge the set suite.
8155 2009-04-07 Jim Meyering <meyering@redhat.com>
8157 useless-if-before-free: show how to remove braced useless free, too
8158 * build-aux/useless-if-before-free: still only in a comment, though.
8160 2009-04-07 Reuben Thomas <rrt@sc3d.org>
8162 maint.mk: import changes to syntax-check macros from coreutils
8163 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
8164 Use them in the relevant macros.
8166 2009-04-06 Bruno Haible <bruno@clisp.org>
8168 Fix unportable use of bit-fields.
8169 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
8170 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
8171 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
8173 2009-04-06 Bruno Haible <bruno@clisp.org>
8175 Avoid test failures on AIX and OSF/1.
8176 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
8177 that malloc(0) = NULL.
8178 * tests/unicase/test-u8-tolower.c (check): Likewise.
8179 * tests/unicase/test-u8-totitle.c (check): Likewise.
8180 * tests/unicase/test-u8-toupper.c (check): Likewise.
8181 * tests/unicase/test-u16-casefold.c (check): Likewise.
8182 * tests/unicase/test-u16-tolower.c (check): Likewise.
8183 * tests/unicase/test-u16-totitle.c (check): Likewise.
8184 * tests/unicase/test-u16-toupper.c (check): Likewise.
8185 * tests/unicase/test-u32-casefold.c (check): Likewise.
8186 * tests/unicase/test-u32-tolower.c (check): Likewise.
8187 * tests/unicase/test-u32-totitle.c (check): Likewise.
8188 * tests/unicase/test-u32-toupper.c (check): Likewise.
8189 * tests/uninorm/test-u8-nfc.c (check): Likewise.
8190 * tests/uninorm/test-u8-nfd.c (check): Likewise.
8191 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
8192 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
8193 * tests/uninorm/test-u16-nfc.c (check): Likewise.
8194 * tests/uninorm/test-u16-nfd.c (check): Likewise.
8195 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
8196 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
8197 * tests/uninorm/test-u32-nfc.c (check): Likewise.
8198 * tests/uninorm/test-u32-nfd.c (check): Likewise.
8199 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
8200 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
8202 2009-04-05 Bruno Haible <bruno@clisp.org>
8204 Work around an autoconf limitation.
8205 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
8206 comment line if it would be longer than 3 KB.
8208 2009-04-05 Bruno Haible <bruno@clisp.org>
8210 Avoid test failure with libiconv-1.13.
8211 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
8212 of the expected test results.
8214 2009-04-05 Bruno Haible <bruno@clisp.org>
8216 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
8217 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
8218 that it should be installed.
8220 2009-04-05 Bruno Haible <bruno@clisp.org>
8222 * gnulib-tool: New option --copy-file.
8223 (func_usage): Document it.
8224 (func_dest_tmpfilename): Moved out of func_import.
8225 (func_add_file, func_update_file): New functions, extracted from
8227 (func_import): Update.
8229 2009-04-05 Karl Berry <karl@gnu.org>
8231 * README: prominently mention gnulib-tool.
8232 Rearrange sections so getting the code is near the top.
8234 2009-04-05 Bruno Haible <bruno@clisp.org>
8236 * lib/unicase.h: Mention u*_cmp2.
8237 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
8238 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
8239 * lib/unicase/ulc-casecmp.c: Likewise.
8240 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
8241 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
8242 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
8244 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
8245 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
8247 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
8250 * lib/uninorm.h: Mention u*_cmp2.
8251 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
8252 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
8253 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
8254 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
8255 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
8257 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
8259 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
8262 New module 'unistr/u32-cmp2'.
8263 * lib/unistr/u32-cmp2.c: New file.
8264 * modules/unistr/u32-cmp2: New file.
8266 New module 'unistr/u16-cmp2'.
8267 * lib/unistr/u16-cmp2.c: New file.
8268 * modules/unistr/u16-cmp2: New file.
8270 New module 'unistr/u8-cmp2'.
8271 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
8272 * lib/unistr/u8-cmp2.c: New file.
8273 * lib/unistr/u-cmp2.h: New file.
8274 * modules/unistr/u8-cmp2: New file.
8276 2009-04-05 Bruno Haible <bruno@clisp.org>
8278 * lib/unictype.h (uc_property_is_valid): New macro.
8279 * tests/unictype/test-pr_byname.c (main): Use it.
8281 * lib/unistr.h: Doc fixes.
8282 * lib/uniconv.h: Doc fixes.
8283 * lib/unictype.h: Doc fixes.
8285 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
8287 Port coreutils 7.2 to Solaris 8.
8289 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
8290 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
8291 for Solaris 8. This is a bit of a hack, as it means it's the
8292 caller's responsibility to add -lnsl if needed, but most likely it
8293 won't be needed since only getaddrinfo uses this and getaddrinfo
8294 isn't needed on Solaris 8.
8296 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
8297 problem to Solaris 8 encountered with coreutils 7.2, which
8298 resulted in a message "fnmatch.c:292: warning: passing argument 4
8299 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
8300 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
8302 2009-04-03 Simon Josefsson <simon@josefsson.org>
8304 * m4/ld-version-script.m4: Add FIXME comment.
8306 2009-04-02 Simon Josefsson <simon@josefsson.org>
8308 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
8311 2009-04-02 Bruno Haible <bruno@clisp.org>
8313 * Makefile (info, html, dvi, pdf): Combine the rules.
8314 Suggested by Jim Meyering.
8316 2009-04-01 Bruno Haible <bruno@clisp.org>
8318 * Makefile (info, html, dvi, pdf): New targets.
8319 Reported by Reuben Thomas <rrt@sc3d.org>.
8321 2009-04-01 Bruno Haible <bruno@clisp.org>
8323 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
8324 can be put into PATH.
8325 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
8327 2009-04-01 Bruno Haible <bruno@clisp.org>
8329 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
8331 2009-04-01 Bruno Haible <bruno@clisp.org>
8333 Rename module 'visibility'.
8334 * modules/lib-symbol-visibility: Renamed from modules/visibility.
8335 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
8336 * doc/gnulib.texi: Update.
8337 * MODULES.html.sh (Misc): Update.
8338 * NEWS: Mention the change.
8340 2009-04-01 Simon Josefsson <simon@josefsson.org>
8342 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
8343 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
8344 Eric Blake <ebb9@byu.net> for review.
8345 * MODULES.html.sh: Add lib-msvc-compat.
8346 * doc/gnulib.texi: Link to new section.
8347 * m4/ld-output-def.m4: New file.
8348 * doc/ld-output-def.texi: New file.
8350 2009-04-01 Simon Josefsson <simon@josefsson.org>
8352 Rename ld-version-script to lib-symbol-versions. Suggested by
8353 Bruno Haible <bruno@clisp.org>.
8354 * modules/ld-version-script: Renamed to lib-symbol-versions.
8355 * doc/ld-version-script.texi: Fix module name.
8356 * MODULES.html.sh: Add lib-symbol-versions.
8358 2009-03-31 Simon Josefsson <simon@josefsson.org>
8360 * modules/u64-tests: New file.
8361 * tests/test-u64.c: New file.
8363 2009-03-04 Simon Josefsson <simon@josefsson.org>
8365 * MODULES.html.sh: Mention u64.
8366 * modules/u64: New module.
8367 * modules/crypto/sha512: Depend on u64 module instead of providing
8370 2009-03-27 Eric Blake <ebb9@byu.net>
8372 test-strerror: make debugging EAI_SYSTEM easier
8373 * modules/getaddrinfo-tests (Depends-on): Add strerror.
8374 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
8375 failure was EAI_SYSTEM.
8377 2009-03-25 Bruno Haible <bruno@clisp.org>
8379 Fix a problem with --enable-relocatable on Solaris 7.
8380 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
8383 2009-03-25 Eric Blake <ebb9@byu.net>
8385 test-sockets: avoid gcc warning
8386 * tests/test-sockets.c (main): Silence compiler warning.
8388 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
8390 New modules nproc, pthread, contributed by Glen Lenker.
8392 * MODULES.html.sh: Add pthread, nproc.
8393 * lib/nproc.c: New file.
8394 * lib/nproc.h: New file.
8395 * lib/pthread.in.h: New file.
8396 * m4/pthread.m4: New file.
8397 * modules/nproc: New file.
8398 * modules/pthread: New file.
8400 2009-03-24 Simon Josefsson <simon@josefsson.org>
8402 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
8405 2009-03-24 Kamil Dudka <kdudka@redhat.com>
8407 filevercmp: handle simple~ and numbered.~3~ backup suffixes
8408 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
8409 * tests/test-filevercmp.c: Add tests for backup suffixes.
8411 2009-03-24 Simon Josefsson <simon@josefsson.org>
8413 * modules/stdlib (Depends-on): Add stdint, needed when defining
8414 struct random_data on, for example, HP-UX 10.20. Reported by
8415 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8417 2009-03-24 Simon Josefsson <simon@josefsson.org>
8419 * lib/readline.c (readline): Call fflush on stdout after printing
8422 2009-03-20 Bruno Haible <bruno@clisp.org>
8424 Remove dependency from 'close' module to -lws2_32 on native Windows.
8425 * lib/close-hook.h: New file.
8426 * lib/close-hook.c: New file.
8427 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
8429 (_gl_close_fd_maybe_socket): Remove function.
8430 (rpl_close): Invoke execute_all_close_hooks instead of
8431 _gl_close_fd_maybe_socket.
8432 * lib/sockets.c: Include close-hook.h, w32sock.h.
8433 (close_fd_maybe_socket): New function, essentially from lib/close.c.
8434 (close_sockets_hook): New variable.
8435 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
8436 (gl_sockets_cleanup): Unregister it.
8437 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
8438 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
8439 * modules/close-hook: New file.
8440 * modules/close (Files): Remove lib/w32sock.h.
8441 (Depends-on): Add close-hook.
8442 (Link): Remove section.
8443 * modules/sockets (Files): Add lib/w32sock.h.
8444 (Depends-on): Add close-hook.
8445 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
8447 * NEWS: Mention that LIB_CLOSE is gone.
8449 2009-03-23 Eric Blake <ebb9@byu.net>
8451 signal-tests: test previous patch
8452 * tests/test-signal.c: New file.
8453 * modules/signal-tests: Likewise.
8455 signal.h: always support 'volatile sig_atomic_t'
8456 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
8457 (gl_SIGNAL_H_DEFAULTS): Add a default.
8458 * modules/signal (Makefile.am): Substitute if needed.
8459 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
8460 users can blindly add volatile.
8461 * doc/posix-headers/signal.texi (signal.h): Document it.
8462 Reported by Matthew Woehlke.
8464 2009-03-23 Jim Meyering <meyering@redhat.com>
8466 pathmax: PATH_MAX: use pathconf only when available
8467 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
8468 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
8469 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
8470 This avoids a link failure in a PSP cross-compilation environment
8471 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
8473 * lib/vasnprintf.c (divide): Fix typo in comment.
8475 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8477 * gnulib-tool (func_filter_filelist): Fix comment.
8479 2009-03-20 Bruno Haible <bruno@clisp.org>
8481 Make sockets.h self-contained.
8482 * lib/sockets.c: Include sockets.h first.
8483 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
8485 2009-03-19 Eric Blake <ebb9@byu.net>
8487 doc: mention more functions added in cygwin 1.7.0
8488 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
8490 * doc/posix-functions/log2f.texi: Likewise.
8492 2009-03-19 Jim Meyering <meyering@redhat.com>
8494 fsusage: avoid syntax error due to statement-before-declaration
8495 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
8496 after all declarations. Reported by Matthew Woehlke in
8497 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
8499 2009-03-18 Eric Blake <ebb9@byu.net>
8501 build-aux/compile: sync from automake
8502 * build-aux/compile: New file, from automake.
8503 * config/srclist.txt: Mention build-aux/compile.
8505 2009-03-17 Bruno Haible <bruno@clisp.org>
8507 * lib/git-merge-changelog.c: Fix typo in comment.
8508 Reported by Reuben Thomas <rrt@sc3d.org>.
8510 2009-03-17 Reuben Thomas <rrt@sc3d.org>
8512 * m4/regex.m4: update and improve help for
8513 --without-included-regex.
8515 2009-03-17 Simon Josefsson <simon@josefsson.org>
8517 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
8518 failure on missing include files.
8520 2009-03-17 Eric Blake <ebb9@byu.net>
8522 doc: mention more functions added in cygwin 1.7.0
8523 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
8525 * doc/posix-functions/fwscanf.texi: Likewise.
8526 * doc/posix-functions/swprintf.texi: Likewise.
8527 * doc/posix-functions/swscanf.texi: Likewise.
8528 * doc/posix-functions/vfwprintf.texi: Likewise.
8529 * doc/posix-functions/vfwscanf.texi: Likewise.
8530 * doc/posix-functions/vswprintf.texi: Likewise.
8531 * doc/posix-functions/vswscanf.texi: Likewise.
8532 * doc/posix-functions/vwprintf.texi: Likewise.
8533 * doc/posix-functions/vwscanf.texi: Likewise.
8534 * doc/posix-functions/wcscasecmp.texi: Likewise.
8535 * doc/posix-functions/wcsdup.texi: Likewise.
8536 * doc/posix-functions/wcsftime.texi: Likewise.
8537 * doc/posix-functions/wcsncasecmp.texi: Likewise.
8538 * doc/posix-functions/wprintf.texi: Likewise.
8539 * doc/posix-functions/wscanf.texi: Likewise.
8540 * doc/glibc-functions/gethostbyname2.texi: Likewise.
8542 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8544 maint.mk: really add $(AM_MAKEFLAGS)
8545 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
8546 was inadvertently omitted in the last commit.
8547 Spotted by Bruno Haible.
8549 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
8550 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
8551 $(AM_MAKEFLAGS)' rather than plain `make'.
8553 gnulib-tool: execute $MAKE not make
8554 * gnulib-tool: Default $MAKE to 'make'.
8555 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
8556 than make. Initialize $MAKE in the do-autobuild script.
8558 gnulib-tool: use $MAKE not make in generated files
8559 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
8560 make, in generated files. Initialize $MAKE in the do-autobuild
8563 * top/GNUmakefile (_have-git-version-gen): Fix typo.
8565 GNUmakefile: disable parallelism only for multiple, recursive targets
8566 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
8567 additions in the Makefile.
8568 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
8570 (.NOTPARALLEL): Only disable parallel builds if multiple targets
8571 are listed on the command line and at least one of them is
8572 listed in $(ALL_RECURSIVE_TARGETS).
8574 2009-03-14 Bruno Haible <bruno@clisp.org>
8576 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
8577 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
8578 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
8579 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
8580 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
8581 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
8582 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
8584 * modules/unistr/u8-strchr (Depends-on): Likewise.
8585 * modules/unistr/u8-strrchr (Depends-on): Likewise.
8586 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
8588 * modules/unistr/u16-strchr (Depends-on): Likewise.
8589 * modules/unistr/u16-strrchr (Depends-on): Likewise.
8591 2009-03-12 Bruno Haible <bruno@clisp.org>
8593 Work around select() bug on Interix 3.5.
8594 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
8595 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
8596 * m4/select.m4: New file.
8597 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
8598 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
8599 * modules/select (Files): Add m4/select.m4.
8600 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
8601 * modules/nanosleep (Depends-on): Add select.
8602 * modules/poll (Depends-on): Likewise.
8603 * doc/posix-functions/select.texi: Mention the Interix bug.
8604 Reported by Markus Duft <mduft@gentoo.org>.
8606 * lib/select.c: Renamed from lib/winsock-select.c.
8607 * modules/select (Files): Add lib/select.c, remove
8608 lib/winsock-select.c.
8609 (configure.ac): Update.
8611 2009-03-12 Jim Meyering <meyering@redhat.com>
8613 avoid gcc warnings about unused macro definitions
8614 * lib/readtokens.c (STREQ): Remove unused definition.
8615 * lib/xmalloc.c (SIZE_MAX): Likewise.
8616 * lib/openat-die.c (N_): Likewise.
8617 * lib/mountlist.c (SIZE_MAX): Remove definition.
8618 Instead, include <stdint.h>.
8619 * lib/readutmp.c: Likewise.
8620 * modules/readutmp (Depends-on): Add stdint.
8621 * modules/mountlist (Depends-on): Add stdint.
8622 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
8624 2009-03-10 Bruno Haible <bruno@clisp.org>
8626 Tests for module 'mbmemcasecoll'.
8627 * modules/mbmemcasecoll-tests: New file.
8628 * tests/test-mbmemcasecoll1.sh: New file.
8629 * tests/test-mbmemcasecoll2.sh: New file.
8630 * tests/test-mbmemcasecoll3.sh: New file.
8631 * tests/test-mbmemcasecoll.c: New file.
8633 New module 'mbmemcasecoll'.
8634 * lib/mbmemcasecoll.h: New file.
8635 * lib/mbmemcasecoll.c: New file.
8636 * modules/mbmemcasecoll: New file.
8638 * tests/test-mbmemcasecmp.h: New file, extracted from
8639 tests/test-mbmemcasecmp.c.
8640 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
8641 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
8643 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
8645 2009-03-09 Bruno Haible <bruno@clisp.org>
8647 Tests for module 'mbmemcasecmp'.
8648 * modules/mbmemcasecmp-tests: New file.
8649 * tests/test-mbmemcasecmp1.sh: New file.
8650 * tests/test-mbmemcasecmp2.sh: New file.
8651 * tests/test-mbmemcasecmp3.sh: New file.
8652 * tests/test-mbmemcasecmp.c: New file.
8654 New module 'mbmemcasecmp'.
8655 * lib/mbmemcasecmp.h: New file.
8656 * lib/mbmemcasecmp.c: New file.
8657 * modules/mbmemcasecmp: New file.
8659 2009-03-09 Bruno Haible <bruno@clisp.org>
8661 Tests for module 'unicase/ulc-casecoll'.
8662 * modules/unicase/ulc-casecoll-tests: New file.
8663 * tests/unicase/test-ulc-casecoll1.sh: New file.
8664 * tests/unicase/test-ulc-casecoll2.sh: New file.
8665 * tests/unicase/test-ulc-casecoll.c: New file.
8667 New module 'unicase/ulc-casecoll'.
8668 * lib/unicase.h (ulc_casecoll): New declaration.
8669 * lib/unicase/ulc-casecoll.c: New file.
8670 * modules/unicase/ulc-casecoll: New file.
8672 New module 'unicase/ulc-casexfrm'.
8673 * lib/unicase.h (ulc_casexfrm): New declaration.
8674 * lib/unicase/ulc-casexfrm.c: New file.
8675 * modules/unicase/ulc-casexfrm: New file.
8677 2009-03-09 Bruno Haible <bruno@clisp.org>
8679 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
8682 * m4/mbscasecmp.m4: Remove file.
8683 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
8684 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
8686 * m4/mbscasestr.m4: Remove file.
8687 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
8688 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
8690 * m4/mbschr.m4: Remove file.
8691 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
8692 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
8694 * m4/mbscspn.m4: Remove file.
8695 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
8696 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
8698 * m4/mbslen.m4: Remove file.
8699 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
8700 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
8702 * m4/mbsncasecmp.m4: Remove file.
8703 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
8704 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
8706 * m4/mbsnlen.m4: Remove file.
8707 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
8708 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
8710 * m4/mbspbrk.m4: Remove file.
8711 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
8712 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
8714 * m4/mbspcasecmp.m4: Remove file.
8715 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
8716 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
8718 * m4/mbsrchr.m4: Remove file.
8719 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
8720 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
8722 * m4/mbssep.m4: Remove file.
8723 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
8724 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
8726 * m4/mbsspn.m4: Remove file.
8727 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
8728 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
8730 * m4/mbsstr.m4: Remove file.
8731 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
8732 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
8734 * m4/mbstok_r.m4: Remove file.
8735 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
8736 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
8738 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
8740 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
8741 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
8743 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
8745 2009-03-08 Bruno Haible <bruno@clisp.org>
8747 Tests for module 'unicase/ulc-casecmp'.
8748 * modules/unicase/ulc-casecmp-tests: New file.
8749 * tests/unicase/test-ulc-casecmp1.sh: New file.
8750 * tests/unicase/test-ulc-casecmp2.sh: New file.
8751 * tests/unicase/test-ulc-casecmp.c: New file.
8753 New module 'unicase/ulc-casecmp'.
8754 * lib/unicase.h (ulc_casecmp): New declaration.
8755 * lib/unicase/ulc-casecmp.c: New file.
8756 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
8758 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
8759 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
8760 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
8761 * modules/unicase/ulc-casecmp: New file.
8763 Tests for module 'unicase/u32-is-cased'.
8764 * modules/unicase/u32-is-cased-tests: New file.
8765 * tests/unicase/test-u32-is-cased.c: New file.
8767 Tests for module 'unicase/u16-is-cased'.
8768 * modules/unicase/u16-is-cased-tests: New file.
8769 * tests/unicase/test-u16-is-cased.c: New file.
8771 Tests for module 'unicase/u8-is-cased'.
8772 * modules/unicase/u8-is-cased-tests: New file.
8773 * tests/unicase/test-u8-is-cased.c: New file.
8774 * tests/unicase/test-is-cased.h: New file.
8776 New module 'unicase/u32-is-cased'.
8777 * lib/unicase/u32-is-cased.c: New file.
8778 * modules/unicase/u32-is-cased: New file.
8780 New module 'unicase/u16-is-cased'.
8781 * lib/unicase/u16-is-cased.c: New file.
8782 * modules/unicase/u16-is-cased: New file.
8784 New module 'unicase/u8-is-cased'.
8785 * lib/unicase/u8-is-cased.c: New file.
8786 * lib/unicase/u-is-cased.h: New file.
8787 * modules/unicase/u8-is-cased: New file.
8789 Tests for module 'unicase/u32-is-casefolded'.
8790 * modules/unicase/u32-is-casefolded-tests: New file.
8791 * tests/unicase/test-u32-is-casefolded.c: New file.
8793 Tests for module 'unicase/u16-is-casefolded'.
8794 * modules/unicase/u16-is-casefolded-tests: New file.
8795 * tests/unicase/test-u16-is-casefolded.c: New file.
8797 Tests for module 'unicase/u8-is-casefolded'.
8798 * modules/unicase/u8-is-casefolded-tests: New file.
8799 * tests/unicase/test-u8-is-casefolded.c: New file.
8800 * tests/unicase/test-is-casefolded.h: New file.
8802 New module 'unicase/u32-is-casefolded'.
8803 * lib/unicase/u32-is-casefolded.c: New file.
8804 * modules/unicase/u32-is-casefolded: New file.
8806 New module 'unicase/u16-is-casefolded'.
8807 * lib/unicase/u16-is-casefolded.c: New file.
8808 * modules/unicase/u16-is-casefolded: New file.
8810 New module 'unicase/u8-is-casefolded'.
8811 * lib/unicase/u8-is-casefolded.c: New file.
8812 * modules/unicase/u8-is-casefolded: New file.
8814 Tests for module 'unicase/u32-is-titlecase'.
8815 * modules/unicase/u32-is-titlecase-tests: New file.
8816 * tests/unicase/test-u32-is-titlecase.c: New file.
8818 Tests for module 'unicase/u16-is-titlecase'.
8819 * modules/unicase/u16-is-titlecase-tests: New file.
8820 * tests/unicase/test-u16-is-titlecase.c: New file.
8822 Tests for module 'unicase/u8-is-titlecase'.
8823 * modules/unicase/u8-is-titlecase-tests: New file.
8824 * tests/unicase/test-u8-is-titlecase.c: New file.
8825 * tests/unicase/test-is-titlecase.h: New file.
8827 New module 'unicase/u32-is-titlecase'.
8828 * lib/unicase/u32-is-titlecase.c: New file.
8829 * modules/unicase/u32-is-titlecase: New file.
8831 New module 'unicase/u16-is-titlecase'.
8832 * lib/unicase/u16-is-titlecase.c: New file.
8833 * modules/unicase/u16-is-titlecase: New file.
8835 New module 'unicase/u8-is-titlecase'.
8836 * lib/unicase/u8-is-titlecase.c: New file.
8837 * modules/unicase/u8-is-titlecase: New file.
8839 Tests for module 'unicase/u32-is-lowercase'.
8840 * modules/unicase/u32-is-lowercase-tests: New file.
8841 * tests/unicase/test-u32-is-lowercase.c: New file.
8843 Tests for module 'unicase/u16-is-lowercase'.
8844 * modules/unicase/u16-is-lowercase-tests: New file.
8845 * tests/unicase/test-u16-is-lowercase.c: New file.
8847 Tests for module 'unicase/u8-is-lowercase'.
8848 * modules/unicase/u8-is-lowercase-tests: New file.
8849 * tests/unicase/test-u8-is-lowercase.c: New file.
8850 * tests/unicase/test-is-lowercase.h: New file.
8852 New module 'unicase/u32-is-lowercase'.
8853 * lib/unicase/u32-is-lowercase.c: New file.
8854 * modules/unicase/u32-is-lowercase: New file.
8856 New module 'unicase/u16-is-lowercase'.
8857 * lib/unicase/u16-is-lowercase.c: New file.
8858 * modules/unicase/u16-is-lowercase: New file.
8860 New module 'unicase/u8-is-lowercase'.
8861 * lib/unicase/u8-is-lowercase.c: New file.
8862 * modules/unicase/u8-is-lowercase: New file.
8864 Tests for module 'unicase/u32-is-uppercase'.
8865 * modules/unicase/u32-is-uppercase-tests: New file.
8866 * tests/unicase/test-u32-is-uppercase.c: New file.
8868 Tests for module 'unicase/u16-is-uppercase'.
8869 * modules/unicase/u16-is-uppercase-tests: New file.
8870 * tests/unicase/test-u16-is-uppercase.c: New file.
8872 Tests for module 'unicase/u8-is-uppercase'.
8873 * modules/unicase/u8-is-uppercase-tests: New file.
8874 * tests/unicase/test-u8-is-uppercase.c: New file.
8875 * tests/unicase/test-is-uppercase.h: New file.
8877 New module 'unicase/u32-is-uppercase'.
8878 * lib/unicase/u32-is-uppercase.c: New file.
8879 * modules/unicase/u32-is-uppercase: New file.
8881 New module 'unicase/u16-is-uppercase'.
8882 * lib/unicase/u16-is-uppercase.c: New file.
8883 * modules/unicase/u16-is-uppercase: New file.
8885 New module 'unicase/u8-is-uppercase'.
8886 * lib/unicase/u8-is-uppercase.c: New file.
8887 * modules/unicase/u8-is-uppercase: New file.
8889 New module 'unicase/u32-is-invariant'.
8890 * lib/unicase/u32-is-invariant.c: New file.
8891 * modules/unicase/u32-is-invariant: New file.
8893 New module 'unicase/u16-is-invariant'.
8894 * lib/unicase/u16-is-invariant.c: New file.
8895 * modules/unicase/u16-is-invariant: New file.
8897 New module 'unicase/u8-is-invariant'.
8898 * lib/unicase/u8-is-invariant.c: New file.
8899 * lib/unicase/invariant.h: New file.
8900 * lib/unicase/u-is-invariant.h: New file.
8901 * modules/unicase/u8-is-invariant: New file.
8903 Tests for module 'unicase/u32-casecoll'.
8904 * modules/unicase/u32-casecoll-tests: New file.
8905 * tests/unicase/test-u32-casecoll.c: New file.
8907 Tests for module 'unicase/u16-casecoll'.
8908 * modules/unicase/u16-casecoll-tests: New file.
8909 * tests/unicase/test-u16-casecoll.c: New file.
8911 Tests for module 'unicase/u8-casecoll'.
8912 * modules/unicase/u8-casecoll-tests: New file.
8913 * tests/unicase/test-u8-casecoll.c: New file.
8915 New module 'unicase/u32-casecoll'.
8916 * lib/unicase/u32-casecoll.c: New file.
8917 * modules/unicase/u32-casecoll: New file.
8919 New module 'unicase/u16-casecoll'.
8920 * lib/unicase/u16-casecoll.c: New file.
8921 * modules/unicase/u16-casecoll: New file.
8923 New module 'unicase/u8-casecoll'.
8924 * lib/unicase/u8-casecoll.c: New file.
8925 * lib/unicase/u-casecoll.h: New file.
8926 * modules/unicase/u8-casecoll: New file.
8928 New module 'unicase/u32-casexfrm'.
8929 * lib/unicase/u32-casexfrm.c: New file.
8930 * modules/unicase/u32-casexfrm: New file.
8932 New module 'unicase/u16-casexfrm'.
8933 * lib/unicase/u16-casexfrm.c: New file.
8934 * modules/unicase/u16-casexfrm: New file.
8936 New module 'unicase/u8-casexfrm'.
8937 * lib/unicase/u8-casexfrm.c: New file.
8938 * lib/unicase/u-casexfrm.h: New file.
8939 * modules/unicase/u8-casexfrm: New file.
8941 Tests for module 'unicase/u32-casecmp'.
8942 * modules/unicase/u32-casecmp-tests: New file.
8943 * tests/unicase/test-u32-casecmp.c: New file.
8945 Tests for module 'unicase/u16-casecmp'.
8946 * modules/unicase/u16-casecmp-tests: New file.
8947 * tests/unicase/test-u16-casecmp.c: New file.
8949 Tests for module 'unicase/u8-casecmp'.
8950 * modules/unicase/u8-casecmp-tests: New file.
8951 * tests/unicase/test-u8-casecmp.c: New file.
8952 * tests/unicase/test-casecmp.h: New file.
8954 New module 'unicase/u32-casecmp'.
8955 * lib/unicase/u32-casecmp.c: New file.
8956 * modules/unicase/u32-casecmp: New file.
8958 New module 'unicase/u16-casecmp'.
8959 * lib/unicase/u16-casecmp.c: New file.
8960 * modules/unicase/u16-casecmp: New file.
8962 New module 'unicase/u8-casecmp'.
8963 * lib/unicase/u8-casecmp.c: New file.
8964 * lib/unicase/u-casecmp.h: New file.
8965 * modules/unicase/u8-casecmp: New file.
8967 Tests for module 'unicase/u32-casefold'.
8968 * modules/unicase/u32-casefold-tests: New file.
8969 * tests/unicase/test-u32-casefold.c: New file.
8971 Tests for module 'unicase/u16-casefold'.
8972 * modules/unicase/u16-casefold-tests: New file.
8973 * tests/unicase/test-u16-casefold.c: New file.
8975 Tests for module 'unicase/u8-casefold'.
8976 * modules/unicase/u8-casefold-tests: New file.
8977 * tests/unicase/test-u8-casefold.c: New file.
8979 New module 'unicase/u32-casefold'.
8980 * lib/unicase/u32-casefold.c: New file.
8981 * modules/unicase/u32-casefold: New file.
8983 New module 'unicase/u16-casefold'.
8984 * lib/unicase/u16-casefold.c: New file.
8985 * modules/unicase/u16-casefold: New file.
8987 New module 'unicase/u8-casefold'.
8988 * lib/unicase/u8-casefold.c: New file.
8989 * lib/unicase/u-casefold.h: New file.
8990 * modules/unicase/u8-casefold: New file.
8992 New module 'unicase/tocasefold'.
8993 * lib/unicase/casefold.h: New file.
8994 * lib/unicase/tocasefold.c: New file.
8995 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
8996 * modules/unicase/tocasefold: New file.
8998 Tests for module 'unicase/u32-totitle'.
8999 * modules/unicase/u32-totitle-tests: New file.
9000 * tests/unicase/test-u32-totitle.c: New file.
9002 Tests for module 'unicase/u16-totitle'.
9003 * modules/unicase/u16-totitle-tests: New file.
9004 * tests/unicase/test-u16-totitle.c: New file.
9006 Tests for module 'unicase/u8-totitle'.
9007 * modules/unicase/u8-totitle-tests: New file.
9008 * tests/unicase/test-u8-totitle.c: New file.
9010 New module 'unicase/u32-totitle'.
9011 * lib/unicase/u32-totitle.c: New file.
9012 * modules/unicase/u32-totitle: New file.
9014 New module 'unicase/u16-totitle'.
9015 * lib/unicase/u16-totitle.c: New file.
9016 * modules/unicase/u16-totitle: New file.
9018 New module 'unicase/u8-totitle'.
9019 * lib/unicase/u8-totitle.c: New file.
9020 * lib/unicase/u-totitle.h: New file.
9021 * modules/unicase/u8-totitle: New file.
9023 Tests for module 'unicase/u32-tolower'.
9024 * modules/unicase/u32-tolower-tests: New file.
9025 * tests/unicase/test-u32-tolower.c: New file.
9027 Tests for module 'unicase/u16-tolower'.
9028 * modules/unicase/u16-tolower-tests: New file.
9029 * tests/unicase/test-u16-tolower.c: New file.
9031 Tests for module 'unicase/u8-tolower'.
9032 * modules/unicase/u8-tolower-tests: New file.
9033 * tests/unicase/test-u8-tolower.c: New file.
9035 New module 'unicase/u32-tolower'.
9036 * lib/unicase/u32-tolower.c: New file.
9037 * modules/unicase/u32-tolower: New file.
9039 New module 'unicase/u16-tolower'.
9040 * lib/unicase/u16-tolower.c: New file.
9041 * modules/unicase/u16-tolower: New file.
9043 New module 'unicase/u8-tolower'.
9044 * lib/unicase/u8-tolower.c: New file.
9045 * modules/unicase/u8-tolower: New file.
9047 Tests for module 'unicase/u32-toupper'.
9048 * modules/unicase/u32-toupper-tests: New file.
9049 * tests/unicase/test-u32-toupper.c: New file.
9051 Tests for module 'unicase/u16-toupper'.
9052 * modules/unicase/u16-toupper-tests: New file.
9053 * tests/unicase/test-u16-toupper.c: New file.
9055 Tests for module 'unicase/u8-toupper'.
9056 * modules/unicase/u8-toupper-tests: New file.
9057 * tests/unicase/test-u8-toupper.c: New file.
9059 New module 'unicase/u32-toupper'.
9060 * lib/unicase/u32-toupper.c: New file.
9061 * modules/unicase/u32-toupper: New file.
9063 New module 'unicase/u16-toupper'.
9064 * lib/unicase/u16-toupper.c: New file.
9065 * modules/unicase/u16-toupper: New file.
9067 New module 'unicase/u8-toupper'.
9068 * lib/unicase/u8-toupper.c: New file.
9069 * modules/unicase/u8-toupper: New file.
9071 New module 'unicase/u32-casemap'.
9072 * lib/unicase/u32-casemap.c: New file.
9073 * modules/unicase/u32-casemap: New file.
9075 New module 'unicase/u16-casemap'.
9076 * lib/unicase/u16-casemap.c: New file.
9077 * modules/unicase/u16-casemap: New file.
9079 New module 'unicase/u8-casemap'.
9080 * lib/unicase/unicasemap.h: New file.
9081 * lib/unicase/u8-casemap.c: New file.
9082 * lib/unicase/u-casemap.h: New file.
9083 * modules/unicase/u8-casemap: New file.
9085 New module 'unicase/special-casing'.
9086 * lib/unicase/special-casing.h: New file.
9087 * lib/unicase/special-casing.c: New file.
9088 * lib/unicase/special-casing-table.gperf: New file, generated by
9090 * modules/unicase/special-casing: New file.
9092 Tests for module 'unicase/locale-language'.
9093 * modules/unicase/locale-language-tests: New file.
9094 * tests/unicase/test-locale-language.sh: New file.
9095 * tests/unicase/test-locale-language.c: New file.
9097 New module 'unicase/locale-language'.
9098 * lib/unicase/locale-language.c: New file.
9099 * lib/unicase/locale-languages.gperf: New file.
9100 * modules/unicase/locale-language: New file.
9102 Generate more tables for case conversion and case folding.
9103 * lib/gen-uni-tables.c (SCC_*): New enum items.
9104 (struct special_casing_rule): New type.
9105 (casing_rules, num_casing_rules, allocated_casing_rules): New
9107 (add_casing_rule, fill_casing_rules): New functions.
9108 (struct casefold_rule): New type.
9109 (casefolding_rules, num_casefolding_rules,
9110 allocated_casefolding_rules): New variables.
9111 (fill_casefolding_rules): New function.
9112 (unicode_casefold): New variable.
9113 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
9114 sort_casing_rules, output_casing_rules): New functions.
9115 (main): Accept to more arguments: SpecialCasing.txt and
9116 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
9117 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
9118 Output mapping for casefolding.
9120 * lib/unicase.h: Include stdbool.h, uninorm.h.
9121 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
9122 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
9123 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
9125 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
9127 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
9128 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
9130 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
9131 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
9132 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
9133 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
9135 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
9137 2009-03-08 Bruno Haible <bruno@clisp.org>
9139 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
9140 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
9141 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
9142 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
9144 2009-03-07 Bruno Haible <bruno@clisp.org>
9146 Adjust u*_normcmp, u*_normcoll API.
9147 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
9148 u16_normcoll, u32_normcoll): Change failure conventions.
9149 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
9150 errno and return -1.
9151 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
9153 2009-03-07 Bruno Haible <bruno@clisp.org>
9155 Tests for module 'uninorm/u32-normcoll'.
9156 * modules/uninorm/u32-normcoll-tests: New file.
9157 * tests/uninorm/test-u32-normcoll.c: New file.
9159 Tests for module 'uninorm/u16-normcoll'.
9160 * modules/uninorm/u16-normcoll-tests: New file.
9161 * tests/uninorm/test-u16-normcoll.c: New file.
9163 Tests for module 'uninorm/u8-normcoll'.
9164 * modules/uninorm/u8-normcoll-tests: New file.
9165 * tests/uninorm/test-u8-normcoll.c: New file.
9167 2009-03-07 Bruno Haible <bruno@clisp.org>
9169 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
9170 tests/uninorm/test-u32-normcmp.c.
9171 * tests/uninorm/test-u32-normcmp.c: Include it.
9172 (test_nonascii): New function, extracted from main. Add some more
9174 (main): Invoke test_ascii and test_nonascii.
9175 * modules/uninorm/u32-normcmp-tests (Files): Add
9176 tests/uninorm/test-u32-normcmp.h.
9177 (Depends-on): Remove uninorm/u32-normcmp.
9179 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
9180 tests/uninorm/test-u16-normcmp.c.
9181 * tests/uninorm/test-u16-normcmp.c: Include it.
9182 (test_nonascii): New function, extracted from main. Add some more
9184 (main): Invoke test_ascii and test_nonascii.
9185 * modules/uninorm/u16-normcmp-tests (Files): Add
9186 tests/uninorm/test-u16-normcmp.h.
9187 (Depends-on): Remove uninorm/u16-normcmp.
9189 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
9190 tests/uninorm/test-u8-normcmp.c.
9191 * tests/uninorm/test-u8-normcmp.c: Include it.
9192 (test_nonascii): New function, extracted from main. Add some more
9194 (main): Invoke test_ascii and test_nonascii.
9195 * modules/uninorm/u8-normcmp-tests (Files): Add
9196 tests/uninorm/test-u8-normcmp.h.
9197 (Depends-on): Remove uninorm/u8-normcmp.
9199 2009-03-07 Bruno Haible <bruno@clisp.org>
9201 New module 'uninorm/u32-normcoll'.
9202 * lib/uninorm/u32-normcoll.c: New file.
9203 * modules/uninorm/u32-normcoll: New file.
9205 New module 'uninorm/u16-normcoll'.
9206 * lib/uninorm/u16-normcoll.c: New file.
9207 * modules/uninorm/u16-normcoll: New file.
9209 New module 'uninorm/u8-normcoll'.
9210 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
9212 * lib/uninorm/u8-normcoll.c: New file.
9213 * lib/uninorm/u-normcoll.h: New file.
9214 * modules/uninorm/u8-normcoll: New file.
9216 New module 'uninorm/u32-normxfrm'.
9217 * lib/uninorm/u32-normxfrm.c: New file.
9218 * modules/uninorm/u32-normxfrm: New file.
9220 New module 'uninorm/u16-normxfrm'.
9221 * lib/uninorm/u16-normxfrm.c: New file.
9222 * modules/uninorm/u16-normxfrm: New file.
9224 New module 'uninorm/u8-normxfrm'.
9225 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
9227 * lib/uninorm/u8-normxfrm.c: New file.
9228 * lib/uninorm/u-normxfrm.h: New file.
9229 * modules/uninorm/u8-normxfrm: New file.
9231 2009-03-07 Bruno Haible <bruno@clisp.org>
9233 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
9234 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
9235 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
9237 2009-03-07 Bruno Haible <bruno@clisp.org>
9239 New module 'memxfrm'.
9240 * lib/memxfrm.h: New file.
9241 * lib/memxfrm.c: New file.
9242 * modules/memxfrm: New file.
9244 2009-03-07 Bruno Haible <bruno@clisp.org>
9246 New module 'memcmp2'.
9247 * lib/memcmp2.h: New file.
9248 * lib/memcmp2.c: New file.
9249 * modules/memcmp2: New file.
9251 2009-03-07 Bruno Haible <bruno@clisp.org>
9253 Tests for module 'uninorm/decomposing-form'.
9254 * modules/uninorm/decomposing-form-tests: New file.
9255 * tests/uninorm/test-decomposing-form.c: New file.
9257 New module 'uninorm/decomposing-form'.
9258 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
9259 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
9260 Add 'decomposing_variant' field.
9261 * lib/uninorm/decomposing-form.c: New file.
9262 * lib/uninorm/nfc.c (uninorm_nfc): Update.
9263 * lib/uninorm/nfd.c (uninorm_nfd): Update.
9264 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
9265 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
9266 * modules/uninorm/decomposing-form: New file.
9267 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
9268 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
9270 2009-03-07 Bruno Haible <bruno@clisp.org>
9272 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
9275 2009-03-06 Bruno Haible <bruno@clisp.org>
9277 Tests for module 'uninorm/u32-normcmp'.
9278 * tests/uninorm/test-u32-normcmp.c: New file.
9279 * modules/uninorm/u32-normcmp-tests: New file.
9281 Tests for module 'uninorm/u16-normcmp'.
9282 * tests/uninorm/test-u16-normcmp.c: New file.
9283 * modules/uninorm/u16-normcmp-tests: New file.
9285 Tests for module 'uninorm/u8-normcmp'.
9286 * tests/uninorm/test-u8-normcmp.c: New file.
9287 * modules/uninorm/u8-normcmp-tests: New file.
9289 New module 'uninorm/u32-normcmp'.
9290 * lib/uninorm/u32-normcmp.c: New file.
9291 * modules/uninorm/u32-normcmp: New file.
9293 New module 'uninorm/u16-normcmp'.
9294 * lib/uninorm/u16-normcmp.c: New file.
9295 * modules/uninorm/u16-normcmp: New file.
9297 New module 'uninorm/u8-normcmp'.
9298 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
9300 * lib/uninorm/u8-normcmp.c: New file.
9301 * lib/uninorm/u-normcmp.h: New file.
9302 * modules/uninorm/u8-normcmp: New file.
9304 2009-03-06 Bruno Haible <bruno@clisp.org>
9306 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
9307 Reported by Eric Blake.
9309 2009-03-06 Eric Blake <ebb9@byu.net>
9310 Bruno Haible <bruno@clisp.org>
9312 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
9313 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
9315 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
9316 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
9318 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
9320 2009-03-06 Eric Blake <ebb9@byu.net>
9322 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
9323 to avoid compiler warnings.
9324 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
9326 2009-03-05 Bruno Haible <bruno@clisp.org>
9328 * tests/test-ftell.c (main): Disable test beyond end of file on
9330 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
9332 2009-03-05 Kamil Dudka <kdudka@redhat.com>
9334 * lib/filevercmp.c: Move hidden files up in ordering.
9335 * tests/test-filevercmp.c: Add tests for hidden files.
9337 2009-03-04 Bruno Haible <bruno@clisp.org>
9339 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
9340 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
9342 Reported by Simon Josefsson.
9344 2009-03-03 Bruno Haible <bruno@clisp.org>
9346 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
9347 Reported by Simon Josefsson.
9349 * doc/ld-version-script.texi: Update node reference.
9351 2009-03-03 Bruno Haible <bruno@clisp.org>
9353 * modules/visibility (License): Change to 'unlimited'.
9354 Suggested by Simon Josefsson.
9356 2009-03-03 Jim Meyering <meyering@redhat.com>
9358 unlinkdir: cannot_unlink_dir may modify process state
9359 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
9360 it's neither thread-safe nor appropriate for use in a library.
9362 2009-03-03 Eric Blake <ebb9@byu.net>
9364 test-closein: silence test under Darwin
9365 * tests/test-closein.sh: Ignore stderr from cat, since we don't
9366 care if it dies from EPIPE or EBADF.
9368 2009-03-03 Bruno Haible <bruno@clisp.org>
9370 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
9372 * doc/visibility.texi: Fix @node and @section.
9374 2009-03-03 Simon Josefsson <simon@josefsson.org>
9376 * doc/gnulib.texi: Link to sections for ld version script and
9378 * doc/visibility.texi: Add @node and @section.
9379 * modules/ld-version-script: New module.
9380 * m4/ld-version-script.m4: New file.
9381 * doc/ld-version-script.texi: New file.
9383 2009-03-02 David Lutterkort <lutter@redhat.com>
9385 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
9386 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9388 2009-03-02 Bruno Haible <bruno@clisp.org>
9390 * doc/visibility.texi: Mention libtool's -export-symbols option.
9392 2009-03-02 Jim Meyering <meyering@redhat.com>
9394 announce-gen: new option: --no-print-checksums
9395 * build-aux/announce-gen (usage): Describe it.
9396 (print_checksums): Print a newline here, not in the [*] footnote.
9399 2009-03-01 Bruno Haible <bruno@clisp.org>
9401 Use socklen_t in the native Windows replacements prototypes.
9402 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
9404 * lib/getsockopt.c (rpl_getsockopt): Likewise.
9405 * lib/setsockopt.c (rpl_setsockopt): Likewise.
9406 * modules/getsockopt (Depends-on): Add socklen.
9407 * modules/setsockopt (Depends-on): Add socklen.
9409 2009-03-01 Bruno Haible <bruno@clisp.org>
9411 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
9414 2009-03-01 Eric Blake <ebb9@byu.net>
9415 Bruno Haible <bruno@clisp.org>
9417 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
9419 * lib/wait-process.c (wait_subprocess): Omit error message about
9420 deadly signal sent to the child of termsigp != NULL.
9422 2009-03-01 Eric Blake <ebb9@byu.net>
9424 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
9426 2009-03-01 Bruno Haible <bruno@clisp.org>
9428 Avoid a gcc warning.
9429 * tests/test-sched.c (b): Make global.
9430 Reported by Eric Blake.
9432 2009-01-19 Martin Lambers <marlam@marlam.de>
9434 Provide POSIX semantics for socket timeout options on W32.
9435 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
9436 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
9437 * modules/setsockopt: Depend on sys_time module for struct timeval.
9438 * modules/getsockopt: Depend on sys_time module for struct timeval.
9440 2009-03-01 Simon Josefsson <simon@josefsson.org>
9442 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
9443 __USE_GNU, for consistency with netdb.in.h.
9444 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9446 2009-03-01 Bruno Haible <bruno@clisp.org>
9448 More support for FreeMiNT.
9449 * lib/fseeko.c (rpl_fseeko): Complete last commit.
9450 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9452 2009-03-01 Bruno Haible <bruno@clisp.org>
9454 More support for FreeMiNT.
9455 * lib/fpurge.c (fpurge): Correct last commit.
9456 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9458 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9460 Fix unportable awk script in vc-list-files.
9461 * build-aux/vc-list-files: In the replacement awk script, use
9462 substr with a second argument of 1, not zero.
9463 Report by Simon Josefsson.
9465 2009-02-28 Bruno Haible <bruno@clisp.org>
9467 More support for FreeMiNT.
9468 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
9470 * lib/fwriting.c (fwriting): Likewise.
9471 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
9473 2009-02-28 Bruno Haible <bruno@clisp.org>
9475 * tests/test-freadseek.c (main): Disable test beyond end of file on
9477 * tests/test-ftello.c (main): Likewise.
9478 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
9480 2009-02-28 Bruno Haible <bruno@clisp.org>
9482 Add tentative support for FreeMiNT.
9483 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
9484 * lib/fpurge.c (fpurge): Likewise.
9485 * lib/freadable.c (freadable): Likewise.
9486 * lib/freading.c (freading): Likewise.
9487 * lib/freadptr.c (freadptr): Likewise.
9488 * lib/freadseek.c (freadptrinc): Likewise.
9489 * lib/fseeko.c (rpl_fseeko): Likewise.
9490 * lib/fseterr.c (fseterr): Likewise.
9491 * lib/fwritable.c (fwritable): Likewise.
9492 * lib/fwriting.c (fwriting): Likewise.
9493 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
9495 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9497 2009-02-28 Bruno Haible <bruno@clisp.org>
9499 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
9501 Reported by Jim Meyering.
9503 2009-02-28 Bruno Haible <bruno@clisp.org>
9505 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
9506 Mention the results of these tests on various platforms.
9507 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
9509 * doc/posix-functions/printf.texi: Likewise.
9510 * doc/posix-functions/snprintf.texi: Likewise.
9511 * doc/posix-functions/sprintf.texi: Likewise.
9512 * doc/posix-functions/vfprintf.texi: Likewise.
9513 * doc/posix-functions/vprintf.texi: Likewise.
9514 * doc/posix-functions/vsnprintf.texi: Likewise.
9515 * doc/posix-functions/vsprintf.texi: Likewise.
9516 * doc/glibc-functions/obstack_printf.texi: Likewise.
9517 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9519 2009-02-28 Bruno Haible <bruno@clisp.org>
9521 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
9522 Reported by Loïc Minier <lool@dooz.org>.
9524 2009-02-27 Bruno Haible <bruno@clisp.org>
9526 * gnulib-tool (func_import): Make the sed expression used to create the
9527 sed script for updating the .gitignore file POSIX compliant.
9528 Reported by Eric Blake.
9530 2009-02-27 Bruno Haible <bruno@clisp.org>
9532 * gnulib-tool (sed): Don't alias as "sed --posix".
9533 Reported by Eric Blake.
9535 2009-02-27 Bruno Haible <bruno@clisp.org>
9537 Avoid test link errors.
9538 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
9539 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
9540 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
9541 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
9542 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9544 2009-02-27 Bruno Haible <bruno@clisp.org>
9546 Avoid spurious "(cached)" in configure output.
9547 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
9548 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
9549 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9550 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9551 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9552 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9553 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9554 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9555 Reported by Eric Blake.
9557 2009-02-27 Eric Blake <ebb9@byu.net>
9559 printf: fix regression in previous patch
9560 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
9562 2009-02-27 Bruno Haible <bruno@clisp.org>
9564 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
9566 * lib/stdint.in.h: Likewise.
9567 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
9569 2009-02-27 Eric Blake <ebb9@byu.net>
9571 doc: mention more functions added in cygwin 1.7.0
9572 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
9574 * doc/posix-functions/open_wmemstream.texi: Likewise.
9575 * doc/posix-functions/wcsnlen.texi: Likewise.
9576 * doc/posix-functions/wcsnrtombs.texi: Likewise.
9577 * doc/posix-functions/wcstod.texi: Likewise.
9578 * doc/posix-functions/wcstof.texi: Likewise.
9579 * doc/posix-functions/wcstoimax.texi: Likewise.
9580 * doc/posix-functions/wcstok.texi: Likewise.
9581 * doc/posix-functions/wcstoumax.texi: Likewise.
9583 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
9584 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
9585 * doc/posix-functions/fprintf.texi: Update.
9586 * doc/posix-functions/printf.texi: Update.
9587 * doc/posix-functions/snprintf.texi: Update.
9588 * doc/posix-functions/sprintf.texi: Update.
9589 * doc/posix-functions/vfprintf.texi: Update.
9590 * doc/posix-functions/vprintf.texi: Update.
9591 * doc/posix-functions/vsnprintf.texi: Update.
9592 * doc/posix-functions/vsprintf.texi: Update.
9593 * doc/glibc-functions/obstack_printf.texi: Update.
9594 * doc/glibc-functions/obstack_vprintf.texi: Update.
9596 2009-02-26 Eric Blake <ebb9@byu.net>
9598 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
9599 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
9600 compilation bug by using runtime conversion.
9601 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9602 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
9603 * modules/ceill-tests (Files): Use nan.h.
9604 * modules/floorl-tests (Files): Likewise.
9605 * modules/frexpl-tests (Files): Likewise.
9606 * modules/isnanl-tests (Files): Likewise.
9607 * modules/ldexpl-tests (Files): Likewise.
9608 * modules/roundl-tests (Files): Likewise.
9609 * modules/truncl-tests (Files): Likewise.
9610 * tests/test-ceill.c (main): Use a working NaN.
9611 * tests/test-floorl.c (main): Likewise.
9612 * tests/test-frexpl.c (main): Likewise.
9613 * tests/test-isnan.c (test_long_double): Likewise.
9614 * tests/test-isnanl.h (main): Likewise.
9615 * tests/test-ldexpl.h (main): Likewise.
9616 * tests/test-roundl.h (main): Likewise.
9617 * tests/test-truncl.h (main): Likewise.
9618 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
9620 2009-02-26 Eric Blake <ebb9@byu.net>
9621 Bruno Haible <bruno@clisp.org>
9623 Work around a *printf bug with %ls on Solaris.
9624 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
9625 precision is specified, sprintf stops converting the wide string
9626 argument when the number of bytes that have been produced by this
9627 conversion equals or exceeds the precision.
9628 * doc/posix-functions/fprintf.texi: Update.
9629 * doc/posix-functions/printf.texi: Update.
9630 * doc/posix-functions/snprintf.texi: Update.
9631 * doc/posix-functions/sprintf.texi: Update.
9632 * doc/posix-functions/vfprintf.texi: Update.
9633 * doc/posix-functions/vprintf.texi: Update.
9634 * doc/posix-functions/vsnprintf.texi: Update.
9635 * doc/posix-functions/vsprintf.texi: Update.
9636 * doc/glibc-functions/obstack_printf.texi: Update.
9637 * doc/glibc-functions/obstack_vprintf.texi: Update.
9639 2009-02-26 Eric Blake <ebb9@byu.net>
9641 stdlib: favor compiler check of random.h
9642 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
9643 to avoid an ObjC random.h installed by Swarm.
9645 2009-02-26 Bruno Haible <bruno@clisp.org>
9647 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
9648 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
9649 Reported by Gary V. Vaughan <gary@gnu.org>.
9651 2009-02-26 Bruno Haible <bruno@clisp.org>
9653 Fix *printf behaviour regarding the %ls directive.
9654 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
9655 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
9656 NEED_PRINTF_DIRECTIVE_LS.
9657 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
9658 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9659 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9660 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
9661 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
9662 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
9663 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9664 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9665 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9666 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9667 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9668 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
9669 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9670 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9671 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9672 * doc/posix-functions/fprintf.texi: Update.
9673 * doc/posix-functions/printf.texi: Update.
9674 * doc/posix-functions/snprintf.texi: Update.
9675 * doc/posix-functions/sprintf.texi: Update.
9676 * doc/posix-functions/vfprintf.texi: Update.
9677 * doc/posix-functions/vprintf.texi: Update.
9678 * doc/posix-functions/vsnprintf.texi: Update.
9679 * doc/posix-functions/vsprintf.texi: Update.
9680 * doc/glibc-functions/obstack_printf.texi: Update.
9681 * doc/glibc-functions/obstack_vprintf.texi: Update.
9682 Reported by Eric Blake.
9684 2009-02-25 Bruno Haible <bruno@clisp.org>
9686 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
9688 Reported by Gary V. Vaughan <gary@gnu.org>.
9690 2009-02-25 Bruno Haible <bruno@clisp.org>
9692 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
9693 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
9694 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
9695 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
9696 Reported by Gary V. Vaughan <gary@gnu.org>.
9698 2009-02-25 Bruno Haible <bruno@clisp.org>
9700 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
9701 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
9702 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
9703 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
9704 Reported by Gary V. Vaughan <gary@gnu.org>.
9706 2009-02-25 Eric Blake <ebb9@byu.net>
9708 tests: skip fseek/ftell tests if ungetc is broken
9709 * m4/ungetc.m4: New file.
9710 * modules/fseek-tests: Split test, so ungetc dependency is
9711 separate from rest of test.
9712 * modules/fseeko-tests: Likewise.
9713 * modules/ftell-tests: Likewise.
9714 * modules/ftello-tests: Likewise.
9715 * tests/test-fseek.c (main): Isolate ungetc dependency.
9716 * tests/test-fseeko.c (main): Likewise.
9717 * tests/test-ftell.c (main): Likewise.
9718 * tests/test-ftello.c (main): Likewise.
9719 * tests/test-fseek2.sh: New file.
9720 * tests/test-fseeko2.sh: Likewise.
9721 * tests/test-ftell2.sh: Likewise.
9722 * tests/test-ftello2.sh: Likewise.
9724 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
9726 test-getaddrinfo: fix usage of skip return code 77
9727 * tests/test-gettaddrinfo.c: Return skip code 77 only
9728 for first occurance of skip (4x77 is not 77)
9730 2009-02-25 Gary V. Vaughan <gary@gnu.org>
9732 strtod: avoid C99 decl-after-statement
9733 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
9735 2009-02-24 Eric Blake <ebb9@byu.net>
9737 strtod: detect HP-UX 11.31 bug
9738 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
9739 Reported by Gary V. Vaughan.
9741 2009-02-23 Bruno Haible <bruno@clisp.org>
9743 Fix invalid read past end of memory block.
9744 * lib/vasnprintf.c (DCHAR_SET): Define.
9745 (local_wcslen): Define only when needed.
9746 (local_strnlen, local_wcsnlen): New functions.
9747 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
9748 directives that involve a conversion ourselves.
9749 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
9750 wcsnlen, mbrtowc, wcrtomb.
9751 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
9752 * tests/test-vasprintf-posix.c (test_function): Likewise.
9753 * tests/test-snprintf-posix.h (test_function): Likewise.
9754 * tests/test-sprintf-posix.h (test_function): Likewise.
9755 Reported by Ben Pfaff <blp@cs.stanford.edu>.
9757 2009-02-22 Bruno Haible <bruno@clisp.org>
9759 Implement new clarified decomposition of Hangul syllables.
9760 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
9761 of type LTV, return only a pairwise decomposition.
9762 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
9764 * tests/uninorm/test-decomposition.c (main): Updated expected result.
9765 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
9766 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
9768 2009-02-22 Bruno Haible <bruno@clisp.org>
9770 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
9771 zero-length results and shrink excess allocated memory.
9772 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
9773 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
9774 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
9775 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
9776 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
9777 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
9778 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
9779 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
9780 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
9781 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
9782 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
9783 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
9785 2009-02-21 Bruno Haible <bruno@clisp.org>
9787 * doc/gnulib.texi: Include safe-alloc.texi earlier.
9788 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
9789 spaces after a period. Put a space between a macro name and its
9790 argument list. Trivial rewordings.
9791 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
9792 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
9793 (main): Return 0 explicitly.
9795 2009-02-21 Bruno Haible <bruno@clisp.org>
9797 Tests for module 'uninorm/filter'.
9798 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
9799 * modules/uninorm/filter-tests: New file.
9801 New module 'uninorm/filter'.
9802 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
9803 uninorm_filter_flush, uninorm_filter_free): New declarations.
9804 * lib/uninorm/uninorm-filter.c: New file.
9805 * modules/uninorm/filter: New file.
9807 2009-02-21 Bruno Haible <bruno@clisp.org>
9809 Tests for module 'uninorm/nfkc'.
9810 * tests/uninorm/test-nfkc.c: New file.
9811 * tests/uninorm/test-u8-nfkc.c: New file.
9812 * tests/uninorm/test-u16-nfkc.c: New file.
9813 * tests/uninorm/test-u32-nfkc.c: New file.
9814 * tests/uninorm/test-u32-nfkc-big.sh: New file.
9815 * tests/uninorm/test-u32-nfkc-big.c: New file.
9816 * modules/uninorm/nfkc-tests: New file.
9818 New module 'uninorm/nfkc'.
9819 * lib/uninorm/nfkc.c: New file.
9820 * modules/uninorm/nfkc: New file.
9822 Tests for module 'uninorm/nfkd'.
9823 * tests/uninorm/test-nfkd.c: New file.
9824 * tests/uninorm/test-u8-nfkd.c: New file.
9825 * tests/uninorm/test-u16-nfkd.c: New file.
9826 * tests/uninorm/test-u32-nfkd.c: New file.
9827 * tests/uninorm/test-u32-nfkd-big.sh: New file.
9828 * tests/uninorm/test-u32-nfkd-big.c: New file.
9829 * modules/uninorm/nfkd-tests: New file.
9831 New module 'uninorm/nfkd'.
9832 * lib/uninorm/nfkd.c: New file.
9833 * modules/uninorm/nfkd: New file.
9835 Tests for module 'uninorm/nfc'.
9836 * tests/uninorm/test-nfc.c: New file.
9837 * tests/uninorm/test-u8-nfc.c: New file.
9838 * tests/uninorm/test-u16-nfc.c: New file.
9839 * tests/uninorm/test-u32-nfc.c: New file.
9840 * tests/uninorm/test-u32-nfc-big.sh: New file.
9841 * tests/uninorm/test-u32-nfc-big.c: New file.
9842 * modules/uninorm/nfc-tests: New file.
9844 New module 'uninorm/nfc'.
9845 * lib/uninorm/nfc.c: New file.
9846 * modules/uninorm/nfc: New file.
9848 Tests for module 'uninorm/nfd'.
9849 * tests/uninorm/test-nfd.c: New file.
9850 * tests/uninorm/test-u8-nfd.c: New file.
9851 * tests/uninorm/test-u16-nfd.c: New file.
9852 * tests/uninorm/test-u32-nfd.c: New file.
9853 * tests/uninorm/test-u32-nfd-big.sh: New file.
9854 * tests/uninorm/test-u32-nfd-big.c: New file.
9855 * tests/uninorm/test-u32-normalize-big.h: New file.
9856 * tests/uninorm/test-u32-normalize-big.c: New file.
9857 * tests/uninorm/NormalizationTest.txt: New file, created from
9858 Unicode 5.1.0 NormalizationTest.txt.
9859 * modules/uninorm/nfd-tests: New file.
9861 New module 'uninorm/nfd'.
9862 * lib/uninorm/nfd.c: New file.
9863 * modules/uninorm/nfd: New file.
9865 New module 'uninorm/u32-normalize'.
9866 * lib/uninorm/u32-normalize.c: New file.
9867 * modules/uninorm/u32-normalize: New file.
9869 New module 'uninorm/u16-normalize'.
9870 * lib/uninorm/u16-normalize.c: New file.
9871 * modules/uninorm/u16-normalize: New file.
9873 New module 'uninorm/u8-normalize'.
9874 * lib/uninorm/u8-normalize.c: New file.
9875 * lib/uninorm/normalize-internal.h: New file.
9876 * lib/uninorm/u-normalize-internal.h: New file.
9877 * modules/uninorm/u8-normalize: New file.
9879 New module 'uninorm/decompose-internal'.
9880 * lib/uninorm/decompose-internal.c: New file.
9881 * modules/uninorm/decompose-internal: New file.
9883 Tests for module 'uninorm/composition'.
9884 * tests/uninorm/test-composition.c: New file.
9885 * modules/uninorm/composition-tests: New file.
9887 New module 'uninorm/composition'.
9888 * lib/uninorm/composition.c: New file.
9889 * lib/uninorm/composition-table.gperf: New file, generated by
9891 * modules/uninorm/composition: New file.
9893 Tests for module 'uninorm/compat-decomposition'.
9894 * tests/uninorm/test-compat-decomposition.c: New file.
9895 * modules/uninorm/compat-decomposition-tests: New file.
9897 New module 'uninorm/compat-decomposition'.
9898 * lib/uninorm/decompose-internal.h: New file.
9899 * lib/uninorm/compat-decomposition.c: New file.
9900 * modules/uninorm/compat-decomposition: New file.
9902 Tests for module 'uninorm/canonical-decomposition'.
9903 * tests/uninorm/test-canonical-decomposition.c: New file.
9904 * modules/uninorm/canonical-decomposition-tests: New file.
9906 New module 'uninorm/canonical-decomposition'.
9907 * lib/uninorm/canonical-decomposition.c: New file.
9908 * modules/uninorm/canonical-decomposition: New file.
9910 Tests for module 'uninorm/decomposition'.
9911 * tests/uninorm/test-decomposition.c: New file.
9912 * modules/uninorm/decomposition-tests: New file.
9914 New module 'uninorm/decomposition'.
9915 * lib/uninorm/decomposition.c: New file.
9916 * modules/uninorm/decomposition: New file.
9918 New module 'uninorm/decomposition-table'.
9919 * lib/uninorm/decomposition-table.h: New file.
9920 * lib/uninorm/decomposition-table.c: New file.
9921 * lib/uninorm/decomposition-table1.h: New file, generated by
9923 * lib/uninorm/decomposition-table2.h: New file, generated by
9925 * modules/uninorm/decomposition-table: New file.
9927 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
9928 (UC_DECOMP_*): New enumeration items.
9929 (get_decomposition): New function.
9930 (struct decomp_table): New type.
9931 (output_decomposition, output_decomposition_tables): New functions.
9932 (unicode_composition_exclusions): New variable.
9933 (fill_composition_exclusions, debug_output_composition_tables): New
9935 (main): Accept one more argument. Invoke fill_composition_exclusions.
9936 Output decomposition and composition tables.
9938 New module 'uninorm/base'.
9939 * lib/uninorm.h: New file.
9940 * lib/unictype.h: Update comment.
9941 * modules/uninorm/base: New file.
9943 2009-02-21 David Lutterkort <lutter@redhat.com>
9945 Tests for module 'safe-alloc'.
9946 * tests/test-safe-alloc.c: New file.
9947 * modules/safe-alloc-tests: New file.
9949 New module 'safe-alloc'.
9950 * lib/safe-alloc.h: New file.
9951 * lib/safe-alloc.c: New file.
9952 * m4/safe-alloc.m4: New file.
9953 * modules/safe-alloc: New file.
9954 * doc/safe-alloc.texi: New file.
9955 * doc/gnulib.texi: Include it.
9956 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
9959 2009-02-18 Bruno Haible <bruno@clisp.org>
9961 Fix link error on non-glibc systems.
9962 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
9964 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9966 2009-02-18 Jim Meyering <meyering@redhat.com>
9968 fts: avoid used-uninitialized error due to recent change
9969 * lib/fts.c (fts_read): Guard uses of the new member,
9970 parent->fts_n_dirs_remaining, since it's not relevant for
9971 the parent of a directory specified on the command-line.
9973 2009-02-17 James Youngman <jay@gnu.org>
9974 Bruno Haible <bruno@clisp.org>
9976 * m4/include_next.m4: Reformulate comment.
9978 2009-02-16 Jim Meyering <meyering@redhat.com>
9980 fts: add #if guards so that the fts_lgpl module still builds
9981 * lib/fts.c: Guard just-added hash-table-using parts with
9982 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
9983 Reported by Simon Josefsson.
9985 2009-02-15 Bruno Haible <bruno@clisp.org>
9987 * modules/array-mergesort-tests: New file.
9988 * tests/test-array-mergesort.c: New file.
9990 New module 'array-mergesort'.
9991 * modules/array-mergesort: New file.
9992 * lib/array-mergesort.h: New file.
9994 2009-02-15 Bruno Haible <bruno@clisp.org>
9996 Fix 2009-02-07 commit.
9997 * lib/gen-uni-tables.c (output_predicate, output_category,
9998 output_combclass, output_bidi_category, output_decimal_digit,
9999 output_digit, output_numeric, output_mirror, output_scripts,
10000 output_ident_category, output_simple_mapping): Fix format directives.
10001 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
10003 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
10005 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
10006 fixes are available from IBM.
10008 2009-02-13 Jim Meyering <meyering@redhat.com>
10010 fts: arrange not to stat non-directories in more cases
10011 This makes GNU find (when it doesn't need to stat each file)
10012 *much* more efficient at traversing reiserfs file systems.
10013 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
10014 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
10015 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
10016 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
10017 (leaf_optimization_applies): New function.
10018 (LCO_hash, LCO_compare): New helper functions.
10019 (link_count_optimize_ok): New function.
10020 (fts_stat): Initialize new member (if dir).
10021 (fts_read): Decrement parent's fts_n_dirs_remaining count if
10022 we've just stat'ed a directory. Skip the stat call when possible.
10024 Note this AFS-related exchange:
10025 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
10026 and note find's pioctl call in find/fstype.c.
10027 But that is necessary only if you want to enable the
10028 optimization for AFS, and for now, I don't.
10030 fts: move a function definition "up" (no semantic change)
10031 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
10032 "up" to precede upcoming use of a related function.
10034 2009-02-11 Jim Meyering <meyering@redhat.com>
10036 fts: correct internal computation of nlinks (optimization-related)
10037 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
10038 whether the current entry is a directory, so don't test it.
10040 2009-02-10 Bruno Haible <bruno@clisp.org>
10042 Tests for module 'uniwbrk/ulc-wordbreaks'.
10043 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
10044 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
10045 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
10047 Tests for module 'uniwbrk/u32-wordbreaks'.
10048 * modules/uniwbrk/u32-wordbreaks-tests: New file.
10049 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
10051 Tests for module 'uniwbrk/u16-wordbreaks'.
10052 * modules/uniwbrk/u16-wordbreaks-tests: New file.
10053 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
10055 Tests for module 'uniwbrk/u8-wordbreaks'.
10056 * modules/uniwbrk/u8-wordbreaks-tests: New file.
10057 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
10059 2009-02-10 Bruno Haible <bruno@clisp.org>
10061 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
10063 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
10064 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
10065 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
10067 2009-02-10 Simon Josefsson <simon@josefsson.org>
10069 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
10070 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
10072 2009-02-10 Bruno Haible <bruno@clisp.org>
10074 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
10075 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
10076 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
10077 * lib/unilbrk/u8-possible-linebreaks.c: Update.
10078 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
10079 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
10081 2009-02-09 Simon Josefsson <simon@josefsson.org>
10083 * lib/sockets.h (gl_fd_to_handle): New function.
10085 * tests/test-sockets.c: Call gl_fd_to_handle.
10087 2009-02-09 Bruno Haible <bruno@clisp.org>
10089 * doc/havelib.texi: Document the conventions on bi-arch systems.
10091 2009-02-08 Bruno Haible <bruno@clisp.org>
10093 Document the AC_LIB_LINKFLAGS macro.
10094 * doc/havelib.texi: New file, mostly written on 2005-05-24.
10095 * doc/gnulib.texi: Include it.
10097 2009-02-08 Bruno Haible <bruno@clisp.org>
10099 Fix wrong order of sections, compared to TOC.
10100 * doc/gnulib.texi: Include relocatable-maint.texi after the
10101 "Regular expressions" node, not before.
10103 2009-02-08 Bruno Haible <bruno@clisp.org>
10105 Tests for module 'unicase/totitle'.
10106 * modules/unicase/totitle-tests: New file.
10108 Tests for module 'unicase/tolower'.
10109 * modules/unicase/tolower-tests: New file.
10111 Tests for module 'unicase/toupper'.
10112 * modules/unicase/toupper-tests: New file.
10113 * tests/unicase/test-mapping-part1.h: New file.
10114 * tests/unicase/test-mapping-part2.h: New file.
10116 New module 'unicase/totitle'.
10117 * modules/unicase/totitle: New file.
10118 * lib/unicase/totitle.c: New file.
10120 New module 'unicase/tolower'.
10121 * modules/unicase/tolower: New file.
10122 * lib/unicase/tolower.c: New file.
10124 New module 'unicase/toupper'.
10125 * modules/unicase/toupper: New file.
10126 * lib/unicase/toupper.c: New file.
10127 * lib/unicase/simple-mapping.h: New file.
10129 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
10130 (mapping_table): New structure.
10131 (output_simple_mapping): New function.
10132 (main): Invoke output_simple_mapping_test and output_simple_mapping.
10133 * modules/gen-uni-tables (Description): Update.
10134 * lib/unicase/toupper.h: New file, automatically generated by
10136 * lib/unicase/tolower.h: New file, automatically generated by
10138 * lib/unicase/totitle.h: New file, automatically generated by
10140 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
10142 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
10144 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
10147 New module 'unicase/base'.
10148 * modules/unicase/base: New file.
10149 * lib/unicase.h: New file.
10151 2009-02-08 Bruno Haible <bruno@clisp.org>
10153 New module 'uniwbrk/ulc-wordbreaks'.
10154 * modules/uniwbrk/ulc-wordbreaks: New file.
10155 * lib/uniwbrk/ulc-wordbreaks.c: New file.
10157 New module 'uniwbrk/u32-wordbreaks'.
10158 * modules/uniwbrk/u32-wordbreaks: New file.
10159 * lib/uniwbrk/u32-wordbreaks.c: New file.
10161 New module 'uniwbrk/u16-wordbreaks'.
10162 * modules/uniwbrk/u16-wordbreaks: New file.
10163 * lib/uniwbrk/u16-wordbreaks.c: New file.
10165 New module 'uniwbrk/u8-wordbreaks'.
10166 * modules/uniwbrk/u8-wordbreaks: New file.
10167 * lib/uniwbrk/u8-wordbreaks.c: New file.
10168 * lib/uniwbrk/u-wordbreaks.h: New file.
10170 New module 'uniwbrk/table'.
10171 * modules/uniwbrk/table: New file.
10172 * lib/uniwbrk/wbrktable.h: New file.
10173 * lib/uniwbrk/wbrktable.c: New file.
10175 New module 'uniwbrk/wordbreak-property'.
10176 * modules/uniwbrk/wordbreak-property: New file.
10177 * lib/uniwbrk/wordbreak-property.c: New file.
10179 * lib/gen-uni-tables.c (WBP_*): New enum items.
10180 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
10181 (unicode_org_wbp): New variable.
10182 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
10184 (wbp_table): New structure.
10185 (output_wbp, output_wbrk_tables): New functions.
10186 (main): Accept additional argument. Invoke fill_org_wbp,
10187 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
10188 output_wbrk_tables.
10189 * modules/gen-uni-tables (Description): Update.
10190 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
10193 New module 'uniwbrk/base'.
10194 * modules/uniwbrk/base: New file.
10195 * lib/uniwbrk.h: New file.
10197 2009-02-08 Bruno Haible <bruno@clisp.org>
10199 Update to Unicode 5.1.0.
10200 * lib/gen-uni-tables.c (is_property_alphabetic): Include
10202 (is_property_default_ignorable_code_point): Don't include characters
10203 of category Cc or Cs and not-a-characters.
10204 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
10205 U+0D79, U+109E, U+109F, U+A60C.
10206 * lib/unictype/bidi_of.h: Regenerated.
10207 * lib/unictype/blocks.h: Regenerated.
10208 * lib/unictype/categ_C.h: Regenerated.
10209 * lib/unictype/categ_Cf.h: Regenerated.
10210 * lib/unictype/categ_Cn.h: Regenerated.
10211 * lib/unictype/categ_L.h: Regenerated.
10212 * lib/unictype/categ_Ll.h: Regenerated.
10213 * lib/unictype/categ_Lm.h: Regenerated.
10214 * lib/unictype/categ_Lo.h: Regenerated.
10215 * lib/unictype/categ_Lu.h: Regenerated.
10216 * lib/unictype/categ_M.h: Regenerated.
10217 * lib/unictype/categ_Mc.h: Regenerated.
10218 * lib/unictype/categ_Me.h: Regenerated.
10219 * lib/unictype/categ_Mn.h: Regenerated.
10220 * lib/unictype/categ_N.h: Regenerated.
10221 * lib/unictype/categ_Nd.h: Regenerated.
10222 * lib/unictype/categ_Nl.h: Regenerated.
10223 * lib/unictype/categ_No.h: Regenerated.
10224 * lib/unictype/categ_P.h: Regenerated.
10225 * lib/unictype/categ_Pd.h: Regenerated.
10226 * lib/unictype/categ_Pe.h: Regenerated.
10227 * lib/unictype/categ_Pf.h: Regenerated.
10228 * lib/unictype/categ_Pi.h: Regenerated.
10229 * lib/unictype/categ_Po.h: Regenerated.
10230 * lib/unictype/categ_Ps.h: Regenerated.
10231 * lib/unictype/categ_S.h: Regenerated.
10232 * lib/unictype/categ_Sk.h: Regenerated.
10233 * lib/unictype/categ_Sm.h: Regenerated.
10234 * lib/unictype/categ_So.h: Regenerated.
10235 * lib/unictype/categ_of.h: Regenerated.
10236 * lib/unictype/combining.h: Regenerated.
10237 * lib/unictype/ctype_alnum.h: Regenerated.
10238 * lib/unictype/ctype_alpha.h: Regenerated.
10239 * lib/unictype/ctype_graph.h: Regenerated.
10240 * lib/unictype/ctype_lower.h: Regenerated.
10241 * lib/unictype/ctype_print.h: Regenerated.
10242 * lib/unictype/ctype_punct.h: Regenerated.
10243 * lib/unictype/ctype_upper.h: Regenerated.
10244 * lib/unictype/decdigit.h: Regenerated.
10245 * lib/unictype/digit.h: Regenerated.
10246 * lib/unictype/mirror.h: Regenerated.
10247 * lib/unictype/numeric.h: Regenerated.
10248 * lib/unictype/pr_alphabetic.h: Regenerated.
10249 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
10250 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
10251 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
10252 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
10253 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
10254 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
10255 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
10256 * lib/unictype/pr_combining.h: Regenerated.
10257 * lib/unictype/pr_dash.h: Regenerated.
10258 * lib/unictype/pr_decimal_digit.h: Regenerated.
10259 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
10260 * lib/unictype/pr_deprecated.h: Regenerated.
10261 * lib/unictype/pr_diacritic.h: Regenerated.
10262 * lib/unictype/pr_extender.h: Regenerated.
10263 * lib/unictype/pr_format_control.h: Regenerated.
10264 * lib/unictype/pr_grapheme_base.h: Regenerated.
10265 * lib/unictype/pr_grapheme_extend.h: Regenerated.
10266 * lib/unictype/pr_grapheme_link.h: Regenerated.
10267 * lib/unictype/pr_id_continue.h: Regenerated.
10268 * lib/unictype/pr_id_start.h: Regenerated.
10269 * lib/unictype/pr_ideographic.h: Regenerated.
10270 * lib/unictype/pr_ignorable_control.h: Regenerated.
10271 * lib/unictype/pr_lowercase.h: Regenerated.
10272 * lib/unictype/pr_math.h: Regenerated.
10273 * lib/unictype/pr_numeric.h: Regenerated.
10274 * lib/unictype/pr_other_alphabetic.h: Regenerated.
10275 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
10276 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
10277 * lib/unictype/pr_other_id_continue.h: Regenerated.
10278 * lib/unictype/pr_other_lowercase.h: Regenerated.
10279 * lib/unictype/pr_other_math.h: Regenerated.
10280 * lib/unictype/pr_punctuation.h: Regenerated.
10281 * lib/unictype/pr_sentence_terminal.h: Regenerated.
10282 * lib/unictype/pr_soft_dotted.h: Regenerated.
10283 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
10284 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
10285 * lib/unictype/pr_unified_ideograph.h: Regenerated.
10286 * lib/unictype/pr_uppercase.h: Regenerated.
10287 * lib/unictype/pr_xid_continue.h: Regenerated.
10288 * lib/unictype/pr_xid_start.h: Regenerated.
10289 * lib/unictype/pr_zero_width.h: Regenerated.
10290 * lib/unictype/scripts.h: Regenerated.
10291 * lib/unictype/scripts_byname.gperf: Regenerated.
10292 * lib/unictype/sy_java_ident.h: Regenerated.
10293 * lib/unilbrk/lbrkprop1.h: Regenerated.
10294 * lib/unilbrk/lbrkprop2.h: Regenerated.
10295 * tests/unictype/test-categ_C.c: Regenerated.
10296 * tests/unictype/test-categ_Cf.c: Regenerated.
10297 * tests/unictype/test-categ_Cn.c: Regenerated.
10298 * tests/unictype/test-categ_L.c: Regenerated.
10299 * tests/unictype/test-categ_Ll.c: Regenerated.
10300 * tests/unictype/test-categ_Lm.c: Regenerated.
10301 * tests/unictype/test-categ_Lo.c: Regenerated.
10302 * tests/unictype/test-categ_Lu.c: Regenerated.
10303 * tests/unictype/test-categ_M.c: Regenerated.
10304 * tests/unictype/test-categ_Mc.c: Regenerated.
10305 * tests/unictype/test-categ_Me.c: Regenerated.
10306 * tests/unictype/test-categ_Mn.c: Regenerated.
10307 * tests/unictype/test-categ_N.c: Regenerated.
10308 * tests/unictype/test-categ_Nd.c: Regenerated.
10309 * tests/unictype/test-categ_Nl.c: Regenerated.
10310 * tests/unictype/test-categ_No.c: Regenerated.
10311 * tests/unictype/test-categ_P.c: Regenerated.
10312 * tests/unictype/test-categ_Pd.c: Regenerated.
10313 * tests/unictype/test-categ_Pe.c: Regenerated.
10314 * tests/unictype/test-categ_Pf.c: Regenerated.
10315 * tests/unictype/test-categ_Pi.c: Regenerated.
10316 * tests/unictype/test-categ_Po.c: Regenerated.
10317 * tests/unictype/test-categ_Ps.c: Regenerated.
10318 * tests/unictype/test-categ_S.c: Regenerated.
10319 * tests/unictype/test-categ_Sk.c: Regenerated.
10320 * tests/unictype/test-categ_Sm.c: Regenerated.
10321 * tests/unictype/test-categ_So.c: Regenerated.
10322 * tests/unictype/test-ctype_alnum.c: Regenerated.
10323 * tests/unictype/test-ctype_alpha.c: Regenerated.
10324 * tests/unictype/test-ctype_graph.c: Regenerated.
10325 * tests/unictype/test-ctype_lower.c: Regenerated.
10326 * tests/unictype/test-ctype_print.c: Regenerated.
10327 * tests/unictype/test-ctype_punct.c: Regenerated.
10328 * tests/unictype/test-ctype_upper.c: Regenerated.
10329 * tests/unictype/test-decdigit.h: Regenerated.
10330 * tests/unictype/test-digit.h: Regenerated.
10331 * tests/unictype/test-numeric.h: Regenerated.
10332 * tests/unictype/test-pr_alphabetic.c: Regenerated.
10333 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
10334 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
10335 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
10336 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
10337 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
10338 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
10339 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
10340 * tests/unictype/test-pr_combining.c: Regenerated.
10341 * tests/unictype/test-pr_dash.c: Regenerated.
10342 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
10343 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
10344 * tests/unictype/test-pr_deprecated.c: Regenerated.
10345 * tests/unictype/test-pr_diacritic.c: Regenerated.
10346 * tests/unictype/test-pr_extender.c: Regenerated.
10347 * tests/unictype/test-pr_format_control.c: Regenerated.
10348 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
10349 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
10350 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
10351 * tests/unictype/test-pr_id_continue.c: Regenerated.
10352 * tests/unictype/test-pr_id_start.c: Regenerated.
10353 * tests/unictype/test-pr_ideographic.c: Regenerated.
10354 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
10355 * tests/unictype/test-pr_lowercase.c: Regenerated.
10356 * tests/unictype/test-pr_math.c: Regenerated.
10357 * tests/unictype/test-pr_numeric.c: Regenerated.
10358 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
10359 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
10361 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
10362 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
10363 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
10364 * tests/unictype/test-pr_other_math.c: Regenerated.
10365 * tests/unictype/test-pr_punctuation.c: Regenerated.
10366 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
10367 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
10368 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
10369 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
10370 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
10371 * tests/unictype/test-pr_uppercase.c: Regenerated.
10372 * tests/unictype/test-pr_xid_continue.c: Regenerated.
10373 * tests/unictype/test-pr_xid_start.c: Regenerated.
10374 * tests/unictype/test-pr_zero_width.c: Regenerated.
10376 Update to Unicode 5.1.0.
10377 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
10378 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
10379 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
10380 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
10381 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
10382 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
10383 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
10384 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
10385 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
10386 (nonspacing_table_ind): Update.
10387 * tests/uniwidth/test-uc_width2.sh: Update expected result.
10389 Update to Unicode 5.1.0.
10390 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
10392 * lib/uniname/uniname.c (unicode_character_name,
10393 unicode_name_character): Add the range 0x1Fxxx to the code transform.
10394 * lib/uniname/uninames.h: Regenerated.
10395 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
10397 2009-02-07 Bruno Haible <bruno@clisp.org>
10399 Merge gen-ctype and gen-lbrk into a single program.
10400 * lib/gen-uni-tables.c: New file, incorporating
10401 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
10402 Add directory prefixes to the names of the generated files.
10403 * lib/unictype/gen-ctype.c: Remove file.
10404 * lib/unilbrk/gen-lbrk.c: Remove file.
10405 * modules/gen-uni-tables: New file.
10406 * modules/unictype/gen-ctype: Remove file.
10407 * modules/unilbrk/gen-lbrk: Remove file.
10409 2009-02-07 Bruno Haible <bruno@clisp.org>
10411 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
10413 New module 'unistr/u32-strcoll'.
10414 * modules/unistr/u32-strcoll: New file.
10415 * lib/unistr/u32-strcoll.c: New file.
10417 New module 'unistr/u16-strcoll'.
10418 * modules/unistr/u16-strcoll: New file.
10419 * lib/unistr/u16-strcoll.c: New file.
10421 New module 'unistr/u8-strcoll'.
10422 * modules/unistr/u8-strcoll: New file.
10423 * lib/unistr/u8-strcoll.c: New file.
10424 * lib/unistr/u-strcoll.h: New file.
10426 2009-02-07 Bruno Haible <bruno@clisp.org>
10428 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
10429 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10430 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10431 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
10432 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
10433 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
10435 2009-02-07 Bruno Haible <bruno@clisp.org>
10438 * lib/unictype/gen-ctype.c (output_predicate, output_category,
10439 output_combclass, output_bidi_category, output_decimal_digit,
10440 output_digit, output_numeric, output_mirror, output_scripts,
10441 output_ident_category): Use proper width specifier in format strings.
10443 2009-02-07 Bruno Haible <bruno@clisp.org>
10445 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
10448 2009-02-07 Jim Meyering <meyering@redhat.com>
10450 regex: avoid compilation failure with upcoming gcc-4.4
10451 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
10452 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
10453 "... error: integer overflow in preprocessor expression".
10455 2009-02-05 Ben Pfaff <blp@gnu.org>
10457 Fix link errors on Windows when close module is used.
10458 * modules/close: Add $(LIB_CLOSE) to Link section.
10459 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
10460 $(LIB_CLOSE) on Windows.
10462 2009-02-05 Jim Meyering <meyering@redhat.com>
10464 still avoid unused-parameter warnings, but do it cleanly
10465 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
10466 (get_fs_usage): Cast to void instead.
10467 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
10468 (dev_from_mount_options, read_file_system_list): Cast to void.
10469 Prompted by Bruno Haible.
10471 2009-02-04 Jim Meyering <meyering@redhat.com>
10473 fsusage.c: correct copyright year
10474 * lib/fsusage.c: Reflect year in which the change is pushed into
10476 avoid misc. warnings
10477 * lib/fsusage.c (UNUSED_PARAM): Define.
10478 (get_fs_usage): Mark parameter "disk" as unused.
10479 * lib/getugroups.c (getgrent): Use "void" in prototype.
10480 * lib/mountlist.c: Mark unused parameters.
10481 (read_file_system_list): Declare a local with "const".
10482 * lib/nanosleep.c (getnow): Declare static.
10483 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
10485 dirfd: set errno upon failure
10486 * lib/dirfd.c: Include <errno.h>.
10487 Set errno to ENOTSUP when returning -1.
10488 * modules/dirfd (Depends-on): Add errno.
10489 Suggested by John Kodis <kodis@comcast.net>.
10491 2009-02-01 Bruno Haible <bruno@clisp.org>
10493 Don't assume sizeof (long) >= sizeof (void *).
10494 * lib/memcmp.c: Include stdint.h.
10495 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
10496 srcp2 to 'const byte *'.
10497 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
10498 types to uintptr_t.
10499 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
10500 * modules/memcmp (Depends-on): Add stdint.
10501 Reported by Ozkan Sezer <sezeroz@gmail.com>.
10503 2009-01-30 Eric Blake <ebb9@byu.net>
10505 fix more require-before-expand issues
10506 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
10507 expand, AC_PROG_AWK.
10508 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
10510 2009-01-28 Eric Blake <ebb9@byu.net>
10512 version-etc: use consistent URL formatting
10513 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
10514 Improve formatting. Use fputs for string without %.
10516 2009-01-28 Jim Meyering <meyering@redhat.com>
10518 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
10519 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
10520 "underquoted definition of NAME" from autoconf-2.59.
10522 2009-01-28 Bruno Haible <bruno@clisp.org>
10524 * doc/gnulib.texi: Add "Obsolete modules" to index.
10526 2009-01-28 Jim Meyering <meyering@redhat.com>
10528 useless-if-before-free: recognize more variants
10529 * build-aux/useless-if-before-free: Also recognize e.g.,
10530 if (NULL != p) free (p);
10532 2009-01-27 Mark McLoughlin <markmc@redhat.com>
10534 test-getaddrinfo: skip (don't fail) this test when there's no network
10535 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
10536 on the presumption that it means you lack network access.
10538 2009-01-26 Jim Meyering <meyering@redhat.com>
10540 fflush: avoid warnings on modern systems
10541 * lib/fflush.c (rpl_fflush): Move declarations of locals,
10542 pos and result, into scopes where they're used.
10544 2009-01-26 Eric Blake <ebb9@byu.net>
10546 Silence warning reintroduced by recent extensions patch.
10547 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
10548 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
10551 Backport improved autoconf semantics of AC_DEFUN_ONCE.
10552 * m4/00gnulib.m4: New file.
10553 * gnulib-tool (func_get_filelist): Always use it.
10554 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
10555 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
10557 2009-01-25 Bruno Haible <bruno@clisp.org>
10559 Make test-quotearg work on MacOS X and AIX.
10560 * tests/test-quotearg.sh: New file.
10561 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
10562 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
10563 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
10564 include <libintl.h>.
10565 (fake_locale): Remove variable.
10566 (gettext, dgettext, dcgettext): Remove functions.
10567 (main): Instead of setting a fake locale, set a real locale. Call
10568 textdomain and bindtextdomain.
10569 * modules/quotearg-tests (Files): Add the new files.
10570 (Depends-on): Add gettext, setenv, unsetenv.
10571 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
10572 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
10573 Augment TESTS_ENVIRONMENT.
10575 2009-01-25 Bruno Haible <bruno@clisp.org>
10577 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
10578 fr_FR.ISO8859-1 locale on MacOS X.
10579 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
10580 ja_JP.eucJP locale on MacOS X.
10581 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
10582 zh_CN.GB18030 locale on MacOS X.
10584 2009-01-25 Bruno Haible <bruno@clisp.org>
10586 Avoid link errors on MacOS X 10.3.
10587 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
10588 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10590 2009-01-25 Bruno Haible <bruno@clisp.org>
10592 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10593 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
10594 * modules/pipe (Files): Remove m4/posix_spawn.m4.
10595 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10596 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
10597 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10598 posix_spawnattr_init, posix_spawnattr_setsigmask,
10599 posix_spawnattr_setflags, posix_spawnattr_destroy.
10601 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10602 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
10603 * modules/execute (Files): Remove m4/posix_spawn.m4.
10604 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10605 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10606 posix_spawnattr_init, posix_spawnattr_setsigmask,
10607 posix_spawnattr_setflags, posix_spawnattr_destroy.
10609 2009-01-25 Bruno Haible <bruno@clisp.org>
10611 * lib/glthread/threadlib.c: Include <stdlib.h>.
10613 2009-01-25 Bruno Haible <bruno@clisp.org>
10615 * lib/glthread/threadlib.c (dummy): New declaration.
10617 2009-01-25 Bruno Haible <bruno@clisp.org>
10619 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
10620 multibyte characters also for the GB18030 encoding. Don't crash when
10621 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
10623 2009-01-25 Bruno Haible <bruno@clisp.org>
10625 Avoid redefining 'struct random_data' on OSF/1 5.1.
10626 * lib/stdlib.in.h: Include <random.h> if it exists.
10627 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
10628 HAVE_RANDOM_H. Include <random.h> when testing whether
10629 'struct random_data' exists.
10630 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
10632 2009-01-25 Bruno Haible <bruno@clisp.org>
10634 Don't install charset.alias on MacOS X >= 10.3.
10635 * lib/localcharset.c (DARWIN7): New macro.
10636 (get_charset_aliases): Hardcode the result for Darwin7.
10637 * modules/localcharset (install-exec-local): Don't install
10638 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
10640 2009-01-25 Bruno Haible <bruno@clisp.org>
10642 Don't install charset.alias on mingw and Cygwin.
10643 * modules/localcharset (install-exec-local): Don't install
10644 charset.alias on mingw and Cygwin, if the file does not yet exist.
10645 The result for these platforms is hardcoded in localcharset.c.
10647 2009-01-25 Bruno Haible <bruno@clisp.org>
10649 Make it possible again to use AC_GNU_SOURCE together with gnulib.
10650 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
10651 before requiring AC_USE_SYSTEM_EXTENSIONS.
10653 2009-01-25 Jim Meyering <meyering@redhat.com>
10655 c-strtod: avoid warnings
10656 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
10657 "assignment discards qualifiers from pointer target type" warnings.
10659 2009-01-24 Bruno Haible <bruno@clisp.org>
10661 Add support for non-UTF-8 locales on MacOS X.
10662 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
10663 canonical encodings. For Darwin 7 and newer, don't map traditional
10664 encodings to UTF-8.
10665 Reported by Vincent Lefevre <vincent@vinc17.org>
10666 at <http://savannah.gnu.org/bugs/?25235>.
10668 2009-01-24 Bruno Haible <bruno@clisp.org>
10670 * doc/gnulib.texi (Obsolete modules): New section.
10671 Reported by Mike Frysinger <vapier@gentoo.org>.
10673 2009-01-24 Bruno Haible <bruno@clisp.org>
10675 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
10678 2009-01-24 Bruno Haible <bruno@clisp.org>
10680 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
10681 Reported by Eric Blake.
10683 2009-01-24 Bruno Haible <bruno@clisp.org>
10685 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
10686 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
10687 Reported by Gary V. Vaughan <gary@gnu.org>.
10689 2009-01-24 Bruno Haible <bruno@clisp.org>
10691 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
10693 2009-01-23 Bruno Haible <bruno@clisp.org>
10695 Make c-strtod, c-strtold usable in libraries.
10696 * lib/c-strtod.c: Include string.h instead of xalloc.h.
10697 (C_STRTOD): Call strdup instead of xstrdup.
10698 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
10699 * modules/c-strtold (Depends-on): Likewise.
10700 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
10701 * NEWS: Mention the change.
10702 Reported by Michael Gold <mgold@ncf.ca>.
10704 2009-01-23 Jim Meyering <meyering@redhat.com>
10706 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
10707 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
10708 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
10710 2009-01-23 Simon Josefsson <simon@josefsson.org>
10712 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
10714 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
10715 * modules/version-etc (Description): Update.
10717 2009-01-22 Bruno Haible <bruno@clisp.org>
10719 Cache the C locale object.
10720 * lib/c-strtod.c (c_locale_cache): New variable.
10721 (c_locale): New function.
10722 (C_STRTOD): Use it, and don't call freelocale.
10723 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
10724 Suggested by Paolo Bonzini.
10726 2009-01-21 Bruno Haible <bruno@clisp.org>
10728 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
10729 conditions other than overflow.
10731 2009-01-21 Bruno Haible <bruno@clisp.org>
10733 * lib/c-strtod.c: Include errno.h.
10734 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
10735 value from STRTOD_L and STRTOD.
10737 2009-01-21 Bruno Haible <bruno@clisp.org>
10738 and Jim Meyering <meyering@redhat.com>
10740 nanosleep: skip configure test (fail it) for apple universal builds
10741 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
10742 universal builds, assume that nanosleep does not work.
10743 * modules/nanosleep (Depends-on): Add multiarch.
10745 mktime: skip configure test (fail it) for apple universal builds
10746 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
10747 universal builds, assume that mktime does not work.
10748 * modules/mktime (Depends-on): Add multiarch.
10750 2009-01-21 Eric Blake <ebb9@byu.net>
10752 multiarch: avoid expand-before-require warning
10753 * modules/multiarch (configure.ac): Require, rather than expand,
10755 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
10756 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
10757 enforce that all clients require it. Partial reversion of
10760 error: avoid expand-before-require warning
10761 * modules/errno (configure.ac): Require, rather than expand,
10763 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
10764 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
10765 enforce that all clients require it.
10767 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
10768 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
10769 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
10770 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
10772 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
10775 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
10777 regex: do not depend on obsolete modules.
10778 * modules/regex: Remove memcmp and memmove.
10780 2009-01-20 Bruno Haible <bruno@clisp.org>
10782 Make the 'link' module link on Windows NT 4.
10783 * lib/link.c (_WIN32_WINNT): Don't define.
10784 (CreateHardLinkFuncType): New type.
10785 (CreateHardLinkFunc, initialized): New variables.
10786 (initialize): New function.
10787 (link): Invoke CreateHardLink indirectly through the function pointer.
10789 2009-01-20 Bruno Haible <bruno@clisp.org>
10791 Fix compilation failure on mingw.
10792 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
10794 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
10796 * doc/c-strtod.texi: Mention a couple of restrictions.
10798 2009-01-20 Jim Meyering <meyering@redhat.com>
10800 gettimeofday: move more declarations out of functions
10801 * lib/gettimeofday.c: Move extern declarations of tzset and
10802 gmtime out of containing functions. Prompted by Bruno Haible.
10804 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
10806 regex: do not depend on obsolete modules.
10807 * modules/regex: Remove memcmp and memmove.
10809 2009-01-19 Bruno Haible <bruno@clisp.org>
10811 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
10812 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
10813 gl_BIGENDIAN, not AC_C_BIGENDIAN.
10814 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
10815 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
10817 2009-01-19 Bruno Haible <bruno@clisp.org>
10819 * tests/test-link.c: Include <errno.h>.
10820 (main): Exit with code 77 when a hard link cannot be created due to
10822 * tests/test-link.sh: Skip test when a hard link cannot be created due
10823 to the file system.
10824 Suggested by Eric Blake.
10826 2009-01-19 Martin Lambers <marlam@marlam.de>
10828 * modules/link-tests: New file.
10829 * tests/test-link.sh: New file.
10830 * tests/test-link.c: New file.
10832 2009-01-19 Eric Blake <ebb9@byu.net>
10834 doc: mention another function added in cygwin 1.7.0
10835 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
10836 Another new function in cygwin 1.7.
10838 2009-01-19 Bruno Haible <bruno@clisp.org>
10840 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
10841 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
10842 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
10843 gl_BIGENDIAN, not AC_C_BIGENDIAN.
10844 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
10845 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
10846 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
10847 * m4/md4.m4 (gl_MD4): Likewise.
10848 * m4/md5.m4 (gl_MD5): Likewise.
10849 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
10850 * m4/sha1.m4 (gl_SHA1): Likewise.
10851 * m4/sha256.m4 (gl_SHA256): Likewise.
10852 * m4/sha512.m4 (gl_SHA512): Likewise.
10854 2009-01-19 Bruno Haible <bruno@clisp.org>
10856 * modules/uniname/uniname-tests (Depends-on): Add progname.
10857 * tests/uniname/test-uninames.c: Include progname.h.
10858 (main): Call set_program_name.
10860 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
10861 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
10862 (main): Call set_program_name.
10864 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
10865 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
10866 (main): Call set_program_name.
10868 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
10869 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
10870 (main): Call set_program_name.
10872 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
10873 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
10874 (main): Call set_program_name.
10876 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
10877 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
10878 (main): Call set_program_name.
10880 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
10881 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
10882 (main): Call set_program_name.
10884 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
10885 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
10886 (main): Call set_program_name.
10888 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
10889 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
10890 (main): Call set_program_name.
10892 2009-01-19 Eric Blake <ebb9@byu.net>
10894 test-unistd: test previous patch
10895 * tests/test-unistd.c: Test *_FILENO macros.
10897 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
10898 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
10899 Guarantee a definition.
10900 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
10901 * modules/unistd-safer (Depends-on): Add dependency on unistd.
10902 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
10903 * lib/dup-safer.c (STDERR_FILENO): Likewise.
10904 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
10906 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
10907 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
10908 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
10910 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
10911 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
10912 (STDERR_FILENO): Likewise.
10913 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
10914 (STDERR_FILENO): Likewise.
10915 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
10916 (STDERR_FILENO): Likewise.
10917 Reported by Elbert Pol.
10919 2009-01-19 Eric Blake <ebb9@byu.net>
10921 doc: mention more functions added in cygwin 1.7.0
10922 * doc/posix-functions/abort.texi (abort): Update wording related
10924 * doc/posix-functions/daylight.texi (daylight): Likewise.
10925 * doc/posix-functions/optarg.texi (optarg): Likewise.
10926 * doc/posix-functions/optarg.texi (opterr): Likewise.
10927 * doc/posix-functions/optarg.texi (optind): Likewise.
10928 * doc/posix-functions/optarg.texi (optopt): Likewise.
10929 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
10930 worked in 1.5.x, and was withdrawn in 1.7.
10931 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
10932 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
10934 * doc/posix-functions/perror.texi (perror): Likewise.
10935 * doc/posix-functions/printf.texi (printf): Likewise.
10936 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
10937 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
10938 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
10939 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
10940 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
10941 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
10942 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
10944 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
10946 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
10948 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
10949 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
10951 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
10952 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
10953 * doc/posix-functions/confstr.texi (confstr): Likewise.
10954 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
10955 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
10956 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
10957 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
10958 * doc/posix-functions/fputws.texi (fputws): Likewise.
10959 * doc/posix-functions/fwide.texi (fwide): Likewise.
10960 * doc/posix-functions/getwc.texi (getwc): Likewise.
10961 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
10962 * doc/posix-functions/putwc.texi (putwc): Likewise.
10963 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
10964 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
10965 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
10966 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
10967 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
10968 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
10969 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
10970 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
10971 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
10972 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
10973 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
10975 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
10977 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
10978 * lib/ioctl.c: Include <sys/ioctl.h>.
10980 2009-01-19 Simon Josefsson <simon@josefsson.org>
10982 * modules/getdate-tests (Depends-on): Add progname.
10983 * tests/test-getdate.c: Use progname module, to avoid link errors
10984 on non-glibc systems.
10986 2009-01-18 Simon Josefsson <simon@josefsson.org>
10988 * modules/filenamecat-tests (Depends-on): Add progname.
10989 * modules/fstrcmp-tests (Depends-on): Likewise.
10991 * tests/test-filenamecat.c: Use progname module, to avoid link
10992 errors on non-glibc systems.
10993 * tests/test-fstrcmp.c: Likewise.
10995 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
10997 gettimeofday: avoid warning: nested extern declaration of 'localtime'
10998 * lib/gettimeofday.c: Move extern declaration out of function.
11000 2009-01-18 Bruno Haible <bruno@clisp.org>
11002 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
11003 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
11004 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
11006 2009-01-18 Bruno Haible <bruno@clisp.org>
11008 * lib/strftime.c (MEMPCPY): Remove unused macro.
11009 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
11011 2009-01-18 Martin Lambers <marlam@marlam.de>
11014 * lib/unistd.in.h (link): New declaration.
11015 * lib/link.c: New file.
11016 * m4/link.m4: New file.
11017 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
11019 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
11020 * modules/link: New file.
11021 * doc/posix-functions/link.texi: Mention the new module.
11023 2009-01-18 Bruno Haible <bruno@clisp.org>
11025 * tests/test-avltree_list.c (main): Call set_program_name.
11026 * tests/test-avltree_oset.c (main): Likewise.
11027 * tests/test-obstack-printf.c: Include progname.h.
11028 (main): Call set_program_name.
11029 * tests/test-quotearg.c: Include progname.h.
11030 (main): Call set_program_name.
11031 * tests/test-xmemdup0.c: Include progname.h.
11032 (main): Call set_program_name.
11034 2009-01-18 Bruno Haible <bruno@clisp.org>
11036 New module 'alphasort'.
11037 * lib/dirent.in.h (alphasort): New declaration.
11038 * lib/alphasort.c: New file, from glibc with modifications.
11039 * m4/alphasort.m4: New file.
11040 * modules/alphasort: New file.
11041 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
11043 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
11045 * doc/posix-functions/alphasort.texi: Mention the new module and the
11046 portability problems.
11048 2009-01-18 Bruno Haible <bruno@clisp.org>
11050 New module 'scandir'.
11051 * lib/dirent.in.h (scandir): New declaration.
11052 * lib/scandir.c: New file, from glibc with modifications.
11053 * m4/scandir.m4: New file.
11054 * modules/scandir: New file.
11055 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
11057 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
11059 * doc/posix-functions/scandir.texi: Mention the new module and the
11060 portability problems.
11062 2009-01-17 Bruno Haible <bruno@clisp.org>
11064 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
11065 Update documentation.
11066 (func_remove_suffix): Escape all dots in the suffix. Update
11068 (func_filter_filelist): Update documentation.
11069 Reported by Ralf Wildenhues.
11071 2009-01-17 Bruno Haible <bruno@clisp.org>
11073 * modules/dprintf-posix-tests: New file.
11074 * tests/test-dprintf-posix.sh: New file.
11075 * tests/test-dprintf-posix.c: New file.
11077 New modules 'dprintf', 'dprintf-posix'.
11078 * lib/stdio.in.h (dprintf): New declaration.
11079 * lib/dprintf.c: New file.
11080 * m4/dprintf.m4: New file.
11081 * m4/dprintf-posix.m4: New file.
11082 * modules/dprintf: New file.
11083 * modules/dprintf-posix: New file.
11084 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
11085 HAVE_DPRINTF, REPLACE_DPRINTF.
11086 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
11087 HAVE_DPRINTF, REPLACE_DPRINTF.
11088 * doc/posix-functions/dprintf.texi: Mention the new modules.
11090 2009-01-17 Bruno Haible <bruno@clisp.org>
11092 * modules/vdprintf-posix-tests: New file.
11093 * tests/test-vdprintf-posix.sh: New file.
11094 * tests/test-vdprintf-posix.c: New file.
11096 New modules 'vdprintf', 'vdprintf-posix'.
11097 * lib/stdio.in.h (vdprintf): New declaration.
11098 * lib/vdprintf.c: New file.
11099 * m4/vdprintf.m4: New file.
11100 * m4/vdprintf-posix.m4: New file.
11101 * modules/vdprintf: New file.
11102 * modules/vdprintf-posix: New file.
11103 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
11104 HAVE_VDPRINTF, REPLACE_VDPRINTF.
11105 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
11106 HAVE_VDPRINTF, REPLACE_VDPRINTF.
11107 * doc/posix-functions/vdprintf.texi: Mention the new modules.
11109 2009-01-17 Bruno Haible <bruno@clisp.org>
11111 Fix replacement of fopen on mingw.
11112 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
11115 2009-01-17 Bruno Haible <bruno@clisp.org>
11117 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
11118 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
11120 2009-01-17 Bruno Haible <bruno@clisp.org>
11122 Avoid test-fflush2.sh failure on mingw.
11123 * tests/test-fflush2.c: Include binary-io.h.
11124 (main): Put standard input into binary mode.
11125 * modules/fflush-tests (Depends-on): Add binary-io.
11127 2009-01-17 Bruno Haible <bruno@clisp.org>
11129 * lib/wchar.in.h: In another particular situation, include only the
11130 system's <wchar.h> file.
11131 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
11132 Reported by Albert Chin-A-Young <china@thewrittenword.com>
11133 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
11135 2009-01-17 Bruno Haible <bruno@clisp.org>
11137 Support for stripping executables in --enable-relocatable.
11138 * build-aux/install-reloc: Expect one more argument, or an environment
11139 variable RELOC_STRIP_PROG. If set, strip the destination program and
11141 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
11143 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
11144 to set RELOCATABLE_STRIP.
11145 * NEWS: Mention the new Makefile requirement.
11147 2009-01-17 Bruno Haible <bruno@clisp.org>
11149 * build-aux/install-reloc: Remove debugging information left over by
11150 C compiler on MacOS X.
11152 2009-01-17 Bruno Haible <bruno@clisp.org>
11154 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
11155 * lib/progreloc.c (find_executable): Fix type of pointer passed to
11156 _NSGetExecutablePath.
11158 2009-01-16 Jim Meyering <meyering@redhat.com>
11160 strerror: avoid warnings about discarding "const"
11161 * lib/strerror.c (rpl_strerror): Instead of returning a const
11162 string from each and every "case", use a variable, and add a single
11163 cast after the switch.
11165 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
11167 * lib/arpa_inet.in.h: Add extern "C" block for C++.
11169 2009-01-16 Bruno Haible <bruno@clisp.org>
11171 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
11172 array initializer syntax that also works in C++ mode.
11173 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11175 2009-01-16 Jim Meyering <meyering@redhat.com>
11177 poll: suppress a warning
11178 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
11179 to ignore "...unsigned expression < 0 is always false" warnings.
11181 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
11183 poll: remove declarations of unused variables
11184 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
11185 sockbuf and optlen.
11187 2009-01-15 Bruno Haible <bruno@clisp.org>
11189 Make fflush-after-ungetc POSIX compliant on BSD systems.
11190 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
11191 (clear_ungetc_buffer): Implement also for other systems.
11192 (rpl_fflush): On glibc systems, invoke
11193 clear_ungetc_buffer_preserving_position. Otherwise, invoke
11194 clear_ungetc_buffer after fetching the stream's position, not before.
11196 2009-01-15 Bruno Haible <bruno@clisp.org>
11198 Make fflush-after-ungetc POSIX compliant on glibc systems.
11199 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
11201 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
11202 (rpl_fflush): On glibc systems, simply call the system's fflush
11203 function after clearing the ungetc buffer.
11204 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
11205 Instead, lseek only to the end of file, then use the system's fseeko
11206 for the rest. On glibc systems, reset the EOF indicator bit.
11208 2009-01-15 Jim Meyering <meyering@redhat.com>
11210 openmp.m4: revert quote-adding change, for portability to older autoconf
11211 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
11212 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
11213 Simon Josefsson noticed the problem when using autoconf-2.61.
11215 2009-01-15 Bruno Haible <bruno@clisp.org>
11217 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
11218 * tests/test-fflush2.c (ASSERT): Always fail.
11219 (main): Add two tests for fflush() after ungetc(), taking into account
11220 the Austin Group's clarification.
11221 Suggested by Eric Blake.
11223 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
11225 mktime.m4: remove K&R-style function prototypes
11226 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
11227 for the Sun C++ compiler.
11229 2009-01-14 Bruno Haible <bruno@clisp.org>
11231 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
11232 while including <wchar.h>.
11233 * lib/wchar.in.h: In two particular situations on HP-UX, include only
11234 the system's <wchar.h> file.
11235 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11237 2009-01-14 Bruno Haible <bruno@clisp.org>
11239 * m4/csharp.m4: Don't mention gettext on the serial number line.
11240 * m4/csharpexec.m4: Likewise.
11241 * m4/eaccess.m4: Likewise.
11242 * m4/javaexec.m4: Likewise.
11243 * m4/sig_atomic_t.m4: Likewise.
11244 * m4/tmpdir.m4: Likewise.
11245 * m4/intldir.m4: Bump gettext version.
11246 * m4/lib-ld.m4: Likewise.
11248 2009-01-14 Bruno Haible <bruno@clisp.org>
11250 * lib/progname.c (set_program_name): Add more comments.
11251 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
11253 2009-01-14 Simon Josefsson <simon@josefsson.org>
11255 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
11256 were sys/stat.h does not define it.
11258 2009-01-14 Jim Meyering <meyering@redhat.com>
11260 many *.m4 files: improve m4 quoting
11261 99% of this change was performed by running the following commands:
11262 git ls-files | grep '\.m4$' | xargs perl -pi \
11263 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
11264 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
11265 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
11266 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
11267 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
11268 The remainder were to add Copyright dates, increment serial numbers,
11269 undo some changes in comments, exclude m4/intl.m4, and add quotes
11270 around the "1" in ",1" where the unusual spacing prohibited the
11271 above regexps from doing the job. For more details, see
11272 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
11273 * m4/acl.m4: Modified.
11274 * m4/afs.m4: Likewise.
11275 * m4/alloca.m4: Likewise.
11276 * m4/argp.m4: Likewise.
11277 * m4/argz.m4: Likewise.
11278 * m4/atexit.m4: Likewise.
11279 * m4/bison-i18n.m4: Likewise.
11280 * m4/bison.m4: Likewise.
11281 * m4/byteswap.m4: Likewise.
11282 * m4/c-stack.m4: Likewise.
11283 * m4/c-strtod.m4: Likewise.
11284 * m4/calloc.m4: Likewise.
11285 * m4/canonicalize-lgpl.m4: Likewise.
11286 * m4/chown.m4: Likewise.
11287 * m4/clock_time.m4: Likewise.
11288 * m4/codeset.m4: Likewise.
11289 * m4/copy-file.m4: Likewise.
11290 * m4/csharp.m4: Likewise.
11291 * m4/csharpcomp.m4: Likewise.
11292 * m4/csharpexec.m4: Likewise.
11293 * m4/d-ino.m4: Likewise.
11294 * m4/d-type.m4: Likewise.
11295 * m4/dirfd.m4: Likewise.
11296 * m4/double-slash-root.m4: Likewise.
11297 * m4/eaccess.m4: Likewise.
11298 * m4/eealloc.m4: Likewise.
11299 * m4/environ.m4: Likewise.
11300 * m4/errno_h.m4: Likewise.
11301 * m4/euidaccess.m4: Likewise.
11302 * m4/execute.m4: Likewise.
11303 * m4/fatal-signal.m4: Likewise.
11304 * m4/fchdir.m4: Likewise.
11305 * m4/fcntl_h.m4: Likewise.
11306 * m4/fileblocks.m4: Likewise.
11307 * m4/filenamecat.m4: Likewise.
11308 * m4/findprog.m4: Likewise.
11309 * m4/flexmember.m4: Likewise.
11310 * m4/fnmatch.m4: Likewise.
11311 * m4/fopen.m4: Likewise.
11312 * m4/fpending.m4: Likewise.
11313 * m4/fprintf-posix.m4: Likewise.
11314 * m4/free.m4: Likewise.
11315 * m4/frexp.m4: Likewise.
11316 * m4/frexpl.m4: Likewise.
11317 * m4/fsusage.m4: Likewise.
11318 * m4/ftruncate.m4: Likewise.
11319 * m4/gc-camellia.m4: Likewise.
11320 * m4/gc-random.m4: Likewise.
11321 * m4/gc.m4: Likewise.
11322 * m4/getaddrinfo.m4: Likewise.
11323 * m4/getcwd-abort-bug.m4: Likewise.
11324 * m4/getcwd-path-max.m4: Likewise.
11325 * m4/getdate.m4: Likewise.
11326 * m4/getdomainname.m4: Likewise.
11327 * m4/getgroups.m4: Likewise.
11328 * m4/gethostname.m4: Likewise.
11329 * m4/gethrxtime.m4: Likewise.
11330 * m4/getline.m4: Likewise.
11331 * m4/getloadavg.m4: Likewise.
11332 * m4/getndelim2.m4: Likewise.
11333 * m4/getpass.m4: Likewise.
11334 * m4/gettext.m4: Likewise.
11335 * m4/gettime.m4: Likewise.
11336 * m4/gettimeofday.m4: Likewise.
11337 * m4/gnulib-common.m4: Likewise.
11338 * m4/group-member.m4: Likewise.
11339 * m4/host-os.m4: Likewise.
11340 * m4/iconv.m4: Likewise.
11341 * m4/iconv_open.m4: Likewise.
11342 * m4/inet_ntop.m4: Likewise.
11343 * m4/inet_pton.m4: Likewise.
11344 * m4/inline.m4: Likewise.
11345 * m4/intldir.m4: Likewise.
11346 * m4/intlmacosx.m4: Likewise.
11347 * m4/intmax.m4: Likewise.
11348 * m4/intmax_t.m4: Likewise.
11349 * m4/inttypes.m4: Likewise.
11350 * m4/inttypes_h.m4: Likewise.
11351 * m4/inttypes-pri.m4: Likewise.
11352 * m4/isapipe.m4: Likewise.
11353 * m4/isnand.m4: Likewise.
11354 * m4/isnanf.m4: Likewise.
11355 * m4/isnanl.m4: Likewise.
11356 * m4/javacomp.m4: Likewise.
11357 * m4/javaexec.m4: Likewise.
11358 * m4/jm-winsz1.m4: Likewise.
11359 * m4/jm-winsz2.m4: Likewise.
11360 * m4/lchown.m4: Likewise.
11361 * m4/lcmessage.m4: Likewise.
11362 * m4/ldexpl.m4: Likewise.
11363 * m4/lib-ld.m4: Likewise.
11364 * m4/lib-link.m4: Likewise.
11365 * m4/libsigsegv.m4: Likewise.
11366 * m4/link-follow.m4: Likewise.
11367 * m4/localcharset.m4: Likewise.
11368 * m4/locale-fr.m4: Likewise.
11369 * m4/locale-ja.m4: Likewise.
11370 * m4/locale-tr.m4: Likewise.
11371 * m4/locale-zh.m4: Likewise.
11372 * m4/lock.m4: Likewise.
11373 * m4/longlong.m4: Likewise.
11374 * m4/ls-mntd-fs.m4: Likewise.
11375 * m4/lstat.m4: Likewise.
11376 * m4/malloc.m4: Likewise.
11377 * m4/mathl.m4: Likewise.
11378 * m4/mbrtowc.m4: Likewise.
11379 * m4/mbstate_t.m4: Likewise.
11380 * m4/mbswidth.m4: Likewise.
11381 * m4/memchr.m4: Likewise.
11382 * m4/memcmp.m4: Likewise.
11383 * m4/memcpy.m4: Likewise.
11384 * m4/memmem.m4: Likewise.
11385 * m4/memmove.m4: Likewise.
11386 * m4/mempcpy.m4: Likewise.
11387 * m4/memrchr.m4: Likewise.
11388 * m4/memset.m4: Likewise.
11389 * m4/minmax.m4: Likewise.
11390 * m4/mkdir-slash.m4: Likewise.
11391 * m4/mkdtemp.m4: Likewise.
11392 * m4/mktime.m4: Likewise.
11393 * m4/mmap-anon.m4: Likewise.
11394 * m4/mountlist.m4: Likewise.
11395 * m4/nanosleep.m4: Likewise.
11396 * m4/nls.m4: Likewise.
11397 * m4/nocrash.m4: Likewise.
11398 * m4/open.m4: Likewise.
11399 * m4/openat.m4: Likewise.
11400 * m4/openmp.m4: Likewise.
11401 * m4/pathmax.m4: Likewise.
11402 * m4/perl.m4: Likewise.
11403 * m4/physmem.m4: Likewise.
11404 * m4/pipe.m4: Likewise.
11405 * m4/po.m4: Likewise.
11406 * m4/poll.m4: Likewise.
11407 * m4/posixtm.m4: Likewise.
11408 * m4/posixver.m4: Likewise.
11409 * m4/printf-frexp.m4: Likewise.
11410 * m4/printf-frexpl.m4: Likewise.
11411 * m4/printf-posix.m4: Likewise.
11412 * m4/printf-posix-rpl.m4: Likewise.
11413 * m4/printf.m4: Likewise.
11414 * m4/progtest.m4: Likewise.
11415 * m4/putenv.m4: Likewise.
11416 * m4/readline.m4: Likewise.
11417 * m4/readlink.m4: Likewise.
11418 * m4/readutmp.m4: Likewise.
11419 * m4/realloc.m4: Likewise.
11420 * m4/regex.m4: Likewise.
11421 * m4/relocatable.m4: Likewise.
11422 * m4/relocatable-lib.m4: Likewise.
11423 * m4/rename-dest-slash.m4: Likewise.
11424 * m4/rename.m4: Likewise.
11425 * m4/rmdir-errno.m4: Likewise.
11426 * m4/rmdir.m4: Likewise.
11427 * m4/roundf.m4: Likewise.
11428 * m4/roundl.m4: Likewise.
11429 * m4/rpmatch.m4: Likewise.
11430 * m4/save-cwd.m4: Likewise.
11431 * m4/selinux-selinux-h.m4: Likewise.
11432 * m4/setenv.m4: Likewise.
11433 * m4/settime.m4: Likewise.
11434 * m4/sig2str.m4: Likewise.
11435 * m4/sig_atomic_t.m4: Likewise.
11436 * m4/signalblocking.m4: Likewise.
11437 * m4/signbit.m4: Likewise.
11438 * m4/sigpipe.m4: Likewise.
11439 * m4/sockets.m4: Likewise.
11440 * m4/sockpfaf.m4: Likewise.
11441 * m4/st_dm_mode.m4: Likewise.
11442 * m4/stat-time.m4: Likewise.
11443 * m4/stdbool.m4: Likewise.
11444 * m4/stdint.m4: Likewise.
11445 * m4/stdint_h.m4: Likewise.
11446 * m4/stpcpy.m4: Likewise.
11447 * m4/stpncpy.m4: Likewise.
11448 * m4/strcase.m4: Likewise.
11449 * m4/strchrnul.m4: Likewise.
11450 * m4/strcspn.m4: Likewise.
11451 * m4/strdup.m4: Likewise.
11452 * m4/strftime.m4: Likewise.
11453 * m4/strndup.m4: Likewise.
11454 * m4/strnlen.m4: Likewise.
11455 * m4/strpbrk.m4: Likewise.
11456 * m4/strptime.m4: Likewise.
11457 * m4/strsep.m4: Likewise.
11458 * m4/strtod.m4: Likewise.
11459 * m4/strtoimax.m4: Likewise.
11460 * m4/strtok_r.m4: Likewise.
11461 * m4/strtol.m4: Likewise.
11462 * m4/strtoll.m4: Likewise.
11463 * m4/strtoul.m4: Likewise.
11464 * m4/strtoull.m4: Likewise.
11465 * m4/strtoumax.m4: Likewise.
11466 * m4/strverscmp.m4: Likewise.
11467 * m4/threadlib.m4: Likewise.
11468 * m4/timegm.m4: Likewise.
11469 * m4/tm_gmtoff.m4: Likewise.
11470 * m4/tmpdir.m4: Likewise.
11471 * m4/tmpfile.m4: Likewise.
11472 * m4/tzset.m4: Likewise.
11473 * m4/uintmax_t.m4: Likewise.
11474 * m4/unlinkdir.m4: Likewise.
11475 * m4/unlocked-io.m4: Likewise.
11476 * m4/uptime.m4: Likewise.
11477 * m4/userspec.m4: Likewise.
11478 * m4/utimbuf.m4: Likewise.
11479 * m4/utime.m4: Likewise.
11480 * m4/utimes-null.m4: Likewise.
11481 * m4/utimes.m4: Likewise.
11482 * m4/vararrays.m4: Likewise.
11483 * m4/vasnprintf.m4: Likewise.
11484 * m4/vfprintf-posix.m4: Likewise.
11485 * m4/vprintf-posix.m4: Likewise.
11486 * m4/wait-process.m4: Likewise.
11487 * m4/wchar_t.m4: Likewise.
11488 * m4/wint_t.m4: Likewise.
11489 * m4/write-any-file.m4: Likewise.
11490 * m4/yield.m4: Likewise.
11492 2009-01-13 Bruno Haible <bruno@clisp.org>
11494 Avoid test-copy-file.sh failures when ACL support insufficient.
11495 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
11497 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
11498 Reported by Jim Meyering.
11500 2009-01-13 Bruno Haible <bruno@clisp.org>
11502 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
11503 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
11504 * modules/unistdio/u8-printf-parse (Files): Likewise.
11505 * modules/unistdio/u32-printf-parse (Files): Likewise.
11506 * modules/unistdio/ulc-printf-parse (Files): Likewise.
11508 2009-01-13 Simon Josefsson <simon@josefsson.org>
11510 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
11511 and m4/inttypes_h.m4 too.
11513 2009-01-12 Eric Blake <ebb9@byu.net>
11515 tests: IRIX 6.2 cc can't compile -0.0 into .data
11516 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
11517 rather than at compile-time.
11518 * tests/test-floorl.c (minus_zero): Likewise.
11519 * tests/test-frexpl.c (minus_zero): Likewise.
11520 * tests/test-isnan.c (minus_zerol): Likewise.
11521 * tests/test-isnanl.h (minus_zero): Likewise.
11522 * tests/test-ldexpl.c (minus_zero): Likewise.
11523 * tests/test-roundl.c (minus_zero): Likewise.
11524 * tests/test-signbit.c (minus_zerol): Likewise.
11525 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
11526 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
11527 * tests/test-truncl.c (minus_zero): Likewise.
11528 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
11529 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
11530 Reported by Tom G. Christensen and Nelson H. F. Beebe.
11532 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
11534 regex: fix glibc bug 9697
11535 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
11538 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
11540 regex: fix glibc bug 697
11541 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
11542 being NULL also if there are no backreferences.
11544 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
11546 regex: merge glibc changes
11547 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
11548 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
11549 re_string_skip_chars, re_string_reconstruct): Likewise.
11550 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
11552 2009-01-07 Jim Meyering <meyering@redhat.com>
11554 poll: filter through cppi
11555 * lib/poll.c: Indent cpp directives to reflect nesting.
11557 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
11559 poll: don't return uninitialized
11560 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
11562 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
11564 avoid compile failure on AIX 6.1
11565 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
11566 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
11568 2009-01-04 Jim Meyering <meyering@redhat.com>
11570 remove duplicate inclusion of <stdio.h>
11571 * tests/test-fprintf-posix.c: Likewise.
11572 * tests/test-printf-posix.c: Likewise.
11573 * tests/test-snprintf-posix.c: Likewise.
11574 * tests/test-sprintf-posix.c: Likewise.
11575 * tests/test-vasprintf-posix.c: Likewise.
11576 * tests/test-vfprintf-posix.c: Likewise.
11577 * tests/test-vprintf-posix.c: Likewise.
11578 * tests/test-vsnprintf-posix.c: Likewise.
11579 * tests/test-vsprintf-posix.c: Likewise.
11581 2009-01-03 Jim Meyering <meyering@redhat.com>
11583 gnulib-tool: fix sed-based filtering
11584 * gnulib-tool (func_filter_filelist): Remove extra backslash
11585 in sed_fff_filter definition.
11587 2009-01-02 Jim Meyering <meyering@redhat.com>
11589 strftime: avoid compilation failure on Solaris 2.6
11590 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
11591 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
11592 Don't #define mbrlen or mbsinit, since now they're guaranteed to
11593 be available. Reported by Tom G. Christensen. Details in
11594 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
11596 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11597 Bruno Haible <bruno@clisp.org>
11599 Speed up gnulib-tool by doing more string processing through shell
11601 * gnulib-tool (fast_func_append): New variable.
11602 (func_remove_prefix, func_remove_suffix): New functions.
11603 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
11604 (func_filter_filelist): New function.
11605 (func_get_dependencies): Use func_remove_suffix instead of sed.
11606 (func_get_automake_snippet): Use func_filter_filelist instead of a
11607 subshell and sed invocation.
11609 2009-01-01 Bruno Haible <bruno@clisp.org>
11611 Fix a security bug.
11612 * gnulib-tool (func_import, import, update): Don't allow the characters
11613 '"', '$', '`', '\' in macro arguments that become part of commands that
11616 2009-01-01 Bruno Haible <bruno@clisp.org>
11618 * gnulib-tool (func_reset_sigpipe): Add more comments.
11620 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11622 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
11623 func_emit_tests_Makefile_am, func_import): Abort loops early if we
11624 already know the answer.
11626 2009-01-01 Jim Meyering <meyering@redhat.com>
11628 * lib/version-etc.c (version_etc_va): Update copyright year.
11630 2008-12-30 Bruno Haible <bruno@clisp.org>
11632 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
11633 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
11634 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
11636 2008-12-29 Eric Blake <ebb9@byu.net>
11638 multiarch: avoid autoconf AC_REQUIRE bug
11639 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
11640 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
11642 Reported by Bruno Haible, and analyzed in
11643 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
11645 2008-12-29 Bruno Haible <bruno@clisp.org>
11647 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
11648 files in subdirectories correctly.
11649 Reported by Ralf Wildenhues.
11651 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11653 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
11654 rather than 'join FILE -', for Solaris join.
11656 2008-12-29 Bruno Haible <bruno@clisp.org>
11658 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
11660 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11661 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11662 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11663 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
11664 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11665 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11666 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11667 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11668 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11669 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11670 * m4/nls.m4 (AM_NLS): Likewise.
11671 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
11672 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11673 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11674 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11675 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11676 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11677 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
11678 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11679 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11680 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11681 * m4/xsize.m4 (gl_XSIZE): Likewise.
11682 Suggested by Jim Meyering.
11684 2008-11-17 Bruce Korb <bkorb@gnu.org>
11686 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
11687 * lib/parse-duration.c: use a switch instead of cascading if's.
11689 2008-12-29 Eric Blake <ebb9@byu.net>
11691 wchar.h: supply WEOF on Irix 5.3
11692 * lib/wchar.in.h (wint_t): Also supply WEOF.
11693 * lib/wctype.in.h (wint_t): Likewise.
11694 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
11695 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
11696 Reported by Tom G. Christensen.
11698 2008-12-26 Bruno Haible <bruno@clisp.org>
11700 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
11703 2008-12-26 Bruno Haible <bruno@clisp.org>
11705 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
11707 2008-12-26 Bruno Haible <bruno@clisp.org>
11709 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
11710 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
11711 not __STDC_CONSTANT_MACROS.
11712 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
11714 2008-12-25 Bruno Haible <bruno@clisp.org>
11716 Add support for universal builds to vasnprintf.
11717 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
11718 universal builds, guess no.
11719 * modules/vasnprintf-posix (Depends-on): Add multiarch.
11720 * modules/vasprintf-posix (Depends-on): Likewise.
11721 * modules/fprintf-posix (Depends-on): Likewise.
11722 * modules/vfprintf-posix (Depends-on): Likewise.
11723 * modules/snprintf-posix (Depends-on): Likewise.
11724 * modules/vsnprintf-posix (Depends-on): Likewise.
11725 * modules/sprintf-posix (Depends-on): Likewise.
11726 * modules/vsprintf-posix (Depends-on): Likewise.
11727 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11728 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11729 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11730 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11731 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11732 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11733 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11735 Add support for universal builds to <inttypes.h>.
11736 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
11737 _SCNu64_PREFIX): In Apple
11738 universal builds, define directly, using _LP64.
11739 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
11740 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
11741 * modules/inttypes (Depends-on): Add multiarch.
11742 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
11744 Add support for universal builds to <stdint.h>.
11745 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
11746 universal builds, define directly, using _LP64.
11747 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
11748 Apple universal builds, don't test for the size and suffix of ptrdiff_t
11750 * modules/stdint (Depends-on): Add multiarch.
11751 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
11753 New module 'multiarch'.
11754 * modules/multiarch: New file.
11755 * m4/multiarch.m4: New file.
11757 2008-12-25 Bruno Haible <bruno@clisp.org>
11759 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
11761 2008-12-25 Bruno Haible <bruno@clisp.org>
11763 * modules/btowc (License): Relicense under LGPLv2+.
11764 * modules/mbsinit (License): Likewise.
11765 * modules/mbrtowc (License): Likewise.
11766 * modules/wcrtomb (License): Likewise.
11767 * modules/streq (License): Likewise.
11768 Reported by David Lutterkort <lutter@redhat.com>.
11770 2008-12-23 Bruno Haible <bruno@clisp.org>
11772 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
11774 2008-12-23 Bruno Haible <bruno@clisp.org>
11776 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
11777 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
11778 GETADDRINFO_LIB, not in LIBS.
11779 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
11780 * modules/canon-host (Link): Likewise.
11781 * NEWS: Mention the change.
11782 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
11785 2008-12-22 Bruno Haible <bruno@clisp.org>
11787 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
11788 * doc/posix-functions/iswalpha_l.texi: Likewise.
11789 * doc/posix-functions/iswblank_l.texi: Likewise.
11790 * doc/posix-functions/iswcntrl_l.texi: Likewise.
11791 * doc/posix-functions/iswctype_l.texi: Likewise.
11792 * doc/posix-functions/iswdigit_l.texi: Likewise.
11793 * doc/posix-functions/iswgraph_l.texi: Likewise.
11794 * doc/posix-functions/iswlower_l.texi: Likewise.
11795 * doc/posix-functions/iswprint_l.texi: Likewise.
11796 * doc/posix-functions/iswpunct_l.texi: Likewise.
11797 * doc/posix-functions/iswspace_l.texi: Likewise.
11798 * doc/posix-functions/iswupper_l.texi: Likewise.
11799 * doc/posix-functions/iswxdigit_l.texi: Likewise.
11800 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
11801 * doc/posix-functions/open_wmemstream.texi: Likewise.
11802 * doc/posix-functions/swscanf.texi: Likewise.
11803 * doc/posix-functions/towctrans_l.texi: Likewise.
11804 * doc/posix-functions/towlower.texi: Likewise.
11805 * doc/posix-functions/towlower_l.texi: Likewise.
11806 * doc/posix-functions/towupper.texi: Likewise.
11807 * doc/posix-functions/towupper_l.texi: Likewise.
11808 * doc/posix-functions/vfwprintf.texi: Likewise.
11809 * doc/posix-functions/vfwscanf.texi: Likewise.
11810 * doc/posix-functions/vswscanf.texi: Likewise.
11811 * doc/posix-functions/vwprintf.texi: Likewise.
11812 * doc/posix-functions/vwscanf.texi: Likewise.
11813 * doc/posix-functions/wcpcpy.texi: Likewise.
11814 * doc/posix-functions/wcpncpy.texi: Likewise.
11815 * doc/posix-functions/wcscasecmp.texi: Likewise.
11816 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
11817 * doc/posix-functions/wcscoll_l.texi: Likewise.
11818 * doc/posix-functions/wcsdup.texi: Likewise.
11819 * doc/posix-functions/wcsncasecmp.texi: Likewise.
11820 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
11821 * doc/posix-functions/wcsnlen.texi: Likewise.
11822 * doc/posix-functions/wcsnrtombs.texi: Likewise.
11823 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
11824 * doc/posix-functions/wctrans_l.texi: Likewise.
11825 * doc/posix-functions/wctype_l.texi: Likewise.
11826 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
11827 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
11828 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
11829 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
11830 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
11831 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
11832 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
11833 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
11834 * doc/glibc-functions/wcschrnul.texi: Likewise.
11835 * doc/glibc-functions/wcsftime_l.texi: Likewise.
11836 * doc/glibc-functions/wcstod_l.texi: Likewise.
11837 * doc/glibc-functions/wcstof_l.texi: Likewise.
11838 * doc/glibc-functions/wcstol_l.texi: Likewise.
11839 * doc/glibc-functions/wcstold_l.texi: Likewise.
11840 * doc/glibc-functions/wcstoll_l.texi: Likewise.
11841 * doc/glibc-functions/wcstoq.texi: Likewise.
11842 * doc/glibc-functions/wcstoul_l.texi: Likewise.
11843 * doc/glibc-functions/wcstoull_l.texi: Likewise.
11844 * doc/glibc-functions/wcstouq.texi: Likewise.
11845 * doc/glibc-functions/wmempcpy.texi: Likewise.
11847 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
11848 Eric Blake <ebb9@byu.net>
11849 Paolo Bonzini <bonzini@gnu.org>
11850 Bruno Haible <bruno@clisp.org>
11852 Make c-stack work on Haiku.
11853 * lib/c-stack.c (SA_ONSTACK): Define fallback.
11854 (c_stack_action): Use SA_ONSTACK flag.
11856 2008-12-22 Bruno Haible <bruno@clisp.org>
11858 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
11860 2008-12-22 Bruno Haible <bruno@clisp.org>
11862 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
11863 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
11865 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
11867 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
11868 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
11869 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
11870 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
11872 2008-12-22 Bruno Haible <bruno@clisp.org>
11874 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
11877 2008-12-22 Eric Blake <ebb9@byu.net>
11879 Avoid gcc warnings on cygwin.
11880 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
11881 Avoid unused variable.
11882 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
11885 2008-12-22 Bruno Haible <bruno@clisp.org>
11887 Remove HAVE_MBRTOWC conditionals.
11888 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
11889 (mbscasecmp): Assume mbrtowc function.
11890 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
11891 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
11892 * lib/mbschr.c: Include mbuiter.h unconditionally.
11893 (mbschr): Assume mbrtowc function.
11894 * lib/mbscspn.c: Include mbuiter.h unconditionally.
11895 (mbscspn): Assume mbrtowc function.
11896 * lib/mbslen.c: Include mbuiter.h unconditionally.
11897 (mbslen): Assume mbrtowc function.
11898 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
11899 (mbsncasecmp): Assume mbrtowc function.
11900 * lib/mbsnlen.c: Include mbiter.h unconditionally.
11901 (mbsnlen): Assume mbrtowc function.
11902 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
11903 (mbspbrk): Assume mbrtowc function.
11904 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
11905 (mbspcasecmp): Assume mbrtowc function.
11906 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
11907 (mbsrchr): Assume mbrtowc function.
11908 * lib/mbssep.c: Include mbuiter.h unconditionally.
11909 (mbssep): Assume mbrtowc function.
11910 * lib/mbsspn.c: Include mbuiter.h unconditionally.
11911 (mbsspn): Assume mbrtowc function.
11912 * lib/mbsstr.c: Include mbuiter.h unconditionally.
11913 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
11914 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
11915 (mbstok_r): Assume mbrtowc function.
11916 * lib/propername.c: Include mbuiter.h unconditionally.
11917 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
11918 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
11919 (trim2): Assume mbrtowc function.
11920 * lib/mbswidth.c (mbsinit): Remove fallback definition.
11921 (mbsnwidth): Assume mbrtowc function.
11922 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
11923 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
11924 fallback definitions.
11925 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
11927 2008-12-22 Bruno Haible <bruno@clisp.org>
11929 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
11931 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
11933 * modules/regex: Request emulations for the mb*/wc* functions we need.
11934 * m4/regex.m4: Don't look for those functions here.
11935 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
11937 2008-12-22 Bruno Haible <bruno@clisp.org>
11939 * modules/fnmatch (Depends-on): Remove duplicated dependency.
11941 2008-12-21 Bruno Haible <bruno@clisp.org>
11943 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
11944 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
11945 (Include): Remove conditionalization.
11946 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
11947 (Include): Remove conditionalization.
11948 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
11949 (Include): Remove conditionalization.
11950 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
11951 * m4/mbfile.m4 (gl_MBFILE): Likewise.
11952 * NEWS: Mention the change.
11953 Reported by Alan Hourihane <alanh@fairlite.co.uk>
11954 via Sergey Poznyakoff <gray@gnu.org.ua>.
11956 2008-12-21 Bruno Haible <bruno@clisp.org>
11958 * MODULES.html.sh (Extended multibyte and wide character utilities
11959 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
11960 wcrtomb, wcsrtombs.
11961 (Support for systems lacking POSIX:2008): Add accept, bind, close,
11962 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
11963 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
11964 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
11966 2008-12-21 Bruno Haible <bruno@clisp.org>
11968 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
11970 2008-12-21 Bruno Haible <bruno@clisp.org>
11972 * modules/wcsnrtombs-tests: New file.
11973 * tests/test-wcsnrtombs1.sh: New file.
11974 * tests/test-wcsnrtombs2.sh: New file.
11975 * tests/test-wcsnrtombs3.sh: New file.
11976 * tests/test-wcsnrtombs4.sh: New file.
11977 * tests/test-wcsnrtombs.c: New file.
11979 New module 'wcsnrtombs'.
11980 * lib/wchar.in.h (wcsnrtombs): New declaration.
11981 * lib/wcsnrtombs.c: New file.
11982 * lib/wcsrtombs-state.c: New file.
11983 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
11984 (internal_state): Remove variable.
11985 * m4/wcsnrtombs.m4: New file.
11986 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
11988 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
11990 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
11992 * modules/wcsnrtombs: New file.
11993 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
11994 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
11996 2008-12-21 Bruno Haible <bruno@clisp.org>
11998 * modules/wcsrtombs-tests: New file.
11999 * tests/test-wcsrtombs1.sh: New file.
12000 * tests/test-wcsrtombs2.sh: New file.
12001 * tests/test-wcsrtombs3.sh: New file.
12002 * tests/test-wcsrtombs4.sh: New file.
12003 * tests/test-wcsrtombs.c: New file.
12005 New module 'wcsrtombs'.
12006 * lib/wchar.in.h (wcsrtombs): New declaration.
12007 * lib/wcsrtombs.c: New file.
12008 * m4/wcsrtombs.m4: New file.
12009 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
12010 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
12011 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
12012 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
12013 * modules/wcsrtombs: New file.
12014 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
12017 2008-12-21 Bruno Haible <bruno@clisp.org>
12019 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
12020 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
12021 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
12022 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
12024 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
12025 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
12026 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12027 m4/locale-zh.m4, m4/codeset.m4.
12028 * doc/posix-functions/wcrtomb.texi: Document the bug.
12030 2008-12-21 Bruno Haible <bruno@clisp.org>
12032 Work around a btowc() bug on IRIX 6.5.
12033 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
12034 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
12035 REPLACE_WTOBC if not.
12036 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
12037 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
12038 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
12040 2008-12-21 Bruno Haible <bruno@clisp.org>
12042 * modules/wcrtomb-tests: New file.
12043 * tests/test-wcrtomb.sh: New file.
12044 * tests/test-wcrtomb.c: New file.
12046 New module 'wcrtomb'.
12047 * lib/wchar.in.h (wcrtomb): New declaration.
12048 * lib/wcrtomb.c: New file.
12049 * m4/wcrtomb.m4: New file.
12050 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
12052 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
12054 * modules/wcrtomb: New file.
12055 * doc/posix-functions/wcrtomb.texi: Mention the new module.
12057 2008-12-21 Bruno Haible <bruno@clisp.org>
12059 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
12060 * modules/mbsrtowcs (Files): Likewise.
12061 * modules/wctob (Files): Likewise.
12062 * modules/c-strcase-tests (Files): Likewise.
12063 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12064 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12065 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12066 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12067 * modules/vasnprintf-posix-tests (Files): Likewise.
12069 2008-12-21 William Pursell <bill.pursell@gmail.com>
12071 gitlog-to-changelog: pass all command-line arguments to git-log
12072 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
12073 it is sometimes convenient to filter the commits in various ways.
12074 gitlog-to-changelog only allows --since to specify a start date,
12075 but git-log itself supports many other filtering mechanisms.
12076 At the moment, I want to filter by branch name. Rather than
12077 adding a --branch option to gitlog-to-changelog, it seems more
12078 flexible to simply pass all options directly to git-log and let
12079 git do the work. Notice that this effectively makes --since a
12080 redundant option for gitlog-to-changelog, but removing it would
12081 require current usage to change since calls would then require
12082 an additional '--'.
12084 2008-12-21 Bruno Haible <bruno@clisp.org>
12086 * modules/mbsnrtowcs-tests: New file.
12087 * tests/test-mbsnrtowcs1.sh: New file.
12088 * tests/test-mbsnrtowcs2.sh: New file.
12089 * tests/test-mbsnrtowcs3.sh: New file.
12090 * tests/test-mbsnrtowcs4.sh: New file.
12091 * tests/test-mbsnrtowcs.c: New file.
12093 New module 'mbsnrtowcs'.
12094 * lib/wchar.in.h (mbsnrtowcs): New declaration.
12095 * lib/mbsnrtowcs.c: New file.
12096 * lib/mbsrtowcs-state.c: New file.
12097 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
12098 (internal_state): Remove variable.
12099 * m4/mbsnrtowcs.m4: New file.
12100 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
12102 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
12103 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
12104 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
12105 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
12106 * modules/mbsnrtowcs: New file.
12107 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
12108 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
12109 portability problem.
12111 2008-12-21 Bruno Haible <bruno@clisp.org>
12113 Work around mbsrtowcs bug.
12114 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
12115 (gl_FUNC_MBSRTOWCS): Invoke it.
12116 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12118 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
12120 2008-12-21 Bruno Haible <bruno@clisp.org>
12122 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
12124 2008-12-21 Bruno Haible <bruno@clisp.org>
12126 Update doc for AIX.
12127 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
12128 16-bit wchar_t type.
12129 * doc/posix-functions/btowc.texi: Likewise.
12130 * doc/posix-functions/fgetwc.texi: Likewise.
12131 * doc/posix-functions/fgetws.texi: Likewise.
12132 * doc/posix-functions/fputwc.texi: Likewise.
12133 * doc/posix-functions/fputws.texi: Likewise.
12134 * doc/posix-functions/fwide.texi: Likewise.
12135 * doc/posix-functions/fwprintf.texi: Likewise.
12136 * doc/posix-functions/fwscanf.texi: Likewise.
12137 * doc/posix-functions/getwchar.texi: Likewise.
12138 * doc/posix-functions/getwc.texi: Likewise.
12139 * doc/posix-functions/iswalnum.texi: Likewise.
12140 * doc/posix-functions/iswalpha.texi: Likewise.
12141 * doc/posix-functions/iswblank.texi: Likewise.
12142 * doc/posix-functions/iswcntrl.texi: Likewise.
12143 * doc/posix-functions/iswctype.texi: Likewise.
12144 * doc/posix-functions/iswdigit.texi: Likewise.
12145 * doc/posix-functions/iswgraph.texi: Likewise.
12146 * doc/posix-functions/iswlower.texi: Likewise.
12147 * doc/posix-functions/iswprint.texi: Likewise.
12148 * doc/posix-functions/iswpunct.texi: Likewise.
12149 * doc/posix-functions/iswspace.texi: Likewise.
12150 * doc/posix-functions/iswupper.texi: Likewise.
12151 * doc/posix-functions/iswxdigit.texi: Likewise.
12152 * doc/posix-functions/mbrtowc.texi: Likewise.
12153 * doc/posix-functions/mbsrtowcs.texi: Likewise.
12154 * doc/posix-functions/mbstowcs.texi: Likewise.
12155 * doc/posix-functions/mbtowc.texi: Likewise.
12156 * doc/posix-functions/putwchar.texi: Likewise.
12157 * doc/posix-functions/putwc.texi: Likewise.
12158 * doc/posix-functions/swprintf.texi: Likewise.
12159 * doc/posix-functions/tolower.texi: Likewise.
12160 * doc/posix-functions/toupper.texi: Likewise.
12161 * doc/posix-functions/towctrans.texi: Likewise.
12162 * doc/posix-functions/ungetwc.texi: Likewise.
12163 * doc/posix-functions/vswprintf.texi: Likewise.
12164 * doc/posix-functions/wcrtomb.texi: Likewise.
12165 * doc/posix-functions/wcscat.texi: Likewise.
12166 * doc/posix-functions/wcschr.texi: Likewise.
12167 * doc/posix-functions/wcscmp.texi: Likewise.
12168 * doc/posix-functions/wcscoll.texi: Likewise.
12169 * doc/posix-functions/wcscpy.texi: Likewise.
12170 * doc/posix-functions/wcscspn.texi: Likewise.
12171 * doc/posix-functions/wcsftime.texi: Likewise.
12172 * doc/posix-functions/wcslen.texi: Likewise.
12173 * doc/posix-functions/wcsncat.texi: Likewise.
12174 * doc/posix-functions/wcsncmp.texi: Likewise.
12175 * doc/posix-functions/wcsncpy.texi: Likewise.
12176 * doc/posix-functions/wcspbrk.texi: Likewise.
12177 * doc/posix-functions/wcsrchr.texi: Likewise.
12178 * doc/posix-functions/wcsrtombs.texi: Likewise.
12179 * doc/posix-functions/wcsspn.texi: Likewise.
12180 * doc/posix-functions/wcsstr.texi: Likewise.
12181 * doc/posix-functions/wcstod.texi: Likewise.
12182 * doc/posix-functions/wcstof.texi: Likewise.
12183 * doc/posix-functions/wcstoimax.texi: Likewise.
12184 * doc/posix-functions/wcstok.texi: Likewise.
12185 * doc/posix-functions/wcstold.texi: Likewise.
12186 * doc/posix-functions/wcstoll.texi: Likewise.
12187 * doc/posix-functions/wcstol.texi: Likewise.
12188 * doc/posix-functions/wcstombs.texi: Likewise.
12189 * doc/posix-functions/wcstoull.texi: Likewise.
12190 * doc/posix-functions/wcstoul.texi: Likewise.
12191 * doc/posix-functions/wcstoumax.texi: Likewise.
12192 * doc/posix-functions/wcswidth.texi: Likewise.
12193 * doc/posix-functions/wcsxfrm.texi: Likewise.
12194 * doc/posix-functions/wctob.texi: Likewise.
12195 * doc/posix-functions/wctomb.texi: Likewise.
12196 * doc/posix-functions/wctrans.texi: Likewise.
12197 * doc/posix-functions/wctype.texi: Likewise.
12198 * doc/posix-functions/wcwidth.texi: Likewise.
12199 * doc/posix-functions/wmemchr.texi: Likewise.
12200 * doc/posix-functions/wmemcmp.texi: Likewise.
12201 * doc/posix-functions/wmemcpy.texi: Likewise.
12202 * doc/posix-functions/wmemmove.texi: Likewise.
12203 * doc/posix-functions/wmemset.texi: Likewise.
12204 * doc/posix-functions/wprintf.texi: Likewise.
12205 * doc/posix-functions/wscanf.texi: Likewise.
12207 2008-12-21 Bruno Haible <bruno@clisp.org>
12209 Update doc for HP-UX 11.11.
12210 * doc/posix-functions/btowc.texi: Clarify that the function is missing
12211 in HP-UX version 11.00, not in all versions of HP-UX 11.
12212 * doc/posix-functions/fwide.texi: Likewise.
12213 * doc/posix-functions/fwprintf.texi: Likewise.
12214 * doc/posix-functions/fwscanf.texi: Likewise.
12215 * doc/posix-functions/inet_ntop.texi: Likewise.
12216 * doc/posix-functions/inet_pton.texi: Likewise.
12217 * doc/posix-functions/mbrlen.texi: Likewise.
12218 * doc/posix-functions/mbrtowc.texi: Likewise.
12219 * doc/posix-functions/mbsinit.texi: Likewise.
12220 * doc/posix-functions/mbsrtowcs.texi: Likewise.
12221 * doc/posix-functions/swprintf.texi: Likewise.
12222 * doc/posix-functions/swscanf.texi: Likewise.
12223 * doc/posix-functions/towctrans.texi: Likewise.
12224 * doc/posix-functions/vfwprintf.texi: Likewise.
12225 * doc/posix-functions/vswprintf.texi: Likewise.
12226 * doc/posix-functions/vwprintf.texi: Likewise.
12227 * doc/posix-functions/wcrtomb.texi: Likewise.
12228 * doc/posix-functions/wcsrtombs.texi: Likewise.
12229 * doc/posix-functions/wcsstr.texi: Likewise.
12230 * doc/posix-functions/wctob.texi: Likewise.
12231 * doc/posix-functions/wctrans.texi: Likewise.
12232 * doc/posix-functions/wmemchr.texi: Likewise.
12233 * doc/posix-functions/wmemcmp.texi: Likewise.
12234 * doc/posix-functions/wmemcpy.texi: Likewise.
12235 * doc/posix-functions/wmemmove.texi: Likewise.
12236 * doc/posix-functions/wmemset.texi: Likewise.
12237 * doc/posix-functions/wprintf.texi: Likewise.
12238 * doc/posix-functions/wscanf.texi: Likewise.
12240 2008-12-21 Bruno Haible <bruno@clisp.org>
12242 Work around a portability problem.
12243 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
12244 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
12246 2008-12-20 Bruno Haible <bruno@clisp.org>
12248 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
12249 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
12250 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
12251 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
12252 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
12254 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
12255 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
12257 (GNULIB_defined_mbstate_t): New macro.
12258 (mbsinit): Redefine if REPLACE_MBSINIT is set.
12259 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
12260 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
12261 reuses the system's mbrtowc function but works around the bugs.
12262 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
12263 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
12265 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
12266 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
12267 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
12268 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
12269 REPLACE_MBSINIT if mbsinit needs to be overridden.
12270 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
12271 REPLACE_MBSINIT, REPLACE_MBRTOWC.
12272 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
12273 REPLACE_MBSINIT, REPLACE_MBRTOWC.
12274 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12276 (Depends): Add mbsinit.
12277 * modules/mbsinit (Depends): Add mbrtowc.
12278 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
12280 2008-12-20 Bruno Haible <bruno@clisp.org>
12282 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
12283 so that there are no conversion errors on AIX.
12284 * tests/test-mbsrtowcs.c (main): LIkewise.
12286 2008-12-20 Bruno Haible <bruno@clisp.org>
12288 Work around wctob bug on Solaris <= 9.
12289 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
12290 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
12291 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
12292 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
12293 * modules/wctob (Files): Add m4/locale-fr.m4.
12294 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
12296 2008-12-20 Bruno Haible <bruno@clisp.org>
12298 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
12300 * tests/test-select-in.sh: Likewise.
12301 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12303 2008-12-20 Bruno Haible <bruno@clisp.org>
12305 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
12306 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
12309 2008-12-20 Bruno Haible <bruno@clisp.org>
12311 Ensure mbstate_t is defined on HP-UX 11.11.
12312 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
12313 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
12314 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
12315 AC_USE_SYSTEM_EXTENSIONS.
12316 * modules/fnmatch (Depends-on): Add extensions.
12317 * modules/mbrlen (Depends-on): Likewise.
12318 * modules/mbrtowc (Depends-on): Likewise.
12319 * modules/mbsinit (Depends-on): Likewise.
12320 * modules/mbsrtowcs (Depends-on): Likewise.
12321 * modules/mbswidth (Depends-on): Likewise.
12322 * modules/quotearg (Depends-on): Likewise.
12323 * modules/strftime (Depends-on): Likewise.
12325 2008-12-20 Bruno Haible <bruno@clisp.org>
12327 Ensure wctob is declared on IRIX 6.5.
12328 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
12329 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
12330 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
12331 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
12333 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
12335 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
12337 2008-12-19 Bruno Haible <bruno@clisp.org>
12339 * modules/mbsrtowcs-tests: New file.
12340 * tests/test-mbsrtowcs1.sh: New file.
12341 * tests/test-mbsrtowcs2.sh: New file.
12342 * tests/test-mbsrtowcs3.sh: New file.
12343 * tests/test-mbsrtowcs4.sh: New file.
12344 * tests/test-mbsrtowcs.c: New file.
12346 New module 'mbsrtowcs'.
12347 * lib/wchar.in.h (mbsrtowcs): New declaration.
12348 * lib/mbsrtowcs.c: New file.
12349 * m4/mbsrtowcs.m4: New file.
12350 * modules/mbsrtowcs: New file.
12351 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
12353 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
12355 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
12357 2008-12-19 Bruno Haible <bruno@clisp.org>
12359 New module 'mbrlen'.
12360 * lib/wchar.in.h (mbrlen): New declaration.
12361 * lib/mbrlen.c: New file.
12362 * m4/mbrlen.m4: New file.
12363 * modules/mbrlen: New file.
12364 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
12366 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
12368 * doc/posix-functions/mbrlen.texi: Document the new module.
12370 2008-12-19 Bruno Haible <bruno@clisp.org>
12372 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
12373 * modules/mbrtowc (Depends-on): Add verify.
12374 Suggested by Paul Eggert.
12376 2008-12-18 Bruno Haible <bruno@clisp.org>
12378 * modules/mbsinit-tests: New file.
12379 * tests/test-mbsinit.sh: New file.
12380 * tests/test-mbsinit.c: New file.
12382 2008-12-18 Bruno Haible <bruno@clisp.org>
12384 * modules/mbrtowc-tests: New file.
12385 * tests/test-mbrtowc1.sh: New file.
12386 * tests/test-mbrtowc2.sh: New file.
12387 * tests/test-mbrtowc3.sh: New file.
12388 * tests/test-mbrtowc4.sh: New file.
12389 * tests/test-mbrtowc.c: New file.
12391 New module 'mbrtowc'.
12392 * lib/wchar.in.h (mbstate_t): Override when the system does not have
12393 mbsinit and mbrtowc.
12394 (mbrtowc): New declaration.
12395 * lib/mbrtowc.c: New file.
12396 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
12397 * modules/mbrtowc: New file.
12398 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
12400 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
12402 * doc/posix-functions/mbrtowc.texi: Document the new module.
12404 2008-12-18 Bruno Haible <bruno@clisp.org>
12406 New module 'wctob'.
12407 * lib/wchar.in.h (wctob): New declaration.
12408 * lib/wctob.c: New file.
12409 * m4/wctob.m4: New file.
12410 * modules/wctob: New file.
12411 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
12413 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
12414 * doc/posix-functions/wctob.texi: Document the new module.
12416 2008-12-18 Bruno Haible <bruno@clisp.org>
12418 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
12419 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
12421 2008-12-18 Simon Josefsson <simon@josefsson.org>
12423 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
12424 G. Christensen" <tgc@jupiterrise.com>.
12426 * lib/flock.c: Need to include errno.h. Reported by "Tom
12427 G. Christensen" <tgc@jupiterrise.com>.
12429 * lib/flock.c: Need to include string.h. Reported by "Tom
12430 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
12433 2008-12-18 Bruno Haible <bruno@clisp.org>
12435 * m4/locale-ja.m4: New file, from GNU gettext.
12437 2008-12-17 Bruno Haible <bruno@clisp.org>
12439 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
12440 Suggested by Eric Blake.
12442 2008-12-17 Bruno Haible <bruno@clisp.org>
12444 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
12446 2008-12-17 Bruno Haible <bruno@clisp.org>
12448 * lib/mbsinit.c: Include verify.h. Verify an assumption.
12449 * modules/mbsinit (Depends-on): Add verify.
12450 Suggested by Paul Eggert.
12452 2008-12-17 Bruno Haible <bruno@clisp.org>
12454 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
12455 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
12457 * m4/mbiter.m4 (gl_MBITER): LIkewise.
12458 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
12459 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
12460 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
12461 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
12462 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
12463 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
12464 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
12465 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
12466 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
12467 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
12468 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
12469 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
12470 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
12471 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
12472 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12473 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
12474 * modules/trim (configure.ac): Likewise.
12476 2008-12-17 Bruno Haible <bruno@clisp.org>
12478 * modules/btowc-tests: New file.
12479 * tests/test-btowc1.sh: New file.
12480 * tests/test-btowc2.sh: New file.
12481 * tests/test-btowc.c: New file.
12483 New module 'btowc'.
12484 * lib/wchar.in.h (btowc): New declaration.
12485 * lib/btowc.c: New file.
12486 * m4/btowc.m4: New file.
12487 * modules/btowc: New file.
12488 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
12490 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
12491 * doc/posix-functions/btowc.texi: Document the new module.
12493 2008-12-17 Bruno Haible <bruno@clisp.org>
12495 New module 'mbsinit'.
12496 * lib/wchar.in.h (mbsinit): New declaration.
12497 * lib/mbsinit.c: New file.
12498 * m4/mbsinit.m4: New file.
12499 * modules/mbsinit: New file.
12500 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
12502 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
12504 * doc/posix-functions/mbsinit.texi: Document the new module.
12506 2008-12-16 Bruno Haible <bruno@clisp.org>
12508 * lib/unistd.in.h: Add comment.
12509 * tests/test-environ.c: Don't include <stdlib.h>.
12511 2008-12-16 Bruno Haible <bruno@clisp.org>
12513 * lib/parse-duration.h (parse_duration): Document return value
12515 * lib/parse-duration.c: Include specification header first. Add
12518 (parse_year_month_day, parse_hour_minute_second): Move side effects
12519 outside of strchr call.
12520 (parse_non_iso8601): Move side effects outside of isspace call.
12521 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
12524 2008-12-16 Bruno Haible <bruno@clisp.org>
12526 * tests/test-parse-duration.sh: Produce no output when the test
12529 2008-12-16 Bruno Haible <bruno@clisp.org>
12531 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
12534 2008-12-15 Bruno Haible <bruno@clisp.org>
12536 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
12537 * doc/glibc-functions/flistxattr.texi: Likewise.
12538 * doc/glibc-functions/fopencookie.texi: Likewise.
12539 * doc/glibc-functions/fremovexattr.texi: Likewise.
12540 * doc/glibc-functions/fsetxattr.texi: Likewise.
12541 * doc/glibc-functions/getxattr.texi: Likewise.
12542 * doc/glibc-functions/lgetxattr.texi: Likewise.
12543 * doc/glibc-functions/listxattr.texi: Likewise.
12544 * doc/glibc-functions/llistxattr.texi: Likewise.
12545 * doc/glibc-functions/lremovexattr.texi: Likewise.
12546 * doc/glibc-functions/lsetxattr.texi: Likewise.
12547 * doc/glibc-functions/removexattr.texi: Likewise.
12548 * doc/glibc-functions/setxattr.texi: Likewise.
12549 * doc/posix-functions/open_memstream.texi: Likewise.
12551 2008-12-15 Eric Blake <ebb9@byu.net>
12553 Update doc for cygwin 1.7.
12554 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
12556 * doc/posix-functions/fchmodat.texi: Likewise.
12557 * doc/posix-functions/fchownat.texi: Likewise.
12558 * doc/posix-functions/fdopendir.texi: Likewise.
12559 * doc/posix-functions/fmemopen.texi: Likewise.
12560 * doc/posix-functions/freeaddrinfo.texi: Likewise.
12561 * doc/posix-functions/fstatat.texi: Likewise.
12562 * doc/posix-functions/futimens.texi: Likewise.
12563 * doc/posix-functions/gai_strerror.texi: Likewise.
12564 * doc/posix-functions/getaddrinfo.texi: Likewise.
12565 * doc/posix-functions/getnameinfo.texi: Likewise.
12566 * doc/posix-functions/if_freenameindex.texi: Likewise.
12567 * doc/posix-functions/if_indextoname.texi: Likewise.
12568 * doc/posix-functions/if_nameindex.texi: Likewise.
12569 * doc/posix-functions/if_nametoindex.texi: Likewise.
12570 * doc/posix-functions/insque.texi: Likewise.
12571 * doc/posix-functions/linkat.texi: Likewise.
12572 * doc/posix-functions/llrint.texi: Likewise.
12573 * doc/posix-functions/llrintf.texi: Likewise.
12574 * doc/posix-functions/llrintl.texi: Likewise.
12575 * doc/posix-functions/lockf.texi: Likewise.
12576 * doc/posix-functions/lrintl.texi: Likewise.
12577 * doc/posix-functions/mkdirat.texi: Likewise.
12578 * doc/posix-functions/mkfifoat.texi: Likewise.
12579 * doc/posix-functions/mknodat.texi: Likewise.
12580 * doc/posix-functions/mq_close.texi: Likewise.
12581 * doc/posix-functions/mq_getattr.texi: Likewise.
12582 * doc/posix-functions/mq_notify.texi: Likewise.
12583 * doc/posix-functions/mq_open.texi: Likewise.
12584 * doc/posix-functions/mq_receive.texi: Likewise.
12585 * doc/posix-functions/mq_send.texi: Likewise.
12586 * doc/posix-functions/mq_setattr.texi: Likewise.
12587 * doc/posix-functions/mq_timedreceive.texi: Likewise.
12588 * doc/posix-functions/mq_timedsend.texi: Likewise.
12589 * doc/posix-functions/mq_unlink.texi: Likewise.
12590 * doc/posix-functions/open_memstream.texi: Likewise.
12591 * doc/posix-functions/openat.texi: Likewise.
12592 * doc/posix-functions/posix_fadvise.texi: Likewise.
12593 * doc/posix-functions/posix_fallocate.texi: Likewise.
12594 * doc/posix-functions/posix_madvise.texi: Likewise.
12595 * doc/posix-functions/posix_memalign.texi: Likewise.
12596 * doc/posix-functions/posix_openpt.texi: Likewise.
12597 * doc/posix-functions/readlinkat.texi: Likewise.
12598 * doc/posix-functions/remque.texi: Likewise.
12599 * doc/posix-functions/renameat.texi: Likewise.
12600 * doc/posix-functions/rintl.texi: Likewise.
12601 * doc/posix-functions/sem_unlink.texi: Likewise.
12602 * doc/posix-functions/shm_open.texi: Likewise.
12603 * doc/posix-functions/shm_unlink.texi: Likewise.
12604 * doc/posix-functions/signgam.texi: Likewise.
12605 * doc/posix-functions/sigset.texi: Likewise.
12606 * doc/posix-functions/stpcpy.texi: Likewise.
12607 * doc/posix-functions/stpncpy.texi: Likewise.
12608 * doc/posix-functions/strerror.texi: Likewise.
12609 * doc/posix-functions/strtod.texi: Likewise.
12610 * doc/posix-functions/symlinkat.texi: Likewise.
12611 * doc/posix-functions/unlinkat.texi: Likewise.
12612 * doc/posix-functions/utimensat.texi: Likewise.
12613 * doc/glibc-functions/bindresvport.texi: Likewise.
12614 * doc/glibc-functions/dn_expand.texi: Likewise.
12615 * doc/glibc-functions/exp10.texi: Likewise.
12616 * doc/glibc-functions/exp10f.texi: Likewise.
12617 * doc/glibc-functions/fgetxattr.texi: Likewise.
12618 * doc/glibc-functions/flistxattr.texi: Likewise.
12619 * doc/glibc-functions/fopencookie.texi: Likewise.
12620 * doc/glibc-functions/freeifaddrs.texi: Likewise.
12621 * doc/glibc-functions/fremovexattr.texi: Likewise.
12622 * doc/glibc-functions/fsetxattr.texi: Likewise.
12623 * doc/glibc-functions/getifaddrs.texi: Likewise.
12624 * doc/glibc-functions/getxattr.texi: Likewise.
12625 * doc/glibc-functions/lgetxattr.texi: Likewise.
12626 * doc/glibc-functions/listxattr.texi: Likewise.
12627 * doc/glibc-functions/llistxattr.texi: Likewise.
12628 * doc/glibc-functions/lremovexattr.texi: Likewise.
12629 * doc/glibc-functions/lsetxattr.texi: Likewise.
12630 * doc/glibc-functions/pow10.texi: Likewise.
12631 * doc/glibc-functions/pow10f.texi: Likewise.
12632 * doc/glibc-functions/rcmd_af.texi: Likewise.
12633 * doc/glibc-functions/removexattr.texi: Likewise.
12634 * doc/glibc-functions/res_init.texi: Likewise.
12635 * doc/glibc-functions/res_mkquery.texi: Likewise.
12636 * doc/glibc-functions/res_query.texi: Likewise.
12637 * doc/glibc-functions/res_querydomain.texi: Likewise.
12638 * doc/glibc-functions/res_send.texi: Likewise.
12639 * doc/glibc-functions/rresvport_af.texi: Likewise.
12640 * doc/glibc-functions/setxattr.texi: Likewise.
12641 * doc/glibc-functions/strcasestr.texi: Likewise.
12643 2008-12-15 Bruno Haible <bruno@clisp.org>
12645 Fix compilation error on OSF/1 4.0.
12646 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
12647 <sys/time.h>, simply delegate to the system header.
12648 Reported by Daniel Richard G. <oss@teragram.com>.
12650 2008-12-15 Bruno Haible <bruno@clisp.org>
12652 * doc/posix-functions/openat.texi: Mention the 'openat' module.
12653 * doc/posix-functions/fchmodat.texi: Likewise.
12654 * doc/posix-functions/fchownat.texi: Likewise.
12655 * doc/posix-functions/fdopendir.texi: Likewise.
12656 * doc/posix-functions/fstatat.texi: Likewise.
12657 * doc/posix-functions/mkdirat.texi: Likewise.
12658 * doc/posix-functions/unlinkat.texi: Likewise.
12660 2008-12-14 Bruno Haible <bruno@clisp.org>
12662 Update doc for POSIX:2008.
12663 * doc/posix-functions/faccessat.texi: New file.
12664 * doc/posix-functions/fchmodat.texi: New file.
12665 * doc/posix-functions/fchownat.texi: New file.
12666 * doc/posix-functions/fdopendir.texi: New file.
12667 * doc/posix-functions/fstatat.texi: New file.
12668 * doc/posix-functions/futimens.texi: New file.
12669 * doc/posix-functions/linkat.texi: New file.
12670 * doc/posix-functions/mkdirat.texi: New file.
12671 * doc/posix-functions/mkfifoat.texi: New file.
12672 * doc/posix-functions/mknodat.texi: New file.
12673 * doc/posix-functions/open_wmemstream.texi: New file.
12674 * doc/posix-functions/openat.texi: New file.
12675 * doc/posix-functions/psiginfo.texi: New file.
12676 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
12677 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
12678 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
12679 * doc/posix-functions/readlinkat.texi: New file.
12680 * doc/posix-functions/renameat.texi: New file.
12681 * doc/posix-functions/strerror_l.texi: New file.
12682 * doc/posix-functions/symlinkat.texi: New file.
12683 * doc/posix-functions/unlinkat.texi: New file.
12684 * doc/posix-functions/utimensat.texi: New file.
12685 * doc/gnulib.texi (Function Substitutes): Add these subsections.
12687 2008-12-14 Bruno Haible <bruno@clisp.org>
12689 Update doc for POSIX:2008.
12690 * doc/posix-functions/alphasort.texi: Renamed from
12691 doc/glibc-functions/alphasort.texi.
12692 * doc/posix-functions/dirfd.texi: Renamed from
12693 doc/glibc-functions/dirfd.texi.
12694 * doc/posix-functions/dprintf.texi: Renamed from
12695 doc/glibc-functions/dprintf.texi.
12696 * doc/posix-functions/duplocale.texi: Renamed from
12697 doc/glibc-functions/duplocale.texi.
12698 * doc/posix-functions/fexecve.texi: Renamed from
12699 doc/glibc-functions/fexecve.texi.
12700 * doc/posix-functions/fmemopen.texi: Renamed from
12701 doc/glibc-functions/fmemopen.texi.
12702 * doc/posix-functions/freelocale.texi: Renamed from
12703 doc/glibc-functions/freelocale.texi.
12704 * doc/posix-functions/getdate_err.texi: Renamed from
12705 doc/glibc-functions/getdate_err.texi.
12706 * doc/posix-functions/isalnum_l.texi: Renamed from
12707 doc/glibc-functions/isalnum_l.texi.
12708 * doc/posix-functions/isalpha_l.texi: Renamed from
12709 doc/glibc-functions/isalpha_l.texi.
12710 * doc/posix-functions/isblank_l.texi: Renamed from
12711 doc/glibc-functions/isblank_l.texi.
12712 * doc/posix-functions/iscntrl_l.texi: Renamed from
12713 doc/glibc-functions/iscntrl_l.texi.
12714 * doc/posix-functions/isdigit_l.texi: Renamed from
12715 doc/glibc-functions/isdigit_l.texi.
12716 * doc/posix-functions/isgraph_l.texi: Renamed from
12717 doc/glibc-functions/isgraph_l.texi.
12718 * doc/posix-functions/islower_l.texi: Renamed from
12719 doc/glibc-functions/islower_l.texi.
12720 * doc/posix-functions/isprint_l.texi: Renamed from
12721 doc/glibc-functions/isprint_l.texi.
12722 * doc/posix-functions/ispunct_l.texi: Renamed from
12723 doc/glibc-functions/ispunct_l.texi.
12724 * doc/posix-functions/isspace_l.texi: Renamed from
12725 doc/glibc-functions/isspace_l.texi.
12726 * doc/posix-functions/isupper_l.texi: Renamed from
12727 doc/glibc-functions/isupper_l.texi.
12728 * doc/posix-functions/iswalnum_l.texi: Renamed from
12729 doc/glibc-functions/iswalnum_l.texi.
12730 * doc/posix-functions/iswalpha_l.texi: Renamed from
12731 doc/glibc-functions/iswalpha_l.texi.
12732 * doc/posix-functions/iswblank_l.texi: Renamed from
12733 doc/glibc-functions/iswblank_l.texi.
12734 * doc/posix-functions/iswcntrl_l.texi: Renamed from
12735 doc/glibc-functions/iswcntrl_l.texi.
12736 * doc/posix-functions/iswctype_l.texi: Renamed from
12737 doc/glibc-functions/iswctype_l.texi.
12738 * doc/posix-functions/iswdigit_l.texi: Renamed from
12739 doc/glibc-functions/iswdigit_l.texi.
12740 * doc/posix-functions/iswgraph_l.texi: Renamed from
12741 doc/glibc-functions/iswgraph_l.texi.
12742 * doc/posix-functions/iswlower_l.texi: Renamed from
12743 doc/glibc-functions/iswlower_l.texi.
12744 * doc/posix-functions/iswprint_l.texi: Renamed from
12745 doc/glibc-functions/iswprint_l.texi.
12746 * doc/posix-functions/iswpunct_l.texi: Renamed from
12747 doc/glibc-functions/iswpunct_l.texi.
12748 * doc/posix-functions/iswspace_l.texi: Renamed from
12749 doc/glibc-functions/iswspace_l.texi.
12750 * doc/posix-functions/iswupper_l.texi: Renamed from
12751 doc/glibc-functions/iswupper_l.texi.
12752 * doc/posix-functions/iswxdigit_l.texi: Renamed from
12753 doc/glibc-functions/iswxdigit_l.texi.
12754 * doc/posix-functions/isxdigit_l.texi: Renamed from
12755 doc/glibc-functions/isxdigit_l.texi.
12756 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
12757 doc/glibc-functions/mbsnrtowcs.texi.
12758 * doc/posix-functions/mkdtemp.texi: Renamed from
12759 doc/glibc-functions/mkdtemp.texi.
12760 * doc/posix-functions/newlocale.texi: Renamed from
12761 doc/glibc-functions/newlocale.texi.
12762 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
12763 doc/glibc-functions/nl_langinfo_l.texi.
12764 * doc/posix-functions/open_memstream.texi: Renamed from
12765 doc/glibc-functions/open_memstream.texi.
12766 * doc/posix-functions/opterr.texi: Renamed from
12767 doc/glibc-functions/opterr.texi.
12768 * doc/posix-functions/optind.texi: Renamed from
12769 doc/glibc-functions/optind.texi.
12770 * doc/posix-functions/optopt.texi: Renamed from
12771 doc/glibc-functions/optopt.texi.
12772 * doc/posix-functions/psignal.texi: Renamed from
12773 doc/glibc-functions/psignal.texi.
12774 * doc/posix-functions/scandir.texi: Renamed from
12775 doc/glibc-functions/scandir.texi.
12776 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
12777 doc/glibc-functions/sched_get_priority_min.texi.
12778 * doc/posix-functions/signgam.texi: Renamed from
12779 doc/glibc-functions/signgam.texi.
12780 * doc/posix-functions/stpcpy.texi: Renamed from
12781 doc/glibc-functions/stpcpy.texi.
12782 * doc/posix-functions/stpncpy.texi: Renamed from
12783 doc/glibc-functions/stpncpy.texi.
12784 * doc/posix-functions/strcasecmp_l.texi: Renamed from
12785 doc/glibc-functions/strcasecmp_l.texi.
12786 * doc/posix-functions/strcoll_l.texi: Renamed from
12787 doc/glibc-functions/strcoll_l.texi.
12788 * doc/posix-functions/strfmon_l.texi: Renamed from
12789 doc/glibc-functions/strfmon_l.texi.
12790 * doc/posix-functions/strftime_l.texi: Renamed from
12791 doc/glibc-functions/strftime_l.texi.
12792 * doc/posix-functions/strncasecmp_l.texi: Renamed from
12793 doc/glibc-functions/strncasecmp_l.texi.
12794 * doc/posix-functions/strndup.texi: Renamed from
12795 doc/glibc-functions/strndup.texi.
12796 * doc/posix-functions/strnlen.texi: Renamed from
12797 doc/glibc-functions/strnlen.texi.
12798 * doc/posix-functions/strsignal.texi: Renamed from
12799 doc/glibc-functions/strsignal.texi.
12800 * doc/posix-functions/strxfrm_l.texi: Renamed from
12801 doc/glibc-functions/strxfrm_l.texi.
12802 * doc/posix-functions/timer_gettime.texi: Renamed from
12803 doc/glibc-functions/timer_gettime.texi.
12804 * doc/posix-functions/tolower_l.texi: Renamed from
12805 doc/glibc-functions/tolower_l.texi.
12806 * doc/posix-functions/toupper_l.texi: Renamed from
12807 doc/glibc-functions/toupper_l.texi.
12808 * doc/posix-functions/towctrans_l.texi: Renamed from
12809 doc/glibc-functions/towctrans_l.texi.
12810 * doc/posix-functions/towlower_l.texi: Renamed from
12811 doc/glibc-functions/towlower_l.texi.
12812 * doc/posix-functions/towupper_l.texi: Renamed from
12813 doc/glibc-functions/towupper_l.texi.
12814 * doc/posix-functions/uselocale.texi: Renamed from
12815 doc/glibc-functions/uselocale.texi.
12816 * doc/posix-functions/vdprintf.texi: Renamed from
12817 doc/glibc-functions/vdprintf.texi.
12818 * doc/posix-functions/wcpcpy.texi:
12819 Renamed from doc/glibc-functions/wcpcpy.texi.
12820 * doc/posix-functions/wcpncpy.texi: Renamed from
12821 doc/glibc-functions/wcpncpy.texi.
12822 * doc/posix-functions/wcscasecmp.texi: Renamed from
12823 doc/glibc-functions/wcscasecmp.texi.
12824 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
12825 doc/glibc-functions/wcscasecmp_l.texi.
12826 * doc/posix-functions/wcscoll_l.texi: Renamed from
12827 doc/glibc-functions/wcscoll_l.texi.
12828 * doc/posix-functions/wcsdup.texi: Renamed from
12829 doc/glibc-functions/wcsdup.texi.
12830 * doc/posix-functions/wcsncasecmp.texi: Renamed from
12831 doc/glibc-functions/wcsncasecmp.texi.
12832 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
12833 doc/glibc-functions/wcsncasecmp_l.texi.
12834 * doc/posix-functions/wcsnlen.texi: Renamed from
12835 doc/glibc-functions/wcsnlen.texi.
12836 * doc/posix-functions/wcsnrtombs.texi: Renamed from
12837 doc/glibc-functions/wcsnrtombs.texi.
12838 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
12839 doc/glibc-functions/wcsxfrm_l.texi.
12840 * doc/posix-functions/wctrans_l.texi: Renamed from
12841 doc/glibc-functions/wctrans_l.texi.
12842 * doc/posix-functions/wctype_l.texi: Renamed from
12843 doc/glibc-functions/wctype_l.texi.
12844 * doc/gnulib.texi (Function Substitutes): Add these subsections.
12845 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
12846 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
12847 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
12849 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
12852 2008-12-14 Bruno Haible <bruno@clisp.org>
12854 Update doc for POSIX:2008.
12855 * doc/posix-functions/*.texi: Update URL of POSIX specification.
12857 2008-12-14 Bruno Haible <bruno@clisp.org>
12859 Update doc for POSIX:2008.
12860 * doc/pastposix-functions/bcmp.texi: Renamed from
12861 doc/posix-functions/bcmp.texi.
12862 * doc/pastposix-functions/bcopy.texi: Renamed from
12863 doc/posix-functions/bcopy.texi.
12864 * doc/pastposix-functions/bsd_signal.texi: Renamed from
12865 doc/posix-functions/bsd_signal.texi.
12866 * doc/pastposix-functions/bzero.texi: Renamed from
12867 doc/posix-functions/bzero.texi.
12868 * doc/pastposix-functions/ecvt.texi: Renamed from
12869 doc/posix-functions/ecvt.texi.
12870 * doc/pastposix-functions/fcvt.texi: Renamed from
12871 doc/posix-functions/fcvt.texi.
12872 * doc/pastposix-functions/ftime.texi: Renamed from
12873 doc/posix-functions/ftime.texi.
12874 * doc/pastposix-functions/gcvt.texi: Renamed from
12875 doc/posix-functions/gcvt.texi.
12876 * doc/pastposix-functions/getcontext.texi: Renamed from
12877 doc/posix-functions/getcontext.texi.
12878 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
12879 doc/posix-functions/gethostbyaddr.texi.
12880 * doc/pastposix-functions/gethostbyname.texi: Renamed from
12881 doc/posix-functions/gethostbyname.texi.
12882 * doc/pastposix-functions/getwd.texi: Renamed from
12883 doc/posix-functions/getwd.texi.
12884 * doc/pastposix-functions/h_errno.texi: Renamed from
12885 doc/posix-functions/h_errno.texi.
12886 * doc/pastposix-functions/index.texi: Renamed from
12887 doc/posix-functions/index.texi.
12888 * doc/pastposix-functions/makecontext.texi: Renamed from
12889 doc/posix-functions/makecontext.texi.
12890 * doc/pastposix-functions/mktemp.texi: Renamed from
12891 doc/posix-functions/mktemp.texi.
12892 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
12893 doc/posix-functions/pthread_attr_getstackaddr.texi.
12894 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
12895 doc/posix-functions/pthread_attr_setstackaddr.texi.
12896 * doc/pastposix-functions/rindex.texi: Renamed from
12897 doc/posix-functions/rindex.texi.
12898 * doc/pastposix-functions/scalb.texi: Renamed from
12899 doc/posix-functions/scalb.texi.
12900 * doc/pastposix-functions/setcontext.texi: Renamed from
12901 doc/posix-functions/setcontext.texi.
12902 * doc/pastposix-functions/swapcontext.texi: Renamed from
12903 doc/posix-functions/swapcontext.texi.
12904 * doc/pastposix-functions/ualarm.texi: Renamed from
12905 doc/posix-functions/ualarm.texi.
12906 * doc/pastposix-functions/usleep.texi: Renamed from
12907 doc/posix-functions/usleep.texi.
12908 * doc/pastposix-functions/vfork.texi: Renamed from
12909 doc/posix-functions/vfork.texi.
12910 * doc/pastposix-functions/wcswcs.texi: Renamed from
12911 doc/posix-functions/wcswcs.texi.
12912 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
12913 (Function Substitutes): Update.
12915 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12917 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
12920 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12921 Bruno Haible <bruno@clisp.org>
12923 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
12925 2008-12-13 Bruno Haible <bruno@clisp.org>
12927 * modules/strtoull (Depends-on): Remove unistd.
12929 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12931 * modules/strtoull (Depends-on): Add stdlib.
12933 2008-12-11 Simon Josefsson <simon@josefsson.org>
12935 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
12937 2008-12-10 Jim Meyering <meyering@redhat.com>
12939 gl_ASSERT: don't say assertions are disabled when they're not
12940 * m4/assert.m4 (gl_ASSERT): Do not make configure report
12941 "checking whether to enable assertions... no", when they are in
12942 fact enabled. This is solely a bug in the output of configure.
12943 In spite of saying "no", NDEBUG was not defined in that case.
12944 Also, as noted by Eric Blake, leave assertions enabled upon
12945 --enable-assert=INVALID.
12947 2008-12-10 Bruno Haible <bruno@clisp.org>
12949 Change MODULES.html to refer to POSIX:2008 where possible.
12950 * MODULES.html.sh (POSIX2008_URL): New variable.
12951 (posix_headers): Remove sys/timeb, ucontext.
12952 (posix2001_headers): New variable.
12953 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
12954 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
12955 index, makecontext, mktemp, pthread_attr_getstackaddr,
12956 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
12957 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
12958 (posix2001_functions): New variable.
12959 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
12962 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12964 add missing include to parse-duration.c
12965 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
12966 * modules/parse-duration (Depends-on): Add xalloc.
12968 fix sed script reading maint.mk
12969 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
12970 (syntax-check-rules): Use it.
12972 2008-12-09 Bruno Haible <bruno@clisp.org>
12974 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
12975 MacOS X 10.4/PowerPC.
12976 Reported by Simon Josefsson.
12978 2008-12-08 Jim Meyering <meyering@redhat.com>
12980 work around mingw's lack of some S_IF definitions
12981 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
12982 Reported by Simon Josefsson.
12984 2008-12-08 Bruno Haible <bruno@clisp.org>
12986 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
12987 applied to variables. Needed on MacOS X 10.4/PowerPC.
12988 Reported by Simon Josefsson.
12990 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
12991 and Eric Blake <ebb9@byu.net>
12993 assert: honor --enable-assert
12994 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
12995 order to honor --enable-assert, rather than treating it as a
12996 synonym for --disable-assert.
12998 2008-12-08 Jim Meyering <meyering@redhat.com>
13000 * lib/posixtm.c: Remove now-useless declaration of mktime.
13002 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
13004 2008-12-07 Bruno Haible <bruno@clisp.org>
13006 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
13007 test_once): Mark functions as static.
13008 * tests/test-tls.c (test_tls): Likewise.
13010 2008-12-07 Bruno Haible <bruno@clisp.org>
13012 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
13013 iconv_register_autodetect.
13015 2008-12-07 Jim Meyering <meyering@redhat.com>
13017 posixtm.c: avoid a warning
13018 * lib/posixtm.c (posixtime): Don't initialize tm0.
13019 It's no longer needed to placate gcc4's -Wuninitialized,
13020 and the attempt to placate would elicit a new warning.
13022 unicodeio.c: mark unused parameters
13023 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
13024 (fallback_failure_callback): Likewise.
13026 2008-12-07 Bruno Haible <bruno@clisp.org>
13028 * gnulib-tool (func_create_testdir): When building the tests
13029 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
13030 Reported by Simon Josefsson.
13032 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13034 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
13036 2008-12-06 Bruno Haible <bruno@clisp.org>
13038 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
13039 Suggested by Eric Blake.
13041 2008-12-06 Bruno Haible <bruno@clisp.org>
13043 Fix a c-stack test failure on MacOS X.
13044 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
13045 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
13046 handler for SIGBUS as well.
13047 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
13048 install a signal handler for SIGBUS as well.
13049 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
13051 2008-12-06 Bruno Haible <bruno@clisp.org>
13053 Advocacy documentation.
13054 * doc/gnulib-intro.texi (Benefits): New section.
13055 * doc/gnulib.texi: Update.
13057 2008-12-06 Bruno Haible <bruno@clisp.org>
13059 Document the 'manywarnings' module.
13060 * doc/manywarnings.texi: New file.
13061 * doc/gnulib.texi: Include it.
13063 2008-12-05 Eric Blake <ebb9@byu.net>
13065 tests: silence some gcc warnings
13066 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
13067 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
13070 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13071 Bruno Haible <bruno@clisp.org>
13073 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
13075 2008-11-29 Jim Meyering <meyering@redhat.com>
13077 unicodeio.c: mark unused parameters
13078 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
13079 (fallback_failure_callback): Likewise.
13082 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
13083 (set_stat_type): Return S_IF*-valued "type" directly.
13084 Prompted by James Youngman's spotting a related bug.
13085 Confirmed by further testing through find.
13087 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
13088 * lib/fts.c (D_TYPE): Define.
13089 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
13090 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
13091 (s_ifmt_shift_bits): New function.
13092 (set_stat_type): New function.
13093 (fts_build): When not calling fts_stat, call set_stat_type
13094 to propagate dirent.d_type info to fts_read caller.
13095 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
13096 fts_statp->st_mode type information may be valid.
13098 2008-11-28 Simon Josefsson <simon@josefsson.org>
13100 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
13101 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
13104 2008-11-20 Bruno Haible <bruno@clisp.org>
13106 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
13107 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
13109 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
13110 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
13111 * modules/math (Makefile.am): Substitute
13112 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
13113 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13115 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
13116 Bruno Haible <bruno@clisp.org>
13118 * lib/stdint.in.h: Define all type macros so that their expansion is
13119 a single typedef'ed token. Fixes a compilation failure in Boost which
13120 does "using ::int8_t;".
13122 2008-11-18 Simon Josefsson <simon@josefsson.org>
13124 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
13125 gl_MANYWARN_ALL_GCC.
13126 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
13127 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
13128 * modules/manywarnings: New file.
13129 * MODULES.html.sh: Mention manywarnings module.
13131 2008-11-18 Bruno Haible <bruno@clisp.org>
13133 * doc/gnulib-tool.texi (Unit tests): New section.
13135 2008-11-18 Simon Josefsson <simon@josefsson.org>
13137 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
13138 paths like 'lib/po/foo.po'.
13140 2008-11-17 Simon Josefsson <simon@josefsson.org>
13142 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
13143 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
13145 2008-11-17 Simon Josefsson <simon@josefsson.org>
13147 * m4/warnings.m4: Use CPPFLAGS to really check whether the
13150 2008-11-17 Simon Josefsson <simon@josefsson.org>
13152 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
13154 2008-11-17 Bruce Korb <bkorb@gnu.org>
13156 * modules/parse-duration-tests: New file.
13157 * tests/test-parse-duration.sh: New file.
13158 * tests/test-parse-duration.c: New file.
13160 New module 'parse-duration'.
13161 * lib/parse-duration.h: New file.
13162 * lib/parse-duration.c: New file.
13163 * modules/parse-duration: New file.
13165 2008-11-17 Bruno Haible <bruno@clisp.org>
13167 * tests/test-select-out.sh: Comment out the first pipe test.
13168 Reported by Simon Josefsson.
13170 2008-11-17 Bruno Haible <bruno@clisp.org>
13172 * modules/getaddrinfo (Depends-on): Add servent, hostent.
13173 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
13176 2008-11-17 Bruno Haible <bruno@clisp.org>
13178 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
13179 -lnetwork and -lnet. Needed for Haiku and BeOS.
13181 2008-11-16 Bruno Haible <bruno@clisp.org>
13183 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
13185 2008-11-16 Bruno Haible <bruno@clisp.org>
13187 Avoid test failure on Haiku.
13188 * tests/test-fsync.c: Include <errno.h>.
13189 (main): Don't require that fsync (0) fails.
13191 2008-11-15 Bruno Haible <bruno@clisp.org>
13193 New module 'hostent'.
13194 * modules/hostent: New file.
13195 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
13197 2008-11-15 Bruno Haible <bruno@clisp.org>
13199 New module 'servent'.
13200 * modules/servent: New file.
13201 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
13203 2008-11-15 Bruno Haible <bruno@clisp.org>
13205 Avoid generating same test program with two different rules.
13206 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
13207 test-frexp to test-frexp-nolibm.
13208 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
13209 test-frexpl to test-frexpl-nolibm.
13211 2008-11-15 Bruno Haible <bruno@clisp.org>
13213 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
13216 2008-11-15 Bruno Haible <bruno@clisp.org>
13218 * lib/netdb.in.h: Activate the definitions also when the system's
13219 <netdb.h> has 'struct addrinfo'.
13220 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
13221 EAI_OVERFLOW or AI_NUMERICSERV.
13222 * doc/posix-headers/netdb.texi: Document the problem.
13224 2008-11-15 Bruno Haible <bruno@clisp.org>
13226 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
13228 Make the 'sched' module work on platforms where <sched.h> exists but
13229 is incomplete (such as Haiku).
13230 * lib/sched.in.h; Include the system's <sched.h> if it exists.
13231 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
13232 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
13233 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
13234 HAVE_STRUCT_SCHED_PARAM.
13235 * modules/sched (Depends-on): Add include_next.
13236 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
13237 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
13238 * doc/posix-headers/sched.texi: Document the issue.
13240 2008-11-13 Jim Meyering <meyering@redhat.com>
13242 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
13243 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
13244 test would fail due to the difference in the Report bugs to ...
13245 line. The expected address is empty, "<>", while the actual
13246 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
13248 2008-11-12 Bruno Haible <bruno@clisp.org>
13250 lstat: don't compile lstat.c on systems lacking lstat
13251 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
13252 which don't have lstat; this is handled by lib/sys_stat.in.h already.
13253 Reported by Daniel P. Berrange via Jim Meyering.
13255 2008-11-12 Jim Meyering <meyering@redhat.com>
13257 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
13259 2008-11-12 Simon Josefsson <simon@josefsson.org>
13261 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
13264 2008-11-12 Bruno Haible <bruno@clisp.org>
13266 * lib/unicodeio.c: Include unistr.h.
13267 (utf8_wctomb): Remove function.
13268 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
13270 2008-11-12 Simon Josefsson <simon@josefsson.org>
13272 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
13273 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
13275 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
13277 2008-11-12 Simon Josefsson <simon@josefsson.org>
13279 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
13280 * doc/gnulib.texi: Add section for warnings.
13282 2008-11-11 Bruno Haible <bruno@clisp.org>
13284 * lib/sockets.h: Add a comment.
13286 2008-11-11 Karl Berry <karl@gnu.org>
13288 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
13290 2008-11-11 Eric Blake <ebb9@byu.net>
13292 fdl.texi: avoid git symlinks
13293 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
13295 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13297 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
13299 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13301 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
13302 (gl_WARN_ADD): Substitute $2 if literal.
13304 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13306 * m4/warning.m4: Remove.
13308 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13310 * m4/warnings.m4: Almost complete rewrite. :-)
13312 2008-11-10 Simon Josefsson <simon@josefsson.org>
13314 * modules/warnings: New module.
13315 * m4/warnings.m4: New file.
13316 * MODULES.html.sh: Mention warnings module.
13317 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
13318 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13320 2008-11-10 Eric Blake <ebb9@byu.net>
13322 fdl.texi: make a symlink to the latest version
13323 * doc/standards.texi: Revert today's earlier change.
13324 * doc/fdl-1.2.texi: Rename from old fdl.texi...
13325 * doc/fdl.texi: ...and replace this with a symlink to the newer
13328 2008-11-10 Bruno Haible <bruno@clisp.org>
13330 * tests/test-select-fd.c (main): Accept the result file name as fourth
13332 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
13333 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
13335 2008-11-10 Bruno Haible <bruno@clisp.org>
13337 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
13338 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
13339 as autoconf-substituted macros.
13340 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
13341 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
13342 gl_NETDB_H_DEFAULTS. Set these variables.
13343 * modules/netdb (Makefile.am): Substitute these variables.
13345 2008-11-10 Eric Blake <ebb9@byu.net>
13347 standards.texi: include correct file for FDL 1.3
13348 * doc/standards.texi (GNU Free Documentation License): Change
13349 include file to pull in FDL 1.3, not 1.2.
13351 fdl.texi: revert accidental change to license
13352 * doc/fdl.texi: This is FDL 1.2, not 1.3.
13354 2008-11-10 Bruno Haible <bruno@clisp.org>
13356 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
13357 cross-compiling guesses also when the native compile gives no result.
13359 2008-11-10 Bruno Haible <bruno@clisp.org>
13361 * lib/spawni.c (__spawni): Force variable into the stack.
13363 2008-11-10 Bruno Haible <bruno@clisp.org>
13365 Add support for Haiku.
13366 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
13367 glibc and BeOS, but also on Haiku.
13368 * lib/fpurge.c (fpurge): Likewise.
13369 * lib/freadable.c (freadable): Likewise.
13370 * lib/freadahead.c (freadahead): Likewise.
13371 * lib/freading.c (freading): Likewise.
13372 * lib/freadptr.c (freadptr): Likewise.
13373 * lib/freadseek.c (freadptrinc): Likewise.
13374 * lib/fseeko.c (rpl_fseeko): Likewise.
13375 * lib/fseterr.c (fseterr): Likewise.
13376 * lib/fwritable.c (fwritable): Likewise.
13377 * lib/fwriting.c (fwriting): Likewise.
13378 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
13380 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
13382 * lib/config.charset: Treat Haiku like BeOS.
13384 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
13386 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
13387 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
13389 2008-11-08 Bruno Haible <bruno@clisp.org>
13391 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
13394 2008-11-08 Bruno Haible <bruno@clisp.org>
13396 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
13398 2008-11-08 Bruno Haible <bruno@clisp.org>
13400 * tests/test-select-fd.c: New file.
13401 * tests/test-select-in.sh: New file.
13402 * tests/test-select-out.sh: New file.
13403 * tests/test-select-stdin.c: New file.
13404 * modules/select-tests (Files): Add the new files.
13405 (Depends-on): Add gettimeofday.
13406 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
13407 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
13408 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
13410 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
13411 Bruno Haible <bruno@clisp.org>
13413 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
13415 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
13417 * build-aux/pmccabe2html: Added support for C++ source files.
13419 2008-11-05 Ben Pfaff <blp@gnu.org>
13421 Fix lib/close.c build on Windows.
13422 * modules/close (Files): Add lib/w32sock.h.
13424 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
13426 Accept Bison's NEWS format.
13427 * build-aux/announce-gen (print_news_deltas): Tweak
13430 2008-11-04 Bruno Haible <bruno@clisp.org>
13432 * modules/random_r (Maintainer): Add glibc.
13434 2008-11-04 Simon Josefsson <simon@josefsson.org>
13436 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
13437 by karl@freefriends.org (Karl Berry).
13438 * doc/alloca.texi: Likewise.
13439 * doc/c-ctype.texi: Likewise.
13440 * doc/c-strcase.texi: Likewise.
13441 * doc/c-strcaseeq.texi: Likewise.
13442 * doc/c-strcasestr.texi: Likewise.
13443 * doc/c-strstr.texi: Likewise.
13444 * doc/c-strtod.texi: Likewise.
13445 * doc/c-strtold.texi: Likewise.
13446 * doc/ctime.texi: Likewise.
13447 * doc/error.texi: Likewise.
13448 * doc/fdl.texi: Likewise.
13449 * doc/gcd.texi: Likewise.
13450 * doc/getdate.texi: Likewise.
13451 * doc/gnulib-intro.texi: Likewise.
13452 * doc/gnulib-tool.texi: Likewise.
13453 * doc/gnulib.texi: Likewise.
13454 * doc/inet_ntoa.texi: Likewise.
13455 * doc/maintain.texi: Likewise.
13456 * doc/make-stds.texi: Likewise.
13457 * doc/quote.texi: Likewise.
13458 * doc/regexprops-generic.texi: Likewise.
13459 * doc/standards.texi: Likewise.
13460 * doc/verify.texi: Likewise.
13461 * doc/visibility.texi: Likewise.
13462 * doc/gnulib.texi (GNU Free Documentation License): Include
13463 fdl-1.3.texi instead of fdl.texi.
13465 2008-11-04 Simon Josefsson <simon@josefsson.org>
13467 * doc/fdl-1.3.texi: New file, from
13468 <http://www.gnu.org/licenses/fdl-1.3.texi>.
13469 * modules/fdl-1.3: Add.
13470 * MODULES.html.sh: Add fdl-1.3.
13472 2008-11-03 Bruno Haible <bruno@clisp.org>
13474 Make determination of absolute name of header file work with AIX xlc.
13475 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
13476 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
13478 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13479 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13481 2008-11-03 Simon Josefsson <simon@josefsson.org>
13483 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
13484 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
13487 2008-11-02 Bruno Haible <bruno@clisp.org>
13489 Mark 'strpbrk' obsolete.
13490 * modules/strpbrk (Status, Notice): New sections.
13491 * modules/strtok_r (Depends-on): Add strpbrk.
13493 2008-11-02 Bruno Haible <bruno@clisp.org>
13495 Mark 'strdup' obsolete.
13496 * modules/strdup (Status, Notice): New sections.
13497 * modules/findprog (Depends-on): Add strdup.
13498 * modules/getaddrinfo (Depends-on): Likewise.
13499 * modules/localename (Depends-on): Likewise.
13500 * modules/relocatable-lib (Depends-on): Likewise.
13501 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
13502 * modules/relocatable-prog (Depends-on): Likewise.
13503 * modules/trim (Depends-on): Likewise.
13504 * modules/unictype/gen-ctype (Depends-on): Likewise.
13505 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13507 2008-11-02 Bruno Haible <bruno@clisp.org>
13509 Mark 'strcspn' obsolete.
13510 * modules/strcspn (Status, Notice): New sections.
13512 2008-11-02 Bruno Haible <bruno@clisp.org>
13514 Mark 'rmdir' obsolete.
13515 * modules/rmdir (Status, Notice): New sections.
13516 * modules/clean-temp (Depends-on): Add rmdir.
13517 * modules/openat (Depends-on): Likewise.
13519 2008-11-02 Bruno Haible <bruno@clisp.org>
13521 Mark 'raise' obsolete.
13522 * modules/raise (Status, Notice): New sections.
13523 (Include): Specify <signal.h>.
13524 * modules/stdio (Depends-on): Add raise.
13525 * modules/write (Depends-on): Likewise.
13527 2008-11-02 Bruno Haible <bruno@clisp.org>
13529 Mark 'memset' obsolete.
13530 * modules/memset (Status, Notice): New sections.
13532 2008-11-02 Bruno Haible <bruno@clisp.org>
13534 Mark 'memmove' obsolete.
13535 * modules/memmove (Status, Notice): New sections.
13536 * modules/argp (Depends-on): Add memmove.
13537 * modules/argz (Depends-on): Likewise.
13538 * modules/canonicalize (Depends-on): Likewise.
13539 * modules/canonicalize-lgpl (Depends-on): Likewise.
13540 * modules/fts (Depends-on): Likewise.
13541 * modules/getcwd (Depends-on): Likewise.
13542 * modules/human (Depends-on): Likewise.
13543 * modules/regex (Depends-on): Likewise.
13544 * modules/striconveh (Depends-on): Likewise.
13545 * modules/trim (Depends-on): Likewise.
13546 * modules/unistr/u8-move (Depends-on): Likewise.
13547 * modules/unistr/u16-move (Depends-on): Likewise.
13548 * modules/unistr/u32-move (Depends-on): Likewise.
13550 2008-11-02 Bruno Haible <bruno@clisp.org>
13552 Mark 'memcpy' obsolete.
13553 * modules/memcpy (Status, Notice): New sections.
13555 2008-11-02 Bruno Haible <bruno@clisp.org>
13557 Mark 'memcmp' obsolete.
13558 * modules/memcmp (Status, Notice): New sections.
13559 * modules/argmatch (Depends-on): Add memchr.
13560 * modules/backupfile (Depends-on): Likewise.
13561 * modules/c-strcasestr (Depends-on): Likewise.
13562 * modules/crypto/des (Depends-on): Likewise.
13563 * modules/csharpcomp (Depends-on): Likewise.
13564 * modules/fnmatch (Depends-on): Likewise.
13565 * modules/git-merge-changelog (Depends-on): Likewise.
13566 * modules/isnand (Depends-on): Likewise.
13567 * modules/isnand-nolibm (Depends-on): Likewise.
13568 * modules/isnanf (Depends-on): Likewise.
13569 * modules/isnanf-nolibm (Depends-on): Likewise.
13570 * modules/isnanl (Depends-on): Likewise.
13571 * modules/isnanl-nolibm (Depends-on): Likewise.
13572 * modules/mbchar (Depends-on): Likewise.
13573 * modules/memcoll (Depends-on): Likewise.
13574 * modules/quotearg (Depends-on): Likewise.
13575 * modules/regex (Depends-on): Likewise.
13576 * modules/relocatable-prog (Depends-on): Likewise.
13577 * modules/same (Depends-on): Likewise.
13578 * modules/signbit (Depends-on): Likewise.
13579 * modules/strcasestr-simple (Depends-on): Likewise.
13580 * modules/unictype/gen-ctype (Depends-on): Likewise.
13581 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13582 * modules/uniname/uniname (Depends-on): Likewise.
13583 * modules/unistr/u8-cmp (Depends-on): Likewise.
13585 2008-11-02 Bruno Haible <bruno@clisp.org>
13587 Mark 'memchr' obsolete.
13588 * modules/memchr (Status, Notice): New sections.
13589 * modules/argp (Depends-on): Add memchr.
13590 * modules/base64 (Depends-on): Likewise.
13591 * modules/c-strcasestr (Depends-on): Likewise.
13592 * modules/chdir-long (Depends-on): Likewise.
13593 * modules/fnmatch (Depends-on): Likewise.
13594 * modules/getsubopt (Depends-on): Likewise.
13595 * modules/git-merge-changelog (Depends-on): Likewise.
13596 * modules/glob (Depends-on): Likewise.
13597 * modules/strcasestr-simple (Depends-on): Likewise.
13598 * modules/strnlen (Depends-on): Likewise.
13600 2008-11-02 Bruno Haible <bruno@clisp.org>
13602 Mark 'atexit' obsolete.
13603 * modules/atexit (Status, Notice): New sections.
13604 * modules/chdir-long (Depends-on): Add atexit.
13605 * modules/wait-process (Depends-on): Likewise.
13607 2008-11-02 Bruno Haible <bruno@clisp.org>
13609 * gnulib-tool: New option --with-obsolete.
13610 (func_usage): Document it.
13611 (func_modules_transitive_closure): Drop obsolete dependencies if
13612 incobsolete is not true.
13613 (func_import): Read and save the incobsolete variable to the cache.
13615 2008-11-02 Bruno Haible <bruno@clisp.org>
13617 * modules/TEMPLATE-EXTENDED: New field 'Status'.
13618 * gnulib-tool: New option --extract-status.
13619 (func_usage): Document it.
13620 (sed_extract_prog): Recognize it.
13621 (func_get_status): New function.
13623 2008-10-30 Simon Josefsson <simon@josefsson.org>
13625 * modules/sockets (License): Change from LGPL to LGPLv2+.
13627 2008-10-28 Simon Josefsson <simon@josefsson.org>
13629 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
13631 2008-10-28 Simon Josefsson <simon@josefsson.org>
13633 * MODULES.html.sh (Support for systems lacking POSIX:2001):
13634 Mention times and sys_times.
13635 * modules/sys_times, modules/sys_times-tests: New modules.
13636 * modules/times, modules/times-tests: Likewise
13637 * m4/sys_times_h.m4: New file.
13638 * lib/sys_times.in.h: Likewise
13639 * lib/times.c: Likewise.
13640 * tests/test-sys_times.c: Likewise.
13641 * tests/test-times.c: Likewise.
13642 * doc/posix-headers/sys_times.texi: Update.
13643 * doc/posix-functions/times.texi: Update.
13645 2008-10-28 Jim Meyering <meyering@redhat.com>
13647 * modules/tempname (Depends-on): Add lstat.
13649 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
13651 2008-10-28 Simon Josefsson <simon@josefsson.org>
13653 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
13654 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
13655 using idiom used elsewhere in gnulib.
13657 2008-10-27 Jim Meyering <meyering@redhat.com>
13659 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
13661 2008-10-27 Simon Josefsson <simon@josefsson.org>
13663 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
13664 TESTS_ENVIRONMENT, for shell scripts that needs to call built
13666 * tests/test-argp-2.sh: Use $EXEEXT when needed.
13668 2008-10-27 Simon Josefsson <simon@josefsson.org>
13670 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
13672 2008-10-27 Bruno Haible <bruno@clisp.org>
13674 * tests/test-lstat.c: Include <stdio.h>.
13676 2008-10-27 Simon Josefsson <simon@josefsson.org>
13678 * modules/lstat-tests: New module.
13679 * tests/test-lstat.c: New file.
13681 2008-10-26 Jim Meyering <meyering@redhat.com>
13683 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
13685 2008-10-26 Simon Josefsson <simon@josefsson.org>
13686 Bruno Haible <bruno@clisp.org>
13688 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
13689 * modules/configmake (Include): Add a note that the include must come
13690 after all system headers.
13691 * lib/javaversion.c: Include configmake.h after all other includes.
13693 2008-10-26 Bruno Haible <bruno@clisp.org>
13695 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
13696 HAVE_STRUCT_RANDOM_DATA to 1.
13697 (gl_STDLIB_H): Simplify.
13699 2008-10-26 Simon Josefsson <simon@josefsson.org>
13701 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
13702 substitute HAVE_STRUCT_RANDOM_DATA.
13703 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
13705 * modules/stdlib (Makefile.am): Substitute
13706 HAVE_STRUCT_RANDOM_DATA.
13708 2008-10-26 Simon Josefsson <simon@josefsson.org>
13710 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
13711 * doc/gnulib-intro.texi (Copyright): Likewise.
13713 2008-10-26 Simon Josefsson <simon@josefsson.org>
13715 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
13718 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
13719 Bruno Haible <bruno@clisp.org>
13721 * lib/unistd.in.h: Include <winsock2.h>.
13722 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
13723 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
13724 Provide dummy declarations.
13725 (gethostname): Override.
13726 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
13727 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
13728 gl_PREREQ_SYS_H_WINSOCK2.
13729 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
13730 * doc/posix-functions/gethostname.texi: More details.
13732 2008-10-25 Bruno Haible <bruno@clisp.org>
13734 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
13735 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
13736 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
13738 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
13740 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
13741 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
13742 gl_UNISTD_H_DEFAULTS.
13744 2008-10-25 Eric Blake <ebb9@byu.net>
13746 signbit: avoid spurious compiler failure
13747 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
13748 declarations inside function.
13750 2008-10-24 Simon Josefsson <simon@josefsson.org>
13751 Bruno Haible <bruno@clisp.org>
13753 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
13754 * modules/random_r (Depends-on): Add stdint.
13756 2008-10-24 Bruno Haible <bruno@clisp.org>
13758 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
13760 * modules/strerror (License): Likewise.
13762 2008-10-24 Jim Meyering <meyering@redhat.com>
13764 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
13765 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
13767 2008-10-24 Eric Blake <ebb9@byu.net>
13769 getgroups: fix compilation when getgroups is available
13770 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
13771 but with <config.h> override of getgroups disabled.
13773 2008-10-24 Simon Josefsson <simon@josefsson.org>
13775 * doc/gnulib.texi (Header files): Add note about C++ problems.
13776 Explained by Bruno Haible <bruno@clisp.org>.
13778 2008-10-23 Bruno Haible <bruno@clisp.org>
13780 Define a dummy SA_NODEFER macro on Interix.
13781 * lib/signal.in.h (SA_NODEFER): Define fallback.
13782 Reported by Aleksey Cheusov <cheusov@tut.by> via
13783 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
13785 2008-10-23 Bruno Haible <bruno@clisp.org>
13787 * modules/freadahead (License): Change to LGPLv2+.
13788 Suggested by Simon Josefsson.
13790 2008-10-23 Jim Meyering <meyering@redhat.com>
13792 random_r: new module
13793 * modules/random_r: New file.
13794 * m4/random_r.m4: New file.
13795 * lib/random_r.c: New file, from glibc.
13796 * modules/random_r-tests: New file.
13797 * tests/test-random_r.c: New file.
13798 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
13800 (RAND_MAX): Define.
13801 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
13802 * modules/stdlib: Substitute them, too.
13803 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
13804 * doc/glibc-functions/initstate_r.texi: Mention the new module.
13805 * doc/glibc-functions/random_r.texi: Likewise.
13806 * doc/glibc-functions/setstate_r.texi: Likewise.
13807 * doc/glibc-functions/srandom_r.texi: Likewise.
13808 * config/srclist.txt: Mention it.
13810 2008-10-23 David Lutterkort <lutter@redhat.com>
13812 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
13815 2008-10-23 Jim Meyering <meyering@redhat.com>
13817 selinux-h: mark parameters of stub functions as intentionally unused
13818 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
13819 * lib/se-context.in.h: Likewise.
13821 2008-10-22 Simon Josefsson <simon@josefsson.org>
13823 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
13825 2008-10-22 Simon Josefsson <simon@josefsson.org>
13827 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
13829 2008-10-22 Eric Blake <ebb9@byu.net>
13831 glthread/thread: avoid compiler warning
13832 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
13833 Add unreachable abort to silence compiler.
13835 2008-10-22 Eric Blake <ebb9@byu.net>
13837 netdb: also supply struct addrinfo for cygwin 1.5.x
13838 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
13840 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
13842 * doc/posix-headers/netdb.texi (netdb.h): Document this.
13844 2008-10-22 Bruno Haible <bruno@clisp.org>
13846 * users.txt: Update entry about pspp.
13848 2008-10-21 Bruno Haible <bruno@clisp.org>
13851 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
13852 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
13855 * lib/ioctl.c (ioctl): Don't undefine.
13856 * lib/socket.c (socket): Don't undefine.
13858 Remove unused module indicator macros.
13859 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
13860 GNULIB_$1 as a C macro.
13862 * doc/posix-functions/close.texi: Undo last change.
13863 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
13866 2008-10-21 Bruno Haible <bruno@clisp.org>
13868 Add gethostname() declaration to <unistd.h>.
13869 * lib/unistd.in.h (gethostname): New declaration.
13870 * lib/gethostname.c: Include <unistd.h>.
13871 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
13872 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
13873 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
13874 and HAVE_GETHOSTNAME.
13875 * modules/gethostname (Depends-on): Add unistd.
13876 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
13877 (Include): Specify <unistd.h>.
13878 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
13880 * tests/test-gethostname.c: Include <unistd.h> first.
13882 2008-10-21 Bruno Haible <bruno@clisp.org>
13884 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
13885 * modules/select-tests (Depends-on): Likewise.
13886 Reported by Simon Josefsson.
13888 2008-10-21 Simon Josefsson <simon@josefsson.org>
13890 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
13891 * lib/accept.c: New file, based on winsock.c.
13892 * lib/bind.c: New file, based on winsock.c.
13893 * lib/connect.c: New file, based on winsock.c.
13894 * lib/getpeername.c: New file, based on winsock.c.
13895 * lib/getsockname.c: New file, based on winsock.c.
13896 * lib/getsockopt.c: New file, based on winsock.c.
13897 * lib/ioctl.c: New file, based on winsock.c.
13898 * lib/listen.c: New file, based on winsock.c.
13899 * lib/recv.c: New file, based on winsock.c.
13900 * lib/recvfrom.c: New file, based on winsock.c.
13901 * lib/send.c: New file, based on winsock.c.
13902 * lib/sendto.c: New file, based on winsock.c.
13903 * lib/setsockopt.c: New file, based on winsock.c.
13904 * lib/shutdown.c: New file, based on winsock.c.
13905 * lib/socket.c: New file, based on winsock.c.
13906 * lib/w32sock.h: New file, based on winsock.c.
13907 * lib/winsock.c: Remove file.
13908 * modules/accept: Likewise.
13909 * modules/bind: Likewise.
13910 * modules/connect: Likewise.
13911 * modules/getpeername: Likewise.
13912 * modules/getsockname: Likewise.
13913 * modules/getsockopt: Likewise.
13914 * modules/ioctl: Likewise.
13915 * modules/listen: Likewise.
13916 * modules/recv: Likewise.
13917 * modules/recvfrom: Likewise.
13918 * modules/send: Likewise.
13919 * modules/sendto: Likewise.
13920 * modules/setsockopt: Likewise.
13921 * modules/shutdown: Likewise.
13922 * modules/socket: Use socket.c instead of winsock.c.
13923 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
13924 * doc/posix-functions/accept.texi: Doc fix.
13925 * doc/posix-functions/bind.texi: Doc fix.
13926 * doc/posix-functions/close.texi: Doc fix.
13927 * doc/posix-functions/connect.texi: Doc fix.
13928 * doc/posix-functions/getpeername.texi: Doc fix.
13929 * doc/posix-functions/getsockname.texi: Doc fix.
13930 * doc/posix-functions/getsockopt.texi: Doc fix.
13931 * doc/posix-functions/ioctl.texi: Doc fix.
13932 * doc/posix-functions/listen.texi: Doc fix.
13933 * doc/posix-functions/recv.texi: Doc fix.
13934 * doc/posix-functions/recvfrom.texi: Doc fix.
13935 * doc/posix-functions/send.texi: Doc fix.
13936 * doc/posix-functions/sendto.texi: Doc fix.
13937 * doc/posix-functions/setsockopt.texi: Doc fix.
13938 * doc/posix-functions/shutdown.texi: Doc fix.
13939 * doc/posix-functions/socket.texi: Doc fix.
13941 2008-10-20 Bruno Haible <bruno@clisp.org>
13943 Take into account the role of SIGABRT_COMPAT on Windows 2008.
13944 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
13945 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
13946 as an alias for SIGABRT.
13947 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
13948 (sigaction): Map it to SIGABRT.
13949 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
13951 2008-10-20 Bruno Haible <bruno@clisp.org>
13953 * lib/fts.c: Don't include lstat.h.
13954 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
13956 Move the lstat() declaration to <sys/stat.h>.
13957 * lib/lstat.h: Remove file.
13958 * lib/sys_stat.in.h: Add special invocation convention.
13959 (lstat): New declaration.
13960 * lib/lstat.c (orig_lstat): New function.
13961 (rpl_lstat): Use orig_lstat instead of lstat.
13962 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
13963 AC_C_INLINE. Set REPLACE_LSTAT.
13964 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
13966 * modules/lstat (Files): Remove lib/lstat.h.
13967 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
13968 (Include): Specify <sys/stat.h> instead of lstat.h.
13969 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
13971 * NEWS: Mention the change.
13973 2008-10-20 Bruno Haible <bruno@clisp.org>
13975 * modules/posix_spawn-tests: New file.
13976 * tests/test-posix_spawn3.c: New file.
13978 2008-10-20 Bruno Haible <bruno@clisp.org>
13980 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
13981 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
13982 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
13983 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
13984 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
13986 2008-10-20 Bruno Haible <bruno@clisp.org>
13988 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
13989 of posix_spawn on AIX 5.3.
13991 2008-10-20 Bruno Haible <bruno@clisp.org>
13993 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
13995 2008-10-20 Bruno Haible <bruno@clisp.org>
13997 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
13998 of AC_LANG_PROGRAM.
14000 2008-10-20 Simon Josefsson <simon@josefsson.org>
14002 * lib/netdb.in.h: Don't define GNU specific constants until they
14003 are supported or needed. Reported by Bruno Haible
14006 2008-10-20 Simon Josefsson <simon@josefsson.org>
14008 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
14010 2008-10-20 Simon Josefsson <simon@josefsson.org>
14012 * lib/getaddrinfo.h: Remove file.
14013 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
14014 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
14015 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
14016 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
14017 * modules/netdb: Substitute GNULIB_GETADDRINFO.
14018 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
14019 * tests/test-getaddrinfo.c: Likewise.
14020 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
14021 * NEWS: Mention change.
14023 2008-10-19 Bruno Haible <bruno@clisp.org>
14025 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
14027 2008-10-19 Bruno Haible <bruno@clisp.org>
14029 * lib/wait-process.c: Include simply <sys/wait.h>.
14030 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
14031 WIFSTOPPED): Remove fallback definitions.
14032 * modules/wait-process (Depends-on): Add sys_wait.
14034 New module 'sys_wait'.
14035 * modules/sys_wait: New file.
14036 * lib/sys_wait.in.h: New file, partially copied from
14037 lib/wait-process.c.
14038 * m4/sys_wait_h.m4: New file.
14039 * doc/posix-headers/sys_wait.texi: Mention the new module.
14041 2008-10-19 Bruno Haible <bruno@clisp.org>
14043 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
14045 2008-10-19 Bruno Haible <bruno@clisp.org>
14047 Assume that waitpid() fills an 'int' status, not a 'union wait'.
14048 * lib/wait-process.c (WAIT_T): Remove type.
14049 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
14050 (wait_subprocess): Update.
14052 2008-10-19 Bruno Haible <bruno@clisp.org>
14054 New module 'atoll'.
14055 * modules/atoll: New file.
14056 * lib/stdlib.in.h (atoll): New declaration.
14057 * lib/atoll.c: New file, from glibc with modifications.
14058 * m4/atoll.m4: New file.
14059 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
14061 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
14062 * doc/posix-functions/atoll.texi: Mention the new module.
14064 2008-10-19 Bruno Haible <bruno@clisp.org>
14066 Add strtoull() declaration to <stdlib.h>.
14067 * lib/stdlib.in.h (strtoull): New declaration.
14068 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
14070 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
14072 * modules/strtoull (Depends-on): Add stdlib.
14073 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14074 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
14077 2008-10-19 Bruno Haible <bruno@clisp.org>
14079 Add strtoll() declaration to <stdlib.h>.
14080 * lib/stdlib.in.h (strtoll): New declaration.
14081 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
14083 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
14085 * modules/strtoll (Depends-on): Add stdlib.
14086 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14087 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
14089 2008-10-19 Bruno Haible <bruno@clisp.org>
14091 * modules/bcopy (Depends-on): Add strings.
14092 (Include): Specify <strings.h>.
14094 2008-10-19 Bruno Haible <bruno@clisp.org>
14096 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
14098 2008-10-19 Bruno Haible <bruno@clisp.org>
14100 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
14101 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
14104 2008-10-19 Bruno Haible <bruno@clisp.org>
14106 * lib/atanl.c: Don't include isnanl.h.
14107 * lib/cosl.c: Likewise.
14108 * lib/ldexpl.c: Likewise.
14109 * lib/logl.c: Likewise.
14110 * lib/sinl.c: Likewise.
14111 * lib/sqrtl.c: Likewise.
14112 * lib/tanl.c: Likewise.
14114 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
14115 * lib/isnanf.h: Remove file.
14116 * lib/isnand.h: Remove file.
14117 * lib/isnanl.h: Remove file.
14118 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
14119 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
14121 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
14122 HAVE_ISNANF, don't define it as a C macro.
14123 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
14124 HAVE_ISNAND, don't define it as a C macro.
14125 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
14126 HAVE_ISNANL, don't define it as a C macro.
14127 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
14129 * modules/isnanf (Files): Remove lib/isnanf.h.
14130 (Depends-on): Add math.
14131 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14132 (Include): Specify <math.h> instead of isnanf.h.
14133 * modules/isnand (Files): Remove lib/isnand.h.
14134 (Depends-on): Add math.
14135 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14136 (Include): Specify <math.h> instead of isnand.h.
14137 * modules/isnanl (Files): Remove lib/isnanl.h.
14138 (Depends-on): Add math.
14139 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14140 (Include): Specify <math.h> instead of isnanl.h.
14141 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
14143 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
14144 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
14145 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
14146 * NEWS: Mention the change.
14148 2008-10-18 Bruno Haible <bruno@clisp.org>
14150 Add getusershell(), setusershell(), endusershell() declarations to
14152 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
14154 * lib/getusershell.c: Include unistd.h.
14155 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
14156 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
14158 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
14159 and HAVE_GETUSERSHELL.
14160 * modules/getusershell (Depends-on): Add unistd, extensions.
14161 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14162 (Include): Specify <unistd.h>.
14163 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
14166 2008-10-18 Bruno Haible <bruno@clisp.org>
14168 Add a getloadavg() declaration to <stdlib.h>.
14169 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
14170 getloadavg declaration.
14171 (getloadavg): New declaration.
14172 * lib/getloadavg.c: Include <stdlib.h> first.
14173 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
14174 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
14175 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
14176 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
14177 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
14178 * modules/getloadavg (Depends-on): Add stdlib, extensions.
14179 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14180 (Include): Specify <stdlib.h>.
14181 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
14182 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
14184 2008-10-18 Bruno Haible <bruno@clisp.org>
14186 * lib/dirchownmod.c: Don't include lchmod.h.
14188 Move the lchmod() declaration to <sys/stat.h>.
14189 * lib/lchmod.h: Remove file.
14190 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
14191 (lchmod): New declaration, moved here from lib/lchown.h.
14192 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
14193 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
14194 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
14196 * modules/lchmod (Files): Remove lib/lchmod.h.
14197 (Depends-on): Add sys_stat, extensions.
14198 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
14199 (Include): Specify <sys/stat.h> instead of lchmod.h.
14200 * modules/sys_stat (Depends-on): Add link-warning.
14201 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
14202 definition of GL_LINK_WARNING.
14203 * NEWS: Mention the change.
14205 2008-10-18 Bruno Haible <bruno@clisp.org>
14207 * lib/fchdir.c: Don't include dirfd.h.
14208 * lib/fts.c: Likewise.
14209 * lib/getcwd.c: Likewise.
14210 * lib/glob.c: Likewise.
14212 Move the dirfd() declaration to <dirent.h>.
14213 * lib/dirfd.h: Remove file.
14214 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
14215 (dirfd): New declaration.
14216 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
14217 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
14218 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
14220 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
14222 * modules/dirfd (Files): Remove lib/dirfd.h.
14223 (Depends-on): Add dirent, extensions.
14224 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
14225 (Include): Specify <dirent.h> instead of dirfd.h.
14226 * modules/dirent (Depends-on): Add link-warning.
14227 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
14228 definition of GL_LINK_WARNING.
14229 * NEWS: Mention the change.
14231 2008-10-18 Bruno Haible <bruno@clisp.org>
14233 Move the euidaccess() declaration to <unistd.h>.
14234 * lib/euidaccess.h: Remove file.
14235 * lib/unistd.in.h (euidaccess): New declaration.
14236 * lib/euidaccess.c: Don't include euidaccess.h.
14237 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
14238 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
14239 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
14240 and HAVE_EUIDACCESS.
14241 * modules/euidaccess (Files): Remove lib/euidaccess.h.
14242 (Depends-on): Add unistd.
14243 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14244 (Include): Specify <unistd.h> instead of euidaccess.h.
14245 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
14247 * NEWS: Mention the change.
14249 2008-10-18 Bruno Haible <bruno@clisp.org>
14251 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
14253 Move the getdomainname() declaration to <unistd.h>.
14254 * lib/getdomainname.h: Remove file.
14255 * lib/unistd.in.h (getdomainname): New declaration.
14256 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
14257 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14258 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
14259 HAVE_GETDOMAINNAME.
14260 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14261 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
14262 * modules/getdomainname (Files): Remove lib/getdomainname.h.
14263 (Depends-on): Add unistd, extensions.
14264 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14265 (Includes): Specify <unistd.h> instead of getdomainname.h.
14266 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
14267 HAVE_GETDOMAINNAME.
14268 * NEWS: Mention the change.
14270 2008-10-18 Bruno Haible <bruno@clisp.org>
14272 * modules/dirent: New file.
14273 * m4/dirent_h.m4: New file.
14274 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
14275 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
14276 * modules/fchdir (Files): Remove lib/dirent.in.h.
14277 (Depends-on): Add dirent.
14278 (Makefile.am): Move rules to modules/dirent.
14279 * doc/posix-headers/dirent.texi: Mention the new module.
14281 2008-10-18 Bruno Haible <bruno@clisp.org>
14283 Avoid -Wunused-parameter warnings in public gnulib header files.
14284 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
14286 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
14288 2008-10-18 Bruno Haible <bruno@clisp.org>
14290 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
14291 * doc/glibc-functions/error.texi: Mention the module 'error'.
14292 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
14293 * doc/glibc-functions/getdomainname.texi: Mention the module
14295 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
14296 * doc/glibc-functions/getpagesize.texi: Mention the module
14298 * doc/glibc-functions/getusershell.texi: Mention the module
14300 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
14301 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
14302 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
14303 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
14304 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
14305 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
14306 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
14307 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
14308 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
14309 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
14310 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
14311 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
14312 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
14313 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
14315 2008-10-17 Bruno Haible <bruno@clisp.org>
14317 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
14318 HP-UX and IRIX, use -0.0L.
14319 * tests/test-ceill.c (minus_zero): Likewise.
14320 * tests/test-floorl.c (minus_zero): Likewise.
14321 * tests/test-frexpl.c (minus_zero): Likewise.
14322 * tests/test-isnan.c (minus_zerol): Likewise.
14323 * tests/test-isnanl.h (minus_zero): Likewise.
14324 * tests/test-ldexpl.c (minus_zero): Likewise.
14325 * tests/test-roundl.c (minus_zero): Likewise.
14326 * tests/test-signbit.c (minus_zerol): Likewise.
14327 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14328 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14329 * tests/test-truncl.c (minus_zero): Likewise.
14330 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14331 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14332 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
14333 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14335 2008-10-17 Bruno Haible <bruno@clisp.org>
14337 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
14338 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
14339 that it gets activated only for gcc >= 3.0.
14340 * lib/dirent.in.h: Likewise.
14341 * lib/errno.in.h: Likewise.
14342 * lib/fcntl.in.h: Likewise.
14343 * lib/float.in.h: Likewise.
14344 * lib/iconv.in.h: Likewise.
14345 * lib/inttypes.in.h: Likewise.
14346 * lib/locale.in.h: Likewise.
14347 * lib/math.in.h: Likewise.
14348 * lib/netdb.in.h: Likewise.
14349 * lib/netinet_in.in.h: Likewise.
14350 * lib/search.in.h: Likewise.
14351 * lib/signal.in.h: Likewise.
14352 * lib/spawn.in.h: Likewise.
14353 * lib/stdarg.in.h: Likewise.
14354 * lib/stdint.in.h: Likewise.
14355 * lib/stdio.in.h: Likewise.
14356 * lib/stdlib.in.h: Likewise.
14357 * lib/string.in.h: Likewise.
14358 * lib/strings.in.h: Likewise.
14359 * lib/sys_file.in.h: Likewise.
14360 * lib/sys_ioctl.in.h: Likewise.
14361 * lib/sys_select.in.h: Likewise.
14362 * lib/sys_socket.in.h: Likewise.
14363 * lib/sys_stat.in.h: Likewise.
14364 * lib/sys_time.in.h: Likewise.
14365 * lib/sysexits.in.h: Likewise.
14366 * lib/time.in.h: Likewise.
14367 * lib/unistd.in.h: Likewise.
14368 * lib/wchar.in.h: Likewise.
14369 * lib/wctype.in.h: Likewise.
14370 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14372 2008-10-17 Jim Meyering <meyering@redhat.com>
14374 ignore-value: don't depend on inline module
14375 * modules/ignore-value (Depends-on): Remove 'inline'.
14376 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
14377 Suggestion from Bruno Haible.
14379 2008-10-17 Bruno Haible <bruno@clisp.org>
14381 New implementation of condition variables for Win32.
14382 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
14383 (gl_linked_waitqueue_t): New type.
14384 (gl_cond_t): Use it.
14385 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
14386 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14387 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
14388 (glthread_cond_init_func, glthread_cond_wait_func,
14389 glthread_cond_timedwait_func, glthread_cond_signal_func,
14390 glthread_cond_broadcast_func, glthread_cond_destroy_func):
14391 Reimplemented on the basis of gl_linked_waitqueue_t.
14392 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
14394 (gl_rwlock_t): Update.
14395 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
14397 2008-10-17 Simon Josefsson <simon@josefsson.org>
14399 * modules/recvfrom (Depends-on): Add dependency on getpeername.
14400 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14402 2008-10-17 Jim Meyering <meyering@redhat.com>
14404 ignore-value: new module
14405 * modules/ignore-value: New file.
14406 * lib/ignore-value.h: New file.
14407 * MODULES.html.sh (Compiler warning management): New section,
14408 just for this module. More to come.
14410 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
14412 open-safer.c: avoid 'signed and unsigned in conditional...' warning
14413 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
14414 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
14416 2008-10-16 Jim Meyering <meyering@redhat.com>
14418 openat-die.c: avoid 'no previous prototype' warning
14419 * lib/openat-die.c: Include "openat.h".
14420 Reported by Reuben Thomas <rrt@sc3d.org>.
14422 2008-10-16 Simon Josefsson <simon@josefsson.org>
14424 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
14425 * lib/netdb.in.h: Fix typo.
14426 Reported by Bruno Haible <bruno@clisp.org>
14428 * lib/netdb.in.h: Include sys/socket.h for platforms without
14429 netdb.h, to get structures like hostent on MinGW.
14430 * modules/netdb (Depends-on): Add sys_socket.
14432 2008-10-15 Simon Josefsson <simon@josefsson.org>
14434 * modules/netdb, modules/netdb-tests: New file.
14435 * m4/netdb_h.m4: New file.
14436 * lib/netdb.in.h: Add, currently just an empty file pending
14438 * tests/test-netdb.c: New file.
14439 * doc/posix-headers/netdb.texi: Mention that we replace it if
14441 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14444 2008-10-15 Simon Josefsson <simon@josefsson.org>
14446 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
14449 2008-10-13 Bruno Haible <bruno@clisp.org>
14451 * lib/glthread/cond.c (glthread_cond_wait_func,
14452 glthread_cond_timedwait_func): Add a comment.
14454 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
14456 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
14457 * tests/test-select.c: Likewise,
14459 2008-10-13 Bruno Haible <bruno@clisp.org>
14461 * lib/glthread/cond.c (glthread_cond_wait_func,
14462 glthread_cond_timedwait_func): Fix variable name.
14463 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14465 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
14467 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
14468 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
14469 struct sockaddr.sa_len.
14470 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
14472 2008-10-13 Simon Josefsson <simon@josefsson.org>
14474 * build-aux/pmccabe2html: Add css and css_url parameters.
14476 2008-10-12 Bruno Haible <bruno@clisp.org>
14478 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
14480 Reported by Rainer Tammer <tammer@tammer.net>.
14482 2008-10-12 Bruno Haible <bruno@clisp.org>
14484 Use msvcrt aware primitives for creation/termination of Win32 threads.
14485 * lib/glthread/thread.c: Include <process.h>.
14486 (glthread_create_func): Use _beginthreadex instead of CreateThread.
14487 (wrapper_func): Update signature.
14488 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
14490 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
14491 Bruno Haible <bruno@clisp.org>
14493 Provide a Win32 implementation of the 'cond' module.
14494 * lib/glthread/cond.h [USE_WIN32]: New implementation.
14495 * lib/glthread/cond.c (glthread_cond_init_func,
14496 glthread_cond_wait_func, glthread_cond_timedwait_func,
14497 glthread_cond_signal_func, glthread_cond_broadcast_func,
14498 glthread_cond_destroy_func) [USE_WIN32]: New functions.
14499 * modules/cond (Dependencies): Add gettimeofday.
14501 2008-10-11 Bruno Haible <bruno@clisp.org>
14503 Make sleep work on older versions of mingw.
14504 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
14505 only whether it exists.
14506 * doc/posix-functions/sleep.texi: Mention the problem with older
14509 2008-10-11 Bruno Haible <bruno@clisp.org>
14511 New module 'shutdown'.
14512 * modules/shutdown: New file.
14513 * lib/sys_socket.in.h (shutdown): New declaration.
14514 * lib/winsock.c (shutdown): New function.
14515 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14517 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
14518 * doc/posix-functions/shutdown.texi: Document the new module.
14520 2008-10-11 Jim Meyering <meyering@redhat.com>
14522 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
14524 2008-10-11 Bruno Haible <bruno@clisp.org>
14526 New module 'fclose'.
14527 * modules/fclose: New file.
14528 * lib/stdio.in.h (fclose): New declaration.
14529 * lib/fclose.c: New file.
14530 * m4/fclose.m4: New file.
14531 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
14533 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
14534 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
14536 * modules/close (Depends-on): fclose.
14537 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
14539 2008-10-11 Bruno Haible <bruno@clisp.org>
14541 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
14542 set errno and don't call _close.
14544 2008-10-10 Bruno Haible <bruno@clisp.org>
14546 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
14547 ACL, not afterwards. Fixes test failure on Cygwin.
14549 2008-10-09 Ben Pfaff <blp@gnu.org>
14551 * build-aux/announce-gen: Fix gnulib version related part of usage
14552 message. Die with a useful error message if no tarballs are
14555 2008-10-10 Jim Meyering <meyering@redhat.com>
14557 bootstrap: use git's --depth=N option only if it's supported
14558 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
14559 recognize the --depth option. Reported by Pádraig Brady.
14561 2008-10-09 Bruno Haible <bruno@clisp.org>
14563 New module 'ioctl'.
14564 * modules/ioctl: New file.
14565 * lib/sys_socket.in.h (ioctl): Remove declaration.
14566 * lib/winsock.c: Include <sys/ioctl.h>.
14567 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
14568 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
14569 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
14570 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
14571 * doc/posix-functions/ioctl.texi: Mention the new module.
14573 2008-10-09 Bruno Haible <bruno@clisp.org>
14575 New module 'sys_ioctl'.
14576 * lib/sys_ioctl.in.h: New file.
14577 * m4/sys_ioctl_h.m4: New file.
14578 * modules/sys_ioctl: New file.
14579 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
14581 2008-10-09 Bruno Haible <bruno@clisp.org>
14583 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
14584 * lib/winsock.c: Include <stdarg.h>.
14585 (rpl_ioctl): Change to second argument 'int' and then varargs.
14587 2008-10-09 Bruno Haible <bruno@clisp.org>
14589 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
14590 when the sys_socket module is present and the system has <winsock2.h>.
14592 2008-10-09 Bruno Haible <bruno@clisp.org>
14594 * doc/posix-functions/close.texi: Mention module 'close' instead of
14595 module 'sys_socket'.
14597 2008-10-09 Bruno Haible <bruno@clisp.org>
14599 * doc/glibc-headers/sys_ioctl.texi: New file.
14600 * doc/gnulib.texi: Include it.
14602 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14603 Bruno Haible <bruno@clisp.org>
14605 Combine the two replacements of 'close'.
14606 * lib/sys_socket.in.h (close): Define to a reminder to include
14608 (_gl_close_fd_maybe_socket): New declaration.
14609 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
14610 * lib/winsock.c (close): Remove undefinition.
14611 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
14612 needed for the gnulib module 'close'.
14613 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
14614 define to an error symbol or to a warning, if suitable.
14615 * lib/close.c: Include <sys/socket.h>.
14616 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
14617 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
14618 UNISTD_H_HAVE_WINSOCK2_H.
14619 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
14620 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14621 UNISTD_H_HAVE_WINSOCK2_H.
14622 * modules/sys_socket (Files): Add m4/unistd_h.m4.
14623 (configure.ac): Set a module indicator.
14624 (Makefile.am): Substitute GNULIB_CLOSE.
14625 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
14626 * modules/poll-tests (Depends-on): Add close.
14627 * modules/select-tests (Depends-on): Likewise.
14629 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14630 Bruno Haible <bruno@clisp.org>
14632 New module 'close'.
14633 * modules/close: New file.
14634 * lib/unistd.in.h (close): Move declaration out of the
14635 FCHDIR_REPLACEMENT scope.
14636 (_gl_unregister_fd): New declaration.
14637 * lib/close.c: New file.
14638 * lib/fchdir.c (rpl_close): Remove function.
14639 * m4/close.m4: New file.
14640 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14642 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
14644 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
14646 * modules/fchdir (Depends-on): Add close.
14648 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14649 Bruno Haible <bruno@clisp.org>
14651 * lib/fcntl.in.h (open): Simplify conditionals.
14652 (_gl_register_fd): New declaration.
14653 * lib/fchdir.c (rpl_open): Remove function.
14654 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
14656 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
14657 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14660 2008-10-09 Jim Meyering <meyering@redhat.com>
14662 GNUmakefile: use the more name-space-friendly "_version"
14663 * top/GNUmakefile (_dummy): Update.
14664 (_version): Rename from "version".
14666 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14667 Bruno Haible <bruno@clisp.org>
14669 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
14671 (_gl_register_fd): New function, extracted from rpl_open.
14672 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
14673 (rpl_open, rpl_opendir): Use _gl_register_fd.
14675 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14677 Fix organization of 'open' replacement.
14678 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
14679 (gl_FUNC_OPEN): Use it.
14680 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
14682 2008-10-08 Bruno Haible <bruno@clisp.org>
14684 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
14686 2008-10-08 Simon Josefsson <simon@josefsson.org>
14688 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
14689 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
14692 2008-10-08 Eric Blake <ebb9@byu.net>
14694 GNUmakefile: add 'make version' target
14695 * top/GNUmakefile (_curr-ver): Split version update rules...
14696 (version): ...into a target.
14698 2008-10-07 Bruno Haible <bruno@clisp.org>
14700 Use a more portable replacement expression for -0.0L.
14701 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
14702 instead of -0.0L. Fix m4 quotation.
14704 * tests/test-signbit.c: Include <float.h>.
14705 (minus_zero): New variable.
14706 (test_signbitl): Use minus_zero instead of -zero.
14707 * modules/signbit-tests (Depends-on): Add float.
14709 * tests/test-ceill.c: Include <float.h>.
14710 (zero): Remove variable.
14711 (minus_zero): New variable.
14712 (main): Use minus_zero instead of -zero.
14713 * modules/ceill-tests (Depends-on): Add float.
14715 * tests/test-floorl.c: Include <float.h>.
14716 (zero): Remove variable.
14717 (minus_zero): New variable.
14718 (main): Use minus_zero instead of -zero.
14719 * modules/floorl-tests (Depends-on): Add float.
14721 * tests/test-roundl.c: Include <float.h>.
14722 (zero): Remove variable.
14723 (minus_zero): New variable.
14724 (main): Use minus_zero instead of -zero.
14725 * modules/roundl-tests (Depends-on): Add float.
14727 * tests/test-truncl.c: Include <float.h>.
14728 (zero): Remove variable.
14729 (minus_zero): New variable.
14730 (main): Use minus_zero instead of -zero.
14731 * modules/truncl-tests (Depends-on): Add float.
14733 * tests/test-frexpl.c (zero): Remove variable.
14734 (minus_zero): New variable.
14735 (main): Use minus_zero instead of -zero.
14736 * modules/frexpl-tests (Depends-on): Add float.
14738 * tests/test-isnan.c (zerol): Remove variable.
14739 (minus_zerol): New variable.
14740 (test_long_double): Use minus_zerol instead of -zerol.
14741 * modules/isnan-tests (Depends-on): Add float.
14743 * tests/test-isnanl.h (zero): Remove variable.
14744 (minus_zero): New variable.
14745 (main): Use minus_zero instead of -zero.
14746 * modules/isnanl-nolibm-tests (Depends-on): Add float.
14747 * modules/isnanl-tests (Depends-on): Add float.
14749 * tests/test-ldexpl.c (zero): Remove variable.
14750 (minus_zero): New variable.
14751 (main): Use minus_zero instead of -zero.
14752 * modules/ldexpl-tests (Depends-on): Add float.
14754 * tests/test-snprintf-posix.h (zerol): Remove variable.
14755 (minus_zerol): New variable.
14756 (test_function): Use minus_zerol instead of -zerol.
14757 * modules/snprintf-posix-tests (Depends-on): Add float.
14758 * modules/vsnprintf-posix-tests (Depends-on): Add float.
14760 * tests/test-sprintf-posix.h (zerol): Remove variable.
14761 (minus_zerol): New variable.
14762 (test_function): Use minus_zerol instead of -zerol.
14763 * modules/sprintf-posix-tests (Depends-on): Add float.
14764 * modules/vsprintf-posix-tests (Depends-on): Add float.
14766 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
14767 (minus_zerol): New variable.
14768 (test_function): Use minus_zerol instead of -zerol.
14769 * modules/vasnprintf-posix-tests (Depends-on): Add float.
14771 * tests/test-vasprintf-posix.c (zerol): Remove variable.
14772 (minus_zerol): New variable.
14773 (test_function): Use minus_zerol instead of -zerol.
14774 * modules/vasprintf-posix-tests (Depends-on): Add float.
14776 2008-10-07 Simon Josefsson <simon@josefsson.org>
14778 * MODULES.html.sh (Support for building documentation): Mention
14779 pmccabe2html. Sort entries.
14781 Add pmccabe2html module, from gnupdf.
14782 * build-aux/pmccabe.css: New file.
14783 * build-aux/pmccabe2html: New file.
14784 * m4/pmccabe2html.m4: New file.
14785 * modules/pmccabe2html: New file.
14787 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
14790 * MODULES.html.sh: Add to list of modules.
14791 * lib/flock.c: flock implementation for Windows and Unix systems
14793 * doc/glibc-functions/flock.texi: Update documentation.
14794 * lib/sys_file.in.h: <sys/file.h> header file.
14795 * m4/flock.m4: M4 macros.
14796 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
14797 * modules/flock: flock module.
14798 * modules/flock-tests: flock tests module.
14799 * modules/sys_file: sys/file.h module.
14800 * tests/test-flock.c: test suite for flock.
14802 2008-10-06 Jim Meyering <meyering@redhat.com>
14804 bootstrap: check for LT_INIT more portably still ;-)
14805 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
14806 Spotted by Bruno Haible.
14808 2008-10-06 Eric Blake <ebb9@byu.net>
14810 test-signbit: avoid tripping Irix cc bug on -0.0L
14811 * tests/test-signbit.c (minus_zerol): Delete, and replace with
14812 '-zerol'. This may break on HP-UX/hppa, but at least makes the
14813 entire testsuite consistent and avoids an Irix 6.2 bug.
14815 2008-10-05 Bruno Haible <bruno@clisp.org>
14816 Jim Meyering <jim@meyering.net>
14818 Add an option for ignoring EPIPE during close_stdout.
14819 * lib/closeout.h: Include <stdbool.h>.
14820 (close_stdout_set_ignore_EPIPE): New declaration.
14821 * lib/closeout.c: Include <stdbool.h>.
14822 (ignore_EPIPE): New variable.
14823 (close_stdout_set_ignore_EPIPE): New function.
14824 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
14825 * lib/close-stream.c (close_stream): Mention the possible EPIPE
14827 * modules/closeout (Depends-on): Add stdbool.
14829 2008-10-05 Bruno Haible <bruno@clisp.org>
14831 * modules/accept: New file.
14832 * modules/bind: New file.
14833 * modules/connect: New file.
14834 * modules/getpeername: New file.
14835 * modules/getsockname: New file.
14836 * modules/getsockopt: New file.
14837 * modules/listen: New file.
14838 * modules/recv: New file.
14839 * modules/recvfrom: New file.
14840 * modules/send: New file.
14841 * modules/sendto: New file.
14842 * modules/setsockopt: New file.
14843 * modules/socket: New file.
14844 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
14845 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14846 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
14847 the particular module is requested. Add a link warning when the
14848 particular module is not requested.
14849 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
14850 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
14851 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
14852 the particular module is requested.
14853 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
14854 gl_SYS_SOCKET_H_DEFAULTS): New macros.
14855 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
14856 * modules/sys_socket (Depends-on): Add link-warning.
14857 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
14858 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
14859 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
14860 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
14862 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
14863 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
14864 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
14865 * doc/posix-functions/getpeername.texi: Mention the new module
14867 * doc/posix-functions/getsockname.texi: Mention the new module
14869 * doc/posix-functions/getsockopt.texi: Mention the new module
14871 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
14872 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
14873 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
14874 * doc/posix-functions/send.texi: Mention the new module 'send'.
14875 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
14876 * doc/posix-functions/setsockopt.texi: Mention the new module
14878 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
14879 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
14880 listen, connect, accept.
14881 * modules/select-tests (Depends-on): Likewise.
14883 2008-10-05 Bruno Haible <bruno@clisp.org>
14885 * lib/winsock.c (strerror): Remove unused #undef.
14886 (rpl_close): Remove unused local variable.
14888 * modules/sys_socket (Depends-on); Add errno.
14890 2008-10-05 Bruno Haible <bruno@clisp.org>
14892 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
14893 (select): Add a link warning when the 'select' module is not used.
14894 * modules/sys_select (Depends-on): Add link-warning.
14895 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
14896 Suggested by Paolo Bonzini.
14898 2008-10-05 Jim Meyering <meyering@redhat.com>
14900 bootstrap: check for LT_INIT more portably
14901 * build-aux/bootstrap: Avoid using grep -E, since it's not
14902 portable enough. Suggestion from Bruno Haible.
14904 2008-10-05 Bruno Haible <bruno@clisp.org>
14906 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
14907 as being fixed by gnulib.
14909 2008-10-05 Bruno Haible <bruno@clisp.org>
14911 * modules/select-tests: New file, mostly copied from
14912 modules/sys_select-tests.
14913 * tests/test-select.c: New file, mostly copied from
14914 tests/test-sys_select.c.
14915 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
14916 * modules/sys_select-tests (Depends-on): Remove all dependencies.
14917 (Makefile.am): Remove test_sys_select_LDADD.
14919 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
14920 to an undefined symbol, for an error message.
14921 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
14922 (gl_SYS_SELECT_H_DEFAULTS): New macro.
14923 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
14924 winsock-select.c here.
14925 * modules/sys_select (Files): Remove lib/winsock-select.c.
14926 (Depends-on): Remove alloca.
14927 (Makefile.am): Substitute GNULIB_SELECT.
14928 * modules/select: New file.
14929 * doc/posix-functions/select.texi: Update.
14931 2008-10-05 Bruno Haible <bruno@clisp.org>
14933 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
14934 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
14935 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
14936 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
14938 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
14939 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
14941 2008-10-05 Bruno Haible <bruno@clisp.org>
14943 * modules/getdtablesize-tests: New file.
14944 * tests/test-getdtablesize.c: New file.
14946 New module 'getdtablesize'.
14947 * lib/unistd.in.h (getdtablesize): New declaration.
14948 * lib/getdtablesize.c: New file.
14949 * m4/getdtablesize.m4: New file.
14950 * modules/getdtablesize: New file.
14951 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14952 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
14953 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
14954 HAVE_GETDTABLESIZE.
14955 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
14957 2008-10-05 Bruno Haible <bruno@clisp.org>
14959 * modules/sched (Makefile.am): Fix typo.
14960 Reported by Simon Josefsson.
14962 2008-10-05 Jim Meyering <meyering@redhat.com>
14964 bootstrap: check for LT_INIT, too
14965 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
14966 are deprecated. Suggestion from Ralf Wildenhues.
14968 2008-10-05 Bruno Haible <bruno@clisp.org>
14970 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
14971 overriding them by ours.
14972 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
14974 2008-10-05 Jim Meyering <meyering@redhat.com>
14976 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
14977 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
14978 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
14980 2008-10-04 Bruno Haible <bruno@clisp.org>
14982 * modules/dup2 (License): Change to LGPLv2+.
14983 * modules/sleep (License): Likewise.
14984 * modules/perror (License): Likewise.
14985 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
14987 * modules/signal (License): Likewise.
14988 * modules/sigprocmask (License): Likewise.
14989 * modules/raise (License): Change to LGPLv2+, with approval by Jim
14992 2008-10-04 Bruno Haible <bruno@clisp.org>
14994 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
14995 Reported by Rainer Tammer <tammer@tammer.net>.
14997 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
14998 Bruno Haible <bruno@clisp.org>
15000 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
15001 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
15002 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
15004 2008-10-03 Kamil Dudka <kdudka@redhat.com>
15006 filevercmp: new module
15007 * lib/filevercmp.h: New function filevercmp comparing version strings.
15008 * lib/filevercmp.c: Implementation of filevercmp function.
15009 * modules/filevercmp: Module metadata.
15010 * tests/test-filevercmp.c: Unit test for new module.
15011 * modules/filevercmp-tests: Unit test metadata.
15012 * MODULES.html.sh: Add filevercmp module.
15014 2008-10-03 Bruno Haible <bruno@clisp.org>
15016 * lib/c-ctype.h: Add comment.
15017 Reported by Jim Meyering.
15019 2008-10-02 Bruno Haible <bruno@clisp.org>
15021 * modules/posix_spawn-internal (Depends-on): Add 'open'.
15023 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
15025 * build-aux/bootstrap: Allow renaming bootstrap, and change the
15026 name of bootstrap.conf accordingly.
15028 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
15030 * build-aux/bootstrap: Install git-merge-changelog configuration
15031 items into .gitconfig if needed.
15033 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
15035 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
15036 git repository, and initialize/update it accordingly.
15038 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
15040 * modules/fsync-tests: New file.
15041 * tests/test-fsync.c: New file.
15043 New module 'fsync'.
15044 * lib/fsync.c: New file.
15045 * m4/fsync.m4: New file.
15046 * modules/fsync: New file.
15047 * lib/unistd.in.h (fsync): New declaration.
15048 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
15049 GNULIB_FSYNC and HAVE_FSYNC.
15050 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
15051 * MODULES.html.sh (posix_functions): Add fsync.
15052 * doc/posix-functions/fsync.texi: Mention the new module.
15054 2008-10-02 Jim Meyering <meyering@redhat.com>
15056 fts.c: sync with similar code from coreutils' remove.c
15057 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
15058 Guard also with "#if defined __linux__", since for now at least,
15059 this code is Linux-kernel-specific.
15061 2008-10-02 Jim Meyering <meyering@redhat.com>
15064 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
15065 Include <sys/vfs.h>, not <sys/statfs.h>.
15067 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
15068 Include <sys/vfs.h>, not <sys/statfs.h>.
15070 2008-10-01 Bruno Haible <bruno@clisp.org>
15072 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
15073 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
15074 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
15075 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
15076 * doc/posix-functions/posix_spawnp.texi: Likewise.
15077 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
15078 whether posix_spawn actually works.
15079 * m4/pipe.m4 (gl_PIPE): Likewise.
15080 * modules/execute (Files): Add m4/posix_spawn.m4.
15081 * modules/pipe (Files): Add m4/posix_spawn.m4.
15082 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
15084 2008-10-01 Jim Meyering <meyering@redhat.com>
15086 remove trailing spaces
15088 * lib/poll.c (poll): Likewise.
15089 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
15090 * lib/winsock.c (rpl_close): Likewise.
15091 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
15092 * modules/yield: Likewise.
15093 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
15094 * tests/test-sys_select.c (connect_to_socket): Likewise.
15096 fts.c: adjust a new interface to be more generally useful
15097 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
15098 (fts_build): Adjust caller.
15100 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15102 * modules/cond-tests: New file.
15103 * tests/test-cond.c: New file.
15105 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15106 Bruno Haible <bruno@clisp.org>
15108 * modules/cond (Dependencies): Add errno, time.
15109 * lib/glthread/cond.h: Include <time.h>.
15110 (gl_cond_define, gl_cond_define_initialized): Use the same definition
15113 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15114 Bruno Haible <bruno@clisp.org>
15116 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
15118 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15119 Bruno Haible <bruno@clisp.org>
15121 * modules/tls-tests (Depends-on): Add thread, yield.
15122 (configure.ac): Remove all checks.
15123 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
15124 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
15125 gl_thread_self): Remove definitions. Include glthread/thread.h and
15126 glthread/yield.h instead.
15127 (test_tls): Pass an additional NULL argument to gl_thread_join.
15129 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15130 Bruno Haible <bruno@clisp.org>
15132 * modules/lock-tests (Depends-on): Add thread, yield.
15133 (configure.ac): Remove all checks.
15134 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
15135 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
15136 gl_thread_self): Remove definitions. Include glthread/thread.h and
15137 glthread/yield.h instead.
15138 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
15139 additional NULL argument to gl_thread_join.
15141 2008-09-30 Bruno Haible <bruno@clisp.org>
15143 Fix the Win32 implementation of the 'thread' module.
15144 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
15146 (gl_thread_self): Invoke gl_thread_self_func.
15147 (gl_thread_self_func): New declaration.
15148 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
15149 (do_init_self_key, init_self_key): New functions.
15150 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
15151 Remove some fields.
15152 (running_threads, running_lock): Remove variables.
15153 (get_current_thread_handle): New function.
15154 (gl_thread_self_func, wrapper_func, glthread_create_func,
15155 glthread_join_func, gl_thread_exit_func): Largely rewritten and
15158 2008-09-30 Bruno Haible <bruno@clisp.org>
15160 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
15163 2008-09-30 Jim Meyering <meyering@redhat.com>
15165 fts.m4: correct the test for statfs.f_type
15166 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
15167 when checking for statfs.f_type.
15169 2008-09-15 Simon Josefsson <simon@josefsson.org>
15171 tests: avoid some compiler warnings
15172 * tests/test-memchr.c (main): Pass NULL indirectly.
15173 * tests/test-getdate.c (main): Remove unused variable 'ret'.
15175 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
15177 getdate.y: disallow countable dayshifts like "4 yesterday ago"
15178 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
15179 exactly specified dayshifts.
15180 (dayshift): New rule.
15181 (rel): Add dayshift.
15182 (relative_time_table) [tomorrow, yesterday, today, now]:
15183 Use tDAY_SHIFT in place of tDAY_UNIT.
15184 * tests/test-getdate.c: Add tests for now-disallowed countable
15185 dayshifts, e.g., "4 yesterday ago".
15187 2008-09-29 Bruno Haible <bruno@clisp.org>
15189 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
15190 * tests/test-posix_spawn1.in.sh: Renamed from
15191 tests/test-posix_spawn.in.sh.
15192 * tests/test-posix_spawn2.c: New file.
15193 * tests/test-posix_spawn2.in.sh: New file.
15194 * modules/posix_spawnp-tests (Files): Update.
15195 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
15197 2008-09-29 Bruno Haible <bruno@clisp.org>
15199 Propagate effects of putenv/setenv/unsetenv to child processes.
15200 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
15201 * lib/pipe.c (create_pipe): Likewise.
15203 2008-09-29 Bruno Haible <bruno@clisp.org>
15205 Enable use of shell scripts as executables in mingw.
15206 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
15207 run the program as a shell script.
15208 * lib/pipe.c (create_pipe): Likewise.
15209 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
15212 2008-09-29 Eric Blake <ebb9@byu.net>
15214 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
15216 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
15218 * doc/posix-functions/accept.texi: Update mingw problems.
15219 * doc/posix-functions/bind.texi: Update mingw problems.
15220 * doc/posix-functions/close.texi: Update mingw problems.
15221 * doc/posix-functions/connect.texi: Update mingw problems.
15222 * doc/posix-functions/getpeername.texi: Update mingw problems.
15223 * doc/posix-functions/getsockname.texi: Update mingw problems.
15224 * doc/posix-functions/getsockopt.texi: Update mingw problems.
15225 * doc/posix-functions/ioctl.texi: Update mingw problems.
15226 * doc/posix-functions/listen.texi: Update mingw problems.
15227 * doc/posix-functions/recv.texi: Update mingw problems.
15228 * doc/posix-functions/recvfrom.texi: Update mingw problems.
15229 * doc/posix-functions/select.texi: Update mingw problems.
15230 * doc/posix-functions/send.texi: Update mingw problems.
15231 * doc/posix-functions/sendto.texi: Update mingw problems.
15232 * doc/posix-functions/setsockopt.texi: Update mingw problems.
15233 * doc/posix-functions/socket.texi: Update mingw problems.
15235 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
15236 Bruno Haible <bruno@clisp.org>
15238 * lib/sys_select.in.h: Include sys/time.h.
15239 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
15240 * modules/sys_select: Depend on sys_time.
15241 * tests/test-sys_select.c: Test that sys/select.h defines struct
15244 2008-09-29 Bruno Haible <bruno@clisp.org>
15246 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
15247 * lib/sys_select.in.h: Likewise.
15249 2008-09-29 Bruno Haible <bruno@clisp.org>
15251 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
15253 2008-09-29 Bruno Haible <bruno@clisp.org>
15255 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
15256 Set LIBSOCKET instead of augmenting LIBS.
15257 * modules/sockets (Link): New section.
15258 * modules/sockets-tests (test_sockets_LDADD): New variable.
15259 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
15260 * modules/poll-tests (test_poll_LDADD): New variable.
15261 * NEWS: Document the change.
15263 2008-09-29 Bruno Haible <bruno@clisp.org>
15265 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
15266 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
15267 ARPA_INET_H directly.
15268 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15270 2008-09-28 Bruno Haible <bruno@clisp.org>
15272 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
15273 from gl_HEADER_SYS_SOCKET.
15274 (gl_HEADER_SYS_SOCKET): Invoke it.
15275 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15277 2008-09-28 Bruno Haible <bruno@clisp.org>
15279 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
15280 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
15281 Needed on OSF/1 4.0.
15283 2008-09-28 Bruno Haible <bruno@clisp.org>
15285 Override open more carefully.
15286 * lib/open.c (orig_open): New function.
15287 (rpl_open): Use orig_open instead of open.
15288 * lib/fcntl.in.h: Add special invocation convention.
15289 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
15290 (gl_FUNC_OPEN): Invoke it.
15292 Override freopen more carefully.
15293 * lib/freopen.c (orig_freopen): New function.
15294 (rpl_freopen): Use orig_freopen instead of freopen.
15295 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
15296 (gl_FUNC_FREOPEN): Invoke it.
15298 Override fopen more carefully.
15299 * lib/fopen.c (orig_fopen): New function.
15300 (rpl_fopen): Use orig_fopen instead of fopen.
15301 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
15302 (gl_FUNC_FOPEN): Invoke it.
15303 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
15305 2008-09-28 Bruno Haible <bruno@clisp.org>
15307 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
15310 2008-09-28 Bruno Haible <bruno@clisp.org>
15312 * tests/test-sigaction.c (handler, main): Disable the check whether
15313 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
15314 glibc systems with LinuxThreads.
15316 2008-09-28 Bruno Haible <bruno@clisp.org>
15318 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
15320 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
15322 * lib/fcntl.in.h (open): Likewise.
15323 Reported by Rainer Tammer <tammer@tammer.net>.
15325 2008-09-28 Bruno Haible <bruno@clisp.org>
15327 * modules/posix_spawnp-tests: New file.
15328 * tests/test-posix_spawn.c: New file.
15329 * tests/test-posix_spawn.in.sh: New file.
15331 New module 'posix_spawnp'.
15332 * modules/posix_spawnp: New file.
15333 * lib/spawnp.c: New file, from GNU libc with modifications.
15334 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
15336 New module 'posix_spawn'.
15337 * modules/posix_spawn: New file.
15338 * lib/spawn.c: New file, from GNU libc with modifications.
15339 * doc/posix-functions/posix_spawn.texi: Mention the new module.
15341 New module 'posix_spawnattr_destroy'.
15342 * modules/posix_spawnattr_destroy: New file.
15343 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
15344 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
15347 New module 'posix_spawnattr_setsigmask'.
15348 * modules/posix_spawnattr_setsigmask: New file.
15349 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
15351 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
15354 New module 'posix_spawnattr_getsigmask'.
15355 * modules/posix_spawnattr_getsigmask: New file.
15356 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
15358 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
15361 New module 'posix_spawnattr_setsigdefault'.
15362 * modules/posix_spawnattr_setsigdefault: New file.
15363 * lib/spawnattr_setdefault.c: New file, from GNU libc with
15365 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
15368 New module 'posix_spawnattr_getsigdefault'.
15369 * modules/posix_spawnattr_getsigdefault: New file.
15370 * lib/spawnattr_getdefault.c: New file, from GNU libc with
15372 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
15375 New module 'posix_spawnattr_setschedpolicy'.
15376 * modules/posix_spawnattr_setschedpolicy: New file.
15377 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
15379 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
15382 New module 'posix_spawnattr_getschedpolicy'.
15383 * modules/posix_spawnattr_getschedpolicy: New file.
15384 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
15386 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
15389 New module 'posix_spawnattr_setschedparam'.
15390 * modules/posix_spawnattr_setschedparam: New file.
15391 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
15393 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
15396 New module 'posix_spawnattr_getschedparam'.
15397 * modules/posix_spawnattr_getschedparam: New file.
15398 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
15400 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
15403 New module 'posix_spawnattr_setpgroup'.
15404 * modules/posix_spawnattr_setpgroup: New file.
15405 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
15407 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
15410 New module 'posix_spawnattr_getpgroup'.
15411 * modules/posix_spawnattr_getpgroup: New file.
15412 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
15414 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
15417 New module 'posix_spawnattr_setflags'.
15418 * modules/posix_spawnattr_setflags: New file.
15419 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
15420 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
15423 New module 'posix_spawnattr_getflags'.
15424 * modules/posix_spawnattr_getflags: New file.
15425 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
15426 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
15429 New module 'posix_spawnattr_init'.
15430 * modules/posix_spawnattr_init: New file.
15431 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
15432 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
15435 New module 'posix_spawn_file_actions_destroy'.
15436 * modules/posix_spawn_file_actions_destroy: New file.
15437 * lib/spawn_faction_destroy.c: New file, from GNU libc with
15439 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
15442 New module 'posix_spawn_file_actions_addopen'.
15443 * modules/posix_spawn_file_actions_addopen: New file.
15444 * lib/spawn_faction_addopen.c: New file, from GNU libc with
15446 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
15449 New module 'posix_spawn_file_actions_adddup2'.
15450 * modules/posix_spawn_file_actions_adddup2: New file.
15451 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
15453 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
15456 New module 'posix_spawn_file_actions_addclose'.
15457 * modules/posix_spawn_file_actions_addclose: New file.
15458 * lib/spawn_faction_addclose.c: New file, from GNU libc with
15460 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15463 New module 'posix_spawn_file_actions_init'.
15464 * modules/posix_spawn_file_actions_init: New file.
15465 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
15466 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
15469 New module 'posix_spawn-internal'.
15470 * modules/posix_spawn-internal: New file.
15471 * lib/spawn_int.h: New file, from GNU libc with modifications.
15472 * lib/spawni.c: New file, from GNU libc with modifications.
15473 * m4/posix_spawn.m4: New file.
15475 New module 'spawn'.
15476 * modules/spawn: New file.
15477 * lib/spawn.in.h: New file, from GNU libc with modifications.
15478 * m4/spawn_h.m4: New file.
15479 * doc/posix-headers/spawn.texi: Mention the new module.
15481 2008-09-28 Bruno Haible <bruno@clisp.org>
15483 * modules/sched-tests: New file.
15484 * tests/test-sched.c: New file.
15486 New module 'sched'.
15487 * modules/sched: New file.
15488 * lib/sched.in.h: New file.
15489 * m4/sched_h.m4: New file.
15490 * doc/posix-headers/sched.texi: Mention the new module.
15492 2008-09-27 Eric Blake <ebb9@byu.net>
15494 Fix previous patch, and tweak references to $0.
15495 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
15496 (func_version, func_gnulib_dir): Don't call this program
15498 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
15499 with using $0 in function.
15500 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
15501 (func_fatal_error): Reuse the name the user invoked us with.
15503 2008-09-27 Bruno Haible <bruno@clisp.org>
15505 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
15506 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
15507 (gl_ICONV_H): Not here.
15508 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15509 instead of assigning ICONV_H directly.
15511 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
15512 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
15515 2008-09-27 Bruno Haible <bruno@clisp.org>
15517 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
15518 * modules/arpa_inet (Depends-on): Add link-warning.
15519 (Makefile.am): Insert the definition of GL_LINK-WARNING.
15520 * modules/unistd (Makefile.am): Likewise.
15522 2008-09-26 Bruno Haible <bruno@clisp.org>
15524 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
15526 (func_version): Essentially copied from gnulib-tool.
15527 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
15528 func_readlink): Copied from gnulib-tool.
15530 2008-09-26 Bruno Haible <bruno@clisp.org>
15532 * gnulib-tool (func_version): Change directory to $gnulib_dir before
15533 invoking git-version-gen.
15535 2008-09-26 Bruno Haible <bruno@clisp.org>
15537 * posix-modules: Update to directory names changed on 2008-01-19.
15538 Remove commas in output before splitting into words. No more need to
15539 avoid 'ftruncate' since 2007-02-19.
15541 2008-09-26 Bruno Haible <bruno@clisp.org>
15543 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
15545 2008-09-26 Bruno Haible <bruno@clisp.org>
15547 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
15548 * modules/fwriteerror (Depends-on): Add errno.
15550 2008-09-26 Bruno Haible <bruno@clisp.org>
15552 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
15553 * tests/test-vc-list-files-cvs.sh: Likewise.
15555 2008-09-26 Bruno Haible <bruno@clisp.org>
15557 * doc/posix-headers/sys_resource.texi: Reorder items.
15559 2008-09-26 Jim Meyering <meyering@redhat.com>
15561 fts: tweak inode comparison function
15562 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
15563 inode numbers, as documented.
15565 fts: sort dirent entries on inode number before traversing
15566 This avoids a quadratic, seek-related performance penalty when
15567 operating on a directory containing many entries (measurable at 10k;
15568 3.5 hours at 2 million entries with a cold cache) on certain types
15569 of file systems, including ext3 and ext4, but not tmpfs.
15570 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
15571 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
15572 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
15573 (fs_handles_readdir_ordered_dirents_efficiently): New function.
15574 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
15575 (fts_build): Set the stat.st_ino member from D_INO.
15576 If it is likely to be useful, sort dirent entries on inode number.
15578 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
15579 and the struct statfs.f_type member.
15580 * modules/fts (Depends-on): Add d-ino.
15582 2008-09-26 Bruno Haible <bruno@clisp.org>
15584 * modules/sigpipe-die (Depends-on): Add sigpipe.
15586 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
15587 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
15588 and GNULIB_STDIO_H_SIGPIPE are set.
15589 * lib/stdio-write.c: New file.
15590 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
15591 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15592 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15593 REPLACE_STDIO_WRITE_FUNCS.
15594 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
15595 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15596 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15597 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15598 * modules/stdio (Files): Add lib/stdio-write.c.
15599 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
15600 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15601 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15602 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15603 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
15604 REPLACE_FPRINTF_POSIX.
15605 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
15606 REPLACE_PRINTF_POSIX.
15607 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
15608 REPLACE_VFPRINTF_POSIX.
15609 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
15610 REPLACE_VPRINTF_POSIX.
15611 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
15613 * doc/posix-functions/fputc.texi: Likewise.
15614 * doc/posix-functions/fputs.texi: Likewise.
15615 * doc/posix-functions/fwrite.texi: Likewise.
15616 * doc/posix-functions/printf.texi: Likewise.
15617 * doc/posix-functions/putc.texi: Likewise.
15618 * doc/posix-functions/putchar.texi: Likewise.
15619 * doc/posix-functions/puts.texi: Likewise.
15620 * doc/posix-functions/vfprintf.texi: Likewise.
15621 * doc/posix-functions/vprintf.texi: Likewise.
15623 * modules/safe-write (Depends-on): Add write.
15625 * modules/sigpipe-tests: New file.
15626 * tests/test-sigpipe.c: New file.
15627 * tests/test-sigpipe.sh: New file.
15629 * modules/write: New file.
15630 * lib/unistd.in.h: Include <sys/types.h>.
15631 (write): New declaration.
15632 * lib/write.c: New file.
15633 * m4/write.m4: New file.
15634 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15635 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
15636 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
15637 GNULIB_WRITE, REPLACE_WRITE.
15638 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
15639 and the SIGPIPE issue.
15641 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
15642 (raise): New declaration.
15643 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
15644 (ext_signal): New function.
15645 (rpl_raise): New function.
15646 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15647 GNULIB_SIGNAL_H_SIGPIPE.
15648 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
15649 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
15651 * modules/sigpipe: New file.
15652 * m4/sigpipe.m4: New file.
15654 2008-09-25 Derek Price <derek@ximbiot.com>
15655 Bruno Haible <bruno@clisp.org>
15657 * gnulib-tool (func_import): Report all license incompatibilities, not
15658 just the first one.
15660 2008-09-25 Bruno Haible <bruno@clisp.org>
15662 * gnulib-tool (func_import): When computing the edits, consider not
15663 only the Makefile.ams that exist but also those that will be generated.
15665 2008-09-25 Simon Josefsson <simon@josefsson.org>
15667 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
15668 fixes gnulib-tool --test warning about duplicate dependency.
15670 2008-09-25 Bruno Haible <bruno@clisp.org>
15672 * gnulib-tool: Don't ask the user to perform edits in the generated
15674 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
15675 apply to the Makefile.am being generated.
15676 (func_emit_tests_Makefile_am): Execute edits that apply to the
15677 Makefile.am being generated.
15678 (func_import): Setup list of Makefile.am edits before emitting the
15679 Makefile.ams, not at the end.
15680 (func_create_testdir): Update.
15681 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15683 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15685 * gnulib-tool (func_import): Store the --tests-base option in the
15686 comment in gnulib-cache.m4.
15688 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
15690 * NEWS: Document increased portability that sys_select now provides.
15692 * lib/sys_select.in.h: Install select wrapper.
15693 * lib/sys_socket.in.h: Use more descriptive name when there is no
15695 * lib/winsock-select.c: New.
15696 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
15697 Require gl_HEADER_SYS_SOCKET.
15698 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
15699 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
15700 * tests/test-sys_select.c: Add functional tests.
15702 2008-09-24 Eric Blake <ebb9@byu.net>
15704 open, fopen: close fd leak in last patch
15705 * lib/open.c (rpl_open): Close fd before returning error.
15706 * lib/fopen.c (rpl_fopen): Close fd before returning error.
15707 * doc/posix-functions/open.texi (open): Document that Irix also
15709 * doc/posix-functions/fopen.texi (fopen): Likewise.
15710 Reported by Paolo Bonzini.
15712 2008-09-24 Bruno Haible <bruno@clisp.org>
15714 Ensure that a filename ending in a slash cannot be used to access a
15716 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
15717 to check whether it's really a directory.
15718 * lib/fopen.c: Include fcntl.h, unistd.h.
15719 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
15721 * modules/fopen (Depends-on): Add unistd.
15722 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
15723 * tests/test-fopen.c (main): Likewise.
15724 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
15725 * doc/posix-functions/fopen.texi: Likewise.
15726 Reported by Eric Blake.
15728 2008-09-23 Eric Blake <ebb9@byu.net>
15730 c-stack: avoid compiler optimizations when provoking overflow
15731 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
15732 recursion harder to optimize, to ensure a stack overflow occurs.
15733 * tests/test-c-stack.c (recurse): Likewise.
15734 Borrowed from libsigsegv.
15736 c-stack: work around Irix sigaltstack bug
15737 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
15738 whether sigaltstack uses wrong end of stack_t (copied in part from
15740 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
15741 Irix bug, without requiring an over-allocation.
15742 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
15745 fopen: document mingw bug on directories
15746 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
15747 not allowing a stream visiting a directory, even though reading
15748 from such a stream is not portable.
15750 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
15752 * lib/poll.c: Rewrite.
15753 * modules/poll: Depend on alloca.
15755 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
15757 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
15758 instead define prototypes for a full set of wrappers. Ensure
15759 that Cygwin does not use the compatibility code, which is only
15761 * lib/winsock.c: New.
15762 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
15763 * modules/sys_socket: Add lib/winsock.c.
15765 * modules/poll-tests: Add errno and perror.
15766 * tests/test-poll.c: Use ioctl, not ioctlsocket.
15768 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
15770 * tests/test-poll.c: Downgrade minimum needed Winsock version.
15772 2008-09-23 Bruno Haible <bruno@clisp.org>
15774 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
15775 * doc/glibc-functions/*: Likewise.
15777 2008-09-23 Simon Josefsson <simon@josefsson.org>
15779 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
15782 2008-09-22 Eric Blake <ebb9@byu.net>
15783 Bruno Haible <bruno@clisp.org>
15785 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
15786 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
15787 supply %A but mishandle pseudo-NaN.
15788 Reported by Simon Josefsson.
15790 2008-09-21 Bruno Haible <bruno@clisp.org>
15792 * tests/test-lock.c (main): Tweak skip message.
15793 * tests/test-tls.c (main): Likewise.
15795 2008-09-21 Bruno Haible <bruno@clisp.org>
15797 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
15798 whether 'struct sigaction' has sa_sigaction here...
15799 (gl_PREREQ_SIG_HANDLER_H): ... not here.
15800 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
15802 2008-09-21 Bruno Haible <bruno@clisp.org>
15804 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
15806 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
15807 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
15809 (Support for obsolete systems lacking POSIX:2001): New section.
15810 (String handling <string.h>): Move strdup to the new section.
15811 Suggested by Simon Josefsson and Paolo Bonzini.
15813 2008-09-21 Bruno Haible <bruno@clisp.org>
15815 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
15816 exponents in %e and %g results on 'long double'. Needed for mingw's
15817 improved *printf functions.
15818 * tests/test-vasprintf-posix.c (test_function): Likewise.
15819 * tests/test-snprintf-posix.h (test_function): Likewise.
15820 * tests/test-sprintf-posix.h (test_function): Likewise.
15821 Reported by Eric Blake.
15823 2008-09-21 Bruno Haible <bruno@clisp.org>
15825 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
15826 * tests/test-sprintf-posix.h (test_function): Likewise.
15828 2008-09-21 Bruno Haible <bruno@clisp.org>
15830 * modules/getpass (Depends-on): Add strdup-posix.
15832 New module 'strdup-posix'.
15833 * modules/strdup-posix: New file.
15834 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
15835 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
15836 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
15838 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
15839 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
15840 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15843 * modules/strdup (Depends-on): Remove malloc-posix.
15845 2008-09-20 Bruno Haible <bruno@clisp.org>
15847 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
15850 2008-09-20 Bruno Haible <bruno@clisp.org>
15852 Ensure that wint_t gets defined on IRIX 5.3.
15853 * lib/wchar.in.h (wint_t): Define if not defined by the system.
15854 * lib/wctype.in.h (wint_t): Likewise.
15855 (__wctype_wint_t): Remove type.
15856 (isw*): Use wint_t instead of __wctype_wint_t.
15857 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
15858 * modules/wchar (Files): Add m4/wint_t.m4.
15859 (Makefile.am): Substitute HAVE_WINT_T.
15860 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
15861 * tests/test-wctype.c: Check that wint_t is defined.
15862 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
15863 * doc/posix-headers/wctype.texi: Likewise.
15864 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15866 2008-09-18 Bruno Haible <bruno@clisp.org>
15868 * gnulib-tool (func_exit): Update comment.
15870 2008-09-18 Simon Josefsson <simon@josefsson.org>
15872 * modules/getaddrinfo (Depends-on): Remove strdup, this module
15873 assumes strdup exists and does not depend on strdup to return
15874 ENOMEM on out of memory conditions.
15876 2008-09-18 Bruno Haible <bruno@clisp.org>
15878 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
15879 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
15880 digits for the exponent.
15882 2008-09-18 Jim Meyering <meyering@redhat.com>
15883 Bruno Haible <bruno@clisp.org>
15885 * lib/vasnprintf.c (decimal_point_char): Define also if
15886 NEED_PRINTF_INFINITE_LONG_DOUBLE.
15888 2008-09-16 Bruno Haible <bruno@clisp.org>
15889 and Eric Blake <ebb9@byu.net>
15891 vasnprintf: support Irix 5.3
15892 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
15893 that mishandle long double infinity.
15894 Reported by Tom G. Christensen.
15896 2008-09-16 Bruno Haible <bruno@clisp.org>
15898 * doc/glibc-functions/scandir.texi: Mention the function is missing on
15900 * doc/glibc-functions/alphasort.texi: Likewise.
15901 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
15903 2008-09-16 Jim Meyering <meyering@redhat.com>
15905 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
15906 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
15907 a umask modification leak out of a subshell. Otherwise, the
15908 opensolaris /bin/sh would be accepted and thus cause unwarranted
15909 failures in the coreutils test suite.
15911 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
15913 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
15916 2008-09-16 Jim Meyering <meyering@redhat.com>
15918 avoid spurious test failure when library is built without ACL support
15919 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
15920 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
15921 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
15922 * tests/test-copy-acl.sh: Likewise.
15924 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15926 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
15927 based on character occurrence counts.
15929 2008-09-15 Eric Blake <ebb9@byu.net>
15931 tests: avoid some compiler warnings
15932 * tests/test-memchr.c (main): Pass NULL indirectly.
15933 * tests/test-closein.c (main): Avoid unused variable.
15935 2008-09-15 Bruno Haible <bruno@clisp.org>
15937 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
15938 are missing on OpenBSD 4.0 individually.
15939 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15941 2008-09-15 Bruno Haible <bruno@clisp.org>
15943 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
15944 * doc/posix-functions/strerror.texi: Mention also Cygwin.
15945 * doc/posix-functions/perror.texi: Likewise.
15946 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
15948 Reported by Eric Blake.
15950 * lib/errno.in.h: Use replacement values >= 2000.
15951 Reported by Eric Blake.
15953 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15955 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
15956 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
15958 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
15959 compareseq was aborted.
15961 2008-09-14 Bruno Haible <bruno@clisp.org>
15963 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
15965 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
15966 (fstrcmp_bounded): Simplify result computation accordingly.
15968 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15970 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
15971 (fstrcmp): Define in terms of fstrcmp_bounded.
15972 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
15973 lower_bound argument.
15974 Return quickly if the result is certainly < lower_bound.
15975 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
15977 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15979 * lib/diffseq.h (EARLY_ABORT): New macro.
15980 (compareseq): Change return type to bool. Return true when EARLY_ABORT
15983 2008-09-14 Bruno Haible <bruno@clisp.org>
15985 * modules/perror-tests: New file.
15986 * tests/test-perror.sh: New file.
15987 * tests/test-perror.c: New file.
15989 New module 'perror'.
15990 * lib/stdio.in.h (perror): New declaration.
15991 * lib/perror.c: New file.
15992 * m4/perror.m4: New file.
15993 * modules/perror: New file.
15994 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
15995 * doc/posix-functions/perror.texi: Mention the perror module.
15996 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
15998 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
16001 2008-09-14 Bruno Haible <bruno@clisp.org>
16003 * modules/stdio (Makefile.am): Reorder to match the order in
16005 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16007 2008-09-13 Bruno Haible <bruno@clisp.org>
16009 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
16011 2008-09-13 Bruno Haible <bruno@clisp.org>
16013 Extend strerror to cover the added errno values.
16014 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
16015 (rpl_strerror): Provide error messages for the added errno values and
16016 for the WSA* values.
16017 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
16018 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
16020 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
16021 * modules/strerror (Depends-on): Add errno.
16022 * doc/posix-functions/strerror.texi: Document the change.
16023 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
16026 2008-09-13 Bruno Haible <bruno@clisp.org>
16028 * modules/EOVERFLOW: Remove file.
16029 * m4/eoverflow.m4: Remove file.
16030 * modules/EOVERFLOW-tests: Remove file.
16031 * tests/test-EOVERFLOW.c: Remove file.
16032 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
16033 * modules/ftell (Depends-on): Likewise.
16034 * modules/getdelim (Depends-on): Likewise.
16035 * modules/getugroups (Depends-on): Likewise.
16036 * modules/poll (Depends-on): Likewise.
16037 * modules/snprintf (Depends-on): Likewise.
16038 * modules/sprintf-posix (Depends-on): Likewise.
16039 * modules/vasnprintf (Depends-on): Likewise.
16040 * modules/vasprintf (Depends-on): Likewise.
16041 * modules/vfprintf-posix (Depends-on): Likewise.
16042 * modules/vsnprintf (Depends-on): Likewise.
16043 * modules/vsprintf-posix (Depends-on): Likewise.
16044 * modules/xvasprintf (Depends-on): Likewise.
16045 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16046 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
16047 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
16048 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
16049 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16050 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
16051 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
16052 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
16053 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16054 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
16055 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
16056 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
16057 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16058 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
16059 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
16060 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
16061 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16062 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
16063 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
16064 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
16065 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16066 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
16067 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
16068 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
16069 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
16070 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16071 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
16072 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
16073 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
16074 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
16075 * MODULES.html.sh: Remove EOVERFLOW.
16076 * NEWS: Mention the change.
16078 2008-09-13 Bruno Haible <bruno@clisp.org>
16080 * modules/errno-tests: New file.
16081 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
16083 * lib/errno.in.h: New file.
16084 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
16085 * modules/errno: New file.
16086 * doc/posix-headers/errno.texi: Update documentation.
16087 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
16089 2008-09-13 Bruno Haible <bruno@clisp.org>
16091 * tests/test-poll.c: Use #if for native Windows, rather than testing
16094 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16095 Bruno Haible <bruno@clisp.org>
16097 * lib/glob.c: Don't include <pwd.h> on native Windows.
16098 (WINDOWS32): New macro.
16099 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
16101 2008-09-13 Bruno Haible <bruno@clisp.org>
16103 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
16104 (ETIMEDOUT): Remove macro.
16105 (glthread_cond_timedwait_multithreaded): New declaration.
16106 (glthread_cond_timedwait): Use it.
16107 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
16108 (glthread_cond_timedwait_multithreaded): New function.
16110 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
16112 * modules/poll-tests: Do not check for io.h.
16113 * tests/test-poll.c: Check for __MSVCRT__ instead.
16115 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
16117 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
16118 * modules/poll-tests: Add inet_pton, stdbool, sockets.
16119 * tests/test-poll.c: Use them. Use _pipe on Windows.
16121 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
16123 * modules/poll-tests: New.
16124 * tests/test-poll.c: New.
16126 2008-09-12 Eric Blake <ebb9@byu.net>
16128 frexp: test for NetBSD failure on -0.0
16129 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
16130 not all, bugs from NetBSD 3.0 have been fixed.
16131 * doc/posix-functions/frexp.texi (frexp): Document bug.
16132 Reported by Thomas Klausner.
16134 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
16135 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
16137 Reported by Jonathan C. Patschke <jp@centtech.com>.
16139 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16141 * lib/glthread/cond.h: Use dummy implementation also if
16144 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16146 * modules/fnmatch-posix (License): Change to LGPLv2+.
16147 * modules/fnmatch-gnu (License): Likewise.
16149 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16151 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
16153 2008-09-11 Jim Meyering <meyering@redhat.com>
16155 * users.txt: Add gtk-vnc.
16157 2008-09-08 Simon Josefsson <simon@josefsson.org>
16159 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
16162 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
16163 required for 16-bit and 8-bit rotates.
16164 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
16165 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
16166 UINT8_MAX instead of hard-coded constants.
16167 Suggested by Paul Eggert.
16169 2008-09-07 Bruno Haible <bruno@clisp.org>
16171 * tests/test-striconveh.c (main): Check behaviour when converting from
16174 Make striconveh work better with stateful encodings.
16175 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
16176 that iconv does not increment the inptr when returning -1/EINVAL.
16178 2008-09-07 Bruno Haible <bruno@clisp.org>
16180 * build-aux/config.rpath: Update according to libtool-2.2.6.
16181 * build-aux/config.libpath: Likewise.
16183 2008-09-06 Bruno Haible <bruno@clisp.org>
16185 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
16186 * lib/freadptr.c (freadptr): Likewise.
16187 * lib/freadseek.c (freadptrinc): Likewise.
16188 Reported by Simon Josefsson.
16190 2008-09-06 Bruno Haible <bruno@clisp.org>
16192 * modules/freadptr (License): Change to LGPLv2+.
16193 * modules/freadseek (License): Likewise.
16194 Suggested by Eric Blake.
16196 * modules/memchr2 (License): Change to LGPLv2+.
16197 Approved by Eric Blake.
16199 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16200 Bruno Haible <bruno@clisp.org>
16202 Make gnulib-tool work with native 'sed' on AIX.
16203 * gnulib-tool (sed_noop): New variable.
16204 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
16205 func_add_or_update, func_create_testdir): Use it to initialize sed
16207 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16209 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
16210 Bruno Haible <bruno@clisp.org>
16212 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
16213 also works after #include directives.
16215 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
16217 getdate.y: reject an out-of-range timezone value
16218 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
16219 the range [-24...+24]. When specified with only one or two digits,
16220 * tests/test-getdate.c: Tests for the fix.
16221 * doc/getdate.texi: Document this change.
16223 2008-09-03 Bruno Haible <bruno@clisp.org>
16225 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
16227 2008-09-02 Simon Josefsson <simon@josefsson.org>
16229 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
16230 <bruce.korb@gmail.com> with ideas from Ben Pfaff
16231 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
16232 Blake <ebb9@byu.net>.
16234 * tests/test-bitrotate.c: Add more test vectors.
16236 2008-09-02 Eric Blake <ebb9@byu.net>
16238 vasnprintf-posix: handle large precision via %.*d
16239 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
16240 when handling it ourselves.
16241 * tests/test-vasnprintf-posix.c (test_function): Add test.
16242 * tests/test-snprintf-posix.h (test_function): Likewise.
16243 * tests/test-sprintf-posix.h (test_function): Likewise.
16244 * tests/test-vasprintf-posix.c (test_function): Likewise.
16245 Reported by Alain Guibert.
16247 2008-09-01 Eric Blake <ebb9@byu.net>
16249 c-stack: make configure-time check more robust
16250 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
16251 successful sigaction call.
16252 Reported by Tom G. Christensen.
16254 2008-09-01 Bruno Haible <bruno@clisp.org>
16256 New module 'findprog-lgpl'.
16257 * modules/findprog-lgpl: New file.
16258 * lib/findprog-lgpl.c: New file.
16259 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
16260 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
16261 to decide whether to use strdup or xstrdup, concatenated_filename or
16262 xconcatenated_filename.
16264 2008-09-01 Bruno Haible <bruno@clisp.org>
16266 Split module 'concat-filename' into 'concat-filename' (LGPL) and
16267 'xconcat-filename' (GPL).
16268 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
16269 (License): Change to LGPLv2+.
16270 * modules/xconcat-filename: New file.
16271 * lib/concat-filename.h (concatenated_filename): Change specification.
16272 (xconcatenated_filename): New declaration.
16273 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
16274 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
16276 * lib/xconcat-filename.c: New file.
16277 * NEWS: Mention the change.
16278 * lib/findprog.c: Include concat-filename.h, not filename.h.
16279 (find_in_path): Use xconcatenated_filename instead of
16280 concatenated_filename.
16281 * lib/javacomp.c: Include concat-filename.h, not filename.h.
16282 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16283 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16284 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16285 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
16286 instead of concatenated_filename.
16287 * lib/javaexec.c: Include concat-filename.h, not filename.h.
16288 (execute_java_class): Use xconcatenated_filename instead of
16289 concatenated_filename.
16290 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
16291 * modules/javacomp (Depends-on): Likewise.
16292 * modules/javaexec (Depends-on): Likewise.
16294 2008-09-01 Bruno Haible <bruno@clisp.org>
16296 Split module 'filename' into 'filename' and 'concat-filename'.
16297 * modules/filename: Keep only lib/filename.h.
16298 (License): Change to LGPLv2+.
16299 * modules/concat-filename: New file, extracted from modules/filename.
16300 * lib/filename.h (concatenated_filename): Remove declaration.
16301 * lib/concat-filename.h: New file, extracted from lib/filename.h.
16302 * lib/concat-filename.c: Include concat-filename.h.
16303 * NEWS: Mention the change.
16305 2008-09-01 Simon Josefsson <simon@josefsson.org>
16307 * lib/bitrotate.h (rotl8, rotr8): Add.
16309 * modules/bitrotate (configure.ac): Need
16310 AC_REQUIRE([AC_C_INLINE]).
16311 (Description): Mention stdint.h. Reported by Bruno Haible
16314 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
16315 Paolo Bonzini <bonzini@gnu.org>.
16317 2008-08-31 Bruno Haible <bruno@clisp.org>
16319 Assume Solaris specific bi-arch conventions on Solaris systems.
16320 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
16321 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
16322 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
16323 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
16324 like acl_libdirstem.
16325 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
16327 * NEWS: Mention the change.
16328 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
16330 2008-08-31 Jim Meyering <meyering@redhat.com>
16332 * lib/strftime.h: Add comments describing the two added arguments.
16334 remove duplicate #include directives
16335 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
16336 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
16338 2008-08-31 Bruno Haible <bruno@clisp.org>
16340 New module 'sigpipe-die'.
16341 * modules/sigpipe-die: New file.
16342 * lib/sigpipe-die.h: New file.
16343 * lib/sigpipe-die.c: New file.
16344 * MODULES.html.sh (Signal handling): Add sigpipe-die.
16346 2008-08-31 Bruno Haible <bruno@clisp.org>
16348 Don't override previously installed signal handlers.
16349 * lib/fatal-signal.c (saved_sigactions): New variable.
16350 (uninstall_handlers): Reset the signal to the saved handler, not
16351 to SIG_DFL (except when ignored).
16352 (install_handlers): Save the previous handlers.
16354 2008-08-30 Bruno Haible <bruno@clisp.org>
16356 * gnulib-tool (func_reset_sigpipe): New function.
16357 (func_get_automake_snippet, func_modules_transitive_closure,
16358 func_import): Invoke it before a join command that reads from stdin,
16359 to avoid "echo: write error: Broken pipe" error messages on stderr.
16360 Reported by Sam Steingold <sds@gnu.org>.
16362 2008-08-30 Bruno Haible <bruno@clisp.org>
16364 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
16365 Code copied from m4/open.m4.
16366 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
16367 access and the filename ends in a slash. Code copied from lib/open.c.
16368 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
16369 * tests/test-fopen.c (main): Check against bug with trailing slash.
16371 2008-08-29 Bruno Haible <bruno@clisp.org>
16373 Avoid some "gcc -pedantic" warnings.
16374 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
16375 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
16376 * lib/dirent.in.h: Likewise.
16377 * lib/fcntl.in.h: Likewise.
16378 * lib/float.in.h: Likewise.
16379 * lib/iconv.in.h: Likewise.
16380 * lib/inttypes.in.h: Likewise.
16381 * lib/locale.in.h: Likewise.
16382 * lib/math.in.h: Likewise.
16383 * lib/netinet_in.in.h: Likewise.
16384 * lib/search.in.h: Likewise.
16385 * lib/signal.in.h: Likewise.
16386 * lib/stdarg.in.h: Likewise.
16387 * lib/stdint.in.h: Likewise.
16388 * lib/stdio.in.h: Likewise.
16389 * lib/stdlib.in.h: Likewise.
16390 * lib/string.in.h: Likewise.
16391 * lib/strings.in.h: Likewise.
16392 * lib/sys_select.in.h: Likewise.
16393 * lib/sys_socket.in.h: Likewise.
16394 * lib/sys_stat.in.h: Likewise.
16395 * lib/sys_time.in.h: Likewise.
16396 * lib/sysexits.in.h: Likewise.
16397 * lib/time.in.h: Likewise.
16398 * lib/unistd.in.h: Likewise.
16399 * lib/wchar.in.h: Likewise.
16400 * lib/wctype.in.h: Likewise.
16401 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
16402 * modules/fchdir (Makefile.am): Likewise.
16403 * modules/fcntl (Makefile.am): Likewise.
16404 * modules/float (Makefile.am): Likewise.
16405 * modules/iconv_open (Makefile.am): Likewise.
16406 * modules/inttypes (Makefile.am): Likewise.
16407 * modules/locale (Makefile.am): Likewise.
16408 * modules/math (Makefile.am): Likewise.
16409 * modules/netinet_in (Makefile.am): Likewise.
16410 * modules/search (Makefile.am): Likewise.
16411 * modules/signal (Makefile.am): Likewise.
16412 * modules/stdarg (Makefile.am): Likewise.
16413 * modules/stdint (Makefile.am): Likewise.
16414 * modules/stdio (Makefile.am): Likewise.
16415 * modules/stdlib (Makefile.am): Likewise.
16416 * modules/string (Makefile.am): Likewise.
16417 * modules/strings (Makefile.am): Likewise.
16418 * modules/sys_select (Makefile.am): Likewise.
16419 * modules/sys_socket (Makefile.am): Likewise.
16420 * modules/sys_stat (Makefile.am): Likewise.
16421 * modules/sys_time (Makefile.am): Likewise.
16422 * modules/sysexits (Makefile.am): Likewise.
16423 * modules/time (Makefile.am): Likewise.
16424 * modules/unistd (Makefile.am): Likewise.
16425 * modules/wchar (Makefile.am): Likewise.
16426 * modules/wctype (Makefile.am): Likewise.
16427 Reported by Reuben Thomas <rrt@sc3d.org>.
16429 2008-08-29 Bruno Haible <bruno@clisp.org>
16431 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
16434 2008-08-29 Simon Josefsson <simon@josefsson.org>
16436 * MODULES.html.sh (Misc): Add bitrotate.
16438 * modules/bitrotate: New file.
16440 * lib/bitrotate.h: New file.
16442 * modules/bitrotate-tests: New file.
16444 * tests/test-bitrotate.c: New file.
16446 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
16447 on the bitrotate module.
16449 * lib/arctwo.c: Use new bitrotate module.
16451 2008-08-29 Jim Meyering <meyering@redhat.com>
16453 bootstrap: merge changes from coreutils
16454 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
16455 of copied files. Remove a kludge, now that this is fixed.
16456 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
16457 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
16458 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
16460 2008-08-29 Bruno Haible <bruno@clisp.org>
16462 * MODULES.html.sh: Remove --cvs-urls option.
16464 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
16466 maint.mk: adjust to file name change
16467 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
16469 2008-08-28 Jim Meyering <meyering@redhat.com>
16471 * modules/getndelim2 (License): Relicense to LGPLv2+.
16472 Approved by Richard Stallman for the version of 1995, and by
16473 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
16475 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
16477 * lib/getdelim.c (flockfile, funlockfile): Make all of them
16478 dummy if one is not available. Do not touch them if
16479 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
16480 (getc_maybe_unlocked): New.
16481 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
16483 2008-08-26 Eric Blake <ebb9@byu.net>
16485 doc/INSTALL: resync from autoconf
16486 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
16487 (INSTALL_PRELUDE): Delete; this is done more efficiently by
16489 * install.texi [!autoconf]: ...here. Resync from autoconf.
16490 * INSTALL: Regenerate.
16491 * INSTALL.ISO: New file.
16492 * INSTALL.UTF-8: Likewise.
16494 2008-08-26 Jim Meyering <meyering@redhat.com>
16496 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
16497 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
16498 these definitions conditional, so that they may be overridden, too.
16500 2008-08-26 Bruno Haible <bruno@clisp.org>
16502 Generate INSTALL file variants with prettier quotes.
16503 * doc/Makefile (INSTALL_PRELUDE): New macro.
16505 (INSTALL.ISO, INSTALL.UTF-8): New rules.
16507 2008-08-26 Bruno Haible <bruno@clisp.org>
16509 Run makeinfo in an English locale.
16510 * doc/Makefile (MAKEINFO): New variable.
16512 2008-08-26 Bruno Haible <bruno@clisp.org>
16514 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
16515 Suggested by Eric Blake.
16517 2008-08-25 Bruno Haible <bruno@clisp.org>
16519 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
16521 2008-08-25 Eric Blake <ebb9@byu.net>
16523 c-stack: test that stack overflow can be caught
16524 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
16525 that platform allows handling stack overflow; at least OS/2 EMX
16526 has sigaltstack, but crashes before transferring control to
16527 handler on stack overflow.
16528 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
16529 check for HAVE_STACK_OVERFLOW_HANDLING.
16530 Reported by Elbert Pol.
16532 2008-08-25 Bruno Haible <bruno@clisp.org>
16534 * doc/posix-functions/strftime.texi: Fix description of strftime
16537 2008-08-24 Bruno Haible <bruno@clisp.org>
16539 * tests/uniwidth/test-uc_width2.c: New file.
16540 * tests/uniwidth/test-uc_width2.sh: New file.
16541 * modules/uniwidth/width-tests (Files): Add the new files.
16542 (TESTS): Add uniwidth/test-uc_width2.sh.
16543 (TESTS_ENVIRONMENT): New variable.
16544 (check_PROGRAMS): Add test-uc_width2.
16545 (test_uc_width2_SOURCES): New variable.
16547 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
16548 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
16550 Reported by Alexander V. Lukyanov <lav@netis.ru>.
16552 2008-08-22 Eric Blake <ebb9@byu.net>
16554 test-lock, test-tls: mention why a test is skipped
16555 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
16557 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
16559 count-one-bits: relax license
16560 * modules/count-one-bits (License): Relicense to LGPLv2+.
16561 Suggested by Ludovic Courtès, approved by Ben Pfaff.
16563 2008-08-22 Andreas Schwab <schwab@suse.de>
16565 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16566 Remove spurious space in assignment.
16568 2008-08-21 Simon Josefsson <simon@josefsson.org>
16570 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
16571 Paul Eggert <eggert@CS.UCLA.EDU>.
16573 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
16575 * modules/gettext: Add m4/threadlib.m4.
16577 2008-08-19 Eric Blake <ebb9@byu.net>
16579 test-c-stack: fix compilation failure on FreeBSD 5.0
16580 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
16581 headers before <sys/resource.h>.
16582 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
16584 Reported by Nelson H. F. Beebe.
16586 strverscmp: migrate from "strverscmp.h" to <string.h>
16587 * modules/string (Makefile.am): Add new hooks.
16588 * modules/strverscmp (Files): Remove strverscmp.h.
16589 (Depends-on): Add string.
16590 (configure.ac): Add indicator.
16591 (Include): Mention new header.
16592 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
16594 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
16596 * lib/strverscmp.h: Delete.
16597 * lib/string.in.h (strverscmp): Provide declaration, when needed.
16598 * tests/test-strverscmp.c (includes): Adjust client.
16599 * lib/check-version.c (includes): Likewise.
16600 * NEWS: Document the change.
16602 strverscmp: add unit test
16603 * modules/strverscmp-tests: New file.
16604 * tests/test-strverscmp.c: Likewise.
16606 2008-08-19 Simon Josefsson <simon@josefsson.org>
16608 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
16609 regarding Windows crypto stuff, from Mono.
16611 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
16613 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
16614 if present, for intel RND. Return error on failures.
16616 2008-08-18 Ben Pfaff <blp@gnu.org>
16618 gitlog-to-changelog: give better diagnostic for failed pipe-open
16619 * build-aux/gitlog-to-changelog: Improve error message: suggest
16620 that the version of Git may be too old.
16622 2008-08-18 Simon Josefsson <simon@josefsson.org>
16624 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
16625 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
16627 2008-08-18 Bruno Haible <bruno@clisp.org>
16629 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
16632 2008-08-18 Bruno Haible <bruno@clisp.org>
16634 * lib/glthread/threadlib.c: Include <pthread.h>.
16636 2008-08-18 Bruno Haible <bruno@clisp.org>
16638 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
16639 glthread_recursive_lock_* macros.
16640 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
16643 2008-08-18 Bruno Haible <bruno@clisp.org>
16645 * lib/glthread/thread.c: Avoid forcing a context switch right after
16648 2008-08-17 Bruno Haible <bruno@clisp.org>
16650 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
16651 * lib/glthread/thread.h: Provide Win32 specific implementation.
16652 * modules/thread (Files): Add lib/glthread/thread.c.
16653 (Depends-on): Add lock.
16654 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
16656 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16658 New module 'yield'.
16659 * modules/yield: New file.
16660 * lib/glthread/yield.h: New file.
16661 * m4/yield.m4: New file.
16662 * MODULES.html.sh (Multithreading): Add yield.
16664 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16666 New module 'thread'.
16667 * modules/thread: New file.
16668 * lib/glthread/thread.h: New file.
16669 * m4/thread.m4: New file.
16670 * MODULES.html.sh (Multithreading): Add thread.
16672 2008-08-17 Bruno Haible <bruno@clisp.org>
16674 * lib/glthread/lock.h: Include <stdlib.h> always.
16675 * lib/glthread/tls.h: Likewise.
16676 * lib/glthread/cond.h: Likewise.
16678 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16681 * modules/cond: New file.
16682 * lib/glthread/cond.h: New file.
16683 * lib/glthread/cond.c: New file.
16684 * m4/cond.m4: New file.
16685 * MODULES.html.sh (Multithreading): Add cond.
16687 2008-08-16 Eric Blake <ebb9@byu.net>
16689 c-stack: fix regression on Irix 5.3 from 2008-06-21
16690 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
16692 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
16693 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
16694 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
16695 * modules/signal (Makefile.am): Use the value.
16696 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
16697 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
16698 * doc/posix-headers/signal.texi (signal.h): Document this
16700 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
16701 Reported by Tom G. Christensen.
16703 2008-08-17 Bruno Haible <bruno@clisp.org>
16705 New module 'threadlib'.
16706 * modules/threadlib: New file.
16707 * lib/glthread/threadlib.c: New file, extracted from
16708 lib/glthread/lock.c.
16709 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
16711 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
16712 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
16713 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
16715 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
16716 (gl_DISABLE_THREADS): Remove macro.
16717 * modules/lock (Files): Remove build-aux/config.rpath.
16718 (Depends-on): Remove havelib. Add threadlib.
16719 (configure.ac-early): Remove section.
16720 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
16721 * modules/tls (Depends-on): Remove lock. Add threadlib.
16722 (Link): New section, copied from threadlib.
16723 * MODULES.html.sh (Multithreading): Add threadlib.
16725 2008-08-14 Bruno Haible <bruno@clisp.org>
16727 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
16728 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
16729 glthread_rwlock_unlock, glthread_rwlock_destroy,
16730 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
16731 glthread_recursive_lock_destroy): Define as macros always.
16732 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
16733 glthread_lock_lock.
16734 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
16735 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
16736 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
16737 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
16738 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
16739 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
16740 (glthread_recursive_lock_lock_func): Renamed from
16741 glthread_recursive_lock_lock.
16742 (glthread_recursive_lock_unlock_func): Renamed from
16743 glthread_recursive_lock_unlock.
16744 (glthread_recursive_lock_destroy_func): Renamed from
16745 glthread_recursive_lock_destroy.
16747 2008-08-14 Bruno Haible <bruno@clisp.org>
16749 * lib/glthread/lock.h: Renamed from lib/lock.h.
16750 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
16751 * lib/glthread/tls.h: Renamed from lib/tls.h.
16752 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
16753 * lib/fstrcmp.c: Update includes.
16754 * lib/strsignal.c: Update includes.
16755 * modules/lock (Files, Makefile.am): Update.
16756 (Include): Change to "glthread/lock.h".
16757 * modules/tls (Files, Makefile.am): Update.
16758 (Include): Change to "glthread/tls.h".
16759 * tests/test-lock.c: Update includes.
16760 * tests/test-tls.c: Update includes.
16761 * NEWS: Mention the renamed header files.
16763 2008-08-11 Jim Meyering <meyering@redhat.com>
16765 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
16767 2008-08-11 Eric Blake <ebb9@byu.net>
16769 test-c-stack: avoid C99-ism
16770 * tests/test-c-stack.c (main): Fix whitespace, move declaration
16772 Reported by Alain Guibert.
16774 2008-08-10 Jim Meyering <meyering@redhat.com>
16776 ensure that return value of uinttostr et al are not ignored
16777 * lib/inttostr.h (__GNUC_PREREQ): Define.
16778 (__attribute_warn_unused_result__): Define.
16779 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
16781 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
16783 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
16784 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
16786 2008-08-07 Jim Meyering <meyering@redhat.com>
16788 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
16790 * modules/mkstemp (License): Relicense under LGPLv2+.
16791 * modules/tempname (License): Likewise.
16793 2008-08-06 Bruno Haible <bruno@clisp.org>
16795 * lib/poll.c (poll): Further micro-optimization.
16797 2008-08-06 Jim Meyering <meyering@redhat.com>
16799 inet_pton.c: use locale-independent tolower
16800 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
16801 (inet_pton6): Use c_tolower rather than tolower.
16802 * modules/inet_pton (Depends-on): Add c-ctype.
16804 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
16806 * lib/poll.c (poll): Avoid division when timeout is 0, cache
16807 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
16809 2008-08-06 Jim Meyering <meyering@redhat.com>
16811 * modules/inet_pton (License): Relicense under LGPLv2+.
16813 2008-08-03 Bruno Haible <bruno@clisp.org>
16815 Additional non-aborting API for lock and tls.
16816 * lib/lock.h: Include <errno.h>.
16817 (glthread_lock_init): New macro/function.
16818 (gl_lock_init): Define as wrapper around glthread_lock_init.
16819 (glthread_lock_lock): New macro/function.
16820 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
16821 (glthread_lock_unlock): New macro/function.
16822 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
16823 (glthread_lock_destroy): New macro/function.
16824 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
16825 (glthread_rwlock_init): New macro/function.
16826 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
16827 (glthread_rwlock_rdlock): New macro/function.
16828 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
16829 (glthread_rwlock_wrlock): New macro/function.
16830 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
16831 (glthread_rwlock_unlock): New macro/function.
16832 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
16833 (glthread_rwlock_destroy): New macro/function.
16834 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
16835 (glthread_recursive_lock_init): New macro/function.
16836 (gl_recursive_lock_init): Define as wrapper around
16837 glthread_recursive_lock_init.
16838 (glthread_recursive_lock_lock): New macro/function.
16839 (gl_recursive_lock_lock): Define as wrapper around
16840 glthread_recursive_lock_lock.
16841 (glthread_recursive_lock_unlock): New macro/function.
16842 (gl_recursive_lock_unlock): Define as wrapper around
16843 glthread_recursive_lock_unlock.
16844 (glthread_recursive_lock_destroy): New macro/function.
16845 (gl_recursive_lock_destroy): Define as wrapper around
16846 glthread_recursive_lock_destroy.
16847 (glthread_once): New macro/function.
16848 (gl_once): Define as wrapper around glthread_once.
16849 Update function declarations.
16850 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
16851 glthread_rwlock_init. Return error code.
16852 (glthread_rwlock_rdlock_multithreaded): Renamed from
16853 glthread_rwlock_rdlock. Return error code.
16854 (glthread_rwlock_wrlock_multithreaded): Renamed from
16855 glthread_rwlock_wrlock. Return error code.
16856 (glthread_rwlock_unlock_multithreaded): Renamed from
16857 glthread_rwlock_unlock. Return error code.
16858 (glthread_rwlock_destroy_multithreaded): Renamed from
16859 glthread_rwlock_destroy. Return error code.
16860 (glthread_recursive_lock_init_multithreaded): Renamed from
16861 glthread_recursive_lock_init. Return error code.
16862 (glthread_recursive_lock_lock_multithreaded): Renamed from
16863 glthread_recursive_lock_lock. Return error code.
16864 (glthread_recursive_lock_unlock_multithreaded): Renamed from
16865 glthread_recursive_lock_unlock. Return error code.
16866 (glthread_recursive_lock_destroy_multithreaded): Renamed from
16867 glthread_recursive_lock_destroy. Return error code.
16868 (glthread_once_call): Make static.
16869 (glthread_once_multithreaded): Renamed from glthread_once.
16870 * lib/tls.h: Include <errno.h>.
16871 (glthread_tls_key_init): New macro/function.
16872 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
16873 (glthread_tls_set): New macro/function.
16874 (gl_tls_set): Define as wrapper around glthread_tls_set.
16875 (glthread_tls_key_destroy): New macro/function.
16876 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
16877 Update function declarations.
16878 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
16880 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
16882 2008-08-04 Eric Blake <ebb9@byu.net>
16884 gnumakefile: use space, not TAB, outside of targets
16885 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
16887 2008-08-02 Jim Meyering <meyering@redhat.com>
16889 getdate.y: avoid locale-dependent date parsing failure
16890 In Turkish locales, getdate would fail to recognize keywords
16891 containing a lowercase "i". The solution is not to rely on
16892 locale-sensitive case-conversion.
16893 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
16894 (lookup_word): Use c_toupper in place of toupper.
16895 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
16896 Reported by Vefa Bicakci <bicave@superonline.com> in
16897 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
16898 * modules/getdate (Depends-on): Add c-ctype.
16900 2008-08-02 Bruno Haible <bruno@clisp.org>
16902 * gnulib-tool (func_import): When updating or creating a .gitignore
16903 file, prepend each added line with a slash, and ignore leading slashes
16904 from the existing lines.
16905 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
16907 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16909 Portability fix for GNU make 3.79.1.
16910 * top/GNUmakefile: Avoid 'else COND', which older GNU make
16911 versions do not understand.
16913 2008-08-01 Bruno Haible <bruno@clisp.org>
16915 Work around bug of HP-UX 10.20 cc with -0.0 literal.
16916 * tests/test-isnanf.h (zero): New variable.
16917 (main): Avoid literal -0.0f.
16918 * tests/test-isnand.h (zero): New variable.
16919 (main): Avoid literal -0.0.
16920 * tests/test-isnanl.h (zero): New variable.
16921 (main): Avoid literal -0.0L.
16922 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
16923 (test_float, test_double, test_long_double): Avoid literals -0.0f,
16925 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
16926 (test_signbitd): Avoid literal -0.0.
16927 (test_signbitl): Avoid literal -0.0L.
16928 * tests/test-ceilf1.c (zero): New variable.
16929 (main): Avoid literal -0.0f.
16930 * tests/test-ceill.c (zero): New variable.
16931 (main): Avoid literal -0.0L.
16932 * tests/test-floorf1.c (zero): New variable.
16933 (main): Avoid literal -0.0f.
16934 * tests/test-floorl.c (zero): New variable.
16935 (main): Avoid literal -0.0L.
16936 * tests/test-roundf1.c (zero): New variable.
16937 (main): Avoid literal -0.0f.
16938 * tests/test-round1.c (zero): New variable.
16939 (main): Avoid literal -0.0.
16940 * tests/test-roundl.c (zero): New variable.
16941 (main): Avoid literal -0.0L.
16942 * tests/test-truncf1.c (zero): New variable.
16943 (main): Avoid literal -0.0f.
16944 * tests/test-trunc1.c (zero): New variable.
16945 (main): Avoid literal -0.0.
16946 * tests/test-truncl.c (zero): New variable.
16947 (main): Avoid literal -0.0L.
16948 * tests/test-frexp.c (zero): New variable.
16949 (main): Avoid literal -0.0.
16950 * tests/test-frexpl.c (zero): New variable.
16951 (main): Avoid literal -0.0L.
16952 * tests/test-ldexpl.c (zero): New variable.
16953 (main): Avoid literal -0.0L.
16954 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
16955 (zerod, zerol): New variables.
16956 (test_function): Avoid literals -0.0, -0.0L.
16957 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
16958 (zerod, zerol): New variables.
16959 (test_function): Avoid literals -0.0, -0.0L.
16960 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
16961 (zerod, zerol): New variables.
16962 (test_function): Avoid literals -0.0, -0.0L.
16963 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
16964 (zerod, zerol): New variables.
16965 (test_function): Avoid literals -0.0, -0.0L.
16966 * tests/test-strtod.c (zero): New variable.
16967 (main): Avoid literal -0.0.
16968 Reported by Jonathan C. Patschke <jp@centtech.com>.
16970 2008-07-31 Jim Meyering <meyering@redhat.com>
16972 sha256.h: correct definition of SHA224_DIGEST_SIZE
16973 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
16974 Reported by Paulie Pena IV <paulie4@gmail.com>.
16975 Define as 224 / 8, rather than as a literal.
16976 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
16977 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
16978 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
16980 2008-07-31 Bruno Haible <bruno@clisp.org>
16982 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
16983 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
16984 Reported by Jonathan Patschke <jp@centtech.com>.
16986 2008-07-31 Bruno Haible <bruno@clisp.org>
16988 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
16989 Reported by Paolo Bonzini <bonzini@gnu.org>.
16991 2008-07-30 Eric Blake <ebb9@byu.net>
16993 test-strtod: allow compilation without -lm
16994 * tests/test-strtod.c (main): Avoid link dependence on fabs.
16995 Reported by Dennis Clarke <blastwave@gmail.com>.
16997 2008-07-28 Jim Meyering <meyering@redhat.com>
16999 bootstrap: work also when there are no .po files in po/
17000 * build-aux/bootstrap (update_po_files): Complete the change
17001 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
17003 2008-07-27 Jim Meyering <meyering@redhat.com>
17005 * users.txt: Add zile.
17007 2008-07-26 Ben Pfaff <blp@gnu.org>
17009 Add missing dependencies on new m4/exponent[fdl].m4 files.
17010 * modules/isnanf-nolibm: Add m4/exponentf.m4.
17011 * modules/isnand-nolibm: Add m4/exponentd.m4.
17012 * modules/isnanl-nolibm: Add m4/exponentl.m4.
17013 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
17014 m4/isnan[fdl].m4, because the macros actually used moved.
17015 Reported by Jim Meyering.
17017 2008-07-14 Ben Pfaff <blp@gnu.org>
17020 * lib/isinf.c: New file.
17021 * lib/math.in.h: Define isinf macro if we have decided to replace
17023 * m4/isinf.m4: New file.
17024 * m4/math_h.m4: Initialize and substitute variables for isinf
17026 * modules/isinf: New file.
17027 * modules/isinf-tests: New file.
17028 * modules/math: Add substitutions for new module.
17029 * tests/test-isinf.c: New file.
17030 * doc/posix-functions/isinf.texi: Mention new module.
17031 * MODULES.html.sh: Mention new module.
17033 2008-07-14 Ben Pfaff <blp@gnu.org>
17035 Factor out some macros for use by additional modules.
17036 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
17038 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
17040 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
17042 * m4/exponentf.m4: New file.
17043 * m4/exponentd.m4: New file.
17044 * m4/exponentl.m4: New file.
17045 * modules/isnanf: Use new file m4/exponentf.m4.
17046 * modules/isnand: Use new file m4/exponentd.m4.
17047 * modules/isnanl: Use new file m4/exponentl.m4.
17049 2008-07-23 Ulrich Drepper <drepper@redhat.com>
17051 mktime.c: normalize tp->tm_isdst value to -1/0/1.
17052 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
17053 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
17054 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
17056 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
17057 readlink on platforms without PATH_MAX.
17059 2008-07-21 Eric Blake <ebb9@byu.net>
17061 Warn, not fail, on stale version.
17062 * top/GNUmakefile (_curr-ver): Tone down previous patch.
17064 Don't allow installation with stale devel version number.
17065 * top/GNUmakefile (_is-install-target): New macro.
17066 (_curr-ver): Forbid installation with stale version number.
17068 2008-07-20 Bruno Haible <bruno@clisp.org>
17070 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
17072 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
17074 2008-07-20 Bruno Haible <bruno@clisp.org>
17076 * lib/c-stack.h (c_stack_action): Add documentation.
17077 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
17079 2008-07-20 Bruno Haible <bruno@clisp.org>
17081 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
17082 * modules/readlink (License): Likewise.
17084 2008-07-17 Eric Blake <ebb9@byu.net>
17086 * modules/c-stack (Link): Fix typo.
17088 Make c-stack use libsigsegv, when available.
17089 * modules/c-stack (Depends-on): Add libsigsegv.
17090 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
17092 * lib/c-stack.c (SIGSTKSZ): Define fallback.
17093 (segv_handler, overflow_handler, c_stack_action)
17094 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
17095 implementation when libsigsegv is available, but only when using
17096 the library is necessary.
17097 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
17098 comment, explaining why XSI check fails on Linux.
17099 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
17100 * tests/test-c-stack2.sh: Tweak skip message.
17101 * NEWS: Document new link-time requirements.
17103 2008-07-16 Eric Blake <ebb9@byu.net>
17105 c-stack: Expose false positives when not using libsigsegv.
17106 * modules/c-stack-tests (Files): Expand test.
17107 * tests/test-c-stack.c (main): Add means to conditionally trigger
17108 non-overflow SIGSEGV.
17109 * tests/test-c-stack2.sh: New file.
17111 2008-07-14 Bruno Haible <bruno@clisp.org>
17113 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
17114 Reported by Eric Blake.
17116 2008-07-14 Sam Steingold <sds@gnu.org>
17117 Bruno Haible <bruno@clisp.org>
17119 New module libsigsegv.
17120 * modules/libsigsegv: New file.
17121 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
17123 * MODULES.html.sh (Signal handling): New section.
17125 2008-07-14 Bruno Haible <bruno@clisp.org>
17127 * modules/unictype/ctype-* (Description): Add the word "function".
17128 Improves the resulting doc in MODULES.html.
17130 2008-07-12 Ben Pfaff <blp@gnu.org>
17132 Add longlong module.
17133 * modules/longlong: New file.
17135 2008-07-12 Bruno Haible <bruno@clisp.org>
17137 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
17140 2008-07-10 Ben Pfaff <blp@gnu.org>
17143 * doc/posix-functions/isnan.texi: Mention new module.
17144 * lib/math.in.h: Define isnan macro if we have decided to replace
17146 * m4/isnan.m4: New file.
17147 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
17148 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
17150 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
17152 * m4/math_h.m4: Initialize and substitute variables for isnan
17154 * modules/isnan: New file.
17155 * modules/isnan-tests: New file.
17156 * modules/math: Add substitutions for new module.
17157 * tests/test-isnan.c: New file.
17158 * MODULES.html.sh: Mention new module.
17160 2008-07-10 Ben Pfaff <blp@gnu.org>
17163 * lib/isnanf.m4: New file.
17164 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
17165 (gl_HAVE_ISNANF_IN_LIBM): New macro.
17166 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
17167 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
17168 * modules/isnanf: New file.
17169 * modules/isnanf-tests: New file.
17170 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
17172 * tests/test-isnanf-nolibm.c: factored most of its contents into
17173 new file tests/test-isnanf.h.
17174 * tests/test-isnanf.h: New file.
17175 * tests/test-isnanf.c: New file.
17176 * MODULES.html.sh: Mention new module.
17177 * doc/glibc-functions/isnanf.texi: Mention new module.
17179 2008-07-10 Ben Pfaff <blp@gnu.org>
17182 * lib/isnand.h: New file.
17183 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
17184 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
17185 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
17186 functionality also.
17187 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
17188 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
17189 (gl_HAVE_ISNAND_IN_LIBM): New macro.
17190 * modules/isnand: New file.
17191 * modules/isnand-tests: New file.
17192 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
17194 * tests/test-isnand-nolibm.c: factored most of its contents into
17195 new file tests/test-isnand.h.
17196 * tests/test-isnand.h: New file.
17197 * tests/test-isnand.c: New file.
17198 * MODULES.html.sh: Mention new module.
17200 2008-07-10 Ben Pfaff <blp@gnu.org>
17202 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
17203 * lib/isnand.h: Rename lib/isnand-nolibm.h.
17204 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
17205 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
17206 * modules/isnanf-nolibm: Update references to renamed files.
17207 * modules/isnand-nolibm: Likewise.
17208 * modules/isnanf-nolibm-tests: Likewise.
17209 * modules/isnand-nolibm-tests: Likewise.
17210 * lib/frexp.c: Likewise.
17211 * lib/isfinite.c: Likewise.
17212 * lib/signbitd.c: Likewise.
17213 * lib/signbitf.c: Likewise.
17214 * lib/vasnprintf.c: Likewise.
17215 * tests/test-ceilf1.c: Likewise.
17216 * tests/test-ceilf2.c: Likewise.
17217 * tests/test-floorf1.c: Likewise.
17218 * tests/test-floorf2.c: Likewise.
17219 * tests/test-frexp.c: Likewise.
17220 * tests/test-round1.c: Likewise.
17221 * tests/test-round2.c: Likewise.
17222 * tests/test-roundf1.c: Likewise.
17223 * tests/test-strtod.c: Likewise.
17224 * tests/test-trunc1.c: Likewise.
17225 * tests/test-trunc2.c: Likewise.
17226 * tests/test-truncf1.c: Likewise.
17227 * tests/test-truncf2.c: Likewise.
17228 * NEWS: Mention the renamed header files.
17230 2008-07-11 Jim Meyering <meyering@redhat.com>
17232 vc-list-files: make the last-resort awk code more portable
17233 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
17234 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
17235 does not support it.
17237 2008-07-10 Eric Blake <ebb9@byu.net>
17239 Work with tar's bootstrap.
17240 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
17241 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
17244 2008-07-09 Jim Meyering <meyering@redhat.com>
17246 posix-shell.m4: fix typo that made this test malfunction
17247 * m4/posix-shell.m4: Remove capitalization in variable name.
17249 2008-07-08 Bruno Haible <bruno@clisp.org>
17251 * m4/onceonly.m4: Update comments.
17252 Reported by Ben Pfaff <blp@cs.stanford.edu>.
17254 2008-07-04 Jim Meyering <meyering@redhat.com>
17256 * users.txt: Add vc-dwim.
17257 (bison, coreutils): Use the gitweb URL.
17259 2008-07-03 Jim Meyering <meyering@redhat.com>
17261 * users.txt: Add libffcall. From Sam Steingold.
17263 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17265 getdate.y: do not ignore TZ with relative day, month or year offset
17266 * lib/getdate.y (get_date): Move the tz-handling block to follow the
17267 relative-date-handling, since otherwise, the latter would clobber the
17268 sole output (an updated Start value) of the tz-handling block.
17269 * tests/test-getdate.c: Tests for the fix
17271 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17273 Recognize 'foo_LIBRARIES += libgnu.a'.
17274 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
17275 makefile snippet has already specified an installation location,
17278 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17280 getdate.y: factor out common actions
17281 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
17282 Use them in place of open-coded actions.
17284 2008-07-01 Simon Josefsson <simon@josefsson.org>
17286 Add self-test for getdate module.
17287 * modules/getdate-tests: New file.
17288 * tests/test-getdate.c: New file.
17290 2008-06-29 Bruno Haible <bruno@clisp.org>
17292 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
17294 Reported by Sylvain Beucler <beuc@beuc.net>.
17296 2008-06-29 Bruno Haible <bruno@clisp.org>
17298 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
17299 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
17301 2008-06-29 Bruno Haible <bruno@clisp.org>
17303 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
17305 Reported by Sylvain Beucler <beuc@beuc.net>.
17307 2008-06-26 Jim Meyering <meyering@redhat.com>
17309 make several modules depend on the "open" module
17310 This provides slightly increased consistency when opening-for-write
17311 the name of a non-directory spelled with a trailing slash.
17312 * modules/chdir-safer: Likewise.
17313 * modules/chown: Likewise.
17314 * modules/clean-temp: Likewise.
17315 * modules/copy-file: Likewise.
17316 * modules/fchdir: Likewise.
17317 * modules/fcntl-safer: Likewise.
17318 * modules/pipe: Likewise.
17319 * modules/utime: Likewise.
17320 Prompted by Eric Blake and Bruno Haible.
17322 2008-06-24 Andreas Schwab <schwab@suse.de>
17324 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
17325 literals can be used as initializers for global variables.
17327 2008-06-23 Eric Blake <ebb9@byu.net>
17329 Make gnulib-cache.m4 easier to diff.
17330 * gnulib-tool (func_import): Allow newlines when reading cached
17331 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
17333 2008-06-23 Bruno Haible <bruno@clisp.org>
17335 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
17336 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
17337 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
17338 m4/signalblocking.m4.
17339 (gl_PREREQ_SIGACTION): Don't invoke it.
17340 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
17341 gl_PREREQ_SIG_HANDLER_H.
17342 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17343 Don't check for sigaction here.
17345 2008-06-23 Bruno Haible <bruno@clisp.org>
17347 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
17348 (install_handlers): Don't set the SA_RESETHAND flag.
17350 2008-06-23 Bruno Haible <bruno@clisp.org>
17352 * m4/sigaction.m4: Comment fixes.
17353 * lib/signal.in.h: Likewise.
17355 2008-06-23 Eric Blake <ebb9@byu.net>
17358 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
17360 Avoid SA_ namespace.
17361 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
17362 Reported by Ralf Wildenhues.
17364 Avoid test failure due to SA_RESTORER.
17365 * tests/test-sigaction.c (SA_MASK): New macro.
17366 (main): Avoid failing due to extension flags being set.
17367 Reported by Jim Meyering.
17369 Revert use of sig-handler.h in sigprocmask.c.
17370 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
17371 it requires the existence of struct sigaction.
17372 * lib/sigprocmask.c (handler_t): Restore typedef.
17373 (rpl_signal, old_handlers): Use local type.
17375 2008-06-22 Bruno Haible <bruno@clisp.org>
17377 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
17379 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17381 2008-06-22 Bruno Haible <bruno@clisp.org>
17383 * doc/posix-functions/siginterrupt.texi: Move note.
17385 * lib/signal.in.h (SA_RESTART): New macro.
17386 * lib/sigaction.c: Update comment.
17388 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
17390 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
17391 (gl_PREREQ_SIGPROCMASK): Invoke it.
17392 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
17394 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
17396 * lib/sigprocmask.c: Update a comment.
17398 2008-06-21 Eric Blake <ebb9@byu.net>
17400 Use sigaction module rather than signal().
17401 * modules/c-stack (Depends-on): Add sigaction.
17402 * modules/fatal-signal (Depends-on): Likewise.
17403 * modules/nanosleep (Depends-on): Likewise.
17404 * modules/sigprocmask (Files): Add sig-handler.h.
17405 * modules/sigaction (Files): Likewise.
17406 * lib/sig-handler.h (get_handler): New file, suggested by Paul
17408 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
17409 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
17410 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
17411 (init_fatal_signals): Likewise.
17412 * lib/nanosleep.c (rpl_nanosleep): Likewise.
17413 (siginterrupt): Delete fallback.
17414 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
17416 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
17419 New module sigaction, for mingw.
17420 * modules/sigaction: New module...
17421 * modules/sigaction-tests: ...and its test.
17422 * m4/sigaction.m4: New file.
17423 * lib/sigaction.c: Likewise.
17424 * tests/test-sigaction.c: Likewise.
17425 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
17426 * modules/signal (Makefile.am): Likewise.
17427 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
17429 * doc/posix-headers/signal.texi (signal.h): Mention provided
17431 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
17432 that sigaction is preferable.
17433 * doc/posix-functions/sigaction.texi (sigaction): Mention new
17435 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17438 Improve robustness of sigprocmask by overriding signal.
17439 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
17441 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
17442 (SIGKILL, SIGSTOP): Provide fallbacks.
17443 (rpl_signal): Implement.
17444 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
17445 signal can be called inside handlers.
17447 Fix nanosleep module on mingw.
17448 * modules/nanosleep (Depends-on): Add sys_select.
17449 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
17451 Fix licensing of sigprocmask.
17452 * modules/raise (License): Relicense as LGPL.
17454 2008-06-21 Bruno Haible <bruno@clisp.org>
17456 * lib/propername.c (proper_name_utf8): Don't use the transliterated
17457 result if it contains question marks.
17458 Reported by Michael Geng <linux@michaelgeng.de>.
17460 2008-06-19 Bruno Haible <bruno@clisp.org>
17463 * doc/gnulib.texi: Include updated-stamp.texi.
17464 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
17465 (updated-stamp.texi): New rule.
17466 (gnulib.info): Depend on it.
17467 * doc/.gitignore: Add updated-stamp.texi.
17468 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
17470 2008-06-19 Bruno Haible <bruno@clisp.org>
17472 * doc/Makefile (gnulib.info): Update and simplify dependencies.
17473 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17475 2008-06-19 Eric Blake <ebb9@byu.net>
17477 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
17478 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
17479 Reported by Stepan Kasal.
17481 2008-06-18 Bruno Haible <bruno@clisp.org>
17483 * lib/fatal-signal.c (init_fatal_signals): Add comment.
17484 Reported by Eric Blake.
17486 2008-06-18 Eric Blake <ebb9@byu.net>
17488 Work around cygwin 1.5.25 strsignal bug.
17489 * tests/test-strsignal.c: Allow for const char *.
17490 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
17492 2008-06-18 Simon Josefsson <simon@josefsson.org>
17494 * users.txt: Update URL to article and add author/date
17497 2008-06-17 Bruno Haible <bruno@clisp.org>
17499 New macro gl_DISABLE_THREADS.
17500 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
17501 if the user did not pass --enable-threads or --disable-threads option.
17502 (gl_DISABLE_THREADS): New macro.
17503 Reported by Eric Blake <ebb9@byu.net>.
17505 2008-06-17 Bruno Haible <bruno@clisp.org>
17507 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
17508 when the macro ignores it.
17509 Based on a patch by Eric Blake <ebb9@byu.net>.
17511 2008-06-17 Bruno Haible <bruno@clisp.org>
17513 * modules/tls (License): Change to LGPLv2+.
17514 Reported by Eric Blake.
17516 2008-06-17 Eric Blake <ebb9@byu.net>
17518 Simplify c-stack prerequisites.
17519 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
17520 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
17521 no longer requires <ucontext.h> to exist. Optimize setrlimit
17523 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
17526 Move c-stack test into testsuite.
17527 * modules/c-stack-tests: New file.
17528 * lib/c-stack.c [DEBUG]: Move test program...
17529 * tests/test-c-stack.c: ...into this new file. Skip rather than
17530 fail test if sigaltstack is lacking.
17531 * tests/test-c-stack.sh: New driver file.
17533 2008-06-16 Eric Blake <ebb9@byu.net>
17535 Use raise module consistently.
17536 * modules/fatal-signal (Depends-on): Add raise.
17537 * modules/sigprocmask (Depends-on): Likewise.
17538 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
17539 * lib/sigprocmask.c (sigprocmask): Likewise.
17540 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17541 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
17543 Fix compliance bug in sigpending.
17544 * lib/sigprocmask.c (sigpending): Return pending array via
17545 parameter, not return value.
17547 2008-06-14 Eric Blake <ebb9@byu.net>
17549 Improve obstack-printf test code.
17550 * tests/test-obstack-printf.c (test_function): Fix comment, and
17551 simplify usage of obstack_* in macros. Add a test for coverage.
17552 Reported by Bruno Haible.
17554 2008-06-14 Bruno Haible <bruno@clisp.org>
17556 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
17557 array size as a constant, not as a const variable.
17558 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
17559 AC_USE_SYSTEM_EXTENSIONS.
17560 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
17561 Test whether the obstack_printf function actually exists.
17562 * modules/obstack-printf (Depends-on): Add extensions.
17563 (Include): Remove obstack.h.
17564 * modules/obstack-printf-posix (Depends-on): Add extensions.
17565 (Include): Remove obstack.h.
17567 2008-06-13 Eric Blake <ebb9@byu.net>
17569 Add obstack-printf and obstack-printf-posix modules.
17570 * modules/obstack-printf: New file.
17571 * modules/obstack-printf-posix: Likewise.
17572 * MODULES.html.sh (Misc): Mention them.
17573 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17575 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17577 * modules/stdio (Makefile.am): Accomodate new modules.
17578 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17579 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
17581 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
17583 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
17584 (gl_REPLACE_OBSTACK_PRINTF): New macros
17585 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
17586 * tests/test-obstack-printf.c: New file.
17587 * modules/obstack-printf-tests: Likewise.
17588 * modules/obstack-printf-posix-tests: Likewise.
17590 2008-06-11 Bruno Haible <bruno@clisp.org>
17592 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
17593 * lib/open.c: Include errno.h.
17594 (open): Fail when attempting to write to a file that has a trailing
17596 * tests/test-open.c (main): Test against trailing slash bug.
17597 * doc/posix-functions/open.texi: Mention the trailing slash bug.
17599 2008-06-10 Bruno Haible <bruno@clisp.org>
17601 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
17602 for $? to work inside the trap command, with various /bin/sh-s.
17603 * tests/test-vc-list-files-cvs.sh: Likewise.
17605 2008-06-10 Bruno Haible <bruno@clisp.org>
17607 * lib/acl-internal.h: Don't include gettext.h here.
17608 * lib/set-mode-acl.c: Include gettext.h here.
17609 * lib/copy-acl.c: Likewise.
17611 2008-06-10 Bruno Haible <bruno@clisp.org>
17613 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
17614 * lib/wait-process.c (wait_subprocess): Likewise.
17615 * lib/execute.h (execute): Add termsigp argument.
17616 * lib/execute.c (execute): Likewise.
17617 * lib/csharpcomp.c (compile_csharp_using_pnet,
17618 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
17619 * lib/csharpexec.c (execute_csharp_using_pnet,
17620 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
17621 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
17622 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
17623 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
17624 is_jikes_present): Update.
17625 * lib/javaexec.c (execute_java_class): Update.
17626 * lib/javaversion.c (execute_and_read_line): Update.
17627 * NEWS: Document the changes.
17628 Reported by Eric Blake.
17630 2008-06-10 Eric Blake <ebb9@byu.net>
17632 Add missing include.
17633 * tests/test-strstr.c (includes): Add <signal.h>.
17634 * tests/test-strcasestr.c (includes): Likewise.
17635 * tests/test-memmem.c (includes): Likewise.
17637 2008-06-10 Bruno Haible <bruno@clisp.org>
17639 * lib/wait-process.c (wait_subprocess): Add an assertion.
17641 2008-06-10 Bruno Haible <bruno@clisp.org>
17643 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
17645 2008-06-10 Bruno Haible <bruno@clisp.org>
17647 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
17649 * tests/test-strcasestr.c (main): Likewise.
17650 * tests/test-strstr.c (main): Likewise.
17652 2008-06-09 Bruno Haible <bruno@clisp.org>
17654 Work around the Solaris 10 ACE ACLs ABI change.
17655 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
17656 declare if ACL_NO_TRIVIAL is present.
17657 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
17658 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
17659 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
17660 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
17661 define if ACL_NO_TRIVIAL is present.
17662 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
17663 and use the current ABI.
17664 (file_has_acl): Use same #if condition as elsewhere.
17665 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
17666 in use, and use the current ABI.
17667 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
17668 Reported by Jim Meyering.
17670 2008-06-09 Eric Blake <ebb9@byu.net>
17672 Work around environments that (stupidly) ignore SIGALRM.
17673 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
17674 before using alarm().
17675 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17676 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17677 Reported by Ian Beckwith <ianb@erislabs.net>.
17679 Produce autobuild blurb earlier in log.
17680 * modules/autobuild (configure.ac-early): Move AB_INIT here.
17682 2008-06-09 Jim Meyering <meyering@redhat.com>
17683 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17685 utimens.c: correct kernel bug work-around
17686 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
17687 failure, not success, and the kernel bug we're trying to work
17688 around affects not just the utimensat call, but also the fallback
17690 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
17692 [HAVE_FUTIMENS]: Use the same work-around, here.
17694 2008-06-09 Jim Meyering <meyering@redhat.com>
17696 add more guards around definition of ACE_-related code
17697 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
17698 ALLOW and ACE_OWNER are also defined.
17700 2008-06-08 Bruno Haible <bruno@clisp.org>
17702 * lib/acl-internal.h: Add me as co-author.
17703 * lib/file-has-acl.c: Likewise.
17704 * lib/set-mode-acl.c: Likewise.
17705 * lib/copy-acl.c: Likewise.
17707 2008-06-08 Bruno Haible <bruno@clisp.org>
17709 Add support for AIX ACLs.
17710 * lib/acl-internal.h (acl_nontrivial): New declaration.
17711 * lib/file-has-acl.c (acl_nontrivial): New function.
17712 (file_has_acl): Add implementation using AIX 4 ACL API.
17713 * lib/set-mode-acl.c (qset_acl): Likewise.
17714 * lib/copy-acl.c (qcopy_acl): Likewise.
17716 2008-06-08 Bruno Haible <bruno@clisp.org>
17718 Add support for HP-UX ACLs.
17719 * lib/acl-internal.h (acl_nontrivial): New declaration.
17720 * lib/file-has-acl.c (acl_nontrivial): New function.
17721 (file_has_acl): Add implementation using HP-UX 11 ACL API.
17722 * lib/set-mode-acl.c (qset_acl): Likewise.
17723 * lib/copy-acl.c (qcopy_acl): Likewise.
17725 2008-06-08 Bruno Haible <bruno@clisp.org>
17727 Add support for Cygwin ACLs.
17728 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
17729 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
17730 the chmod_or_fchmod call.
17731 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
17733 2008-06-08 Bruno Haible <bruno@clisp.org>
17735 Fix bug with setuid modes in Solaris 10+ code.
17736 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
17737 succeeded, when the mode contains some special bits.
17739 2008-06-08 Bruno Haible <bruno@clisp.org>
17741 Add support for Solaris 7..10 ACLs.
17742 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
17744 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
17746 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
17747 * lib/set-mode-acl.c (qset_acl): Likewise.
17748 * lib/copy-acl.c (qcopy_acl): Likewise.
17750 2008-06-08 Bruno Haible <bruno@clisp.org>
17752 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
17754 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
17755 (acl_access_nontrivial): Remove MacOS X case.
17756 (file_has_acl): Use acl_extended_nontrivial.
17757 * lib/copy-acl.c (qcopy_acl): Likewise.
17759 2008-06-08 Bruno Haible <bruno@clisp.org>
17761 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
17763 2008-06-08 Jim Meyering <meyering@redhat.com>
17765 * modules/acl (Maintainer): Add Bruno Haible.
17767 2008-06-07 Bruno Haible <bruno@clisp.org>
17769 Improve support for Tru64 ACLs.
17770 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
17773 2008-06-07 Bruno Haible <bruno@clisp.org>
17775 Add support for MacOS X ACLs.
17776 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
17777 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
17778 * lib/set-mode-acl.c (qset_acl): Likewise.
17779 * lib/copy-acl.c (qcopy_acl): Likewise.
17781 2008-06-07 Bruno Haible <bruno@clisp.org>
17783 Fix memory leak introduced on 2008-05-22.
17784 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
17787 2008-06-07 Bruno Haible <bruno@clisp.org>
17789 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
17790 to construct an empty ACL.
17792 2008-06-07 Bruno Haible <bruno@clisp.org>
17794 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
17796 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
17798 2008-06-07 Bruno Haible <bruno@clisp.org>
17800 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
17801 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
17803 2008-06-07 Bruno Haible <bruno@clisp.org>
17805 * doc/posix-functions/_setjmp.texi: Explain the use of this function
17806 regardless of POSIX.
17807 * doc/posix-functions/_longjmp.texi: Likewise.
17808 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
17809 SystemV platform in this case.
17811 2008-06-06 Eric Blake <ebb9@byu.net>
17813 Document abort() bugs.
17814 * doc/posix-functions/abort.texi (abort): Mention anomalies.
17816 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
17817 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
17819 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
17820 siglongjmp, but only as a macro.
17821 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
17823 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
17825 Tweak documentation to cover cygwin argz bugs.
17826 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
17827 argz bug fix; no code change needed since no cygwin releases
17828 occurred between the last fix and the bug being tested.
17829 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
17830 module and recently fixed cygwin bugs.
17831 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
17832 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
17833 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
17834 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
17835 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
17837 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
17838 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
17839 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
17840 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
17841 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
17842 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
17845 Avoid gcc warning on cygwin.
17846 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
17847 !ACL_NO_TRIVIAL]: Avoid unused variable.
17849 2008-06-05 Eric Blake <ebb9@byu.net>
17851 Be tolerant of UNKNOWN version in gnulib-tool test dir.
17852 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
17853 git-version-gen fails to come up with a version.
17854 Reported by Simon Josefsson.
17856 2008-06-05 Jim Meyering <meyering@redhat.com>
17857 Paul Eggert <eggert@cs.ucla.edu>
17859 utimens.c: work around a probable Linux kernel bug
17860 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
17861 appears to be a kernel bug that causes utimensat to return 280
17862 instead of 0, indicating success.
17864 2008-06-04 Bruno Haible <bruno@clisp.org>
17866 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
17869 2008-06-04 Bruno Haible <bruno@clisp.org>
17871 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
17872 * lib/file-has-acl.c (acl_access_nontrivial): New function.
17873 (file_has_acl): Use it. Save errno afterwards.
17874 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
17876 2008-06-03 Bruno Haible <bruno@clisp.org>
17878 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
17879 draft code. Simplify #ifs.
17880 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
17881 Put Solaris code after POSIX-draft code. Fix comments regarding
17882 Solaris 10, HP-UX. Mention Cygwin.
17883 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
17885 2008-06-03 Eric Blake <ebb9@byu.net>
17887 Provide fallback for older kernels.
17888 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
17889 Provide runtime fallback if kernel lacks support.
17890 Reported by Mike Frysinger.
17892 2008-06-02 Bruno Haible <bruno@clisp.org>
17894 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
17897 2008-06-02 Bruno Haible <bruno@clisp.org>
17899 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
17900 * lib/copy-acl.c (qcopy_acl): Update comment.
17902 2008-06-02 Bruno Haible <bruno@clisp.org>
17904 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
17907 2008-06-02 Bruno Haible <bruno@clisp.org>
17909 * tests/test-file-has-acl.sh: Use different code for Cygwin.
17910 * tests/test-set-mode-acl.sh: Likewise.
17911 * tests/test-copy-acl.sh: Likewise.
17912 * tests/test-copy-file.sh: Likewise.
17914 2008-06-02 Bruno Haible <bruno@clisp.org>
17916 * tests/test-file-has-acl.sh: Remove unused code.
17918 2008-06-01 Bruno Haible <bruno@clisp.org>
17920 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
17921 (copy_acl): Just a wrapper around qcopy_acl that emits the error
17923 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
17925 2008-06-01 Bruno Haible <bruno@clisp.org>
17927 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
17928 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
17929 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
17931 * modules/acl-tests (configure.ac): Remove tests now contained in
17934 2008-06-02 Jim Meyering <meyering@redhat.com>
17936 announce-gen: use a better key-server host name
17937 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
17938 it may be more consistently reliable. Suggested by Werner Koch
17939 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
17941 2008-06-01 Bruno Haible <bruno@clisp.org>
17943 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
17944 Reported by Voroskoi Andras <voroskoi@gmail.com>.
17946 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
17948 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
17950 2008-06-01 Bruno Haible <bruno@clisp.org>
17953 * tests/test-file-has-acl.sh: New file.
17954 * tests/test-file-has-acl.c: New file.
17955 * tests/test-set-mode-acl.sh: New file.
17956 * tests/test-set-mode-acl.c: New file.
17957 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
17958 * tests/test-copy-acl.c: New file.
17959 * modules/acl-tests: New file, based on modules/copy-file-tests.
17960 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
17961 (Depends-on): Add acl-tests.
17962 (configure.ac): Remove checks.
17963 (Makefile.am): Don't create test-sameacls program here any more.
17965 2008-06-01 Bruno Haible <bruno@clisp.org>
17967 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
17968 * tests/test-sameacls.c: Include progname.h.
17969 (main): Invoke set_program_name. Portability fixes for MacOS X,
17972 2008-06-01 Bruno Haible <bruno@clisp.org>
17974 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
17976 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
17978 2008-06-01 Bruno Haible <bruno@clisp.org>
17980 * modules/rpmatch (Depends-on): Add strdup.
17982 2008-06-01 Bruno Haible <bruno@clisp.org>
17984 * lib/pipe.c: Include unistd-safer.h.
17985 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
17986 * modules/pipe (Depends-on): Add unistd-safer.
17988 2008-05-30 Simon Josefsson <simon@josefsson.org>
17990 * modules/autobuild (configure.ac): Call AB_INIT.
17992 2008-05-30 Simon Josefsson <simon@josefsson.org>
17994 * tests/test-getaddrinfo.c: Don't print debug messages by default.
17995 Suggested by Bruno Haible <bruno@clisp.org>.
17997 2008-05-30 Simon Josefsson <simon@josefsson.org>
17999 * tests/test-base64.c: Cast size_t to unsigned long when invoking
18000 printf. Use %lu instead of %d. Reported by Bruno Haible
18003 2008-05-29 Eric Blake <ebb9@byu.net>
18005 Prefer new POSIX 200x interfaces over futimesat.
18006 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
18007 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
18009 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
18011 2008-05-28 Bruno Haible <bruno@clisp.org>
18013 * modules/stpcpy (License): Change to LGPLv2+.
18014 Requested by David Lutterkort <dlutter@redhat.com>.
18016 2008-05-27 Bruno Haible <bruno@clisp.org>
18018 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
18020 Reported by Jose E. Marchesi <jemarch@gnu.org>.
18022 2008-05-27 Bruno Haible <bruno@clisp.org>
18024 * modules/iconv_open (Link): New section, from module 'iconv'.
18025 * modules/striconv (Link): Likewise.
18026 * modules/striconveh (Link): Likewise.
18027 * modules/xstriconv (Link): Likewise.
18028 * modules/unicodeio (Link): Likewise.
18029 * modules/propername (Link): Likewise.
18030 Reported by Jim Meyering.
18032 2008-05-26 Jim Meyering <meyering@redhat.com>
18034 sha256: do not artificially restrict buffer length to be < 2^32
18035 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
18036 uint32_t to size_t.
18037 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
18040 avoid unaligned access errors, e.g., on sparc
18041 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
18042 direct access through a possibly-unaligned uint64* pointer.
18043 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
18044 direct access through a possibly-unaligned uint32* pointer.
18045 Prompted by this patch from Tom "spot" Callaway:
18046 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
18048 sha512.c: fix typo in comment
18049 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
18051 2008-05-25 Bruno Haible <bruno@clisp.org>
18053 * lib/set-mode-acl.c: Renamed from lib/acl.c.
18054 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
18055 (Makefile.am): Update lib_SOURCES.
18057 2008-05-25 Bruno Haible <bruno@clisp.org>
18059 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
18061 2008-05-25 Jim Meyering <meyering@redhat.com>
18063 useless-if-before-free: freed expr may have white-space differences
18064 * build-aux/useless-if-before-free: Recognize cases in which the
18065 freed expression differs from the tested one in embedded white
18066 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
18067 $1 was used, so we can't make any regexp shy. Improved tests now
18070 useless-if-before-free: accept white space in the expression.
18071 * build-aux/useless-if-before-free: For now, any white space
18072 in the expression must be identical in the free argument.
18074 useless-if-before-free: efficiency tweak
18075 * build-aux/useless-if-before-free: Make the expression-matching
18077 Make the *outer* regexp shy, not the expr-matching one.
18079 update code-in-comment to accept cast of free arg
18080 * build-aux/useless-if-before-free: Update regexp.
18082 2008-05-25 Bruno Haible <bruno@clisp.org>
18084 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
18085 * modules/copy-file-tests (Files, Makefile.am): Update.
18086 * tests/test-copy-file.c (func_test_copy): Update.
18088 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
18090 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
18092 2008-05-23 Bruno Haible <bruno@clisp.org>
18094 Improve support for ACLs on OSF/1.
18095 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
18096 Remove fallback for unknown flavors of ACLs.
18098 2008-05-22 Bruno Haible <bruno@clisp.org>
18100 Add support for ACLs on OSF/1.
18101 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
18103 (acl_free_text): New macro fallback.
18104 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
18106 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
18107 acl_free_text function. Require AC_C_INLINE.
18109 2008-05-22 Bruno Haible <bruno@clisp.org>
18111 Make copy_acl work on MacOS X 10.5.
18112 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
18113 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
18114 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
18115 If MODE_INSIDE_ACL, don't assume that every system has the same text
18116 representation for ACLs as FreeBSD.
18117 * lib/copy-acl.c (copy_acl): Add support for platforms with
18119 * lib/file-has-acl.c (file_has_acl): Likewise.
18120 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
18121 FreeBSD, MacOS X, or IRIX, respectively.
18123 2008-05-22 Bruno Haible <bruno@clisp.org>
18125 * lib/acl.h: Don't include <sys/acl.h>.
18126 (GETACLCNT): Move fallback to lib/acl-internal.h.
18127 * lib/acl-internal.h: Include <sys/acl.h> here.
18128 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
18130 2008-05-22 Bruno Haible <bruno@clisp.org>
18132 Split off copy_acl function to separate file.
18133 * lib/copy-acl.c: New file, extracted from lib/acl.c.
18134 * lib/acl.c (copy_acl): Moved function to separate file.
18135 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
18136 * modules/acl (Files): Add lib/copy-acl.c.
18137 (Makefiles.am): Augment lib_SOURCES.
18139 2008-05-22 Bruno Haible <bruno@clisp.org>
18141 * modules/copy-file-tests: New file.
18142 * tests/test-copy-file.sh: New file.
18143 * tests/test-copy-file.c: New file.
18144 * tests/test-copy-file-sameacls.c: New file.
18146 2008-05-22 Eric Blake <ebb9@byu.net>
18149 * tests/test-memcmp.c (main): Pass NULL indirectly.
18151 2008-05-21 Bruno Haible <bruno@clisp.org>
18153 Add reference doc about ACLs.
18154 * doc/acl-resources.txt: New file.
18155 * doc/acl-cygwin.txt: New file.
18157 2008-05-21 Bruno Haible <bruno@clisp.org>
18159 Avoid one more warning from gcc.
18160 * lib/vasnprintf.c (IF_LINT): Update comments.
18161 (VASNPRINTF): Use it also for the 'prefix' array initializer.
18163 2008-05-21 Jim Meyering <meyering@redhat.com>
18165 avoid a warning from gcc
18166 * lib/vasnprintf.c (IF_LINT): Define.
18167 (scale10_round_decimal_long_double):
18168 Use it to avoid a "may be used uninitialized" warning.
18169 (scale10_round_decimal_double): Likewise.
18171 2008-05-21 Simon Josefsson <simon@josefsson.org>
18173 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
18176 2008-05-20 Bruno Haible <bruno@clisp.org>
18178 * tests/test-memcmp.c (main): Test also the sign of the result. Test
18179 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
18181 2008-05-20 Simon Josefsson <simon@josefsson.org>
18183 * modules/memcmp-tests: New file.
18184 * tests/test-memcmp.c: New file.
18186 2008-05-19 Bruno Haible <bruno@clisp.org>
18188 * modules/propername (Notice, configure.ac): Put quoted "..." into
18190 * lib/propername.h: Update comments accordingly.
18191 Reported by Eric Blake.
18193 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
18195 * modules/getpass-gnu (Depends-on): Add fseeko.
18197 2008-05-19 Simon Josefsson <simon@josefsson.org>
18199 * modules/base64-tests: New file.
18201 2008-05-19 Bo Borgerson <gigabo@gmail.com>
18203 * lib/base64.c (base64_decode_ctx): If a decode context structure
18204 was passed in use it to ignore newlines. If a context structure
18205 was _not_ passed in, continue to treat newlines as garbage (this
18206 is the historical behavior). Formerly base64_decode.
18207 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
18208 takes a decode context structure.
18209 * lib/base64.h (base64_decode): Macro for four-argument calls.
18210 (base64_decode_alloc): Likewise.
18211 * lib/base64.c (base64_decode_ctx): If a decode context structure
18212 was passed in use it to ignore newlines. If a context structure
18213 was _not_ passed in, continue to treat newlines as garbage (this
18214 is the historical behavior). Formerly base64_decode.
18215 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
18216 takes a decode context structure.
18217 * lib/base64.h (base64_decode): Macro for four-argument calls.
18218 (base64_decode_alloc): Likewise.
18220 2008-05-19 Jim Meyering <meyering@redhat.com>
18222 avoid a warning from gcc
18223 * lib/trim.c (IF_LINT): Define.
18224 (trim2): Use it to avoid a "may be used uninitialized" warning.
18227 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
18229 2008-05-19 Bruno Haible <bruno@clisp.org>
18231 * doc/glibc-functions/getpass.texi: Document limits of other
18234 2008-05-19 Simon Josefsson <simon@josefsson.org>
18235 Bruno Haible <bruno@clisp.org>
18237 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
18239 2008-05-18 Bruno Haible <bruno@clisp.org>
18241 * modules/propername: New file, from GNU gettext.
18242 * lib/propername.h: New file, from GNU gettext.
18243 * lib/propername.c: New file, from GNU gettext.
18244 * MODULES.html.sh (Internationalization functions): Add propername.
18246 2008-05-16 Jim Meyering <meyering@redhat.com>
18247 Bruno Haible <bruno@clisp.org>
18249 Avoid some warnings from "gcc -Wshadow".
18250 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
18252 2008-05-15 Eric Blake <ebb9@byu.net>
18254 Extend previous patch to cygwin 1.7.0.
18255 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
18256 fast implementation in cygwin >= 1.7.0.
18257 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18258 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18260 2008-05-15 Bruno Haible <bruno@clisp.org>
18262 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
18263 implementation in glibc >= 2.9.
18264 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18265 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18267 2008-05-15 Bruno Haible <bruno@clisp.org>
18269 * MODULES.html.sh (Internationalization functions): Remove linebreak.
18270 (Unicode string functions): Add unilbrk/*.
18271 Reported by Karl Berry.
18273 2008-05-15 Eric Blake <ebb9@byu.net>
18275 Fix violation of <stdbool.h> replacement in regex.
18276 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
18277 * lib/regexec.c (re_search_internal): Likewise.
18278 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
18280 2008-05-15 Jim Meyering <meyering@redhat.com>
18282 avoid distracting test output when git or cvs is not found
18283 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
18284 * tests/test-vc-list-files-git.sh: Likewise.
18286 2008-05-15 Eric Blake <ebb9@byu.net>
18288 Glibc finally accepted the memmem speedup code, bugzilla #5514.
18289 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
18291 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18292 * doc/posix-functions/strstr.texi (strstr): Likewise.
18293 * lib/str-two-way.h (MAX): Sychronize with glibc.
18295 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
18297 * lib/regcomp.c (optimize_utf8): Add a note on why we test
18299 (calc_first): Initialize constraint field.
18300 (duplicate_node_closure): Use it instead of special casing ANCHORS.
18302 (duplicate_node): Merge constraint field for all node types.
18303 (calc_eclosure_iter): Look at constraint field for all node types.
18304 * lib/regex_internal.c (create_cd_newstate): Don't look at
18307 2008-05-14 Bruno Haible <bruno@clisp.org>
18309 Help GCC to do better code generation.
18310 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
18311 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18312 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
18313 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
18314 Declare with attribute 'malloc' if supported.
18316 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
18318 use "echo STR|wc -c" rather than unportable "expr length STR"
18319 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
18320 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
18322 2008-05-14 Jim Meyering <meyering@redhat.com>
18324 use dd ibs=$n count=1 ... rather than less-portable head -c$n
18325 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
18326 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
18327 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
18330 2008-05-14 Eric Blake <ebb9@byu.net>
18332 Avoid quadratic growth in gl_LIBSOURCES.
18333 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
18334 Suggested by Bruno Haible.
18337 * modules/xmemdup0-tests: New file.
18338 * tests/test-xmemdup0.c: Likewise.
18340 2008-05-13 Eric Blake <ebb9@byu.net>
18342 Split xmemdup0 into its own module.
18343 * modules/xmemdup0: New file.
18344 * lib/xmemdup0.h: Likewise.
18345 * lib/xmemdup0.c: Likewise.
18346 * MODULES.html.sh (Memory management functions): Add xmemdup0.
18347 * lib/xalloc.h (xmemdup0): Remove.
18348 * lib/xmalloc.c (xmemdup0): Likewise.
18350 2008-05-13 Eric Blake <ebb9@byu.net>
18351 Bruno Haible <bruno@clisp.org>
18353 Reduce number of forks required during autoconf.
18354 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
18355 and gl_LIBSOURCES_DIR.
18356 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
18357 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
18358 m4_syscmd per file.
18359 <m4_foreach_w>: Move...
18360 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
18362 2008-05-13 Eric Blake <ebb9@byu.net>
18364 * gnulib-tool: Fix various comment typos.
18366 2008-05-12 Bruno Haible <bruno@clisp.org>
18368 Tailor the linebreaking algorithm.
18369 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
18371 2008-05-12 Bruno Haible <bruno@clisp.org>
18373 Update to Unicode 5.0.0.
18374 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18375 LBP_JV, LBP_JT. Redistribute values.
18376 (unilbrk_table): Change size.
18377 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
18378 Unicode TR#14 rev. 22.
18379 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18380 LBP_JV, LBP_JT. Redistribute values.
18381 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
18382 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
18384 * lib/unilbrk/lbrkprop1.h: Regenerated.
18385 * lib/unilbrk/lbrkprop2.h: Regenerated.
18386 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
18387 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
18388 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
18390 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
18392 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
18394 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18395 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18396 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18397 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
18398 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
18399 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
18401 2008-05-11 Bruno Haible <bruno@clisp.org>
18403 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
18405 2008-05-11 Bruno Haible <bruno@clisp.org>
18407 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
18408 * modules/unilbrk/gen-lbrk: New file.
18410 2008-05-11 Bruno Haible <bruno@clisp.org>
18412 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
18413 * m4/sha512.m4 (gl_SHA512): Likewise.
18415 2008-05-11 Jim Meyering <meyering@redhat.com>
18417 New modules: crypto/sha256, crypto/sha512 (from coreutils)
18418 * modules/crypto/sha256: New file.
18419 * modules/crypto/sha512: Likewise.
18420 * lib/sha256.c: Likewise.
18421 * lib/sha256.h: Likewise.
18422 * lib/sha512.c: Likewise.
18423 * lib/sha512.h: Likewise.
18424 * lib/u64.h: Likewise.
18425 * m4/sha256.m4: Likewise.
18426 * m4/sha512.m4: Likewise.
18427 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
18429 2008-05-10 Bruno Haible <bruno@clisp.org>
18431 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
18432 (Input/Output <stdio.h>): Add xprintf.
18433 (Signal handling <signal.h>): Add strsignal.
18434 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
18435 (Core language properties): Add func.
18436 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
18437 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
18439 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
18440 (Input/output): New section.
18441 (File system functions): Add openat-die, stat-macros.
18442 (Networking functions): Add sockets.
18443 (Unicode string functions): Add unictype/*.
18444 (Support for building libraries and executables): Add gperf.
18445 (Support for building documentation): Add agpl-3.0.
18446 (Misc): Add nocrash.
18448 2008-05-10 Bruno Haible <bruno@clisp.org>
18450 * modules/unictype/gen-ctype: New file.
18452 2008-05-10 Jim Meyering <meyering@redhat.com>
18454 Make chdir-safer.c more efficient on a system with no symlinks.
18455 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
18456 also if ELOOP is zero. Suggested by Bruno Haible.
18458 Make chdir-safer.c slightly safer.
18459 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
18460 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
18462 Avoid compile failure on systems without ELOOP (like mingw).
18463 * lib/chdir-safer.c (ELOOP): Define if not already defined.
18464 Reported by Bruno Haible.
18466 2008-05-10 Bruno Haible <bruno@clisp.org>
18468 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
18469 (is_utf8_encoding): Use a case-insensitive comparison.
18470 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
18473 2008-05-10 Bruno Haible <bruno@clisp.org>
18475 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
18476 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
18477 * lib/unilbrk/ulc-common.h (iconv_string_length,
18478 iconv_string_keeping_offsets): Remove declarations.
18479 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
18480 Don't include <iconv.h>, streq.h, xsize.h.
18481 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
18483 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
18484 <iconv.h>, streq.h, xsize.h.
18485 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
18487 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
18488 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
18489 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
18490 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
18492 2008-05-10 Bruno Haible <bruno@clisp.org>
18494 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
18495 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
18497 * modules/unilbrk/u32-width-linebreaks-tests: New file.
18498 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
18500 * modules/unilbrk/u16-width-linebreaks-tests: New file.
18501 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
18503 * modules/unilbrk/u8-width-linebreaks-tests: New file.
18504 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
18506 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
18507 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
18509 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
18510 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
18512 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
18513 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
18515 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
18516 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
18518 2008-05-10 Bruno Haible <bruno@clisp.org>
18520 Split up 'linebreak' module.
18521 * lib/unilbrk.h: New file, based on lib/linebreak.h.
18522 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
18523 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
18525 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
18526 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
18527 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
18529 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
18531 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
18533 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
18534 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
18535 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
18537 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
18539 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
18541 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
18543 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
18545 * modules/unilbrk/base: New file.
18546 * modules/unilbrk/tables: New file.
18547 * modules/unilbrk/u8-possible-linebreaks: New file.
18548 * modules/unilbrk/u16-possible-linebreaks: New file.
18549 * modules/unilbrk/u32-possible-linebreaks: New file.
18550 * modules/unilbrk/ulc-common: New file.
18551 * modules/unilbrk/ulc-possible-linebreaks: New file.
18552 * modules/unilbrk/u8-width-linebreaks: New file.
18553 * modules/unilbrk/u16-width-linebreaks: New file.
18554 * modules/unilbrk/u32-width-linebreaks: New file.
18555 * modules/unilbrk/ulc-width-linebreaks: New file.
18556 * lib/linebreak.h: Remove file.
18557 * lib/linebreak.c: Remove file.
18558 * m4/linebreak.m4: Remove file.
18559 * modules/linebreak: Remove file.
18560 * NEWS: Mention the changes.
18562 2008-05-09 Eric Blake <ebb9@byu.net>
18565 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
18567 * lib/xmalloc.c (xmemdup0): New C implementation.
18569 2008-05-08 Bruno Haible <bruno@clisp.org>
18571 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
18573 2008-05-07 Eric Blake <ebb9@byu.net>
18575 Support cross-compilation of <wctype.h>.
18576 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
18579 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
18581 * build-aux/vc-list-files: Add support for bzr.
18583 2008-05-03 Jim Meyering <meyering@redhat.com>
18585 avoid failed assertion with tight malloc
18586 * tests/test-getndelim2.c: Correct an off-by-one assertion.
18588 2008-05-03 Simon Josefsson <simon@josefsson.org>
18590 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
18591 are needed from arpa/inet.h.
18592 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
18593 Reported by Bruno Haible.
18595 2008-05-02 Jim Meyering <meyering@redhat.com>
18597 avoid compilation error on FreeBSD 6
18598 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
18600 2008-05-01 Jim Meyering <meyering@redhat.com>
18602 useless-if-before-free: correct --help's exit status description
18603 * build-aux/useless-if-before-free (usage): Like grep, exit 0
18604 for one or more matches, etc. Reported by Bruno Haible.
18606 vc-list-files: make the stand-alone gnulib test work
18607 * modules/vc-list-files-tests (configure.ac):
18608 Define and AC_SUBST abs_aux_dir.
18609 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
18610 $(abs_top_srcdir) to each script and having each of them
18611 duplicate the work of setting PATH, set PATH here, using
18612 the new variable, abs_aux_dir instead.
18613 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
18614 * tests/test-vc-list-files-git.sh: Likewise.
18615 Reported by Bruno Haible.
18617 2008-05-01 Bruno Haible <bruno@clisp.org>
18619 * lib/getndelim2.c (getndelim2): Fix newsize computation during
18620 reallocation. Rename 'done' to 'found_delimiter'.
18622 2008-05-01 Jim Meyering <meyering@redhat.com>
18624 vc-list-files: accommodate /bin/sh like the one from Solaris 10
18625 * build-aux/vc-list-files: Use `...`, not $(...).
18627 2008-04-30 Jim Meyering <meyering@redhat.com>
18629 add tests for vc-list-files
18630 * modules/vc-list-files-tests: New module.
18631 * tests/test-vc-list-files-cvs.sh: New file.
18632 * tests/test-vc-list-files-git.sh: New file.
18634 avoid a warning from gcc
18635 * lib/getndelim2.c (IF_LINT): Define.
18636 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
18638 vc-list-files: work properly with build-aux/cvsu, too
18639 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
18640 to all cvs-based clauses.
18642 vc-list-files: work properly in the CVS+awk case, too
18643 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
18645 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
18646 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
18647 take more than one file argument, so . Add quotes, just in case $dir
18648 ever contains a shell meta-character. Prompted by Soren Hansen in
18649 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
18651 2008-04-29 Eric Blake <ebb9@byu.net>
18653 Optimize getndelim2 to use block operations when possible.
18654 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
18655 freadseek, and memchr2.
18656 * lib/getndelim2.c (getndelim2): Use them for block reads.
18658 2008-04-29 Bruno Haible <bruno@clisp.org>
18660 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
18661 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18662 * modules/inet_ntop (Depends-on): Add extensions.
18663 * modules/inet_pton (Depends-on): Likewise.
18664 Reported by Simon Josefsson.
18666 2008-04-29 Jim Meyering <meyering@redhat.com>
18668 When the is more than one match in a block, match all of them.
18669 * build-aux/useless-if-before-free: Iterate through each block
18670 until there are no more matches.
18672 Fix broken useless-if-before-free script.
18673 * build-aux/useless-if-before-free: Fix typo: missing "?" after
18674 the expression to match cast of argument to free-like function.
18676 2008-04-29 Eric Blake <ebb9@byu.net>
18679 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
18681 2008-04-29 Jim Meyering <meyering@redhat.com>
18683 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
18684 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
18685 by gnulib to exist and to declare e.g., inet_ntop.
18686 Don't include "inet_ntop.h", now removed.
18688 * m4/arpa_inet_h.m4: Remove trailing blanks.
18690 2008-04-29 Eric Blake <ebb9@byu.net>
18692 Silence valgrind on safe reads beyond potential array bounds.
18693 * lib/rawmemchr.valgrind: New file.
18694 * lib/strchrnul.valgrind: Likewise.
18695 * modules/rawmemchr (Files): Distribute new file.
18696 * modules/strchrnul (Files): Likewise.
18697 Suggested by Bruno Haible.
18699 2008-04-29 Bruno Haible <bruno@clisp.org>
18701 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
18702 (inet_ntop, inet_pton): Change portability warning's wording.
18703 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
18704 Invoke gl_CHECK_NEXT_HEADERS.
18705 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
18706 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
18708 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18709 * modules/arpa_inet (Description): No longer only for systems that
18711 (Depends-on): Add include_next.
18712 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
18715 2008-04-29 Jim Meyering <meyering@redhat.com>
18717 * modules/mkdir (License): Re-license as LGPLv2+.
18719 2008-04-29 Bruno Haible <bruno@clisp.org>
18721 * modules/rawmemchr (Maintainer): Set to Eric.
18722 * modules/strchrnul (Maintainer): Likewise.
18724 2008-04-29 Simon Josefsson <simon@josefsson.org>
18726 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
18727 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
18729 * modules/arpa_inet (arpa/inet.h): Use them.
18731 2008-04-28 Eric Blake <ebb9@byu.net>
18734 * modules/getndelim2-tests: New file.
18735 * tests/test-getndelim2.c: Likewise.
18736 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
18738 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
18740 * MODULES.html.sh: Document new module.
18742 2008-04-20 Bruno Haible <bruno@clisp.org>
18744 * lib/c-stack.c (die): Use raise.
18745 * modules/c-stack (Depends-on): Add raise.
18747 2008-04-28 Bruno Haible <bruno@clisp.org>
18749 Expect rpmatch to be declared.
18750 * lib/yesno.c (rpmatch): Remove declaration.
18753 * lib/stdlib.in.h (rpmatch): New declaration.
18754 * lib/rpmatch.c: Include <stdlib.h> first.
18755 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
18756 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
18757 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
18759 * modules/rpmatch (Depends-on): Add stdlib, extensions.
18760 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18761 (Include): Set to <stdlib.h>.
18762 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
18764 * NEWS: Document the change.
18766 2008-04-28 Bruno Haible <bruno@clisp.org>
18768 Change rpmatch to use nl_langinfo when appropriate.
18769 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
18771 (localized_pattern): New function/macro.
18772 (try): Remove match, nomatch arguments. Copy the pattern into safe
18773 memory before caching it.
18774 (rpmatch): Use localized_pattern. Add translator comments.
18775 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
18776 Suggested by Eric Blake.
18777 * modules/rpmatch (Depends-on): Add stdbool.
18779 2008-04-28 Eric Blake <ebb9@byu.net>
18781 Add rawmemchr module, matching glibc.
18782 * modules/string (Makefile.am): New indicator.
18783 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
18784 * lib/string.in.h (rawmemchr): Declare when appropriate.
18785 * modules/rawmemchr: New file.
18786 * m4/rawmemchr.m4: Likewise.
18787 * lib/rawmemchr.c: Likewise.
18788 * modules/rawmemchr-tests: Likewise.
18789 * tests/test-rawmemchr.c: Likewise.
18790 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
18792 * modules/strchrnul (Depends-on): Add rawmemchr.
18793 * lib/strchrnul.c (strchrnul): Optimize a corner case.
18795 Whitespace cleanup.
18796 * tests/test-strchrnul.c: Reindent.
18797 * lib/strchrnul.c: Likewise.
18799 Optimize and test strchrnul.
18800 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
18801 * modules/strchrnul-tests: New file.
18802 * tests/test-strchrnul.c: Likewise.
18804 Remove intprops dependency.
18805 * modules/memchr (Depends-on): Remove intprops.
18806 * modules/memrchr (Depends-on): Likewise.
18807 * modules/memchr2 (Depends-on): Likewise.
18808 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
18809 * lib/memrchr.c (__memrchr): Likewise.
18810 * lib/memrchr2.c (memchr2): Likewise.
18811 Reported by Simon Josefsson.
18813 2008-04-28 Simon Josefsson <simon@josefsson.org>
18815 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
18816 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18818 2008-04-28 Simon Josefsson <simon@josefsson.org>
18820 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
18822 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
18824 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
18826 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
18828 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
18830 * m4/inet_pton.m4: Don't check for header files.
18832 * m4/inet_ntop.m4: Don't check for header files.
18834 2008-04-28 Simon Josefsson <simon@josefsson.org>
18836 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
18837 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
18838 trigger for cygwin).
18839 Reported by Bruno Haible <bruno@clisp.org>.
18841 2008-04-28 Bruno Haible <bruno@clisp.org>
18843 * doc/posix-functions/strdup.texi: Mention mingw problem.
18845 2008-04-27 Bruno Haible <bruno@clisp.org>
18847 * modules/stat-time-tests (Depends-on): Add sleep.
18848 * tests/test-stat-time.c (force_unlink): New function.
18850 (test_mtime): Remove the ctime related tests.
18851 (test_ctime): New function, containing the ctime related tests.
18852 (main): Call test_ctime, except on native Windows platforms.
18854 2008-04-27 Bruno Haible <bruno@clisp.org>
18856 * lib/rpmatch.c (rpmatch): Add some comments.
18857 Reported by James Youngman <jay@gnu.org>.
18859 2008-04-27 Bruno Haible <bruno@clisp.org>
18861 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
18864 2008-04-27 Bruno Haible <bruno@clisp.org>
18866 Make test-yesno.sh work on mingw.
18867 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
18868 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
18869 (main): Set stdin to binary mode.
18870 * modules/yesno-tests (Depends-on): Add binary-io.
18872 2008-04-27 Bruno Haible <bruno@clisp.org>
18874 Fix 'isfinite' on x86, x86_64, ia64 platforms.
18875 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
18876 argument that lie outside the IEEE 854 domain.
18877 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
18878 (gl_ISFINITE): Use it.
18879 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
18881 2008-04-27 Bruno Haible <bruno@clisp.org>
18883 Allow local renaming in config.h.
18884 * lib/memrchr.c (memrchr): Don't undefine outside libc.
18886 2008-04-27 Bruno Haible <bruno@clisp.org>
18888 * lib/memchr.c (__memchr): Change type of 'i'.
18889 * lib/memchr2.c (memchr2): Likewise.
18891 2008-04-26 Eric Blake <ebb9@byu.net>
18892 and Bruno Haible <bruno@clisp.org>
18894 Optimize and test memrchr.
18895 * modules/memrchr (Depends-on): Add intprops.
18896 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
18897 * modules/memrchr-tests: New file.
18898 * tests/test-memrchr.c: New file.
18900 2008-04-26 Bruno Haible <bruno@clisp.org>
18902 Add tentative support for DragonFly BSD.
18903 * lib/stdio-impl.h: Add macros for DragonFly BSD.
18904 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
18906 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
18907 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
18908 * lib/fpurge.c (fpurge): Likewise.
18909 * lib/freadable.c (freaadable): Likewise.
18910 * lib/freadahead.c (freadahead): Likewise.
18911 * lib/freading.c (freading): Likewise.
18912 * lib/freadptr.c (freadptr): Likewise.
18913 * lib/freadseek.c (freadptrinc): Likewise.
18914 * lib/fseeko.c (fseeko): Likewise.
18915 * lib/fseterr.c (fseterr): Likewise.
18916 * lib/fwritable.c (fwritable): Likewise.
18917 * lib/fwriting.c (fwriting): Likewise.
18919 2008-04-26 Bruno Haible <bruno@clisp.org>
18921 * lib/stdio-impl.h: New file.
18922 * lib/fbufmode.c: Include stdio-impl.h.
18923 (fbufmode): Use fp_, remove redundant #defines.
18924 * lib/fflush.c: Include stdio-impl.h.
18925 (clear_ungetc_buffer): Remove redundant #defines.
18926 * lib/fpurge.c: Include stdio-impl.h.
18927 (fpurge): Remove redundant #defines.
18928 * lib/freadable.c: Include stdio-impl.h.
18929 (freadable): Remove redundant #defines.
18930 * lib/freadahead.c: Include stdio-impl.h.
18931 (freadahead): Remove redundant #defines.
18932 * lib/freading.c: Include stdio-impl.h.
18933 (freading): Remove redundant #defines.
18934 * lib/freadptr.c: Include stdio-impl.h.
18935 (freadptr): Remove redundant #defines.
18936 * lib/freadseek.c: Include stdio-impl.h.
18937 (freadptrinc): Remove redundant #defines.
18938 * lib/fseeko.c: Include stdio-impl.h.
18939 (rpl_fseeko): Remove redundant #defines.
18940 * lib/fseterr.c: Include stdio-impl.h.
18941 (fseterr): Remove redundant #defines.
18942 * lib/fwritable.c: Include stdio-impl.h.
18943 (fwritable: Remove redundant #defines.
18944 * lib/fwriting.c: Include stdio-impl.h.
18945 (fwriting): Remove redundant #defines.
18946 * modules/fbufmode (Files): Add lib/stdio-impl.h.
18947 * modules/fflush (Files): Likewise.
18948 * modules/fpurge (Files): Likewise.
18949 * modules/freadable (Files): Likewise.
18950 * modules/freadahead (Files): Likewise.
18951 * modules/freading (Files): Likewise.
18952 * modules/freadptr (Files): Likewise.
18953 * modules/freadseek (Files): Likewise.
18954 * modules/fseeko (Files): Likewise.
18955 * modules/fseterr (Files): Likewise.
18956 * modules/fwritable (Files): Likewise.
18957 * modules/fwriting (Files): Likewise.
18959 2008-04-26 Bruno Haible <bruno@clisp.org>
18961 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
18962 restore_seek_optimization, update_fpos_cache): New functions, extracted
18964 (rpl_fflush): Use them.
18965 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
18966 (gl_REPLACE_FFLUSH): Use it.
18968 2008-04-26 Bruno Haible <bruno@clisp.org>
18970 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
18972 * tests/test-xstrtoimax.sh: Likewise.
18973 * tests/test-xstrtoumax.sh: Likewise.
18974 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18976 2008-04-26 Bruno Haible <bruno@clisp.org>
18978 * modules/memchr-tests: New file.
18979 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
18981 2008-04-26 Eric Blake <ebb9@byu.net>
18982 Bruno Haible <bruno@clisp.org>
18984 * lib/memchr.c: Include intprops.h.
18985 (__memchr): Optimize parallel detection of matching bytes. Rename local
18986 variables. Add explanatory comments.
18988 2008-04-26 Bruno Haible <bruno@clisp.org>
18990 Fix module 'memchr', broken since 2000-10-28.
18991 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
18993 2008-04-26 Bruno Haible <bruno@clisp.org>
18995 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
18998 2008-04-25 Eric Blake <ebb9@byu.net>
19000 Use native fstatat on cygwin 1.7.0.
19001 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
19004 2008-04-23 Eric Blake <ebb9@byu.net>
19006 Improve memchr2 performance.
19007 * lib/memchr2.c (memchr2): Further optimize parallel detection of
19009 * modules/memchr2 (Depends-on): Use intprops.h.
19011 2008-04-23 Simon Josefsson <simon@josefsson.org>
19013 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
19014 an inline function instead of a CPP macro. Patch by Ben Pfaff
19015 <blp@cs.stanford.edu>.
19017 2008-04-23 Simon Josefsson <simon@josefsson.org>
19019 * lib/arpa_inet.in.h: New file.
19021 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
19022 (Makefile.am): Sed in substitute header file.
19024 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
19025 gl_ARPA_INET_MODULE_INDICATOR. Use them.
19027 * modules/inet_ntop (configure.ac): Use
19028 gl_ARPA_INET_MODULE_INDICATOR.
19030 * modules/inet_pton (configure.ac): Use
19031 gl_ARPA_INET_MODULE_INDICATOR.
19033 2008-04-22 Jim Meyering <meyering@redhat.com>
19035 * modules/verify (License): Re-license as LGPLv2+.
19037 2008-04-22 Simon Josefsson <simon@josefsson.org>
19039 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
19040 parameter to void* as per POSIX standard (MinGW uses char*).
19042 2008-04-21 Bruno Haible <bruno@clisp.org>
19044 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19045 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19046 Define to replacements if REPLACE_ISWCNTRL is 1.
19047 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
19048 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
19049 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
19050 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
19052 * doc/posix-functions/iswalpha.texi: Likewise.
19053 * doc/posix-functions/iswblank.texi: Likewise.
19054 * doc/posix-functions/iswcntrl.texi: Likewise.
19055 * doc/posix-functions/iswdigit.texi: Likewise.
19056 * doc/posix-functions/iswgraph.texi: Likewise.
19057 * doc/posix-functions/iswlower.texi: Likewise.
19058 * doc/posix-functions/iswprint.texi: Likewise.
19059 * doc/posix-functions/iswpunct.texi: Likewise.
19060 * doc/posix-functions/iswspace.texi: Likewise.
19061 * doc/posix-functions/iswupper.texi: Likewise.
19062 * doc/posix-functions/iswxdigit.texi: Likewise.
19063 Reported by Alain Guibert.
19065 2008-04-21 Bruno Haible <bruno@clisp.org>
19067 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
19068 Patch by Alain Guibert.
19070 2008-04-21 Bruno Haible <bruno@clisp.org>
19072 Fix test failures on mingw.
19073 * tests/test-xstrtol.c (print_no_progname): New function.
19074 (main): Install it in error_print_progname hook.
19075 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
19076 * tests/test-xstrtoimax.sh: Likewise.
19077 * tests/test-xstrtoumax.sh: Likewise.
19079 2008-04-21 Bruno Haible <bruno@clisp.org>
19081 Fix test failure on mingw.
19082 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
19084 2008-04-21 Bruno Haible <bruno@clisp.org>
19086 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
19087 Actually assign a value.
19089 2008-04-20 Bruno Haible <bruno@clisp.org>
19091 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
19093 * lib/canonicalize.c (canonicalize_file_name): Elide if the
19094 'canonicalize-lgpl' module is also used.
19095 * lib/canonicalize-lgpl.c: Undo last change.
19096 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
19098 2008-04-20 Bruno Haible <bruno@clisp.org>
19100 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
19101 config.h. Provide _mkdir based fallback for mingw.
19102 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
19103 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
19104 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
19105 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
19106 rather than defining mkdir in config.h.
19107 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
19108 (gl_SYS_STAT_H_DEFAULTS): New macro.
19109 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
19110 HAVE_IO_H any more.
19111 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
19112 HAVE_DECL_MKDIR and HAVE_IO_H.
19114 2008-04-20 Bruno Haible <bruno@clisp.org>
19116 * lib/isapipe.c: Port to native Windows platforms.
19118 2008-04-20 Bruno Haible <bruno@clisp.org>
19120 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
19122 2008-04-21 Eric Blake <ebb9@byu.net>
19124 Work around preprocessors that don't handle UINTMAX_MAX.
19125 * lib/memchr2.c (memchr2): Avoid embedded #if.
19126 Reported by Alain Guibert, fix suggested by Bruno Haible.
19128 2008-04-21 Simon Josefsson <simon@josefsson.org>
19130 * doc/posix-functions/strftime.texi (strftime): Explain better
19131 Windows incompatibility. Suggested by Micah Cowan
19132 <micah@cowan.name>.
19134 2008-04-20 Bruno Haible <bruno@clisp.org>
19136 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
19139 2008-04-20 Bruno Haible <bruno@clisp.org>
19141 Fix test failure on platforms with non-GNU iconv.
19142 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
19143 (U_TO_U8): Use it, rather than u16_to_u8.
19144 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
19145 units at the end of the input string.
19146 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
19148 2008-04-20 Bruno Haible <bruno@clisp.org>
19150 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
19151 when the resulting length is 0.
19152 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
19154 2008-04-20 Bruno Haible <bruno@clisp.org>
19156 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
19158 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
19160 2008-04-20 Bruno Haible <bruno@clisp.org>
19162 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
19163 * modules/tsearch-tests (configure.ac): Test for initstate function.
19165 2008-04-20 Bruno Haible <bruno@clisp.org>
19167 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
19168 for nlink_t if missing.
19169 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
19171 2008-04-19 Bruno Haible <bruno@clisp.org>
19173 Work around snprintf bug on Linux libc5.
19174 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
19175 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
19177 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19178 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
19180 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
19181 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
19182 * modules/snprintf (Files): Add m4/printf.m4.
19183 * modules/vsnprintf (Files): Likewise.
19184 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
19185 * doc/posix-functions/vsnprintf.texi: Likewise.
19187 2008-04-19 Bruno Haible <bruno@clisp.org>
19189 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
19190 from 0.0058 to less than 10^-7.
19192 2008-04-19 Bruno Haible <bruno@clisp.org>
19194 Fix rounding when a precision is given.
19195 * lib/vasnprintf.c (is_borderline): New function.
19196 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
19198 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
19200 * tests/test-vasprintf-posix.c (test_function): Likewise.
19201 * tests/test-snprintf-posix.h (test_function): Likewise.
19202 * tests/test-sprintf-posix.h (test_function): Likewise.
19203 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
19204 * tests/test-printf-posix.h (test_function): Likewise.
19205 * tests/test-printf-posix.output: Update.
19206 Reported by John Darrington <john@darrington.wattle.id.au> via
19207 Ben Pfaff <blp@cs.stanford.edu>.
19209 2008-04-18 Simon Josefsson <simon@josefsson.org>
19211 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
19212 Suggested by Bruno Haible <bruno@clisp.org>.
19214 2008-04-17 Bruno Haible <bruno@clisp.org>
19216 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
19217 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
19219 Patch by Bruce Merry <bmerry@gmail.com>.
19221 2008-04-17 Simon Josefsson <simon@josefsson.org>
19223 * doc/posix-functions/strftime.texi (strftime): Mention that %e
19224 doesn't work under Windows.
19226 2008-04-16 Bruno Haible <bruno@clisp.org>
19228 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
19230 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
19231 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
19232 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
19233 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
19234 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
19235 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
19236 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
19238 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
19239 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
19240 Northern Sotho, Uighur.
19242 2008-04-16 Bruno Haible <bruno@clisp.org>
19244 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
19245 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
19246 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
19247 Reported by Daniel Bergström <daniel@octocode.com>.
19249 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
19250 Bruno Haible <bruno@clisp.org>
19252 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
19254 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
19255 New functions, mostly extracted from gl_locale_name_default.
19256 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
19258 2008-04-16 Eric Blake <ebb9@byu.net>
19260 Adjust strtod detection to catch glibc 2.7 bug.
19261 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
19262 Reported by John Gatewood Ham.
19264 2008-04-16 Bruno Haible <bruno@clisp.org>
19266 Add tentative support for Linux libc5.
19267 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
19268 * lib/fpurge.c (fpurge): Likewise.
19269 * lib/freadable.c (freadable): Likewise.
19270 * lib/freadahead.c (freadahead): Likewise.
19271 * lib/freading.c (freading): Likewise.
19272 * lib/freadptr.c (freadptr): Likewise.
19273 * lib/freadseek.c (freadptrinc): Likewise.
19274 * lib/fseeko.c (rpl_fseeko): Likewise.
19275 * lib/fseterr.c (fseterr): Likewise.
19276 * lib/fwritable.c (fwritable): Likewise.
19277 * lib/fwriting.c (fwriting): Likewise.
19278 Reported by Alain Guibert <alguibert+bts@free.fr>.
19280 2008-04-15 Bruno Haible <bruno@clisp.org>
19282 * modules/mathl (configure.ac): Define module indicator.
19284 2008-04-15 Bruno Haible <bruno@clisp.org>
19286 * lib/logl.c (logl): Remove unused variables.
19288 2008-04-15 Bruno Haible <bruno@clisp.org>
19290 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
19293 2008-04-15 Bruno Haible <bruno@clisp.org>
19295 * lib/trim.c (trim2): Fix argument of isspace() macro.
19297 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
19299 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
19301 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
19303 2008-04-14 Bruno Haible <bruno@clisp.org>
19305 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
19306 AC_LANG_PROGRAM argument.
19307 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
19308 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
19309 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19310 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19311 * m4/math_h.m4 (gl_MATH_H): Likewise.
19312 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19313 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19314 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
19315 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19316 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19317 * m4/regex.m4 (gl_REGEX): Likewise.
19318 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
19319 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
19320 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19321 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
19322 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19323 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19324 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19325 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19327 2008-04-14 Jim Meyering <meyering@redhat.com>
19329 test-strtod: fix typos: s/abs/fabs/
19330 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
19332 2008-04-13 Bruno Haible <bruno@clisp.org>
19334 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
19335 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
19336 module is also used and while not building the reloc-wrapper.
19338 2008-04-13 Bruno Haible <bruno@clisp.org>
19340 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
19342 2008-04-13 Bruno Haible <bruno@clisp.org>
19344 Fix AIX compilation failure introduced on 2008-04-02.
19345 * tests/test-frexp.c (exp): Undefine before redefining.
19346 * tests/test-frexpl.c (exp): Likewise.
19348 2008-04-13 Bruno Haible <bruno@clisp.org>
19350 Work around a HP-UX stdio bug.
19351 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
19352 * tests/test-ftello.c (main): Likewise.
19353 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
19354 * doc/posix-functions/ftello.texi: Likewise.
19356 2008-04-13 Bruno Haible <bruno@clisp.org>
19358 Make test-signbit pass on HP-UX/hppa.
19359 * tests/test-signbit.c (minus_zerol): New variable.
19360 (test_signbitl): Use it.
19362 2008-04-13 Bruno Haible <bruno@clisp.org>
19364 Make truncl work on OSF/1 4.0.
19365 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
19366 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19367 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19368 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
19370 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
19372 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
19374 2008-04-13 Bruno Haible <bruno@clisp.org>
19376 * lib/unictype.h: Remove trailing comma from enumeration definitions.
19378 2008-04-13 Bruno Haible <bruno@clisp.org>
19380 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
19381 expression, so as to avoid HP-UX 11 cc compiler bug.
19383 2008-04-13 Bruno Haible <bruno@clisp.org>
19385 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
19387 2008-04-13 Bruno Haible <bruno@clisp.org>
19389 * lib/git-merge-changelog.c: Remove empty declaration outside of
19392 2008-04-13 Bruno Haible <bruno@clisp.org>
19394 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
19396 2008-04-13 Bruno Haible <bruno@clisp.org>
19398 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
19399 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
19400 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
19401 also if it exists but lacks definitions of the SHUT_* macros.
19402 * modules/sys_socket (Description): Update.
19403 Reported by Elbert Pol <e.pol@chello.nl>.
19405 2008-04-13 Bruno Haible <bruno@clisp.org>
19407 * lib/localcharset.c (OS2): Don't redefine if already defined.
19408 Reported by Elbert Pol <e.pol@chello.nl>.
19410 2008-04-13 Bruno Haible <bruno@clisp.org>
19412 * lib/binary-io.h [__EMX__]: Include <io.h>.
19413 Reported by Elbert Pol <e.pol@chello.nl>.
19415 2008-04-12 Bruno Haible <bruno@clisp.org>
19417 * lib/fpucw.h: Enable the definitions also for x86_64.
19418 Needed for NetBSD/x86_64.
19419 Reported by Thomas Klausner <tk@giga.or.at>.
19421 2008-04-12 Bruno Haible <bruno@clisp.org>
19423 * tests/test-strtod.c: Include isnand.h.
19424 (main): Use isnand instead of isnan.
19425 Reported by Jim Meyering.
19427 2008-04-12 Bruno Haible <bruno@clisp.org>
19429 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
19430 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19432 2008-04-12 Jim Meyering <meyering@redhat.com>
19434 * m4/math_h.m4 (gl_MATH_H): Fix typos.
19436 2008-04-12 Bruno Haible <bruno@clisp.org>
19438 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
19439 Reported by Elbert Pol <e.pol@chello.nl>.
19441 2008-04-12 Eric Blake <ebb9@byu.net>
19443 Work around Solaris 10 math.h bug.
19444 * m4/math_h.m4 (gl_MATH_H): Check for bug.
19445 (gl_MATH_H_DEFAULTS): Set up default.
19446 * modules/math (Makefile.am): Replace new indicators.
19447 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
19448 * tests/test-math.c (main): Test this.
19449 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
19450 * doc/posix-headers/math.texi (math.h): Mention bug.
19451 Reported by Nelson H. F. Beebe and Jim Meyering.
19453 2008-04-11 Bruno Haible <bruno@clisp.org>
19455 Adapt to future versions of Apple GCC.
19456 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
19457 Reported by Peter O'Gorman <peter@pogma.com>.
19459 2008-04-11 Bruno Haible <bruno@clisp.org>
19461 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
19463 2008-04-11 Bruno Haible <bruno@clisp.org>
19465 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
19467 * modules/getaddrinfo-tests (Makefile.am): Define
19468 test_getaddrinfo_LDADD.
19470 2008-04-11 Bruno Haible <bruno@clisp.org>
19472 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
19473 (init): Fix syntax error.
19474 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
19477 2008-04-11 Bruno Haible <bruno@clisp.org>
19479 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
19480 * modules/glob (Depends-on): Add stdbool.
19482 2008-04-11 Bruno Haible <bruno@clisp.org>
19484 * lib/trim.c: Include <string.h>.
19486 2008-04-11 Eric Blake <ebb9@byu.net>
19488 Avoid compile failure on OS/2.
19489 * lib/regex_internal.h (internal_function): Disable optimization
19490 on OS/2 (__EMX__), where it caused compiler error.
19491 Reported by Elbert Pol.
19493 2008-04-11 Bruno Haible <bruno@clisp.org>
19495 Flush the standard error stream before aborting. Needed on mingw.
19496 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
19497 * tests/test-array_list.c (ASSERT): Likewise.
19498 * tests/test-array_oset.c (ASSERT): Likewise.
19499 * tests/test-avltree_list.c (ASSERT): Likewise.
19500 * tests/test-avltree_oset.c (ASSERT): Likewise.
19501 * tests/test-avltreehash_list.c (ASSERT): Likewise.
19502 * tests/test-binary-io.c (ASSERT): Likewise.
19503 * tests/test-byteswap.c (ASSERT): Likewise.
19504 * tests/test-c-ctype.c (ASSERT): Likewise.
19505 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
19506 * tests/test-c-strcasestr.c (ASSERT): Likewise.
19507 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
19508 * tests/test-c-strstr.c (ASSERT): Likewise.
19509 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
19510 * tests/test-canonicalize.c (ASSERT): Likewise.
19511 * tests/test-carray_list.c (ASSERT): Likewise.
19512 * tests/test-ceilf1.c (ASSERT): Likewise.
19513 * tests/test-ceilf2.c (ASSERT): Likewise.
19514 * tests/test-ceill.c (ASSERT): Likewise.
19515 * tests/test-count-one-bits.c (ASSERT): Likewise.
19516 * tests/test-fbufmode.c (ASSERT): Likewise.
19517 * tests/test-fflush2.c (ASSERT): Likewise.
19518 * tests/test-floorf1.c (ASSERT): Likewise.
19519 * tests/test-floorf2.c (ASSERT): Likewise.
19520 * tests/test-floorl.c (ASSERT): Likewise.
19521 * tests/test-fopen.c (ASSERT): Likewise.
19522 * tests/test-fpending.c (ASSERT): Likewise.
19523 * tests/test-fprintf-posix.c (ASSERT): Likewise.
19524 * tests/test-fpurge.c (ASSERT): Likewise.
19525 * tests/test-freadable.c (ASSERT): Likewise.
19526 * tests/test-freadahead.c (ASSERT): Likewise.
19527 * tests/test-freading.c (ASSERT): Likewise.
19528 * tests/test-freadptr.c (ASSERT): Likewise.
19529 * tests/test-freadptr2.c (ASSERT): Likewise.
19530 * tests/test-freadseek.c (ASSERT): Likewise.
19531 * tests/test-freopen.c (ASSERT): Likewise.
19532 * tests/test-frexp.c (ASSERT): Likewise.
19533 * tests/test-frexpl.c (ASSERT): Likewise.
19534 * tests/test-fseek.c (ASSERT): Likewise.
19535 * tests/test-fseeko.c (ASSERT): Likewise.
19536 * tests/test-fstrcmp.c (ASSERT): Likewise.
19537 * tests/test-ftell.c (ASSERT): Likewise.
19538 * tests/test-ftello.c (ASSERT): Likewise.
19539 * tests/test-func.c (ASSERT): Likewise.
19540 * tests/test-fwritable.c (ASSERT): Likewise.
19541 * tests/test-fwriting.c (ASSERT): Likewise.
19542 * tests/test-getdelim.c (ASSERT): Likewise.
19543 * tests/test-getline.c (ASSERT): Likewise.
19544 * tests/test-i-ring.c (ASSERT): Likewise.
19545 * tests/test-iconv-utf.c (ASSERT): Likewise.
19546 * tests/test-iconv.c (ASSERT): Likewise.
19547 * tests/test-isfinite.c (ASSERT): Likewise.
19548 * tests/test-isnand.c (ASSERT): Likewise.
19549 * tests/test-isnanf.c (ASSERT): Likewise.
19550 * tests/test-isnanl.h (ASSERT): Likewise.
19551 * tests/test-ldexpl.c (ASSERT): Likewise.
19552 * tests/test-linked_list.c (ASSERT): Likewise.
19553 * tests/test-linkedhash_list.c (ASSERT): Likewise.
19554 * tests/test-localename.c (ASSERT): Likewise.
19555 * tests/test-lseek.c (ASSERT): Likewise.
19556 * tests/test-mbscasecmp.c (ASSERT): Likewise.
19557 * tests/test-mbscasestr1.c (ASSERT): Likewise.
19558 * tests/test-mbscasestr2.c (ASSERT): Likewise.
19559 * tests/test-mbscasestr3.c (ASSERT): Likewise.
19560 * tests/test-mbscasestr4.c (ASSERT): Likewise.
19561 * tests/test-mbschr.c (ASSERT): Likewise.
19562 * tests/test-mbscspn.c (ASSERT): Likewise.
19563 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
19564 * tests/test-mbspbrk.c (ASSERT): Likewise.
19565 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
19566 * tests/test-mbsrchr.c (ASSERT): Likewise.
19567 * tests/test-mbsspn.c (ASSERT): Likewise.
19568 * tests/test-mbsstr1.c (ASSERT): Likewise.
19569 * tests/test-mbsstr2.c (ASSERT): Likewise.
19570 * tests/test-mbsstr3.c (ASSERT): Likewise.
19571 * tests/test-memchr2.c (ASSERT): Likewise.
19572 * tests/test-memmem.c (ASSERT): Likewise.
19573 * tests/test-open.c (ASSERT): Likewise.
19574 * tests/test-printf-frexp.c (ASSERT): Likewise.
19575 * tests/test-printf-frexpl.c (ASSERT): Likewise.
19576 * tests/test-printf-posix.c (ASSERT): Likewise.
19577 * tests/test-quotearg.c (ASSERT): Likewise.
19578 * tests/test-rbtree_list.c (ASSERT): Likewise.
19579 * tests/test-rbtree_oset.c (ASSERT): Likewise.
19580 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
19581 * tests/test-round1.c (ASSERT): Likewise.
19582 * tests/test-roundf1.c (ASSERT): Likewise.
19583 * tests/test-roundl.c (ASSERT): Likewise.
19584 * tests/test-signbit.c (ASSERT): Likewise.
19585 * tests/test-sleep.c (ASSERT): Likewise.
19586 * tests/test-snprintf-posix.c (ASSERT): Likewise.
19587 * tests/test-snprintf.c (ASSERT): Likewise.
19588 * tests/test-sprintf-posix.c (ASSERT): Likewise.
19589 * tests/test-stat-time.c (ASSERT): Likewise.
19590 * tests/test-strcasestr.c (ASSERT): Likewise.
19591 * tests/test-strerror.c (ASSERT): Likewise.
19592 * tests/test-striconv.c (ASSERT): Likewise.
19593 * tests/test-striconveh.c (ASSERT): Likewise.
19594 * tests/test-striconveha.c (ASSERT): Likewise.
19595 * tests/test-strsignal.c (ASSERT): Likewise.
19596 * tests/test-strstr.c (ASSERT): Likewise.
19597 * tests/test-strtod.c (ASSERT): Likewise.
19598 * tests/test-trunc1.c (ASSERT): Likewise.
19599 * tests/test-trunc2.c (ASSERT): Likewise.
19600 * tests/test-truncf1.c (ASSERT): Likewise.
19601 * tests/test-truncf2.c (ASSERT): Likewise.
19602 * tests/test-truncl.c (ASSERT): Likewise.
19603 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
19604 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
19605 * tests/test-vasnprintf.c (ASSERT): Likewise.
19606 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
19607 * tests/test-vasprintf.c (ASSERT): Likewise.
19608 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
19609 * tests/test-vprintf-posix.c (ASSERT): Likewise.
19610 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
19611 * tests/test-vsnprintf.c (ASSERT): Likewise.
19612 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
19613 * tests/test-wcwidth.c (ASSERT): Likewise.
19614 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
19615 * tests/test-xprintf-posix.c (ASSERT): Likewise.
19616 * tests/test-xvasprintf.c (ASSERT): Likewise.
19617 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
19618 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
19619 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
19620 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
19621 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
19622 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
19623 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
19624 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
19625 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
19626 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
19627 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
19628 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
19629 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
19630 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
19631 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
19632 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
19633 * tests/unictype/test-block_list.c (ASSERT): Likewise.
19634 * tests/unictype/test-block_of.c (ASSERT): Likewise.
19635 * tests/unictype/test-block_test.c (ASSERT): Likewise.
19636 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
19637 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
19638 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
19639 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
19640 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
19641 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
19642 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
19643 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
19644 * tests/unictype/test-combining.c (ASSERT): Likewise.
19645 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
19646 * tests/unictype/test-digit.c (ASSERT): Likewise.
19647 * tests/unictype/test-mirror.c (ASSERT): Likewise.
19648 * tests/unictype/test-numeric.c (ASSERT): Likewise.
19649 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
19650 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
19651 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
19652 * tests/unictype/test-scripts.c (ASSERT): Likewise.
19653 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
19654 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
19655 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
19656 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
19657 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
19658 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
19659 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
19660 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
19661 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
19662 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
19663 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
19664 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
19665 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
19666 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
19667 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
19668 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
19669 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
19670 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
19671 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
19672 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
19673 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
19674 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
19675 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
19676 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
19677 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
19678 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
19679 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
19680 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
19681 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
19682 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
19683 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
19684 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
19685 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
19686 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
19687 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
19688 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
19689 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
19690 Reported by Eric Blake.
19692 2008-04-11 Bruno Haible <bruno@clisp.org>
19694 * lib/wchar.in.h: Tweak comment.
19696 2008-04-11 Bruno Haible <bruno@clisp.org>
19698 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
19699 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
19701 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
19703 2008-04-11 Bruno Haible <bruno@clisp.org>
19705 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
19707 2008-04-11 Simon Josefsson <simon@josefsson.org>
19709 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
19710 of attempting to use non-existing /dev/*random. Based on patch
19711 from Adam Strzelecki <ono@java.pl> in
19712 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
19714 2008-04-08 Bruno Haible <bruno@clisp.org>
19716 Add tentative support for emx+gcc.
19717 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
19718 * lib/fpurge.c (fpurge): Likewise.
19719 * lib/freadable.c (freadable): Likewise.
19720 * lib/freadahead.c (freadahead): Likewise.
19721 * lib/freading.c (freading): Likewise.
19722 * lib/freadptr.c (freadptr): Likewise.
19723 * lib/freadseek.c (freadptrinc): Likewise.
19724 * lib/fseeko.c (rpl_fseeko): Likewise.
19725 * lib/fseterr.c (fseterr): Likewise.
19726 * lib/fwritable.c (fwritable): Likewise.
19727 * lib/fwriting.c (fwriting): Likewise.
19728 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
19730 2008-04-09 Eric Blake <ebb9@byu.net>
19732 Avoid some autoconf warnings.
19733 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
19734 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
19735 * m4/afs.m4 (gl_AFS): Likewise.
19736 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
19737 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
19738 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19739 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
19740 (gl_INTEGER_TYPE_SUFFIX): Likewise.
19741 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
19742 (AC_CHECK_DECLS_ONCE): Likewise.
19744 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
19745 gnulib-tool requires autoconf 2.59 or better.
19746 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
19748 2008-04-08 Eric Blake <ebb9@byu.net>
19750 Use 'git describe --match' if present (added in git 1.5.5).
19751 * build-aux/git-version-gen: Limit result to tags that match 'v*'
19754 2008-04-08 Bruno Haible <bruno@clisp.org>
19756 Add tentative support for OpenServer.
19757 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
19759 * lib/fpurge.c (fpurge): Likewise.
19760 * lib/freadable.c (freadable): Likewise.
19761 * lib/freadahead.c (freadahead): Likewise.
19762 * lib/freading.c (freading): Likewise.
19763 * lib/freadptr.c (freadptr): Likewise.
19764 * lib/freadseek.c (freadptrinc): Likewise.
19765 * lib/fseeko.c (rpl_fseeko): Likewise.
19766 * lib/fseterr.c (fseterr): Likewise.
19767 * lib/fwritable.c (fwritable): Likewise.
19768 * lib/fwriting.c (fwriting): Likewise.
19769 Reported by Roger Cornelius <rac@tenzing.org> and
19770 Brian K. White <brian@aljex.com>.
19772 2008-04-06 Jim Meyering <meyering@redhat.com>
19774 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
19776 2008-04-06 Bruno Haible <bruno@clisp.org>
19778 Avoid possible error with non-ASCII bytes in UTF-8 locales.
19779 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
19780 * tests/test-printf-posix.sh: Likewise.
19781 * tests/test-vfprintf-posix.sh: Likewise.
19782 * tests/test-vprintf-posix.sh: Likewise.
19783 * tests/test-xprintf-posix.sh: Likewise.
19785 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19787 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
19788 hide error from 'ls', needed on OS/2.
19789 Report by Elbert Pol <elbert.pol@gmail.com>.
19791 2008-04-04 Eric Blake <ebb9@byu.net>
19793 Make test-fseeko.c failures meaningful.
19794 * tests/test-fseeko.c: Print line number on failure.
19795 * tests/test-fseek.c: Likewise.
19796 Reported by Nelson H. F. Beebe.
19798 Improve strtod bug detection check.
19799 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
19800 required for Solaris 10.
19801 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
19803 2008-04-04 Bruno Haible <bruno@clisp.org>
19805 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
19808 2008-04-03 Eric Blake <ebb9@byu.net>
19810 Ensure sane .version contents.
19811 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
19813 * build-aux/git-version-gen: Improve documentation.
19815 Make GNU make output nicer.
19816 * top/GNUmakefile [!_have-Makefile]: Add dependency on
19817 MAKECMDGOALS to enforce message for all command line targets. Set
19818 srcdir for use in maint.mk.
19820 Another maintainer tweak.
19821 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
19822 a target that regenerates version.
19824 2008-04-03 Jim Meyering <meyering@redhat.com>
19826 vc-list-files: don't cause coreutils "make po-check" failure
19827 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
19829 2008-04-03 Eric Blake <ebb9@byu.net>
19831 Allow VPATH usage of vc-list-files.
19832 * build-aux/vc-list-files (scriptversion): Add timestamp.
19833 (options): Add --help, --version, -C.
19834 (CVS): Support installed cvsu.
19836 2008-04-02 Bruno Haible <bruno@clisp.org>
19838 Avoid some "statement with no effect" warnings from gcc.
19839 * tests/test-wctype.c (main): Explicitly ignore unused values.
19840 Reported by Jim Meyering.
19842 2008-04-02 Jim Meyering <meyering@redhat.com>
19844 Avoid some warnings from "gcc -Wshadow".
19845 * tests/test-frexp.c (exp): Define to a different identifier.
19846 * tests/test-frexpl.c (exp): Likewise.
19848 2008-04-03 Jim Meyering <meyering@redhat.com>
19850 bootstrap: remove dangling *.[ch] symlinks from lib
19851 * build-aux/bootstrap [dangling symlink removal]: Move find's
19852 -depth option to precede all others, to avoid a warning.
19853 Remove *.[ch] files too, and from "$source_base" (usually lib/).
19855 2008-04-02 Bruno Haible <bruno@clisp.org>
19857 Avoid some warnings from "gcc -Wshadow".
19858 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
19859 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
19860 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
19861 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
19862 Reported by Jim Meyering.
19864 2008-04-01 Bruno Haible <bruno@clisp.org>
19866 Fix test to work on IRIX 6.5 with cc.
19867 * tests/test-math.c (numeric_equal): New function.
19870 2008-04-01 Bruno Haible <bruno@clisp.org>
19872 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
19874 2008-04-01 Bruno Haible <bruno@clisp.org>
19876 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
19877 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19878 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
19879 (Depends-on): Remove math.
19881 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
19882 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19883 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
19884 (Depends-on): Remove math.
19886 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
19887 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19888 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
19889 (Depends-on): Remove math.
19890 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
19891 (Depends-on): Remove math.
19893 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
19894 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
19895 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
19896 (Depends-on): Remove math.
19897 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
19898 (Depends-on): Remove math.
19900 * tests/test-round1.c: Include nan.h.
19901 (main): Use NaNd instead of NAN.
19902 * modules/round-tests (Files): Add tests/nan.h.
19904 * tests/test-trunc1.c: Include nan.h.
19905 (main): Use NaNd instead of NAN.
19906 * modules/trunc-tests (Files): Add tests/nan.h.
19908 * tests/test-roundf1.c: Include nan.h.
19909 (main): Use NaNf instead of NAN.
19910 * modules/roundf-tests (Files): Add tests/nan.h.
19912 * tests/test-truncf1.c: Include nan.h.
19913 (main): Use NaNf instead of NAN.
19914 * modules/truncf-tests (Files): Add tests/nan.h.
19916 * tests/test-ceilf1.c: Include nan.h.
19917 (main): Use NaNf instead of NAN.
19918 * modules/ceilf-tests (Files): Add tests/nan.h.
19920 * tests/test-floorf1.c: Include nan.h.
19921 (main): Use NaNf instead of NAN.
19922 * modules/floorf-tests (Files): Add tests/nan.h.
19924 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
19925 (main): Use NaNf instead of NAN.
19926 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
19928 * tests/test-isnand.c: Include nan.h instead of <math.h>.
19929 (main): Use NaNd instead of NAN.
19930 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
19932 * tests/test-frexp.c: Include nan.h.
19933 (main): Use NaNd instead of NAN.
19934 * modules/frexp-tests (Files): Add tests/nan.h.
19936 * lib/isnan.c: Don't include <math.h>.
19937 (FUNC): Don't use NAN macro.
19938 * modules/isnand-nolibm (Depends-on): Remove math.
19939 * modules/isnanf-nolibm (Depends-on): Remove math.
19940 * modules/isnanl (Depends-on): Remove math.
19941 * modules/isnanl-nolibm (Depends-on): Remove math.
19943 * tests/nan.h: New file.
19945 2008-04-01 Eric Blake <ebb9@byu.net>
19948 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
19949 values to be the right type.
19951 For now, cater to gnulib strtod inaccuracies.
19952 * tests/test-strtod.c (main): Allow 1-ulp error on expected
19953 fractional results. While not as nice from a QoI perspective, it
19954 is a quicker patch than correctly implementing decimal to binary
19957 2008-03-31 Eric Blake <ebb9@byu.net>
19959 Guarantee a definition of NAN.
19960 * lib/math.in.h (NAN): Define if missing.
19961 * tests/test-math.c (main): Test it.
19962 * doc/posix-headers/math.texi (math.h): Document this.
19963 * lib/isnan.c (rpl_isnand): Use it.
19964 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
19965 * tests/test-floorf1.c (NaN): Likewise.
19966 * tests/test-frexp.c (NaN): Likewise.
19967 * tests/test-isnand.c (NaN): Likewise.
19968 * tests/test-isnanf.c (NaN): Likewise.
19969 * tests/test-round1.c (NaN): Likewise.
19970 * tests/test-roundf1.c (NaN): Likewise.
19971 * tests/test-snprintf-posix.h (NaN): Likewise.
19972 * tests/test-sprintf-posix.h (NaN): Likewise.
19973 * tests/test-trunc1.c (NaN): Likewise.
19974 * tests/test-truncf1.c (NaN): Likewise.
19975 * tests/test-vasnprintf-posix.c (NaN): Likewise.
19976 * tests/test-vasprintf-posix.c (NaN): Likewise.
19977 * modules/isnand-nolibm (Depends-on): Add math.
19978 * modules/isnanf-nolibm (Depends-on): Likewise.
19979 * modules/isnanl (Depends-on): Likewise.
19980 * modules/isnanl-nolibm (Depends-on): Likewise.
19981 * modules/snprintf-posix-tests (Depends-on): Likewise.
19982 * modules/sprintf-posix-tests (Depends-on): Likewise.
19983 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
19984 * modules/vsprintf-posix-tests (Depends-on): Likewise.
19985 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
19986 * modules/vasprintf-posix-tests (Depends-on): Likewise.
19988 2008-03-31 Bruno Haible <bruno@clisp.org>
19990 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
19991 * doc/posix-functions/strtod.texi: Likewise.
19993 2008-03-31 Bruno Haible <bruno@clisp.org>
19995 * tests/test-strtod.c (main): Don't use C99 syntax.
19997 2008-03-31 Bruno Haible <bruno@clisp.org>
19999 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
20000 Reported by Eric Blake.
20002 2008-03-31 Jim Meyering <meyering@redhat.com>
20004 Don't compare actual signbit return values.
20005 * tests/test-strtod.c (main): Rather, compare only their
20006 zero/non-zero nature.
20008 2008-03-31 Eric Blake <ebb9@byu.net>
20010 More strtod documentation.
20011 * doc/posix-functions/strtod.texi (strtod): Interpret more test
20012 failures as distinct bugs.
20014 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
20016 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
20017 Problem reported by Erik Benada in
20018 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
20020 2008-03-30 Bruno Haible <bruno@clisp.org>
20022 * tests/test-strtod.c: Add comments about which assertion fails on which
20024 * doc/posix-functions/strtod.texi: Add info about many more platforms.
20026 2008-03-30 Eric Blake <ebb9@byu.net>
20028 Test signbit behavior on zeros.
20029 * tests/test-signbit.c (test_signbitf): Add tests for zero.
20030 (test_signbitd, test_signbitl): Likewise.
20032 More strtod touchups.
20033 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
20034 sign of negative underflow, for now. Use .5, not .1.
20035 * doc/posix-functions/strtod.texi (strtod): Mention these
20037 Reported by Jim Meyering.
20039 2008-03-30 Bruno Haible <bruno@clisp.org>
20041 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
20042 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
20044 2008-03-30 Bruno Haible <bruno@clisp.org>
20046 Avoid failure when attempting to return empty iconv results on some
20048 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
20049 allocation, don't report ENOMEM when the resulting string is empty.
20051 2008-03-30 Bruno Haible <bruno@clisp.org>
20053 Fix buffer overrun.
20054 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
20055 Don't consider the width for tmp_length. Check count against tmp_length
20056 before doing the padding. Ensure enough allocation during padding.
20058 2008-03-30 Eric Blake <ebb9@byu.net>
20061 * lib/strtod.c (strtod): Avoid compiler warnings.
20062 Reported by Jim Meyering.
20064 2008-03-30 Bruno Haible <bruno@clisp.org>
20066 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
20067 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
20068 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
20069 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
20070 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
20071 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
20072 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
20073 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
20075 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
20076 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
20077 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
20078 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
20079 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
20080 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
20081 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
20082 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
20084 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
20085 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
20086 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
20087 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
20088 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
20089 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
20090 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
20091 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
20093 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
20094 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
20096 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
20097 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
20099 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
20100 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
20102 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
20103 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
20104 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
20106 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
20107 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
20108 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
20110 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
20111 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
20112 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
20114 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
20115 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
20116 * modules/vasprintf (Depends-on): Add EOVERFLOW.
20118 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
20119 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
20120 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
20121 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
20122 (Depends-on): Add EOVERFLOW.
20123 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
20124 (Depends-on): Add EOVERFLOW.
20125 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
20126 (Depends-on): Add EOVERFLOW.
20127 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
20128 (Depends-on): Add EOVERFLOW.
20129 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
20130 (Depends-on): Add EOVERFLOW.
20131 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
20132 (Depends-on): Add EOVERFLOW.
20133 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
20134 (Depends-on): Add EOVERFLOW.
20135 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
20136 (Depends-on): Add EOVERFLOW.
20138 * lib/sprintf.c (EOVERFLOW): Remove fallback.
20139 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
20140 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
20142 * lib/snprintf.c (EOVERFLOW): Remove fallback.
20143 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
20144 * modules/snprintf (Depends-on): Add EOVERFLOW.
20146 * lib/poll.c (EOVERFLOW): Remove fallback.
20147 * modules/poll (Depends-on): Add EOVERFLOW.
20149 * lib/getugroups.c (EOVERFLOW): Remove fallback.
20150 * modules/getugroups (Depends-on): Add EOVERFLOW.
20152 * lib/getdelim.c (EOVERFLOW): Remove fallback.
20153 * modules/getdelim (Depends-on): Add EOVERFLOW.
20155 * lib/ftell.c (EOVERFLOW): Remove fallback.
20156 * modules/ftell (Depends-on): Add EOVERFLOW.
20158 * lib/fprintf.c (EOVERFLOW): Remove fallback.
20159 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
20160 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
20162 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
20164 * modules/EOVERFLOW-tests: New file.
20165 * tests/test-EOVERFLOW.c: New file.
20167 * modules/EOVERFLOW: New file.
20168 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
20170 2008-03-30 Bruno Haible <bruno@clisp.org>
20172 Fix bug introduced on 2007-06-10.
20173 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
20174 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
20176 2008-03-30 Bruno Haible <bruno@clisp.org>
20178 Improve freadseek's efficiency after ungetc.
20179 * lib/freadseek.c: Include freadahead.h.
20180 (freadptrinc): New function, extracted from freadseek.
20181 (freadseek): Use it in a loop. Use freadahead to determine the number
20182 of loop iterations.
20183 * modules/freadseek (Depends-on): Add freadahead.
20184 (configure.ac): Require AC_C_INLINE.
20186 2008-03-30 Bruno Haible <bruno@clisp.org>
20188 * lib/freadseek.c (freadseek): Don't ignore the return value of
20191 2008-03-29 Eric Blake <ebb9@byu.net>
20193 Add hex float support.
20194 * modules/strtod (Depends-on): Add c-ctype.
20195 (Link): Mention POW_LIB.
20196 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
20197 whitespace between 'e' and exponent.
20198 * tests/test-strtod.c (main): Enable hex float tests.
20199 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
20202 Document various strtod bugs, with some fixes.
20203 * doc/posix-functions/strtod.texi (strtod): Document bugs with
20204 "-0x", "inf", "nan", and hex constants.
20205 * doc/posix-functions/atof.texi (atof): Likewise.
20206 * modules/stdlib (Makefile.am): Support strtod.
20207 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20208 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
20209 detect additional strtod bugs.
20210 * lib/stdlib.in.h (rpl_strtod): Add declarations.
20211 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
20212 bool where appropriate. Parse 'inf' and 'nan'.
20213 * tests/test-strtod.c: New file.
20214 * modules/strtod (Depends-on): Add stdbool, stdlib.
20215 (configure.ac): Turn on module indicator.
20216 * modules/strtod-tests: New module.
20218 2008-03-29 Eric Blake <ebb9@byu.net>
20220 Fix ftell on mingw.
20221 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
20222 * modules/ftell-tests (Depends-on): Add binary-io.
20223 * modules/ftello-tests (Depends-on): Likewise.
20224 * tests/test-ftell.c (main): Enhance test to cover behavior after
20225 ungetc. Enforce binary mode.
20226 * tests/test-ftello.c (main): Likewise.
20228 Pass test-freadseek on cygwin.
20229 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
20230 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
20233 * tests/test-fflush2.c (main): Fix typo.
20235 2008-03-29 Bruno Haible <bruno@clisp.org>
20237 * tests/test-fflush2.c (main): Temporarily disable the contents of
20239 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
20240 Reported by Eric Blake.
20242 2008-03-28 Simon Josefsson <simon@josefsson.org>
20244 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
20245 (GC_SHA224_DIGEST_SIZE): Add.
20247 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
20248 (gc_hash_digest_length): Likewise.
20249 (gc_hash_buffer): Likewise.
20251 2008-03-25 Bruno Haible <bruno@clisp.org>
20253 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
20254 detail which gettext release to use.
20255 Reported by Simon Josefsson.
20257 2008-03-26 Jim Meyering <meyering@redhat.com>
20259 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
20260 * modules/gnumakefile (clean-GNUmakefile): Also, use
20261 test ... && ... || : syntax rather than if-then ... fi.
20263 gnumakefile: Don't double-quote-expand $(VPATH) value.
20264 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
20266 2008-03-24 Eric Blake <ebb9@byu.net>
20268 Alter GNUmakefile to install into top directory.
20269 * modules/maintainer-makefile: Split, and add dependency...
20270 * modules/gnumakefile: to this new module.
20271 * build-aux/GNUmakefile: Move...
20272 * top/GNUmakefile: ...here.
20273 * build-aux/maint.mk: Move...
20274 * top/maint.mk: ...here.
20275 * MODULES.html.sh (Support for maintaining...): Document new
20278 2008-03-23 Bruno Haible <bruno@clisp.org>
20280 * gnulib-tool: New options --vc-files, --no-vc-files.
20281 (func_usage): Document them.
20282 (vc_files): New variable.
20283 (func_import): Consider vc_files.
20284 (func_create_testdir): Set vc_files to empty.
20285 Suggested by Jim Meyering and Karl Berry.
20287 2008-03-23 Bruno Haible <bruno@clisp.org>
20289 Fix regex compilation error on HP-UX 11.
20290 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
20291 * modules/regex (Files): Add m4/mbstate_t.m4.
20292 Reported by Ton Voon <ton.voon@altinity.com>.
20294 2008-03-23 Bruno Haible <bruno@clisp.org>
20296 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
20298 2008-03-23 Eric Blake <ebb9@byu.net>
20299 Bruno Haible <bruno@clisp.org>
20301 Install files from top/ in the destination directory.
20302 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
20303 augmentation also for the files from top/.
20304 (func_import, func_create_testdir): Rewrite file names:
20305 top/filename -> filename.
20307 2008-03-23 Bruno Haible <bruno@clisp.org>
20309 Tweak "gnulib --version" output.
20310 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
20312 2008-03-23 Bruno Haible <bruno@clisp.org>
20314 Tweak "gnulib --version" output.
20315 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
20316 rather than contents of ChangeLog, when possible.
20318 2008-03-21 Eric Blake <ebb9@byu.net>
20320 More --version tweaks.
20321 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
20322 date of last ChangeLog entry.
20324 2008-03-21 Jim Meyering <meyering@redhat.com>
20326 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
20328 2008-03-20 Eric Blake <ebb9@byu.net>
20331 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
20333 2008-03-20 Simon Josefsson <simon@josefsson.org>
20335 * build-aux/GNUmakefile: Make git-version-gen optional. Add
20336 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
20338 2008-03-20 Eric Blake <ebb9@byu.net>
20340 Sync GNUmakefile with coreutils.
20341 * build-aux/GNUmakefile (have-Makefile): Rename...
20342 (_have-Makefile): ...to this, for namespace consideration.
20343 (GNUmakefile.cfg): Include, if present.
20344 (_autoreconf): Define a default.
20345 (_is-dist-target): New rule for rebuilds to pick up intra-release
20347 (maint-cfg.mk): Rename...
20348 (cfg.mk): ...to this.
20350 2008-03-18 Jim Meyering <meyering@redhat.com>
20352 New script and module: mktempd
20353 * MODULES.html.sh (maint+release support): Add mktempd.
20354 * build-aux/mktempd: New file.
20355 * modules/mktempd: New file.
20357 2008-03-15 Jim Meyering <meyering@redhat.com>
20360 * lib/sha1.c, lib/md5.c: 63 != ~63.
20361 Reported by Andreas Schwab.
20363 sha1.c, md5.c: Hoist a redundant expression.
20364 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
20365 "ctx->buflen" only once, before calling *_process_block.
20366 * lib/md5.c (md5_process_bytes): Likewise.
20368 2008-03-14 Eric Blake <ebb9@byu.net>
20370 Bump copyright year in files generated by gnulib-tool.
20371 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
20372 gnulib-tool, rather than hard-coding it.
20374 Fix 'gnulib-tool --version' output to work with git.
20375 * gnulib-tool (func_gnulib_dir): New function, extracted from...
20376 (startup): ...here.
20377 (func_version): Use it to invoke git-version-gen, rather than
20378 relying on CVS keyword expansion. Modernize wording.
20379 (cvsdatestamp, last_checkin_date, version): Kill unused
20382 2008-03-12 Jim Meyering <meyering@redhat.com>
20384 Recognize optional cast of the argument to free.
20385 * build-aux/useless-if-before-free: Update regexps.
20387 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
20389 2008-03-11 Bruno Haible <bruno@clisp.org>
20391 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
20392 by a single package.
20393 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
20394 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
20395 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
20396 Reported by Sam Steingold <sds@gnu.org>.
20398 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
20400 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
20403 2008-03-11 Bruno Haible <bruno@clisp.org>
20405 Avoid conflicts between local macro definitions.
20406 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20407 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
20409 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
20410 Bruno Haible <bruno@clisp.org>
20412 Make va_copy work with some version of xlc on AIX 5.1.
20413 * lib/stdarg.in.h: New file.
20414 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
20415 On AIX, use a <stdarg.h> file substitute.
20416 * modules/stdarg (Files): Add lib/stdarg.in.h.
20417 (Depends-on): Add include_next.
20418 (Makefile.am): Build a stdarg.h substitute if requested.
20419 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
20421 2008-03-10 Bruno Haible <bruno@clisp.org>
20423 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
20424 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20425 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20427 2008-03-10 Bruno Haible <bruno@clisp.org>
20429 * modules/stdlib (Depends-on): Add include_next, remove
20432 2008-03-09 Bruno Haible <bruno@clisp.org>
20434 * lib/freadahead.h (freadahead): Document more precisely.
20435 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
20436 the sum of both buffer sizes.
20437 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
20438 * NEWS: Document the change.
20440 2008-03-09 Bruno Haible <bruno@clisp.org>
20442 Extend freadptr to return also the buffer size.
20443 * lib/freadptr.h (freadptr): Add sizep argument.
20444 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
20445 (freadptr): Add sizep argument. Determine buffer size like freadahead
20447 * tests/test-freadptr.c: Don't include freadahead.h.
20448 (main): Adapt for new calling convention of freadptr.
20449 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
20450 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
20451 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
20452 tests/test-freadptr2.sh.
20453 (Depends): Remove freadahead.
20454 (TESTS): Add test-freadptr2.sh.
20455 (check_PROGRAMS): Add test-freadptr2.
20457 2008-03-09 Bruno Haible <bruno@clisp.org>
20459 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
20460 Report and solution by Simon Josefsson.
20462 2008-03-06 Bruno Haible <bruno@clisp.org>
20464 Make fflush after ungetc work on BSD platforms.
20465 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
20466 * tests/test-fflush2.c: New file.
20467 * tests/test-fflush2.sh: New file.
20468 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
20469 tests/test-fflush2.c.
20470 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
20471 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
20473 2008-03-06 Eric Blake <ebb9@byu.net>
20475 Likewise for ftello.
20476 * modules/ftello (Dependencies): Add extensions.
20477 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
20479 2008-03-06 Bruno Haible <bruno@clisp.org>
20481 * modules/fseeko (Dependencies): Add extensions.
20482 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
20483 Needed on glibc systems.
20485 2008-03-06 Bruno Haible <bruno@clisp.org>
20487 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
20489 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20491 2008-03-06 Bruno Haible <bruno@clisp.org>
20493 * users.txt: Add libgnupdf.
20495 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
20497 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
20498 (Header File Substitutes, Function Substitutes,
20499 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
20500 (Build robot for gnulib): Fix typo.
20502 2008-03-06 Bruno Haible <bruno@clisp.org>
20504 * doc/gnulib-tool.texi (VCS Issues): Small updates.
20505 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20507 2008-03-06 Bruno Haible <bruno@clisp.org>
20509 * doc/func.texi: New file, extracted from doc/gnulib.texi.
20510 * doc/gnulib.texi: Include it.
20512 2008-03-06 Simon Josefsson <simon@josefsson.org>
20514 * modules/func (License): Change license to unlimited; there was
20515 no LGPL parts in the module anyway.
20517 2008-03-06 Simon Josefsson <simon@josefsson.org>
20519 * modules/__func__: Renamed to modules/func.
20520 * modules/__func__-tests: Renamed to modules/func-tests.
20521 * tests/test-__func__.c: Renamed to tests/test-func.c.
20522 * m4/__func__.m4: Renamed to m4/func.m4.
20523 * doc/gnulib.texi (__func__): Section renamed to func.
20524 Suggested by Eric Blake <ebb9@byu.net>.
20526 2008-03-06 Simon Josefsson <simon@josefsson.org>
20528 * doc/gnulib.texi (__func__): Use C99 terminology when talking
20529 about __func__. Make example self-contained. Suggested by Eric
20530 Blake <ebb9@byu.net>.
20532 * tests/test-__func__.c (main): Avoid extraneous () around __func.
20533 Suggested by Eric Blake <ebb9@byu.net>.
20535 2008-03-06 Simon Josefsson <simon@josefsson.org>
20537 * modules/__func__: New file.
20538 * modules/__func__-tests: New file.
20539 * tests/test-__func__.c: New file.
20540 * m4/__func__.m4: New file.
20541 * doc/gnulib.texi (__func__): Document __func__ module.
20543 2008-03-05 Simon Josefsson <simon@josefsson.org>
20545 * modules/byteswap (License): Re-license as LGPLv2+.
20547 2008-03-05 Simon Josefsson <simon@josefsson.org>
20549 * doc/Makefile: Add pdf target.
20551 2008-03-05 Simon Josefsson <simon@josefsson.org>
20553 * modules/inline (License): Use 'unlimited', since there are only
20554 *.m4 files in this module.
20556 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
20557 Bruno Haible <bruno@clisp.org>
20559 Add support for HP C 7.1 on OpenVMS 8.3.
20560 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
20562 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
20564 Update VMS specifics.
20565 * lib/getopt.c [VMS]: Remove include of unixlib.h.
20567 2008-03-02 Jim Meyering <meyering@redhat.com>
20569 Remove the last dependency on the "free" module.
20570 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
20571 Reported by Bob Proulx.
20573 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
20575 Remove useless "if" tests before free. Deprecate "free" module.
20576 * doc/posix-functions/free.texi: Mention that this
20577 module is no longer useful.
20578 * modules/free (Notice): Say this module is obsolete.
20579 * modules/readutmp (Depends-on): Remove free.
20580 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
20581 * lib/putenv.c (putenv): Likewise.
20582 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
20583 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
20584 * tests/test-c-strcasestr.c (main): Likewise.
20585 * tests/test-c-strstr.c (main): Likewise.
20586 * tests/test-mbscasestr1.c (main): Likewise.
20587 * tests/test-mbscasestr2.c (main): Likewise.
20588 * tests/test-mbsstr1.c (main): Likewise.
20589 * tests/test-mbsstr2.c (main): Likewise.
20590 * tests/test-memmem.c (main): Likewise.
20591 * tests/test-strcasestr.c (main): Likewise.
20592 * tests/test-striconv.c (main): Likewise.
20593 * tests/test-striconveh.c (main): Likewise.
20594 * tests/test-striconveha.c (main): Likewise.
20595 * tests/test-strstr.c (main): Likewise.
20597 * build-aux/git-version-gen: Adjust a comment and the Usage string.
20599 bootstrap: sync from coreutils again
20600 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
20602 2008-03-01 Jim Meyering <meyering@redhat.com>
20604 bootstrap: sync from coreutils
20605 * build-aux/bootstrap (update_po_files): Copy a .po file into place
20606 also when the target doesn't exist.
20608 2008-03-01 Eric Blake <ebb9@byu.net>
20610 Fix bugs in last patch.
20611 * lib/memchr2.c (memchr2): Fix typo.
20612 * tests/test-memchr2.c: Test previous bug, and don't use GNU
20614 Reported by Bruce Korb.
20616 New module 'memchr2'.
20617 * modules/memchr2: New file.
20618 * modules/memchr2-tests: Likewise.
20619 * lib/memchr2.h: Likewise.
20620 * lib/memchr2.c: Likewise, based on memchr.c.
20621 * tests/test-memchr2.c: New test.
20622 * MODULES.html.sh (String handling): Add memchr2.
20624 2008-02-29 Bruno Haible <bruno@clisp.org>
20626 * modules/freadseek-tests: New file.
20627 * tests/test-freadseek.sh: New file.
20628 * tests/test-freadseek.c: New file.
20630 New module 'freadseek'.
20631 * modules/freadseek: New file.
20632 * lib/freadseek.h: New file.
20633 * lib/freadseek.c: New file.
20634 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
20636 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
20638 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
20641 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
20642 program_invocation_name and program_invocation_short_name are
20645 2008-02-28 Bruno Haible <bruno@clisp.org>
20647 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
20648 * tests/test-freadptr.sh: Also test non-seekable stdin.
20650 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
20652 * build-aux/bootstrap (source_base, m4_base)
20653 (doc_base, tests_base): New variables.
20654 (gnulib_tool_options): Do not hardcode base directories, use
20655 the above variables instead.
20657 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
20659 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
20661 2008-02-28 Bruno Haible <bruno@clisp.org>
20663 * modules/freadptr-tests: New file.
20664 * tests/test-freadptr.sh: New file.
20665 * tests/test-freadptr.c: New file.
20667 New module 'freadptr'.
20668 * modules/freadptr: New file.
20669 * lib/freadptr.h: New file.
20670 * lib/freadptr.c: New file.
20671 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
20673 2008-02-26 Karl Berry <karl@freefriends.org>
20676 * libltdl/argz.c (argz_add, argz_count): New functions.
20677 * libltdl/argz.in.h: Declare them.
20678 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
20680 2008-02-22 Bruno Haible <bruno@clisp.org>
20682 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
20683 is a pointer type. Needed for HP-UX 10.
20684 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
20685 * doc/posix-functions/gmtime_r.texi: Likewise.
20686 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20688 2008-02-24 Bruno Haible <bruno@clisp.org>
20690 * modules/environ-tests: New file.
20691 * tests/test-environ.c: New file.
20693 New module 'environ'.
20694 * modules/environ: New file.
20695 * lib/unistd.in.h (environ): New declaration.
20696 * m4/environ.m4: New file.
20697 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
20699 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
20701 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
20703 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
20704 wrong claim that 'environ' is missing on some systems.
20705 * modules/execute (Depends-on): Add environ.
20706 * lib/execute.c (environ): Remove fallback declaration.
20707 * modules/pipe (Depends-on): Add environ.
20708 * lib/pipe.c (environ): Remove fallback declaration.
20709 * modules/setenv (Depends-on): Add environ.
20710 * lib/setenv.c (environ): Remove fallback declaration.
20711 * modules/unsetenv (Depends-on): Add environ.
20712 * lib/unsetenv.c (environ): Remove fallback declaration.
20713 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
20715 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
20716 (gl_PREREQ_UNSETENV): Likewise.
20718 2008-02-24 Bruno Haible <bruno@clisp.org>
20720 * doc/posix-functions/environ.texi: Document the MacOS X problem.
20722 2008-02-20 Bob Proulx <bob@proulx.com>
20724 Enable use of older two part flavor 'git describe'.
20725 * build-aux/git-version-gen: If using the older two part flavor of
20726 git version then recreate the third part now present in the
20727 newer three part flavor of git describe.
20729 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
20731 * lib/fts.c (fts_build): Typo correction to comment.
20733 2008-02-17 Bruno Haible <bruno@clisp.org>
20735 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
20736 generating no-op conflicts.
20738 2008-02-17 Bruno Haible <bruno@clisp.org>
20741 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
20742 result_entries, rather than an index-based loop.
20744 2008-02-17 Bruno Haible <bruno@clisp.org>
20747 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
20749 (entry_create): New function.
20750 (entry_hashcode): Use the cached hashcode if possible.
20751 (read_changelog_file, try_split_merged_entry): Use entry_create.
20753 2008-02-17 Bruno Haible <bruno@clisp.org>
20755 Speed up from O(n^2) to O(n) for long ChangeLog files.
20756 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
20757 (read_changelog_file): Change implementation of entries_reversed list
20759 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
20761 2008-02-17 Bruno Haible <bruno@clisp.org>
20763 New option --split-merged-entry.
20764 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
20765 (find_paragraph_end, try_split_merged_entry): New functions.
20766 (long_options): Add option --split-merged-entry.
20767 (usage): Document option --split-merged-entry.
20768 (main): Implement option --split-merged-entry.
20769 Reported by Eric Blake.
20771 2008-02-17 Bruno Haible <bruno@clisp.org>
20773 * lib/git-merge-changelog.c: Include c-strstr.h.
20774 (main): Support the "git pull --rebase" situation.
20775 * modules/git-merge-changelog (Depends-on): Add c-strstr.
20776 Reported by Eric Blake.
20778 2008-02-16 Eric Blake <ebb9@byu.net>
20780 Avoid doubling \ in common case of "c-maybe" quoting style.
20781 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
20782 eliding outer quotes.
20783 * lib/quotearg.h: Document this.
20784 * tests/test-quotearg.c (result_strings, inputs, results_g)
20785 (flag_results, locale_results): Test it by adding a new string to
20787 (compare_strings): Test new string.
20789 2008-02-13 Eric Blake <ebb9@byu.net>
20791 Avoid trigraph quoting in default output.
20792 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
20793 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
20794 unless explicitly requested.
20795 * tests/test-quotearg.c (flag_results, main): Add additional tests.
20797 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
20799 Don't rely on signed integer overflowing to negative value.
20800 * lib/getugroups.c (getugroups): Include <limits.h>.
20801 Instead, compare against INT_MAX, and increment only if the test passes.
20803 2008-02-13 Jim Meyering <meyering@redhat.com>
20804 and Eric Blake <ebb9@byu.net>
20806 Avoid shadowing warning and compile errors on Linux.
20807 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
20808 forwarding macros on Linux.
20809 (dcgettext): Define a stub, for Linux.
20810 (results_g, main): Avoid warnings.
20812 2008-02-12 Eric Blake <ebb9@byu.net>
20814 Silence warning in last patch.
20815 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
20817 Quotearg part 4: add tests, fix c-maybe colon quoting.
20818 * lib/quotearg.h: Improve documentation.
20819 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
20820 escapes when adding outer quotes. When quoting trigraphs, use
20821 valid C notation. When quoting NUL, omit extra characters if next
20822 character is not digit. Alter prototype.
20823 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
20825 * modules/quotearg-tests: New module.
20826 * tests/test-quotearg.c: New test.
20828 2008-02-07 Eric Blake <ebb9@byu.net>
20830 Quotearg part 3: add flag to control outer quote elision.
20831 * lib/quotearg.h (c_maybe_quoting_style): New style.
20832 (enum quoting_flags): Better documentation of flags.
20833 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
20835 (quotearg_buffer_restyled): Handle new flag to elide outer
20838 Quotearg part 2: add flag that can control NUL elision.
20839 * lib/quotearg.h (set_quoting_flags): New prototype.
20840 * lib/quotearg.c (struct quoting_options): Add flag field.
20841 (set_quoting_flags): New function.
20842 (quotearg_buffer_restyled): Add flags parameter.
20843 (quotearg_alloc_mem): Set the flag if length cannot be returned.
20844 (quotearg_n_options): Set the flag, since length cannot be
20846 (quoting_options_from_style): Default flags correctly.
20848 Quotearg part 1: more wrappers, restore quotearg_char state.
20849 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
20850 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
20851 (quotearg_colon_mem): New wrappers.
20852 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
20853 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
20855 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
20856 (quotearg_colon_mem): New functions.
20858 2008-02-11 Bruno Haible <bruno@clisp.org>
20860 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
20861 library in the current directory: it does not work with parallel make.
20862 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20864 2008-02-11 Bruno Haible <bruno@clisp.org>
20866 * .gitattributes: New file.
20868 2008-02-11 Jim Meyering <meyering@redhat.com>
20870 useless-if-before-free: Fix reversed exit values.
20871 * build-aux/useless-if-before-free: Use correct values
20872 for EXIT_MATCH and EXIT_NO_MATCH.
20874 * build-aux/useless-if-before-free: Close stdout carefully.
20876 2008-02-10 Bruno Haible <bruno@clisp.org>
20878 New module 'git-merge-changelog'.
20879 * modules/git-merge-changelog: New file.
20880 * lib/git-merge-changelog.c: New file.
20882 2008-02-10 Jim Meyering <meyering@redhat.com>
20884 useless-if-before-free: New option: --list (-l).
20886 useless-if-before-free: Don't exit immediately upon open failure.
20887 * build-aux/useless-if-before-free: Exit 2 for errors.
20888 Upon failure to open a file, don't exit immediately.
20889 Rather, just warn and continue with any remaining files.
20891 2008-02-10 Bruno Haible <bruno@clisp.org>
20893 New abstract list operation 'node_set_value'.
20894 * lib/gl_list.h (gl_list_node_set_value): New function.
20895 (struct gl_list_implementation): New field node_set_value.
20896 * lib/gl_list.c (gl_list_node_set_value): New function.
20897 * lib/gl_array_list.c (gl_array_node_set_value): New function.
20898 (gl_array_list_implementation): Update.
20899 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
20900 (gl_carray_list_implementation): Update.
20901 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
20902 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
20903 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
20904 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
20905 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
20906 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
20907 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
20909 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
20910 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
20911 (gl_sublist_list_implementation): Update.
20913 2008-02-10 Bruno Haible <bruno@clisp.org>
20915 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
20916 Needed when ELEMENT is #defined to 'some_type *'.
20918 2008-02-10 Jim Meyering <meyering@redhat.com>
20920 New script and module: useless-if-before-free
20921 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
20922 * build-aux/useless-if-before-free: New file.
20923 * modules/useless-if-before-free: New file.
20925 * build-aux/gitlog-to-changelog: Use committer date, not author date.
20927 xstrtol_error: Fix typo.
20928 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
20929 s/exit_failure/exit_status/.
20931 2008-02-09 Jim Meyering <meyering@redhat.com>
20933 New script and module: gitlog-to-changelog
20934 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
20935 * modules/gitlog-to-changelog: New file.
20936 * build-aux/gitlog-to-changelog: New file.
20938 2008-02-08 Jim Meyering <meyering@redhat.com>
20940 Avoid two "parameter unused" warnings.
20941 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20944 Use "git COMMAND", not "git-COMMAND".
20945 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
20946 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
20947 * build-aux/git-version-gen: Use "git status", not "git-status".
20949 2008-02-07 Bruno Haible <bruno@clisp.org>
20951 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
20952 Avoids a crash on Windows Vista.
20953 Reported by Adam Strzelecki <ono@java.pl> via
20954 Simon Josefsson <simon@josefsson.org>.
20956 2008-02-06 Bruno Haible <bruno@clisp.org>
20958 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
20959 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
20960 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
20961 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
20962 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20963 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20964 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
20965 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
20966 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20967 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20968 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20969 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20970 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20971 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20972 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20973 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
20975 * tests/test-snprintf-posix.h (test_function): Likewise.
20976 * tests/test-sprintf-posix.h (test_function): Likewise.
20977 * tests/test-vasprintf-posix.c (test_function): Likewise.
20978 * doc/posix-functions/fprintf.texi: Update.
20979 * doc/posix-functions/printf.texi: Update.
20980 * doc/posix-functions/snprintf.texi: Update.
20981 * doc/posix-functions/sprintf.texi: Update.
20982 * doc/posix-functions/vfprintf.texi: Update.
20983 * doc/posix-functions/vprintf.texi: Update.
20984 * doc/posix-functions/vsnprintf.texi: Update.
20985 * doc/posix-functions/vsprintf.texi: Update.
20986 Reported by Peter Fales <psfales@alcatel-lucent.com>.
20988 2008-02-06 Bruno Haible <bruno@clisp.org>
20990 Fix bug introduced on 2008-01-26.
20991 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
20993 2008-02-06 Bruno Haible <bruno@clisp.org>
20995 Fix bug introduced on 2007-06-10.
20996 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
20997 !NEED_PRINTF_FLAG_ZERO.
20999 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
21001 getloadavg: use libperfstat on AIX5
21002 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
21004 2008-02-03 Bruno Haible <bruno@clisp.org>
21006 * lib/diffseq.h: Add comments about required #includes.
21007 Reported by Michael Biggs <gnulib@doubleplum.net>.
21009 2008-02-01 Bruno Haible <bruno@clisp.org>
21011 * users.txt: Add gnuit.
21013 2008-01-31 Bruno Haible <bruno@clisp.org>
21015 * lib/md4.c (set_uint32): Mark as inline.
21016 * lib/md5.c (set_uint32): Likewise.
21017 * lib/sha1.c (set_uint32): Likewise.
21018 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
21019 * m4/md5.m4 (gl_MD5): Likewise.
21020 * m4/sha1.m4 (gl_SHA1): Likewise.
21022 2008-01-31 Jim Meyering <meyering@redhat.com>
21024 Use "sizeof VAR", rather than a literal "4".
21025 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
21026 * lib/md4.c (md4_read_ctx): Likewise.
21027 * lib/sha1.c (sha1_read_ctx): Likewise.
21029 2008-01-31 Simon Josefsson <simon@josefsson.org>
21031 * tests/test-sha1.c: New file, based on test-md5.c.
21033 * modules/crypto/sha1-tests: New file.
21035 2008-01-31 Simon Josefsson <simon@josefsson.org>
21037 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
21039 2008-01-31 Jim Meyering <meyering@redhat.com>
21041 Prefer "sizeof v" over the equivalent "4".
21042 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
21043 * lib/md5.c (set_uint32): Likewise.
21044 * lib/sha1.c (set_uint32): Likewise.
21046 2008-01-31 Simon Josefsson <simon@josefsson.org>
21048 * lib/sha1.c (set_uint32): Mark function as static.
21050 2008-01-31 Simon Josefsson <simon@josefsson.org>
21052 md2: clarify comments to say that alignment is not required.
21053 * lib/md2.h: Remove warning about alignment in comment.
21054 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
21055 never been required.
21057 2008-01-31 Simon Josefsson <simon@josefsson.org>
21059 md4: adapt alignment constraint fix from sha1.
21060 * lib/md4.c (set_uint32): New function, from sha1.c
21061 (md4_read_ctx): Use it.
21062 (md4_finish_ctx): Doc fix.
21063 * lib/md4.h: Doc fix.
21065 2008-01-31 Simon Josefsson <simon@josefsson.org>
21067 md5: adapt alignment constraint fix from sha1.
21068 * lib/md5.c (set_uint32): New function, from sha1.c
21069 (md5_read_ctx): Use it.
21070 (md5_finish_ctx): Doc fix.
21071 * lib/md5.h: Doc fix.
21073 2008-01-30 Peter Palfrader <weasel@debian.org>
21075 sha1: remove the result buffer alignment constraint
21076 * lib/sha1.c (set_uint32): New function.
21077 (sha1_read_ctx): Rewrite to remove the result buffer alignment
21079 (sha1_finish_ctx): Remove comment warning about alignment constraint.
21080 * lib/sha1.h: Likewise.
21082 2008-01-30 Andreas Schwab <schwab@suse.de>
21083 Bruno Haible <bruno@clisp.org>
21085 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
21086 correct definition of LDBL_MIN_EXP.
21088 2008-01-30 Karl Berry <karl@gnu.org>
21090 * config/srclist-update: try to preserve x bit on updates.
21091 * config/srclistvars.sh: update for karl.
21093 2008-01-29 Jim Meyering <meyering@redhat.com>
21095 vasnprintf.c: Avoid warning about unused label
21096 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
21097 "overflow" label definition and associated code with the
21098 same cpp condition that guards the sole use of that label.
21100 2008-01-26 Bruno Haible <bruno@clisp.org>
21102 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
21103 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
21104 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
21105 * lib/isnanl-nolibm.h (isnanl): Likewise.
21106 Reported by Paul Eggert <eggert@cs.ucla.edu>.
21108 2008-01-26 Bruno Haible <bruno@clisp.org>
21110 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
21111 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
21113 2008-01-26 Bruno Haible <bruno@clisp.org>
21115 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
21116 GCC >= 4.0 built-in.
21117 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
21119 2008-01-26 Bruno Haible <bruno@clisp.org>
21121 Rename isnan, applicable to 'double' only, to isnand.
21122 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
21123 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
21124 (configure.ac): Update.
21125 (Include): Replace "isnan.h" with "isnand.h".
21126 * m4/isnand.m4: Renamed from m4/isnan.m4.
21127 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
21128 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
21129 instead of isnan.c.
21130 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
21131 instead of HAVE_ISNAN_IN_LIBC.
21132 (isnand): Renamed from isnan.
21133 * lib/isnand.c: New file.
21134 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
21135 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
21136 (Makefile.am): Update.
21137 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
21138 Include isnand.h instead of isnan.h.
21139 (main): Test isnand instead of isnan.
21140 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
21142 * modules/frexp (Depends-on): Likewise.
21143 * modules/frexp-tests (Depends-on): Likewise.
21144 * modules/frexp-nolibm (Depends-on): Likewise.
21145 * modules/frexp-nolibm-tests (Depends-on): Likewise.
21146 * modules/isfinite (Depends-on): Likewise.
21147 * modules/round-tests (Depends-on): Likewise.
21148 * modules/signbit (Depends-on): Likewise.
21149 * modules/signbit-tests (Depends-on): Likewise.
21150 * modules/snprintf-posix (Depends-on): Likewise.
21151 * modules/sprintf-posix (Depends-on): Likewise.
21152 * modules/trunc-tests (Depends-on): Likewise.
21153 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21154 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21155 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21156 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21157 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21158 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21159 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21160 * modules/vasnprintf-posix (Depends-on): Likewise.
21161 * modules/vasprintf-posix (Depends-on): Likewise.
21162 * modules/vfprintf-posix (Depends-on): Likewise.
21163 * modules/vsnprintf-posix (Depends-on): Likewise.
21164 * modules/vsprintf-posix (Depends-on): Likewise.
21165 * lib/frexp.c: Include isnand.h instead of isnan.h.
21166 (ISNAN): Set to isnand instead of isnan.
21167 * lib/isfinite.c: Include isnand.h instead of isnan.h.
21168 (gl_isfinited): Use isnand instead of isnan.
21169 * lib/signbitd.c: Include isnand.h instead of isnan.h.
21170 (gl_signbitd): Use isnand instead of isnan.
21171 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
21172 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
21173 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
21174 (main): Use isnand instead of isnan.
21175 * tests/test-round1.c: Include isnand.h.
21176 (main): Use isnand instead of isnan.
21177 * tests/test-round2.c: Include isnand.h instead of isnan.h.
21178 (ISNAN): Set to isnand instead of isnan.
21179 * tests/test-trunc1.c: Include isnand.h.
21180 (main): Use isnand instead of isnan.
21181 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
21182 (equal): Use isnand instead of isnan.
21183 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
21185 * NEWS: Mention the change.
21187 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
21188 Bruno Haible <bruno@clisp.org>
21190 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
21191 the GCC builtins for signbits are present and set
21192 REPLACE_SIGNBIT_USING_GCC if so.
21193 * lib/math.in.h (signbit): Define using GCC builtins if
21194 REPLACE_SIGNBIT_USING_GCC is set.
21195 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
21196 REPLACE_SIGNBIT_USING_GCC.
21197 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
21199 2008-01-25 Jim Meyering <meyering@redhat.com>
21201 Prefer <config.h> over "config.h". See autoconf doc for explanation.
21202 * lib/poll.c: Include <config.h>, not "config.h".
21203 * tests/test-getaddrinfo.c: Likewise.
21205 2008-01-25 Simon Josefsson <simon@josefsson.org>
21207 * modules/sockets-tests: New file.
21209 2008-01-24 Simon Josefsson <simon@josefsson.org>
21211 * modules/sockets: New module, can be used to call WSA_Startup and
21212 WSA_Cleanup when needed.
21214 * lib/sockets.h, lib/sockets.c: New files.
21216 * m4/sockets.m4: New file.
21218 * tests/test-sockets.c: New file.
21220 2008-01-19 Bruno Haible <bruno@clisp.org>
21222 * doc/posix-headers: Renamed from doc/headers.
21223 * doc/posix-functions: Renamed from doc/functions.
21224 * doc/gnulib.texi: Update.
21226 2008-01-19 Bruno Haible <bruno@clisp.org>
21228 * doc/glibc-functions/strcasestr.texi: Include contents of
21229 doc/functions/strcasestr.texi, fixing the list of platforms.
21230 * doc/functions/strcasestr.texi: Remove file.
21232 2008-01-19 Bruno Haible <bruno@clisp.org>
21234 * doc/glibc-functions/memmem.texi: Include contents of
21235 doc/functions/memmem.texi.
21236 * doc/functions/memmem.texi: Remove file.
21238 2008-01-18 Bruno Haible <bruno@clisp.org>
21240 * doc/glibc-functions/*.texi: New files.
21241 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
21242 to use the new files.
21244 2008-01-17 Bruno Haible <bruno@clisp.org>
21246 * tests/test-gethostname.c (main): Fix printf statement.
21248 2008-01-17 Simon Josefsson <simon@josefsson.org>
21250 * modules/gethostname-tests: New file.
21252 * tests/test-gethostname.c: New file.
21254 2008-01-17 Simon Josefsson <simon@josefsson.org>
21256 * lib/gethostname.c: Include string.h unconditionally, strncpy is
21257 used by the UNAME case. Reported by Bruno Haible
21260 2008-01-17 Eric Blake <ebb9@byu.net>
21262 Convert c-strcasestr to be more efficient.
21263 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
21264 (Depends-on): Add c-strcase, remove malloca, strnlen.
21265 * tests/test-c-strcasestr.c (main): Enhance test.
21266 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
21268 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
21270 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
21271 Use it in creating po/Makevars.
21273 2008-01-15 Simon Josefsson <simon@josefsson.org>
21275 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
21276 Applications that requires it should initialize libgcrypt
21279 2008-01-16 Simon Josefsson <simon@josefsson.org>
21281 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
21283 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
21285 Fix problem with getdate on mingw32 reported by Simon Josefsson
21286 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
21287 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
21288 tzname", when deciding whether to declare tzname.
21289 * lib/strftime.c (tzname): Likewise.
21291 2008-01-15 Bruno Haible <bruno@clisp.org>
21293 Work around a MacOS X 10.5 bug in frexpl().
21294 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
21295 * doc/functions/frexpl.texi: Document the bug.
21296 Reported by Elias Pipping <pipping@gentoo.org>.
21298 2008-01-14 Eric Blake <ebb9@byu.net>
21300 Touch up previous patch.
21301 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
21302 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
21304 Convert strcasestr module to use Two-Way algorithm.
21305 * modules/strcasestr-simple: New module, based on the old
21306 strcasestr, but with Two-Way rather than KMP.
21307 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
21308 * lib/string.in.h (rpl_strcasestr): Declare.
21309 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
21311 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
21312 * modules/string (Makefile.am): Support strcasestr.
21313 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21314 * modules/strcasestr-tests (Depends-on): Check for alarm.
21315 * tests/test-strcasestr.c: Augment test.
21316 * lib/str-two-way.h: Clean up stray macro.
21317 * NEWS: Document new module.
21318 * MODULES.html.sh (string handling): Likewise.
21319 * doc/functions/strcasestr.texi: New file.
21320 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
21321 here, since it is not a POSIX function.
21323 2008-01-14 Colin Watson <cjwatson@debian.org>
21324 Bruno Haible <bruno@clisp.org>
21326 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
21327 works fine; if not, set REPLACE_STRSIGNAL.
21328 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
21329 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21331 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
21332 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
21333 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
21335 2008-01-14 Bruno Haible <bruno@clisp.org>
21337 * modules/strsignal (Include): Change to <string.h>.
21339 2008-01-14 Colin Watson <cjwatson@debian.org>
21341 * modules/argp (Notice): Add a notice recommending to change
21343 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
21345 2008-01-13 Colin Watson <cjwatson@debian.org>
21347 * modules/strsignal-tests: New file.
21348 * tests/test-strsignal.c: New file.
21350 * lib/strsignal.c: New file, from glibc with modifications.
21351 * lib/siglist.h: New file, from glibc with modifications.
21352 * lib/string.in.h (strsignal): New declaration.
21353 * m4/strsignal.m4: New file.
21354 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21355 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
21356 * modules/strsignal: New file.
21357 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
21358 HAVE_DECL_STRSIGNAL.
21360 2008-01-13 Bruno Haible <bruno@clisp.org>
21362 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
21363 locale encoding is not ASCII. Needed for OpenBSD 4.0.
21364 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21365 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21367 2008-01-13 Bruno Haible <bruno@clisp.org>
21369 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
21370 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
21371 * lib/argp.h (__attribute__): Likewise.
21372 * lib/c-stack.c (__attribute__): Likewise.
21373 * lib/error.h (__attribute__): Likewise.
21374 * lib/fts.c (__attribute__): Likewise.
21375 * lib/openat.h (__attribute__): Likewise.
21376 * lib/stdio.in.h (__attribute__): Likewise.
21377 * lib/string.in.h (__attribute__): Likewise.
21378 * lib/utimens.c (__attribute__): Likewise.
21379 * lib/vasnprintf.h (__attribute__): Likewise.
21380 * lib/xalloc.h (__attribute__): Likewise.
21381 * lib/xprintf.h (__attribute__): Likewise.
21382 * lib/xstrtol.h (__attribute__): Likewise.
21383 * lib/xvasprintf.h (__attribute__): Likewise.
21385 2008-01-12 Bruno Haible <bruno@clisp.org>
21387 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
21388 * doc/glibc-headers/a.out.texi: New file.
21389 * doc/glibc-headers/aliases.texi: New file.
21390 * doc/glibc-headers/alloca.texi: New file.
21391 * doc/glibc-headers/ar.texi: New file.
21392 * doc/glibc-headers/argp.texi: New file.
21393 * doc/glibc-headers/argz.texi: New file.
21394 * doc/glibc-headers/byteswap.texi: New file.
21395 * doc/glibc-headers/crypt.texi: New file.
21396 * doc/glibc-headers/endian.texi: New file.
21397 * doc/glibc-headers/envz.texi: New file.
21398 * doc/glibc-headers/err.texi: New file.
21399 * doc/glibc-headers/error.texi: New file.
21400 * doc/glibc-headers/execinfo.texi: New file.
21401 * doc/glibc-headers/fpu_control.texi: New file.
21402 * doc/glibc-headers/fstab.texi: New file.
21403 * doc/glibc-headers/fts.texi: New file.
21404 * doc/glibc-headers/getopt.texi: New file.
21405 * doc/glibc-headers/ieee754.texi: New file.
21406 * doc/glibc-headers/ifaddrs.texi: New file.
21407 * doc/glibc-headers/libintl.texi: New file.
21408 * doc/glibc-headers/mcheck.texi: New file.
21409 * doc/glibc-headers/mntent.texi: New file.
21410 * doc/glibc-headers/obstack.texi: New file.
21411 * doc/glibc-headers/paths.texi: New file.
21412 * doc/glibc-headers/printf.texi: New file.
21413 * doc/glibc-headers/pty.texi: New file.
21414 * doc/glibc-headers/resolv.texi: New file.
21415 * doc/glibc-headers/shadow.texi: New file.
21416 * doc/glibc-headers/sysexits.texi: New file.
21417 * doc/glibc-headers/ttyent.texi: New file.
21419 2008-01-12 Jim Meyering <meyering@redhat.com>
21421 announce-gen: emit Gnulib's git-based version string.
21422 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
21423 New option --gnulib-version=V, where V is expected to be
21424 the output of running git describe in the gnulib directory.
21425 (get_tool_versions): Request feedback on xdelta. I suspect it's
21426 not useful, and plan to stop publishing an xdelta file with each
21429 * build-aux/announce-gen: Also check for lzma-compressed files.
21431 2008-01-11 Bruno Haible <bruno@clisp.org>
21433 * tests/test-memmem.c (main): Increase maximum allowed time.
21434 * tests/test-strstr.c (main): Likewise.
21436 2008-01-11 Bruno Haible <bruno@clisp.org>
21438 * doc/functions/memmem.texi: Add more precisions about platforms.
21439 * doc/functions/strstr.texi: Likewise.
21441 2008-01-10 Eric Blake <ebb9@byu.net>
21443 * m4/strstr.m4: Delete cruft from copy-n-paste.
21444 Reported by Bruno Haible.
21446 2008-01-10 Bruno Haible <bruno@clisp.org>
21448 Make c-strstr rely on strstr.
21449 * lib/c-strstr.c: Don't include str-kmp.h.
21450 (c_strstr): Define in terms of strstr.
21451 * modules/c-strstr (Files): Remove lib/str-kmp.h.
21452 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
21454 2008-01-10 Bruno Haible <bruno@clisp.org>
21456 * doc/gnulib.texi (String Functions in C Locale): New section.
21457 * doc/c-ctype.texi: New file.
21458 * doc/c-strcase.texi: New file.
21459 * doc/c-strcaseeq.texi: New file.
21460 * doc/c-strcasestr.texi: New file.
21461 * doc/c-strstr.texi: New file.
21462 * doc/c-strtod.texi: New file.
21463 * doc/c-strtold.texi: New file.
21465 2008-01-10 Eric Blake <ebb9@byu.net>
21467 * lib/relocatable.h: Fix a comment.
21469 2008-01-10 Eric Blake <ebb9@byu.net>
21471 Share two-way algorithm.
21472 * lib/str-two-way.h: New file, merged from...
21473 * lib/memmem.c: ...here...
21474 * lib/strstr.c: ...and here.
21475 * modules/memmem (Files): Use it.
21476 * modules/strstr (Files): Likewise.
21478 Avoid quadratic strstr implementations.
21479 * lib/strstr.c: New file.
21480 * m4/strstr.m4: Likewise.
21481 * modules/strstr: Likewise.
21482 * modules/strstr-tests: Likewise.
21483 * tests/test-strstr.c: Likewise.
21484 * lib/string.in.h (rpl_strstr): Declare.
21485 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
21486 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
21487 * modules/string (Makefile.am): Likewise.
21488 * MODULES.html.sh (string handling): Mention new module.
21489 * doc/functions/strstr.texi (strstr): Document the bug.
21491 2008-01-10 Bruno Haible <bruno@clisp.org>
21493 * lib/relocatable.h (relocate): State whether result is freshly
21495 * lib/relocatable.c (relocate): Return a freshly allocated string
21496 instead of a pointer to a privately held string.
21497 Reported by Sylvain Beucler <beuc@gnu.org>.
21499 2008-01-10 Colin Watson <cjwatson@debian.org>
21501 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
21502 s/S_ISNLK/S_ISLNK/.
21504 2008-01-09 Bruno Haible <bruno@clisp.org>
21506 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
21508 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
21509 if it's only a guess.
21510 * modules/memmem: Simplify by depending on memmem-simple.
21512 2008-01-09 Bruno Haible <bruno@clisp.org>
21514 Work around OpenBSD 4.0 tdelete() bug.
21515 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
21516 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
21517 macros and don't redefine the enum values.
21518 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
21519 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
21520 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
21522 2008-01-09 Bruno Haible <bruno@clisp.org>
21524 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
21525 (main): Don't perform the tests if setlocale did not install a UTF-8
21526 locale. Needed on OpenBSD 4.0.
21527 * modules/wcwidth-tests (Depends-on): Add localcharset.
21529 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
21531 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
21532 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
21533 * NEWS: announce this.
21534 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
21536 2008-01-09 Simon Josefsson <simon@josefsson.org>
21537 and Eric Blake <ebb9@byu.net>
21539 Add memmem-simple module.
21540 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
21541 (gl_FUNC_MEMMEM): Separate performance from presence checks.
21542 * modules/memmem-simple: New file.
21543 * modules/memmem (Description): Tweak.
21544 * MODULES.html.sh (string handling): Mention new module.
21545 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
21546 addressed by memmem-simple.
21547 * NEWS: Document the difference.
21549 2008-01-09 Eric Blake <ebb9@byu.net>
21551 Give gcc some memmem optimization hints.
21552 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
21553 (strcasestr): Declare as pure.
21554 * modules/memmem (Maintainer): Claim my implementation.
21556 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21558 Support AIX 6.1 and higher.
21559 * build-aux/config.libpath: Likewise.
21560 * build-aux/config.rpath: Likewise.
21562 2008-01-08 Jim Meyering <meyering@redhat.com>
21563 Bruno Haible <bruno@clisp.org>
21565 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
21566 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
21567 Reported by Peter Fales in
21568 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
21570 2008-01-08 Bruno Haible <bruno@clisp.org>
21572 * modules/unictype/category-of (Depends-on): Add
21573 unictype/category-none.
21574 * modules/unictype/category-and-tests (Depends-on): Add
21575 unictype/category-{L,N,Lu,Nd}.
21576 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
21577 * modules/unictype/category-or-tests (Depends-on): Add
21578 unictype/category-{L,N}.
21579 * modules/unictype/category-name-tests (Depends-on): Add
21580 unictype/category-{Z,Nl}.
21581 Reported by Simon Josefsson.
21583 2008-01-08 Bruno Haible <bruno@clisp.org>
21585 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
21587 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
21588 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
21589 Reported by Peter Miller <millerp@canb.auug.org.au>.
21591 2008-01-08 Eric Blake <ebb9@byu.net>
21593 Rewrite memmem to guarantee linear complexity without malloc.
21594 * lib/memmem.c (memmem): Use Two-Way rather than
21595 Knuth-Morris-Pratt, to allow O(1) space usage.
21596 (critical_factorization, two_way_short_needle)
21597 (two_way_long_needle): New functions.
21598 (knuth_morris_pratt): Delete.
21599 * modules/memmem (Depends-on): No longer need malloca or stdbool.
21601 * tests/test-memmem.c (main): Add tests for periodic needle and
21602 sublinear performance.
21603 * doc/functions/memmem.texi (memmem): Document other deficiencies
21604 in cygwin and older glibc.
21606 2008-01-08 Bruno Haible <bruno@clisp.org>
21608 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
21611 2008-01-08 Mike Frysinger <vapier@gentoo.org>
21613 Add a configure time option: --disable-acl.
21614 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
21615 AC_ARG_ENABLE(acl).
21617 2008-01-06 Simon Josefsson <simon@josefsson.org>
21619 * tests/test-localename.c: Don't include obsolete "setenv.h".
21621 * modules/localename-tests (Depends-on): Need unsetenv.
21623 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21625 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
21627 2008-01-06 Colin Watson <cjwatson@debian.org>
21629 * users.txt: Add man-db.
21631 2008-01-07 Bruno Haible <bruno@clisp.org>
21633 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
21634 previous section name.
21636 2008-01-07 Bruno Haible <bruno@clisp.org>
21638 * lib/progname.c (set_program_name): Don't strip off a leading
21639 "lt-" prefix outside a .libs directory.
21640 Suggested by Paul Eggert.
21642 2008-01-01 Sylvain Beucler <beuc@gnu.org>
21643 Bruno Haible <bruno@clisp.org>
21645 Improve memory cleanup in 'relocatable' module.
21646 * lib/relocatable.h (compute_curr_prefix): Change return type to
21648 * lib/relocatable.c (compute_curr_prefix): Change return type to
21649 'char *'. Free curr_installdir after use.
21650 (relocate): Free curr_prefix_better after use.
21651 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
21653 2008-01-01 Bruno Haible <bruno@clisp.org>
21655 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
21656 failure on older glibc systems.
21657 Reported by Peter Fales <psfales@alcatel-lucent.com>.
21659 2008-01-05 Eric Blake <ebb9@byu.net>
21661 Avoid quadratic system memmem.
21662 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
21663 Reported by Ralf Wildenhues.
21665 Fix memmem test for mingw.
21666 * modules/memmem-tests (configure.ac): Check for alarm.
21667 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
21669 * doc/functions/memmem.texi: New file.
21670 * doc/gnulib.texi (Function Substitutes): Add memmem.
21671 Reported by Bruno Haible.
21673 2008-01-04 Bruno Haible <bruno@clisp.org>
21675 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
21676 Require gl_HEADER_STRINGS_H_DEFAULTS, not
21677 gl_HEADER_STRING_H_DEFAULTS.
21679 2008-01-04 Eric Blake <ebb9@byu.net>
21681 Shorten duration of memmem test.
21682 * tests/test-memmem.c (main): Use alarm to declare failure if test
21683 is taking too long.
21684 Reported by Ralf Wildenhues.
21686 2007-12-21 Simon Josefsson <simon@josefsson.org>
21688 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
21689 string, needed by strerror.
21691 2008-01-03 Colin Watson <cjwatson@debian.org>
21692 Bruno Haible <bruno@clisp.org>
21694 * doc/gnulib-tool.texi (Localization): New section.
21696 2008-01-02 Bruno Haible <bruno@clisp.org>
21698 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
21699 variables to 'unsigned char *' type.
21700 Reported by Paul Eggert.
21702 2008-01-02 Jim Meyering <jim@meyering.net>
21704 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
21706 2007-12-31 Jim Meyering <jim@meyering.net>
21708 Avoid use of private FTS type name.
21709 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
21711 2007-12-30 Karl Berry <karl@gnu.org>
21713 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
21714 work around defect in Texinfo and/or the standalone Info browser.
21716 2007-12-30 Bruno Haible <bruno@clisp.org>
21718 Unify 5 copies of the KMP code.
21719 * lib/str-kmp.h: New file.
21720 * lib/c-strcasestr.c: Include str-kmp.h.
21721 (knuth_morris_pratt): Remove function.
21722 (c_strcasestr): Update.
21723 * lib/c-strstr.c: Include str-kmp.h.
21724 (knuth_morris_pratt): Remove function.
21725 (c_strcasestr): Update.
21726 * lib/mbscasestr.c: Include str-kmp.h.
21727 (knuth_morris_pratt_unibyte): Remove function.
21728 * lib/mbsstr.c: Include str-kmp.h.
21729 (knuth_morris_pratt_unibyte): Remove function.
21730 * lib/strcasestr.c: Include str-kmp.h.
21731 (knuth_morris_pratt): Remove function.
21732 (strcasestr): Update.
21733 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
21734 * modules/c-strstr (Files): Likewise.
21735 * modules/mbscasestr (Files): Likewise.
21736 * modules/mbsstr (Files): Likewise.
21737 * modules/strcasestr (Files): Likewise.
21738 Suggested by Paul Eggert.
21740 2007-12-30 Bruno Haible <bruno@clisp.org>
21742 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
21745 2007-12-30 Bruno Haible <bruno@clisp.org>
21747 * lib/xmalloca.h: Include xalloc.h.
21748 (xnmalloca): New macro.
21750 2007-12-30 Bruno Haible <bruno@clisp.org>
21752 * lib/malloca.h (nmalloca): New macro.
21753 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
21754 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
21755 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
21756 knuth_morris_pratt_multibyte): Likewise.
21757 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
21758 knuth_morris_pratt_multibyte): Likewise.
21759 * lib/memmem.c (knuth_morris_pratt): Likewise.
21760 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
21762 2007-12-25 Bruno Haible <bruno@clisp.org>
21764 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
21765 * lib/glob.c: Don't include openat.h.
21766 (link_exists2_p): Add back the code that deals with the
21767 !GLOB_ALTDIRFUNC case.
21768 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
21769 let it do the filename concatenation.
21770 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
21771 * modules/glob (Depends-on): Remove openat.
21773 2007-12-31 Bruno Haible <bruno@clisp.org>
21775 * modules/dirfd (License): Change to LGPLv2+.
21776 Approved by Jim Meyering.
21778 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
21780 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
21781 when multiplying M by sizeof (size_t).
21783 2007-12-10 Martin Lambers <marlam@marlam.de>
21785 Override getpagesize on mingw.
21786 * lib/getpagesize.c: New file.
21787 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
21788 * modules/getpagesize (Files): Add lib/getpagesize.c.
21789 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
21790 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21791 REPLACE_GETPAGESIZE.
21792 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
21794 2007-12-25 Bruno Haible <bruno@clisp.org>
21796 * modules/localcharset (Notice): New field.
21797 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
21798 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21800 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
21801 Bruno Haible <bruno@clisp.org>
21803 Avoid using the syntax symbol() in formatted documentation.
21804 * MODULES.html.sh (func_module): When replacing symbol() with a
21805 hyperlink, remove the parentheses. Show an error if some remain.
21806 Recognize and render the '...' syntax.
21807 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
21808 Rework. Add paragraph about GCC's inlining.
21809 * doc/alloca.texi: Likewise.
21810 * doc/error.texi: Remove parentheses from symbol reference.
21811 * doc/gnulib-intro.texi: Likewise.
21812 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
21813 * modules/fnmatch (Description): Reword to say "the ... function".
21814 * modules/full-read (Description): Likewise.
21815 * modules/full-write (Description): Likewise.
21816 * modules/safe-read (Description): Likewise.
21817 * modules/safe-write (Description): Likewise.
21818 * modules/strchrnul (Description): Likewise.
21819 * modules/trim (Description): Likewise.
21820 * modules/error (Description): Remove parentheses from symbol
21822 * modules/verror (Description): Likewise.
21823 Reported by Karl Berry.
21825 2007-12-25 Bruno Haible <bruno@clisp.org>
21827 Fixup after 2007-10-16 commit.
21828 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
21830 2007-12-24 Bruno Haible <bruno@clisp.org>
21832 Make --enable-relocatable work with DESTDIR.
21833 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
21834 to compute installdir from destprog.
21835 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
21836 also set the RELOC_DESTDIR variable.
21837 Reported by Левашев Иван <octagram@bluebottle.com>.
21839 2007-12-24 Bruno Haible <bruno@clisp.org>
21841 Fix link error due to xalloc_die().
21842 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
21844 * lib/relocwrapper.c: Update comments.
21845 * build-aux/install-reloc: Remove xreadlink.c from file list.
21846 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
21848 Reported by Левашев Иван <octagram@bluebottle.com>.
21850 2007-12-24 Bruno Haible <bruno@clisp.org>
21852 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
21853 * lib/setenv.h: Remove file.
21854 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
21856 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
21857 (Depends-on): Add stdlib.
21858 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
21860 (Include): Replace setenv.h with <stdlib.h>.
21861 * modules/unsetenv: New file.
21862 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
21863 * lib/unsetenv.c: Include <stdlib.h> first.
21864 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
21865 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
21866 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
21867 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
21868 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
21869 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
21870 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
21871 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
21872 * doc/functions/unsetenv.texi: Update.
21873 * modules/xsetenv (Depends-on): Add unsetenv.
21874 * modules/getdate (Depends-on): Likewise.
21875 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
21876 * lib/xsetenv.c: Don't include setenv.h.
21877 * lib/getdate.y: Likewise.
21878 * lib/relocwrapper.c: Likewise.
21879 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
21880 (Depends-on): Add stdlib.
21881 * NEWS: Mention the changes.
21882 Reported by Левашев Иван <octagram@bluebottle.com>.
21884 2007-12-23 Bruno Haible <bruno@clisp.org>
21886 * lib/memmem.c (memmem): Use lowercase variable names. Tab
21889 2007-12-23 Bruno Haible <bruno@clisp.org>
21891 * lib/c-strcasestr.c: Add more comments.
21892 * lib/c-strstr.c: Likewise.
21893 * lib/mbscasestr.c: Likewise.
21894 * lib/mbsstr.c: Likewise.
21895 * lib/strcasestr.c: Likewise.
21896 * lib/memmem.c: Likewise.
21898 2007-12-23 Bruno Haible <bruno@clisp.org>
21900 * tests/test-memmem.c: Include <string.h> first.
21902 2007-12-22 Bruno Haible <bruno@clisp.org>
21904 * gnulib-tool (func_create_testdir): Change $auxdir while generating
21905 the contents of $testsbase.
21906 Reported by Ralf Wildenhues.
21908 2007-12-22 Bruno Haible <bruno@clisp.org>
21910 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
21911 two variables local_ldadd_before, local_ldadd_last.
21913 2007-12-20 Eric Blake <ebb9@byu.net>
21915 Work around circular library issue when cross-compiling.
21916 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
21917 that progname.o does not need to pull in rpl_memcmp.
21919 2007-12-19 Eric Blake <ebb9@byu.net>
21921 Fix memmem to avoid O(n^2) worst-case complexity.
21922 * lib/memmem.c (knuth_morris_pratt): New function.
21923 (memmem): Use it if first few naive iterations fail.
21924 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
21925 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
21926 * modules/memchr (License): Likewise.
21927 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
21929 * tests/test-memmem.c: Rewrite, borrowing ideas from
21930 test-mbsstr1.c; the old version wouldn't even compile!
21931 * modules/memmem-tests: New file.
21932 * lib/string.in.h (rpl_memmem): Add declaration.
21933 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
21934 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
21937 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
21939 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
21940 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
21941 before any system include files, and undef after them all. This
21942 should fix a problem on VMS reported by John E. Malmberg in
21943 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
21945 2007-12-17 Eric Blake <ebb9@byu.net>
21947 Revert addition of verify, for BSD/OS.
21948 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
21949 can't handle large files, for the sake of obsolete platforms.
21950 * modules/fseeko (Depends-on): Remove verify.
21951 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
21952 * doc/functions/ftello.texi (ftello): Likewise.
21953 * doc/functions/fgetpos.texi (fgetpos): Likewise.
21954 Reported by Larry Jones.
21956 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
21958 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
21959 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
21961 2007-12-17 Jim Meyering <meyering@redhat.com>
21963 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
21964 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
21965 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
21966 * modules/getcwd (Depends-on): Add openat.
21967 Reported by Petr Salinger.
21969 2007-12-17 Bruno Haible <bruno@clisp.org>
21971 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
21972 avoid a segmentation fault of the configure test on x86_64 systems.
21974 2007-12-15 Jim Meyering <meyering@redhat.com>
21976 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
21978 2007-12-13 Eric Blake <ebb9@byu.net>
21980 Another fseek test.
21981 * tests/test-fseek.c (main): Also test ungetc handling.
21982 * tests/test-fseeko.c (main): Likewise.
21983 * modules/fseeko (Depends-on): Add verify.
21984 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
21986 Reported by Larry Jones.
21988 Fix fseeko on mingw.
21989 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
21992 Beef up fseek tests.
21993 * tests/test-fseek.c (main): Also test eof handling.
21994 * tests/test-fseeko.c (main): Likewise.
21995 Reported by Larry Jones.
21997 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
21999 Fix fseeko on BSD-based platforms.
22000 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
22003 2007-12-12 Eric Blake <ebb9@byu.net>
22005 Allow circular dependency of separate libtests.a
22006 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
22009 2007-12-11 Eric Blake <ebb9@byu.net>
22011 Fix bug with -0.0L in previous patch.
22012 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
22013 * tests/test-isnan.c (main): Also test on zeroes.
22014 * tests/test-isnanf.c (main): Likewise.
22015 * tests/test-isnanl.h (main): Likewise.
22017 Detect pseudo-denormals on x86 even when cross-compiling.
22018 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
22019 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
22020 invalid bit patterns that happen to satisfy ==.
22022 Avoid link failures with separate libtests.a.
22023 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
22024 last, to satisfy circular dependencies.
22026 2007-12-11 Eric Blake <ebb9@byu.net>
22027 and Bruno Haible <bruno@clisp.org>
22029 Fix OpenBSD 4.0 <float.h> handling of long double.
22030 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
22031 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
22032 * doc/headers/float.texi (float.h): Document OpenBSD bug.
22034 2007-12-11 Jim Meyering <meyering@redhat.com>
22036 * users.txt: Add libvirt.
22038 Support versions of autoconf prior to 2.59c.
22039 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
22040 if it is not already defined.
22042 2007-12-09 Bruno Haible <bruno@clisp.org>
22044 Let 'gnulib-tool --import' collect sources needed for the tests in
22045 tests/ rather than in lib/.
22046 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
22047 argument. If true, add rules to generate libtests.a, and put libtests.a
22048 into $(LDADD). Consider source files in subdirectories and set
22050 (func_emit_initmacro_start, func_emit_initmacro_end,
22051 func_emit_initmacro_done): Pass all arguments explicitly.
22052 (func_import): Determine two module lists main_modules,
22053 testsrelated_modules. Determine use_libtests. Determine two variables
22054 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
22055 instead of just sed_transform_lib_file. Determine two variables
22056 main_files and testsrelated_files. Compute 'files' as the union of
22057 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
22058 func_add_or_update. In the generated gnulib-comp.m4, collect the
22059 object files for tests/ in different variables than those for lib/.
22060 Substitute LIBTESTS_LIBDEPS.
22061 (func_create_testdir): Combine the uses_subdirs results from
22062 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
22064 2007-12-09 Bruno Haible <bruno@clisp.org>
22066 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
22067 the build-aux directory.
22069 2007-12-09 Bruno Haible <bruno@clisp.org>
22071 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
22072 introduced on 2006-09-09.
22074 2007-12-07 Jim Meyering <meyering@redhat.com>
22076 Let these macros work also with autoconf-2.59.
22077 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
22078 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
22079 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22081 2007-12-06 Jim Meyering <meyering@redhat.com>
22083 Avoid a configure-time syntax error in gl_FUNC_ACL.
22084 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
22085 function in each branch, before testing the cache variable.
22087 2007-12-04 Eric Blake <ebb9@byu.net>
22089 Make scripts executable.
22090 * build-aux/config.guess: Add execute permissions.
22091 * build-aux/config.sub: Likewise.
22092 * build-aux/gendocs.sh: Likewise.
22094 Fix frexp on mingw.
22095 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
22097 * doc/functions/frexp.texi (frexp): Document the bug.
22099 Make cygwin fseeko check more reliable.
22100 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
22101 version numbers, rather than unrelated feature check.
22102 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
22103 * doc/functions/ftello.texi (ftello): Likewise.
22104 Reported by Bruno Haible.
22106 * m4/strerror.m4: Bump version number.
22108 2007-12-03 Bruno Haible <bruno@clisp.org>
22110 * doc/functions/mprotect.texi: Mention the mingw problem.
22112 2007-12-03 Eric Blake <ebb9@byu.net>
22114 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
22115 REPLACE_STRERROR is initialized before this macro.
22117 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
22119 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
22120 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
22121 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
22122 put -lsec in even for programs other than 'ls'. This fixes a problem
22123 for gettext reported by Bruno Haible in
22124 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
22125 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
22126 Add support for Solaris 10. This isn't efficient, but should get the
22129 2007-12-03 James Youngman <jay@gnu.org>
22131 * doc/regexprops-generic.texi: change "an close-group" to "a
22132 close-group" and "illegal" to "not allowed".
22134 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22136 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
22137 pr_byname.h. Needed for the rare case when the maintainer has done
22138 "make maintainer-clean" in the source directory and then attempts a
22139 build outside the source directory.
22140 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
22143 2007-12-02 Martin Lambers <marlam@marlam.de>
22144 Bruno Haible <bruno@clisp.org>
22146 * lib/getpagesize.h: Remove file.
22147 * lib/unistd.in.h: Include declaration of getpagesize here.
22148 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
22149 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
22151 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
22152 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
22153 * modules/getpagesize (Files): Remove lib/getpagesize.h.
22154 (Depends-on): Add unistd.
22155 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22156 (Include): Use <unistd.h> instead of getpagesize.h.
22157 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
22158 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
22159 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
22160 gl_GETPAGESIZE invocation, already handled by module dependency.
22161 * lib/pagealign_alloc.c: Don't include getpagesize.h.
22163 2007-12-02 Bruno Haible <bruno@clisp.org>
22165 * modules/strings-tests: New file.
22166 * tests/test-strings.c: New file.
22168 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
22169 * lib/strings.in.h: New file.
22170 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
22171 * m4/strings_h.m4: New file.
22172 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
22173 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
22174 * modules/strings: New file.
22175 * modules/string (Makefile.am): Update.
22176 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
22177 Reported by Karl Berry.
22179 2007-12-01 Eric Blake <ebb9@byu.net>
22181 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
22182 accomodate fix in cygwin 1.5.25.
22184 2007-12-01 Jim Meyering <meyering@redhat.com>
22186 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
22187 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
22188 that would inhibit utf8-optimization of a regexp containing line-
22189 or buffer-anchors, e.g., `^', `$'.
22191 2007-11-30 Bruno Haible <bruno@clisp.org>
22193 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
22194 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
22195 glthread_recursive_lock_init.
22196 * lib/lock.c (glthread_recursive_lock_init)
22197 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
22198 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22200 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
22202 New function qset_acl, like set_acl but with syscall semantics.
22203 * lib/acl.h (qset_acl): New decl.
22204 * lib/acl.c (qset_acl): New function.
22205 (set_acl): Use new function. Use more-consistent diagnostics.
22207 2007-11-28 Jim Meyering <meyering@redhat.com>
22209 * modules/physmem (License): Change from GPL to LGPLv2+.
22211 2007-11-26 Bruno Haible <bruno@clisp.org>
22213 * lib/vasnprintf.c (decode_long_double): Don't abort if the
22214 'long double' type has excess precision.
22215 Reported by Jim Meyering in
22216 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
22218 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22220 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
22221 Sync from <http://gnu.org/licenses>.
22222 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
22223 with license text from same location.
22224 * doc/maintain.texi, doc/standards.texi: Sync from
22225 <http://savannah.gnu.org/projects/gnustandards>.
22227 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22228 and Jim Meyering <meyering@redhat.com>
22230 Adjust getdate' grammar to accept a slightly more regular language.
22231 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
22232 Before, the former was rejected.
22233 * lib/getdate.y (digits_to_date_time): New function, factored
22235 (number): ...here. Just call digits_to_date_time.
22236 (hybrid): New non-terminal to handle an <unsigned number,
22237 signed relative offset> sequence consistently.
22239 2007-11-18 Jim Meyering <meyering@redhat.com>
22241 Pull my changes from coreutils:
22242 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
22243 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
22244 use of $gnulib_tool_option_extras, so that it's separated from the
22245 preceding argument.
22247 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
22248 * build-aux/bootstrap (cp_mark_as_generated): Create any required
22249 parent destination directories before copying a file into place.
22251 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
22253 bootstrap: work also with 4-argument variant of AC_INIT
22254 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
22256 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
22258 Port test-getaddrinfo to Solaris.
22259 Problem reported by Bruno Haible in
22260 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
22261 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
22262 explanation of setting 'hints'.
22263 Don't reject an implementation merely because it returns EAI_SERVICE.
22264 (EAI_SERVICE): Define to 0 if not defined.
22266 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
22268 The license of gnu-make and posix-shell is now "GPLed build tool".
22269 * modules/gnu-make (License): Likewise.
22270 * modules/posix-shell (License): Likewise.
22272 New module posix-shell, for determining a POSIX shell
22273 or perhaps something that is close enough to a POSIX shell.
22274 * m4/posix-shell.m4: New file.
22275 * modules/posix-shell: New file.
22277 * MODULES.html.sh: Mention new module.
22279 New module gnu-make, for determining whether we're using GNU Make.
22280 * m4/gnu-make.m4: New file.
22281 * modules/gnu-make: New file.
22282 * MODULES.html.sh: Mention new module.
22284 2007-11-14 Jim Meyering <meyering@redhat.com>
22286 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
22287 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
22288 use this macro to create a function _definition_.
22289 Remove useless "#undef ARGMATCH_DIE".
22291 2007-11-14 Bruno Haible <bruno@clisp.org>
22293 * lib/config.charset: Update for OpenBSD 4.1.
22294 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
22296 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
22298 Document 64-bit #if problems in stdint.texi.
22299 * doc/headers/stdint.texi (stdint.h): Mention problems with
22300 64-bit-#if, and how to work around them.
22302 Don't insist on 'long long int' support in the preprocessor. It
22303 breaks too many things. For example, PRIdMAX still uses a 'long
22304 long int' format with the latest Sun compiler, even though
22305 HAVE_LONG_LONG_INT isn't defined due to that compiler's
22306 preprocessor problem. This causes the latest coreutils to dump
22307 core on Solaris 10 sparc with the Sun C compiler.
22308 Instead, fix the 2007-10-16 problem in a different way, by evaluating
22309 the troublesome expressions at configure-time, not at #if-time.
22310 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
22312 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
22313 compile-time C checks, done at 'configure'-time.
22314 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
22315 * modules/inttypes (Makefile): Substitute the new symbols that
22316 gl_INTTYPES_H now generates.
22317 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
22319 2007-11-12 Bruno Haible <bruno@clisp.org>
22321 Tests for Unicode character classification functions.
22323 * modules/unictype/bidicategory-byname-tests: New file.
22324 * modules/unictype/bidicategory-name-tests: New file.
22325 * modules/unictype/bidicategory-of-tests: New file.
22326 * modules/unictype/bidicategory-test-tests: New file.
22327 * modules/unictype/block-list-tests: New file.
22328 * modules/unictype/block-of-tests: New file.
22329 * modules/unictype/block-test-tests: New file.
22330 * modules/unictype/category-C-tests: New file.
22331 * modules/unictype/category-Cc-tests: New file.
22332 * modules/unictype/category-Cf-tests: New file.
22333 * modules/unictype/category-Cn-tests: New file.
22334 * modules/unictype/category-Co-tests: New file.
22335 * modules/unictype/category-Cs-tests: New file.
22336 * modules/unictype/category-L-tests: New file.
22337 * modules/unictype/category-Ll-tests: New file.
22338 * modules/unictype/category-Lm-tests: New file.
22339 * modules/unictype/category-Lo-tests: New file.
22340 * modules/unictype/category-Lt-tests: New file.
22341 * modules/unictype/category-Lu-tests: New file.
22342 * modules/unictype/category-M-tests: New file.
22343 * modules/unictype/category-Mc-tests: New file.
22344 * modules/unictype/category-Me-tests: New file.
22345 * modules/unictype/category-Mn-tests: New file.
22346 * modules/unictype/category-N-tests: New file.
22347 * modules/unictype/category-Nd-tests: New file.
22348 * modules/unictype/category-Nl-tests: New file.
22349 * modules/unictype/category-No-tests: New file.
22350 * modules/unictype/category-P-tests: New file.
22351 * modules/unictype/category-Pc-tests: New file.
22352 * modules/unictype/category-Pd-tests: New file.
22353 * modules/unictype/category-Pe-tests: New file.
22354 * modules/unictype/category-Pf-tests: New file.
22355 * modules/unictype/category-Pi-tests: New file.
22356 * modules/unictype/category-Po-tests: New file.
22357 * modules/unictype/category-Ps-tests: New file.
22358 * modules/unictype/category-S-tests: New file.
22359 * modules/unictype/category-Sc-tests: New file.
22360 * modules/unictype/category-Sk-tests: New file.
22361 * modules/unictype/category-Sm-tests: New file.
22362 * modules/unictype/category-So-tests: New file.
22363 * modules/unictype/category-Z-tests: New file.
22364 * modules/unictype/category-Zl-tests: New file.
22365 * modules/unictype/category-Zp-tests: New file.
22366 * modules/unictype/category-Zs-tests: New file.
22367 * modules/unictype/category-and-not-tests: New file.
22368 * modules/unictype/category-and-tests: New file.
22369 * modules/unictype/category-byname-tests: New file.
22370 * modules/unictype/category-name-tests: New file.
22371 * modules/unictype/category-none-tests: New file.
22372 * modules/unictype/category-of-tests: New file.
22373 * modules/unictype/category-or-tests: New file.
22374 * modules/unictype/category-test-withtable-tests: New file.
22375 * modules/unictype/combining-class-tests: New file.
22376 * modules/unictype/ctype-alnum-tests: New file.
22377 * modules/unictype/ctype-alpha-tests: New file.
22378 * modules/unictype/ctype-blank-tests: New file.
22379 * modules/unictype/ctype-cntrl-tests: New file.
22380 * modules/unictype/ctype-digit-tests: New file.
22381 * modules/unictype/ctype-graph-tests: New file.
22382 * modules/unictype/ctype-lower-tests: New file.
22383 * modules/unictype/ctype-print-tests: New file.
22384 * modules/unictype/ctype-punct-tests: New file.
22385 * modules/unictype/ctype-space-tests: New file.
22386 * modules/unictype/ctype-upper-tests: New file.
22387 * modules/unictype/ctype-xdigit-tests: New file.
22388 * modules/unictype/decimal-digit-tests: New file.
22389 * modules/unictype/digit-tests: New file.
22390 * modules/unictype/mirror-tests: New file.
22391 * modules/unictype/numeric-tests: New file.
22392 * modules/unictype/property-alphabetic-tests: New file.
22393 * modules/unictype/property-ascii-hex-digit-tests: New file.
22394 * modules/unictype/property-bidi-arabic-digit-tests: New file.
22395 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
22396 * modules/unictype/property-bidi-block-separator-tests: New file.
22397 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
22398 * modules/unictype/property-bidi-common-separator-tests: New file.
22399 * modules/unictype/property-bidi-control-tests: New file.
22400 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
22401 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
22402 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
22403 * modules/unictype/property-bidi-european-digit-tests: New file.
22404 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
22405 * modules/unictype/property-bidi-left-to-right-tests: New file.
22406 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
22407 * modules/unictype/property-bidi-other-neutral-tests: New file.
22408 * modules/unictype/property-bidi-pdf-tests: New file.
22409 * modules/unictype/property-bidi-segment-separator-tests: New file.
22410 * modules/unictype/property-bidi-whitespace-tests: New file.
22411 * modules/unictype/property-byname-tests: New file.
22412 * modules/unictype/property-combining-tests: New file.
22413 * modules/unictype/property-composite-tests: New file.
22414 * modules/unictype/property-currency-symbol-tests: New file.
22415 * modules/unictype/property-dash-tests: New file.
22416 * modules/unictype/property-decimal-digit-tests: New file.
22417 * modules/unictype/property-default-ignorable-code-point-tests: New file.
22418 * modules/unictype/property-deprecated-tests: New file.
22419 * modules/unictype/property-diacritic-tests: New file.
22420 * modules/unictype/property-extender-tests: New file.
22421 * modules/unictype/property-format-control-tests: New file.
22422 * modules/unictype/property-grapheme-base-tests: New file.
22423 * modules/unictype/property-grapheme-extend-tests: New file.
22424 * modules/unictype/property-grapheme-link-tests: New file.
22425 * modules/unictype/property-hex-digit-tests: New file.
22426 * modules/unictype/property-hyphen-tests: New file.
22427 * modules/unictype/property-id-continue-tests: New file.
22428 * modules/unictype/property-id-start-tests: New file.
22429 * modules/unictype/property-ideographic-tests: New file.
22430 * modules/unictype/property-ids-binary-operator-tests: New file.
22431 * modules/unictype/property-ids-trinary-operator-tests: New file.
22432 * modules/unictype/property-ignorable-control-tests: New file.
22433 * modules/unictype/property-iso-control-tests: New file.
22434 * modules/unictype/property-join-control-tests: New file.
22435 * modules/unictype/property-left-of-pair-tests: New file.
22436 * modules/unictype/property-line-separator-tests: New file.
22437 * modules/unictype/property-logical-order-exception-tests: New file.
22438 * modules/unictype/property-lowercase-tests: New file.
22439 * modules/unictype/property-math-tests: New file.
22440 * modules/unictype/property-non-break-tests: New file.
22441 * modules/unictype/property-not-a-character-tests: New file.
22442 * modules/unictype/property-numeric-tests: New file.
22443 * modules/unictype/property-other-alphabetic-tests: New file.
22444 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
22445 * modules/unictype/property-other-grapheme-extend-tests: New file.
22446 * modules/unictype/property-other-id-continue-tests: New file.
22447 * modules/unictype/property-other-id-start-tests: New file.
22448 * modules/unictype/property-other-lowercase-tests: New file.
22449 * modules/unictype/property-other-math-tests: New file.
22450 * modules/unictype/property-other-uppercase-tests: New file.
22451 * modules/unictype/property-paired-punctuation-tests: New file.
22452 * modules/unictype/property-paragraph-separator-tests: New file.
22453 * modules/unictype/property-pattern-syntax-tests: New file.
22454 * modules/unictype/property-pattern-white-space-tests: New file.
22455 * modules/unictype/property-private-use-tests: New file.
22456 * modules/unictype/property-punctuation-tests: New file.
22457 * modules/unictype/property-quotation-mark-tests: New file.
22458 * modules/unictype/property-radical-tests: New file.
22459 * modules/unictype/property-sentence-terminal-tests: New file.
22460 * modules/unictype/property-soft-dotted-tests: New file.
22461 * modules/unictype/property-space-tests: New file.
22462 * modules/unictype/property-terminal-punctuation-tests: New file.
22463 * modules/unictype/property-test-tests: New file.
22464 * modules/unictype/property-titlecase-tests: New file.
22465 * modules/unictype/property-unassigned-code-value-tests: New file.
22466 * modules/unictype/property-unified-ideograph-tests: New file.
22467 * modules/unictype/property-uppercase-tests: New file.
22468 * modules/unictype/property-variation-selector-tests: New file.
22469 * modules/unictype/property-white-space-tests: New file.
22470 * modules/unictype/property-xid-continue-tests: New file.
22471 * modules/unictype/property-xid-start-tests: New file.
22472 * modules/unictype/property-zero-width-tests: New file.
22473 * modules/unictype/scripts-tests: New file.
22474 * modules/unictype/syntax-c-ident-tests: New file.
22475 * modules/unictype/syntax-c-whitespace-tests: New file.
22476 * modules/unictype/syntax-java-ident-tests: New file.
22477 * modules/unictype/syntax-java-whitespace-tests: New file.
22478 * tests/unictype/test-bidi_byname.c: New file.
22479 * tests/unictype/test-bidi_name.c: New file.
22480 * tests/unictype/test-bidi_of.c: New file.
22481 * tests/unictype/test-bidi_test.c: New file.
22482 * tests/unictype/test-block_list.c: New file.
22483 * tests/unictype/test-block_of.c: New file.
22484 * tests/unictype/test-block_test.c: New file.
22485 * tests/unictype/test-categ_and.c: New file.
22486 * tests/unictype/test-categ_and_not.c: New file.
22487 * tests/unictype/test-categ_byname.c: New file.
22488 * tests/unictype/test-categ_name.c: New file.
22489 * tests/unictype/test-categ_none.c: New file.
22490 * tests/unictype/test-categ_of.c: New file.
22491 * tests/unictype/test-categ_or.c: New file.
22492 * tests/unictype/test-categ_test_withtable.c: New file.
22493 * tests/unictype/test-combining.c: New file.
22494 * tests/unictype/test-decdigit.c: New file.
22495 * tests/unictype/test-digit.c: New file.
22496 * tests/unictype/test-mirror.c: New file.
22497 * tests/unictype/test-numeric.c: New file.
22498 * tests/unictype/test-pr_byname.c: New file.
22499 * tests/unictype/test-pr_test.c: New file.
22500 * tests/unictype/test-predicate-part1.h: New file.
22501 * tests/unictype/test-predicate-part2.h: New file.
22502 * tests/unictype/test-scripts.c: New file.
22503 * tests/unictype/test-sy_c_ident.c: New file.
22504 * tests/unictype/test-sy_java_ident.c: New file.
22506 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
22508 * tests/unictype/test-categ_Cc.c: Likewise.
22509 * tests/unictype/test-categ_Cf.c: Likewise.
22510 * tests/unictype/test-categ_Cn.c: Likewise.
22511 * tests/unictype/test-categ_Co.c: Likewise.
22512 * tests/unictype/test-categ_Cs.c: Likewise.
22513 * tests/unictype/test-categ_L.c: Likewise.
22514 * tests/unictype/test-categ_Ll.c: Likewise.
22515 * tests/unictype/test-categ_Lm.c: Likewise.
22516 * tests/unictype/test-categ_Lo.c: Likewise.
22517 * tests/unictype/test-categ_Lt.c: Likewise.
22518 * tests/unictype/test-categ_Lu.c: Likewise.
22519 * tests/unictype/test-categ_M.c: Likewise.
22520 * tests/unictype/test-categ_Mc.c: Likewise.
22521 * tests/unictype/test-categ_Me.c: Likewise.
22522 * tests/unictype/test-categ_Mn.c: Likewise.
22523 * tests/unictype/test-categ_N.c: Likewise.
22524 * tests/unictype/test-categ_Nd.c: Likewise.
22525 * tests/unictype/test-categ_Nl.c: Likewise.
22526 * tests/unictype/test-categ_No.c: Likewise.
22527 * tests/unictype/test-categ_P.c: Likewise.
22528 * tests/unictype/test-categ_Pc.c: Likewise.
22529 * tests/unictype/test-categ_Pd.c: Likewise.
22530 * tests/unictype/test-categ_Pe.c: Likewise.
22531 * tests/unictype/test-categ_Pf.c: Likewise.
22532 * tests/unictype/test-categ_Pi.c: Likewise.
22533 * tests/unictype/test-categ_Po.c: Likewise.
22534 * tests/unictype/test-categ_Ps.c: Likewise.
22535 * tests/unictype/test-categ_S.c: Likewise.
22536 * tests/unictype/test-categ_Sc.c: Likewise.
22537 * tests/unictype/test-categ_Sk.c: Likewise.
22538 * tests/unictype/test-categ_Sm.c: Likewise.
22539 * tests/unictype/test-categ_So.c: Likewise.
22540 * tests/unictype/test-categ_Z.c: Likewise.
22541 * tests/unictype/test-categ_Zl.c: Likewise.
22542 * tests/unictype/test-categ_Zp.c: Likewise.
22543 * tests/unictype/test-categ_Zs.c: Likewise.
22544 * tests/unictype/test-ctype_alnum.c: Likewise.
22545 * tests/unictype/test-ctype_alpha.c: Likewise.
22546 * tests/unictype/test-ctype_blank.c: Likewise.
22547 * tests/unictype/test-ctype_cntrl.c: Likewise.
22548 * tests/unictype/test-ctype_digit.c: Likewise.
22549 * tests/unictype/test-ctype_graph.c: Likewise.
22550 * tests/unictype/test-ctype_lower.c: Likewise.
22551 * tests/unictype/test-ctype_print.c: Likewise.
22552 * tests/unictype/test-ctype_punct.c: Likewise.
22553 * tests/unictype/test-ctype_space.c: Likewise.
22554 * tests/unictype/test-ctype_upper.c: Likewise.
22555 * tests/unictype/test-ctype_xdigit.c: Likewise.
22556 * tests/unictype/test-decdigit.h: Likewise.
22557 * tests/unictype/test-digit.h: Likewise.
22558 * tests/unictype/test-numeric.h: Likewise.
22559 * tests/unictype/test-pr_alphabetic.c: Likewise.
22560 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
22561 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22562 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22563 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
22564 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22565 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
22566 * tests/unictype/test-pr_bidi_control.c: Likewise.
22567 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
22568 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
22569 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22570 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22571 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22572 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22573 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22574 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22575 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
22576 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
22577 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
22578 * tests/unictype/test-pr_combining.c: Likewise.
22579 * tests/unictype/test-pr_composite.c: Likewise.
22580 * tests/unictype/test-pr_currency_symbol.c: Likewise.
22581 * tests/unictype/test-pr_dash.c: Likewise.
22582 * tests/unictype/test-pr_decimal_digit.c: Likewise.
22583 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
22584 * tests/unictype/test-pr_deprecated.c: Likewise.
22585 * tests/unictype/test-pr_diacritic.c: Likewise.
22586 * tests/unictype/test-pr_extender.c: Likewise.
22587 * tests/unictype/test-pr_format_control.c: Likewise.
22588 * tests/unictype/test-pr_grapheme_base.c: Likewise.
22589 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22590 * tests/unictype/test-pr_grapheme_link.c: Likewise.
22591 * tests/unictype/test-pr_hex_digit.c: Likewise.
22592 * tests/unictype/test-pr_hyphen.c: Likewise.
22593 * tests/unictype/test-pr_id_continue.c: Likewise.
22594 * tests/unictype/test-pr_id_start.c: Likewise.
22595 * tests/unictype/test-pr_ideographic.c: Likewise.
22596 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
22597 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
22598 * tests/unictype/test-pr_ignorable_control.c: Likewise.
22599 * tests/unictype/test-pr_iso_control.c: Likewise.
22600 * tests/unictype/test-pr_join_control.c: Likewise.
22601 * tests/unictype/test-pr_left_of_pair.c: Likewise.
22602 * tests/unictype/test-pr_line_separator.c: Likewise.
22603 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22604 * tests/unictype/test-pr_lowercase.c: Likewise.
22605 * tests/unictype/test-pr_math.c: Likewise.
22606 * tests/unictype/test-pr_non_break.c: Likewise.
22607 * tests/unictype/test-pr_not_a_character.c: Likewise.
22608 * tests/unictype/test-pr_numeric.c: Likewise.
22609 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22610 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
22611 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
22612 * tests/unictype/test-pr_other_id_continue.c: Likewise.
22613 * tests/unictype/test-pr_other_id_start.c: Likewise.
22614 * tests/unictype/test-pr_other_lowercase.c: Likewise.
22615 * tests/unictype/test-pr_other_math.c: Likewise.
22616 * tests/unictype/test-pr_other_uppercase.c: Likewise.
22617 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
22618 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
22619 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
22620 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
22621 * tests/unictype/test-pr_private_use.c: Likewise.
22622 * tests/unictype/test-pr_punctuation.c: Likewise.
22623 * tests/unictype/test-pr_quotation_mark.c: Likewise.
22624 * tests/unictype/test-pr_radical.c: Likewise.
22625 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22626 * tests/unictype/test-pr_soft_dotted.c: Likewise.
22627 * tests/unictype/test-pr_space.c: Likewise.
22628 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22629 * tests/unictype/test-pr_titlecase.c: Likewise.
22630 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22631 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22632 * tests/unictype/test-pr_uppercase.c: Likewise.
22633 * tests/unictype/test-pr_variation_selector.c: Likewise.
22634 * tests/unictype/test-pr_white_space.c: Likewise.
22635 * tests/unictype/test-pr_xid_continue.c: Likewise.
22636 * tests/unictype/test-pr_xid_start.c: Likewise.
22637 * tests/unictype/test-pr_zero_width.c: Likewise.
22638 * tests/unictype/test-sy_c_whitespace.c: Likewise.
22639 * tests/unictype/test-sy_java_whitespace.c: Likewise.
22641 2007-11-12 Bruno Haible <bruno@clisp.org>
22643 Unicode character classification functions.
22644 * lib/unictype.h: New file.
22645 * modules/unictype/base: New file.
22646 * modules/unictype/category-L: New file.
22647 * modules/unictype/category-Lu: New file.
22648 * modules/unictype/category-Ll: New file.
22649 * modules/unictype/category-Lt: New file.
22650 * modules/unictype/category-Lm: New file.
22651 * modules/unictype/category-Lo: New file.
22652 * modules/unictype/category-M: New file.
22653 * modules/unictype/category-Mn: New file.
22654 * modules/unictype/category-Mc: New file.
22655 * modules/unictype/category-Me: New file.
22656 * modules/unictype/category-N: New file.
22657 * modules/unictype/category-Nd: New file.
22658 * modules/unictype/category-Nl: New file.
22659 * modules/unictype/category-No: New file.
22660 * modules/unictype/category-P: New file.
22661 * modules/unictype/category-Pc: New file.
22662 * modules/unictype/category-Pd: New file.
22663 * modules/unictype/category-Ps: New file.
22664 * modules/unictype/category-Pe: New file.
22665 * modules/unictype/category-Pi: New file.
22666 * modules/unictype/category-Pf: New file.
22667 * modules/unictype/category-Po: New file.
22668 * modules/unictype/category-S: New file.
22669 * modules/unictype/category-Sm: New file.
22670 * modules/unictype/category-Sc: New file.
22671 * modules/unictype/category-Sk: New file.
22672 * modules/unictype/category-So: New file.
22673 * modules/unictype/category-Z: New file.
22674 * modules/unictype/category-Zs: New file.
22675 * modules/unictype/category-Zl: New file.
22676 * modules/unictype/category-Zp: New file.
22677 * modules/unictype/category-C: New file.
22678 * modules/unictype/category-Cc: New file.
22679 * modules/unictype/category-Cf: New file.
22680 * modules/unictype/category-Cs: New file.
22681 * modules/unictype/category-Co: New file.
22682 * modules/unictype/category-Cn: New file.
22683 * modules/unictype/category-or: New file.
22684 * modules/unictype/category-of: New file.
22685 * modules/unictype/category-test: New file.
22686 * modules/unictype/category-test-withtable: New file.
22687 * modules/unictype/category-byname: New file.
22688 * modules/unictype/category-none: New file.
22689 * modules/unictype/category-and: New file.
22690 * modules/unictype/category-and-not: New file.
22691 * modules/unictype/category-name: New file.
22692 * modules/unictype/combining-class: New file.
22693 * modules/unictype/category-all: New file.
22694 * modules/unictype/bidicategory-all: New file.
22695 * modules/unictype/bidicategory-byname: New file.
22696 * modules/unictype/bidicategory-name: New file.
22697 * modules/unictype/bidicategory-of: New file.
22698 * modules/unictype/bidicategory-test: New file.
22699 * modules/unictype/decimal-digit: New file.
22700 * modules/unictype/digit: New file.
22701 * modules/unictype/numeric: New file.
22702 * modules/unictype/mirror: New file.
22703 * modules/unictype/property-white-space: New file.
22704 * modules/unictype/property-alphabetic: New file.
22705 * modules/unictype/property-other-alphabetic: New file.
22706 * modules/unictype/property-not-a-character: New file.
22707 * modules/unictype/property-default-ignorable-code-point: New file.
22708 * modules/unictype/property-other-default-ignorable-code-point: New
22710 * modules/unictype/property-deprecated: New file.
22711 * modules/unictype/property-logical-order-exception: New file.
22712 * modules/unictype/property-variation-selector: New file.
22713 * modules/unictype/property-private-use: New file.
22714 * modules/unictype/property-unassigned-code-value: New file.
22715 * modules/unictype/property-uppercase: New file.
22716 * modules/unictype/property-other-uppercase: New file.
22717 * modules/unictype/property-lowercase: New file.
22718 * modules/unictype/property-other-lowercase: New file.
22719 * modules/unictype/property-titlecase: New file.
22720 * modules/unictype/property-soft-dotted: New file.
22721 * modules/unictype/property-id-start: New file.
22722 * modules/unictype/property-other-id-start: New file.
22723 * modules/unictype/property-id-continue: New file.
22724 * modules/unictype/property-other-id-continue: New file.
22725 * modules/unictype/property-xid-start: New file.
22726 * modules/unictype/property-xid-continue: New file.
22727 * modules/unictype/property-pattern-white-space: New file.
22728 * modules/unictype/property-pattern-syntax: New file.
22729 * modules/unictype/property-join-control: New file.
22730 * modules/unictype/property-grapheme-base: New file.
22731 * modules/unictype/property-grapheme-extend: New file.
22732 * modules/unictype/property-other-grapheme-extend: New file.
22733 * modules/unictype/property-grapheme-link: New file.
22734 * modules/unictype/property-bidi-control: New file.
22735 * modules/unictype/property-bidi-left-to-right: New file.
22736 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
22737 * modules/unictype/property-bidi-arabic-right-to-left: New file.
22738 * modules/unictype/property-bidi-european-digit: New file.
22739 * modules/unictype/property-bidi-eur-num-separator: New file.
22740 * modules/unictype/property-bidi-eur-num-terminator: New file.
22741 * modules/unictype/property-bidi-arabic-digit: New file.
22742 * modules/unictype/property-bidi-common-separator: New file.
22743 * modules/unictype/property-bidi-block-separator: New file.
22744 * modules/unictype/property-bidi-segment-separator: New file.
22745 * modules/unictype/property-bidi-whitespace: New file.
22746 * modules/unictype/property-bidi-non-spacing-mark: New file.
22747 * modules/unictype/property-bidi-boundary-neutral: New file.
22748 * modules/unictype/property-bidi-pdf: New file.
22749 * modules/unictype/property-bidi-embedding-or-override: New file.
22750 * modules/unictype/property-bidi-other-neutral: New file.
22751 * modules/unictype/property-hex-digit: New file.
22752 * modules/unictype/property-ascii-hex-digit: New file.
22753 * modules/unictype/property-ideographic: New file.
22754 * modules/unictype/property-unified-ideograph: New file.
22755 * modules/unictype/property-radical: New file.
22756 * modules/unictype/property-ids-binary-operator: New file.
22757 * modules/unictype/property-ids-trinary-operator: New file.
22758 * modules/unictype/property-zero-width: New file.
22759 * modules/unictype/property-space: New file.
22760 * modules/unictype/property-non-break: New file.
22761 * modules/unictype/property-iso-control: New file.
22762 * modules/unictype/property-format-control: New file.
22763 * modules/unictype/property-dash: New file.
22764 * modules/unictype/property-hyphen: New file.
22765 * modules/unictype/property-punctuation: New file.
22766 * modules/unictype/property-line-separator: New file.
22767 * modules/unictype/property-paragraph-separator: New file.
22768 * modules/unictype/property-quotation-mark: New file.
22769 * modules/unictype/property-sentence-terminal: New file.
22770 * modules/unictype/property-terminal-punctuation: New file.
22771 * modules/unictype/property-currency-symbol: New file.
22772 * modules/unictype/property-math: New file.
22773 * modules/unictype/property-other-math: New file.
22774 * modules/unictype/property-paired-punctuation: New file.
22775 * modules/unictype/property-left-of-pair: New file.
22776 * modules/unictype/property-combining: New file.
22777 * modules/unictype/property-composite: New file.
22778 * modules/unictype/property-decimal-digit: New file.
22779 * modules/unictype/property-numeric: New file.
22780 * modules/unictype/property-diacritic: New file.
22781 * modules/unictype/property-extender: New file.
22782 * modules/unictype/property-ignorable-control: New file.
22783 * modules/unictype/property-test: New file.
22784 * modules/unictype/property-byname: New file.
22785 * modules/unictype/property-all: New file.
22786 * modules/unictype/scripts: New file.
22787 * modules/unictype/scripts-all: New file.
22788 * modules/unictype/block-of: New file.
22789 * modules/unictype/block-test: New file.
22790 * modules/unictype/block-list: New file.
22791 * modules/unictype/block-all: New file.
22792 * modules/unictype/syntax-c-whitespace: New file.
22793 * modules/unictype/syntax-java-whitespace: New file.
22794 * modules/unictype/syntax-c-ident: New file.
22795 * modules/unictype/syntax-java-ident: New file.
22796 * modules/unictype/ctype-alnum: New file.
22797 * modules/unictype/ctype-alpha: New file.
22798 * modules/unictype/ctype-cntrl: New file.
22799 * modules/unictype/ctype-digit: New file.
22800 * modules/unictype/ctype-graph: New file.
22801 * modules/unictype/ctype-lower: New file.
22802 * modules/unictype/ctype-print: New file.
22803 * modules/unictype/ctype-punct: New file.
22804 * modules/unictype/ctype-space: New file.
22805 * modules/unictype/ctype-upper: New file.
22806 * modules/unictype/ctype-xdigit: New file.
22807 * modules/unictype/ctype-blank: New file.
22808 * lib/unictype/bidi_byname.c: New file.
22809 * lib/unictype/bidi_name.c: New file.
22810 * lib/unictype/bidi_of.c: New file.
22811 * lib/unictype/bidi_test.c: New file.
22812 * lib/unictype/bitmap.h: New file.
22813 * lib/unictype/block_test.c: New file.
22814 * lib/unictype/blocks.c: New file.
22815 * lib/unictype/categ_C.c: New file.
22816 * lib/unictype/categ_Cc.c: New file.
22817 * lib/unictype/categ_Cf.c: New file.
22818 * lib/unictype/categ_Cn.c: New file.
22819 * lib/unictype/categ_Co.c: New file.
22820 * lib/unictype/categ_Cs.c: New file.
22821 * lib/unictype/categ_L.c: New file.
22822 * lib/unictype/categ_Ll.c: New file.
22823 * lib/unictype/categ_Lm.c: New file.
22824 * lib/unictype/categ_Lo.c: New file.
22825 * lib/unictype/categ_Lt.c: New file.
22826 * lib/unictype/categ_Lu.c: New file.
22827 * lib/unictype/categ_M.c: New file.
22828 * lib/unictype/categ_Mc.c: New file.
22829 * lib/unictype/categ_Me.c: New file.
22830 * lib/unictype/categ_Mn.c: New file.
22831 * lib/unictype/categ_N.c: New file.
22832 * lib/unictype/categ_Nd.c: New file.
22833 * lib/unictype/categ_Nl.c: New file.
22834 * lib/unictype/categ_No.c: New file.
22835 * lib/unictype/categ_P.c: New file.
22836 * lib/unictype/categ_Pc.c: New file.
22837 * lib/unictype/categ_Pd.c: New file.
22838 * lib/unictype/categ_Pe.c: New file.
22839 * lib/unictype/categ_Pf.c: New file.
22840 * lib/unictype/categ_Pi.c: New file.
22841 * lib/unictype/categ_Po.c: New file.
22842 * lib/unictype/categ_Ps.c: New file.
22843 * lib/unictype/categ_S.c: New file.
22844 * lib/unictype/categ_Sc.c: New file.
22845 * lib/unictype/categ_Sk.c: New file.
22846 * lib/unictype/categ_Sm.c: New file.
22847 * lib/unictype/categ_So.c: New file.
22848 * lib/unictype/categ_Z.c: New file.
22849 * lib/unictype/categ_Zl.c: New file.
22850 * lib/unictype/categ_Zp.c: New file.
22851 * lib/unictype/categ_Zs.c: New file.
22852 * lib/unictype/categ_and.c: New file.
22853 * lib/unictype/categ_and_not.c: New file.
22854 * lib/unictype/categ_byname.c: New file.
22855 * lib/unictype/categ_name.c: New file.
22856 * lib/unictype/categ_none.c: New file.
22857 * lib/unictype/categ_of.c: New file.
22858 * lib/unictype/categ_or.c: New file.
22859 * lib/unictype/categ_test.c: New file.
22860 * lib/unictype/combining.c: New file.
22861 * lib/unictype/ctype_alnum.c: New file.
22862 * lib/unictype/ctype_alpha.c: New file.
22863 * lib/unictype/ctype_blank.c: New file.
22864 * lib/unictype/ctype_cntrl.c: New file.
22865 * lib/unictype/ctype_digit.c: New file.
22866 * lib/unictype/ctype_graph.c: New file.
22867 * lib/unictype/ctype_lower.c: New file.
22868 * lib/unictype/ctype_print.c: New file.
22869 * lib/unictype/ctype_punct.c: New file.
22870 * lib/unictype/ctype_space.c: New file.
22871 * lib/unictype/ctype_upper.c: New file.
22872 * lib/unictype/ctype_xdigit.c: New file.
22873 * lib/unictype/decdigit.c: New file.
22874 * lib/unictype/digit.c: New file.
22875 * lib/unictype/identsyntaxmap.h: New file.
22876 * lib/unictype/mirror.c: New file.
22877 * lib/unictype/numeric.c: New file.
22878 * lib/unictype/pr_alphabetic.c: New file.
22879 * lib/unictype/pr_ascii_hex_digit.c: New file.
22880 * lib/unictype/pr_bidi_arabic_digit.c: New file.
22881 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
22882 * lib/unictype/pr_bidi_block_separator.c: New file.
22883 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
22884 * lib/unictype/pr_bidi_common_separator.c: New file.
22885 * lib/unictype/pr_bidi_control.c: New file.
22886 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
22887 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
22888 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
22889 * lib/unictype/pr_bidi_european_digit.c: New file.
22890 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
22891 * lib/unictype/pr_bidi_left_to_right.c: New file.
22892 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
22893 * lib/unictype/pr_bidi_other_neutral.c: New file.
22894 * lib/unictype/pr_bidi_pdf.c: New file.
22895 * lib/unictype/pr_bidi_segment_separator.c: New file.
22896 * lib/unictype/pr_bidi_whitespace.c: New file.
22897 * lib/unictype/pr_byname.c: New file.
22898 * lib/unictype/pr_byname.gperf: New file.
22899 * lib/unictype/pr_combining.c: New file.
22900 * lib/unictype/pr_composite.c: New file.
22901 * lib/unictype/pr_currency_symbol.c: New file.
22902 * lib/unictype/pr_dash.c: New file.
22903 * lib/unictype/pr_decimal_digit.c: New file.
22904 * lib/unictype/pr_default_ignorable_code_point.c: New file.
22905 * lib/unictype/pr_deprecated.c: New file.
22906 * lib/unictype/pr_diacritic.c: New file.
22907 * lib/unictype/pr_extender.c: New file.
22908 * lib/unictype/pr_format_control.c: New file.
22909 * lib/unictype/pr_grapheme_base.c: New file.
22910 * lib/unictype/pr_grapheme_extend.c: New file.
22911 * lib/unictype/pr_grapheme_link.c: New file.
22912 * lib/unictype/pr_hex_digit.c: New file.
22913 * lib/unictype/pr_hyphen.c: New file.
22914 * lib/unictype/pr_id_continue.c: New file.
22915 * lib/unictype/pr_id_start.c: New file.
22916 * lib/unictype/pr_ideographic.c: New file.
22917 * lib/unictype/pr_ids_binary_operator.c: New file.
22918 * lib/unictype/pr_ids_trinary_operator.c: New file.
22919 * lib/unictype/pr_ignorable_control.c: New file.
22920 * lib/unictype/pr_iso_control.c: New file.
22921 * lib/unictype/pr_join_control.c: New file.
22922 * lib/unictype/pr_left_of_pair.c: New file.
22923 * lib/unictype/pr_line_separator.c: New file.
22924 * lib/unictype/pr_logical_order_exception.c: New file.
22925 * lib/unictype/pr_lowercase.c: New file.
22926 * lib/unictype/pr_math.c: New file.
22927 * lib/unictype/pr_non_break.c: New file.
22928 * lib/unictype/pr_not_a_character.c: New file.
22929 * lib/unictype/pr_numeric.c: New file.
22930 * lib/unictype/pr_other_alphabetic.c: New file.
22931 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
22932 * lib/unictype/pr_other_grapheme_extend.c: New file.
22933 * lib/unictype/pr_other_id_continue.c: New file.
22934 * lib/unictype/pr_other_id_start.c: New file.
22935 * lib/unictype/pr_other_lowercase.c: New file.
22936 * lib/unictype/pr_other_math.c: New file.
22937 * lib/unictype/pr_other_uppercase.c: New file.
22938 * lib/unictype/pr_paired_punctuation.c: New file.
22939 * lib/unictype/pr_paragraph_separator.c: New file.
22940 * lib/unictype/pr_pattern_syntax.c: New file.
22941 * lib/unictype/pr_pattern_white_space.c: New file.
22942 * lib/unictype/pr_private_use.c: New file.
22943 * lib/unictype/pr_punctuation.c: New file.
22944 * lib/unictype/pr_quotation_mark.c: New file.
22945 * lib/unictype/pr_radical.c: New file.
22946 * lib/unictype/pr_sentence_terminal.c: New file.
22947 * lib/unictype/pr_soft_dotted.c: New file.
22948 * lib/unictype/pr_space.c: New file.
22949 * lib/unictype/pr_terminal_punctuation.c: New file.
22950 * lib/unictype/pr_test.c: New file.
22951 * lib/unictype/pr_titlecase.c: New file.
22952 * lib/unictype/pr_unassigned_code_value.c: New file.
22953 * lib/unictype/pr_unified_ideograph.c: New file.
22954 * lib/unictype/pr_uppercase.c: New file.
22955 * lib/unictype/pr_variation_selector.c: New file.
22956 * lib/unictype/pr_white_space.c: New file.
22957 * lib/unictype/pr_xid_continue.c: New file.
22958 * lib/unictype/pr_xid_start.c: New file.
22959 * lib/unictype/pr_zero_width.c: New file.
22960 * lib/unictype/scripts.c: New file.
22961 * lib/unictype/sy_c_ident.c: New file.
22962 * lib/unictype/sy_c_whitespace.c: New file.
22963 * lib/unictype/sy_java_ident.c: New file.
22964 * lib/unictype/sy_java_whitespace.c: New file.
22966 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
22968 * lib/unictype/blocks.h: Likewise.
22969 * lib/unictype/categ_C.h: Likewise.
22970 * lib/unictype/categ_Cc.h: Likewise.
22971 * lib/unictype/categ_Cf.h: Likewise.
22972 * lib/unictype/categ_Cn.h: Likewise.
22973 * lib/unictype/categ_Co.h: Likewise.
22974 * lib/unictype/categ_Cs.h: Likewise.
22975 * lib/unictype/categ_L.h: Likewise.
22976 * lib/unictype/categ_Ll.h: Likewise.
22977 * lib/unictype/categ_Lm.h: Likewise.
22978 * lib/unictype/categ_Lo.h: Likewise.
22979 * lib/unictype/categ_Lt.h: Likewise.
22980 * lib/unictype/categ_Lu.h: Likewise.
22981 * lib/unictype/categ_M.h: Likewise.
22982 * lib/unictype/categ_Mc.h: Likewise.
22983 * lib/unictype/categ_Me.h: Likewise.
22984 * lib/unictype/categ_Mn.h: Likewise.
22985 * lib/unictype/categ_N.h: Likewise.
22986 * lib/unictype/categ_Nd.h: Likewise.
22987 * lib/unictype/categ_Nl.h: Likewise.
22988 * lib/unictype/categ_No.h: Likewise.
22989 * lib/unictype/categ_P.h: Likewise.
22990 * lib/unictype/categ_Pc.h: Likewise.
22991 * lib/unictype/categ_Pd.h: Likewise.
22992 * lib/unictype/categ_Pe.h: Likewise.
22993 * lib/unictype/categ_Pf.h: Likewise.
22994 * lib/unictype/categ_Pi.h: Likewise.
22995 * lib/unictype/categ_Po.h: Likewise.
22996 * lib/unictype/categ_Ps.h: Likewise.
22997 * lib/unictype/categ_S.h: Likewise.
22998 * lib/unictype/categ_Sc.h: Likewise.
22999 * lib/unictype/categ_Sk.h: Likewise.
23000 * lib/unictype/categ_Sm.h: Likewise.
23001 * lib/unictype/categ_So.h: Likewise.
23002 * lib/unictype/categ_Z.h: Likewise.
23003 * lib/unictype/categ_Zl.h: Likewise.
23004 * lib/unictype/categ_Zp.h: Likewise.
23005 * lib/unictype/categ_Zs.h: Likewise.
23006 * lib/unictype/categ_of.h: Likewise.
23007 * lib/unictype/combining.h: Likewise.
23008 * lib/unictype/ctype_alnum.h: Likewise.
23009 * lib/unictype/ctype_alpha.h: Likewise.
23010 * lib/unictype/ctype_blank.h: Likewise.
23011 * lib/unictype/ctype_cntrl.h: Likewise.
23012 * lib/unictype/ctype_digit.h: Likewise.
23013 * lib/unictype/ctype_graph.h: Likewise.
23014 * lib/unictype/ctype_lower.h: Likewise.
23015 * lib/unictype/ctype_print.h: Likewise.
23016 * lib/unictype/ctype_punct.h: Likewise.
23017 * lib/unictype/ctype_space.h: Likewise.
23018 * lib/unictype/ctype_upper.h: Likewise.
23019 * lib/unictype/ctype_xdigit.h: Likewise.
23020 * lib/unictype/decdigit.h: Likewise.
23021 * lib/unictype/digit.h: Likewise.
23022 * lib/unictype/mirror.h: Likewise.
23023 * lib/unictype/numeric.h: Likewise.
23024 * lib/unictype/pr_alphabetic.h: Likewise.
23025 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23026 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23027 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23028 * lib/unictype/pr_bidi_block_separator.h: Likewise.
23029 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23030 * lib/unictype/pr_bidi_common_separator.h: Likewise.
23031 * lib/unictype/pr_bidi_control.h: Likewise.
23032 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23033 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23034 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23035 * lib/unictype/pr_bidi_european_digit.h: Likewise.
23036 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23037 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23038 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23039 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23040 * lib/unictype/pr_bidi_pdf.h: Likewise.
23041 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23042 * lib/unictype/pr_bidi_whitespace.h: Likewise.
23043 * lib/unictype/pr_combining.h: Likewise.
23044 * lib/unictype/pr_composite.h: Likewise.
23045 * lib/unictype/pr_currency_symbol.h: Likewise.
23046 * lib/unictype/pr_dash.h: Likewise.
23047 * lib/unictype/pr_decimal_digit.h: Likewise.
23048 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23049 * lib/unictype/pr_deprecated.h: Likewise.
23050 * lib/unictype/pr_diacritic.h: Likewise.
23051 * lib/unictype/pr_extender.h: Likewise.
23052 * lib/unictype/pr_format_control.h: Likewise.
23053 * lib/unictype/pr_grapheme_base.h: Likewise.
23054 * lib/unictype/pr_grapheme_extend.h: Likewise.
23055 * lib/unictype/pr_grapheme_link.h: Likewise.
23056 * lib/unictype/pr_hex_digit.h: Likewise.
23057 * lib/unictype/pr_hyphen.h: Likewise.
23058 * lib/unictype/pr_id_continue.h: Likewise.
23059 * lib/unictype/pr_id_start.h: Likewise.
23060 * lib/unictype/pr_ideographic.h: Likewise.
23061 * lib/unictype/pr_ids_binary_operator.h: Likewise.
23062 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23063 * lib/unictype/pr_ignorable_control.h: Likewise.
23064 * lib/unictype/pr_iso_control.h: Likewise.
23065 * lib/unictype/pr_join_control.h: Likewise.
23066 * lib/unictype/pr_left_of_pair.h: Likewise.
23067 * lib/unictype/pr_line_separator.h: Likewise.
23068 * lib/unictype/pr_logical_order_exception.h: Likewise.
23069 * lib/unictype/pr_lowercase.h: Likewise.
23070 * lib/unictype/pr_math.h: Likewise.
23071 * lib/unictype/pr_non_break.h: Likewise.
23072 * lib/unictype/pr_not_a_character.h: Likewise.
23073 * lib/unictype/pr_numeric.h: Likewise.
23074 * lib/unictype/pr_other_alphabetic.h: Likewise.
23075 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23076 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23077 * lib/unictype/pr_other_id_continue.h: Likewise.
23078 * lib/unictype/pr_other_id_start.h: Likewise.
23079 * lib/unictype/pr_other_lowercase.h: Likewise.
23080 * lib/unictype/pr_other_math.h: Likewise.
23081 * lib/unictype/pr_other_uppercase.h: Likewise.
23082 * lib/unictype/pr_paired_punctuation.h: Likewise.
23083 * lib/unictype/pr_paragraph_separator.h: Likewise.
23084 * lib/unictype/pr_pattern_syntax.h: Likewise.
23085 * lib/unictype/pr_pattern_white_space.h: Likewise.
23086 * lib/unictype/pr_private_use.h: Likewise.
23087 * lib/unictype/pr_punctuation.h: Likewise.
23088 * lib/unictype/pr_quotation_mark.h: Likewise.
23089 * lib/unictype/pr_radical.h: Likewise.
23090 * lib/unictype/pr_sentence_terminal.h: Likewise.
23091 * lib/unictype/pr_soft_dotted.h: Likewise.
23092 * lib/unictype/pr_space.h: Likewise.
23093 * lib/unictype/pr_terminal_punctuation.h: Likewise.
23094 * lib/unictype/pr_titlecase.h: Likewise.
23095 * lib/unictype/pr_unassigned_code_value.h: Likewise.
23096 * lib/unictype/pr_unified_ideograph.h: Likewise.
23097 * lib/unictype/pr_uppercase.h: Likewise.
23098 * lib/unictype/pr_variation_selector.h: Likewise.
23099 * lib/unictype/pr_white_space.h: Likewise.
23100 * lib/unictype/pr_xid_continue.h: Likewise.
23101 * lib/unictype/pr_xid_start.h: Likewise.
23102 * lib/unictype/pr_zero_width.h: Likewise.
23103 * lib/unictype/scripts.h: Likewise.
23104 * lib/unictype/scripts_byname.gperf: Likewise.
23105 * lib/unictype/sy_c_ident.h: Likewise.
23106 * lib/unictype/sy_c_whitespace.h: Likewise.
23107 * lib/unictype/sy_java_ident.h: Likewise.
23108 * lib/unictype/sy_java_whitespace.h: Likewise.
23110 * lib/unictype/Makefile: New file.
23111 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
23113 * lib/unictype/3level.h: New file, copied from glibc.
23114 * lib/unictype/3levelbit.h: New file.
23116 2007-11-11 Bruno Haible <bruno@clisp.org>
23118 * modules/gperf: New file.
23119 * modules/iconv_open (Depends-on): Add it.
23120 (Makefile.am): Remove the GPERF definition.
23122 2007-11-11 Bruno Haible <bruno@clisp.org>
23124 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
23125 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
23127 2007-11-11 Bruno Haible <bruno@clisp.org>
23129 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
23130 (usage): Remove function.
23132 2007-11-11 Bruno Haible <bruno@clisp.org>
23134 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
23135 gl_FUNC_CEILF_LIBS.
23136 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
23138 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
23139 gl_FUNC_CEILL_LIBS.
23140 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
23141 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
23142 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
23144 2007-11-11 Bruno Haible <bruno@clisp.org>
23146 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
23147 roundf were declared but do not exist on functions.
23148 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
23149 roundl were declared but do not exist on functions.
23150 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
23151 HAVE_FLOORL_AND_CEILL, respectively.
23152 Needed for Sun C on Solaris 10.
23154 2007-11-11 Bruno Haible <bruno@clisp.org>
23156 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
23157 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
23158 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
23159 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
23160 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
23161 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
23162 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
23164 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
23165 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
23166 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
23167 of HAVE_DECL_ROUND*.
23168 * modules/math (Makefile.am): Update.
23170 2007-11-10 Bruno Haible <bruno@clisp.org>
23172 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
23173 ptrdiff_t as m4/intl.m4.
23175 2007-11-10 Jim Meyering <meyering@redhat.com>
23177 Avoid link failure for the argmatch test.
23178 * tests/test-argmatch.c (usage): Define function to avoid a link
23179 failure: argmatch_die requires a usage function.
23181 2007-11-09 Bruno Haible <bruno@clisp.org>
23183 * doc/functions/snprintf.texi: Mention BeOS deficiency.
23184 * doc/functions/vsnprintf.texi: Likewise.
23185 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
23186 with a size argument < 2.
23188 2007-11-09 Bruno Haible <bruno@clisp.org>
23190 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
23191 buffer. Fixes an inefficiency introduced on 2007-11-03.
23193 2007-11-09 Bruno Haible <bruno@clisp.org>
23195 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
23196 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
23198 2007-11-08 Jim Meyering <meyering@redhat.com>
23200 Change cache variable name prefix "jm_" to "gl_" everywhere.
23201 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
23202 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
23203 * m4/uptime.m4: s/gl_/jm_/
23205 2007-11-07 Bruno Haible <bruno@clisp.org>
23207 Update to GNU gettext 0.17.
23208 * m4/intl.m4: Update to GNU gettext 0.17.
23209 * m4/po.m4: Likewise.
23210 * modules/gettext (Files): Remove m4/ulonglong.m4.
23211 (configure.ac): Require gettext infrastructure from version 0.17.
23213 2007-11-06 Bruno Haible <bruno@clisp.org>
23215 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
23216 symbolic values are not defined in a public header.
23217 * lib/freadable.c (freadable) [QNX]: Likewise.
23218 * lib/freadahead.c (freadahead) [QNX]: Likewise.
23219 * lib/freading.c (freading) [QNX]: Likewise.
23220 * lib/fseterr.c (fseterr) [QNX]: Likewise.
23221 * lib/fwritable.c (fwritable) [QNX]: Likewise.
23222 * lib/fwriting.c (fwriting) [QNX]: Likewise.
23223 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
23224 Reported by Alain Magloire.
23226 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
23228 2007-11-05 Bruno Haible <bruno@clisp.org>
23230 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
23231 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
23232 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
23233 Reported by Eric Blake.
23235 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23236 Bruno Haible <bruno@clisp.org>
23238 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
23239 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
23240 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
23241 (malloc): Undefine also before including <stdlib.h>.
23242 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
23243 Needed on OSF/1 4.0.
23245 2007-11-05 Jim Meyering <meyering@redhat.com>
23247 git-version-gen: sync from coreutils.
23248 * build-aux/git-version-gen: Add comments.
23249 Change the first '-' to '.' in the snapshot version string,
23250 e.g., 6.9-377-08144 -> 6.9.377-08144
23251 Remove first parameter.
23252 Don't declare a version "-dirty" merely because a time
23255 2007-11-04 Bruno Haible <bruno@clisp.org>
23257 * lib/lock.h: Protect all macro definitions containing an 'if'
23258 statement through a "do { ... } while (0)".
23259 * lib/tls.h: Likewise.
23261 2007-11-04 Bruno Haible <bruno@clisp.org>
23263 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
23265 2007-11-04 Bruno Haible <bruno@clisp.org>
23267 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
23268 * modules/fprintf-posix (Depends-on): Add nocrash.
23269 * modules/snprintf-posix (Depends-on): Likewise.
23270 * modules/sprintf-posix (Depends-on): Likewise.
23271 * modules/vasnprintf-posix (Depends-on): Likewise.
23272 * modules/vasprintf-posix (Depends-on): Likewise.
23273 * modules/vfprintf-posix (Depends-on): Likewise.
23274 * modules/vsnprintf-posix (Depends-on): Likewise.
23275 * modules/vsprintf-posix (Depends-on): Likewise.
23276 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23277 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23278 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23279 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23280 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23281 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23282 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23284 2007-11-04 Bruno Haible <bruno@clisp.org>
23286 * modules/nocrash: New file.
23287 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
23288 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
23290 2007-11-04 Bruno Haible <bruno@clisp.org>
23292 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
23293 precision handling.
23294 * tests/test-vasprintf-posix.c (test_function): Likewise.
23295 * tests/test-snprintf-posix.h (test_function): Likewise.
23296 * tests/test-sprintf-posix.h (test_function): Likewise.
23298 Fix *printf behaviour for large precisions on mingw and BeOS.
23299 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
23300 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
23301 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
23302 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23303 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23304 gl_PRINTF_PRECISION and test its result. Invoke
23305 gl_PREREQ_VASNPRINTF_PRECISION.
23306 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23307 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23308 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23309 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23310 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23311 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23312 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23313 * doc/functions/fprintf.texi: Update.
23314 * doc/functions/printf.texi: Update.
23315 * doc/functions/snprintf.texi: Update.
23316 * doc/functions/sprintf.texi: Update.
23317 * doc/functions/vfprintf.texi: Update.
23318 * doc/functions/vprintf.texi: Update.
23319 * doc/functions/vsnprintf.texi: Update.
23320 * doc/functions/vsprintf.texi: Update.
23322 2007-11-04 Bruno Haible <bruno@clisp.org>
23324 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
23326 2007-11-04 Bruno Haible <bruno@clisp.org>
23328 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
23329 Reported by Sylvain Beucler <beuc@gnu.org>.
23331 2007-11-03 Bruno Haible <bruno@clisp.org>
23333 * tests/test-fprintf-posix2.sh: New file.
23334 * tests/test-fprintf-posix2.c: New file.
23335 * modules/fprintf-posix-tests (Files): Add them.
23336 (TESTS): Add test-fprintf-posix2.sh.
23337 (configure.ac): Check for getrlimit and setrlimit.
23338 (check_PROGRAMS): Add test-fprintf-posix2.
23340 * tests/test-printf-posix2.sh: New file.
23341 * tests/test-printf-posix2.c: New file.
23342 * modules/printf-posix-tests (Files): Add them.
23343 (TESTS): Add test-printf-posix2.sh.
23344 (configure.ac): Check for getrlimit and setrlimit.
23345 (check_PROGRAMS): Add test-printf-posix2.
23347 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
23348 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
23349 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
23350 (decode_double): New function, copied from decode_long_double.
23351 (scale10_round_decimal_decoded): New function, extracted from
23352 scale10_round_decimal_long_double.
23353 (scale10_round_decimal_long_double): Use it.
23354 (scale10_round_decimal_double): New function.
23355 (floorlog10): New function.
23356 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
23357 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
23358 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23359 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23360 gl_PRINTF_ENOMEM and test its result. Invoke
23361 gl_PREREQ_VASNPRINTF_ENOMEM.
23362 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23363 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23364 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23365 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23366 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23367 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23368 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23369 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
23370 * modules/snprintf-posix (Depends-on): Likewise.
23371 * modules/sprintf-posix (Depends-on): Likewise.
23372 * modules/vasnprintf-posix (Depends-on): Likewise.
23373 * modules/vasprintf-posix (Depends-on): Likewise.
23374 * modules/vfprintf-posix (Depends-on): Likewise.
23375 * modules/vsnprintf-posix (Depends-on): Likewise.
23376 * modules/vsprintf-posix (Depends-on): Likewise.
23377 * doc/functions/fprintf.texi: Update.
23378 * doc/functions/printf.texi: Update.
23379 * doc/functions/snprintf.texi: Update.
23380 * doc/functions/sprintf.texi: Update.
23381 * doc/functions/vfprintf.texi: Update.
23382 * doc/functions/vprintf.texi: Update.
23383 * doc/functions/vsnprintf.texi: Update.
23384 * doc/functions/vsprintf.texi: Update.
23386 2007-11-03 Bruno Haible <bruno@clisp.org>
23388 * modules/frexp-nolibm-tests: New file.
23390 * modules/frexp-nolibm: New file.
23391 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
23393 2007-11-03 Bruno Haible <bruno@clisp.org>
23395 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
23396 value is C99 compliant.
23397 Needed for OSF/1 5.1.
23399 2007-11-03 Bruno Haible <bruno@clisp.org>
23401 Fix out-of-memory handling of vasnprintf.
23402 * lib/printf-parse.c: Include <errno.h>.
23403 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
23404 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
23407 2007-11-02 Eric Blake <ebb9@byu.net>
23409 Fix tests on cygwin.
23410 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
23412 2007-11-01 Bruno Haible <bruno@clisp.org>
23414 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
23416 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
23417 needed for POSIX compatibility.
23419 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
23421 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
23422 for compatibility with GNU.
23424 2007-11-01 Bruno Haible <bruno@clisp.org>
23426 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
23427 (putenv): Renamed from rpl_putenv. Change argument type from
23428 'const char *' to 'char *'.
23429 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
23430 of defining putenv in config.h, just set REPLACE_PUTENV.
23431 * modules/putenv (Depends-on): Add stdlib.
23432 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23433 (Include): Use <stdlib.h>.
23434 * lib/stdlib.in.h (putenv): New declaration.
23435 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
23437 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
23439 Needed for MacOS X 10.5.0.
23440 Reported by Peter O'Gorman <peter@pogma.com>.
23442 2007-11-01 Jim Meyering <meyering@redhat.com>
23444 Treat an empty date string exactly like "0".
23445 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
23446 if the remaining date string (to be parsed) is empty, use "0".
23447 Reported by Mischa Molhoek and discussed in this thread:
23448 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
23450 2007-10-31 Bruno Haible <bruno@clisp.org>
23452 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
23453 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
23454 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
23455 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
23456 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
23457 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
23459 2007-10-31 Bruno Haible <bruno@clisp.org>
23461 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
23462 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
23463 (AC_TYPE_LONG_LONG_INT): Use it.
23464 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
23466 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
23468 * modules/stdint (Files): Remove m4/ulonglong.m4.
23469 * modules/strtoull (Files): Use m4/longlong.m4 instead of
23471 * modules/strtoumax (Files): Likewise.
23473 2007-10-30 Bruno Haible <bruno@clisp.org>
23475 * modules/xvasprintf-posix: New file.
23476 Suggested by Eric Blake.
23478 2007-10-30 Bruno Haible <bruno@clisp.org>
23480 * modules/xprintf-posix-tests: New file.
23481 * tests/test-xprintf-posix.sh: New file.
23482 * tests/test-xprintf-posix.c: New file.
23483 * tests/test-xfprintf-posix.c: New file.
23485 * modules/xprintf-posix: New file.
23487 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23489 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
23490 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
23491 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
23493 2007-10-29 Bruno Haible <bruno@clisp.org>
23495 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
23496 contain the special marker '_cv_'.
23497 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23498 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23499 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23500 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23501 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23502 Reported by Ralf Wildenhues.
23504 2007-10-29 Bruno Haible <bruno@clisp.org>
23506 * gnulib-tool (func_import): When --lgpl is not specified, set
23507 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
23509 Reported by Simon Josefsson.
23511 2007-10-28 Bruno Haible <bruno@clisp.org>
23513 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
23514 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
23515 HAVE_DECL_ISFINITE.
23516 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23517 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
23518 HAVE_DECL_ISFINITE.
23520 2007-10-28 Bruno Haible <bruno@clisp.org>
23522 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
23523 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
23525 2007-10-28 Bruno Haible <bruno@clisp.org>
23527 Fix link errors with Sun C 5.0 on Solaris 10.
23528 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
23529 function is declared but not present in the compiler's libm.
23530 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23531 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23532 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
23533 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
23534 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
23535 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
23536 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
23537 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23538 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
23539 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
23540 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
23543 2007-10-28 Bruno Haible <bruno@clisp.org>
23545 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
23546 gl_FUNC_FLOORL. Cache the result.
23547 (gl_FUNC_FLOORL): Use it.
23548 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
23549 gl_FUNC_CEILL. Cache the result.
23550 (gl_FUNC_CEILL): Use it.
23552 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
23553 gl_FUNC_FLOOR. Cache the result.
23554 (gl_FUNC_FLOOR): Use it.
23555 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
23556 gl_FUNC_CEIL. Cache the result.
23557 (gl_FUNC_CEIL): Use it.
23559 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
23560 gl_FUNC_FLOORF. Cache the result.
23561 (gl_FUNC_FLOORF): Use it.
23562 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
23563 gl_FUNC_CEILF. Cache the result.
23564 (gl_FUNC_CEILF): Use it.
23566 2007-10-28 Bruno Haible <bruno@clisp.org>
23568 * gnulib-tool: Allow specifying the LGPL version number through
23569 --lgpl=2 or --lgpl=3.
23570 (func_usage): Document --lgpl with argument.
23571 Handle --lgpl=... arguments.
23572 (func_import): Recognize also gl_LGPL calls with an argument. When
23573 --lgpl=2 is used and the module's license is just LGPL, report an
23574 error. Set sed_transform_lib_file according to the lgpl variable. In
23575 the generated files, use --lgpl or gl_LGPL invocations with argument,
23577 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
23579 * doc/gnulib-tool.texi (Modified imports): Update explanation of
23582 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23583 Bruno Haible <bruno@clisp.org>
23585 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
23586 (u16_uctomb_aux): Likewise.
23587 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
23589 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
23591 2007-10-28 Bruno Haible <bruno@clisp.org>
23593 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
23594 Invoke AM_GETTEXT_OPTION if it exists.
23595 * modules/vasprintf: Likewise.
23596 * modules/verror: Likewise.
23597 * modules/xprintf: Likewise.
23598 * modules/xvasprintf: Likewise.
23600 2007-10-27 Ben Pfaff <blp@gnu.org>
23602 * lib/math.in.h: Define isfinite macro and prototypes for
23603 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
23605 * m4/math_h.m4: New substitutions for isfinite module.
23606 * lib/isfinite.c: New file.
23607 * m4/isfinite.m4: New file.
23608 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
23609 * modules/isfinite: New file.
23610 * modules/isfinite-tests: New file.
23611 * tests/tests-isfinite.c: New file.
23612 * doc/functions/isfinite.texi: Mention isfinite module.
23613 * MODULES.html.sh: Mention new module.
23615 2007-10-27 Ben Pfaff <blp@gnu.org>
23617 Ralf Wildenhues reported that Tru64 4.0D declares the round
23618 functions but does not have definitions.
23619 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
23620 cannot be found in any library, set the output variable to
23621 "missing" instead of "".
23622 * m4/round.m4: Also use our substitute if we cannot find round in
23623 any library, even if it is declared.
23624 * m4/roundf.m4: Likewise for roundf.
23625 * m4/roundl.m4: Likewise for roundl.
23626 * lib/math.in.h: Undefine roundf, round, roundl before defining
23627 their replacements, to allow for hypothetical systems where these
23628 may be defined as macros but not available in libraries.
23630 2007-10-27 Bruno Haible <bruno@clisp.org>
23632 * doc/gnulib.texi: Invoke @firstparagraphindent.
23633 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
23635 (Source changes): New section.
23637 2007-10-26 Bruno Haible <bruno@clisp.org>
23639 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
23640 borrowed from autoconf.
23642 2007-10-26 Bruno Haible <bruno@clisp.org>
23644 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
23645 strerror returned the empty string. Needed on HP-UX 11.00.
23647 2007-10-24 Micah Cowan <micah@cowan.name>
23649 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
23650 * build-aux/bootstrap: Remove support for now-unnecessary option,
23651 --cvs-user, and envvars CVS_USER, CVS_RSH.
23653 2007-10-24 Jim Meyering <meyering@redhat.com>
23655 Avoid diagnostics from sha1sum when there is no cached checksum.
23656 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
23657 if the po.s1 file hasn't been created yet.
23659 * build-aux/bootstrap: Sync from coreutils:
23660 2007-10-24 Jim Meyering <meyering@redhat.com>
23661 Get gnulib from the git repository, not from an obsolete cvs one.
23662 * build-aux/bootstrap: Suggestion from Micah Cowan.
23663 2007-10-04 Jim Meyering <jim@meyering.net>
23664 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
23665 (update_po_files): Work also when there are no .po files in po/.
23667 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
23669 * README: Append ".git" to git and cg examples.
23670 Problem reported by Benoit Sigoure.
23672 2007-10-23 Micah Cowan <micah@cowan.name>
23674 * users.txt: Add wget.
23676 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23678 Fix linking of some unistdio tests on FreeBSD.
23679 * modules/unistdio/u16-vsnprintf-tests
23680 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
23681 * modules/unistdio/u16-vsprintf-tests
23682 (test_u16_vsnprintf1_LDADD): Likewise.
23683 * modules/unistdio/u32-vsnprintf-tests
23684 (test_u32_vsnprintf1_LDADD): Likewise.
23685 * modules/unistdio/u32-vsprintf-tests
23686 (test_u32_vsprintf1_LDADD): Likewise.
23687 * modules/unistdio/u8-vsnprintf-tests
23688 (test_u8_vsnprintf1_LDADD): Likewise.
23689 * modules/unistdio/u8-vsprintf-tests
23690 (test_u8_vsprintf1_LDADD): Likewise.
23691 * modules/unistdio/ulc-vsnprintf-tests
23692 (test_ulc_vsnprintf1_LDADD): Likewise.
23693 * modules/unistdio/ulc-vsprintf-tests
23694 (test_ulc_vsprintf1_LDADD): Likewise.
23696 Fix linking of some uniconv tests on FreeBSD.
23697 * modules/uniconv/u16-conv-from-enc-tests
23698 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
23699 * modules/uniconv/u16-conv-to-enc-tests
23700 (test_u16_conv_to_enc_LDADD): Likewise.
23701 * modules/uniconv/u16-strconv-from-enc-tests
23702 (test_u16_strconv_from_enc_LDADD): Likewise.
23703 * modules/uniconv/u16-strconv-to-enc-tests
23704 (test_u16_strconv_to_enc_LDADD): Likewise.
23705 * modules/uniconv/u32-conv-from-enc-tests
23706 (test_u32_conv_from_enc_LDADD): Likewise.
23707 * modules/uniconv/u32-conv-to-enc-tests
23708 (test_u32_conv_to_enc_LDADD): Likewise.
23709 * modules/uniconv/u32-strconv-from-enc-tests
23710 (test_u32_strconv_from_enc_LDADD): Likewise.
23711 * modules/uniconv/u32-strconv-to-enc-tests
23712 (test_u32_strconv_to_enc_LDADD): Likewise.
23713 * modules/uniconv/u8-conv-from-enc-tests
23714 (test_u8_conv_from_enc_LDADD): Likewise.
23715 * modules/uniconv/u8-conv-to-enc-tests
23716 (test_u8_conv_to_enc_LDADD): Likewise.
23717 * modules/uniconv/u8-strconv-from-enc-tests
23718 (test_u8_strconv_from_enc_LDADD): Likewise.
23719 * modules/uniconv/u8-strconv-to-enc-tests
23720 (test_u8_strconv_to_enc_LDADD): Likewise.
23722 2007-10-22 Bruno Haible <bruno@clisp.org>
23724 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
23727 2007-10-22 Eric Blake <ebb9@byu.net>
23729 Tweak x*printf documentation.
23730 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
23731 variable name and comments.
23732 Suggested by Bruno Haible.
23734 2007-10-22 Bruno Haible <bruno@clisp.org>
23736 * lib/acl.c (copy_acl): Fix file name in comment.
23738 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
23740 Fix Tru64 problem with stdbool.h.
23741 * lib/stdbool.in.h (false, true):
23742 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
23743 Don't declare as an enum in this situation; it runs afoul of Tru64.
23744 Problem reported by Steven M. Schweda in
23745 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
23747 2007-10-22 Eric Blake <ebb9@byu.net>
23749 Also wrap vf?printf.
23750 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
23751 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
23752 (xvprintf, xvfprintf): New functions.
23754 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23756 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
23757 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
23759 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
23760 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
23762 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
23764 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
23767 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23770 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
23771 Undef `sys' after including sys/table.h, for Tru64 4.0D.
23773 * tests/test-i-ring.c: Work for C89.
23775 2007-10-22 Bruno Haible <bruno@clisp.org>
23777 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
23778 -1u, in preprocessor expression, so that we don't test for the bug
23779 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
23780 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
23782 2007-10-22 Eric Blake <ebb9@byu.net>
23784 * tests/test-yesno.sh: Silence stderr during test.
23786 2007-10-22 Simon Josefsson <simon@josefsson.org>
23788 * modules/crypto/gc-camellia: New file.
23790 * m4/gc-camellia.m4: New file.
23792 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
23794 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
23796 2007-10-22 Simon Josefsson <simon@josefsson.org>
23798 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
23799 --help to stdout. Reported by sms@antinode.org (Steven
23802 2007-10-22 Simon Josefsson <simon@josefsson.org>
23804 * users.txt: Fix link to libksba.
23806 2007-10-21 Ben Pfaff <blp@gnu.org>
23808 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
23809 round.c roundf implementation that depends on floorf and ceilf to
23810 be tested unconditionally.
23812 2007-10-21 Ben Pfaff <blp@gnu.org>
23814 * m4/check-libm-func.m4: Removed.
23815 * m4/check-math-lib.m4: New file.
23816 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
23817 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
23818 definition and lack of AC_LIBOBJ([roundf]).
23819 * m4/roundl.m4: Ditto, and similarly for roundl.
23820 * modules/round: Reference new m4 file.
23821 * modules/roundf: Ditto.
23822 * modules/roundl: Ditto.
23823 * tests/test-round2.c (main): Use ROUND instead of round.
23824 Bug report from Bruno Haible.
23826 2007-10-21 Bruno Haible <bruno@clisp.org>
23828 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
23831 2007-10-21 Bruno Haible <bruno@clisp.org>
23833 * tests/test-wcwidth.c (main): Allow negative result for some control
23836 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
23837 Needed on OSF/1 5.1.
23839 2007-10-21 Bruno Haible <bruno@clisp.org>
23841 * tests/test-floorf1.c: Include isnanf.h.
23842 (main): Use isnanf() instead of isnan().
23843 * tests/test-ceilf1.c: Include isnanf.h.
23844 (main): Use isnanf() instead of isnan().
23845 * tests/test-truncf1.c: Include isnanf.h.
23846 (main): Use isnanf() instead of isnan().
23847 * tests/test-roundf1.c: Include isnanf.h.
23848 (main): Use isnanf() instead of isnan().
23850 2007-10-21 Eric Blake <ebb9@byu.net>
23852 * users.txt: Update URL for m4.
23854 2007-10-21 Bruno Haible <bruno@clisp.org>
23856 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
23858 2007-10-21 Bruno Haible <bruno@clisp.org>
23860 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
23861 Git's management files if the CVS files are not present.
23863 2007-10-20 Bruno Haible <bruno@clisp.org>
23865 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
23868 2007-10-20 Ben Pfaff <blp@gnu.org>
23870 * lib/math.in.h: Declare round, roundf, roundl if we are providing
23872 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
23873 * lib/round.c: New file.
23874 * lib/roundf.c: New file.
23875 * lib/roundl.c: New file.
23876 * m4/round.m4: New file.
23877 * m4/roundf.m4: New file.
23878 * m4/roundl.m4: New file.
23879 * m4/check-libm-func-m4: New file.
23880 * modules/math: Replace round, roundf, roundl related @VARS@ in
23882 * modules/round: New file.
23883 * modules/round-tests: New file.
23884 * modules/roundf: New file.
23885 * modules/roundf-tests: New file.
23886 * modules/roundl: New file.
23887 * modules/roundl-tests: New file.
23888 * tests/test-round1.c: New file.
23889 * tests/test-round2.c: New file.
23890 * tests/test-roundf1.c: New file.
23891 * tests/test-roundf2.c: New file.
23892 * tests/test-roundl.c: New file.
23893 * doc/functions/round.texi: Mention round module.
23894 * doc/functions/roundf.texi: Mention roundf module.
23895 * doc/functions/roundl.texi: Mention roundl module.
23896 * MODULES.html.sh: Mention new modules.
23897 Thanks to Bruno Haible for suggestions.
23899 2007-10-20 Jim Meyering <meyering@redhat.com>
23901 * lib/xprintf.c: Include <config.h> unconditionally.
23903 Change xprintf's license to GPL.
23904 * modules/xprintf (License): s/LGPL/GPL/, since this module
23905 depends on modules (exit and exitfail) which are GPL.
23906 Suggestion from Bruno Haible.
23909 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
23910 Use a clearer diagnostic.
23911 Patch from Bruno Haible.
23913 2007-10-20 Bruno Haible <bruno@clisp.org>
23915 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
23916 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
23917 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23919 2007-10-20 Bruno Haible <bruno@clisp.org>
23921 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
23922 precision in the comparison result > x - 1 or similar.
23923 * tests/test-ceilf2.c (correct_result_p): Likewise.
23924 * tests/test-truncf2.c (correct_result_p): Likewise.
23925 * tests/test-trunc2.c (correct_result_p): Likewise.
23926 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23928 2007-10-20 Bruno Haible <bruno@clisp.org>
23930 * modules/ceil: New file.
23931 * m4/ceil.m4: New file.
23932 * doc/functions/ceil.texi: Mention the 'ceil' module.
23934 2007-10-20 Bruno Haible <bruno@clisp.org>
23936 * modules/floor: New file.
23937 * m4/floor.m4: New file.
23938 * doc/functions/floor.texi: Mention the 'floor' module.
23940 2007-10-20 Bruno Haible <bruno@clisp.org>
23942 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
23944 * modules/floorf-tests (Depends-on): Likewise.
23945 * modules/truncf-tests (Depends-on): Likewise.
23946 * modules/trunc-tests (Depends-on): Likewise.
23947 Reported by Ben Pfaff.
23949 2007-10-19 Jim Meyering <meyering@redhat.com>
23951 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
23952 Don't bother testing specific errno values. Just test ferror.
23954 New module: xprintf
23955 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
23957 2007-10-19 Bruno Haible <bruno@clisp.org>
23959 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
23961 * modules/javaexec (Makefile.am): Likewise.
23962 * modules/relocatable-prog (Makefile.am): Likewise.
23963 Suggested by Jim Meyering.
23965 2007-10-18 Bruno Haible <bruno@clisp.org>
23967 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
23968 Reported by Jim Meyering.
23970 2007-10-18 Eric Blake <ebb9@byu.net>
23972 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
23974 2007-10-18 Bruno Haible <bruno@clisp.org>
23976 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
23977 the format string into writable memory. Needed in Fortify conditions.
23979 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
23980 Bruno Haible <bruno@clisp.org>
23982 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
23983 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
23984 * modules/trim (Depends-on): Add mbchar.
23985 (configure.ac): Add gl_FUNC_MBRTOWC.
23986 (Makefile.am): Augment lib_SOURCES.
23988 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
23990 Modify glob.c to use fstatat and dirfd, to simplify it.
23991 Suggested by Eric Blake.
23992 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
23993 Don't include <stdbool.h>; not used.
23994 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
23995 (link_exists_p): Simplify implementation, since we can now assume
23997 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
23999 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24001 * gnulib-tool (func_get_dependencies): Fix sed script to
24004 2007-10-17 Bruno Haible <bruno@clisp.org>
24006 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
24007 allow locale names without encoding suffix.
24008 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24009 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24011 2007-10-16 Bruno Haible <bruno@clisp.org>
24013 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
24014 * lib/getgroups.c (getgroups): Likewise.
24015 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
24017 2007-10-16 Bruno Haible <bruno@clisp.org>
24019 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
24020 * modules/malloc-posix (License): Likewise.
24021 * modules/realloc-posix (License): Likewise.
24022 * modules/calloc-posix (License): Likewise.
24023 * modules/intprops (License): Change from GPL to LGPL, with
24024 Paul Eggert's approval.
24026 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
24028 Merge glibc changes into lib/glob.c.
24030 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
24031 2007-10-15 04:59:03 UTC. Here are the changes:
24033 2007-10-14 Ulrich Drepper <drepper@redhat.com>
24035 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
24037 * lib/glob.c: Add some branch prediction throughout.
24039 2007-10-07 Ulrich Drepper <drepper@redhat.com>
24042 * lib/glob.c (glob): Recognize patterns starting \/.
24044 2007-02-14 Jakub Jelinek <jakub@redhat.com>
24047 * lib/glob.c (attribute_hidden): Define if not defined.
24048 (glob): Unescape dirname, filename or username when needed and not
24049 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
24050 is NULL. Handle unescaped [ in pattern without closing ].
24051 Don't pass GLOB_CHECK down to recursive glob for directories.
24052 (__glob_pattern_type): New function.
24053 (__glob_pattern_p): Implement using __glob_pattern_type.
24054 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
24055 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
24056 Remove unreachable code.
24058 2006-09-30 Ulrich Drepper <drepper@redhat.com>
24060 * lib/glob.c (glob_in_dir): Add some comments and asserts to
24061 explain why there are no leaks.
24063 2006-09-25 Jakub Jelinek <jakub@redhat.com>
24066 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
24067 time, rather allocate increasingly bigger arrays of pointers, if
24068 possible with alloca, if too large with malloc.
24070 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
24072 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
24073 Problem reported by H.Merijn Brand in
24074 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
24075 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
24076 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24078 2007-10-15 Bruno Haible <bruno@clisp.org>
24080 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
24081 with explicit rpl_ prefix.
24082 * lib/fopen.c (fopen): Likewise.
24083 * lib/freopen.c (freopen): Likewise.
24084 * lib/iconv.c (iconv): Likewise.
24085 * lib/iconv_close.c (iconv_close): Likewise.
24087 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24089 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
24091 2007-10-15 Bruno Haible <bruno@clisp.org>
24093 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
24094 <stddef.h> instead of <stdlib.h> since we only need NULL.
24095 Reported by Ben Pfaff <blp@cs.stanford.edu>.
24097 2007-10-15 Bruno Haible <bruno@clisp.org>
24099 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
24100 Replace paragraph talking about LIBOBJS.
24101 Reported by Colin Watson <cjwatson@debian.org>.
24103 2007-10-15 Bruno Haible <bruno@clisp.org>
24105 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
24106 <stdlib.h> before using NULL.
24108 2007-10-15 Simon Josefsson <simon@josefsson.org>
24110 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
24111 Reported by Albert Chin <china@thewrittenword.com>.
24113 2007-10-14 Bruno Haible <bruno@clisp.org>
24115 * modules/iconv_open-utf-tests: New file.
24116 * tests/test-iconv-utf.c: New file.
24118 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
24119 * modules/iconv_open-utf: New file.
24120 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
24121 (iconv, iconv_close): New declarations.
24122 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
24124 (iconv_open): Add special handling of conversion between UTF-8 and
24125 UTF-{16,32}{BE,LE}.
24126 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
24127 * lib/iconv_close.c: New file.
24128 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
24129 gl_FUNC_ICONV_OPEN.
24130 (gl_FUNC_ICONV_OPEN): Use it.
24131 (gl_FUNC_ICONV_OPEN_UTF): New macro.
24132 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
24133 and REPLACE_ICONV_UTF.
24134 * modules/iconv_open (Depends-on): Add c-strcase.
24135 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
24137 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
24139 2007-10-13 Albert Chin <china@thewrittenword.com>
24140 Bruno Haible <bruno@clisp.org>
24142 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
24143 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
24145 2007-10-13 Bruno Haible <bruno@clisp.org>
24147 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
24148 defined, use the ISO C99 inline semantics.
24149 * lib/argp.h (ARGP_EI): Likewise.
24151 2007-10-13 Bruno Haible <bruno@clisp.org>
24153 Handle 'inline' change in gcc 4.3.0.
24154 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
24155 argp_fmtstream_write, argp_fmtstream_set_lmargin,
24156 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
24157 argp_fmtstream_point): Disable 'extern' declaration if the function
24158 definition is going to be provided inline.
24159 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
24160 semantics, not the ISO C99 inline semantics.
24161 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
24162 'extern' declaration if the function definition is going to be provided
24164 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
24165 the GNU C inline semantics, not the ISO C99 inline semantics. With
24166 GCC 4.2, avoid a warning.
24168 2007-10-13 Bruno Haible <bruno@clisp.org>
24170 * lib/freading.h (freading): Enable the use of __freading for
24172 * lib/freading.c (freading): Likewise.
24174 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
24176 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
24177 "warning: C99 inline functions are not supported; using GNU89".
24179 2007-10-12 Bruno Haible <bruno@clisp.org>
24181 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
24183 * tests/test-ceilf2.c: New file.
24184 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
24186 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
24187 * modules/ceilf-tests: Update.
24189 2007-10-12 Bruno Haible <bruno@clisp.org>
24191 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
24193 * tests/test-floorf2.c: New file.
24194 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
24196 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
24197 * modules/floorf-tests: Update.
24199 2007-10-12 Bruno Haible <bruno@clisp.org>
24201 * tests/test-trunc2.c: New file.
24202 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
24204 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
24205 * modules/trunc-tests: Update.
24207 2007-10-12 Bruno Haible <bruno@clisp.org>
24209 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
24211 * tests/test-truncf2.c: New file.
24212 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
24214 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
24215 * modules/truncf-tests: Update.
24217 2007-10-11 Eric Blake <ebb9@byu.net>
24219 Don't claim strerror is broken on Interix.
24220 * doc/functions/strerror.texi (strerror): Known broken systems are
24221 now Solaris 8, and not Interix.
24222 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
24223 Interix on cross-compile.
24224 Reported by Martin Koeppe in
24225 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
24227 2007-10-11 Bruno Haible <bruno@clisp.org>
24229 * modules/i-ring-tests: New file.
24230 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
24233 2007-10-11 Bruno Haible <bruno@clisp.org>
24235 * modules/filenamecat-tests: New file.
24236 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
24237 * lib/filenamecat.c: Remove test code.
24239 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
24241 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
24243 * lib/strerror.c: Include <string.h> always, to test interface,
24244 and to remove the need for the dummy.
24245 Include intprops.h to compute width instead of doing it ourselves
24246 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
24247 (strerror): Define it to return NULL if there's no system strerror.
24248 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
24249 Omit !HAVE_STRERROR code. We don't need to worry about supporting
24250 ancient pre-strerror Unix systems well any more. Saying "unknown
24251 system error" is enough.
24252 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
24253 simpler strerror.c implementation.
24254 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
24255 Simplify the tests to reflect the simpler strerror implementation.
24256 * modules/strerror (Depends-on): Add intprops.
24258 2007-10-09 Eric Blake <ebb9@byu.net>
24260 Silence test-fpending.
24261 * modules/fpending-tests (Files): Add wrapper script.
24262 * tests/test-fpending.sh: New file.
24264 2007-10-09 Bruno Haible <bruno@clisp.org>
24266 * MODULES.html.sh (func_module): Don't create a hyperlink for
24267 function names like 'printf_frexp'.
24268 (Misc): Add crc, memxor.
24269 (Characteristics of floating types): New section.
24270 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
24271 isnanf-nolibm, signbit, trunc, truncf, truncl.
24272 (Enhancements for ISO C 99 functions): New subsection Input/output.
24273 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
24274 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
24275 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
24276 (Compatibility checks for POSIX:2001 functions): Add clock-time.
24277 (Enhancements for POSIX:2001 functions): Add chdir-long.
24278 (File system functions): Add areadlink, chdir-safer, read-file.
24279 Remove cycle-check.
24280 (File system as inode set): New section.
24281 (Date and time): Add gethrxtime.
24282 (Multithreading): Add openmp.
24283 (Internationalization functions): Add localename.
24284 (Unicode string functions): Add unistr/u*-mbsnlen.
24285 (Support for maintaining and releasing projects): Add git-version-gen.
24286 (Lone files): Remove directories.
24288 2007-10-08 Ben Pfaff <blp@gnu.org>
24290 * lib/xmalloca.h: Fix typo in comment.
24292 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
24294 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
24295 when avoiding problems with integer overflow. Use a portable test
24298 2007-10-08 Simon Josefsson <simon@josefsson.org>
24300 * modules/dummy (License): Change to LGPLv2+.
24301 * modules/float (License): Likewise
24302 * modules/realloc (License): Likewise
24303 * modules/stdlib (License): Likewise
24305 2007-10-07 Bruno Haible <bruno@clisp.org>
24307 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
24308 * floor.c (TWO_MANT_DIG): Likewise.
24309 * ceil.c (TWO_MANT_DIG): Likewise.
24310 Reported by Ben Pfaff.
24312 2007-10-07 Bruno Haible <bruno@clisp.org>
24314 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
24315 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
24316 * lib/frexp.c (FUNC): Likewise.
24317 * lib/printf-frexp.h (printf_frexp): Likewise.
24318 * lib/printf-frexpl.h (printf_frexpl): Likewise.
24319 * lib/printf-frexp.c (FUNC): Likewise.
24320 Suggested by Jim Meyering.
24322 2007-10-07 Jim Meyering <meyering@redhat.com>
24324 Make xnanosleep's integer overflow test more robust.
24325 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
24326 so that gcc-4.3.0 doesn't optimize away this test for overflow.
24328 2007-10-07 Bruno Haible <bruno@clisp.org>
24330 * NEWS: Mention the license change.
24332 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
24333 abbreviations in the modules files.
24335 Change copyright notice from GPLv2+ to GPLv3+.
24336 * README: Change copyright notice.
24337 * MODULES.html.sh: Likewise.
24338 * build-aux/bootstrap.conf: Likewise.
24339 * build-aux/config.libpath: Likewise.
24340 * build-aux/csharpcomp.sh.in: Likewise.
24341 * build-aux/csharpexec.sh.in: Likewise.
24342 * build-aux/install-reloc: Likewise.
24343 * build-aux/javacomp.sh.in: Likewise.
24344 * build-aux/javaexec.sh.in: Likewise.
24345 * build-aux/ldd.sh.in: Likewise.
24346 * build-aux/reloc-ldflags: Likewise.
24347 * build-aux/relocatable.sh.in: Likewise.
24348 * build-aux/x-to-1.in: Likewise.
24349 * check-module: Likewise.
24350 * config/srclistvars.sh: Likewise.
24351 * gnulib-tool: Likewise.
24352 * lib/acl-internal.h: Likewise.
24353 * lib/acl.c: Likewise.
24354 * lib/acl.h: Likewise.
24355 * lib/acl_entries.c: Likewise.
24356 * lib/areadlink-with-size.c: Likewise.
24357 * lib/areadlink.c: Likewise.
24358 * lib/areadlink.h: Likewise.
24359 * lib/argmatch.c: Likewise.
24360 * lib/argmatch.h: Likewise.
24361 * lib/argp-ba.c: Likewise.
24362 * lib/argp-eexst.c: Likewise.
24363 * lib/argp-fmtstream.c: Likewise.
24364 * lib/argp-fmtstream.h: Likewise.
24365 * lib/argp-fs-xinl.c: Likewise.
24366 * lib/argp-help.c: Likewise.
24367 * lib/argp-namefrob.h: Likewise.
24368 * lib/argp-parse.c: Likewise.
24369 * lib/argp-pin.c: Likewise.
24370 * lib/argp-pv.c: Likewise.
24371 * lib/argp-pvh.c: Likewise.
24372 * lib/argp-xinl.c: Likewise.
24373 * lib/argp.h: Likewise.
24374 * lib/at-func.c: Likewise.
24375 * lib/atanl.c: Likewise.
24376 * lib/backupfile.c: Likewise.
24377 * lib/backupfile.h: Likewise.
24378 * lib/basename.c: Likewise.
24379 * lib/binary-io.h: Likewise.
24380 * lib/byteswap.in.h: Likewise.
24381 * lib/c-stack.c: Likewise.
24382 * lib/c-stack.h: Likewise.
24383 * lib/c-strcasestr.c: Likewise.
24384 * lib/c-strcasestr.h: Likewise.
24385 * lib/c-strstr.c: Likewise.
24386 * lib/c-strstr.h: Likewise.
24387 * lib/c-strtod.c: Likewise.
24388 * lib/calloc.c: Likewise.
24389 * lib/canon-host.c: Likewise.
24390 * lib/canon-host.h: Likewise.
24391 * lib/canonicalize-lgpl.c: Likewise.
24392 * lib/canonicalize.c: Likewise.
24393 * lib/canonicalize.h: Likewise.
24394 * lib/ceil.c: Likewise.
24395 * lib/ceilf.c: Likewise.
24396 * lib/ceill.c: Likewise.
24397 * lib/chdir-long.c: Likewise.
24398 * lib/chdir-long.h: Likewise.
24399 * lib/chdir-safer.c: Likewise.
24400 * lib/chdir-safer.h: Likewise.
24401 * lib/chown.c: Likewise.
24402 * lib/classpath.c: Likewise.
24403 * lib/classpath.h: Likewise.
24404 * lib/clean-temp.c: Likewise.
24405 * lib/clean-temp.h: Likewise.
24406 * lib/cloexec.c: Likewise.
24407 * lib/close-stream.c: Likewise.
24408 * lib/closein.c: Likewise.
24409 * lib/closein.h: Likewise.
24410 * lib/closeout.c: Likewise.
24411 * lib/closeout.h: Likewise.
24412 * lib/concat-filename.c: Likewise.
24413 * lib/copy-file.c: Likewise.
24414 * lib/copy-file.h: Likewise.
24415 * lib/count-one-bits.h: Likewise.
24416 * lib/crc.c: Likewise.
24417 * lib/crc.h: Likewise.
24418 * lib/creat-safer.c: Likewise.
24419 * lib/csharpcomp.c: Likewise.
24420 * lib/csharpcomp.h: Likewise.
24421 * lib/csharpexec.c: Likewise.
24422 * lib/csharpexec.h: Likewise.
24423 * lib/cycle-check.c: Likewise.
24424 * lib/cycle-check.h: Likewise.
24425 * lib/diacrit.c: Likewise.
24426 * lib/diacrit.h: Likewise.
24427 * lib/diffseq.h: Likewise.
24428 * lib/dirchownmod.c: Likewise.
24429 * lib/dirent.in.h: Likewise.
24430 * lib/dirfd.c: Likewise.
24431 * lib/dirfd.h: Likewise.
24432 * lib/dirname.c: Likewise.
24433 * lib/dirname.h: Likewise.
24434 * lib/dummy.c: Likewise.
24435 * lib/dup-safer.c: Likewise.
24436 * lib/dup2.c: Likewise.
24437 * lib/eealloc.h: Likewise.
24438 * lib/error.c: Likewise.
24439 * lib/error.h: Likewise.
24440 * lib/euidaccess.c: Likewise.
24441 * lib/exclude.c: Likewise.
24442 * lib/exclude.h: Likewise.
24443 * lib/execute.c: Likewise.
24444 * lib/execute.h: Likewise.
24445 * lib/exitfail.c: Likewise.
24446 * lib/exitfail.h: Likewise.
24447 * lib/expl.c: Likewise.
24448 * lib/fatal-signal.c: Likewise.
24449 * lib/fatal-signal.h: Likewise.
24450 * lib/fbufmode.c: Likewise.
24451 * lib/fbufmode.h: Likewise.
24452 * lib/fchdir.c: Likewise.
24453 * lib/fchmodat.c: Likewise.
24454 * lib/fchownat.c: Likewise.
24455 * lib/fcntl--.h: Likewise.
24456 * lib/fcntl-safer.h: Likewise.
24457 * lib/fcntl.in.h: Likewise.
24458 * lib/fd-safer.c: Likewise.
24459 * lib/fflush.c: Likewise.
24460 * lib/file-has-acl.c: Likewise.
24461 * lib/file-set.c: Likewise.
24462 * lib/file-type.c: Likewise.
24463 * lib/file-type.h: Likewise.
24464 * lib/fileblocks.c: Likewise.
24465 * lib/filemode.c: Likewise.
24466 * lib/filemode.h: Likewise.
24467 * lib/filename.h: Likewise.
24468 * lib/filenamecat.c: Likewise.
24469 * lib/filenamecat.h: Likewise.
24470 * lib/findprog.c: Likewise.
24471 * lib/findprog.h: Likewise.
24472 * lib/float.in.h: Likewise.
24473 * lib/floor.c: Likewise.
24474 * lib/floorf.c: Likewise.
24475 * lib/floorl.c: Likewise.
24476 * lib/fopen-safer.c: Likewise.
24477 * lib/fopen.c: Likewise.
24478 * lib/fpending.c: Likewise.
24479 * lib/fpending.h: Likewise.
24480 * lib/fprintf.c: Likewise.
24481 * lib/fprintftime.h: Likewise.
24482 * lib/fpucw.h: Likewise.
24483 * lib/fpurge.c: Likewise.
24484 * lib/fpurge.h: Likewise.
24485 * lib/freadable.c: Likewise.
24486 * lib/freadable.h: Likewise.
24487 * lib/freadahead.c: Likewise.
24488 * lib/freadahead.h: Likewise.
24489 * lib/freading.c: Likewise.
24490 * lib/freading.h: Likewise.
24491 * lib/free.c: Likewise.
24492 * lib/freopen.c: Likewise.
24493 * lib/frexp.c: Likewise.
24494 * lib/frexpl.c: Likewise.
24495 * lib/fseek.c: Likewise.
24496 * lib/fseterr.c: Likewise.
24497 * lib/fseterr.h: Likewise.
24498 * lib/fstatat.c: Likewise.
24499 * lib/fstrcmp.c: Likewise.
24500 * lib/fstrcmp.h: Likewise.
24501 * lib/fsusage.c: Likewise.
24502 * lib/fsusage.h: Likewise.
24503 * lib/ftell.c: Likewise.
24504 * lib/ftello.c: Likewise.
24505 * lib/fts-cycle.c: Likewise.
24506 * lib/fts.c: Likewise.
24507 * lib/fts_.h: Likewise.
24508 * lib/full-read.c: Likewise.
24509 * lib/full-read.h: Likewise.
24510 * lib/full-write.c: Likewise.
24511 * lib/full-write.h: Likewise.
24512 * lib/fwritable.c: Likewise.
24513 * lib/fwritable.h: Likewise.
24514 * lib/fwriteerror.c: Likewise.
24515 * lib/fwriteerror.h: Likewise.
24516 * lib/fwriting.c: Likewise.
24517 * lib/fwriting.h: Likewise.
24518 * lib/gcd.c: Likewise.
24519 * lib/gcd.h: Likewise.
24520 * lib/getcwd.c: Likewise.
24521 * lib/getdate.h: Likewise.
24522 * lib/getdate.y: Likewise.
24523 * lib/getdomainname.c: Likewise.
24524 * lib/getdomainname.h: Likewise.
24525 * lib/getgroups.c: Likewise.
24526 * lib/gethostname.c: Likewise.
24527 * lib/gethrxtime.c: Likewise.
24528 * lib/gethrxtime.h: Likewise.
24529 * lib/getloadavg.c: Likewise.
24530 * lib/getndelim2.c: Likewise.
24531 * lib/getndelim2.h: Likewise.
24532 * lib/getnline.c: Likewise.
24533 * lib/getnline.h: Likewise.
24534 * lib/getopt.c: Likewise.
24535 * lib/getopt.in.h: Likewise.
24536 * lib/getopt1.c: Likewise.
24537 * lib/getopt_int.h: Likewise.
24538 * lib/getpagesize.h: Likewise.
24539 * lib/getsubopt.c: Likewise.
24540 * lib/gettime.c: Likewise.
24541 * lib/getugroups.c: Likewise.
24542 * lib/getugroups.h: Likewise.
24543 * lib/getusershell.c: Likewise.
24544 * lib/gl_anyavltree_list1.h: Likewise.
24545 * lib/gl_anyavltree_list2.h: Likewise.
24546 * lib/gl_anyhash_list1.h: Likewise.
24547 * lib/gl_anyhash_list2.h: Likewise.
24548 * lib/gl_anylinked_list1.h: Likewise.
24549 * lib/gl_anylinked_list2.h: Likewise.
24550 * lib/gl_anyrbtree_list1.h: Likewise.
24551 * lib/gl_anyrbtree_list2.h: Likewise.
24552 * lib/gl_anytree_list1.h: Likewise.
24553 * lib/gl_anytree_list2.h: Likewise.
24554 * lib/gl_anytree_oset.h: Likewise.
24555 * lib/gl_anytreehash_list1.h: Likewise.
24556 * lib/gl_anytreehash_list2.h: Likewise.
24557 * lib/gl_array_list.c: Likewise.
24558 * lib/gl_array_list.h: Likewise.
24559 * lib/gl_array_oset.c: Likewise.
24560 * lib/gl_array_oset.h: Likewise.
24561 * lib/gl_avltree_list.c: Likewise.
24562 * lib/gl_avltree_list.h: Likewise.
24563 * lib/gl_avltree_oset.c: Likewise.
24564 * lib/gl_avltree_oset.h: Likewise.
24565 * lib/gl_avltreehash_list.c: Likewise.
24566 * lib/gl_avltreehash_list.h: Likewise.
24567 * lib/gl_carray_list.c: Likewise.
24568 * lib/gl_carray_list.h: Likewise.
24569 * lib/gl_linked_list.c: Likewise.
24570 * lib/gl_linked_list.h: Likewise.
24571 * lib/gl_linkedhash_list.c: Likewise.
24572 * lib/gl_linkedhash_list.h: Likewise.
24573 * lib/gl_list.c: Likewise.
24574 * lib/gl_list.h: Likewise.
24575 * lib/gl_oset.c: Likewise.
24576 * lib/gl_oset.h: Likewise.
24577 * lib/gl_rbtree_list.c: Likewise.
24578 * lib/gl_rbtree_list.h: Likewise.
24579 * lib/gl_rbtree_oset.c: Likewise.
24580 * lib/gl_rbtree_oset.h: Likewise.
24581 * lib/gl_rbtreehash_list.c: Likewise.
24582 * lib/gl_rbtreehash_list.h: Likewise.
24583 * lib/gl_sublist.c: Likewise.
24584 * lib/gl_sublist.h: Likewise.
24585 * lib/group-member.c: Likewise.
24586 * lib/group-member.h: Likewise.
24587 * lib/hard-locale.c: Likewise.
24588 * lib/hard-locale.h: Likewise.
24589 * lib/hash-pjw.c: Likewise.
24590 * lib/hash-pjw.h: Likewise.
24591 * lib/hash-triple.c: Likewise.
24592 * lib/hash.c: Likewise.
24593 * lib/hash.h: Likewise.
24594 * lib/human.c: Likewise.
24595 * lib/human.h: Likewise.
24596 * lib/i-ring.c: Likewise.
24597 * lib/i-ring.h: Likewise.
24598 * lib/idcache.c: Likewise.
24599 * lib/imaxabs.c: Likewise.
24600 * lib/imaxdiv.c: Likewise.
24601 * lib/inet_pton.c: Likewise.
24602 * lib/inet_pton.h: Likewise.
24603 * lib/intprops.h: Likewise.
24604 * lib/inttostr.c: Likewise.
24605 * lib/inttostr.h: Likewise.
24606 * lib/inttypes.in.h: Likewise.
24607 * lib/isapipe.c: Likewise.
24608 * lib/isdir.c: Likewise.
24609 * lib/isnan.c: Likewise.
24610 * lib/isnan.h: Likewise.
24611 * lib/isnanf.c: Likewise.
24612 * lib/isnanf.h: Likewise.
24613 * lib/isnanl-nolibm.h: Likewise.
24614 * lib/isnanl.c: Likewise.
24615 * lib/isnanl.h: Likewise.
24616 * lib/javacomp.c: Likewise.
24617 * lib/javacomp.h: Likewise.
24618 * lib/javaexec.c: Likewise.
24619 * lib/javaexec.h: Likewise.
24620 * lib/javaversion.c: Likewise.
24621 * lib/javaversion.h: Likewise.
24622 * lib/javaversion.java: Likewise.
24623 * lib/lbrkprop.h: Likewise.
24624 * lib/lchmod.h: Likewise.
24625 * lib/lchown.c: Likewise.
24626 * lib/ldexpl.c: Likewise.
24627 * lib/linebreak.c: Likewise.
24628 * lib/linebreak.h: Likewise.
24629 * lib/linebuffer.c: Likewise.
24630 * lib/linebuffer.h: Likewise.
24631 * lib/locale.in.h: Likewise.
24632 * lib/logl.c: Likewise.
24633 * lib/long-options.c: Likewise.
24634 * lib/long-options.h: Likewise.
24635 * lib/lstat.c: Likewise.
24636 * lib/lstat.h: Likewise.
24637 * lib/math.in.h: Likewise.
24638 * lib/mbchar.c: Likewise.
24639 * lib/mbchar.h: Likewise.
24640 * lib/mbfile.h: Likewise.
24641 * lib/mbiter.h: Likewise.
24642 * lib/mbscasecmp.c: Likewise.
24643 * lib/mbscasestr.c: Likewise.
24644 * lib/mbschr.c: Likewise.
24645 * lib/mbscspn.c: Likewise.
24646 * lib/mbslen.c: Likewise.
24647 * lib/mbsncasecmp.c: Likewise.
24648 * lib/mbsnlen.c: Likewise.
24649 * lib/mbspbrk.c: Likewise.
24650 * lib/mbspcasecmp.c: Likewise.
24651 * lib/mbsrchr.c: Likewise.
24652 * lib/mbssep.c: Likewise.
24653 * lib/mbsspn.c: Likewise.
24654 * lib/mbsstr.c: Likewise.
24655 * lib/mbstok_r.c: Likewise.
24656 * lib/mbswidth.c: Likewise.
24657 * lib/mbswidth.h: Likewise.
24658 * lib/mbuiter.h: Likewise.
24659 * lib/memcasecmp.c: Likewise.
24660 * lib/memcasecmp.h: Likewise.
24661 * lib/memchr.c: Likewise.
24662 * lib/memcmp.c: Likewise.
24663 * lib/memcoll.c: Likewise.
24664 * lib/memcoll.h: Likewise.
24665 * lib/memcpy.c: Likewise.
24666 * lib/memrchr.c: Likewise.
24667 * lib/mkancesdirs.c: Likewise.
24668 * lib/mkdir-p.c: Likewise.
24669 * lib/mkdir-p.h: Likewise.
24670 * lib/mkdir.c: Likewise.
24671 * lib/mkdirat.c: Likewise.
24672 * lib/mkdtemp.c: Likewise.
24673 * lib/mkstemp-safer.c: Likewise.
24674 * lib/mkstemp.c: Likewise.
24675 * lib/modechange.c: Likewise.
24676 * lib/modechange.h: Likewise.
24677 * lib/mountlist.c: Likewise.
24678 * lib/mountlist.h: Likewise.
24679 * lib/mpsort.c: Likewise.
24680 * lib/nanosleep.c: Likewise.
24681 * lib/obstack.c: Likewise.
24682 * lib/obstack.h: Likewise.
24683 * lib/open-safer.c: Likewise.
24684 * lib/open.c: Likewise.
24685 * lib/openat-die.c: Likewise.
24686 * lib/openat-priv.h: Likewise.
24687 * lib/openat-proc.c: Likewise.
24688 * lib/openat.c: Likewise.
24689 * lib/openat.h: Likewise.
24690 * lib/pagealign_alloc.c: Likewise.
24691 * lib/pagealign_alloc.h: Likewise.
24692 * lib/physmem.c: Likewise.
24693 * lib/physmem.h: Likewise.
24694 * lib/pipe-safer.c: Likewise.
24695 * lib/pipe.c: Likewise.
24696 * lib/pipe.h: Likewise.
24697 * lib/posixtm.c: Likewise.
24698 * lib/posixtm.h: Likewise.
24699 * lib/posixver.c: Likewise.
24700 * lib/printf-frexp.c: Likewise.
24701 * lib/printf-frexp.h: Likewise.
24702 * lib/printf-frexpl.c: Likewise.
24703 * lib/printf-frexpl.h: Likewise.
24704 * lib/printf.c: Likewise.
24705 * lib/progname.c: Likewise.
24706 * lib/progname.h: Likewise.
24707 * lib/progreloc.c: Likewise.
24708 * lib/putenv.c: Likewise.
24709 * lib/quote.c: Likewise.
24710 * lib/quote.h: Likewise.
24711 * lib/quotearg.c: Likewise.
24712 * lib/quotearg.h: Likewise.
24713 * lib/raise.c: Likewise.
24714 * lib/readline.c: Likewise.
24715 * lib/readline.h: Likewise.
24716 * lib/readlink.c: Likewise.
24717 * lib/readtokens.c: Likewise.
24718 * lib/readtokens.h: Likewise.
24719 * lib/readtokens0.c: Likewise.
24720 * lib/readtokens0.h: Likewise.
24721 * lib/readutmp.c: Likewise.
24722 * lib/readutmp.h: Likewise.
24723 * lib/realloc.c: Likewise.
24724 * lib/relocwrapper.c: Likewise.
24725 * lib/rename-dest-slash.c: Likewise.
24726 * lib/rename.c: Likewise.
24727 * lib/rmdir.c: Likewise.
24728 * lib/rpmatch.c: Likewise.
24729 * lib/safe-read.c: Likewise.
24730 * lib/safe-read.h: Likewise.
24731 * lib/safe-write.c: Likewise.
24732 * lib/safe-write.h: Likewise.
24733 * lib/same-inode.h: Likewise.
24734 * lib/same.c: Likewise.
24735 * lib/same.h: Likewise.
24736 * lib/save-cwd.c: Likewise.
24737 * lib/save-cwd.h: Likewise.
24738 * lib/savedir.c: Likewise.
24739 * lib/savedir.h: Likewise.
24740 * lib/savewd.c: Likewise.
24741 * lib/savewd.h: Likewise.
24742 * lib/search.in.h: Likewise.
24743 * lib/setenv.c: Likewise.
24744 * lib/setenv.h: Likewise.
24745 * lib/settime.c: Likewise.
24746 * lib/sh-quote.c: Likewise.
24747 * lib/sh-quote.h: Likewise.
24748 * lib/sig2str.c: Likewise.
24749 * lib/sig2str.h: Likewise.
24750 * lib/signal.in.h: Likewise.
24751 * lib/signbitd.c: Likewise.
24752 * lib/signbitf.c: Likewise.
24753 * lib/signbitl.c: Likewise.
24754 * lib/sigprocmask.c: Likewise.
24755 * lib/sincosl.c: Likewise.
24756 * lib/sleep.c: Likewise.
24757 * lib/sprintf.c: Likewise.
24758 * lib/sqrtl.c: Likewise.
24759 * lib/stat-time.h: Likewise.
24760 * lib/stdio--.h: Likewise.
24761 * lib/stdio-safer.h: Likewise.
24762 * lib/stdlib--.h: Likewise.
24763 * lib/stdlib-safer.h: Likewise.
24764 * lib/stdlib.in.h: Likewise.
24765 * lib/stpcpy.c: Likewise.
24766 * lib/stpncpy.c: Likewise.
24767 * lib/strchrnul.c: Likewise.
24768 * lib/strcspn.c: Likewise.
24769 * lib/strerror.c: Likewise.
24770 * lib/strftime.c: Likewise.
24771 * lib/strftime.h: Likewise.
24772 * lib/striconveh.c: Likewise.
24773 * lib/striconveh.h: Likewise.
24774 * lib/striconveha.c: Likewise.
24775 * lib/striconveha.h: Likewise.
24776 * lib/stripslash.c: Likewise.
24777 * lib/strnlen1.c: Likewise.
24778 * lib/strnlen1.h: Likewise.
24779 * lib/strtod.c: Likewise.
24780 * lib/strtoimax.c: Likewise.
24781 * lib/strtok_r.c: Likewise.
24782 * lib/strtol.c: Likewise.
24783 * lib/strtoll.c: Likewise.
24784 * lib/strtoul.c: Likewise.
24785 * lib/strtoull.c: Likewise.
24786 * lib/sysexits.in.h: Likewise.
24787 * lib/tempname.c: Likewise.
24788 * lib/tempname.h: Likewise.
24789 * lib/timespec.h: Likewise.
24790 * lib/tls.c: Likewise.
24791 * lib/tls.h: Likewise.
24792 * lib/tmpdir.c: Likewise.
24793 * lib/tmpdir.h: Likewise.
24794 * lib/tmpfile-safer.c: Likewise.
24795 * lib/tmpfile.c: Likewise.
24796 * lib/trigl.c: Likewise.
24797 * lib/trigl.h: Likewise.
24798 * lib/trim.c: Likewise.
24799 * lib/trim.h: Likewise.
24800 * lib/trunc.c: Likewise.
24801 * lib/truncf.c: Likewise.
24802 * lib/truncl.c: Likewise.
24803 * lib/tsearch.c: Likewise.
24804 * lib/unicodeio.c: Likewise.
24805 * lib/unicodeio.h: Likewise.
24806 * lib/unistd--.h: Likewise.
24807 * lib/unistd-safer.h: Likewise.
24808 * lib/unistdio/ulc-fprintf.c: Likewise.
24809 * lib/unistdio/ulc-vfprintf.c: Likewise.
24810 * lib/unlinkdir.c: Likewise.
24811 * lib/unlinkdir.h: Likewise.
24812 * lib/unlocked-io.h: Likewise.
24813 * lib/unsetenv.c: Likewise.
24814 * lib/userspec.c: Likewise.
24815 * lib/utime.c: Likewise.
24816 * lib/utimecmp.c: Likewise.
24817 * lib/utimecmp.h: Likewise.
24818 * lib/utimens.c: Likewise.
24819 * lib/verify.h: Likewise.
24820 * lib/verror.c: Likewise.
24821 * lib/verror.h: Likewise.
24822 * lib/version-etc-fsf.c: Likewise.
24823 * lib/version-etc.c: Likewise.
24824 * lib/version-etc.h: Likewise.
24825 * lib/vfprintf.c: Likewise.
24826 * lib/vprintf.c: Likewise.
24827 * lib/vsprintf.c: Likewise.
24828 * lib/w32spawn.h: Likewise.
24829 * lib/wait-process.c: Likewise.
24830 * lib/wait-process.h: Likewise.
24831 * lib/wcwidth.c: Likewise.
24832 * lib/write-any-file.c: Likewise.
24833 * lib/xalloc-die.c: Likewise.
24834 * lib/xalloc.h: Likewise.
24835 * lib/xasprintf.c: Likewise.
24836 * lib/xgetcwd.c: Likewise.
24837 * lib/xgetcwd.h: Likewise.
24838 * lib/xgetdomainname.c: Likewise.
24839 * lib/xgetdomainname.h: Likewise.
24840 * lib/xgethostname.c: Likewise.
24841 * lib/xmalloc.c: Likewise.
24842 * lib/xmalloca.c: Likewise.
24843 * lib/xmalloca.h: Likewise.
24844 * lib/xmemcoll.c: Likewise.
24845 * lib/xnanosleep.c: Likewise.
24846 * lib/xreadlink.c: Likewise.
24847 * lib/xreadlink.h: Likewise.
24848 * lib/xsetenv.c: Likewise.
24849 * lib/xsetenv.h: Likewise.
24850 * lib/xstriconv.c: Likewise.
24851 * lib/xstriconv.h: Likewise.
24852 * lib/xstrndup.c: Likewise.
24853 * lib/xstrndup.h: Likewise.
24854 * lib/xstrtod.c: Likewise.
24855 * lib/xstrtod.h: Likewise.
24856 * lib/xstrtol-error.c: Likewise.
24857 * lib/xstrtol.c: Likewise.
24858 * lib/xstrtol.h: Likewise.
24859 * lib/xtime.h: Likewise.
24860 * lib/xvasprintf.c: Likewise.
24861 * lib/xvasprintf.h: Likewise.
24862 * lib/yesno.c: Likewise.
24863 * lib/yesno.h: Likewise.
24864 * posix-modules: Likewise.
24865 * tests/test-alloca-opt.c: Likewise.
24866 * tests/test-arcfour.c: Likewise.
24867 * tests/test-arctwo.c: Likewise.
24868 * tests/test-argmatch.c: Likewise.
24869 * tests/test-argp-2.sh: Likewise.
24870 * tests/test-argp.c: Likewise.
24871 * tests/test-arpa_inet.c: Likewise.
24872 * tests/test-array_list.c: Likewise.
24873 * tests/test-array_oset.c: Likewise.
24874 * tests/test-atexit.c: Likewise.
24875 * tests/test-avltree_list.c: Likewise.
24876 * tests/test-avltree_oset.c: Likewise.
24877 * tests/test-avltreehash_list.c: Likewise.
24878 * tests/test-base64.c: Likewise.
24879 * tests/test-binary-io.c: Likewise.
24880 * tests/test-byteswap.c: Likewise.
24881 * tests/test-c-ctype.c: Likewise.
24882 * tests/test-c-strcasecmp.c: Likewise.
24883 * tests/test-c-strcasestr.c: Likewise.
24884 * tests/test-c-strncasecmp.c: Likewise.
24885 * tests/test-c-strstr.c: Likewise.
24886 * tests/test-canonicalize-lgpl.c: Likewise.
24887 * tests/test-canonicalize.c: Likewise.
24888 * tests/test-carray_list.c: Likewise.
24889 * tests/test-ceilf.c: Likewise.
24890 * tests/test-ceill.c: Likewise.
24891 * tests/test-count-one-bits.c: Likewise.
24892 * tests/test-crc.c: Likewise.
24893 * tests/test-dirname.c: Likewise.
24894 * tests/test-fbufmode.c: Likewise.
24895 * tests/test-fcntl.c: Likewise.
24896 * tests/test-fflush.c: Likewise.
24897 * tests/test-floorf.c: Likewise.
24898 * tests/test-floorl.c: Likewise.
24899 * tests/test-fopen.c: Likewise.
24900 * tests/test-fprintf-posix.c: Likewise.
24901 * tests/test-fprintf-posix.h: Likewise.
24902 * tests/test-fpurge.c: Likewise.
24903 * tests/test-freadable.c: Likewise.
24904 * tests/test-freadahead.c: Likewise.
24905 * tests/test-freading.c: Likewise.
24906 * tests/test-freopen.c: Likewise.
24907 * tests/test-frexp.c: Likewise.
24908 * tests/test-frexpl.c: Likewise.
24909 * tests/test-fseek.c: Likewise.
24910 * tests/test-fseeko.c: Likewise.
24911 * tests/test-fseterr.c: Likewise.
24912 * tests/test-fstrcmp.c: Likewise.
24913 * tests/test-ftell.c: Likewise.
24914 * tests/test-ftello.c: Likewise.
24915 * tests/test-fwritable.c: Likewise.
24916 * tests/test-fwriting.c: Likewise.
24917 * tests/test-getaddrinfo.c: Likewise.
24918 * tests/test-getpass.c: Likewise.
24919 * tests/test-gettimeofday.c: Likewise.
24920 * tests/test-hmac-md5.c: Likewise.
24921 * tests/test-hmac-sha1.c: Likewise.
24922 * tests/test-iconv.c: Likewise.
24923 * tests/test-iconvme.c: Likewise.
24924 * tests/test-inttypes.c: Likewise.
24925 * tests/test-isnan.c: Likewise.
24926 * tests/test-isnanf.c: Likewise.
24927 * tests/test-isnanl-nolibm.c: Likewise.
24928 * tests/test-isnanl.c: Likewise.
24929 * tests/test-isnanl.h: Likewise.
24930 * tests/test-ldexpl.c: Likewise.
24931 * tests/test-linked_list.c: Likewise.
24932 * tests/test-linkedhash_list.c: Likewise.
24933 * tests/test-locale.c: Likewise.
24934 * tests/test-localename.c: Likewise.
24935 * tests/test-lock.c: Likewise.
24936 * tests/test-lseek.c: Likewise.
24937 * tests/test-malloca.c: Likewise.
24938 * tests/test-math.c: Likewise.
24939 * tests/test-mbscasecmp.c: Likewise.
24940 * tests/test-mbscasestr1.c: Likewise.
24941 * tests/test-mbscasestr2.c: Likewise.
24942 * tests/test-mbscasestr3.c: Likewise.
24943 * tests/test-mbscasestr4.c: Likewise.
24944 * tests/test-mbschr.c: Likewise.
24945 * tests/test-mbscspn.c: Likewise.
24946 * tests/test-mbsncasecmp.c: Likewise.
24947 * tests/test-mbspbrk.c: Likewise.
24948 * tests/test-mbspcasecmp.c: Likewise.
24949 * tests/test-mbsrchr.c: Likewise.
24950 * tests/test-mbsspn.c: Likewise.
24951 * tests/test-mbsstr1.c: Likewise.
24952 * tests/test-mbsstr2.c: Likewise.
24953 * tests/test-mbsstr3.c: Likewise.
24954 * tests/test-md5.c: Likewise.
24955 * tests/test-memmem.c: Likewise.
24956 * tests/test-netinet_in.c: Likewise.
24957 * tests/test-open.c: Likewise.
24958 * tests/test-printf-frexp.c: Likewise.
24959 * tests/test-printf-frexpl.c: Likewise.
24960 * tests/test-printf-posix.c: Likewise.
24961 * tests/test-printf-posix.h: Likewise.
24962 * tests/test-rbtree_list.c: Likewise.
24963 * tests/test-rbtree_oset.c: Likewise.
24964 * tests/test-rbtreehash_list.c: Likewise.
24965 * tests/test-read-file.c: Likewise.
24966 * tests/test-rijndael.c: Likewise.
24967 * tests/test-search.c: Likewise.
24968 * tests/test-signbit.c: Likewise.
24969 * tests/test-sleep.c: Likewise.
24970 * tests/test-snprintf-posix.c: Likewise.
24971 * tests/test-snprintf-posix.h: Likewise.
24972 * tests/test-snprintf.c: Likewise.
24973 * tests/test-sprintf-posix.c: Likewise.
24974 * tests/test-sprintf-posix.h: Likewise.
24975 * tests/test-stat-time.c: Likewise.
24976 * tests/test-stdbool.c: Likewise.
24977 * tests/test-stdint.c: Likewise.
24978 * tests/test-stdio.c: Likewise.
24979 * tests/test-stdlib.c: Likewise.
24980 * tests/test-stpncpy.c: Likewise.
24981 * tests/test-strcasestr.c: Likewise.
24982 * tests/test-striconv.c: Likewise.
24983 * tests/test-striconveh.c: Likewise.
24984 * tests/test-striconveha.c: Likewise.
24985 * tests/test-string.c: Likewise.
24986 * tests/test-sys_select.c: Likewise.
24987 * tests/test-sys_socket.c: Likewise.
24988 * tests/test-sys_stat.c: Likewise.
24989 * tests/test-sys_time.c: Likewise.
24990 * tests/test-sysexits.c: Likewise.
24991 * tests/test-time.c: Likewise.
24992 * tests/test-tls.c: Likewise.
24993 * tests/test-trunc.c: Likewise.
24994 * tests/test-truncf.c: Likewise.
24995 * tests/test-truncl.c: Likewise.
24996 * tests/test-unistd.c: Likewise.
24997 * tests/test-vasnprintf-posix.c: Likewise.
24998 * tests/test-vasnprintf-posix2.c: Likewise.
24999 * tests/test-vasnprintf.c: Likewise.
25000 * tests/test-vasprintf-posix.c: Likewise.
25001 * tests/test-vasprintf.c: Likewise.
25002 * tests/test-verify.c: Likewise.
25003 * tests/test-vfprintf-posix.c: Likewise.
25004 * tests/test-vprintf-posix.c: Likewise.
25005 * tests/test-vsnprintf-posix.c: Likewise.
25006 * tests/test-vsnprintf.c: Likewise.
25007 * tests/test-vsprintf-posix.c: Likewise.
25008 * tests/test-wchar.c: Likewise.
25009 * tests/test-wctype.c: Likewise.
25010 * tests/test-wcwidth.c: Likewise.
25011 * tests/test-xstrtol.c: Likewise.
25012 * tests/test-xvasprintf.c: Likewise.
25013 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
25014 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
25015 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25016 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25017 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25018 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
25019 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25020 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25021 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25022 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
25023 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25024 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25025 * tests/uniname/test-uninames.c: Likewise.
25026 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25027 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
25028 * tests/unistdio/test-u16-printf1.h: Likewise.
25029 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25030 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25031 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25032 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25033 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25034 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25035 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25036 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
25037 * tests/unistdio/test-u32-printf1.h: Likewise.
25038 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25039 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25040 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25041 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25042 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25043 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25044 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25045 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
25046 * tests/unistdio/test-u8-printf1.h: Likewise.
25047 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25048 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25049 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25050 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25051 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25052 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25053 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25054 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
25055 * tests/unistdio/test-ulc-printf1.h: Likewise.
25056 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25057 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25058 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25059 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25060 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25061 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25062 * tests/uniwidth/test-u16-strwidth.c: Likewise.
25063 * tests/uniwidth/test-u16-width.c: Likewise.
25064 * tests/uniwidth/test-u32-strwidth.c: Likewise.
25065 * tests/uniwidth/test-u32-width.c: Likewise.
25066 * tests/uniwidth/test-u8-strwidth.c: Likewise.
25067 * tests/uniwidth/test-u8-width.c: Likewise.
25068 * tests/uniwidth/test-uc_width.c: Likewise.
25069 * config/srclist-update: Likewise.
25070 (fixlicense): Update to GPLv3+.
25072 Change copyright notice from LGPLv2.1+ to LGPLv3+.
25073 * tests/test-tsearch.c: Change copyright notice.
25075 Change copyright notice from LGPLv2.0+ to LGPLv3+.
25076 * lib/c-strcaseeq.h: Change copyright notice.
25077 * lib/streq.h: Likewise.
25078 * lib/uniconv.h: Likewise.
25079 * lib/uniconv/u-conv-from-enc.h: Likewise.
25080 * lib/uniconv/u-conv-to-enc.h: Likewise.
25081 * lib/uniconv/u-strconv-from-enc.h: Likewise.
25082 * lib/uniconv/u-strconv-to-enc.h: Likewise.
25083 * lib/uniconv/u16-conv-from-enc.c: Likewise.
25084 * lib/uniconv/u16-conv-to-enc.c: Likewise.
25085 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
25086 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
25087 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
25088 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
25089 * lib/uniconv/u32-conv-from-enc.c: Likewise.
25090 * lib/uniconv/u32-conv-to-enc.c: Likewise.
25091 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
25092 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
25093 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
25094 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
25095 * lib/uniconv/u8-conv-from-enc.c: Likewise.
25096 * lib/uniconv/u8-conv-to-enc.c: Likewise.
25097 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
25098 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
25099 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
25100 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
25101 * lib/uniname.h: Likewise.
25102 * lib/uniname/uniname.c: Likewise.
25103 * lib/unistdio.h: Likewise.
25104 * lib/unistdio/u-asnprintf.h: Likewise.
25105 * lib/unistdio/u-asprintf.h: Likewise.
25106 * lib/unistdio/u-printf-args.c: Likewise.
25107 * lib/unistdio/u-printf-args.h: Likewise.
25108 * lib/unistdio/u-printf-parse.h: Likewise.
25109 * lib/unistdio/u-snprintf.h: Likewise.
25110 * lib/unistdio/u-sprintf.h: Likewise.
25111 * lib/unistdio/u-vasprintf.h: Likewise.
25112 * lib/unistdio/u-vsnprintf.h: Likewise.
25113 * lib/unistdio/u-vsprintf.h: Likewise.
25114 * lib/unistdio/u16-asnprintf.c: Likewise.
25115 * lib/unistdio/u16-asprintf.c: Likewise.
25116 * lib/unistdio/u16-printf-parse.c: Likewise.
25117 * lib/unistdio/u16-snprintf.c: Likewise.
25118 * lib/unistdio/u16-sprintf.c: Likewise.
25119 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
25120 * lib/unistdio/u16-u16-asprintf.c: Likewise.
25121 * lib/unistdio/u16-u16-snprintf.c: Likewise.
25122 * lib/unistdio/u16-u16-sprintf.c: Likewise.
25123 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
25124 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
25125 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
25126 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
25127 * lib/unistdio/u16-vasnprintf.c: Likewise.
25128 * lib/unistdio/u16-vasprintf.c: Likewise.
25129 * lib/unistdio/u16-vsnprintf.c: Likewise.
25130 * lib/unistdio/u16-vsprintf.c: Likewise.
25131 * lib/unistdio/u32-asnprintf.c: Likewise.
25132 * lib/unistdio/u32-asprintf.c: Likewise.
25133 * lib/unistdio/u32-printf-parse.c: Likewise.
25134 * lib/unistdio/u32-snprintf.c: Likewise.
25135 * lib/unistdio/u32-sprintf.c: Likewise.
25136 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
25137 * lib/unistdio/u32-u32-asprintf.c: Likewise.
25138 * lib/unistdio/u32-u32-snprintf.c: Likewise.
25139 * lib/unistdio/u32-u32-sprintf.c: Likewise.
25140 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
25141 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
25142 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
25143 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
25144 * lib/unistdio/u32-vasnprintf.c: Likewise.
25145 * lib/unistdio/u32-vasprintf.c: Likewise.
25146 * lib/unistdio/u32-vsnprintf.c: Likewise.
25147 * lib/unistdio/u32-vsprintf.c: Likewise.
25148 * lib/unistdio/u8-asnprintf.c: Likewise.
25149 * lib/unistdio/u8-asprintf.c: Likewise.
25150 * lib/unistdio/u8-printf-parse.c: Likewise.
25151 * lib/unistdio/u8-snprintf.c: Likewise.
25152 * lib/unistdio/u8-sprintf.c: Likewise.
25153 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
25154 * lib/unistdio/u8-u8-asprintf.c: Likewise.
25155 * lib/unistdio/u8-u8-snprintf.c: Likewise.
25156 * lib/unistdio/u8-u8-sprintf.c: Likewise.
25157 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
25158 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
25159 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
25160 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
25161 * lib/unistdio/u8-vasnprintf.c: Likewise.
25162 * lib/unistdio/u8-vasprintf.c: Likewise.
25163 * lib/unistdio/u8-vsnprintf.c: Likewise.
25164 * lib/unistdio/u8-vsprintf.c: Likewise.
25165 * lib/unistdio/ulc-asnprintf.c: Likewise.
25166 * lib/unistdio/ulc-asprintf.c: Likewise.
25167 * lib/unistdio/ulc-printf-parse.c: Likewise.
25168 * lib/unistdio/ulc-snprintf.c: Likewise.
25169 * lib/unistdio/ulc-sprintf.c: Likewise.
25170 * lib/unistdio/ulc-vasnprintf.c: Likewise.
25171 * lib/unistdio/ulc-vasprintf.c: Likewise.
25172 * lib/unistdio/ulc-vsnprintf.c: Likewise.
25173 * lib/unistdio/ulc-vsprintf.c: Likewise.
25174 * lib/unistr.h: Likewise.
25175 * lib/unistr/u-cpy-alloc.h: Likewise.
25176 * lib/unistr/u-cpy.h: Likewise.
25177 * lib/unistr/u-endswith.h: Likewise.
25178 * lib/unistr/u-move.h: Likewise.
25179 * lib/unistr/u-set.h: Likewise.
25180 * lib/unistr/u-startswith.h: Likewise.
25181 * lib/unistr/u-stpcpy.h: Likewise.
25182 * lib/unistr/u-stpncpy.h: Likewise.
25183 * lib/unistr/u-strcat.h: Likewise.
25184 * lib/unistr/u-strcpy.h: Likewise.
25185 * lib/unistr/u-strcspn.h: Likewise.
25186 * lib/unistr/u-strdup.h: Likewise.
25187 * lib/unistr/u-strlen.h: Likewise.
25188 * lib/unistr/u-strncat.h: Likewise.
25189 * lib/unistr/u-strncpy.h: Likewise.
25190 * lib/unistr/u-strnlen.h: Likewise.
25191 * lib/unistr/u-strpbrk.h: Likewise.
25192 * lib/unistr/u-strspn.h: Likewise.
25193 * lib/unistr/u-strstr.h: Likewise.
25194 * lib/unistr/u-strtok.h: Likewise.
25195 * lib/unistr/u16-check.c: Likewise.
25196 * lib/unistr/u16-chr.c: Likewise.
25197 * lib/unistr/u16-cmp.c: Likewise.
25198 * lib/unistr/u16-cpy-alloc.c: Likewise.
25199 * lib/unistr/u16-cpy.c: Likewise.
25200 * lib/unistr/u16-endswith.c: Likewise.
25201 * lib/unistr/u16-mblen.c: Likewise.
25202 * lib/unistr/u16-mbsnlen.c: Likewise.
25203 * lib/unistr/u16-mbtouc-aux.c: Likewise.
25204 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
25205 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
25206 * lib/unistr/u16-mbtouc.c: Likewise.
25207 * lib/unistr/u16-mbtoucr.c: Likewise.
25208 * lib/unistr/u16-move.c: Likewise.
25209 * lib/unistr/u16-next.c: Likewise.
25210 * lib/unistr/u16-prev.c: Likewise.
25211 * lib/unistr/u16-set.c: Likewise.
25212 * lib/unistr/u16-startswith.c: Likewise.
25213 * lib/unistr/u16-stpcpy.c: Likewise.
25214 * lib/unistr/u16-stpncpy.c: Likewise.
25215 * lib/unistr/u16-strcat.c: Likewise.
25216 * lib/unistr/u16-strchr.c: Likewise.
25217 * lib/unistr/u16-strcmp.c: Likewise.
25218 * lib/unistr/u16-strcpy.c: Likewise.
25219 * lib/unistr/u16-strcspn.c: Likewise.
25220 * lib/unistr/u16-strdup.c: Likewise.
25221 * lib/unistr/u16-strlen.c: Likewise.
25222 * lib/unistr/u16-strmblen.c: Likewise.
25223 * lib/unistr/u16-strmbtouc.c: Likewise.
25224 * lib/unistr/u16-strncat.c: Likewise.
25225 * lib/unistr/u16-strncmp.c: Likewise.
25226 * lib/unistr/u16-strncpy.c: Likewise.
25227 * lib/unistr/u16-strnlen.c: Likewise.
25228 * lib/unistr/u16-strpbrk.c: Likewise.
25229 * lib/unistr/u16-strrchr.c: Likewise.
25230 * lib/unistr/u16-strspn.c: Likewise.
25231 * lib/unistr/u16-strstr.c: Likewise.
25232 * lib/unistr/u16-strtok.c: Likewise.
25233 * lib/unistr/u16-to-u32.c: Likewise.
25234 * lib/unistr/u16-to-u8.c: Likewise.
25235 * lib/unistr/u16-uctomb-aux.c: Likewise.
25236 * lib/unistr/u16-uctomb.c: Likewise.
25237 * lib/unistr/u32-check.c: Likewise.
25238 * lib/unistr/u32-chr.c: Likewise.
25239 * lib/unistr/u32-cmp.c: Likewise.
25240 * lib/unistr/u32-cpy-alloc.c: Likewise.
25241 * lib/unistr/u32-cpy.c: Likewise.
25242 * lib/unistr/u32-endswith.c: Likewise.
25243 * lib/unistr/u32-mblen.c: Likewise.
25244 * lib/unistr/u32-mbsnlen.c: Likewise.
25245 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
25246 * lib/unistr/u32-mbtouc.c: Likewise.
25247 * lib/unistr/u32-mbtoucr.c: Likewise.
25248 * lib/unistr/u32-move.c: Likewise.
25249 * lib/unistr/u32-next.c: Likewise.
25250 * lib/unistr/u32-prev.c: Likewise.
25251 * lib/unistr/u32-set.c: Likewise.
25252 * lib/unistr/u32-startswith.c: Likewise.
25253 * lib/unistr/u32-stpcpy.c: Likewise.
25254 * lib/unistr/u32-stpncpy.c: Likewise.
25255 * lib/unistr/u32-strcat.c: Likewise.
25256 * lib/unistr/u32-strchr.c: Likewise.
25257 * lib/unistr/u32-strcmp.c: Likewise.
25258 * lib/unistr/u32-strcpy.c: Likewise.
25259 * lib/unistr/u32-strcspn.c: Likewise.
25260 * lib/unistr/u32-strdup.c: Likewise.
25261 * lib/unistr/u32-strlen.c: Likewise.
25262 * lib/unistr/u32-strmblen.c: Likewise.
25263 * lib/unistr/u32-strmbtouc.c: Likewise.
25264 * lib/unistr/u32-strncat.c: Likewise.
25265 * lib/unistr/u32-strncmp.c: Likewise.
25266 * lib/unistr/u32-strncpy.c: Likewise.
25267 * lib/unistr/u32-strnlen.c: Likewise.
25268 * lib/unistr/u32-strpbrk.c: Likewise.
25269 * lib/unistr/u32-strrchr.c: Likewise.
25270 * lib/unistr/u32-strspn.c: Likewise.
25271 * lib/unistr/u32-strstr.c: Likewise.
25272 * lib/unistr/u32-strtok.c: Likewise.
25273 * lib/unistr/u32-to-u16.c: Likewise.
25274 * lib/unistr/u32-to-u8.c: Likewise.
25275 * lib/unistr/u32-uctomb.c: Likewise.
25276 * lib/unistr/u8-check.c: Likewise.
25277 * lib/unistr/u8-chr.c: Likewise.
25278 * lib/unistr/u8-cmp.c: Likewise.
25279 * lib/unistr/u8-cpy-alloc.c: Likewise.
25280 * lib/unistr/u8-cpy.c: Likewise.
25281 * lib/unistr/u8-endswith.c: Likewise.
25282 * lib/unistr/u8-mblen.c: Likewise.
25283 * lib/unistr/u8-mbsnlen.c: Likewise.
25284 * lib/unistr/u8-mbtouc-aux.c: Likewise.
25285 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
25286 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
25287 * lib/unistr/u8-mbtouc.c: Likewise.
25288 * lib/unistr/u8-mbtoucr.c: Likewise.
25289 * lib/unistr/u8-move.c: Likewise.
25290 * lib/unistr/u8-next.c: Likewise.
25291 * lib/unistr/u8-prev.c: Likewise.
25292 * lib/unistr/u8-set.c: Likewise.
25293 * lib/unistr/u8-startswith.c: Likewise.
25294 * lib/unistr/u8-stpcpy.c: Likewise.
25295 * lib/unistr/u8-stpncpy.c: Likewise.
25296 * lib/unistr/u8-strcat.c: Likewise.
25297 * lib/unistr/u8-strchr.c: Likewise.
25298 * lib/unistr/u8-strcmp.c: Likewise.
25299 * lib/unistr/u8-strcpy.c: Likewise.
25300 * lib/unistr/u8-strcspn.c: Likewise.
25301 * lib/unistr/u8-strdup.c: Likewise.
25302 * lib/unistr/u8-strlen.c: Likewise.
25303 * lib/unistr/u8-strmblen.c: Likewise.
25304 * lib/unistr/u8-strmbtouc.c: Likewise.
25305 * lib/unistr/u8-strncat.c: Likewise.
25306 * lib/unistr/u8-strncmp.c: Likewise.
25307 * lib/unistr/u8-strncpy.c: Likewise.
25308 * lib/unistr/u8-strnlen.c: Likewise.
25309 * lib/unistr/u8-strpbrk.c: Likewise.
25310 * lib/unistr/u8-strrchr.c: Likewise.
25311 * lib/unistr/u8-strspn.c: Likewise.
25312 * lib/unistr/u8-strstr.c: Likewise.
25313 * lib/unistr/u8-strtok.c: Likewise.
25314 * lib/unistr/u8-to-u16.c: Likewise.
25315 * lib/unistr/u8-to-u32.c: Likewise.
25316 * lib/unistr/u8-uctomb-aux.c: Likewise.
25317 * lib/unistr/u8-uctomb.c: Likewise.
25318 * lib/unitypes.h: Likewise.
25319 * lib/uniwidth.h: Likewise.
25320 * lib/uniwidth/cjk.h: Likewise.
25321 * lib/uniwidth/u16-strwidth.c: Likewise.
25322 * lib/uniwidth/u16-width.c: Likewise.
25323 * lib/uniwidth/u32-strwidth.c: Likewise.
25324 * lib/uniwidth/u32-width.c: Likewise.
25325 * lib/uniwidth/u8-strwidth.c: Likewise.
25326 * lib/uniwidth/u8-width.c: Likewise.
25327 * lib/uniwidth/width.c: Likewise.
25329 2007-10-07 Bruno Haible <bruno@clisp.org>
25331 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
25332 The file is still under LGPL (see modules/inttypes).
25334 2007-10-06 Bruno Haible <bruno@clisp.org>
25336 * modules/trunc (Dependencies): Add 'extensions'.
25337 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
25338 Reported by Ben Pfaff <blp@gnu.org>.
25340 2007-10-06 Bruno Haible <bruno@clisp.org>
25342 * modules/freopen-tests: New file.
25343 * tests/test-freopen.c: New file.
25345 * modules/fopen-tests: New file.
25346 * tests/test-fopen.c: New file.
25348 * modules/fopen: New file.
25349 * lib/fopen.c: New file.
25350 * m4/fopen.m4: New file.
25351 * modules/freopen: New file.
25352 * lib/freopen.c: New file.
25353 * m4/freopen.m4: New file.
25354 * lib/stdio.in.h (fopen, freopen): New declarations.
25355 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
25356 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25357 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
25358 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25359 * doc/functions/fopen.texi: Mention the 'fopen' module.
25360 * doc/functions/freopen.texi: Mention the 'freopen' module.
25362 2007-10-06 Bruno Haible <bruno@clisp.org>
25364 * modules/open-tests: New file.
25365 * tests/test-open.c: New file.
25367 * modules/open: New file.
25368 * lib/open.c: New file.
25369 * m4/open.m4: New file.
25370 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
25372 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
25373 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
25375 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
25376 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
25378 * doc/functions/open.texi: Mention the 'open' module.
25380 2007-10-04 Bruno Haible <bruno@clisp.org>
25382 * modules/ceill-tests: New file.
25383 * tests/test-ceill.c: New file.
25385 * modules/ceill: New file.
25386 * lib/ceill.c: Replace entire file.
25387 * m4/ceill.m4: New file.
25388 * lib/math.in.h (ceill): Replace declaration.
25389 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
25390 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
25391 * doc/functions/ceill.texi: Mention the 'ceill' module.
25392 * modules/mathl (Files): Remove lib/ceill.c.
25393 (Depends-on): Add ceill.
25395 2007-10-04 Bruno Haible <bruno@clisp.org>
25397 * modules/ceilf-tests: New file.
25398 * tests/test-ceilf.c: New file.
25400 * modules/ceilf: New file.
25401 * lib/ceil.c: New file.
25402 * lib/ceilf.c: New file.
25403 * m4/ceilf.m4: New file.
25404 * lib/math.in.h (ceilf): New declaration.
25405 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
25407 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
25409 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
25411 2007-10-04 Bruno Haible <bruno@clisp.org>
25413 * modules/floorl-tests: New file.
25414 * tests/test-floorl.c: New file.
25416 * modules/floorl: New file.
25417 * lib/floorl.c: Replace entire file.
25418 * m4/floorl.m4: New file.
25419 * lib/math.in.h (floorl): Replace declaration.
25420 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
25421 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
25422 * doc/functions/floorl.texi: Mention the 'floorl' module.
25423 * modules/mathl (Files): Remove lib/floorl.c.
25424 (Depends-on): Add floorl.
25426 2007-10-04 Bruno Haible <bruno@clisp.org>
25428 * modules/floorf-tests: New file.
25429 * tests/test-floorf.c: New file.
25431 * modules/floorf: New file.
25432 * lib/floor.c: New file.
25433 * lib/floorf.c: New file.
25434 * m4/floorf.m4: New file.
25435 * lib/math.in.h (floorf): New declaration.
25436 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
25438 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
25440 * doc/functions/floorf.texi: Mention the 'floorf' module.
25442 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
25443 Bruno Haible <bruno@clisp.org>
25445 Advertise for the Git server instead of the CVS server.
25446 * doc/gnulib-intro.texi (Steady Development): Mention the Git
25447 repository instead of the CVS one.
25448 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
25449 about all VCS systems generically.
25450 * doc/gnulib.texi (Introduction): Capitalize `Git'.
25452 2007-10-04 Bruno Haible <bruno@clisp.org>
25454 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
25456 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
25458 2007-10-04 Bruno Haible <bruno@clisp.org>
25460 * modules/truncl-tests: New file.
25461 * tests/test-truncl.c: New file.
25463 * modules/truncl: New file.
25464 * lib/truncl.c: New file.
25465 * m4/truncl.m4: New file.
25466 * lib/math.in.h (truncl): New declaration.
25467 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
25469 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
25471 * doc/functions/truncl.texi: Mention the 'truncl' module.
25473 2007-10-04 Bruno Haible <bruno@clisp.org>
25475 * modules/truncf-tests: New file.
25476 * tests/test-truncf.c: New file.
25478 * modules/truncf: New file.
25479 * lib/trunc.c: Make paramerizable through USE_* macros.
25480 * lib/truncf.c: New file.
25481 * m4/truncf.m4: New file.
25482 * lib/math.in.h (truncf): New declaration.
25483 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
25485 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
25487 * doc/functions/truncf.texi: Mention the 'truncf' module.
25489 2007-10-03 Bruno Haible <bruno@clisp.org>
25491 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25492 augmentation also for tests modules.
25493 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
25494 * modules/atexit-tests (Makefile.am): Likewise.
25495 * modules/binary-io-tests (Makefile.am): Likewise.
25496 * modules/c-strcase-tests (Makefile.am): Likewise.
25497 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
25498 * modules/canonicalize-tests (Makefile.am): Likewise.
25499 * modules/closein-tests (Makefile.am): Likewise.
25500 * modules/fprintf-posix-tests (Makefile.am): Likewise.
25501 * modules/freadahead-tests (Makefile.am): Likewise.
25502 * modules/fseek-tests (Makefile.am): Likewise.
25503 * modules/fseeko-tests (Makefile.am): Likewise.
25504 * modules/ftell-tests (Makefile.am): Likewise.
25505 * modules/ftello-tests (Makefile.am): Likewise.
25506 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
25507 * modules/isnanl-tests (Makefile.am): Likewise.
25508 * modules/lseek-tests (Makefile.am): Likewise.
25509 * modules/mbscasecmp-tests (Makefile.am): Likewise.
25510 * modules/mbscasestr-tests (Makefile.am): Likewise.
25511 * modules/mbschr-tests (Makefile.am): Likewise.
25512 * modules/mbscspn-tests (Makefile.am): Likewise.
25513 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25514 * modules/mbspbrk-tests (Makefile.am): Likewise.
25515 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25516 * modules/mbsrchr-tests (Makefile.am): Likewise.
25517 * modules/mbsspn-tests (Makefile.am): Likewise.
25518 * modules/mbsstr-tests (Makefile.am): Likewise.
25519 * modules/printf-posix-tests (Makefile.am): Likewise.
25520 * modules/snprintf-posix-tests (Makefile.am): Likewise.
25521 * modules/sprintf-posix-tests (Makefile.am): Likewise.
25522 * modules/tsearch-tests (Makefile.am): Likewise.
25523 * modules/uniname/uniname-tests (Makefile.am): Likewise.
25524 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25525 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25526 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25527 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25528 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25529 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25530 * modules/vprintf-posix-tests (Makefile.am): Likewise.
25531 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
25532 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
25533 * modules/xstrtoimax-tests (Makefile.am): Likewise.
25534 * modules/xstrtol-tests (Makefile.am): Likewise.
25535 * modules/xstrtoumax-tests (Makefile.am): Likewise.
25536 * modules/yesno-tests (Makefile.am): Likewise.
25538 2007-10-03 Bruno Haible <bruno@clisp.org>
25540 * modules/trunc-tests: New file.
25541 * tests/test-trunc.c: New file.
25543 * modules/trunc: New file.
25544 * lib/trunc.c: New file.
25545 * m4/trunc.m4: New file.
25546 * lib/math.in.h (trunc): New declaration.
25547 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
25549 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
25551 * doc/functions/trunc.texi: Mention the 'trunc' module.
25553 2007-10-03 Bruno Haible <bruno@clisp.org>
25555 * tests/test-fpending.c: New file, mostly copied
25556 from coreutils/lib/t-fpending.c.
25557 * modules/fpending-tests: New file.
25559 2007-10-03 Bruno Haible <bruno@clisp.org>
25561 Port the stdio extensions to QNX (untested).
25562 * lib/fseterr.c (fseterr): Add support for QNX.
25563 * lib/fbufmode.c (fbufmode): Likewise.
25564 * lib/freadable.c (freadable): Likewise.
25565 * lib/fwritable.c (fwritable): Likewise.
25566 * lib/freading.c (freading): Likewise.
25567 * lib/fwriting.c (fwriting): Likewise.
25568 * lib/freadahead.c (freadahed): Likewise.
25569 * lib/fpurge.c (fpurge): Likewise.
25570 * lib/fseeko.c (rpl_fseeko): Likewise.
25572 2007-10-03 Bruno Haible <bruno@clisp.org>
25573 Jim Meyering <jim@meyering.net>
25574 Eric Blake <ebb9@byu.net>
25576 * doc/relocatable.texi: Use @command instead of @program.
25578 2007-10-02 Jim Meyering <jim@meyering.net>
25580 Perform one more "_.h" -> ".in.h" substitution.
25581 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
25582 instead of unistd_.h here, too.
25584 2007-10-01 Bruno Haible <bruno@clisp.org>
25586 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
25587 Needed for the alloca-opt module.
25589 2007-09-30 Bruno Haible <bruno@clisp.org>
25591 * lib/alloca.in.h: Renamed from lib/alloca_.h.
25592 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
25594 * lib/argz.in.h: Renamed from lib/argz_.h.
25595 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
25596 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
25597 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
25599 * lib/dirent.in.h: Renamed from lib/dirent_.h.
25600 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
25602 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
25603 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
25605 * lib/float.in.h: Renamed from lib/float_.h.
25606 * modules/float (Files, Makefile.am): Use float.in.h instead of
25608 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
25609 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
25611 * lib/getopt.in.h: Renamed from lib/getopt_.h.
25612 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
25614 * lib/glob.in.h: Renamed from lib/glob_.h.
25615 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
25616 * lib/iconv.in.h: Renamed from lib/iconv_.h.
25617 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
25619 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
25620 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
25622 * lib/locale.in.h: Renamed from lib/locale_.h.
25623 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
25625 * lib/math.in.h: Renamed from lib/math_.h.
25626 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
25627 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
25628 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
25629 of netinet_in_.h. Add dependency.
25630 * lib/poll.in.h: Renamed from lib/poll_.h.
25631 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
25632 * lib/search.in.h: Renamed from lib/search_.h.
25633 * modules/search (Files, Makefile.am): Use search.in.h instead of
25635 * lib/signal.in.h: Renamed from lib/signal_.h.
25636 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
25638 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
25639 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
25641 * lib/stdint.in.h: Renamed from lib/stdint_.h.
25642 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
25644 * lib/stdio.in.h: Renamed from lib/stdio_.h.
25645 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
25647 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
25648 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
25650 * lib/string.in.h: Renamed from lib/string_.h.
25651 * modules/string (Files, Makefile.am): Use string.in.h instead of
25653 * doc/gnulib-tool.texi (Initial import): Update.
25654 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
25655 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
25656 of sys_select_.h. Add dependency.
25657 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
25658 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
25660 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
25661 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
25663 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
25664 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
25666 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
25667 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
25669 * lib/time.in.h: Renamed from lib/time_.h.
25670 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
25671 * lib/unistd.in.h: Renamed from lib/unistd_.h.
25672 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
25674 * lib/wchar.in.h: Renamed from lib/wchar_.h.
25675 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
25677 * lib/wctype.in.h: Renamed from lib/wctype_.h.
25678 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
25680 * build-aux/bootstrap (slurp): Update.
25681 * lib/.cppi-disable: Update.
25683 2007-09-30 Bruno Haible <bruno@clisp.org>
25685 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
25688 2007-09-30 Bruno Haible <bruno@clisp.org>
25690 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
25692 2007-09-29 Bruno Haible <bruno@clisp.org>
25694 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
25696 2007-09-29 Bruno Haible <bruno@clisp.org>
25698 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
25699 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
25700 * build-aux/install-reloc: Compile also areadlink.c.
25701 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
25703 2007-09-29 Bruno Haible <bruno@clisp.org>
25705 * gnulib-tool (func_emit_initmacro_done): Indentation.
25707 2007-09-29 Bruno Haible <bruno@clisp.org>
25709 * README: Add CVS checkout update instructions.
25710 Info from Bob Proulx <bob@proulx.com>.
25712 2007-09-28 Eric Blake <ebb9@byu.net>
25714 Provide move-if-change.
25715 * build-aux/move-if-change: New file, based on best practice
25716 rather than any canonical upstream location.
25718 2007-09-28 Jim Meyering <jim@meyering.net>
25720 Fix canonicalize loop-detection corner case.
25721 Do not attempt to stat the symlink values stored via seen_triple.
25722 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
25723 on linux-2.6.18, (but not 2.6.22).
25724 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
25725 triple_compare. The former compares dev,ino,filename, while the latter
25726 would actually stat dirname(filename) when dev and ino were equal.
25727 * lib/hash-triple.c: Install <string.h>.
25729 (triple_compare_ino_str): New function.
25730 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
25732 2007-09-28 Eric Blake <ebb9@byu.net>
25734 Enforce that AC_REPLACE_FUNCS files exist.
25735 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
25736 override check for typos.
25738 Fix test-closein on Solaris 10.
25739 * tests/test-closein.c (main): Don't assume stdin can be inherited
25740 closed on all systems.
25741 * tests/test-closein.sh: Likewise.
25742 Reported by Piotr Tarnowski.
25744 2007-09-28 Jim Meyering <jim@meyering.net>
25746 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
25748 2007-09-27 Jim Meyering <jim@meyering.net>
25750 canonicalize: Avoid a false-positive cycle failure.
25751 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
25752 Sort. Remove cycle-check.
25753 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
25755 (seen_triple): New function.
25756 (canonicalize_filename_mode): Use it instead of cycle-check.
25757 * tests/test-canonicalize.c: Add a test for this bug.
25758 * tests/test-canonicalize.sh: Set up and run the test.
25760 New module, file-set, from coreutils.
25761 * modules/file-set: Define it.
25762 * lib/file-set.c, lib/file-set.h: Implement.
25764 New module, hash-triple, from coreutils.
25765 * modules/hash-triple: Define it.
25766 * lib/hash-triple.c, lib/hash-triple.h: Implement.
25768 2007-09-25 Eric Blake <ebb9@byu.net>
25770 Fix strerror on Interix.
25771 * lib/string_.h (strerror): Declare replacement.
25772 * doc/functions/strerror.texi (strerror): Document the Interix
25774 * modules/string (Makefile.am): Support new hooks.
25775 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
25776 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
25777 gl_FUNC_STRERROR_SEPARATE.
25778 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
25779 * lib/strerror.c (rpl_strerror): Provide replacement.
25780 * modules/strerror (Depends-on): Add string.
25781 (configure.ac): Detect use of module.
25782 * tests/test-strerror.c: New file.
25783 * modules/strerror-tests: New test module.
25784 * modules/argp (Depends-on): Add strerror.
25785 * modules/error (Depends-on): Likewise.
25786 Reported by Martin Koeppe.
25788 2007-09-24 Bruno Haible <bruno@clisp.org>
25790 * README: Update git instructions.
25792 2007-09-24 Eric Blake <ebb9@byu.net>
25794 Revert fpending breakage from 2007-09-08.
25795 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
25798 2007-09-24 Jim Meyering <jim@meyering.net>
25800 filenamecat.c: Add a test.
25801 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
25802 showing how the function works when DIR is the empty string.
25804 2007-09-21 Simon Josefsson <simon@josefsson.org>
25806 * tests/test-canonicalize.sh: Turn on executable bit.
25808 2007-09-19 Eric Blake <ebb9@byu.net>
25810 * README: Update CVS instructions.
25812 2007-09-18 Bruno Haible <bruno@clisp.org>
25814 * modules/areadlink: New file.
25815 * lib/areadlink.h (areadlink): New declaration.
25816 * lib/areadlink.c: New file, based on lib/xreadlink.c.
25818 2007-09-17 Jim Meyering <jim@meyering.net>
25820 * lib/savewd.c (ESTALE) [!defined]: Define.
25821 Reported to be required on Interix by Martin Koeppe.
25823 2007-09-17 Bruno Haible <bruno@clisp.org>
25825 * gnulib-tool (func_version): Use $version.
25827 2007-09-16 Bruno Haible <bruno@clisp.org>
25829 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
25830 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
25831 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
25832 Reported by Greg Schafer <gschafer@zip.com.au>.
25834 2007-09-15 Bruno Haible <bruno@clisp.org>
25836 * gnulib-tool (sed): Try a little harder to make bash understand the
25838 Reported by Bruce Korb <bruce.korb@gmail.com>.
25840 2007-09-13 Eric Blake <ebb9@byu.net>
25842 * ChangeLog: Remove conflict markers.
25844 2007-09-13 Simon Josefsson <simon@josefsson.org>
25846 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
25847 Reported by Bruno Haible <bruno@clisp.org>.
25849 2007-09-12 Bruno Haible <bruno@clisp.org>
25851 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
25852 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
25855 2007-09-12 Eric Blake <ebb9@byu.net>
25857 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
25858 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
25859 Autoconf definition.
25860 * modules/euidaccess (Depends-on): Add extensions, for
25861 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
25862 * modules/fnmatch (Depends-on): Likewise.
25863 * modules/getaddrinfo (Depends-on): Likewise.
25864 * modules/getdelim (Depends-on): Likewise.
25865 * modules/getline (Depends-on): Likewise.
25866 * modules/getsubopt (Depends-on): Likewise.
25867 * modules/gettext (Depends-on): Likewise.
25868 * modules/group-member (Depends-on): Likewise.
25869 * modules/mbchar (Depends-on): Likewise.
25870 * modules/memmem (Depends-on): Likewise.
25871 * modules/mempcpy (Depends-on): Likewise.
25872 * modules/memrchr (Depends-on): Likewise.
25873 * modules/pagealign_alloc (Depends-on): Likewise.
25874 * modules/readutmp (Depends-on): Likewise.
25875 * modules/stpcpy (Depends-on): Likewise.
25876 * modules/stpncpy (Depends-on): Likewise.
25877 * modules/strchrnul (Depends-on): Likewise.
25878 * modules/strndup (Depends-on): Likewise.
25879 * modules/strsep (Depends-on): Likewise.
25880 * modules/strverscmp (Depends-on): Likewise.
25881 * modules/vasprintf (Depends-on): Likewise.
25882 * modules/wcwidth (Depends-on): Likewise.
25883 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
25884 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
25885 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
25886 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
25887 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25888 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25889 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
25890 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25891 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
25892 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25893 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25894 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
25895 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
25896 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25897 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
25898 * m4/readutmp.m4 (gl_READUTMP): Likewise.
25899 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25900 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
25901 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25902 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
25903 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
25904 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
25905 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
25906 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
25907 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
25908 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25909 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
25910 so that lock.m4 can be used in gettext without extensions module.
25912 2007-09-11 Bruno Haible <bruno@clisp.org>
25914 * m4/isc-posix.m4: Remove file.
25915 Suggested by Eric Blake.
25917 2007-09-11 Eric Blake <ebb9@byu.net>
25919 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
25921 2007-09-10 Bruno Haible <bruno@clisp.org>
25923 * posix-modules: Fix typo in error message.
25924 Reported by Matt <mkraai@beckman.com>.
25926 2007-09-09 Bruno Haible <bruno@clisp.org>
25928 * doc/functions/getdelim.texi: Update list of platforms lacking the
25930 * doc/functions/getline.texi: Likewise.
25932 2007-09-09 Jim Meyering <jim@meyering.net>
25934 * lib/hash.c (hash_initialize): Detect calloc failure.
25935 Reported by Bruno Haible.
25937 2007-09-09 Bruno Haible <bruno@clisp.org>
25939 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
25940 malloc or realloc fails.
25942 2007-09-09 Bruno Haible <bruno@clisp.org>
25944 * modules/getcwd (Depends-on): Add malloc-posix.
25945 * modules/glob (Depends-on): Likewise.
25946 * modules/putenv (Depends-on): Likewise.
25947 * modules/strdup (Depends-on): Likewise.
25948 * modules/getdelim (Depends-on): Add realloc-posix.
25949 * modules/read-file (Depends-on): Likewise.
25951 2007-09-09 Bruno Haible <bruno@clisp.org>
25953 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
25954 (gl_FUNC_MALLOC_POSIX): Require it.
25955 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
25956 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
25957 * modules/realloc (Files): Add m4/malloc.m4.
25958 * modules/calloc (Files): Likewise.
25960 2007-09-09 Bruno Haible <bruno@clisp.org>
25962 * modules/malloc-posix: New file.
25963 * modules/malloc (Depends-on): Add malloc-posix.
25964 * lib/malloc.c: Include errno.h.
25965 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
25966 and a POSIX-compatible malloc into a single function. Set ENOMEM
25967 when returning NULL.
25968 * m4/malloc.m4: New file.
25969 * doc/functions/malloc.texi: Mention the malloc-posix module.
25970 * lib/stdlib_.h (malloc): New declaration.
25971 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25972 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
25973 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
25974 and HAVE_MALLOC_POSIX.
25976 2007-09-09 Bruno Haible <bruno@clisp.org>
25978 * modules/realloc-posix: New file.
25979 * modules/realloc (Depends-on): Add realloc-posix.
25980 * lib/realloc.c: Include errno.h.
25981 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
25982 and a POSIX-compatible realloc into a single function. Set ENOMEM
25983 when returning NULL.
25984 * m4/realloc.m4: New file.
25985 * doc/functions/realloc.texi: Mention the realloc-posix module.
25986 * lib/stdlib_.h (realloc): New declaration.
25987 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
25988 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
25989 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
25990 and HAVE_REALLOC_POSIX.
25992 2007-09-09 Bruno Haible <bruno@clisp.org>
25994 * modules/calloc-posix: New file.
25995 * modules/calloc (Depends-on): Add calloc-posix.
25996 * lib/calloc.c: Include errno.h.
25997 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
25998 and a POSIX-compatible calloc into a single function. Set ENOMEM
25999 when returning NULL.
26000 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
26001 * doc/functions/calloc.texi: Mention the calloc-posix module.
26002 * lib/stdlib_.h (calloc): New declaration.
26003 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26004 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
26005 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
26006 and HAVE_CALLOC_POSIX.
26008 2007-09-09 Bruno Haible <bruno@clisp.org>
26010 Allow for modules to show an arbitrary notice.
26011 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
26012 * gnulib-tool: New option --extract-notice.
26013 (func_usage): Document it.
26014 (sed_extract_prog): Update.
26015 (func_get_notice): New function.
26016 (func_modules_notice): New function.
26017 (func_import, func_create_testdir): Invoke it.
26018 Suggested by Jim Meyering.
26020 2007-09-09 Bruno Haible <bruno@clisp.org>
26022 * gnulib-tool: New options --verbose, --quiet.
26023 (func_usage): Document them.
26024 (verbose): New variable.
26025 (func_execute_command): New function.
26026 (func_import): Don't show the module list and the file list if
26028 (func_create_testdir): Likewise. Use func_execute_command.
26029 (func_create_megatestdir): Use func_execute_command.
26031 2007-09-08 Bruno Haible <bruno@clisp.org>
26033 * gnulib-tool (func_import): Prefer rsync over wget when available,
26034 for fetching the PO files.
26036 2007-09-08 Bruno Haible <bruno@clisp.org>
26038 * posix-modules: New file. Portions copied from gnulib-tool.
26039 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
26041 2007-09-08 Jim Meyering <jim@meyering.net>
26043 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
26044 * lib/fpending.h: Rename from __fpending.h.
26045 * lib/fpending.c: Rename from __fpending.c.
26046 Include "fpending.h", not "__fpending.h".
26047 * lib/__fpending.h, lib/__fpending.c: Remove files.
26048 * modules/fpending (Files): Reflect new file names.
26049 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
26051 2007-09-08 Bruno Haible <bruno@clisp.org>
26053 * m4/inttypes-h.m4: Remove stub file.
26055 2007-09-07 Simon Josefsson <simon@josefsson.org>
26057 * doc/headers/stdint.texi: Discuss #include_next issue.
26059 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
26061 * build-aux/bootstrap: Remove obsolete comment about wget --help.
26063 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26065 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
26068 2007-09-03 Jim Meyering <jim@meyering.net>
26070 New module: git-version-gen.
26071 * modules/git-version-gen: New file.
26073 Import changes from coreutils for bootstrap script.
26075 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
26077 bootstrap: uses rsync to download the .po files
26078 * build-aux/bootstrap (po_download_command_format): New global.
26079 (download_po_files): Use rsync.
26080 (update_po_files): Don't remove .po files after download,
26081 so future rsync runs can take advantage of the copies.
26083 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
26085 Solve the unnecessary-.po-file-regeneration problem once and for all.
26086 * build-aux/bootstrap (download_po_files): New function, renamed from
26087 get_translations. Now, downloads, but doesn't update LINGUAS.
26088 (update_po_files): New function.
26090 bootstrap: Ignore more.
26091 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
26092 uniwidth to e.g., lib/.gitignore.
26093 (slurp): Handle the sys_stat_.h -> sys mapping, too.
26095 * build-aux/bootstrap: New setting: vc_ignore.
26096 (insert_sorted_if_absent): Create $file if absent.
26097 Adapt to new, possibly empty, list: $vc_ignore.
26099 bootstrap: generate more ignorable names
26100 * build-aux/bootstrap (slurp): When generating ignorable names,
26101 also map .sin to .sed, .gperf to .c, and .y to .c.
26103 2007-09-03 Jim Meyering <jim@meyering.net>
26105 * build-aux/git-version-gen: New file, from coreutils. For details, see
26106 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
26108 2007-09-02 Bruno Haible <bruno@clisp.org>
26110 Fix mis-recognition of 'mcs' on QNX 6.
26111 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
26112 output contains the string "Mono".
26113 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
26114 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
26116 2007-09-01 Bruno Haible <bruno@clisp.org>
26118 Fix collision between uniwidth/* and linebreak modules.
26119 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
26120 u32_width): Remove declarations.
26121 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
26122 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
26123 streq3, streq2, streq1, streq0): Remove functions.
26124 (STREQ): Remove macro.
26125 (is_cjk_encoding): Remove function.
26126 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
26127 (uc_width, u8_width, u16_width, u32_width): Remove functions.
26128 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
26129 * NEWS: Document the change.
26131 2007-09-01 Bruno Haible <bruno@clisp.org>
26133 * lib/streq.h: Add double-inclusion guard.
26135 2007-09-01 Karl Berry <karl@gnu.org>
26137 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
26139 2007-08-28 Jim Meyering <jim@meyering.net>
26141 Rename mreadlink_with_size to areadlink_with_size.
26142 * NEWS: Document the change.
26143 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
26144 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
26145 * lib/mreadlink.h: Rename this to...
26146 * lib/areadlink.h: ...this.
26147 * modules/mreadlink-with-size: Rename this to...
26148 * modules/areadlink-with-size: ...this.
26149 * lib/canonicalize.c: Reflect the renaming.
26150 * modules/canonicalize: Likewise.
26152 2007-08-26 Bruno Haible <bruno@clisp.org>
26154 * gnulib-tool (func_import): When deciding which files to remove,
26155 consider also dangling symbolic links.
26156 Reported by Eric Blake.
26158 2007-08-26 Bruno Haible <bruno@clisp.org>
26160 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
26162 2007-08-23 Simon Josefsson <simon@josefsson.org>
26164 * lib/readline.c: Don't include getline.h, the prototype is now
26167 2007-08-23 Jim Meyering <jim@meyering.net>
26170 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
26171 around the funlockfile call, since funlockfile never sets errno.
26172 Don't set errno upon failed realloc.
26174 2007-08-22 Eric Blake <ebb9@byu.net>
26177 * lib/getdelim.c (getdelim): Revert regression that required *n to
26178 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
26179 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
26180 getdelim, rather than whether implementation is missing.
26181 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
26182 * lib/stdio_.h (getline): Also declare if replacement is
26184 * doc/functions/getdelim.texi: New file.
26185 * doc/functions/getline.texi: Likewise.
26186 * doc/gnulib.texi (Function Substitutes): Add new files.
26187 Reported by Bruno Haible.
26189 2007-08-22 Ludovic Courtès <ludo@gnu.org>
26191 * users.txt: Add Guile.
26193 2007-08-22 Eric Blake <ebb9@byu.net>
26195 * tests/test-getdelim.c (main): Use remove, not unlink.
26196 * tests/test-getline.c (main): Likewise.
26198 Move getline and getdelim into stdio.h, per POSIX 200x.
26199 * modules/getline (Files): Remove getline.h.
26200 (Depends-on): Add stdio.
26201 (configure.ac): Add module indicator.
26202 * modules/getdelim (Files): Remove getdelim.h.
26203 (Depends-on): Add stdio.
26204 (configure.ac): Add module indicator.
26205 * modules/stdio (Makefile.am): Work with new indicators.
26206 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26207 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
26208 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26209 * lib/getdelim.h: Delete.
26210 * lib/getline.h: Delete.
26211 * lib/stdio_.h (getdelim, getline): Declare.
26212 * modules/getdelim-tests: New module.
26213 * modules/getline-tests: Likewise.
26214 * tests/test-getdelim.c: New file.
26215 * tests/test-getline.c: Likewise.
26216 * NEWS: Document the change.
26217 * lib/getline.c: Update choice of header.
26218 * lib/csharpcomp.c: Likewise.
26219 * lib/getpass.c: Likewise.
26220 * lib/javacomp.c: Likewise.
26221 * lib/javaversion.c: Likewise.
26222 * lib/yesno.c: Likewise.
26223 * lib/getdelim.c: Likewise.
26224 (getdelim): Set errno on failure, and avoid memory leak.
26226 2007-08-19 Bruno Haible <bruno@clisp.org>
26228 * modules/closein (Depends-on): Add freadahead.
26229 * lib/closein.c: Include freadahead.h.
26230 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
26233 2007-08-19 Bruno Haible <bruno@clisp.org>
26235 * modules/freadahead-tests: New file.
26236 * tests/test-freadahead.sh: New file.
26237 * tests/test-freadahead.c: New file.
26239 * modules/freadahead: New file.
26240 * lib/freadahead.h: New file.
26241 * lib/freadahead.c: New file.
26242 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
26243 fbufmode, fpurge, freadable, fwritable.
26245 2007-08-19 Eric Blake <ebb9@byu.net>
26247 Test yesno in combination with closein.
26248 * lib/yesno.c (yesno): Document use of stdin.
26249 * modules/yesno-tests (Files): New module.
26250 * tests/test-yesno.c (main): New file.
26251 * tests/test-yesno.sh: Likewise.
26253 2007-08-19 Bruno Haible <bruno@clisp.org>
26255 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
26256 * lib/fseeko.c (rpl_fseeko): Likewise.
26257 * lib/fseterr.c (fseterr): Likewise.
26259 2007-08-19 Bruno Haible <bruno@clisp.org>
26261 * tests/test-lseek.c (main): Disable a test for BeOS.
26262 * doc/functions/lseek.texi: Document the BeOS bug.
26264 2007-08-19 Bruno Haible <bruno@clisp.org>
26265 Eric Blake <ebb9@byu.net>
26267 * lib/lseek.c: Include <sys/stat.h>.
26268 (rpl_lseek): Add workaround code also for Unix platforms.
26270 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
26271 * doc/functions/lseek.texi: Document BeOS definiency.
26273 2007-08-18 Bruno Haible <bruno@clisp.org>
26275 * modules/fstrcmp-tests: New file.
26276 * tests/test-fstrcmp.c: New file.
26278 2007-08-18 Bruno Haible <bruno@clisp.org>
26280 * modules/fstrcmp: New file, from GNU gettext with modifications.
26281 * lib/fstrcmp.h: New file, from GNU gettext.
26282 * lib/fstrcmp.c: New file, from GNU gettext.
26283 * MODULES.html.sh (String handling): Add fstrcmp.
26285 2007-08-18 Bruno Haible <bruno@clisp.org>
26287 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
26289 (diag, compareseq): Remove const from the ctxt argument.
26290 (USE_HEURISTIC): Undefine at the end.
26292 2007-08-18 Jim Meyering <jim@meyering.net>
26294 New file: lib/idcache.h
26295 * NEWS: Mention the addition.
26296 * modules/idcache (Files): Add lib/idcache.h
26297 * lib/idcache.c: Include "idcache.h".
26298 Don't include <sys/types.h>.
26299 Add a FIXME comment.
26300 Move file-scoped "static" declarations to the top.
26301 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
26303 2007-08-17 Bruno Haible <bruno@clisp.org>
26304 and Paul Eggert <eggert@cs.ucla.edu>
26306 * MODULES.html.sh: Add diffseq.
26307 * modules/diffseq: New file.
26308 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
26309 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
26311 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
26313 Import changes from coreutils for bootstrap script.
26315 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
26317 * build-aux/bootstrap (slurp): Work even in environments where
26318 "ls" defaults to "ls -A". Put in a FIXME, though, since the
26319 current code does not slurp files whose names start with ".", and
26320 this looks like it might be a troublesome area.
26322 2007-07-11 Jim Meyering <jim@meyering.net>
26324 If there's a GPL vN copyright comment, require that N == 3.
26326 2007-07-08 Jim Meyering <jim@meyering.net>
26328 Run the coreutils-specific code only if tests/Makefile.am.in exists.
26329 * build-aux/bootstrap (mam_template): Move definition out of loop.
26331 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
26333 * build-aux/bootstrap (symlink_to_dir): Rename function from
26334 symlink_to_gnulib. Add a directory parameter. Update all
26336 (cp_mark_as_generated): Also check for -- and link to -- files in
26339 2007-07-08 Jim Meyering <jim@meyering.net>
26341 Adapt to deeper hierarchy in gnulib.
26342 * build-aux/bootstrap (symlink_to_dir): If the destination
26343 directory doesn't exist, create it. This is required at least for
26344 "lib/uniwidth/cjk.h".
26346 2007-05-15 Jim Meyering <jim@meyering.net>
26348 * build-aux/bootstrap: Now that generated Makefile.am files
26349 are no longer under version control, they must be created at
26352 2007-08-14 Ben Pfaff <blp@gnu.org>
26354 * lib/count-one-bits.h: Add comments. From Bruno Haible.
26356 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
26358 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
26359 given the changes below.
26360 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
26361 even on hosts that have padding bits beyond the supported 64.
26363 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
26365 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
26366 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
26367 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
26369 (xstrtol_error): Remove.
26370 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
26371 but with a different signature.
26372 (ATTRIBUTE_NORETURN, __attribute__): New macros.
26373 * lib/xstrtol-error.c: Include exitfail.h.
26374 (xstrtol_fatal): New function, with a different signature from the
26375 old xstrtol_error, so that the caller need not worry about passing
26376 in an exit status, or about storage management of the option argument.
26377 (xstrtol_error): Now a static function. Redo signature to
26378 implement xstrtol_fatal. Output the correct number of hyphens in
26379 front of the option so that the caller need not worry about
26380 storage management.
26382 (_): Remove; not used now.
26383 * modules/xstrtol: Depend on getopt.
26384 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
26385 of old STRTOL_FATAL_ERROR macro.
26386 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
26388 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
26389 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
26391 2007-08-08 Eric Blake <ebb9@byu.net>
26393 * lib/xstrtol-error.c: Add missing include.
26395 Move xstrtol messages into gnulib domain, when --pobase is used.
26396 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
26397 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
26398 * modules/xstrtol (Files): Distribute new file.
26399 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
26400 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
26401 * tests/test-xstrtol.c: ...into new file.
26402 * tests/test-xstrtoul.c: Also test xstrtoul.
26403 * tests/test-xstrtoimax.c: Also test xstrtoimax.
26404 * tests/test-xstrtoumax.c: Also test xstrtoumax.
26405 * tests/test-xstrtol.sh: Drive the tests.
26406 * tests/test-xstrtoimax.sh: Likewise.
26407 * tests/test-xstrtoumax.sh: Likewise.
26408 * modules/xstrtol-tests: New module.
26409 * modules/xstrtoimax-tests: Likewise.
26410 * modules/xstrtoumax-tests: Likewise.
26412 2007-08-08 Jim Meyering <jim@meyering.net>
26414 New function: mfile_name_concat.
26415 * lib/filenamecat.c (mfile_name_concat): New function, just like
26416 file_name_concat, but return NULL upon failure rather than exiting
26418 * lib/filenamecat.h: Declare it.
26420 2007-08-07 Bruno Haible <bruno@clisp.org>
26422 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
26423 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
26425 Reported by Eric Blake.
26427 2007-08-07 Simon Josefsson <simon@josefsson.org>
26429 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
26430 * modules/crypto/arcfour (License): Likewise.
26431 * modules/crypto/des-tests (License): Likewise.
26432 * modules/crypto/gc-arctwo-tests (License): Likewise.
26433 * modules/crypto/gc-des-tests (License): Likewise.
26434 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
26435 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
26436 * modules/crypto/gc-md2-tests (License): Likewise.
26437 * modules/crypto/gc-md4-tests (License): Likewise.
26438 * modules/crypto/gc-md5-tests (License): Likewise.
26439 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
26440 * modules/crypto/gc-rijndael-tests (License): Likewise.
26441 * modules/crypto/gc-sha1-tests (License): Likewise.
26442 * modules/crypto/gc-tests (License): Likewise.
26443 * modules/crypto/hmac-md5 (License): Likewise.
26444 * modules/crypto/hmac-sha1 (License): Likewise.
26445 * modules/crypto/md2-tests (License): Likewise.
26446 * modules/crypto/md4-tests (License): Likewise.
26447 * modules/crypto/md5 (License): Likewise.
26448 * modules/crypto/rijndael (License): Likewise.
26449 * modules/crypto/sha1 (License): Likewise.
26450 * modules/memxor (License): Likewise.
26452 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
26453 and Bruno Haible <bruno@clisp.org>
26455 * NEWS: Describe interface changes to human, xstrtol.
26456 * lib/human.h: Include <xstrtol.h>.
26457 (human_options): Return enum strtol_error, not int. Remove
26458 bool arg; take int * instead.
26459 * lib/human.c: Don't include "gettext.h".
26460 (_): Remove; no longer used.
26461 Don't include <xstrtol.h>, since human.h does it.
26462 (human_options): Adjust to abovementioned interface changes.
26463 Do not report error to stderr; that's now the caller's
26465 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
26467 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
26468 Str, Argument_type_string. All uses changed. Put " argument"
26469 in diagnostics to make them clearer. Change wording of suffix
26470 message for clarity.
26471 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
26472 Argument_type_string.
26473 (STRTOL_FATAL_WARN): Remove; no longer used.
26474 * modules/human (Depends-on): Remove gettext-h.
26476 2007-08-06 Simon Josefsson <simon@josefsson.org>
26478 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
26480 2007-07-31 Bruno Haible <bruno@clisp.org>
26482 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
26483 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
26484 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
26486 2007-07-31 Bruno Haible <bruno@clisp.org>
26488 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
26489 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
26491 2007-07-30 Bruno Haible <bruno@clisp.org>
26493 * modules/base64 (License): Use the synonymous term "LGPLv2+".
26494 * modules/c-ctype (License): Likewise.
26495 * modules/c-strcase (License): Likewise.
26496 * modules/check-version (License): Likewise.
26497 * modules/iconv (License): Likewise.
26498 * modules/iconv_open (License): Likewise.
26499 * modules/read-file (License): Likewise.
26500 * modules/striconv (License): Likewise.
26501 * modules/strverscmp (License): Likewise.
26502 * modules/vasprintf (License): Likewise.
26503 * modules/crypto/des (License): Likewise.
26504 * modules/crypto/gc (License): Likewise.
26505 * modules/crypto/gc-arcfour (License): Likewise.
26506 * modules/crypto/gc-arctwo (License): Likewise.
26507 * modules/crypto/gc-des (License): Likewise.
26508 * modules/crypto/gc-hmac-md5 (License): Likewise.
26509 * modules/crypto/gc-hmac-sha1 (License): Likewise.
26510 * modules/crypto/gc-md2 (License): Likewise.
26511 * modules/crypto/gc-md4 (License): Likewise.
26512 * modules/crypto/gc-md5 (License): Likewise.
26513 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
26514 * modules/crypto/gc-random (License): Likewise.
26515 * modules/crypto/gc-rijndael (License): Likewise.
26516 * modules/crypto/gc-sha1 (License): Likewise.
26517 * modules/crypto/md2 (License): Likewise.
26518 * modules/crypto/md4 (License): Likewise.
26520 2007-07-30 Jim Meyering <jim@meyering.net>
26522 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
26523 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
26524 it has valid stat data. This bug would cause du not to count the
26525 sizes of inaccessible directories.
26526 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
26527 in <http://bugzilla.redhat.com/250077>.
26529 2007-07-25 Peter O'Gorman <peter@pogma.com>
26530 Bruno Haible <bruno@clisp.org>
26532 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
26533 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
26534 #include_next, gives a diagnostic about it, but reports no error in
26536 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26538 2007-07-24 Ben Pfaff <blp@gnu.org>
26540 Improve name: "count-one-bits" is better than "popcount".
26541 * MODULES.html.sh: Update name.
26542 * lib/popcount.h: Renamed lib/count-one-bits.h.
26543 (popcount): Renamed count_one_bits.
26544 (popcountl): Renamed count_one_bits_l.
26545 (popcountll): Renamed count_one_bits_ll.
26546 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
26547 * modules/popcount: Renamed module/count-one-bits.
26548 * modules/popcount-tests: Renamed module/count-one-bits-tests.
26549 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
26551 2007-07-23 Ben Pfaff <blp@gnu.org>
26553 * lib/popcount.h (popcount32): Reduce size of constants, to allow
26554 better code generation, and add U to large constants to avoid
26555 warnings, in non-GCC case.
26556 Suggested by Bruno Haible.
26558 2007-07-23 Ben Pfaff <blp@gnu.org>
26560 * lib/popcount.h: Use verify_true instead of if...abort.
26561 * modules/popcount: Depend on verify module.
26562 Suggested by Jim Meyering.
26564 2007-07-23 Bruno Haible <bruno@clisp.org>
26566 * gnulib-tool (func_import): Create a .cvsignore file also when the
26567 directory is not yet in CVS but the toplevel directory is. When
26568 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
26569 Reported by Karl Berry.
26571 2007-07-22 Ben Pfaff <blp@gnu.org>
26573 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
26575 Suggested by Eric Blake.
26577 2007-07-22 Ben Pfaff <blp@gnu.org>
26579 New module: popcount.
26580 * MODULES.html.sh: Add popcount.
26581 * modules/popcount: New file.
26582 * modules/popcount-tests: New file.
26583 * tests/test-popcount.c: New file.
26584 * lib/popcount.h: New file.
26585 * m4/popcount.m4: New file.
26587 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
26589 * build-aux/announce-gen: Update to GPLv3.
26591 * build-aux/config.guess: Update from config.
26593 2007-07-21 Bruno Haible <bruno@clisp.org>
26595 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
26596 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
26598 2007-07-20 Jim Meyering <jim@meyering.net>
26600 * check-module: Diagnose a self-dependency.
26602 2007-07-19 Bruno Haible <bruno@clisp.org>
26604 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
26606 Reported by Eric Blake.
26608 2007-07-18 Bruno Haible <bruno@clisp.org>
26610 * gnulib-tool: New options --po-base, --po-domain.
26611 (func_usage): Document them.
26612 (pobase, po_domain): New variables.
26613 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
26614 DEFAULT_TEXT_DOMAIN.
26615 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
26616 (func_import): Consider pobase and po_domain. Create a po/ directory.
26617 (func_create_testdir): Set pobase and po_domain to empty.
26618 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
26619 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
26621 2007-07-18 Bruno Haible <bruno@clisp.org>
26623 * gnulib-tool (func_get_automake_snippet): Synthesize also an
26624 EXTRA_DIST augmentation for files in build-aux/.
26626 2007-07-16 Bruno Haible <bruno@clisp.org>
26628 * modules/lseek (License): Use the synonymous term "LGPLv2+".
26629 * modules/getdelim (License): Likewise.
26631 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26633 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
26634 * modules/d-type (License): Likewise.
26635 * modules/extensions (License): Likewise.
26636 * modules/fnmatch (License): Likewise.
26637 * modules/fseeko (License): Likewise.
26638 * modules/getaddrinfo (License): Likewise.
26639 * modules/getline (License): Likewise.
26640 * modules/getlogin_r (License): Likewise.
26641 * modules/getpass (License): Likewise.
26642 * modules/gettimeofday (License): Likewise.
26643 * modules/glob (License): Likewise.
26644 * modules/inet_ntop (License): Likewise.
26645 * modules/malloc (License): Likewise.
26646 * modules/malloca (License): Likewise.
26647 * modules/memmem (License): Likewise.
26648 * modules/mempcpy (License): Likewise.
26649 * modules/memset (License): Likewise.
26650 * modules/minmax (License): Likewise.
26651 * modules/mktime (License): Likewise.
26652 * modules/netinet_in (License): Likewise.
26653 * modules/pathmax (License): Likewise.
26654 * modules/poll (License): Likewise.
26655 * modules/regex (License): Likewise.
26656 * modules/snprintf (License): Likewise.
26657 * modules/stdbool (License): Likewise.
26658 * modules/stdint (License): Likewise.
26659 * modules/stdio (License): Likewise.
26660 * modules/strcase (License): Likewise.
26661 * modules/strcasestr (License): Likewise.
26662 * modules/strdup (License): Likewise.
26663 * modules/string (License): Likewise.
26664 * modules/strndup (License): Likewise.
26665 * modules/strnlen (License): Likewise.
26666 * modules/strpbrk (License): Likewise.
26667 * modules/strptime (License): Likewise.
26668 * modules/strsep (License): Likewise.
26669 * modules/sys_select (License): Likewise.
26670 * modules/sys_socket (License): Likewise.
26671 * modules/sys_stat (License): Likewise.
26672 * modules/sys_time (License): Likewise.
26673 * modules/time (License): Likewise.
26674 * modules/time_r (License): Likewise.
26675 * modules/timegm (License): Likewise.
26676 * modules/unistd (License): Likewise.
26677 * modules/vsnprintf (License): Likewise.
26678 * modules/wctype (License): Likewise.
26680 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26682 * modules/argz (License): LGPLv2+.
26684 2007-07-15 Karl Berry <karl@gnu.org>
26686 * doc/gnulib.texi: revise node structure per new fdl.texi.
26688 2007-07-14 Bruno Haible <bruno@clisp.org>
26690 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
26692 * lib/uniname/uninames.h: Regenerated.
26694 2007-07-14 Karl Berry <karl@gnu.org>
26696 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
26697 omitting sectioning and index commands.
26699 2007-07-13 Bruno Haible <bruno@clisp.org>
26701 New gnulib-tool option --more-symlinks.
26702 * gnulib-tool (func_usage): Document --more-symlinks.
26703 (do_copyrights): New variable.
26704 Recognize option --more-symlinks.
26705 (func_import): Don't add a copyright notice transform to
26706 sed_transform_lib_file if do_copyrights is empty.
26708 2007-07-13 Bruno Haible <bruno@clisp.org>
26710 * lib/vasnprintf.c (decimal_point_char): Define also if
26711 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
26712 && !NEED_PRINTF_DIRECTIVE_A.
26713 Reported by Clemens Koller <clemens.koller@anagramm.de> via
26714 Gary V. Vaughan <gary@gnu.org>.
26716 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
26718 * lib/inttypes_.h: Undo previous change, since it was fixed
26719 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
26721 2007-07-13 Bruno Haible <bruno@clisp.org>
26723 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
26724 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
26726 2007-07-13 Jim Meyering <jim@meyering.net>
26728 df: Don't fail for Tru64's "file-on-file mount".
26729 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
26730 so we fall through and use statfs instead. Details here:
26731 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
26732 Reported by Albert Chin.
26734 2007-07-13 Bruno Haible <bruno@clisp.org>
26736 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
26737 * modules/configmake (License): Likewise.
26738 * modules/gettext (License): Likewise.
26739 * modules/gettext-h (License): Likewise.
26740 * modules/include_next (License): Likewise.
26741 * modules/link-warning (License): Likewise.
26742 * modules/localcharset (License): Likewise.
26743 * modules/localename (License): Likewise.
26744 * modules/lock (License): Likewise.
26745 * modules/relocatable-lib-lgpl (License): Likewise.
26746 * modules/size_max (License): Likewise.
26747 * modules/vasnprintf (License): Likewise.
26748 * modules/wchar (License): Likewise.
26749 * modules/xsize (License): Likewise.
26751 2007-07-13 Bruno Haible <bruno@clisp.org>
26753 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
26754 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
26756 2007-07-12 Bruno Haible <bruno@clisp.org>
26758 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
26759 in the modules files.
26761 2007-07-11 Karl Berry <karl@gnu.org>
26763 * MODULES.html.sh (func_module): use
26764 sed -e '\|^'"${includefile}"'$|d'
26765 instead of /.../d, to avoid errors on $includefile's containing /.
26767 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
26769 * gnulib-tool (func_import): Avoid duplication of --avoid
26771 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
26772 names to `_' in variable names.
26774 2007-07-10 Eric Blake <ebb9@byu.net>
26776 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
26777 * NEWS: Document this change.
26779 2007-07-08 Bruno Haible <bruno@clisp.org>
26781 Update to Unicode 5.0.
26782 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
26783 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
26784 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
26785 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
26786 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
26787 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
26788 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
26789 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
26790 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
26791 U+10A3F, U+1D242..U+1D244.
26792 (nonspacing_table_ind): Update.
26793 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
26794 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
26796 2007-07-08 Bruno Haible <bruno@clisp.org>
26798 Update to Unicode 5.0.
26799 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
26800 code transform. Extend the name index field of unicode_name_to_code and
26801 unicode_code_to_name from 16 to 24 bits.
26802 * lib/uniname/uniname.c (unicode_character_name,
26803 unicode_name_character): Add the range 0x12xxx to the code transform.
26804 * lib/uniname/uninames.h: Regenerated.
26805 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
26807 2007-07-07 Bruno Haible <bruno@clisp.org>
26809 * modules/wcwidth-tests: New file.
26810 * tests/test-wcwidth.c: New file.
26812 Work around MacOS X wcwidth() bug.
26813 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
26814 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
26815 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
26816 original wcwidth in non-UTF-8 locales.
26817 * modules/wcwidth (Depends-on): Add localcharset, streq,
26819 * doc/functions/wcwidth.texi: Update.
26821 2007-07-07 Bruno Haible <bruno@clisp.org>
26823 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
26824 (wcwidth): New declaration.
26825 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
26827 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
26828 here. Prepare for creating <wchar.h> unconditionally.
26829 * modules/wchar (Depends-on): Add link-warning.
26830 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
26831 REPLACE_WCWIDTH, and GL_LINK_WARNING.
26832 * lib/wcwidth.h: Remove file.
26833 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
26834 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
26835 * modules/wcwidth (Files): Remove lib/wcwidth.h.
26836 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
26837 (Include): Replace wcwidth.h with <wchar.h>.
26838 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
26839 * lib/mbchar.h: Don't include wcwidth.h.
26840 * lib/mbswidth.c: Likewise.
26841 * NEWS: Mention the change.
26843 2007-07-07 Bruno Haible <bruno@clisp.org>
26845 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
26846 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
26847 definition with an external declaration.
26848 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
26849 defined as a function. Remove AC_C_INLINE requirement.
26850 * modules/wcwidth (Files): Add lib/wcwidth.c.
26851 (Makefile.am): Remove redundant statement.
26853 2007-07-07 Bruno Haible <bruno@clisp.org>
26855 * MODULES.html.sh (Unicode string functions): Add the new modules.
26857 * tests/uniwidth/test-u32-strwidth.c: New file.
26858 * modules/uniwidth/u32-strwidth-tests: New file.
26860 * lib/uniwidth/u32-strwidth.c: New file.
26861 * modules/uniwidth/u32-strwidth: New file.
26863 * tests/uniwidth/test-u16-strwidth.c: New file.
26864 * modules/uniwidth/u16-strwidth-tests: New file.
26866 * lib/uniwidth/u16-strwidth.c: New file.
26867 * modules/uniwidth/u16-strwidth: New file.
26869 * tests/uniwidth/test-u8-strwidth.c: New file.
26870 * modules/uniwidth/u8-strwidth-tests: New file.
26872 * lib/uniwidth/u8-strwidth.c: New file.
26873 * modules/uniwidth/u8-strwidth: New file.
26875 * tests/uniwidth/test-u32-width.c: New file.
26876 * modules/uniwidth/u32-width-tests: New file.
26878 * lib/uniwidth/u32-width.c: New file.
26879 * modules/uniwidth/u32-width: New file.
26881 * tests/uniwidth/test-u16-width.c: New file.
26882 * modules/uniwidth/u16-width-tests: New file.
26884 * lib/uniwidth/u16-width.c: New file.
26885 * modules/uniwidth/u16-width: New file.
26887 * tests/uniwidth/test-u8-width.c: New file.
26888 * modules/uniwidth/u8-width-tests: New file.
26890 * lib/uniwidth/u8-width.c: New file.
26891 * modules/uniwidth/u8-width: New file.
26893 * tests/uniwidth/test-uc_width.c: New file.
26894 * modules/uniwidth/width-tests: New file.
26896 * lib/uniwidth/width.c: New file, from GNU libiconv.
26897 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
26898 * modules/uniwidth/width: New file.
26900 * lib/uniwidth.h: New file, from GNU libiconv.
26901 * modules/uniwidth/base: New file.
26903 2007-07-07 Bruno Haible <bruno@clisp.org>
26905 * lib/uniname.h: New file, from GNU gettext.
26906 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
26907 * lib/uniname/uninames.h: New file, from GNU gettext.
26908 * lib/uniname/uniname.c: New file, from GNU gettext.
26909 * tests/uniname/test-uninames.sh: New file.
26910 * tests/uniname/test-uninames.c: New file, from GNU gettext.
26911 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
26912 * modules/uniname/base: New file.
26913 * modules/uniname/uniname: New file.
26914 * modules/uniname/uniname-tests: New file.
26915 * MODULES.html.sh (Unicode string functions): Add the new modules.
26917 2007-07-06 Bruno Haible <bruno@clisp.org>
26919 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
26921 2007-07-06 Bruno Haible <bruno@clisp.org>
26923 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
26924 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
26925 includes <cygwin/sys_time.h> which includes <sys/select.h> which
26926 include <sys/time.h>.
26927 Reported by Eric Blake.
26929 2007-07-06 Eric Blake <ebb9@byu.net>
26931 Fix testing canonicalize on cygwin.
26932 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
26933 Revert patch from 2007-06-19.
26934 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
26935 canonicalize module is also in use.
26936 * tests/test-canonicalize.c: New file.
26937 * tests/test-canonicalize.sh: Likewise.
26938 * modules/canonicalize-tests: Likewise.
26940 2007-07-06 Jim Meyering <jim@meyering.net>
26942 * lib/getugroups.c (getugroups): Detect getgrent failure.
26943 Adjust comment to reflect reality: this function may return -1.
26945 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
26947 * build-aux/bootstrap (TP_URL,get_translations): Update to use
26948 the new TP address.
26950 (gnulib_mk): New variable.
26952 2007-07-05 Jim Meyering <jim@meyering.net>
26954 Don't let endgrent clobber errno, no matter how improbable.
26955 * lib/getugroups.c (getugroups): Save and restore errno around
26958 Close the group DB even when failing with 2^31 or more members.
26959 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
26961 2007-07-04 Jim Meyering <jim@meyering.net>
26963 * lib/getugroups.h: New file.
26964 * lib/getugroups.c: Include "getugroups.h".
26965 Remove uses of "register" keyword.
26966 Move local variable, "cp", down into scope where used.
26967 Give "username" parameter the "const" attribute.
26968 * modules/getugroups (Files): Add lib/getugroups.h
26970 2007-07-04 Karl Berry <karl@gnu.org>
26972 * MODULES.html.sh (func_all_modules): Complete rename of
26973 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
26975 2007-07-02 Bruno Haible <bruno@clisp.org>
26977 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
26978 mode, when inttypes.h comes from gnulib.
26979 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
26981 2007-07-02 Simon Josefsson <simon@josefsson.org>
26983 * NEWS: Mention lgpl module name change.
26985 * modules/lgpl-2.1: Renamed from lgpl.
26987 * NEWS: Mention gpl module name change.
26989 * modules/gpl-3.0: New file, based on gpl-2.0.
26991 * modules/gpl-2.0: Renamed from gpl.
26993 * modules/gpl: Fix filename, doc/gpl.texi is now found at
26996 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
26998 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
26999 #define __STDC_LIMIT_MACROS temporarily while including
27000 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
27001 Problem reported by Joel E. Denny in
27002 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
27004 2007-07-01 Bruno Haible <bruno@clisp.org>
27006 * lib/unistdio.h: New file.
27007 * lib/unistdio/u-asnprintf.h: New file.
27008 * lib/unistdio/u-asprintf.h: New file.
27009 * lib/unistdio/u-printf-args.c: New file.
27010 * lib/unistdio/u-printf-args.h: New file.
27011 * lib/unistdio/u-printf-parse.h: New file.
27012 * lib/unistdio/u-snprintf.h: New file.
27013 * lib/unistdio/u-sprintf.h: New file.
27014 * lib/unistdio/u-vasprintf.h: New file.
27015 * lib/unistdio/u-vsnprintf.h: New file.
27016 * lib/unistdio/u-vsprintf.h: New file.
27017 * lib/unistdio/ulc-asnprintf.c: New file.
27018 * lib/unistdio/ulc-asprintf.c: New file.
27019 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
27020 * lib/unistdio/ulc-printf-parse.c: New file.
27021 * lib/unistdio/ulc-snprintf.c: New file.
27022 * lib/unistdio/ulc-sprintf.c: New file.
27023 * lib/unistdio/ulc-vasnprintf.c: New file.
27024 * lib/unistdio/ulc-vasprintf.c: New file.
27025 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
27026 * lib/unistdio/ulc-vsnprintf.c: New file.
27027 * lib/unistdio/ulc-vsprintf.c: New file.
27028 * lib/unistdio/u8-asnprintf.c: New file.
27029 * lib/unistdio/u8-asprintf.c: New file.
27030 * lib/unistdio/u8-printf-parse.c: New file.
27031 * lib/unistdio/u8-snprintf.c: New file.
27032 * lib/unistdio/u8-sprintf.c: New file.
27033 * lib/unistdio/u8-vasnprintf.c: New file.
27034 * lib/unistdio/u8-vasprintf.c: New file.
27035 * lib/unistdio/u8-vsnprintf.c: New file.
27036 * lib/unistdio/u8-vsprintf.c: New file.
27037 * lib/unistdio/u8-u8-asnprintf.c: New file.
27038 * lib/unistdio/u8-u8-asprintf.c: New file.
27039 * lib/unistdio/u8-u8-snprintf.c: New file.
27040 * lib/unistdio/u8-u8-sprintf.c: New file.
27041 * lib/unistdio/u8-u8-vasnprintf.c: New file.
27042 * lib/unistdio/u8-u8-vasprintf.c: New file.
27043 * lib/unistdio/u8-u8-vsnprintf.c: New file.
27044 * lib/unistdio/u8-u8-vsprintf.c: New file.
27045 * lib/unistdio/u16-asnprintf.c: New file.
27046 * lib/unistdio/u16-asprintf.c: New file.
27047 * lib/unistdio/u16-printf-parse.c: New file.
27048 * lib/unistdio/u16-snprintf.c: New file.
27049 * lib/unistdio/u16-sprintf.c: New file.
27050 * lib/unistdio/u16-vasnprintf.c: New file.
27051 * lib/unistdio/u16-vasprintf.c: New file.
27052 * lib/unistdio/u16-vsnprintf.c: New file.
27053 * lib/unistdio/u16-vsprintf.c: New file.
27054 * lib/unistdio/u16-u16-asnprintf.c: New file.
27055 * lib/unistdio/u16-u16-asprintf.c: New file.
27056 * lib/unistdio/u16-u16-snprintf.c: New file.
27057 * lib/unistdio/u16-u16-sprintf.c: New file.
27058 * lib/unistdio/u16-u16-vasnprintf.c: New file.
27059 * lib/unistdio/u16-u16-vasprintf.c: New file.
27060 * lib/unistdio/u16-u16-vsnprintf.c: New file.
27061 * lib/unistdio/u16-u16-vsprintf.c: New file.
27062 * lib/unistdio/u32-asnprintf.c: New file.
27063 * lib/unistdio/u32-asprintf.c: New file.
27064 * lib/unistdio/u32-printf-parse.c: New file.
27065 * lib/unistdio/u32-snprintf.c: New file.
27066 * lib/unistdio/u32-sprintf.c: New file.
27067 * lib/unistdio/u32-vasnprintf.c: New file.
27068 * lib/unistdio/u32-vasprintf.c: New file.
27069 * lib/unistdio/u32-vsnprintf.c: New file.
27070 * lib/unistdio/u32-vsprintf.c: New file.
27071 * lib/unistdio/u32-u32-asnprintf.c: New file.
27072 * lib/unistdio/u32-u32-asprintf.c: New file.
27073 * lib/unistdio/u32-u32-snprintf.c: New file.
27074 * lib/unistdio/u32-u32-sprintf.c: New file.
27075 * lib/unistdio/u32-u32-vasnprintf.c: New file.
27076 * lib/unistdio/u32-u32-vasprintf.c: New file.
27077 * lib/unistdio/u32-u32-vsnprintf.c: New file.
27078 * lib/unistdio/u32-u32-vsprintf.c: New file.
27079 * tests/unistdio/test-ulc-asnprintf1.c: New file.
27080 * tests/unistdio/test-ulc-asnprintf1.h: New file.
27081 * tests/unistdio/test-ulc-printf1.h: New file.
27082 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
27083 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
27084 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
27085 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
27086 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
27087 * tests/unistdio/test-ulc-vasprintf1.c: New file.
27088 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
27089 * tests/unistdio/test-ulc-vsprintf1.c: New file.
27090 * tests/unistdio/test-u8-asnprintf1.c: New file.
27091 * tests/unistdio/test-u8-asnprintf1.h: New file.
27092 * tests/unistdio/test-u8-printf1.h: New file.
27093 * tests/unistdio/test-u8-vasnprintf1.c: New file.
27094 * tests/unistdio/test-u8-vasnprintf2.c: New file.
27095 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
27096 * tests/unistdio/test-u8-vasnprintf3.c: New file.
27097 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
27098 * tests/unistdio/test-u8-vasprintf1.c: New file.
27099 * tests/unistdio/test-u8-vsnprintf1.c: New file.
27100 * tests/unistdio/test-u8-vsprintf1.c: New file.
27101 * tests/unistdio/test-u16-asnprintf1.c: New file.
27102 * tests/unistdio/test-u16-asnprintf1.h: New file.
27103 * tests/unistdio/test-u16-printf1.h: New file.
27104 * tests/unistdio/test-u16-vasnprintf1.c: New file.
27105 * tests/unistdio/test-u16-vasnprintf2.c: New file.
27106 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
27107 * tests/unistdio/test-u16-vasnprintf3.c: New file.
27108 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
27109 * tests/unistdio/test-u16-vasprintf1.c: New file.
27110 * tests/unistdio/test-u16-vsnprintf1.c: New file.
27111 * tests/unistdio/test-u16-vsprintf1.c: New file.
27112 * tests/unistdio/test-u32-asnprintf1.c: New file.
27113 * tests/unistdio/test-u32-asnprintf1.h: New file.
27114 * tests/unistdio/test-u32-printf1.h: New file.
27115 * tests/unistdio/test-u32-vasnprintf1.c: New file.
27116 * tests/unistdio/test-u32-vasnprintf2.c: New file.
27117 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
27118 * tests/unistdio/test-u32-vasnprintf3.c: New file.
27119 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
27120 * tests/unistdio/test-u32-vasprintf1.c: New file.
27121 * tests/unistdio/test-u32-vsnprintf1.c: New file.
27122 * tests/unistdio/test-u32-vsprintf1.c: New file.
27123 * modules/unistdio/base: New file.
27124 * modules/unistdio/u-printf-args: New file.
27125 * modules/unistdio/ulc-asnprintf: New file.
27126 * modules/unistdio/ulc-asprintf: New file.
27127 * modules/unistdio/ulc-fprintf: New file.
27128 * modules/unistdio/ulc-printf-parse: New file.
27129 * modules/unistdio/ulc-snprintf: New file.
27130 * modules/unistdio/ulc-sprintf: New file.
27131 * modules/unistdio/ulc-vasnprintf: New file.
27132 * modules/unistdio/ulc-vasprintf: New file.
27133 * modules/unistdio/ulc-vfprintf: New file.
27134 * modules/unistdio/ulc-vsnprintf: New file.
27135 * modules/unistdio/ulc-vsprintf: New file.
27136 * modules/unistdio/u8-asnprintf: New file.
27137 * modules/unistdio/u8-asprintf: New file.
27138 * modules/unistdio/u8-printf-parse: New file.
27139 * modules/unistdio/u8-snprintf: New file.
27140 * modules/unistdio/u8-sprintf: New file.
27141 * modules/unistdio/u8-vasnprintf: New file.
27142 * modules/unistdio/u8-vasprintf: New file.
27143 * modules/unistdio/u8-vsnprintf: New file.
27144 * modules/unistdio/u8-vsprintf: New file.
27145 * modules/unistdio/u8-u8-asnprintf: New file.
27146 * modules/unistdio/u8-u8-asprintf: New file.
27147 * modules/unistdio/u8-u8-snprintf: New file.
27148 * modules/unistdio/u8-u8-sprintf: New file.
27149 * modules/unistdio/u8-u8-vasnprintf: New file.
27150 * modules/unistdio/u8-u8-vasprintf: New file.
27151 * modules/unistdio/u8-u8-vsnprintf: New file.
27152 * modules/unistdio/u8-u8-vsprintf: New file.
27153 * modules/unistdio/u16-asnprintf: New file.
27154 * modules/unistdio/u16-asprintf: New file.
27155 * modules/unistdio/u16-printf-parse: New file.
27156 * modules/unistdio/u16-snprintf: New file.
27157 * modules/unistdio/u16-sprintf: New file.
27158 * modules/unistdio/u16-vasnprintf: New file.
27159 * modules/unistdio/u16-vasprintf: New file.
27160 * modules/unistdio/u16-vsnprintf: New file.
27161 * modules/unistdio/u16-vsprintf: New file.
27162 * modules/unistdio/u16-u16-asnprintf: New file.
27163 * modules/unistdio/u16-u16-asprintf: New file.
27164 * modules/unistdio/u16-u16-snprintf: New file.
27165 * modules/unistdio/u16-u16-sprintf: New file.
27166 * modules/unistdio/u16-u16-vasnprintf: New file.
27167 * modules/unistdio/u16-u16-vasprintf: New file.
27168 * modules/unistdio/u16-u16-vsnprintf: New file.
27169 * modules/unistdio/u16-u16-vsprintf: New file.
27170 * modules/unistdio/u32-asnprintf: New file.
27171 * modules/unistdio/u32-asprintf: New file.
27172 * modules/unistdio/u32-printf-parse: New file.
27173 * modules/unistdio/u32-snprintf: New file.
27174 * modules/unistdio/u32-sprintf: New file.
27175 * modules/unistdio/u32-vasnprintf: New file.
27176 * modules/unistdio/u32-vasprintf: New file.
27177 * modules/unistdio/u32-vsnprintf: New file.
27178 * modules/unistdio/u32-vsprintf: New file.
27179 * modules/unistdio/u32-u32-asnprintf: New file.
27180 * modules/unistdio/u32-u32-asprintf: New file.
27181 * modules/unistdio/u32-u32-snprintf: New file.
27182 * modules/unistdio/u32-u32-sprintf: New file.
27183 * modules/unistdio/u32-u32-vasnprintf: New file.
27184 * modules/unistdio/u32-u32-vasprintf: New file.
27185 * modules/unistdio/u32-u32-vsnprintf: New file.
27186 * modules/unistdio/u32-u32-vsprintf: New file.
27187 * modules/unistdio/ulc-asnprintf-tests: New file.
27188 * modules/unistdio/ulc-vasnprintf-tests: New file.
27189 * modules/unistdio/ulc-vasprintf-tests: New file.
27190 * modules/unistdio/ulc-vsnprintf-tests: New file.
27191 * modules/unistdio/ulc-vsprintf-tests: New file.
27192 * modules/unistdio/u8-asnprintf-tests: New file.
27193 * modules/unistdio/u8-vasnprintf-tests: New file.
27194 * modules/unistdio/u8-vasprintf-tests: New file.
27195 * modules/unistdio/u8-vsnprintf-tests: New file.
27196 * modules/unistdio/u8-vsprintf-tests: New file.
27197 * modules/unistdio/u16-asnprintf-tests: New file.
27198 * modules/unistdio/u16-vasnprintf-tests: New file.
27199 * modules/unistdio/u16-vasprintf-tests: New file.
27200 * modules/unistdio/u16-vsnprintf-tests: New file.
27201 * modules/unistdio/u16-vsprintf-tests: New file.
27202 * modules/unistdio/u32-asnprintf-tests: New file.
27203 * modules/unistdio/u32-vasnprintf-tests: New file.
27204 * modules/unistdio/u32-vasprintf-tests: New file.
27205 * modules/unistdio/u32-vsnprintf-tests: New file.
27206 * modules/unistdio/u32-vsprintf-tests: New file.
27207 * MODULES.html.sh (Unicode string functions): Add the new modules.
27209 2007-07-01 Bruno Haible <bruno@clisp.org>
27211 * lib/sprintf.c (sprintf): Limit the available length estimation,
27212 to avoid address wraparound.
27213 * lib/vsprintf.c (vsprintf): Likewise.
27214 * modules/sprintf-posix (Dependencies): Add stdint.
27215 * modules/vsprintf-posix (Dependencies): Likewise.
27217 2007-07-01 Bruno Haible <bruno@clisp.org>
27219 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
27220 Windows PATH as well. Conservative double-quoting. Comments.
27222 2007-07-01 Bruno Haible <bruno@clisp.org>
27223 Eric Blake <ebb9@byu.net>
27224 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27226 * gnulib-tool (self_abspathname): Fix algorithm to cope with
27227 empty components in $PATH, denoting '.'.
27229 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27231 * gnulib-tool: Fix indentation.
27232 (func_create_megatestdir): Likewise.
27233 Report by Bruno Haible.
27235 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27237 Sync from Automake.
27238 * build-aux/gnupload: Fix shell portability issues with for loops.
27239 Report by Karl Berry.
27241 2007-06-29 Simon Josefsson <simon@josefsson.org>
27243 * build-aux/maint.mk (POURL): Use translationproject.org.
27245 2007-06-27 Simon Josefsson <simon@josefsson.org>
27246 Bruno Haible <bruno@clisp.org>
27248 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
27249 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
27250 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
27251 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
27252 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
27254 2007-06-27 Bruno Haible <bruno@clisp.org>
27256 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
27257 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
27259 2007-06-26 Karl Berry <karl@gnu.org>
27261 * MODULES.html.sh: remove xreadlink-with-size.
27263 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
27265 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
27266 method that I hope also handles the double-include problem noted
27268 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
27270 2007-06-23 Bruno Haible <bruno@clisp.org>
27272 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27273 Don't let the 'mostlyclean' target fail if the last subdirectory could
27275 Reported by Karl Berry.
27277 2007-06-23 Bruno Haible <bruno@clisp.org>
27279 * gnulib-tool (echo): Add a speedier workaround for ksh.
27280 * tests/test-echo.sh: Likewise.
27282 2007-06-23 Bruno Haible <bruno@clisp.org>
27284 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
27285 * tests/test-echo.sh: Likewise.
27287 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27289 * gnulib-tool (IFS): Initialize early, so we don't set it to
27291 (self_abspathname): Rewrite algorithm to set it, reindent.
27292 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
27293 (func_create_megatestdir): Merge some sed scripts.
27295 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
27297 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
27298 exposed by Sun Studio 11 cc on Solaris 8.
27300 2007-06-22 Bruno Haible <bruno@clisp.org>
27302 * gnulib-tool (echo): Ensure the echo primitive does not interpret
27304 * tests/test-echo.sh: New file.
27306 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27308 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
27309 simplify `sed_replace_build_aux' scripts, they are portable but
27310 echoing them with `echo' is not.
27311 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
27313 2007-06-21 Karl Berry <karl@gnu.org>
27315 * config/srclist.txt: guess we can't handle the licenses via
27316 srclist at the moment.
27318 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
27320 * MODULES.html.sh: Add include_next.
27321 * modules/include_next: New file.
27323 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
27325 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
27327 (gl_CHECK_NEXT_HEADERS): New macro.
27328 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
27329 the obsolescent gl_ABSOLUTE_HEADER.
27330 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
27331 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
27332 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27333 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27334 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27335 * m4/math_h.m4 (gl_MATH_H): Likewise.
27336 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
27337 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27338 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27339 * m4/stdint.m4 (gl_STDINT_H): Likewise.
27340 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27341 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27342 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27343 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27344 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27345 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27346 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27347 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27348 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
27349 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27350 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27351 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27352 * m4/inttypes.m4 (gl_INTTYPES_H): Define
27353 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
27354 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
27355 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
27356 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
27357 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
27358 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
27359 * lib/float_.h: Likewise.
27360 * lib/inttypes_.h: Likewise.
27361 * lib/math_.h: Likewise.
27362 * lib/search_.h: Likewise.
27363 * lib/signal_.h: Likewise.
27364 * lib/stdint_.h: Likewise.
27365 * lib/stdio_.h: Likewise.
27366 * lib/stdlib_.h: Likewise.
27367 * lib/string_.h: Likewise.
27368 * lib/sys_stat_.h: Likewise.
27369 * lib/sys_time_.h: Likewise.
27370 * lib/time_.h: Likewise.
27371 * lib/unistd_.h: Likewise.
27372 * lib/wchar_.h: Likewise.
27373 * lib/wctype_.h: Likewise.
27374 * lib/dirent_.h: Likewise.
27375 * lib/iconv_.h: Likewise.
27376 * lib/locale_.h: Likewise.
27377 * lib/netinet_in_.h: Likewise.
27378 * lib/sys_select_.h: Likewise.
27379 * lib/sys_socket_.h: Likewise.
27380 * lib/sysexits_.h: Likewise.
27381 * modules/fcntl (Depends-on): Depend on include_next, not
27383 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
27384 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
27385 * modules/fchdir: Likewise.
27386 * modules/float: Likewise.
27387 * modules/iconv_open: Likewise.
27388 * modules/inttypes: Likewise.
27389 * modules/locale: Likewise.
27390 * modules/math: Likewise.
27391 * modules/netinet_in: Likewise.
27392 * modules/search: Likewise.
27393 * modules/signal: Likewise.
27394 * modules/stdint: Likewise.
27395 * modules/stdio: Likewise.
27396 * modules/stdlib: Likewise.
27397 * modules/string: Likewise.
27398 * modules/sys_select: Likewise.
27399 * modules/sys_socket: Likewise.
27400 * modules/sys_stat: Likewise.
27401 * modules/sys_time: Likewise.
27402 * modules/sysexits: Likewise.
27403 * modules/time: Likewise.
27404 * modules/unistd: Likewise.
27405 * modules/wchar: Likewise.
27406 * modules/wctype: Likewise.
27407 * modules/sys_stat: Change maintainer to "all".
27408 * modules/unistd: Likewise.
27410 2007-06-20 Karl Berry <karl@gnu.org>
27412 * config/srclist.txt: track www changes in license files.
27414 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
27416 * build-aux/bootstrap: Remove stray dot.
27417 Make sure build_aux settings are honored when linking
27418 gnulib_extra_files.
27420 2007-06-19 Eric Blake <ebb9@byu.net>
27422 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
27423 Allow compilation on cygwin.
27425 2007-06-19 Jim Meyering <jim@meyering.net>
27427 xreadlink-with-size: Remove module. No longer used.
27428 Ex-callers now use xreadlink or mreadlink-with-size.
27429 * modules/xreadlink-with-size: Remove module.
27430 * lib/xreadlink-with-size.c: Remove file.
27431 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
27432 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
27433 just before the function definition *is* accurate.
27435 Eliminate one way canonicalize_filename_mode could exit.
27436 * lib/canonicalize.c (canonicalize_filename_mode):
27437 Use mreadlink_with_size, not xreadlink_with_size.
27439 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
27441 Detect porting problems to FreeBSD/arm, which has time_t wider than
27442 long int. Original problem reported for GNU diff by Xin Li in
27443 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
27444 * modules/getdate (Depends-on): Add intprops, verify.
27445 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
27446 is an integer type no wider than long int.
27448 2007-06-18 Jim Meyering <jim@meyering.net>
27450 New module: mreadlink-with-size.
27451 * MODULES.html.sh: Add mreadlink-with-size.
27452 * modules/mreadlink-with-size: New module
27453 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
27454 not xreadlink-with-size.
27455 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
27457 2007-06-16 Bruno Haible <bruno@clisp.org>
27459 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
27460 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
27461 Reported by Gary V. Vaughan <gary@gnu.org>.
27463 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
27465 Revamp lchown so that it lives in unistd.h where it belongs.
27466 * lib/lchown.h: Remove.
27467 * lib/dirchownmod.c: Don't include lib/lchown.h.
27468 * lib/fchownat.c: Likewise.
27469 * lib/openat.c: Likewise.
27470 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
27471 does not follow symlinks.
27472 (EOPNOTSUPP): Define if not defined.
27473 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
27475 (lchown): New decl.
27476 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
27477 Do not check for lchown decl.
27478 Set REPLACE_LCHOWN.
27479 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
27481 * modules/chown: Make it clear it follows symlinks.
27482 * modules/lchown: Make it clear it doesn't follow symlinks.
27483 (Files): Remove lib/lchown.h
27484 (Depends-on): Add unistd.
27485 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
27486 (Include): Include <unistd.h>, not "lchown.h".
27487 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
27490 2007-06-15 Jim Meyering <jim@meyering.net>
27492 Change license (GPL to LGPL) of fsusage and dependents.
27493 * modules/fsusage (License): Change to LGPL.
27494 * modules/full-read (License): Likewise.
27495 * modules/full-write (License): Likewise.
27496 * modules/safe-read (License): Likewise.
27497 * modules/safe-write (License): Likewise.
27499 2007-06-14 Ben Pfaff <blp@gnu.org>
27501 Missing part of allocsa -> malloca transition.
27502 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
27505 2007-06-12 Bruno Haible <bruno@clisp.org>
27507 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
27508 to ia64, x86_64, i386.
27509 Reported by Eric Blake.
27511 2007-06-12 Bruno Haible <bruno@clisp.org>
27513 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
27514 cross-compiling to x86_64.
27516 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
27518 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
27519 glitch reported by Ralf Wildenhues in
27520 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
27522 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
27525 2007-06-11 Bruno Haible <bruno@clisp.org>
27527 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
27528 replacement string.
27529 Reported by Eric Blake.
27531 2007-06-10 Bruno Haible <bruno@clisp.org>
27533 Prepare vasnprintf code for use with Unicode strings.
27534 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
27535 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
27537 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
27538 a_u32_string variants.
27539 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27540 * lib/printf-args.c: Don't include config.h and the specification
27541 header if PRINTF_FETCHARGS is already defined.
27542 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27543 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
27544 TYPE_U16_STRING, TYPE_U32_STRING.
27545 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
27546 u16_directive, u16_directives, u32_directive, u32_directives): New
27548 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
27550 * lib/printf-parse.c: Don't include config.h and the specification
27551 header if PRINTF_PARSE is already defined. Eliminate the set of
27552 parameters for WIDE_CHAR_VERSION; the user of this file must provide
27553 them now. Include c-ctype.h.
27554 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
27555 directive and CHAR_T_ONLY_ASCII.
27556 * lib/vasnprintf.c: Don't include config.h and the specification header
27557 if VASNPRINTF is already defined.
27558 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
27559 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
27560 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
27561 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
27562 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
27563 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
27565 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
27566 pad_ourselves also in this case, with the 'c' and 's' directives, and
27567 with a different notion of "width".
27568 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
27570 2007-06-10 Bruno Haible <bruno@clisp.org>
27572 * modules/unistr/u32-mbsnlen: New file.
27573 * lib/unistr/u32-mbsnlen.c: New file.
27575 * modules/unistr/u16-mbsnlen: New file.
27576 * lib/unistr/u16-mbsnlen.c: New file.
27578 * modules/unistr/u8-mbsnlen: New file.
27579 * lib/unistr/u8-mbsnlen.c: New file.
27581 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
27584 2007-06-10 Bruno Haible <bruno@clisp.org>
27586 * lib/string_.h (mbsnlen): New declaration.
27587 * lib/mbsnlen.c: New file.
27588 * m4/mbsnlen.m4: New file.
27589 * modules/mbsnlen: New file.
27590 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
27591 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
27592 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
27594 2007-06-10 Bruno Haible <bruno@clisp.org>
27596 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
27598 2007-06-10 Bruno Haible <bruno@clisp.org>
27600 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
27601 * lib/mbuiter.h: Likewise.
27603 2007-06-10 Bruno Haible <bruno@clisp.org>
27605 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
27608 2007-06-10 Karl Berry <karl@gnu.org>
27610 * config/srclist.txt: remove gettext entries, Bruno prefers
27611 to update individually.
27613 2007-06-10 Bruno Haible <bruno@clisp.org>
27615 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
27616 'maxlen'. Ensure only length + width bytes are allocated, not
27617 length + 1 + width.
27619 2007-06-09 Bruno Haible <bruno@clisp.org>
27621 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
27622 (CHAR_T): Remove macro.
27623 (VASNPRINTF): Update.
27625 2007-06-09 Bruno Haible <bruno@clisp.org>
27627 * MODULES.html.sh (Unicode string functions): Add the new modules.
27629 * modules/uniconv/u32-conv-to-enc: New file.
27630 * lib/uniconv/u32-conv-to-enc.c: New file.
27631 * modules/uniconv/u32-conv-to-enc-tests: New file.
27632 * tests/uniconv/test-u32-conv-to-enc.c: New file.
27634 * modules/uniconv/u16-conv-to-enc: New file.
27635 * lib/uniconv/u16-conv-to-enc.c: New file.
27636 * lib/uniconv/u-conv-to-enc.h: New file.
27637 * modules/uniconv/u16-conv-to-enc-tests: New file.
27638 * tests/uniconv/test-u16-conv-to-enc.c: New file.
27640 * modules/uniconv/u8-conv-to-enc: New file.
27641 * lib/uniconv/u8-conv-to-enc.c: New file.
27642 * modules/uniconv/u8-conv-to-enc-tests: New file.
27643 * tests/uniconv/test-u8-conv-to-enc.c: New file.
27645 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27646 u32_conv_to_encoding): New declarations.
27648 2007-06-09 Bruno Haible <bruno@clisp.org>
27650 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
27652 2007-06-09 Bruno Haible <bruno@clisp.org>
27654 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
27655 * modules/malloca: Renamed from modules/allocsa, updated.
27656 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
27657 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
27658 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
27659 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
27660 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
27661 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
27662 * modules/xmalloca: Renamed from modules/xallocsa, updated.
27663 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
27664 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
27665 * modules/c-strcasestr (Depends-on): Update.
27666 * lib/c-strcasestr.c: Update.
27667 * modules/c-strstr (Depends-on): Update.
27668 * lib/c-strstr.c: Update.
27669 * modules/canonicalize-lgpl (Depends-on): Update.
27670 * lib/canonicalize-lgpl.c: Update.
27671 * modules/clean-temp (Depends-on): Update.
27672 * lib/clean-temp.c: Update.
27673 * modules/csharpcomp (Depends-on): Update.
27674 * lib/csharpcomp.c: Update.
27675 * modules/csharpexec (Depends-on): Update.
27676 * lib/csharpexec.c: Update.
27677 * modules/javacomp (Depends-on): Update.
27678 * lib/javacomp.c: Update.
27679 * modules/javaexec (Depends-on): Update.
27680 * lib/javaexec.c: Update.
27681 * modules/mbscasestr (Depends-on): Update.
27682 * lib/mbscasestr.c: Update.
27683 * modules/mbsstr (Depends-on): Update.
27684 * lib/mbsstr.c: Update.
27685 * modules/setenv (Depends-on): Update.
27686 * lib/setenv.c: Update.
27687 * modules/strcasestr (Depends-on): Update.
27688 * lib/strcasestr.c: Update.
27689 * modules/striconveha (Depends-on): Update.
27690 * lib/striconveha.c: Update.
27691 * modules/relocatable-prog-wrapper (Files): Update.
27692 * lib/relocwrapper.c: Update.
27693 * build-aux/install-reloc: Update.
27694 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
27696 2007-06-08 Bruno Haible <bruno@clisp.org>
27699 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
27700 * lib/fpurge.c (fpurge): Likewise.
27701 * lib/freading.c (freading): Likewise.
27702 * lib/fseeko.c (rpl_fseeko): Likewise.
27703 * lib/fseterr.c (fseterr): Likewise.
27704 * lib/fwriting.c (fwriting): Likewise.
27705 * tests/test-fflush.c (main): Avoid a failure on uClibc.
27707 2007-06-08 Bruno Haible <bruno@clisp.org>
27709 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
27710 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
27711 * modules/gettext (Files): Add m4/intlmacosx.m4.
27713 2007-06-07 Bruno Haible <bruno@clisp.org>
27715 * modules/localename-tests: New file.
27716 * tests/test-localename.c: New file.
27718 New module 'localename'.
27719 * lib/localename.h: New file.
27720 * lib/localename.c: New file, from GNU gettext.
27721 * m4/localename.m4: New file.
27722 * modules/localename: New file.
27724 2007-06-07 Bruno Haible <bruno@clisp.org>
27726 Work around the lack of <wchar.h> on some builds of uClibc.
27727 * doc/headers/wchar.texi: Update.
27728 * lib/wchar_.h: Include <wchar.h> only if it exists.
27729 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
27730 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
27731 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
27733 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
27734 * modules/mbfile (Depends-on): Add wchar.
27735 * modules/mbiter (Depends-on): Likewise.
27736 * modules/mbuiter (Depends-on): Likewise.
27737 Reported by Simon Josefsson.
27739 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
27741 Work around problem reported by Steven M. Schweda in
27742 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
27743 Tru64 5.1B with the Compaq compiler environment installed declares
27744 an 'isblank' function but does not define it in the C library.
27745 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
27746 * lib/regex_internal.h (isblank): Likewise.
27747 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
27748 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27750 2007-06-05 Bruno Haible <bruno@clisp.org>
27752 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
27754 * modules/printf-safe: New file.
27755 * modules/fprintf-posix (Depends-on): Add printf-safe.
27756 * modules/printf-posix (Depends-on): Likewise.
27757 * modules/snprintf-posix (Depends-on): Likewise.
27758 * modules/sprintf-posix (Depends-on): Likewise.
27759 * modules/vasnprintf-posix (Depends-on): Likewise.
27760 * modules/vasprintf-posix (Depends-on): Likewise.
27761 * modules/vfprintf-posix (Depends-on): Likewise.
27762 * modules/vprintf-posix (Depends-on): Likewise.
27763 * modules/vsnprintf-posix (Depends-on): Likewise.
27764 * modules/vsprintf-posix (Depends-on): Likewise.
27765 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
27766 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
27767 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
27768 "no" on i386, x86_64, ia64.
27769 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
27770 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27771 on i386, x86_64, ia64.
27772 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
27773 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27774 on i386, x86_64, ia64.
27775 * tests/test-vasnprintf-posix.c: Include float.h.
27776 (LDBL80_WORDS): New macro.
27777 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27778 on i386, x86_64, ia64.
27779 * tests/test-vasprintf-posix.c: Include float.h.
27780 (LDBL80_WORDS): New macro.
27781 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
27782 on i386, x86_64, ia64.
27783 * tests/test-snprintf-posix.c: Include float.h.
27784 * tests/test-sprintf-posix.c: Likewise.
27785 * tests/test-vsnprintf-posix.c: Likewise.
27786 * tests/test-vsprintf-posix.c: Likewise.
27788 2007-06-05 Bruno Haible <bruno@clisp.org>
27790 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
27791 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
27792 non-IEEE numbers on i386, x86_64, ia64.
27793 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
27794 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
27795 * tests/test-isnanl.h: Include float.h.
27796 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
27798 2007-06-05 Bruno Haible <bruno@clisp.org>
27800 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
27801 also the %a / %A. Handle the %a / %A code before this extra handling.
27803 2007-06-05 Bruno Haible <bruno@clisp.org>
27805 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
27806 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
27808 2007-06-05 Bruno Haible <bruno@clisp.org>
27810 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
27811 typo in variable name.
27813 2007-06-05 Eric Blake <ebb9@byu.net>
27815 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
27816 Reported by Simon Josefsson.
27818 2007-06-04 Bruno Haible <bruno@clisp.org>
27820 Avoid test failures on some PowerPC platforms.
27821 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
27822 Define differently for PowerPC.
27823 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
27824 Reported by Gary V. Vaughan <gary@gnu.org>.
27826 2007-06-02 Bruno Haible <bruno@clisp.org>
27828 Fix test-stdint failure on FreeBSD/ia64.
27829 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
27830 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
27831 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
27832 * doc/headers/stdint.texi: Update.
27834 2007-06-01 Bruno Haible <bruno@clisp.org>
27836 * tests/test-binary-io.c (main): Pass a third argument to open().
27837 Reported by Gary V. Vaughan <gary@gnu.org>.
27839 2007-06-01 Bruno Haible <bruno@clisp.org>
27841 * doc/functions/frexpl.texi: Update for mingw.
27843 2007-06-01 Bruno Haible <bruno@clisp.org>
27845 * tests/test-lseek.c (main): Disable test of errno for invalid third
27847 * doc/functions/lseek.texi: Update.
27848 Reported by Gary V. Vaughan <gary@gnu.org>.
27850 2007-05-28 Bruno Haible <bruno@clisp.org>
27852 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
27854 2007-05-31 Eric Blake <ebb9@byu.net>
27856 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
27859 2007-05-30 Eric Blake <ebb9@byu.net>
27860 and Bruno Haible <bruno@clisp.org>
27862 Work around mingw test failures exposed by m4-1.4.9b.
27863 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
27864 * tests/test-unistd.c: Disable uid_t and git_t tests for the
27867 2007-05-30 Bruno Haible <bruno@clisp.org>
27869 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
27870 assuming that they are closed. Needed on HP-UX 11.
27872 2007-05-29 Bruno Haible <bruno@clisp.org>
27874 Fix a problem with #include_next.
27875 * lib/dirent_.h: Split the double-inclusion guard.
27876 * lib/fcntl_.h: Likewise.
27877 * lib/float_.h: Likewise.
27878 * lib/iconv_.h: Likewise.
27879 * lib/inttypes_.h: Likewise.
27880 * lib/locale_.h: Likewise.
27881 * lib/math_.h: Likewise.
27882 * lib/netinet_in_.h: Likewise.
27883 * lib/search_.h: Likewise.
27884 * lib/signal_.h: Likewise.
27885 * lib/stdint_.h: Likewise.
27886 * lib/stdio_.h: Likewise.
27887 * lib/stdlib_.h: Likewise.
27888 * lib/string_.h: Likewise.
27889 * lib/sys_select_.h: Likewise.
27890 * lib/sys_socket_.h: Likewise.
27891 * lib/sys_stat_.h: Likewise.
27892 * lib/sys_time_.h: Likewise.
27893 * lib/sysexits_.h: Likewise.
27894 * lib/time_.h: Likewise.
27895 * lib/unistd_.h: Likewise.
27896 * lib/wchar_.h: Likewise.
27897 * lib/wctype_.h: Likewise.
27899 2007-05-29 Bruno Haible <bruno@clisp.org>
27901 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
27904 2007-05-29 Bruno Haible <bruno@clisp.org>
27906 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
27908 Reported by Eric Blake.
27910 2007-05-29 Bruno Haible <bruno@clisp.org>
27912 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
27915 2007-05-29 Eric Blake <ebb9@byu.net>
27916 Bruno Haible <bruno@clisp.org>
27918 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
27921 2007-05-28 Eric Blake <ebb9@byu.net>
27923 * modules/closein-tests (test_closein_LDADD): Support test on
27924 cygwin with libtool.
27926 2007-05-28 Bruno Haible <bruno@clisp.org>
27928 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
27929 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
27930 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
27931 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
27932 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
27933 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
27934 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
27935 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
27936 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
27938 2007-05-28 Eric Blake <ebb9@byu.net>
27940 Unconditionally include <config.h> in unit tests.
27941 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
27942 * tests/test-allocsa.c, tests/test-arcfour.c,
27943 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
27944 tests/test-array_list.c, tests/test-array_oset.c,
27945 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
27946 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
27947 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
27948 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
27949 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
27950 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
27951 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
27952 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
27953 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
27954 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
27955 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
27956 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
27957 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
27958 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
27959 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
27960 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
27961 test-md5.c, test-memmem.c, test-printf-posix.c,
27962 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
27963 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
27964 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
27965 test-strcasestr.c, test-striconv.c, test-striconveh.c,
27966 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
27967 test-vasnprintf-posix2.c, test-vasnprintf.c,
27968 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
27969 test-vfprintf-posix.c, test-vprintf-posix.c,
27970 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
27971 test-xvasprintf.c: Likewise.
27973 2007-05-28 Bruno Haible <bruno@clisp.org>
27975 * gnulib-tool (func_import): Remember the --with-tests command-line
27976 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
27977 Reported by Eric Blake.
27979 2007-05-28 Bruno Haible <bruno@clisp.org>
27981 * modules/ftell-tests: New file.
27982 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
27983 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
27985 * lib/ftell.c: New file.
27986 * modules/ftell: New file.
27987 * m4/ftell.m4: New file.
27988 * doc/functions/ftell.texi: Update.
27989 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
27991 * lib/stdio_.h (rpl_ftell): New declaration.
27992 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
27995 2007-05-28 Eric Blake <ebb9@byu.net>
27997 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
27999 2007-05-28 Bruno Haible <bruno@clisp.org>
28001 * modules/fseek-tests: New file.
28002 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
28003 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
28005 * lib/fseek.c: New file.
28006 * modules/fseek: New file.
28007 * m4/fseek.m4: New file.
28008 * doc/functions/fseek.texi: Update.
28009 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
28011 * lib/stdio_.h (rpl_fseek): New declaration.
28012 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
28015 2007-05-28 Bruno Haible <bruno@clisp.org>
28017 * lib/stdio_.h (fflush): More comments.
28019 2007-05-28 Bruno Haible <bruno@clisp.org>
28021 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
28024 2007-05-28 Eric Blake <ebb9@byu.net>
28026 Improve lseek module.
28027 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
28028 * lib/unistd_.h (lseek): Scale back link warning message.
28029 * tests/test-lseek.c: Beef up test.
28030 * tests/test-lseek.sh: Exercise more facets of lseek.
28031 Reported by Bruno Haible.
28033 2007-05-28 Bruno Haible <bruno@clisp.org>
28035 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
28038 2007-05-27 Bruno Haible <bruno@clisp.org>
28040 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
28042 2007-05-27 Bruno Haible <bruno@clisp.org>
28044 * modules/openmp: New file.
28045 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
28048 2007-05-26 Bruno Haible <bruno@clisp.org>
28050 * modules/chdir-long (Depends-on): Add fchdir.
28051 * modules/chdir-safer (Depends-on): Likewise.
28052 * modules/fts (Depends-on): Likewise.
28053 * modules/fts-lgpl (Depends-on): Likewise.
28054 * modules/openat (Depends-on): Likewise.
28055 * modules/savewd (Depends-on): Likewise.
28057 2007-05-24 Eric Blake <ebb9@byu.net>
28059 Fix lseek on mingw.
28060 * modules/lseek: New module.
28061 * m4/lseek.m4: New file.
28062 * lib/lseek.c: New file.
28063 * modules/lseek-tests: New file.
28064 * tests/test-lseek.c: New file.
28065 * tests/test-lseek.sh: New file.
28066 * MODULES.html.sh: Document lseek module.
28067 * modules/fflush (Depends-on): Add lseek, fseeko.
28068 * modules/fseeko (Depends-on): Likewise.
28069 * modules/ftello (Depends-on): Likewise.
28070 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
28072 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
28074 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
28075 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
28076 * lib/ftello.c (rpl_ftello): Likewise.
28077 * tests/test-fseeko.c (main): Test this.
28078 * tests/test-fseeko.sh: Likewise.
28079 * tests/test-ftello.c (main): Likewise.
28080 * tests/test-ftello.sh: Likewise.
28081 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
28082 implies replacing fseek.
28083 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
28085 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
28086 * modules/unistd (Makefile.am): Likewise.
28087 * lib/unistd_.h (lseek): Declare a replacement.
28088 * doc/functions/lseek.texi (lseek): Document this fix.
28089 * doc/functions/fseek.texi (fseek): Likewise.
28090 * doc/functions/ftell.texi (ftell): Likewise.
28092 2007-05-24 Bruno Haible <bruno@clisp.org>
28094 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
28095 in the printed representation of a NaN.
28096 * tests/test-vasprintf-posix.c (test_function): Likewise.
28097 * tests/test-snprintf-posix.h (test_function): Likewise.
28098 * tests/test-sprintf-posix.h (test_function): Likewise.
28099 Reported by Eric Blake.
28101 2007-05-23 Eric Blake <ebb9@byu.net>
28103 Fix fseeko/ftello on cygwin 1.5.24.
28104 * doc/functions/fseeko.texi (fseeko): Document the fix.
28105 * doc/functions/ftello.texi (ftello): Document the fix.
28106 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
28107 * doc/functions/stdout.text (stdout): New file.
28108 * doc/functions/stderr.text (stderr): New file.
28109 * doc/gnulib.texi (Function Substitutes): Use new files.
28110 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
28112 * tests/test-ftello.c (main): Likewise for ftello.
28113 * tests/test-fseeko.sh: New file.
28114 * tests/test-ftello.sh: New file.
28115 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
28116 with seekable stdin.
28117 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
28118 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
28119 (gl_REPLACE_FSEEKO): New macro.
28120 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
28121 * modules/fseeko (Files): Distribute fseeko.c.
28122 * modules/ftello (Files): Distribute ftello.c.
28123 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
28125 * lib/ftello.c (rpl_ftello): New file.
28126 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
28128 (gl_STDIN_LARGE_OFFSET): New macro.
28129 * modules/stdio (Makefile.am): Perform the replacement.
28130 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
28132 2007-05-23 Bruno Haible <bruno@clisp.org>
28134 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
28135 GNULIB_POSIXCHECK is defined.
28137 2007-05-21 Bruno Haible <bruno@clisp.org>
28139 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
28140 Check also the output for NaN arguments. When cross-compiling, guess
28142 * lib/vasnprintf.c: Update comments.
28143 * tests/test-vasnprintf-posix.c (strisnan): New function.
28144 (test_function): Use it.
28145 * tests/test-vasprintf-posix.c (strisnan): New function.
28146 (test_function): Use it.
28147 * tests/test-snprintf-posix.h (strisnan): New function.
28148 (test_function): Use it.
28149 * tests/test-sprintf-posix.h (strisnan): New function.
28150 (test_function): Use it.
28151 Reported by Eric Blake.
28153 2007-05-20 Bruno Haible <bruno@clisp.org>
28155 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
28156 numbers that fails on BeOS.
28157 * doc/functions/frexpl.texi: Update.
28159 2007-05-20 Jim Meyering <jim@meyering.net>
28161 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
28162 forced upon us by glibc-2.6.
28164 2007-05-20 Bruno Haible <bruno@clisp.org>
28166 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
28167 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
28168 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
28169 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
28170 NEED_PRINTF_INFINITE.
28171 (is_infinitel): New function.
28172 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
28173 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
28174 gl_PREREQ_VASNPRINTF_INFINITE.
28175 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
28176 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28177 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
28178 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
28179 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
28180 gl_PREREQ_VASNPRINTF_INFINITE.
28181 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28182 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28183 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28184 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28185 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28186 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28187 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28188 * doc/functions/fprintf.texi: Update.
28189 * doc/functions/printf.texi: Update.
28190 * doc/functions/snprintf.texi: Update.
28191 * doc/functions/sprintf.texi: Update.
28192 * doc/functions/vfprintf.texi: Update.
28193 * doc/functions/vprintf.texi: Update.
28194 * doc/functions/vsnprintf.texi: Update.
28195 * doc/functions/vsprintf.texi: Update.
28197 2007-05-20 Bruno Haible <bruno@clisp.org>
28199 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
28200 was not found in libc.
28201 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28203 2007-05-20 Bruno Haible <bruno@clisp.org>
28205 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
28206 printed as "-nan" instead of "nan".
28207 * tests/test-vasprintf-posix.c (test_function): Likewise.
28208 * tests/test-snprintf-posix.h (test_function): Likewise.
28209 * tests/test-sprintf-posix.h (test_function): Likewise.
28210 Needed for HP-UX 11.
28212 2007-05-20 Jim Meyering <jim@meyering.net>
28214 Fix buggy test for the fchownat-deref bug.
28215 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
28216 symlink required for the run-test. Without it, this test would
28217 always declare that fchownat doesn't work, and client code would
28218 unnecessarily use the replacement function with fixed libc.
28219 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
28220 Reported by Greg Schafer.
28222 2007-05-19 Bruno Haible <bruno@clisp.org>
28224 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
28225 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
28226 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
28227 Needed for IRIX 6.5 and Solaris 2.5.1.
28229 2007-05-19 Bruno Haible <bruno@clisp.org>
28231 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
28232 (test_function): Skip tests involving -0.0 on platforms where
28234 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
28235 (test_function): Skip tests involving -0.0 on platforms where
28237 * tests/test-snprintf-posix.h (have_minus_zero): New function.
28238 (test_function): Skip tests involving -0.0 on platforms where
28240 * tests/test-sprintf-posix.h (have_minus_zero): New function.
28241 (test_function): Skip tests involving -0.0 on platforms where
28243 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
28245 * tests/test-printf-posix.h (test_function): Likewise.
28246 * tests/test-printf-posix.output: Remove all -0.0 related results.
28247 Needed for IRIX 6.5.
28249 2007-05-19 Bruno Haible <bruno@clisp.org>
28251 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
28252 printed as "nan0x7fffffff" instead of "nan".
28253 * tests/test-vasprintf-posix.c (test_function): Likewise.
28254 * tests/test-snprintf-posix.h (test_function): Likewise.
28255 * tests/test-sprintf-posix.h (test_function): Likewise.
28256 * tests/test-fprintf-posix.h (NaN): Remove macro.
28257 (test_function): Remove all NaN related tests.
28258 * tests/test-printf-posix.h (NaN): Remove macro.
28259 (test_function): Remove all NaN related tests.
28260 * tests/test-printf-posix.output: Remove all NaN related results.
28261 Needed for IRIX 6.5.
28263 2007-05-19 Bruno Haible <bruno@clisp.org>
28265 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
28266 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28268 2007-05-19 Bruno Haible <bruno@clisp.org>
28270 * lib/float_.h: New file.
28271 * m4/float_h.m4: New file.
28272 * modules/float: New file.
28273 * modules/isnanl (Dependencies): Add float.
28274 * modules/isnanl-nolibm (Dependencies): Likewise.
28275 * modules/mathl (Dependencies): Likewise.
28276 * modules/printf-frexpl (Dependencies): Likewise.
28277 * modules/signbit (Dependencies): Likewise.
28278 * modules/vasnprintf (Dependencies): Likewise.
28279 * doc/headers/float.texi: Update.
28281 2007-05-19 Jim Meyering <jim@meyering.net>
28283 * lib/utimens.c (gl_futimens): Rename from futimens,
28284 now that glibc-2.6 declares futimens.
28285 * lib/utimens.h: Likewise.
28287 2007-05-19 Bruno Haible <bruno@clisp.org>
28289 Avoid test failures on mingw.
28290 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
28291 * tests/test-printf-posix.sh: Likewise.
28292 * tests/test-vfprintf-posix.sh: Likewise.
28293 * tests/test-vprintf-posix.sh: Likewise.
28295 2007-05-19 Bruno Haible <bruno@clisp.org>
28297 Fix *printf result for NaN, Inf, -0.0 on mingw.
28298 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
28299 * lib/vasnprintf.c: Include math.h and isnan.h.
28300 (is_infinite_or_zero): New function.
28301 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
28302 values in the %f, %F, %e, %E, %g, %G directives.
28303 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
28304 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28305 gl_PRINTF_INFINITE and test its result. Invoke
28306 gl_PREREQ_VASNPRINTF_INFINITE.
28307 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28308 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28309 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28310 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28311 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28312 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28313 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28314 * doc/functions/fprintf.texi: Update.
28315 * doc/functions/printf.texi: Update.
28316 * doc/functions/snprintf.texi: Update.
28317 * doc/functions/sprintf.texi: Update.
28318 * doc/functions/vfprintf.texi: Update.
28319 * doc/functions/vprintf.texi: Update.
28320 * doc/functions/vsnprintf.texi: Update.
28321 * doc/functions/vsprintf.texi: Update.
28323 2007-05-19 Bruno Haible <bruno@clisp.org>
28325 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
28326 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
28327 Instead of multiplying with 10^k, set extra_zeroes to k.
28328 (scale10_round_long_double): Remove function.
28330 2007-05-18 Bruno Haible <bruno@clisp.org>
28332 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
28333 introduced on 2007-05-06.
28335 2007-05-18 Bruno Haible <bruno@clisp.org>
28337 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
28339 * tests/test-vasprintf-posix.c (test_function): Likewise.
28340 * tests/test-snprintf-posix.h (test_function): Likewise.
28341 * tests/test-sprintf-posix.h (test_function): Likewise.
28343 2007-05-18 Bruno Haible <bruno@clisp.org>
28345 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
28346 (strmatch): New function.
28347 (test_function): Test the %f directive on numbers of various exponents.
28348 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
28349 (strmatch): New function.
28350 (test_function): Test the %f directive on numbers of various exponents.
28351 * tests/test-snprintf-posix.h (strmatch): New function.
28352 (test_function): Test the %f directive on numbers of various exponents.
28353 * tests/test-sprintf-posix.h (strmatch): New function.
28354 (test_function): Test the %f directive on numbers of various exponents.
28355 * tests/test-snprintf-posix.c (SIZEOF): New macro.
28356 * tests/test-sprintf-posix.c (SIZEOF): New macro.
28357 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
28358 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
28360 2007-05-18 Bruno Haible <bruno@clisp.org>
28362 Add support for 'long double' number output.
28363 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
28364 * lib/vasnprintf.c: Include math.h and float+.h.
28365 (mp_limb_t): New type.
28366 (GMP_LIMB_BITS): New macro.
28367 (mp_twolimb_t): New type.
28368 (GMP_TWOLIMB_BITS): New macro.
28370 (multiply, divide, convert_to_decimal, decode_long_double,
28371 scale10_round_long_double, scale10_round_decimal_long_double,
28372 floorlog10l): New functions.
28373 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
28374 for the %f, %F, %e, %E, %g, %G directives.
28375 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
28376 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28377 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
28378 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
28379 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28380 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28381 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28382 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28383 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28384 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28385 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28386 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
28387 * modules/snprintf-posix (Depends-on): Likewise.
28388 * modules/sprintf-posix (Depends-on): Likewise.
28389 * modules/vasnprintf-posix (Depends-on): Likewise.
28390 * modules/vasprintf-posix (Depends-on): Likewise.
28391 * modules/vfprintf-posix (Depends-on): Likewise.
28392 * modules/vsnprintf-posix (Depends-on): Likewise.
28393 * modules/vsprintf-posix (Depends-on): Likewise.
28394 * modules/vasnprintf (Files): Add lib/float+.h.
28395 * doc/functions/fprintf.texi: Update.
28396 * doc/functions/printf.texi: Update.
28397 * doc/functions/snprintf.texi: Update.
28398 * doc/functions/sprintf.texi: Update.
28399 * doc/functions/vfprintf.texi: Update.
28400 * doc/functions/vprintf.texi: Update.
28401 * doc/functions/vsnprintf.texi: Update.
28402 * doc/functions/vsprintf.texi: Update.
28404 2007-05-18 Bruno Haible <bruno@clisp.org>
28406 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
28408 2007-05-18 Bruno Haible <bruno@clisp.org>
28410 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
28411 for printing 64-bit integers. Needed for mingw.
28413 2007-05-18 Bruno Haible <bruno@clisp.org>
28415 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
28416 gl_FUNC_FREXPL_WORKS.
28417 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
28419 2007-05-18 Bruno Haible <bruno@clisp.org>
28421 * modules/frexpl-nolibm-tests: New file.
28423 * modules/frexpl-nolibm: New file.
28424 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
28426 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
28428 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
28429 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
28430 GCC 4.2, which otherwise issues a lot of warnings.
28431 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
28432 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
28434 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
28435 * modules/iconv_open (iconv.h): Likewise.
28436 * modules/locale (locale.h): Likewise.
28437 * modules/netinet_in (netinet/in.h): Likewise.
28438 * modules/sys_select (sys_select.h): Likewise.
28439 * modules/sys_socket (sys/socket.h): Likewise.
28440 * modules/sys_stat (sys/stat.h): Likewise.
28441 * modules/sysexits (sysexits.h): Likewise.
28442 * modules/unistd (unistd.h): Likewise.
28444 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28446 * modules/closein-tests (Makefile.am): Distribute
28449 2007-05-17 Bruno Haible <bruno@clisp.org>
28451 * tests/test-printf-posix.output: Renamed from
28452 tests/test-fprintf-posix.out.
28453 * modules/fprintf-posix-tests: Update.
28454 * modules/printf-posix-tests: Update.
28455 * modules/vfprintf-posix-tests: Update.
28456 * modules/vprintf-posix-tests: Update.
28457 * tests/test-fprintf-posix.sh: Update.
28458 * tests/test-printf-posix.sh: Update.
28459 * tests/test-vfprintf-posix.sh: Update.
28460 * tests/test-vprintf-posix.sh: Update.
28461 Reported by Ralf Wildenhues.
28463 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
28465 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
28466 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
28467 GCC 4.2, which otherwise issues a lot of warnings.
28468 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
28469 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
28470 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
28471 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
28472 it should no longer be needed.
28473 * lib/string_.h: Likewise.
28474 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
28475 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
28476 * modules/inttypes (inttypes.h): Likewise.
28477 * modules/math (math.h): Likewise.
28478 * modules/search (search.h): Likewise.
28479 * modules/signal (signal.h): Likewise.
28480 * modules/stdint (stdint.h): Likewise.
28481 * modules/stdio (stdio.h): Likewise.
28482 * modules/stdlib (stdlib.h): Likewise.
28483 * modules/string (string.h): Likewise.
28484 * modules/sys_time (sys/time.h): Likewise.
28485 * modules/time (time.h): Likewise.
28486 * modules/wchar (wchar.h): Likewise.
28487 * modules/wctype (wtype.h): Likewise.
28489 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
28491 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
28493 2007-05-13 Bruno Haible <bruno@clisp.org>
28495 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
28496 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28497 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
28498 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28499 (gl_PREREQ_STRTOK_R): Don't require it here.
28501 2007-05-13 Bruno Haible <bruno@clisp.org>
28503 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
28504 when used in C++ mode.
28506 2007-05-12 Bruno Haible <bruno@clisp.org>
28508 * lib/linebuffer.h: Tweak doc.
28509 * lib/linebuffer.c: Likewise.
28511 2007-05-12 James Youngman <jay@gnu.org>
28513 * lib/linebuffer.c (readlinebuffer_delim): New function,
28514 like readlinebuffer, but use a caller-specified delimiter.
28515 (readlinebuffer): Just call readlinebuffer_delim with '\n'
28517 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
28519 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
28521 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
28522 * modules/openat (Files): Remove openat-die.c.
28523 (Depends-on): Add openat-die.
28524 * modules/openat-die: New module.
28526 2007-05-06 Bruno Haible <bruno@clisp.org>
28528 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
28529 Update with info about Cygwin.
28530 * doc/functions/fprintf.texi: Update.
28531 * doc/functions/printf.texi: Update.
28532 * doc/functions/snprintf.texi: Update.
28533 * doc/functions/sprintf.texi: Update.
28534 * doc/functions/vfprintf.texi: Update.
28535 * doc/functions/vprintf.texi: Update.
28536 * doc/functions/vsnprintf.texi: Update.
28537 * doc/functions/vsprintf.texi: Update.
28538 Reported by Eric Blake.
28540 2007-05-06 Bruno Haible <bruno@clisp.org>
28542 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
28543 padding ourselves for the floating-point directives.
28544 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
28545 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
28546 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28547 gl_PRINTF_FLAG_ZERO and test its result. Invoke
28548 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
28549 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28550 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28551 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28552 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28553 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28554 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28555 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28556 * tests/test-snprintf-posix.h (test_function): Also check the width
28557 and some flags in the %f directive.
28558 * tests/test-sprintf-posix.h (test_function): Likewise.
28559 * tests/test-vasnprintf-posix.c (test_function): Likewise.
28560 * tests/test-vasprintf-posix.c (test_function): Likewise.
28561 * doc/functions/fprintf.texi: Update.
28562 * doc/functions/printf.texi: Update.
28563 * doc/functions/snprintf.texi: Update.
28564 * doc/functions/sprintf.texi: Update.
28565 * doc/functions/vfprintf.texi: Update.
28566 * doc/functions/vprintf.texi: Update.
28567 * doc/functions/vsnprintf.texi: Update.
28568 * doc/functions/vsprintf.texi: Update.
28570 2007-05-06 Bruno Haible <bruno@clisp.org>
28572 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
28573 pass the ' flag character to sprintf or snprintf.
28574 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
28575 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
28576 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28577 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
28578 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
28579 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28580 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28581 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28582 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28583 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28584 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28585 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28586 * tests/test-snprintf-posix.h (test_function): Also check the grouping
28588 * tests/test-sprintf-posix.h (test_function): Likewise.
28589 * tests/test-vasnprintf-posix.c (test_function): Likewise.
28590 * tests/test-vasprintf-posix.c (test_function): Likewise.
28591 * doc/functions/fprintf.texi: Update.
28592 * doc/functions/printf.texi: Update.
28593 * doc/functions/snprintf.texi: Update.
28594 * doc/functions/sprintf.texi: Update.
28595 * doc/functions/vfprintf.texi: Update.
28596 * doc/functions/vprintf.texi: Update.
28597 * doc/functions/vsnprintf.texi: Update.
28598 * doc/functions/vsprintf.texi: Update.
28600 2007-05-01 Bruno Haible <bruno@clisp.org>
28602 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
28604 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
28606 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
28607 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
28609 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
28611 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
28612 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
28613 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
28615 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
28617 * lib/argp-help.c (struct hol_entry): New member `ord'.
28618 (HOL_ENTRY_PTRCMP): Use ord for comparison
28619 (hol_sort): Initialize ord.
28621 2007-05-01 Bruno Haible <bruno@clisp.org>
28623 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
28624 Reported by Eric Blake.
28625 * doc/gnulib.texi (Function Substitutes): Update.
28627 2007-05-01 Bruno Haible <bruno@clisp.org>
28629 * doc/functions.texi: Remove file, now redundant through
28630 doc/functions/*.texi.
28632 2007-05-01 Bruno Haible <bruno@clisp.org>
28634 * modules/argp (Depends-on): Add sleep.
28636 2007-05-01 Bruno Haible <bruno@clisp.org>
28638 * modules/sleep-tests: New file.
28639 * tests/test-sleep.c: New file.
28641 * modules/sleep: New file.
28642 * lib/sleep.c: New file.
28643 * m4/sleep.m4: New file.
28644 * lib/unistd_.h (sleep): New declaration.
28645 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
28647 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
28648 * doc/functions/sleep.texi: Document the sleep module.
28650 2007-05-01 Bruno Haible <bruno@clisp.org>
28652 * lib/sigprocmask.h: Remove file.
28653 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
28654 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
28655 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
28656 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
28657 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
28658 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
28659 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
28660 HAVE_SIGSET_T as a shell variable.
28661 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
28662 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
28663 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
28664 (Depends-on): Add signal. Remove verify.
28665 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
28666 (Include): Mention <signal.h> instead of sigprocmask.h.
28667 * NEWS: Mention the change.
28668 * lib/fatal-signal.c: Don't include sigprocmask.h.
28670 2007-05-01 Bruno Haible <bruno@clisp.org>
28672 * modules/signal: New file.
28673 * lib/signal_.h: New file.
28674 * m4/signal_h.m4: New file.
28676 2007-05-01 Bruno Haible <bruno@clisp.org>
28678 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
28679 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
28680 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
28681 HAVE_WCTYPE_CTMP_BUG into wctype.h.
28683 2007-05-01 Bruno Haible <bruno@clisp.org>
28685 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
28687 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
28688 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
28689 * modules/sys_stat (Makefile.am): Substitute their values into
28692 2007-05-01 Bruno Haible <bruno@clisp.org>
28694 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
28695 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
28696 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
28698 2007-05-01 Bruno Haible <bruno@clisp.org>
28700 * doc/header/assert.texi: Undo last change: don't mention the gnulib
28701 'assert' module here.
28703 2007-05-01 Bruno Haible <bruno@clisp.org>
28705 * doc/functions/*.texi: New files.
28706 * doc/functions/google-ranking.txt: New file.
28707 * doc/gnulib.texi (Function Substitutes): New chapter.
28708 (ctime, inet_ntoa): Remove sections.
28709 * doc/ctime.texi: Remove file.
28710 * doc/inet_ntoa.texi: Remove file.
28711 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
28713 (%.info): New rule, specifying a --reference-limit.
28715 2007-05-01 Bruno Haible <bruno@clisp.org>
28717 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
28719 2007-05-01 Bruno Haible <bruno@clisp.org>
28721 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
28722 the portability of 'mkdir' to mingw systems.
28724 2007-05-01 Bruno Haible <bruno@clisp.org>
28726 * doc/headers/google-ranking.txt: New file.
28728 2007-04-30 Eric Blake <ebb9@byu.net>
28730 Prefer fseeko to fseek.
28731 * modules/getpass (Depends-on): Add fseeko.
28732 * lib/getpass.c (getpass): Use fseeko, not fseek.
28734 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
28736 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
28737 assumes the sorting is stable, while most qsort implementations
28738 are not. Use argument addresses to ensure they never compare as
28741 * tests/test-argp-2.sh (usage-indent test): Fix output
28742 (func_compare): Restore diff options
28743 * tests/test-argp.c: Restore #include "progname.h"
28745 2007-04-29 Bruno Haible <bruno@clisp.org>
28747 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
28748 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28749 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
28750 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28751 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
28752 (configure.ac): Define CHECK_SNPRINTF_POSIX.
28753 (TESTS, check_PROGRAMS): Add test-snprintf.
28754 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
28755 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
28756 (TESTS, check_PROGRAMS): Add test-vsnprintf.
28757 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
28758 assertions that fail on HP-UX, OSF/1, or IRIX.
28759 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
28761 2007-04-29 Bruno Haible <bruno@clisp.org>
28763 * MODULES.html.sh (posix_functions): Remove 'contents'.
28765 2007-04-29 Karl Berry <karl@gnu.org>
28767 * config/srclist.txt (gendocs_template_min): new entry.
28769 2007-04-29 Bruno Haible <bruno@clisp.org>
28771 Work around fpurge bug on BSD systems.
28772 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
28773 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
28774 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
28775 fpurge to rpl_fpurge if the system already has this function.
28776 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
28777 the case where the system already has this function. Correct invariants
28779 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
28782 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
28784 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
28785 proposed by Sven Verdoolaege.
28787 * tests/test-argp.c: Fix option ordering. Test deeply clustered
28789 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
28790 (usage and help tests): Update
28792 2007-04-29 Bruno Haible <bruno@clisp.org>
28794 * tests/test-fflush.c (main): Use a file of size 17, not 10.
28795 Print more information in case of failure. Disable a test on BeOS.
28797 2007-04-29 Bruno Haible <bruno@clisp.org>
28799 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
28800 This helps debugging on systems on which no gdb is available.
28802 2007-04-29 Bruno Haible <bruno@clisp.org>
28804 * lib/freading.h: Improve comments.
28805 * lib/fwriting.h: Likewise.
28806 * tests/test-freading.c (main): Don't check freading immediately after
28807 repositioning. Needed for glibc.
28809 2007-04-29 Bruno Haible <bruno@clisp.org>
28811 * lib/freading.c (freading): Trivial simplification.
28813 2007-04-28 Bruno Haible <bruno@clisp.org>
28815 * tests/test-fwriting.c (main): Also test the interaction between
28816 fflush and fwriting.
28817 * modules/fwriting-tests (Depends-on): Add fflush.
28819 * tests/test-freading.c (main): Also test the interaction between
28820 fflush and freading.
28821 * modules/freading-tests (Depends-on): Add fflush.
28823 2007-04-28 Bruno Haible <bruno@clisp.org>
28825 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
28827 Suggested by Eric Blake.
28829 2007-04-28 Jim Meyering <jim@meyering.net>
28831 Avoid false-negative in gl_STDINT_H's C99 conformance test.
28832 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
28833 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
28835 2007-04-27 Eric Blake <ebb9@byu.net>
28837 * doc/headers/assert.texi (assert.h): Document assert module use.
28839 2007-04-27 Bruno Haible <bruno@clisp.org>
28841 * doc/headers/*.texi: New files.
28842 * doc/gnulib.texi (Header File Substitutes): New chapter.
28843 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
28845 (standards.info ,standards.html, standards.dvi): Update dependencies.
28846 (mostlyclean, clean): New targets.
28848 2007-04-27 Bruno Haible <bruno@clisp.org>
28850 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
28851 * modules/sysexits (Files, Makefile.am): Update.
28853 * lib/sys_socket_.h: Renamed from lib/socket_.h.
28854 * modules/sys_socket (Files, Makefile.am): Update.
28856 * lib/sys_stat_.h: Renamed from lib/stat_.h.
28857 * modules/sys_stat (Files, Makefile.am): Update.
28859 2007-04-27 Eric Blake <ebb9@byu.net>
28861 * lib/freading.h: Improve comments.
28862 * lib/fwriting.h: Likewise.
28863 * lib/fflush.c: Likewise.
28865 Fix closein for mingw.
28866 * modules/closein-tests: Add tests for closein.
28867 * tests/test-closein.c: New file.
28868 * tests/test-closein.sh: Likewise.
28869 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
28870 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
28872 2007-04-27 Bruno Haible <bruno@clisp.org>
28874 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
28876 * lib/math_.h [__DECC]: Likewise.
28877 * lib/stdio_.h [__DECC]: Likewise.
28878 * lib/stdlib_.h [__DECC]: Likewise.
28879 * lib/string_.h [__DECC]: Likewise.
28880 * lib/time_.h [__DECC]: Likewise.
28881 * lib/wchar_.h [__DECC]: Likewise.
28882 * lib/wctype_.h [__DECC]: Likewise.
28884 2007-04-27 Bruno Haible <bruno@clisp.org>
28886 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
28888 2007-04-27 Bruno Haible <bruno@clisp.org>
28890 * lib/fflush.c: Add comments.
28891 * modules/fpurge-tests (Depends-on): Add fflush.
28892 * modules/freadable-tests (Depends-on): Likewise.
28893 * modules/fwritable-tests (Depends-on): Likewise.
28895 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
28897 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
28898 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
28899 Report by Bruno Haible <bruno@clisp.org>.
28901 2007-04-26 Eric Blake <ebb9@byu.net>
28903 Fix fflush on mingw.
28904 * modules/fflush (Depends-on): Add freading.
28905 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
28908 2007-04-26 Eric Blake <ebb9@byu.net>
28909 and Bruno Haible <bruno@clisp.org>
28911 Implement freading and fwriting.
28912 * lib/freading.c: New file.
28913 * lib/freading.h: Likewise.
28914 * m4/freading.m4: Likewise.
28915 * modules/freading: Likewise.
28916 * modules/freading-tests: Likewise.
28917 * tests/test-freading.c: Likewise.
28918 * lib/fwriting.c: New file.
28919 * lib/fwriting.h: Likewise.
28920 * m4/fwriting.m4: Likewise.
28921 * modules/fwriting: Likewise.
28922 * modules/fwriting-tests: Likewise.
28923 * tests/test-fwriting.c: Likewise.
28924 * MODULES.html.sh (File stream based Input/Output): Mention them.
28926 2007-04-26 Bruno Haible <bruno@clisp.org>
28928 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
28929 'long' when we assume it.
28930 Suggested by Eric Blake.
28932 2007-04-26 Bruno Haible <bruno@clisp.org>
28934 Ensure fseeko, ftello are declared on glibc systems.
28935 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
28936 * modules/fseeko (configure.ac-early): Likewise.
28937 * modules/ftello (configure.ac-early): Likewise.
28938 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
28939 AC_FUNC_FSEEKO for this.
28940 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
28941 (gl_CHECK_FSEEKO): Remove macro.
28943 2007-04-26 Bruno Haible <bruno@clisp.org>
28945 * tests/test-fflush.c (main): Also check the ftell result after
28946 fflush and fseek/fseeko.
28947 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
28948 file descriptor position cache in the stream.
28949 * lib/fseeko.c (rpl_fseeko): Likewise.
28951 2007-04-26 Bruno Haible <bruno@clisp.org>
28953 * modules/fflush-tests (Depends-on): Add fseeko.
28955 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
28956 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28958 * lib/argz_.h: ensure error_t definition is obtained in same
28959 mechanism system argz.h would have.
28960 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
28961 argz facilities are known bad. Err on the side of caution if
28964 2007-04-25 Eric Blake <ebb9@byu.net>
28966 * lib/fpurge.c (includes): Use stdlib.h for free.
28967 * tests/test-fflush.c (main): Also test fflush-fseeko.
28969 2007-04-25 Bruno Haible <bruno@clisp.org>
28971 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
28972 * lib/fseeko.c: New file.
28973 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
28974 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
28975 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
28977 (gl_FUNC_FSEEKO): Invoke it.
28978 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
28979 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
28980 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
28982 2007-04-25 Bruno Haible <bruno@clisp.org>
28984 * modules/fflush (Depends-on): Add ftello.
28986 2007-04-25 Bruno Haible <bruno@clisp.org>
28988 * modules/ftello-tests: New file.
28989 * tests/test-ftello.c: New file.
28991 * modules/ftello: New file.
28992 * m4/ftello.m4: New file.
28993 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
28995 * lib/stdio_.h (ftello): New declaration.
28996 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
28999 2007-04-25 Bruno Haible <bruno@clisp.org>
29001 * modules/fseeko-tests: New file.
29002 * tests/test-fseeko.c: New file.
29004 * modules/fseeko: New file.
29005 * m4/fseeko.m4: New file.
29006 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
29008 * lib/stdio_.h (fseeko): New declaration.
29009 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
29012 2007-04-25 Bruno Haible <bruno@clisp.org>
29014 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
29016 2007-04-25 Bruno Haible <bruno@clisp.org>
29018 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
29019 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
29020 * tests/test-unistd.c: Likewise.
29021 * tests/test-fcntl.c: Likewise.
29023 2007-04-23 Eric Blake <ebb9@byu.net>
29025 * lib/fflush.c: Fix missing include.
29026 Reported by Bruno Haible.
29028 2007-04-23 Bruno Haible <bruno@clisp.org>
29030 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
29031 Reported by Eric Blake.
29033 2007-04-23 Bruno Haible <bruno@clisp.org>
29035 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
29037 2007-04-23 Bruno Haible <bruno@clisp.org>
29039 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
29041 2007-04-23 Bruno Haible <bruno@clisp.org>
29043 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
29044 Needed on HP-UX 11.
29046 2007-04-16 Eric Blake <ebb9@byu.net>
29048 Make fflush rely on fpurge.
29049 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
29050 open coding all variants.
29051 * modules/fflush (Depends-on): Add fpurge and unistd.
29052 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
29053 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
29055 Fix --with-tests compilation on cygwin.
29056 * modules/argmatch-tests (Makefile.am): List gnulib library first
29058 * modules/argp-tests (Makefile.am): Likewise.
29059 * modules/array-list-tests (Makefile.am): Likewise.
29060 * modules/array-oset-tests (Makefile.am): Likewise.
29061 * modules/avltree-list-tests (Makefile.am): Likewise.
29062 * modules/avltree-oset-tests (Makefile.am): Likewise.
29063 * modules/avltreehash-list-tests (Makefile.am): Likewise.
29064 * modules/carray-list-tests (Makefile.am): Likewise.
29065 * modules/dirname-tests (Makefile.am): Likewise.
29066 * modules/frexp-tests (Makefile.am): Likewise.
29067 * modules/isnanl-tests (Makefile.am): Likewise.
29068 * modules/linked-list-tests (Makefile.am): Likewise.
29069 * modules/linkedhash-list-tests (Makefile.am): Likewise.
29070 * modules/lock-tests (Makefile.am): Likewise.
29071 * modules/rbtree-list-tests (Makefile.am): Likewise.
29072 * modules/rbtree-oset-tests (Makefile.am): Likewise.
29073 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29074 * modules/tls-tests (Makefile.am): Likewise.
29075 * modules/tsearch-tests (Makefile.am): Likewise.
29076 * modules/xvasprintf-tests (Makefile.am): Likewise.
29078 Fix fpurge for cygwin.
29079 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
29081 * modules/fpurge-tests (Depends-on): Clean up trash.
29083 2007-04-16 Simon Josefsson <simon@josefsson.org>
29085 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
29087 * m4/autobuild.m4: Re-indent.
29089 2007-04-13 Bruno Haible <bruno@clisp.org>
29091 * modules/fpurge-tests: New file.
29092 * tests/test-fpurge.c: New file.
29094 * modules/fpurge: New file.
29095 * lib/fpurge.h: New file.
29096 * lib/fpurge.c: New file.
29097 * m4/fpurge.m4: New file.
29099 2007-04-13 Bruno Haible <bruno@clisp.org>
29101 * modules/fbufmode-tests: New file.
29102 * tests/test-fbufmode.c: New file.
29104 * modules/fbufmode: New file.
29105 * lib/fbufmode.h: New file.
29106 * lib/fbufmode.c: New file.
29107 * m4/fbufmode.m4: New file.
29109 2007-04-13 Bruno Haible <bruno@clisp.org>
29111 * modules/fwritable-tests: New file.
29112 * tests/test-fwritable.c: New file.
29114 * modules/fwritable: New file.
29115 * lib/fwritable.h: New file.
29116 * lib/fwritable.c: New file.
29117 * m4/fwritable.m4: New file.
29119 2007-04-13 Bruno Haible <bruno@clisp.org>
29121 * modules/freadable-tests: New file.
29122 * tests/test-freadable.c: New file.
29124 * modules/freadable: New file.
29125 * lib/freadable.h: New file.
29126 * lib/freadable.c: New file.
29127 * m4/freadable.m4: New file.
29129 2007-04-13 Bruno Haible <bruno@clisp.org>
29131 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
29134 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
29136 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
29137 gzip bootstrap.conf to avoid dragging in i18n machinery.
29138 (gnulib_tool_option): Use it.
29140 2007-04-13 Bruno Haible <bruno@clisp.org>
29142 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
29144 * tests/test-vasprintf-posix.c (test_function): Likewise.
29145 * tests/test-snprintf-posix.h (test_function): Likewise.
29146 * tests/test-sprintf-posix.h (test_function): Likewise.
29147 * tests/test-fprintf-posix.h (test_function): Likewise.
29148 * tests/test-printf-posix.h (test_function): Likewise.
29149 * tests/test-fprintf-posix.out: Likewise.
29151 2007-04-13 Bruno Haible <bruno@clisp.org>
29153 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
29154 * modules/tls-tests (configure.ac): Likewise.
29155 Reported by Arto C. Nirkko <anirkko@insel.ch>.
29157 2007-04-13 Bruno Haible <bruno@clisp.org>
29159 * lib/tls.c (glthread_tls_get): Fix return type.
29160 Patch by Arto C. Nirkko <anirkko@insel.ch>.
29162 2007-04-12 Eric Blake <ebb9@byu.net>
29164 * modules/gettime (Depends-on): Remove gettime.
29165 Reported by Dmitry V. Levin.
29167 2007-04-12 Bruno Haible <bruno@clisp.org>
29169 * modules/fflush (Include): Mention <stdio.h>.
29170 * modules/strtoimax (Include): Mention <inttypes.h>.
29171 * modules/strtoumax (Include): Likewise.
29173 2007-04-12 Eric Blake <ebb9@byu.net>
29175 * .cvsignore: New file.
29176 * .gitignore: Likewise.
29178 2007-04-12 Bruno Haible <bruno@clisp.org>
29180 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
29181 not before, since $(LDADD) often contains libgnu.a.
29182 * modules/striconv-tests (test_striconv_LDADD): Likewise.
29183 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
29184 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
29187 2007-04-12 Eric Blake <ebb9@byu.net>
29189 Work around glibc's failure to flush stdin on fclose.
29190 * lib/closein.c (close_stdin): Flush stdin before closing.
29192 Work around glibc's failure to reset seekable stdin on exit.
29193 * modules/closein: New module.
29194 * lib/closein.c: New file.
29195 * lib/closein.h: Likewise.
29196 * m4/closein.m4: Likewise.
29197 * MODULES.html.sh (File stream based Input/Output): Document it.
29199 2007-04-12 Simon Josefsson <simon@josefsson.org>
29201 * gnulib-tool: Rename generated 'autobuild' script to
29202 'do-autobuild' in --create-megatestdir output.
29204 * doc/gnulib.texi (Build robot for gnulib): Fix.
29206 2007-04-12 Simon Josefsson <simon@josefsson.org>
29208 * modules/sysexits (Depends-on): Add absolute-header.
29210 2007-04-12 Eric Blake <ebb9@byu.net>
29212 No need to preserve errno on success.
29213 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
29214 Reported by Bruno Haible.
29216 2007-04-12 Simon Josefsson <simon@josefsson.org>
29218 * MODULES.html.sh (Support for maintaining and releasing
29219 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
29221 2007-04-12 Simon Josefsson <simon@josefsson.org>
29223 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
29225 2007-04-12 Simon Josefsson <simon@josefsson.org>
29227 * modules/autobuild: New module.
29229 * m4/autobuild.m4: New file.
29231 2007-04-11 Bruno Haible <bruno@clisp.org>
29233 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
29234 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
29235 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
29236 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
29237 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29238 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29239 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29240 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29241 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29242 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29243 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
29244 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29245 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29246 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
29247 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29248 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29249 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
29250 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29251 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29252 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
29253 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29254 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29255 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
29256 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29257 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29258 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
29259 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29260 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29261 Reported by Eric Blake.
29263 2007-04-11 Bruno Haible <bruno@clisp.org>
29265 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
29267 2007-04-10 Bruno Haible <bruno@clisp.org>
29269 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
29270 for NaN and Infinity. Needed on FreeBSD 6.1.
29271 * tests/test-vasnprintf-posix.c (test_function): Undo last change
29272 regarding results for "%010a" of Infinity and NaN.
29273 * tests/test-vasprintf-posix.c (test_function): Likewise.
29274 * tests/test-snprintf-posix.h (test_function): Likewise.
29275 * tests/test-sprintf-posix.h (test_function): Likewise.
29276 * tests/test-fprintf-posix.h (test_function): Likewise.
29277 * tests/test-printf-posix.h (test_function): Likewise.
29278 * tests/test-fprintf-posix.out: Likewise.
29280 2007-04-10 Bruno Haible <bruno@clisp.org>
29282 * modules/locale-tests: New file.
29283 * tests/test-locale.c: New file.
29285 * modules/locale: New file.
29286 * lib/locale_.h: New file.
29287 * m4/locale_h.m4: New file.
29289 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
29290 Bruno Haible <bruno@clisp.org>
29292 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
29293 be determined, test for availability of the copysignf, copysign,
29294 copysignl functions.
29295 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
29296 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
29297 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
29299 2007-04-09 Eric Blake <ebb9@byu.net>
29301 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
29302 * modules/stdio (Makefile.am): Support fflush.
29303 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29304 * modules/fflush: New file.
29305 * lib/fflush.c: Likewise.
29306 * m4/fflush.m4: Likewise.
29307 * modules/fflush-tests: New test.
29308 * tests/test-fflush.c: Likewise.
29309 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
29311 2007-04-06 Bruno Haible <bruno@clisp.org>
29313 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
29314 (VASNPRINTF): Use signbit for faster determination whether to print a
29316 * modules/vasnprintf (Files): Remove lib/float+.h.
29317 * modules/fprintf-posix (Depends-on): Add signbit.
29318 * modules/snprintf-posix (Depends-on): Likewise.
29319 * modules/sprintf-posix (Depends-on): Likewise.
29320 * modules/vasnprintf-posix (Depends-on): Likewise.
29321 * modules/vasprintf-posix (Depends-on): Likewise.
29322 * modules/vfprintf-posix (Depends-on): Likewise.
29323 * modules/vsnprintf-posix (Depends-on): Likewise.
29324 * modules/vsprintf-posix (Depends-on): Likewise.
29326 2007-04-06 Bruno Haible <bruno@clisp.org>
29328 * tests/test-frexp.c (main): Test also the sign bit of zero results.
29329 * tests/test-frexpl.c (main): Likewise.
29330 * tests/test-ldexpl.c (main): Likewise.
29331 * modules/frexp-tests (Depends-on): Add signbit.
29332 * modules/frexpl-tests (Depdends-on): Likewise.
29333 * modules/ldexpl-tests (Depdends-on): Likewise.
29335 2007-04-06 Bruno Haible <bruno@clisp.org>
29337 * modules/signbit-tests: New file.
29338 * tests/test-signbit.c: New file.
29340 * modules/signbit: New file.
29341 * lib/signbitf.c: New file.
29342 * lib/signbitd.c: New file.
29343 * lib/signbitl.c: New file.
29344 * m4/signbit.m4: New file.
29345 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
29346 (signbit): New macro.
29347 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
29349 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
29350 REPLACE_FREXPL into math.h.
29352 2007-04-06 Bruno Haible <bruno@clisp.org>
29354 * modules/isnanf-nolibm-tests: New file.
29355 * tests/test-isnanf.c: New file.
29357 * modules/isnanf-nolibm: New file.
29358 * lib/isnanf.h: New file.
29359 * lib/isnanf.c: New file.
29360 * lib/isnan.c: Consider the USE_FLOAT macro.
29361 * m4/isnanf.m4: New file.
29363 2007-04-06 Bruno Haible <bruno@clisp.org>
29365 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
29366 (Link): New section.
29368 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
29370 2007-04-06 Bruno Haible <bruno@clisp.org>
29372 Assume the 'long double' type.
29373 * m4/longdouble.m4: Remove file.
29374 * config/srclist.txt: Don't mention longdouble.m4.
29375 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
29376 * lib/float+.h: Likewise.
29377 * lib/frexp.c: Likewise.
29378 * lib/printf-args.h: Likewise.
29379 * lib/printf-args.c: Likewise.
29380 * lib/printf-frexp.c: Likewise.
29381 * lib/printf-parse.c: Likewise.
29382 * lib/vasnprintf.c: Likewise.
29383 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
29384 * m4/intl.m4: Likewise.
29385 * m4/isnanl.m4: Likewise.
29386 * m4/printf.m4: Likewise.
29387 * m4/printf-frexpl.m4: Likewise.
29388 * m4/vasnprintf.m4: Likewise.
29389 * modules/allocsa (Files): Remove m4/longdouble.m4.
29390 * modules/gettext (Files): Likewise.
29391 * modules/relocatable-prog-wrapper (Files): Likewise.
29392 * modules/vasnprintf (Files): Likewise.
29393 * modules/isnanl (Files): Likewise.
29394 (Include): Simplify.
29395 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
29396 (Include): Simplify.
29397 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
29398 (Include): Simplify.
29399 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
29400 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29401 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
29402 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29403 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29404 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29405 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
29406 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29407 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29408 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29409 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
29410 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29411 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
29412 * tests/test-isnanl.c: Likewise.
29413 * tests/test-snprintf-posix.h: Likewise.
29414 * tests/test-sprintf-posix.h: Likewise.
29415 * tests/test-vasnprintf-posix.c: Likewise.
29416 * tests/test-vasnprintf-posix2.c: Likewise.
29417 * tests/test-vasprintf-posix.c: Likewise.
29419 2007-04-06 Bruno Haible <bruno@clisp.org>
29421 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
29422 * lib/math_.h [__DECC]: Include the overridden include file through
29423 #include_next, outside the double-inclusion guard.
29424 * lib/stdio_.h [__DECC]: Likewise.
29425 * lib/stdlib_.h [__DECC]: Likewise.
29426 * lib/string_.h [__DECC]: Likewise.
29427 * lib/time_.h [__DECC]: Likewise.
29428 * lib/wchar_.h [__DECC]: Likewise.
29429 * lib/wctype_.h [__DECC]: Likewise.
29430 * lib/inttypes_.h [__DECC]: Likewise.
29431 Reported by Albert Chin <china@thewrittenword.com> in
29432 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
29434 2007-04-04 Eric Blake <ebb9@byu.net>
29436 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
29439 2007-04-04 Bruno Haible <bruno@clisp.org>
29441 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
29442 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
29444 2007-04-04 Bruno Haible <bruno@clisp.org>
29446 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
29447 results for "%010a" of Infinity and NaN.
29448 * tests/test-vasprintf-posix.c (test_function): Likewise.
29449 * tests/test-snprintf-posix.h (test_function): Likewise.
29450 * tests/test-sprintf-posix.h (test_function): Likewise.
29451 * tests/test-fprintf-posix.h (test_function): Remove these tests.
29452 * tests/test-printf-posix.h (test_function): Likewise.
29453 * tests/test-fprintf-posix.out: Update.
29454 Needed for FreeBSD 6.1.
29456 2007-04-04 Bruno Haible <bruno@clisp.org>
29458 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
29459 directly used by the gnulib modules nor by gnulib-tool.
29461 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
29463 * DEPENDENCIES: Give overall description of version dependency
29464 desirability. Use more-typical names for apps.
29465 Add shell, coreutils, diffutils, grep, tar, gzip.
29467 2007-04-04 Simon Josefsson <simon@josefsson.org>
29469 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
29471 2007-04-04 Karl Berry <karl@gnu.org>
29473 * MODULES.html.sh (func_module): missing '.
29475 2007-04-03 Bruno Haible <bruno@clisp.org>
29477 * modules/argmatch-tests (Makefile.am): New variable
29478 test_argmatch_LDADD.
29479 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
29480 * modules/array-list-tests (Makefile.am): New variable
29481 test_array_list_LDADD.
29482 * modules/array-oset-tests (Makefile.am): New variable
29483 test_array_oset_LDADD.
29484 * modules/avltree-list-tests (Makefile.am): New variable
29485 test_avltree_list_LDADD.
29486 * modules/avltree-oset-tests (Makefile.am): New variable
29487 test_avltree_oset_LDADD.
29488 * modules/avltreehash-list-tests (Makefile.am): New variable
29489 test_avltreehash_list_LDADD.
29490 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
29491 test_canonicalize_lgpl_LDADD.
29492 * modules/carray-list-tests (Makefile.am): New variable
29493 test_carray_list_LDADD.
29494 * modules/dirname-tests (Makefile.am): New variable
29495 test_dirname_LDADD.
29496 * modules/linked-list-tests (Makefile.am): New variable
29497 test_linked_list_LDADD.
29498 * modules/linkedhash-list-tests (Makefile.am): New variable
29499 test_linkedhash_list_LDADD.
29500 * modules/rbtree-list-tests (Makefile.am): New variable
29501 test_rbtree_list_LDADD.
29502 * modules/rbtree-oset-tests (Makefile.am): New variable
29503 test_rbtree_oset_LDADD.
29504 * modules/rbtreehash-list-tests (Makefile.am): New variable
29505 test_rbtreehash_list_LDADD.
29506 * modules/xvasprintf-tests (Makefile.am): New variable
29507 test_xvasprintf_LDADD.
29508 Reported by Eric Blake.
29510 2007-04-03 Eric Blake <ebb9@byu.net>
29512 * DEPENDENCIES: Weaken m4 requirements.
29514 2007-04-03 Bruno Haible <bruno@clisp.org>
29516 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
29517 * modules/isnanl-tests (configure.ac): Likewise.
29519 2007-04-03 Ben Pfaff <blp@gnu.org>
29521 * modules/iconv_open: Add $(srcdir)/ to source directory
29522 references in Makefile fragments that call gperf, to fix VPATH
29525 2007-04-03 Bruno Haible <bruno@clisp.org>
29527 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
29528 * lib/ldexpl.c: Undo last change.
29530 2007-04-03 Bruno Haible <bruno@clisp.org>
29532 * modules/printf-frexpl (Depends-on): Undo last change.
29533 (Files): Add m4/ldexpl.m4.
29535 2007-04-03 Bruno Haible <bruno@clisp.org>
29537 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
29538 * modules/isnanl (Link): New section.
29540 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
29541 * modules/frexp (Link): New section.
29543 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
29544 * modules/frexpl (Link): New section.
29546 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
29547 * modules/ldexpl (Link): New section.
29549 2007-04-03 Bruno Haible <bruno@clisp.org>
29551 * modules/TEMPLATE-EXTENDED: New file.
29552 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
29554 2007-04-03 Bruno Haible <bruno@clisp.org>
29556 * DEPENDENCIES: New file.
29557 Suggested by Simon Josefsson.
29559 2007-04-03 Bruno Haible <bruno@clisp.org>
29561 * doc/gnulib.texi: Escape @.
29563 2007-04-03 James Youngman <jay@gnu.org>
29564 and Paul Eggert <eggert@cs.ucla.edu>
29566 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
29567 birthtime on all systems that have birthtime, not just those which
29568 use st_birthtimensec rather than st_birthtim. Putting zero in
29569 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
29570 that the birth time is not available for files on an NFS mount.
29572 2007-04-03 Simon Josefsson <simon@josefsson.org>
29574 * modules/memxor: Move back from crypto/, suggested by Bruno.
29575 * modules/crypto/hmac-sha1: Fix memxor dependency.
29577 * modules/crypto/gc: Moved from ../.
29579 2007-04-02 Eric Blake <ebb9@byu.net>
29581 * lib/ldexpl.c (includes): Avoid libm.
29583 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
29585 2007-04-02 Bruno Haible <bruno@clisp.org>
29587 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
29590 2007-04-02 Bruno Haible <bruno@clisp.org>
29592 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
29593 x86 or x86_64 platforms running MacOS X.
29594 Reported by Ryan Schmidt <@ryandesign.com>.
29596 2007-04-02 Bruno Haible <bruno@clisp.org>
29598 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
29601 2007-04-01 Simon Josefsson <simon@josefsson.org>
29603 * modules/crypto/arcfour: Moved from ../.
29604 * modules/crypto/arcfour-tests: Moved from ../.
29605 * modules/crypto/arctwo: Moved from ../.
29606 * modules/crypto/arctwo-tests: Moved from ../.
29607 * modules/crypto/des: Moved from ../.
29608 * modules/crypto/des-tests: Moved from ../.
29609 * modules/crypto/gc-arcfour: Moved from ../.
29610 * modules/crypto/gc-arcfour-tests: Moved from ../.
29611 * modules/crypto/gc-arctwo: Moved from ../.
29612 * modules/crypto/gc-arctwo-tests: Moved from ../.
29613 * modules/crypto/gc-des: Moved from ../.
29614 * modules/crypto/gc-des-tests: Moved from ../.
29615 * modules/crypto/gc-hmac-md5: Moved from ../.
29616 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
29617 * modules/crypto/gc-hmac-sha1: Moved from ../.
29618 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
29619 * modules/crypto/gc-md2: Moved from ../.
29620 * modules/crypto/gc-md2-tests: Moved from ../.
29621 * modules/crypto/gc-md4: Moved from ../.
29622 * modules/crypto/gc-md4-tests: Moved from ../.
29623 * modules/crypto/gc-md5: Moved from ../.
29624 * modules/crypto/gc-md5-tests: Moved from ../.
29625 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
29626 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
29627 * modules/crypto/gc-random: Moved from ../.
29628 * modules/crypto/gc-rijndael: Moved from ../.
29629 * modules/crypto/gc-rijndael-tests: Moved from ../.
29630 * modules/crypto/gc-sha1: Moved from ../.
29631 * modules/crypto/gc-sha1-tests: Moved from ../.
29632 * modules/crypto/gc-tests: Moved from ../.
29633 * modules/crypto/hmac-md5: Moved from ../.
29634 * modules/crypto/hmac-md5-tests: Moved from ../.
29635 * modules/crypto/hmac-sha1: Moved from ../.
29636 * modules/crypto/hmac-sha1-tests: Moved from ../.
29637 * modules/crypto/md2: Moved from ../.
29638 * modules/crypto/md2-tests: Moved from ../.
29639 * modules/crypto/md4: Moved from ../.
29640 * modules/crypto/md4-tests: Moved from ../.
29641 * modules/crypto/md5: Moved from ../.
29642 * modules/crypto/md5-tests: Moved from ../.
29643 * modules/crypto/memxor: Moved from ../.
29644 * modules/crypto/rijndael: Moved from ../.
29645 * modules/crypto/rijndael-tests: Moved from ../.
29646 * modules/crypto/sha1: Moved from ../.
29648 2007-03-30 James Youngman <jay@gnu.org>
29650 * tests/test-stat-time.c (prepare_test): use chmod() rather than
29651 rename() to change the ctime of a file (because ctime is unaffected
29652 by rename on jfs2 on AIX 5.1).
29653 (main): Start by doing cleanup, in case a previous run failed leaving
29656 2007-03-31 Bruno Haible <bruno@clisp.org>
29658 Support old proprietary implementations of iconv.
29659 * modules/iconv_open: New file.
29660 * lib/iconv_.h: New file.
29661 * m4/iconv_h.m4: New file.
29662 * lib/iconv_open.c: New file.
29663 * lib/iconv_open-aix.gperf: New file.
29664 * lib/iconv_open-hpux.gperf: New file.
29665 * lib/iconv_open-irix.gperf: New file.
29666 * lib/iconv_open-osf.gperf: New file.
29667 * m4/iconv_open.m4: New file.
29668 * modules/linebreak (Depends-on): Add iconv_open.
29669 * modules/striconv (Depends-on): Likewise.
29670 * modules/striconveh (Depends-on): Likewise.
29671 * modules/unicodeio (Depends-on): Likewise.
29672 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
29674 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
29675 conversion if cd is (iconv_t)(-1).
29676 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
29679 2007-03-31 Bruno Haible <bruno@clisp.org>
29681 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
29682 work on Solaris either. Protect also second use of "autodetect_jp".
29684 2007-03-31 Bruno Haible <bruno@clisp.org>
29686 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
29687 the function is not present.
29689 2007-03-31 Bruno Haible <bruno@clisp.org>
29691 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
29692 the function is not present.
29694 2007-03-31 Bruno Haible <bruno@clisp.org>
29696 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
29697 a bug in HP-UX iconv_open().
29699 2007-03-31 Bruno Haible <bruno@clisp.org>
29701 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
29702 (Mathematics <math.h>): New section, add fpieee.
29703 (Input/output <stdio.h>): Add fseterr.
29704 (Mathematics <math.h>): New section, add printf-frexp.
29705 (Container data structures): Add sublist.
29706 (Core language properties): Add fpucw, inline.
29707 (Functions for greatest-width integer types <inttypes.h>): Add
29708 imaxabs, imaxdiv, inttypes.
29709 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
29710 isnanl-nolibm, ldexp.
29711 (Mathematics <math.h>): New section, add printf-frexpl.
29712 (Support for systems lacking POSIX:2001): Add fprintf-posix,
29713 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
29714 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
29715 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
29716 (Unicode string functions): Add unistr/u*-mbtoucr.
29717 (Java): Add javacomp-script, javaexec-script.
29718 (C#): Add csharpcomp-script, csharpexec-script.
29719 (Support for building libraries and executables): Add havelib,
29721 (Support for maintaining and releasing projects): Renamed from
29722 'Support for maintaining and release projects'. Add announce-gen.
29724 2007-03-31 Bruno Haible <bruno@clisp.org>
29726 * README: Talk primarily about git.
29727 (git and CVS): Renamed from CVS.
29728 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
29729 gnulib is available through git.
29730 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
29732 2007-03-30 Bruno Haible <bruno@clisp.org>
29734 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
29735 * lib/poll_.h: Likewise.
29736 * lib/stat_.h: Likewise.
29737 * lib/sys_time_.h: Likewise.
29738 * lib/sysexit_.h: Likewise.
29739 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
29740 * lib/stdbool_.h: Likewise.
29741 * lib/byteswap_.h: Add double-inclusion guard.
29743 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
29745 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
29747 2007-03-30 Karl Berry <karl@gnu.org>
29749 * config/srclist-update: double space after USA in the license
29750 substitution, since that's how it's usually (?) written.
29752 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
29754 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
29755 reported by Bruno Haible.
29757 2007-03-29 Bruno Haible <bruno@clisp.org>
29759 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
29760 a bug in AIX iconv().
29762 2007-03-29 Bruno Haible <bruno@clisp.org>
29764 * modules/ldexpl-tests: New file.
29765 * tests/test-ldexpl.c: New file.
29767 2007-03-29 Bruno Haible <bruno@clisp.org>
29769 * lib/ldexpl.c: Include fpucw.h.
29770 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
29772 * modules/ldexpl (Depends-on): Add fpucw.
29774 2007-03-29 Bruno Haible <bruno@clisp.org>
29776 * modules/ldexpl: New file.
29777 * m4/ldexpl.m4: New file.
29778 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
29780 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
29782 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
29784 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
29785 gl_FUNC_LDEXPL_WORKS.
29786 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
29787 * modules/mathl (Files): Remove lib/ldexpl.c.
29788 (Depends-on): Add ldexpl.
29790 2007-03-29 Bruno Haible <bruno@clisp.org>
29792 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
29794 2007-03-29 Bruno Haible <bruno@clisp.org>
29796 * tests/test-striconveh.c (main): Don't assume that a direct conversion
29797 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
29798 and possibly also HP-UX.
29799 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
29800 work on AIX, IRIX, HP-UX, OSF/1.
29801 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
29802 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
29803 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
29804 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
29805 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
29806 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
29808 2007-03-29 Bruno Haible <bruno@clisp.org>
29810 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
29812 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
29814 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
29815 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
29817 2007-03-29 Eric Blake <ebb9@byu.net>
29819 * lib/acl-internal.h: Remove redundant include.
29820 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
29821 Cygwin when a file is locked.
29823 2007-03-29 Bruno Haible <bruno@clisp.org>
29825 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
29827 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
29829 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
29831 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
29832 try to remove a parent directory if the child couldn't be removed
29833 (except for the first rmdir, which could fail because the child
29834 doesn't exist). Problem reported by Jeff Blaine in
29835 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
29837 2007-03-28 Bruno Haible <bruno@clisp.org>
29839 * lib/striconveh.c (utf8conv_carefully): New function.
29840 (mem_cd_iconveh_internal): Invoke it.
29842 2007-03-28 Bruno Haible <bruno@clisp.org>
29844 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
29845 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
29847 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
29848 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
29851 2007-03-28 Bruno Haible <bruno@clisp.org>
29853 * modules/unistr/u8-mbtoucr: New file.
29854 * lib/unistr/u8-mbtoucr.c: New file.
29855 * modules/unistr/u16-mbtoucr: New file.
29856 * lib/unistr/u16-mbtoucr.c: New file.
29857 * modules/unistr/u16-mbtoucr: New file.
29858 * lib/unistr/u16-mbtoucr.c: New file.
29859 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
29861 2007-03-27 Simon Josefsson <simon@josefsson.org>
29862 Bruno Haible <bruno@clisp.org>
29864 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
29865 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
29866 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
29868 * m4/stdio_h.m4: Add stubs for vasprintf too.
29870 * modules/stdio: Support vasprintf in sed command.
29872 * modules/vasprintf: Depend on stdio for prototypes. Remove
29873 vasprintf.h. Add stdio module indicator.
29875 * lib/stdio_.h: Declare asprintf and vasprintf, based on
29878 * lib/vasprintf.h: File removed.
29880 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
29881 * lib/vasprintf.c: Ditto.
29882 * lib/xvasprintf.c: Ditto.
29883 * tests/test-vasprintf-posix.c: Ditto.
29884 * tests/test-vasprintf.c: Ditto.
29886 2007-03-27 Bruno Haible <bruno@clisp.org>
29888 Make vasnprintf multithread-safe.
29889 * lib/vasnprintf.c (decimal_point_char): New function.
29890 (VASNPRINTF): Use it.
29891 Suggested by Simon Josefsson.
29893 2007-03-27 Eric Blake <ebb9@byu.net>
29895 Support sub-second birthtime on cygwin.
29896 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
29897 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
29898 (get_stat_birthtime): Also work with st_birthtim.
29900 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
29902 * lib/stat-time.h (USE_BIRTHTIME): Remove.
29903 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
29904 (get_stat_birthtime_ns): Do not try to use "spare" fields.
29905 (get_stat_birthtime_ns): Simplify compile-time tests.
29906 (get_stat_birthtime): Change the API to look like
29907 get_stat_mtime etc., except return a negative tv_nsec on error.
29908 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
29909 Don't check for "spare" fields.
29910 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
29911 or for struct stat.st_birthtime, as these tests aren't used.
29912 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
29914 2007-03-27 Bruno Haible <bruno@clisp.org>
29916 * lib/stat-time.h: Include <sys/stat.h>.
29918 2007-03-27 James Youngman <jay@gnu.org>
29920 * lib/stat-time.h (get_stat_birthtime): New function for
29921 retrieving st_birthtime as provided by UFS2 (hence *BSD).
29922 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
29924 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
29925 * modules/stat-time-test: New file.
29926 * tests/test-stat-time.c: New test, devised by Bruno Haible.
29928 2007-03-26 Bruno Haible <bruno@clisp.org>
29930 Better support of signalling NaNs.
29931 * lib/atanl.c: Include isnanl.h.
29932 (atanl): Perform test for NaN at the beginning of the function and
29933 through a call to isnanl.
29934 * lib/cosl.c: Include isnanl.h.
29935 (cosl): Perform test for NaN at the beginning of the function and
29936 through a call to isnanl.
29937 * lib/ldexpl.c: Include isnanl.h.
29938 (ldexpl): Perform test for NaN through a call to isnanl.
29939 * lib/logl.c: Include isnanl.h.
29940 (logl): Perform test for NaN at the beginning of the function and
29941 through a call to isnanl.
29942 * lib/sinl.c: Include isnanl.h.
29943 (sinl): Perform test for NaN at the beginning of the function and
29944 through a call to isnanl.
29945 * lib/sqrtl.c: Include isnanl.h.
29946 (sqrtl): Perform test for NaN at the beginning of the function and
29947 through a call to isnanl.
29948 * lib/tanl.c: Include isnanl.h.
29949 (tanl): Perform test for NaN at the beginning of the function and
29950 through a call to isnanl.
29951 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
29952 * modules/mathl (Depends-on): Add isnanl.
29954 2007-03-26 Eric Blake <ebb9@byu.net>
29956 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
29957 regression in logic sense of previous patch.
29959 2007-03-26 Bruno Haible <bruno@clisp.org>
29961 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
29962 unportable shell command "if ! ...".
29963 Reported by Ralf Wildenhues.
29965 2007-03-25 Bruno Haible <bruno@clisp.org>
29967 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
29968 <sysexits.h> file, and only add EX_CONFIG.
29969 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
29970 absolute file name and whether it is sufficient. Substitute also
29971 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
29972 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
29973 ABSOLUTE_SYSEXITS_H into sysexits.h.
29975 2007-03-25 Bruno Haible <bruno@clisp.org>
29977 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
29980 2007-03-25 Bruno Haible <bruno@clisp.org>
29982 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
29983 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
29985 2007-03-25 Bruno Haible <bruno@clisp.org>
29987 * lib/vasnprintf.c: Include langinfo.h.
29988 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
29990 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
29991 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
29992 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29993 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29994 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29995 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29996 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29997 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
29998 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29999 Reported by Simon Josefsson.
30001 2007-03-25 Bruno Haible <bruno@clisp.org>
30003 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
30004 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
30005 * modules/vasnprintf (Depends-on): Add stdint.
30007 2007-03-25 Bruno Haible <bruno@clisp.org>
30009 * modules/fpieee: New file.
30010 * m4/fpieee.m4: New file.
30011 * modules/isnan-nolibm (Depends-on): Add fpieee.
30012 * modules/isnanl-nolibm (Depends-on): Add fpieee.
30013 * modules/isnanl (Depends-on): Add fpieee.
30015 2007-03-25 Bruno Haible <bruno@clisp.org>
30017 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
30019 2007-03-25 Bruno Haible <bruno@clisp.org>
30021 Avoid test failures on IRIX 6.5.
30022 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
30024 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
30028 2007-03-25 Bruno Haible <bruno@clisp.org>
30030 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
30031 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
30032 exists but doesn't work.
30033 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
30034 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
30035 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
30036 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
30038 2007-03-25 Bruno Haible <bruno@clisp.org>
30040 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
30041 returns inf. Needed on IRIX 6.5.
30043 2007-03-25 Bruno Haible <bruno@clisp.org>
30045 * tests/test-frexpl.c: Include isnanl-nolibm.h.
30046 (main): Use isnanl instead of x != x idiom.
30047 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
30049 * tests/test-frexp.c: Include isnan.h.
30050 (main): Use isnan instead of x != x idiom.
30051 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
30053 2007-03-25 Bruno Haible <bruno@clisp.org>
30055 * tests/test-frexp.c (NaN): New function/macro.
30056 (main): Use it instead of 0.0 / 0.0.
30057 * tests/test-isnan.c (NaN): New function/macro.
30058 (main): Use it instead of 0.0 / 0.0.
30059 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
30060 (test_function): Use it instead of 0.0 / 0.0.
30061 * tests/test-vasprintf-posix.c (NaN): New function/macro.
30062 (test_function): Use it instead of 0.0 / 0.0.
30063 * tests/test-snprintf-posix.h (NaN): New function/macro.
30064 (test_function): Use it instead of 0.0 / 0.0.
30065 * tests/test-sprintf-posix.h (NaN): New function/macro.
30066 (test_function): Use it instead of 0.0 / 0.0.
30067 * tests/test-fprintf-posix.h (NaN): New function/macro.
30068 (test_function): Use it instead of 0.0 / 0.0.
30069 * tests/test-printf-posix.h (NaN): New function/macro.
30070 (test_function): Use it instead of 0.0 / 0.0.
30072 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
30074 2007-03-25 Bruno Haible <bruno@clisp.org>
30076 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
30078 2007-03-25 Bruno Haible <bruno@clisp.org>
30080 * lib/regexec.c (merge_state_with_log): Make static.
30082 2007-03-25 Bruno Haible <bruno@clisp.org>
30084 * lib/trigl.c (kernel_rem_pio2): Make static.
30086 2007-03-25 Bruno Haible <bruno@clisp.org>
30088 * lib/sincosl.c (sincosl_table): Make static.
30090 2007-03-25 Bruno Haible <bruno@clisp.org>
30092 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
30093 if the compiler does not support C99.
30095 2007-03-25 Bruno Haible <bruno@clisp.org>
30097 * modules/time (Makefile.am): Ensure all rule action lines start with a
30100 2007-03-24 Bruno Haible <bruno@clisp.org>
30102 * modules/tsearch-tests: New file.
30103 * tests/test-tsearch.sh: New file.
30104 * tests/test-tsearch.c: New file, mostly copied from glibc.
30106 * modules/search-tests: New file.
30107 * tests/test-search.c: New file.
30109 * modules/search: New file.
30110 * lib/search_.h: New file, incorporating lib/tsearch.h.
30111 * m4/search_h.m4: New file.
30112 * lib/tsearch.h: Remove file.
30113 * lib/tsearch.c: Include search.h instead of tsearch.h.
30114 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
30116 * modules/tsearch (Files): Remove lib/tsearch.h.
30117 (Depends-on): Add search.
30118 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
30119 (Include): Change tsearch.h into search.h.
30121 2007-03-24 Bruno Haible <bruno@clisp.org>
30123 * modules/fpucw: New file.
30124 * lib/fpucw.h: New file.
30125 * lib/frexp.c: Include fpucw.h.
30126 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
30128 * lib/printf-frexp.c: Include fpucw.h.
30129 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
30131 * lib/vasnprintf.c: Include fpucw.h.
30132 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
30133 'long double' calculations.
30134 * tests/test-frexpl.c: Include fpucw.h.
30135 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
30136 * tests/test-printf-frexpl.c: Include fpucw.h.
30137 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
30138 * modules/frexpl (Depends-on): Add fpucw.
30139 * modules/printf-frexpl (Depends-on): Likewise.
30140 * modules/fprintf-posix (Depends-on): Likewise.
30141 * modules/snprintf-posix (Depends-on): Likewise.
30142 * modules/sprintf-posix (Depends-on): Likewise.
30143 * modules/vasnprintf-posix (Depends-on): Likewise.
30144 * modules/vasprintf-posix (Depends-on): Likewise.
30145 * modules/vfprintf-posix (Depends-on): Likewise.
30146 * modules/vsnprintf-posix (Depends-on): Likewise.
30147 * modules/vsprintf-posix (Depends-on): Likewise.
30148 * modules/frexpl-tests (Depends-on): Likewise.
30149 * modules/printf-frexpl-tests (Depends-on): Likewise.
30151 2007-03-24 Bruno Haible <bruno@clisp.org>
30153 * lib/float+.h: New file.
30154 * lib/isnan.c: Include float+.h.
30156 (FUNC): Compare only SIZE bytes of the value.
30157 * lib/vasnprintf.c: Include float+.h.
30158 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
30159 SIZEOF_LDBL or SIZEOF_DBL bytes.
30160 * modules/isnan-nolibm (Files): Add lib/float+.h.
30161 * modules/isnanl-nolibm (Files): Add lib/float+.h.
30162 * modules/isnanl (Files): Add lib/float+.h.
30163 * modules/vasnprintf (Files): Add lib/float+.h.
30165 2007-03-24 Bruno Haible <bruno@clisp.org>
30167 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
30168 include isnanl-nolibm.h.
30170 2007-03-24 Bruno Haible <bruno@clisp.org>
30172 * tests/test-read-file.c (main): Don't produce spurious output for
30173 expected situations. Make the test fail if it encountered unexpected
30176 2007-03-24 Bruno Haible <bruno@clisp.org>
30178 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
30179 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
30181 2007-03-24 Bruno Haible <bruno@clisp.org>
30183 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
30185 2007-03-24 Bruno Haible <bruno@clisp.org>
30187 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
30188 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
30190 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
30191 * modules/utf8-ucs4: Turn into a symbolic link to module
30194 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
30196 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
30197 unistr/u8-mbtouc-unsafe.
30199 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
30200 * modules/utf16-ucs4: Turn into a symbolic link to module
30203 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
30205 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
30206 unistr/u16-mbtouc-unsafe.
30208 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
30209 * modules/ucs4-utf8: Turn into a symbolic link to module
30212 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
30213 * modules/ucs4-utf16: Turn into a symbolic link to module
30216 2007-03-24 Bruno Haible <bruno@clisp.org>
30218 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
30219 Enable the function only if HAVE_INLINE.
30220 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
30221 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
30222 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
30223 Enable the function only if HAVE_INLINE.
30224 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
30225 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
30226 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
30227 Enable the function only if HAVE_INLINE.
30228 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
30229 Enable the function only if HAVE_INLINE.
30230 * modules/utf8-ucs4: Update.
30231 * modules/utf8-ucs4-unsafe: Update.
30232 * modules/utf16-ucs4: Update.
30233 * modules/utf16-ucs4-unsafe: Update.
30234 * modules/ucs4-utf8: Update.
30235 * modules/ucs4-utf16: Update.
30237 2007-03-24 Bruno Haible <bruno@clisp.org>
30239 * lib/utf8-ucs4.h: Remove file.
30240 * lib/utf8-ucs4-unsafe.h: Remove file.
30241 * lib/utf16-ucs4.h: Remove file.
30242 * lib/utf16-ucs4-unsafe.h: Remove file.
30243 * lib/ucs4-utf8.h: Remove file.
30244 * lib/ucs4-utf16.h: Remove file.
30245 * lib/unistr.h: Include their previous contents.
30246 * m4/utf-ucs4.m4: Remove file.
30247 * m4/ucs4-utf.m4: Remove file.
30248 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
30249 (Depends-on): Add unistr/base.
30250 (configure.ac): Remove gl_UTF_UCS4.
30251 (Makefile.am): Update.
30252 (Include): Change to unistr.h.
30253 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
30254 (Depends-on): Add unistr/base.
30255 (configure.ac): Remove gl_UTF_UCS4.
30256 (Makefile.am): Update.
30257 (Include): Change to unistr.h.
30258 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
30259 (Depends-on): Add unistr/base.
30260 (configure.ac): Remove gl_UTF_UCS4.
30261 (Makefile.am): Update.
30262 (Include): Change to unistr.h.
30263 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
30264 (Depends-on): Add unistr/base.
30265 (configure.ac): Remove gl_UTF_UCS4.
30266 (Makefile.am): Update.
30267 (Include): Change to unistr.h.
30268 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
30269 (Depends-on): Add unistr/base.
30270 (configure.ac): Remove gl_UCS4_UTF.
30271 (Makefile.am): Update.
30272 (Include): Change to unistr.h.
30273 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
30274 (Depends-on): Add unistr/base.
30275 (configure.ac): Remove gl_UCS4_UTF.
30276 (Makefile.am): Update.
30277 (Include): Change to unistr.h.
30278 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
30279 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
30280 utf8-ucs4-unsafe.h.
30281 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
30282 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
30283 utf16-ucs4-unsafe.h.
30284 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
30285 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
30286 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
30287 * lib/unistr/u8-strchr.c: Likewise.
30288 * lib/unistr/u8-strrchr.c: Likewise.
30289 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
30290 * lib/unistr/u16-strchr.c: Likewise.
30291 * lib/unistr/u16-strrchr.c: Likewise.
30292 * lib/striconveh.c: Update.
30293 * lib/linebreak.c: Update.
30295 2007-03-24 Bruno Haible <bruno@clisp.org>
30297 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
30298 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
30300 2007-03-22 Bruno Haible <bruno@clisp.org>
30302 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
30304 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
30306 * MODULES.html.sh (File system functions): New module write-any-file.
30307 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
30308 * m4/write-any-file.m4: New files.
30310 2007-03-23 Eric Blake <ebb9@byu.net>
30312 * gnulib-tool: Rearrange space-tab sequences, since some editors
30315 2007-03-23 Eric Blake <ebb9@byu.net>
30317 * lib/version-etc.c (version_etc_va): Update license wording to
30318 be more concise. Recommended by Richard Stallman.
30320 2007-03-22 Bruno Haible <bruno@clisp.org>
30322 * lib/poll.c (MSG_PEEK): New fallback definition.
30324 2007-03-22 Bruno Haible <bruno@clisp.org>
30326 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
30327 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
30329 Fixes a compilation error on BeOS.
30331 2007-03-22 Bruno Haible <bruno@clisp.org>
30333 * modules/frexpl-tests: New file.
30334 * tests/test-frexpl.c: New file.
30336 * modules/frexpl: New file.
30337 * m4/frexpl.m4: New file.
30338 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
30339 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
30340 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
30341 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
30342 (Depends-on): Add frexpl. Remove isnanl-nolibm.
30343 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
30345 2007-03-22 Bruno Haible <bruno@clisp.org>
30347 * lib/frexpl.c: Share code with lib/frexp.c.
30348 * modules/mathl (Files): Add lib/frexp.c.
30349 (Depends-on): Add isnanl-nolibm.
30351 2007-03-22 Bruno Haible <bruno@clisp.org>
30353 * modules/printf-frexp (Files): Add m4/frexp.m4.
30354 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
30355 only if the found frexp function actually works.
30357 2007-03-22 Bruno Haible <bruno@clisp.org>
30359 * lib/frexp.c: Remove older implementation that uses divisions.
30361 2007-03-21 Bruno Haible <bruno@clisp.org>
30363 * modules/frexp-tests: New file.
30364 * tests/test-frexp.c: New file.
30366 * modules/frexp: New file.
30367 * lib/frexp.c: New file.
30368 * m4/frexp.m4: New file.
30369 * lib/math_.h (frexp): New declaration.
30370 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
30372 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
30374 2007-03-21 Bruno Haible <bruno@clisp.org>
30376 * modules/isnanl-tests: New file.
30377 * tests/test-isnanl.c: New file.
30379 * modules/isnanl: New file.
30380 * lib/isnanl.h: New file.
30381 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
30382 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
30383 gl_FUNC_ISNANL_WORKS.
30384 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
30387 2007-03-21 Bruno Haible <bruno@clisp.org>
30389 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
30392 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
30393 * lib/vasnprintf.c: Update.
30394 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
30395 tests/test-isnanl.h, remove tests/test-isnanl.c.
30396 (Makefile.am): Update.
30397 * tests/test-isnanl-nolibm.c: New file.
30398 * tests/test-isnanl.h: New file.
30399 * tests/test-isnanl.c: Remove file.
30401 2007-03-21 Jim Meyering <jim@meyering.net>
30403 When trying to open ".", treat ESTALE like EACCES.
30404 * lib/savewd.c (savewd_save): Resort to forking not just upon
30405 failure with EACCES, but also when errno is ESTALE.
30407 2007-03-20 Bruno Haible <bruno@clisp.org>
30409 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
30410 Needed on AIX 5.1. Reported by Matthew Woehlke.
30412 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
30414 Suggestions by Bruno Haible:
30415 * lib/acl-internal.h: Include "gettext.h" rather than rolling
30417 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
30418 * modules/acl (Depends-on): Add gettext.
30420 2007-03-19 Bruno Haible <bruno@clisp.org>
30422 * modules/iconvme: Remove file.
30423 * lib/iconvme.h: Remove file.
30424 * lib/iconvme.c: Remove file.
30425 * m4/iconvme.m4: Remove file.
30427 2007-03-19 Bruno Haible <bruno@clisp.org>
30429 * doc/relocatable-maint.texi: Break long shell script line.
30430 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30432 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
30434 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
30435 handle file_has_acl.
30436 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
30437 * lib/acl.c: Move header inclusions and related macro defns into
30438 lib/acl-internal.h.
30439 (S_ISLNK): Remove defn, since that's now done for us.
30440 (file_has_acl): Move to lib/file-has-acl.c.
30441 Call acl_trivial if available. This is the crucial part of the fix.
30442 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
30443 shared within the library. Rewrite a bit, partly to make it compatible
30444 with the GNU coding style.
30445 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
30446 Remove unnecessary double-quotes.
30447 Don't test for acl_to_text; the build will catch that.
30448 Replace acl_entries if it doesn't exist and it is needed.
30449 Check for -lsec and acl_trivial (as used on Solaris 10).
30450 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
30451 lib/file-has-acl.c.
30452 (Depends-on): Add sys_stat, for S_ISLNK.
30454 2007-03-19 Ben Pfaff <blp@gnu.org>
30456 * doc/gnulib.texi: Fix typos.
30457 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30459 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
30461 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
30462 If size is zero here, buf must be zero.
30464 2007-03-19 Simon Josefsson <simon@josefsson.org>
30466 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
30469 2007-03-18 Bruno Haible <bruno@clisp.org>
30471 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
30472 Suggested by Eric Blake.
30474 2007-03-18 Ben Pfaff <blp@gnu.org>
30476 * doc/relocatable.texi: Recommend using as prefix a directory
30477 that does not exist and will never be created. Based on
30478 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
30481 2007-03-17 Bruno Haible <bruno@clisp.org>
30483 * lib/fchownat.c: Include lchown.h.
30485 2007-03-17 Bruno Haible <bruno@clisp.org>
30487 Fix endless loop when the given allocated size was > INT_MAX.
30488 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
30489 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
30490 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
30491 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
30492 * lib/sprintf.c (sprintf): Likewise.
30494 2007-03-17 Bruno Haible <bruno@clisp.org>
30496 * tests/test-argp-2.sh (func_compare): Output a context diff.
30498 2007-03-17 Bruno Haible <bruno@clisp.org>
30500 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
30501 locale's decimal-point character.
30503 2007-03-17 Bruno Haible <bruno@clisp.org>
30505 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
30506 before comparing it. Needed because on some platforms (e.g. x86) a
30507 'long double' occupies less bytes than sizeof (long double).
30509 2007-03-17 Bruno Haible <bruno@clisp.org>
30511 * tests/test-crc.c (main): Make printf statements 64-bit clean.
30512 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
30513 * tests/test-getaddrinfo.c (simple): Likewise.
30514 * tests/test-read-file.c (main): Likewise.
30516 2007-03-17 Bruno Haible <bruno@clisp.org>
30518 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
30520 2007-03-17 Bruno Haible <bruno@clisp.org>
30522 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
30525 2007-03-17 Bruno Haible <bruno@clisp.org>
30527 * tests/test-c-strcasecmp.c: Include c-strcase.h.
30528 * tests/test-c-strncasecmp.c: Likewise.
30530 2007-03-17 Bruno Haible <bruno@clisp.org>
30532 * modules/stdlib (Depends-on): Add unistd.
30533 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
30534 Needed for MacOS X 10.3.
30536 2007-03-17 Bruno Haible <bruno@clisp.org>
30538 * lib/unistr/u-strdup.h: Include <stdlib.h>.
30540 2007-03-17 Bruno Haible <bruno@clisp.org>
30542 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
30544 2007-03-17 Bruno Haible <bruno@clisp.org>
30546 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
30547 to reflect files copied from gnulib (with or without modifications).
30548 Suggested by Jim Meyering.
30550 2007-03-17 Eric Blake <ebb9@byu.net>
30552 * NEWS: Document stdlib change from 2007-02-18.
30554 2007-03-17 Jim Meyering <jim@meyering.net>
30556 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
30557 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
30558 someone uses a name containing shell meta-characters.
30559 Reported by Alfred M. Szmidt.
30561 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
30563 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
30565 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
30566 and copy gettext configuration files only if configure.ac contains
30567 a use of AM_GNU_GETTEXT_VERSION.
30569 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
30571 * build-aux/bootstrap (gnulib_name): New variable.
30572 (gnulib_tool_options): Use it.
30574 2007-03-13 Simon Josefsson <simon@josefsson.org>
30576 * tests/test-des.c: Use new namespace.
30578 2007-03-15 Bruno Haible <bruno@clisp.org>
30580 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
30581 Reported by James Youngman <jay@gnu.org>.
30583 2007-03-15 Bruno Haible <bruno@clisp.org>
30585 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
30586 declared prototype. Needed with cc on OSF/1 5.1.
30588 2007-03-15 Bruno Haible <bruno@clisp.org>
30590 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
30591 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
30592 (struct gl_list_implementation): Add dispose_fn argument to the
30593 'create_empty', 'create' methods.
30594 (struct gl_list_impl_base): Add field 'dispose_fn'.
30595 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
30597 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
30598 dispose_fn argument.
30599 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
30600 dispose_fn on the dropped values.
30601 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
30602 dispose_fn argument.
30603 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
30605 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
30606 (gl_tree_remove_node): Call dispose_fn on the dropped value.
30607 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
30608 (gl_tree_remove_node): Call dispose_fn on the dropped value.
30609 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
30611 (gl_tree_list_free): Call dispose_fn on the dropped values.
30612 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
30613 the dropped values.
30614 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30615 Add dispose_fn argument.
30616 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
30617 Call dispose_fn on the dropped values.
30618 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
30619 Add dispose_fn argument.
30620 (gl_sublist_create): Initialize the 'dispose_fn' field.
30621 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
30622 * tests/test-array_list.c (main): Update.
30623 * tests/test-carray_list.c (main): Update.
30624 * tests/test-avltree_list.c (main): Update.
30625 * tests/test-rbtree_list.c (main): Update.
30626 * tests/test-avltreehash_list.c (main): Update.
30627 * tests/test-rbtreehash_list.c (main): Update.
30628 * tests/test-linked_list.c (main): Update.
30629 * tests/test-linkedhash_list.c (main): Update.
30630 * tests/test-array_oset.c (main): Update.
30632 2007-03-15 Bruno Haible <bruno@clisp.org>
30634 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
30635 (gl_oset_create_empty): Add dispose_fn argument.
30636 (struct gl_oset_implementation): Add dispose_fn argument to
30637 'create_empty' method.
30638 (struct gl_oset_impl_base): Add dispose_fn field.
30639 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
30640 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
30641 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
30643 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
30644 (gl_tree_oset_free): Call dispose_fn on the dropped values.
30645 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30647 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30649 * tests/test-array_oset.c (main): Update.
30650 * tests/test-avltree_oset.c (main): Update.
30651 * tests/test-rbtree_oset.c (main): Update.
30652 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
30654 2007-03-13 Bruno Haible <bruno@clisp.org>
30656 * tests/test-stdbool.c (i): Update after last patch.
30658 2007-03-12 Bruno Haible <bruno@clisp.org>
30660 * lib/quotearg.c: Include <wctype.h> early, before the definition of
30661 the iswprint macro. Needed on Solaris 2.5.1.
30663 2007-03-12 Bruno Haible <bruno@clisp.org>
30665 * tests/test-printf-frexp.c (main): Declare x as volatile.
30667 2007-03-12 Simon Josefsson <simon@josefsson.org>
30669 * doc/gnulib.texi (Build robot for gnulib): New section.
30671 2007-03-12 Jim Meyering <jim@meyering.net>
30673 * build-aux/bootstrap: New file.
30674 * build-aux/bootstrap.conf: New file, from coreutils.
30676 2007-03-11 Bruno Haible <bruno@clisp.org>
30678 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
30680 2007-03-12 Simon Josefsson <simon@josefsson.org>
30682 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
30683 avoid collisions with 'des_setkey'. Reported by Bruno Haible
30684 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
30686 2007-03-11 Bruno Haible <bruno@clisp.org>
30688 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
30689 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
30691 2007-03-11 Bruno Haible <bruno@clisp.org>
30693 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
30694 formula. Needed for SunPRO C 5.0.
30696 2007-03-11 Bruno Haible <bruno@clisp.org>
30698 * modules/long-options (Depends-on): Add getopt.
30700 2007-03-11 Bruno Haible <bruno@clisp.org>
30702 * modules/modechange (Depends-on): Add stdbool.
30704 2007-03-11 Bruno Haible <bruno@clisp.org>
30706 * modules/i-ring (Depends-on): Add stdbool.
30708 2007-03-11 Bruno Haible <bruno@clisp.org>
30710 * modules/gc-des (Depends-on): Add stdbool.
30712 2007-03-11 Bruno Haible <bruno@clisp.org>
30714 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
30716 2007-03-11 Bruno Haible <bruno@clisp.org>
30718 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
30720 2007-03-11 Bruno Haible <bruno@clisp.org>
30722 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
30724 2007-03-11 Bruno Haible <bruno@clisp.org>
30726 * lib/vasnprintf.c (sprintf): Undefine.
30728 2007-03-11 Bruno Haible <bruno@clisp.org>
30730 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
30731 initializers in SunPRO C and Compaq C compilers.
30733 2007-03-11 Bruno Haible <bruno@clisp.org>
30735 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
30736 decrementing code ANSI C compliant.
30738 2007-03-11 Bruno Haible <bruno@clisp.org>
30740 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
30741 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
30743 2007-03-11 Bruno Haible <bruno@clisp.org>
30745 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
30746 <stdbool.h> substitute doesn't pass.
30748 2007-03-11 Bruno Haible <bruno@clisp.org>
30750 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
30752 2007-03-11 Bruno Haible <bruno@clisp.org>
30754 * gnulib-tool (func_create_megatestdir): Create also an autobuild
30755 script, for submission to autobuild.josefsson.org.
30757 2007-03-10 Bruno Haible <bruno@clisp.org>
30759 * modules/canonicalize-lgpl-tests: New file.
30760 * tests/test-canonicalize-lgpl.sh: New file.
30761 * tests/test-canonicalize-lgpl.c: New file.
30763 * modules/c-strcase-tests: New file.
30764 * tests/test-c-strcase.sh: New file.
30765 * tests/test-c-strcasecmp.c: New file.
30766 * tests/test-c-strncasecmp.c: New file.
30768 * modules/atexit-tests: New file.
30769 * tests/test-atexit.sh: New file.
30770 * tests/test-atexit.c: New file.
30772 2007-03-10 Bruno Haible <bruno@clisp.org>
30774 * tests/test-binary-io.sh: Use temporary filenames that are not so
30775 likely to clash with those of other tests (in a parallel make).
30776 * tests/test-binary-io.c: Likewise.
30778 2007-03-10 Bruno Haible <bruno@clisp.org>
30780 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
30781 fallback; use #error instead.
30782 Suggested by Simon Josefsson.
30784 2007-03-10 Bruno Haible <bruno@clisp.org>
30786 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
30787 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
30788 first and the last.
30790 2007-03-10 Bruno Haible <bruno@clisp.org>
30792 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
30794 2007-03-10 Bruno Haible <bruno@clisp.org>
30796 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
30798 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
30799 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
30800 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
30802 2007-03-10 Bruno Haible <bruno@clisp.org>
30804 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
30806 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
30809 2007-03-09 Eric Blake <ebb9@byu.net>
30810 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
30812 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
30813 types are not being provided by gnulib.
30814 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
30815 types are supported.
30817 2007-03-10 Bruno Haible <bruno@clisp.org>
30819 * lib/stdio_.h (__attribute__): New macro.
30820 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
30821 vsprintf): Specify __attribute__ __format__ for GCC.
30822 Suggested by Eric Blake.
30824 2007-03-09 Bruno Haible <bruno@clisp.org>
30826 * modules/printf-posix-tests: New file.
30827 * tests/test-printf-posix.sh: New file.
30828 * tests/test-printf-posix.c: New file.
30830 * modules/printf-posix: New file.
30831 * lib/printf.c: New file.
30832 * m4/printf-posix-rpl.m4: New file.
30833 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
30835 * lib/stdio_.h (printf): New declaration.
30836 (format, __format__, ____printf____, ____scanf____, ____strftime____,
30837 ____strfmon____): New macros.
30838 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
30841 2007-03-09 Bruno Haible <bruno@clisp.org>
30843 * tests/test-vasnprintf-posix2.sh: New file.
30844 * tests/test-vasnprintf-posix2.c: New file.
30845 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
30846 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
30847 (Makefile.am): Activate test-vasnprintf-posix2.sh.
30849 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
30850 a locale dependent decimal point, rather than always '.'.
30852 2007-03-09 Eric Blake <ebb9@byu.net>
30854 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
30855 spite of platforms like Tandem/NSK that define it to -1.
30857 2007-03-08 Bruno Haible <bruno@clisp.org>
30859 * modules/vprintf-posix-tests: New file.
30860 * tests/test-vprintf-posix.sh: New file.
30861 * tests/test-vprintf-posix.c: New file.
30862 * tests/test-printf-posix.h: New file.
30864 * modules/vprintf-posix: New file.
30865 * lib/vprintf.c: New file.
30866 * m4/vprintf-posix.m4: New file.
30867 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
30869 * lib/stdio_.h (vprintf): New declaration.
30870 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
30873 2007-03-08 Bruno Haible <bruno@clisp.org>
30875 * modules/fprintf-posix-tests: New file.
30876 * tests/test-fprintf-posix.sh: New file.
30877 * tests/test-fprintf-posix.c: New file.
30879 * modules/fprintf-posix: New file.
30880 * lib/fprintf.c: New file.
30881 * m4/fprintf-posix.m4: New file.
30882 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
30884 * lib/stdio_.h (fprintf): New declaration.
30885 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
30888 2007-03-08 Bruno Haible <bruno@clisp.org>
30890 * modules/vfprintf-posix-tests: New file.
30891 * tests/test-vfprintf-posix.sh: New file.
30892 * tests/test-vfprintf-posix.c: New file.
30893 * tests/test-fprintf-posix.h: New file.
30894 * tests/test-fprintf-posix.out: New file.
30896 * modules/vfprintf-posix: New file.
30897 * lib/vfprintf.c: New file.
30898 * m4/vfprintf-posix.m4: New file.
30899 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
30901 * lib/stdio_.h (vfprintf): New declaration.
30902 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
30905 2007-03-08 Bruno Haible <bruno@clisp.org>
30907 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
30909 2007-03-08 Bruno Haible <bruno@clisp.org>
30911 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
30912 instead of 'expr' invocations.
30913 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30914 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30915 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30916 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30917 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30918 Suggested by Paul Eggert.
30920 2007-03-08 Bruno Haible <bruno@clisp.org>
30922 * modules/fseterr-tests: New file.
30923 * tests/test-fseterr.c: New file.
30925 * modules/fseterr: New file.
30926 * lib/fseterr.h: New file.
30927 * lib/fseterr.c: New file.
30929 2007-03-08 Bruno Haible <bruno@clisp.org>
30931 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
30932 * lib/getopt_.h: Likewise.
30933 * lib/mbswidth.h: Likewise.
30934 * lib/setenv.h: Likewise.
30935 * lib/vasnprintf.h: Likewise.
30936 * lib/vasprintf.h: Likewise.
30937 * lib/verror.h: Likewise.
30938 * lib/xsetenv.h: Likewise.
30939 * lib/xvasprintf.h: Likewise.
30941 2007-03-08 Jim Meyering <jim@meyering.net>
30943 * users.txt: Add parted.
30945 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
30947 2007-03-07 Bruno Haible <bruno@clisp.org>
30949 * m4/printf.m4: Make the shell script snippets copy&pastable.
30951 2007-03-02 Bruno Haible <bruno@clisp.org>
30953 * lib/netinet_in_.h: New file.
30954 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
30955 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
30956 * modules/netinet_in (Files): Add lib/netinet_in_.h.
30957 (Depends-on): Add absolute-header.
30958 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
30961 2007-03-03 Bruno Haible <bruno@clisp.org>
30963 * lib/sys_select_.h: New file.
30964 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
30965 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
30966 * modules/sys_select (Files): Add lib/sys_select_.h.
30967 (Depends-on): Add absolute-header.
30968 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
30971 2007-03-02 Bruno Haible <bruno@clisp.org>
30973 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
30974 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
30976 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
30977 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
30978 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
30979 * modules/sys_socket (Depends-on): Add absolute-header.
30980 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
30981 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
30982 (Include): Remove requirement of inclusion of <sys/types.h>.
30984 2007-03-02 Bruno Haible <bruno@clisp.org>
30986 * lib/byteswap_.h (bswap_32): Fix formula.
30988 2007-03-06 Bruno Haible <bruno@clisp.org>
30990 * modules/sprintf-posix-tests: New file.
30991 * tests/test-sprintf-posix.c: New file.
30993 * modules/sprintf-posix: New file.
30994 * lib/sprintf.c: New file.
30995 * m4/sprintf-posix.m4: New file.
30996 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
30998 * lib/stdio_.h (sprintf): New declaration.
30999 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
31002 2007-03-06 Bruno Haible <bruno@clisp.org>
31004 * modules/vsprintf-posix-tests: New file.
31005 * tests/test-vsprintf-posix.c: New file.
31006 * tests/test-sprintf-posix.h: New file.
31008 * modules/vsprintf-posix: New file.
31009 * lib/vsprintf.c: New file.
31010 * m4/vsprintf-posix.m4: New file.
31011 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
31013 * lib/stdio_.h (vsprintf): New declaration.
31014 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
31017 2007-03-06 Bruno Haible <bruno@clisp.org>
31019 * modules/vsnprintf (Depend-on): Remove minmax.
31021 2007-03-06 Bruno Haible <bruno@clisp.org>
31023 * modules/snprintf-posix-tests: New file.
31024 * tests/test-snprintf-posix.c: New file.
31026 * modules/snprintf-posix: New file.
31027 * m4/snprintf-posix.m4: New file.
31028 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
31030 (gl_FUNC_SNPRINTF): Invoke it.
31031 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
31032 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
31034 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
31036 2007-03-06 Bruno Haible <bruno@clisp.org>
31038 * modules/vsnprintf-posix-tests: New file.
31039 * tests/test-vsnprintf-posix.c: New file.
31040 * tests/test-snprintf-posix.h: New file.
31042 * modules/vsnprintf-posix: New file.
31043 * m4/vsnprintf-posix.m4: New file.
31044 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
31046 (gl_FUNC_VSNPRINTF): Invoke it.
31047 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
31048 * lib/stdio_.h (vsnprintf): Define as a replacement if
31049 REPLACE_VSNPRINTF is set.
31050 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
31052 2007-03-06 Bruno Haible <bruno@clisp.org>
31054 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
31055 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
31057 2007-03-06 Bruno Haible <bruno@clisp.org>
31059 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
31060 (asinl): Declare also if HAVE_DECL_ASINL is set.
31061 (atanl): Declare also if HAVE_DECL_ATANL is set.
31062 (ceill): Declare also if HAVE_DECL_CEILL is set.
31063 (cosl): Declare also if HAVE_DECL_COSL is set.
31064 (expl): Declare also if HAVE_DECL_EXPL is set.
31065 (floorl): Declare also if HAVE_DECL_FLOORL is set.
31066 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
31067 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
31068 (logl): Declare also if HAVE_DECL_LOGL is set.
31069 (sinl): Declare also if HAVE_DECL_SINL is set.
31070 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
31071 (tanl): Declare also if HAVE_DECL_TANL is set.
31072 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
31073 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
31074 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
31075 declaration of frexpl, ldexpl.
31076 * modules/printf-frexpl (Depends-on): Add math.
31077 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
31079 2007-03-05 Bruno Haible <bruno@clisp.org>
31081 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
31082 frexpl and ldexpl are declared.
31083 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
31085 2007-03-05 Bruno Haible <bruno@clisp.org>
31087 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
31088 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
31090 2007-03-05 Bruno Haible <bruno@clisp.org>
31092 * lib/stdio_.h: Include <stddef.h>.
31094 2007-03-05 Bruno Haible <bruno@clisp.org>
31096 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
31098 2007-03-05 Bruno Haible <bruno@clisp.org>
31100 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
31101 NetBSD 4, from Ralf Wildenhues.
31103 2007-03-04 Bruno Haible <bruno@clisp.org>
31105 * lib/vasprintf.h: Update #if logic for the case when the functions
31106 exist but are overridden.
31108 2007-03-04 Bruno Haible <bruno@clisp.org>
31110 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
31111 implementations: glibc-2.4 and MacOS X 10.3.
31112 * tests/test-vasnprintf-posix.c (test_function): Test also the case
31113 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
31114 * tests/test-vasprintf-posix.c (test_function): Likewise.
31116 2007-03-04 Bruno Haible <bruno@clisp.org>
31118 * modules/vasprintf-posix-tests: New file.
31119 * tests/test-vasprintf-posix.c: New file.
31121 * modules/vasprintf-posix: New file.
31122 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
31124 * m4/vasprintf-posix.m4: New file.
31125 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
31127 (gl_FUNC_VASPRINTF): Invoke it.
31128 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
31130 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
31132 2007-03-04 Bruno Haible <bruno@clisp.org>
31134 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
31135 REPLACE_GETTIMEOFDAY.
31136 * modules/sys_time (Makefile.am): Likewise.
31137 * m4/sys_time_h.m4: Likewise.
31138 * m4/gettimeofday.m4: Likewise.
31140 2007-03-04 Bruno Haible <bruno@clisp.org>
31142 * modules/vasnprintf-posix-tests: New file.
31143 * tests/test-vasnprintf-posix.c: New file.
31145 * modules/vasnprintf-posix: New file.
31146 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
31148 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
31149 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
31150 REPLACE_VASNPRINTF is defined.
31151 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
31152 gl_FUNC_VASNPRINTF.
31153 (gl_FUNC_VASNPRINTF): Invoke it.
31154 * m4/vasnprintf-posix.m4: New file.
31155 * m4/printf.m4: New file.
31157 2007-03-04 Bruno Haible <bruno@clisp.org>
31159 Compile progreloc.c only if --enable-relocatable is specified.
31160 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
31161 if --enable-relocatable was specified.
31162 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
31165 2007-03-04 Jim Meyering <jim@meyering.net>
31167 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
31168 Use it consistently, rather than enumerating errno constants.
31170 2007-03-04 Bruno Haible <bruno@clisp.org>
31172 * modules/xvasprintf-tests: New file.
31173 * tests/test-xvasprintf.c: New file.
31175 * modules/vasprintf-tests: New file.
31176 * tests/test-vasprintf.c: New file.
31178 * modules/vasnprintf-tests: New file.
31179 * tests/test-vasnprintf.c: New file.
31181 * modules/vsnprintf-tests: New file.
31182 * tests/test-vsnprintf.c: New file.
31184 * modules/snprintf-tests: New file.
31185 * tests/test-snprintf.c: New file.
31187 2007-03-04 Bruno Haible <bruno@clisp.org>
31189 Compile relocatable.c only if --enable-relocatable is specified.
31190 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
31191 gl_RELOCATABLE_LIBRARY.
31192 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
31193 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
31194 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
31195 gl_RELOCATABLE_LIBRARY.
31196 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
31197 (Makefile.am): Remove lib_SOURCES.
31198 * modules/relocatable-lib-lgpl (configure.ac): Invoke
31199 gl_RELOCATABLE_LIBRARY.
31200 (Makefile.am): Remove lib_SOURCES.
31201 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
31203 * modules/relocatable-prog-wrapper (configure.ac): Invoke
31204 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
31206 2007-03-04 Bruno Haible <bruno@clisp.org>
31208 * modules/argmatch-tests: New file.
31209 * tests/test-argmatch.c: New file.
31211 * tests/test-allocsa.c (main): Halve the number of loop runs.
31213 * modules/alloca-opt-tests: New file.
31214 * tests/test-alloca-opt.c: New file.
31216 2007-03-04 Jim Meyering <jim@meyering.net>
31218 Work around difference between Linux ACLs and Solaris 10 ZFS.
31219 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
31222 2007-03-03 Bruno Haible <bruno@clisp.org>
31224 * modules/relocatable-prog (Depends-on): Add back progreloc's
31225 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
31227 2007-03-03 Bruno Haible <bruno@clisp.org>
31229 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
31230 * modules/relocatable-lib: New file.
31232 2007-03-03 Bruno Haible <bruno@clisp.org>
31234 * modules/relocatable-prog: Renamed from modules/relocatable.
31235 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
31237 2007-03-03 Bruno Haible <bruno@clisp.org>
31239 * modules/relocatable-script (Files): Add doc/relocatable.texi,
31240 m4/relocatable-lib.m4.
31241 (Depends-on): Remove 'relocatable'.
31242 (configure.ac): Add gl_RELOCATABLE_NOP.
31244 2007-03-03 Bruno Haible <bruno@clisp.org>
31246 * modules/relocatable-prog-wrapper: New file.
31247 * modules/relocatable (Depends-on): Add it. Remove all other
31248 dependencies except progname.
31249 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
31251 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
31252 (gl_FUNC_STRERROR): Nop.
31253 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
31255 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
31256 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
31258 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
31259 (gl_FUNC_READLINK): Update.
31261 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
31263 2007-03-03 Bruno Haible <bruno@clisp.org>
31265 * lib/xreadlink.c: Include <unistd.h> unconditionally.
31266 * modules/xreadlink (Depends-on): Add unistd.
31267 * modules/xreadlink-with-size (Depends-on): Likewise.
31269 2007-03-03 Bruno Haible <bruno@clisp.org>
31271 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
31272 extracted from gt_FUNC_SETENV.
31273 (gt_FUNC_SETENV): Remove macro.
31274 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
31275 remove gt_FUNC_SETENV.
31277 2007-03-03 Bruno Haible <bruno@clisp.org>
31279 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
31280 ENABLE_RELOCATABLE here.
31281 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
31283 2007-03-03 Bruno Haible <bruno@clisp.org>
31285 * modules/rbtreehash-list-tests (Depends-on): Add progname.
31286 * tests/test-rbtreehash_list.c: Include progname.h.
31287 (main): Call set_program_name.
31289 * modules/rbtree-oset-tests (Depends-on): Add progname.
31290 * tests/test-rbtree_oset.c: Include progname.h.
31291 (main): Call set_program_name.
31293 * modules/rbtree-list-tests (Depends-on): Add progname.
31294 * tests/test-rbtree_list.c: Include progname.h.
31295 (main): Call set_program_name.
31297 * modules/linked-list-tests (Depends-on): Add progname.
31298 * tests/test-linked_list.c: Include progname.h.
31299 (main): Call set_program_name.
31301 2007-03-03 Bruno Haible <bruno@clisp.org>
31303 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
31304 All uses of __restrict changed to _Restrict_.
31305 * lib/glob_.h (__restrict): Remove macro.
31307 2007-03-02 Bruno Haible <bruno@clisp.org>
31309 * modules/gettext (configure.ac): Require gettext infrastructure
31310 from version 0.16.1.
31312 2007-03-02 Bruno Haible <bruno@clisp.org>
31314 * modules/linkedhash-list-tests (Depends-on): Add progname.
31315 * tests/test-linkedhash_list.c: Include progname.h.
31316 (main): Call set_program_name.
31318 * modules/carray-list-tests (Depends-on): Add progname.
31319 * tests/test-carray_list.c: Include progname.h.
31320 (main): Call set_program_name.
31322 * modules/avltreehash-list-tests (Depends-on): Add progname.
31323 * tests/test-avltreehash_list.c: Include progname.h.
31324 (main): Call set_program_name.
31326 * modules/avltree-oset-tests (Depends-on): Add progname.
31327 * tests/test-avltree_oset.c: Include progname.h.
31328 (main): Call set_program_name.
31330 * modules/avltree-list-tests (Depends-on): Add progname.
31331 * tests/test-avltree_list.c: Include progname.h.
31332 (main): Call set_program_name.
31334 * modules/array-oset-tests (Depends-on): Add progname.
31335 * tests/test-array_oset.c: Include progname.h.
31336 (main): Call set_program_name.
31338 * modules/array-list-tests (Depends-on): Add progname.
31339 * tests/test-array_list.c: Include progname.h.
31340 (main): Call set_program_name.
31342 * modules/argp-tests (Depends-on): Add progname.
31343 * tests/test-argp.c: Include argp.h first. Include progname.h.
31344 (main): Call set_program_name.
31346 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
31348 * doc/gnulib-tool.texi (Initial import): Reword description of
31349 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
31350 limited effect even if defined after the first system include.
31352 2007-03-01 Bruno Haible <bruno@clisp.org>
31354 * build-aux/config.libpath: Update to libtool-1.5.22.
31355 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31357 2007-03-01 Bruno Haible <bruno@clisp.org>
31359 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
31361 Reported by Ralf Wildenhues.
31363 2007-03-01 Bruno Haible <bruno@clisp.org>
31365 * build-aux/install-reloc: Remove object files left over by some
31367 Reported by Ralf Wildenhues.
31369 2007-03-01 Bruno Haible <bruno@clisp.org>
31371 * build-aux/install-reloc: Break long lines.
31373 2007-03-01 Bruno Haible <bruno@clisp.org>
31375 * doc/relocatable.texi: Document that it may not work on OpenBSD.
31376 Reported by Ralf Wildenhues.
31378 2007-03-01 Bruno Haible <bruno@clisp.org>
31380 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
31381 include ordering constraints.
31383 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
31385 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
31386 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
31387 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
31388 as another example.
31389 * lib/time_.h: Fix misspelling.
31390 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
31391 Require gl_HEADER_TIME_H_DEFAULTS.
31392 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
31393 * m4/time_r.m4 (gl_TIME_R): Likewise.
31394 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
31396 2007-03-01 Bruno Haible <bruno@clisp.org>
31398 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
31399 * m4/utimens.m4 (gl_UTIMENS): Likewise.
31401 2007-03-01 Jim Meyering <jim@meyering.net>
31403 * modules/xreadlink (Maintainer): Add my name.
31404 * modules/xreadlink-with-size (Depends-on): Alphabetize.
31406 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
31407 Bruno Haible <bruno@clisp.org>
31409 * build-aux/install-reloc: Compile also c-ctype.c.
31410 * build-aux/relocatable.sh.in: New file.
31411 * doc/relocatable.texi: New file.
31412 * doc/relocatable-maint.texi: New file.
31413 * doc/gnulib.texi: Include relocatable-maint.texi.
31414 * lib/progreloc.c: Include unistd.h unconditionally.
31415 * lib/relocwrapper.c: Include unistd.h unconditionally.
31417 (add_dotbin): Use c_tolower.
31418 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
31419 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
31420 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
31421 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
31422 to m4/relocatable-lib.m4.
31423 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
31424 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
31425 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
31426 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
31427 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
31428 * modules/relocatable: New file.
31429 * modules/relocatable-lib: New file.
31430 * modules/relocatable-script: New file.
31432 2007-02-28 Bruno Haible <bruno@clisp.org>
31434 Import --enable-relocatable infrastructure.
31435 * build-aux/config.libpath: New file, from GNU gettext.
31436 * build-aux/install-reloc: New file, from GNU gettext.
31437 * build-aux/reloc-ldflags: New file, from GNU gettext.
31438 * lib/relocatable.h: New file, from GNU gettext.
31439 * lib/relocatable.c: New file, from GNU gettext.
31440 * lib/relocwrapper.c: New file, from GNU gettext.
31441 * m4/relocatable.m4: New file, from GNU gettext.
31443 2007-02-28 Bruno Haible <bruno@clisp.org>
31445 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
31447 * modules/xreadlink: New file, from GNU gettext with modifications.
31448 * lib/xreadlink.c: New file, from GNU gettext.
31449 * lib/xreadlink.h: Add comments.
31450 (xreadlink): New declaration.
31452 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
31453 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
31454 lib/xreadlink-with-size.c.
31455 (configure.ac): Remove gl_XREADLINK invocation.
31456 (Makefile.am): Augment lib_SOURCES.
31457 * m4/xreadlink.m4: Remove file.
31458 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
31459 (xreadlink_with_size): Renamed from xreadink.
31460 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
31461 * modules/canonicalize (Depends-on): Replace xreadlink with
31462 xreadlink-with-size.
31463 * lib/canonicalize.c (canonicalize_filename_mode): Update.
31465 2007-02-25 Jim Meyering <jim@meyering.net>
31467 * build-aux/announce-gen: When complaining about excess arguments,
31470 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
31472 * README: Document signed integer overflow situation more
31475 2007-02-25 Bruno Haible <bruno@clisp.org>
31477 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
31478 'a' or 'A' conversion.
31480 2007-02-25 Bruno Haible <bruno@clisp.org>
31482 * modules/filename: Renamed from modules/pathname.
31483 (Files): Replace lib/pathname.h with lib/filename.h. Replace
31484 lib/concatpath.c with lib/concat-filename.c.
31485 (Makefile.am): Update.
31486 (Include): Replace pathname.h with filename.h.
31487 * lib/filename.h: Renamed from lib/pathname.h.
31488 (concatenated_filename): Renamed from concatenated_pathname.
31489 * lib/concat-filename.c: Renamed from lib/concatpath.c.
31490 (concatenated_filename): Renamed from concatenated_pathname.
31491 * lib/findprog.c: Include filename.h instead of pathname.h.
31492 (find_in_path): Update.
31493 * lib/javacomp.c: Include filename.h instead of pathname.h.
31494 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31495 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31496 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31497 is_oldgcj_14_13_usable, is_javac_usable): Update.
31498 * lib/javaexec.c: Include filename.h instead of pathname.h.
31499 (execute_java_class): Update.
31500 * modules/findprog: Update.
31501 * modules/javacomp: Update.
31502 * modules/javaexec: Update.
31503 * MODULES.html.sh (File system functions): Add 'filename', remove
31506 2007-02-25 Bruno Haible <bruno@clisp.org>
31508 * modules/printf-frexpl-tests: New file.
31509 * tests/test-printf-frexpl.c: New file.
31511 * modules/printf-frexpl: New file.
31512 * lib/printf-frexpl.h: New file.
31513 * lib/printf-frexpl.c: New file.
31514 * m4/printf-frexpl.m4: New file.
31516 2007-02-25 Bruno Haible <bruno@clisp.org>
31518 * modules/printf-frexp-tests: New file.
31519 * tests/test-printf-frexp.c: New file.
31521 * modules/printf-frexp: New file.
31522 * lib/printf-frexp.h: New file.
31523 * lib/printf-frexp.c: New file.
31524 * m4/printf-frexp.m4: New file.
31526 2007-02-25 Bruno Haible <bruno@clisp.org>
31528 Assume automake >= 1.10 for the tests.
31529 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
31530 * modules/arctwo-tests: Likewise.
31531 * modules/argp-tests: Likewise.
31532 * modules/avltree-list-tests: Likewise.
31533 * modules/avltree-oset-tests: Likewise.
31534 * modules/avltreehash-list-tests: Likewise.
31535 * modules/carray-list-tests: Likewise.
31536 * modules/crc-tests: Likewise.
31537 * modules/des-tests: Likewise.
31538 * modules/gc-arcfour-tests: Likewise.
31539 * modules/gc-arctwo-tests: Likewise.
31540 * modules/gc-des-tests: Likewise.
31541 * modules/gc-hmac-md5-tests: Likewise.
31542 * modules/gc-hmac-sha1-tests: Likewise.
31543 * modules/gc-md2-tests: Likewise.
31544 * modules/gc-md4-tests: Likewise.
31545 * modules/gc-md5-tests: Likewise.
31546 * modules/gc-pbkdf2-sha1-tests: Likewise.
31547 * modules/gc-rijndael-tests: Likewise.
31548 * modules/gc-sha1-tests: Likewise.
31549 * modules/gc-tests: Likewise.
31550 * modules/getaddrinfo-tests: Likewise.
31551 * modules/hmac-md5-tests: Likewise.
31552 * modules/hmac-sha1-tests: Likewise.
31553 * modules/linked-list-tests: Likewise.
31554 * modules/linkedhash-list-tests: Likewise.
31555 * modules/lock-tests: Likewise.
31556 * modules/md2-tests: Likewise.
31557 * modules/md4-tests: Likewise.
31558 * modules/md5-tests: Likewise.
31559 * modules/rbtree-list-tests: Likewise.
31560 * modules/rbtree-oset-tests: Likewise.
31561 * modules/rbtreehash-list-tests: Likewise.
31562 * modules/read-file-tests: Likewise.
31563 * modules/rijndael-tests: Likewise.
31564 * modules/stdint-tests: Likewise.
31565 * modules/tls-tests: Likewise.
31567 2007-02-24 Bruno Haible <bruno@clisp.org>
31569 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
31570 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
31571 function; instead check whether isnan with a double argument links.
31572 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
31573 function; instead check whether isnan with a 'long double' argument
31575 Reported by Eric Blake <ebb9@byu.net>.
31577 2007-02-24 Bruno Haible <bruno@clisp.org>
31579 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
31581 * lib/isnanl.c: Remove all code. Just include isnan.c.
31582 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
31584 2007-02-25 Jim Meyering <jim@meyering.net>
31586 Avoid conflicting types for 'unsetenv' on FreeBSD.
31587 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
31588 conflicting with FreeBSD's (5.0 and 6.1) function declaration
31591 2007-02-24 Bruno Haible <bruno@clisp.org>
31593 * modules/isnanl-nolibm-tests: New file.
31594 * tests/test-isnanl.c: New file.
31596 * modules/isnanl-nolibm: New file.
31597 * lib/isnanl.h: New file.
31598 * lib/isnanl.c: New file.
31599 * m4/isnanl.m4: New file.
31601 2007-02-24 Bruno Haible <bruno@clisp.org>
31603 * modules/isnan-nolibm-tests: New file.
31604 * tests/test-isnan.c: New file.
31606 * modules/isnan-nolibm: New file.
31607 * lib/isnan.h: New file.
31608 * lib/isnan.c: New file.
31609 * m4/isnan.m4: New file.
31611 2007-02-24 Bruno Haible <bruno@clisp.org>
31613 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
31614 assume that an exponent fits in 20 bits.
31616 2007-02-24 Jim Meyering <jim@meyering.net>
31618 * m4/regex.m4: Update the description of the configure-time option,
31619 --without-included-regex, to state accurately what the defaults are,
31620 and perhaps to give people an idea why using this option is risky.
31622 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
31624 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
31625 loops on small arguments. This attempts to avoid the problem
31626 Bruno Haible reported for AIX 4.3.2 in
31627 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
31629 2007-02-23 Bruno Haible <bruno@clisp.org>
31631 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
31632 Needed for help2man.
31634 2007-02-23 Karl Berry <karl@gnu.org>
31636 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
31637 exists, foo.h should be cvs-ignored, not committed.
31639 2007-02-23 Eric Blake <ebb9@byu.net>
31641 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
31642 * lib/stat-time.h (includes): Likewise.
31643 * lib/utimecmp.c (includes): Likewise.
31644 * lib/utimens.h (includes): Likewise.
31645 * lib/getdate.y (includes): Also include "timespec.h" for use
31646 internal to the module.
31647 * modules/utimens (Depends-on): Revert yesterday's patch.
31648 * modules/nanosleep (Depends-on): Add missing dependency.
31650 2007-02-22 Bruno Haible <bruno@clisp.org>
31652 * lib/glob.c: Don't include getlogin_r.h.
31654 2007-02-22 Jim Meyering <jim@meyering.net>
31656 * modules/utimens (Depends-on): Add timespec, required for
31657 utimens.h's inclusion of timespec.h.
31659 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
31661 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
31662 long unreadable paths in GNU/Linux. Problem reported by Andreas
31664 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
31665 I'll try to think of a better way to fix the Solaris problem.
31667 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
31668 like glibc; on Solaris 10, it fails with errno == EINVAL.
31669 POSIX says the behavior is unspecified if the first argument is NULL,
31670 so play it safe and never pass NULL to the system getcwd.
31672 2007-02-21 Jim Meyering <jim@meyering.net>
31674 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
31675 of gettimeofday. It would conflict with the one now always
31676 provided via sys_time_.h. Reported by Matthew Woehlke, as
31677 an IRIX 6.5 build failure.
31679 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
31681 Minor fixups to port to Solaris 10 with Sun C 5.8.
31682 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
31683 * modules/getcwd (Depends-on): Add dirfd.
31684 * lib/putenv.c (putenv): #undef it.
31685 (rpl_putenv): New decl.
31686 (malloc, free): Include <stdlib.h> rather than prototyping separately.
31688 2007-02-20 Bruno Haible <bruno@clisp.org>
31690 * modules/stdio-tests: New file.
31691 * tests/test-stdio.c: New file.
31693 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
31694 (Depends-on): Add stdio.
31695 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31696 (Include): Use <stdio.h> instead of vsnprintf.h.
31697 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
31698 HAVE_DECL_VSNPRINTF.
31699 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
31701 * modules/snprintf (Files): Remove lib/snprintf.h.
31702 (Depends-on): Add stdio.
31703 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31704 (Include): Use <stdio.h> instead of snprintf.h.
31705 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
31706 HAVE_DECL_SNPRINTF.
31707 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
31708 * lib/getaddrinfo.c: Likewise.
31710 * modules/stdio: New file.
31711 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
31712 * lib/snprintf.h: Remove file.
31713 * lib/vsnprintf.h: Remove file.
31714 * lib/.cppi-disable: Remove snprintf.h.
31715 * m4/stdio_h.m4: New file.
31716 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
31718 2007-02-20 Jim Meyering <jim@meyering.net>
31720 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
31721 used by e.g., mingw. From Bruno Haible.
31723 2007-02-19 Bruno Haible <bruno@clisp.org>
31725 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
31727 Reported by Ben Pfaff <blp@cs.stanford.edu>.
31729 2007-02-19 Bruno Haible <bruno@clisp.org>
31731 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
31734 2007-02-19 Bruno Haible <bruno@clisp.org>
31736 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
31738 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
31740 2007-02-19 Jim Meyering <jim@meyering.net>
31742 Don't use FD after a successful "fdopendir (fd)".
31743 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
31744 Reset it by calling dirfd on the just-obtained DIR*.
31746 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
31747 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
31749 2007-02-18 Bruno Haible <bruno@clisp.org>
31751 * lib/readlink.c: Include <unistd.h>.
31752 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
31754 * modules/readlink (Depends-on): Add unistd.
31755 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31756 (Include): Add <unistd.h>.
31758 * lib/getlogin_r.h: Remove file.
31759 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
31760 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
31761 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
31762 HAVE_DECL_GETLOGIN_R.
31763 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
31764 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31765 (Include): Use <unistd.h> instead of getlogin_r.h.
31767 * lib/getcwd.h: Remove file.
31768 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
31769 * lib/xgetcwd.c: Likewise.
31770 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
31771 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
31772 * modules/getcwd (Files): Remove lib/getcwd.h.
31773 (Depends-on): Add unistd.
31774 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31775 (Include): Use <unistd.h> instad of getcwd.h.
31777 * lib/ftruncate.c: Include <unistd.h> first.
31778 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
31779 Set HAVE_FTRUNCATE.
31780 * modules/ftruncate (Depends-on): Add unistd.
31781 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31783 * lib/fchdir.c: Include <unistd.h> first.
31784 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
31785 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
31786 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
31787 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31788 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
31790 * lib/dup2.c: Include <unistd.h> first.
31791 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
31793 * modules/dup2 (Depends-on): Add unistd.
31794 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31796 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
31797 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
31798 REPLACE_CHOWN. Don't define chown as a macro here.
31799 * modules/chown (Depends-on): Add unistd.
31800 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
31802 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
31803 Add definition for GL_LINK_WARNING.
31804 (chown, dup2): New declarations.
31805 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
31807 (ftruncate): New declaration.
31808 (getcwd): New declaration, taken from old getcwd.h.
31809 (getlogin_r): New declaration, taken from old getlogin_r.h.
31810 (readlink): New declaration.
31811 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
31812 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
31813 (gl_PREREQ_UNISTD): Remove macro.
31814 (gl_UNISTD_MODULE_INDICATOR): New macro.
31815 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
31816 many new variables. Don't set UNISTD_H.
31817 * modules/unistd (Description): Change.
31818 (Depends-on): Add link-warning.
31819 (configure.ac): Update.
31820 (Makefile.am): Create unistd.h always. Substitute many new variables
31823 2007-02-18 Bruno Haible <bruno@clisp.org>
31825 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
31826 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
31828 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
31829 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
31830 * lib/getsubopt.h: Remove file.
31831 * modules/getsubopt (Files): Remove lib/getsubopt.h.
31832 (Depends-on): Add stdlib.
31833 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31834 (Includes): Use <stdlib.h> instead of getsubopt.h.
31835 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
31836 Set HAVE_GETSUBOPT.
31837 * lib/getsubopt.c: Don't include getsubopt.h.
31839 2007-02-18 Bruno Haible <bruno@clisp.org>
31841 * modules/fchdir (Depends-on): Add dup2.
31843 2007-02-18 Bruno Haible <bruno@clisp.org>
31845 * lib/stdlib_.h: Handle glibc's special invocation convention
31848 2007-02-18 Bruno Haible <bruno@clisp.org>
31850 * modules/stdlib-tests: New file.
31851 * tests/test-stdlib.c: New file.
31853 * modules/mkstemp (Files): Remove lib/mkstemp.h.
31854 (Depends-on): Add stdlib.
31855 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31856 (Includes): Use <stdlib.h> instead of mkstemp.h.
31857 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
31858 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
31859 * lib/mkstemp.c: Don't include mkstemp.h.
31860 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
31861 * lib/stdlib--.h: Don't include mkstemp.h.
31863 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
31864 (Depends-on): Add stdlib.
31865 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
31866 (Includes): Use <stdlib.h> instead of mkdtemp.h.
31867 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
31869 * lib/mkdtemp.c: Don't include mkdtemp.h.
31870 * lib/clean-temp.c: Don't include mkdtemp.h.
31872 * modules/exit (Files): Remove lib/exit.h.
31873 (Depends-on): Add stdlib.
31874 (Makefile.am): Remove lib_SOURCES.
31875 (Include): Use <stdlib.h> instead of exit.h.
31876 * lib/argmatch.c: Don't include exit.h.
31877 * lib/execute.c: Likewise.
31878 * lib/pagealign_alloc.c: Likewise.
31879 * lib/pipe.c: Likewise.
31880 * lib/wait-process.c: Likewise.
31881 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
31882 * lib/exitfail.c: Likewise.
31883 * lib/savewd.c: Likewise.
31884 * lib/xsetenv.c: Likewise.
31886 * modules/stdlib: New file.
31887 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
31888 and extra comments about mkstemp().
31889 * lib/exit.h: Remove file.
31890 * lib/mkdtemp.h: Remove file.
31891 * lib/mkstemp.h: Remove file.
31892 * m4/stdlib_h.m4: New file.
31893 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
31895 2007-02-18 Bruno Haible <bruno@clisp.org>
31897 * modules/math-tests: New file.
31898 * tests/test-math.c: New file.
31900 * modules/math: New file.
31901 * modules/mathl (Files): Remove lib/mathl.h.
31902 (Depends-on): Add math.
31903 (Makefile.am): Don't mention mathl.h.
31904 (Include): Use <math.h> instead of mathl.h.
31905 * lib/math_.h: New file.
31906 * lib/mathl.h: Remove file.
31907 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
31909 * lib/asinl.c: Likewise.
31910 * lib/atanl.c: Likewise.
31911 * lib/ceill.c: Likewise.
31912 * lib/cosl.c: Likewise.
31913 * lib/expl.c: Likewise.
31914 * lib/floorl.c: Likewise.
31915 * lib/frexpl.c: Likewise.
31916 * lib/ldexpl.c: Likewise.
31917 * lib/logl.c: Likewise.
31918 * lib/sincosl.c: Likewise.
31919 * lib/sinl.c: Likewise.
31920 * lib/sqrtl.c: Likewise.
31921 * lib/tanl.c: Likewise.
31922 * lib/trigl.c: Likewise.
31923 * m4/math_h.m4: New file.
31924 * MODULES.html.sh (Mathematics): Add math.
31926 2007-02-17 Bruno Haible <bruno@clisp.org>
31928 * modules/wctype-tests: New file.
31929 * tests/test-wctype.c: New file.
31931 * modules/wchar-tests: New file.
31932 * tests/test-wchar.c: New file.
31934 * modules/unistd-tests: New file.
31935 * tests/test-unistd.c: New file.
31937 * modules/time-tests: New file.
31938 * tests/test-time.c: New file.
31940 * modules/sysexits-tests: New file.
31941 * tests/test-sysexits.c: New file.
31943 * modules/sys_time-tests: New file.
31944 * tests/test-sys_time.c: New file.
31946 * modules/sys_stat-tests: New file.
31947 * tests/test-sys_stat.c: New file.
31949 * modules/sys_socket-tests: New file.
31950 * tests/test-sys_socket.c: New file.
31952 * modules/sys_select-tests: New file.
31953 * tests/test-sys_select.c: New file.
31955 * modules/string-tests: New file.
31956 * tests/test-string.c: New file.
31958 * modules/stdbool-tests: New file.
31959 * tests/test-stdbool.c: New file.
31961 * modules/netinet_in-tests: New file.
31962 * tests/test-netinet_in.c: New file.
31964 * modules/inttypes-tests: New file.
31965 * tests/test-inttypes.c: New file.
31967 * modules/fcntl-tests: New file.
31968 * tests/test-fcntl.c: New file.
31970 * modules/byteswap-tests: New file.
31971 * tests/test-byteswap.c: New file.
31973 * modules/arpa_inet-tests: New file.
31974 * tests/test-arpa_inet.c: New file.
31976 2007-02-17 Bruno Haible <bruno@clisp.org>
31978 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
31979 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
31980 if the corresponding module is not enabled. Emit link warnings if
31981 the function is used nevertheless.
31982 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
31983 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
31984 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
31985 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
31986 * modules/inttypes (Depends-on): Add link-warning.
31987 (Makefile.am): Copy the contents of build-aux/link-warning.h into
31988 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
31989 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
31990 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
31991 * modules/imaxdiv (configure.ac): Likewise.
31992 * modules/strtoimax (configure.ac): Likewise.
31993 * modules/strtoumax (configure.ac): Likewise.
31995 2007-02-17 Bruno Haible <bruno@clisp.org>
31997 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
31998 gl_STRING_MODULE_INDICATOR_DEFAULTS.
31999 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
32000 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
32002 2007-02-17 Bruno Haible <bruno@clisp.org>
32004 * modules/link-warning: New file.
32005 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
32006 * lib/string_.h (GL_LINK_WARNING): Remove definition.
32007 * modules/string (Depends-on): Add link-warning.
32008 (Makefile.am): Copy the contents of build-aux/link-warning.h into
32010 * MODULES.html.sh (Support for building libraries and executables): Add
32013 2007-02-17 Bruno Haible <bruno@clisp.org>
32015 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
32016 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
32017 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
32020 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
32021 Bruno Haible <bruno@clisp.org>
32023 * modules/tmpfile: New file.
32024 * lib/tmpfile.c: New file.
32025 * m4/tmpfile.m4: New file.
32026 * MODULES.html.sh (func_all_modules): New section "Input/output".
32028 2007-02-15 Bruno Haible <bruno@clisp.org>
32030 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
32031 (supports_delete_on_close): New function.
32032 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
32034 2007-02-14 Bruno Haible <bruno@clisp.org>
32036 * modules/mbspcasecmp-tests: New file.
32037 * tests/test-mbspcasecmp.sh: New file.
32038 * tests/test-mbspcasecmp.c: New file.
32040 New module mbspcasecmp.
32041 * modules/mbspcasecmp: New file.
32042 * lib/mbspcasecmp.c: New file.
32043 * lib/string_.h (strncasecmp): Change warning message.
32044 (mbspcasecmp): New declaration.
32045 * m4/mbspcasecmp.m4: New file.
32046 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32047 GNULIB_MBSPCASECMP.
32048 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
32049 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
32051 2007-02-14 Bruno Haible <bruno@clisp.org>
32053 * modules/mbsncasecmp-tests: New file.
32054 * tests/test-mbsncasecmp.sh: New file.
32055 * tests/test-mbsncasecmp.c: New file.
32057 New module mbsncasecmp.
32058 * modules/mbsncasecmp: New file.
32059 * lib/mbsncasecmp.c: New file.
32060 * lib/string_.h (mbsncasecmp): New declaration.
32061 * m4/mbsncasecmp.m4: New file.
32062 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32063 GNULIB_MBSNCASECMP.
32064 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
32065 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
32067 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
32069 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
32070 Verify that it doesn't overlap with our flags.
32071 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
32072 do not have the desired effect in multibyte locales; instead, use
32074 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
32075 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
32076 we don't require GNU fnmatch ourselves (if our users require it, they
32077 should do so explicitly).
32079 Fix regex code so it doesn't rely on strcasecmp.
32080 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
32081 Otherwise, include gnulib's langinfo.h.
32082 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
32083 undesirable behavior in non-C locales. Instead, rely on localecharset.
32084 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
32085 * modules/regex (FILES): Remove m4/codeset.m4.
32086 (Depends-on): Add localcharset. Remove strcase.
32088 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32090 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
32091 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
32093 2007-02-13 Bruno Haible <bruno@clisp.org>
32095 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
32096 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32098 2007-02-12 Bruno Haible <bruno@clisp.org>
32100 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
32101 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
32102 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
32103 time warning rather than a link error.
32105 2007-02-12 Bruno Haible <bruno@clisp.org>
32107 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
32108 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32109 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32111 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
32113 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
32116 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
32118 New module 'time', so that apps can include <time.h> as per
32119 POSIX and GNU instead of separate include files like time_r.h
32120 and timegm.h. This implementation tries out a simpler approach
32121 for replacing decls in standard include files (as compared to
32122 the string module), somewhat as an experiment.
32124 * config/srclist.txt: Comment out mktime.c for now.
32125 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
32126 since it doesn't apply any more. Use generic wording instead.
32127 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
32129 * lib/time_.h, m4/time_h.m4, modules/time: New files.
32130 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
32131 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
32132 Don't include <sys/types.h>; no longer needed since we assume C89.
32133 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
32134 * lib/strftime.c: Likewise.
32135 * lib/time_r.c: Likewise.
32136 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
32137 * lib/nanosleep.c: Include <time.h> first, to check interface.
32138 * lib/strptime.c: Likewise.
32139 * lib/time_r.c: Likewise.
32140 * lib/timegm.c: Likewise.
32141 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
32143 * lib/timegm.c: Don't include timegm.h; no longer needed.
32144 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
32145 time.h now handles any problems in that area.
32146 (struct timespec, nanosleep): Remove; time.h now arranges for these.
32147 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
32148 that time.h defines struct timespec.
32149 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
32150 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
32152 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
32153 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
32154 needed. Set REPLACE_LOCALTIME.
32155 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
32156 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
32157 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
32158 nanosleep; time_h.m4 now does that. Don't require
32159 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
32160 module handles this now.
32161 * modules/getdate (Depends-on): Remove timespec. Add time.
32162 * modules/nanosleep (Depends-on): Likewise.
32163 * modules/stat-time (Depends-on): Likewise.
32164 * modules/nanosleep (Include): Include time.h, not timespec.h.
32165 * modules/strptime (Files): Remove lib/strptime.h.
32166 (Depends-on): Add extensions, time.
32167 (Include): Include time.h, not strptime.h.
32168 * modules/time_r (Files): Remove lib/time_r.h.
32169 (Depends-on): Add time.
32170 (Include): Include time.h, not time_r.h.
32171 * modules/timegm: Likewise.
32172 * modules/timespec (Description): Now does timespec-related decls
32173 of our own, instead of struct timespec itself.
32174 (Depends-on): Add time; remove extensions.
32175 (Maintainer): Add self.
32176 * modules/utimecmp (Depends-on): Add time; remove timespec.
32177 * modules/utimens (Depends-on): Likewise.
32178 * modules/xnanosleep (Depends-on): Likewise.
32180 2007-02-11 Bruno Haible <bruno@clisp.org>
32182 * lib/c-strstr.c: Include allocsa.h.
32183 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32184 * lib/c-strcasestr.c: Include allocsa.h.
32185 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32186 * lib/strcasestr.c: Include allocsa.h.
32187 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32188 * lib/mbsstr.c: Include allocsa.h.
32189 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
32190 allocsa/freesa instead of malloc/free.
32191 * lib/mbscasestr.c: Include allocsa.h.
32192 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
32193 allocsa/freesa instead of malloc/free.
32194 * modules/c-strstr (Depends-on): Add allocsa.
32195 * modules/c-strcasestr (Depends-on): Likewise.
32196 * modules/strcasestr (Depends-on): Likewise.
32197 * modules/mbsstr (Depends-on): Likewise.
32198 * modules/mbscasestr (Depends-on): Likewise.
32200 2007-02-11 Bruno Haible <bruno@clisp.org>
32202 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
32204 * modules/mbsspn-tests: New file.
32205 * tests/test-mbsspn.sh: New file.
32206 * tests/test-mbsspn.c: New file.
32208 2007-02-11 Bruno Haible <bruno@clisp.org>
32210 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
32212 * modules/mbspbrk-tests: New file.
32213 * tests/test-mbspbrk.sh: New file.
32214 * tests/test-mbspbrk.c: New file.
32216 2007-02-11 Bruno Haible <bruno@clisp.org>
32218 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
32221 * modules/mbscspn-tests: New file.
32222 * tests/test-mbscspn.sh: New file.
32223 * tests/test-mbscspn.c: New file.
32225 2007-02-11 Bruno Haible <bruno@clisp.org>
32227 * modules/mbscasecmp-tests: New file.
32228 * tests/test-mbscasecmp.sh: New file.
32229 * tests/test-mbscasecmp.c: New file.
32231 2007-02-11 Bruno Haible <bruno@clisp.org>
32233 Ensure O(n) worst-case complexity of mbscasestr.
32234 * lib/mbscasestr.c: Include stdbool.h.
32235 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
32237 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
32238 the bookkeeping indicates that it's worth it.
32239 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
32241 * modules/mbscasestr-tests: New file.
32242 * tests/test-mbscasestr1.c: New file.
32243 * tests/test-mbscasestr2.sh: New file.
32244 * tests/test-mbscasestr2.c: New file.
32245 * tests/test-mbscasestr3.sh: New file.
32246 * tests/test-mbscasestr3.c: New file.
32247 * tests/test-mbscasestr4.sh: New file.
32248 * tests/test-mbscasestr4.c: New file.
32249 * m4/locale-tr.m4: New file.
32251 2007-02-11 Bruno Haible <bruno@clisp.org>
32253 Ensure O(n) worst-case complexity of mbsstr.
32254 * lib/mbsstr.c: Include stdbool.h.
32255 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
32257 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
32258 bookkeeping indicates that it's worth it.
32259 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
32261 * modules/mbsstr-tests: New file.
32262 * tests/test-mbsstr1.c: New file.
32263 * tests/test-mbsstr2.sh: New file.
32264 * tests/test-mbsstr2.c: New file.
32265 * tests/test-mbsstr3.sh: New file.
32266 * tests/test-mbsstr3.c: New file.
32267 * m4/locale-fr.m4: New file.
32269 2007-02-11 Bruno Haible <bruno@clisp.org>
32271 * lib/mbsrchr.c (mbsrchr): Fix bug.
32273 * modules/mbsrchr-tests: New file.
32274 * tests/test-mbsrchr.sh: New file.
32275 * tests/test-mbsrchr.c: New file.
32277 2007-02-11 Bruno Haible <bruno@clisp.org>
32279 * lib/mbschr.c (mbschr): Fix bug.
32281 * modules/mbschr-tests: New file.
32282 * tests/test-mbschr.sh: New file.
32283 * tests/test-mbschr.c: New file.
32284 * m4/locale-zh.m4: New file.
32286 2007-02-11 Bruno Haible <bruno@clisp.org>
32288 Support for copying multibyte string iterators.
32289 * lib/mbiter.h: Include <string.h>.
32290 (mbiter_multi_copy): New function.
32291 (mbi_copy): New macro.
32292 * lib/mbuiter.h: Include <string.h>.
32293 (mbuiter_multi_copy): New function.
32294 (mbui_copy): New macro.
32296 2007-02-11 Bruno Haible <bruno@clisp.org>
32299 * modules/mbslen: New file.
32300 * lib/mbslen.c: New file.
32301 * lib/string_.h (mbslen): New declaration.
32302 * m4/mbslen.m4: New file.
32303 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32305 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
32306 * MODULES.html.sh (Internationalization functions): Add mbslen.
32308 2007-02-11 Bruno Haible <bruno@clisp.org>
32310 Ensure O(n) worst-case complexity of strcasestr substitute.
32311 * lib/strcasestr.c: Include stdbool.h.
32312 (knuth_morris_pratt): New function.
32313 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
32314 bookkeeping indicates that it's worth it.
32315 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
32317 * modules/strcasestr-tests: New file.
32318 * tests/test-strcasestr.c: New file.
32320 2007-02-11 Bruno Haible <bruno@clisp.org>
32322 Ensure O(n) worst-case complexity of c_strcasestr.
32323 * lib/c-strcasestr.c: Include stdbool.h, string.h.
32324 (knuth_morris_pratt): New function.
32325 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
32326 the bookkeeping indicates that it's worth it.
32327 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
32329 * modules/c-strcasestr-tests: New file.
32330 * tests/test-c-strcasestr.c: New file.
32332 2007-02-11 Bruno Haible <bruno@clisp.org>
32334 Ensure O(n) worst-case complexity of c_strstr.
32335 * lib/c-strstr.c: Include stdbool.h, string.h.
32336 (knuth_morris_pratt): New function.
32337 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
32338 bookkeeping indicates that it's worth it.
32339 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
32341 * lib/c-strstr.c: Complete rewrite for maintainability.
32343 * modules/c-strstr-tests: New file.
32344 * tests/test-c-strstr.c: New file.
32346 2007-02-11 Bruno Haible <bruno@clisp.org>
32348 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
32349 5.2.1 and earlier, whereby \055 was treated just like the range
32351 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32353 2007-02-08 Bruno Haible <bruno@clisp.org>
32355 * modules/regex (Depends-on): Add stdbool.
32356 Reported by Dalibor Topic <robilad@kaffe.org>.
32358 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
32360 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
32361 Prefer returning from main to exiting from it.
32362 Remove unnecessary parens after sizeof.
32364 2007-02-05 Bruno Haible <bruno@clisp.org>
32367 * modules/mbssep: New file.
32368 * lib/mbssep.c: New file.
32369 * lib/string_.h (strsep): Add a conditional link warning.
32370 (mbssep): New declaration.
32371 * m4/mbssep.m4: New file.
32372 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32374 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
32375 * MODULES.html.sh (Internationalization functions): Add mbssep.
32377 2007-02-05 Bruno Haible <bruno@clisp.org>
32379 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
32380 Optimize search in case of 1 delimiter.
32382 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
32384 * lib/acl.h: Include sys/types.h before sys/acl.h.
32386 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
32388 Merge upstream fix for glibc bugzilla #3957:
32390 2007-02-05 Jakub Jelinek <jakub@redhat.com>
32392 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
32393 bit for RE_HAT_LISTS_NOT_NEWLINE.
32394 (build_charclass_op): Remove bogus comment.
32396 2007-02-05 Simon Josefsson <simon@josefsson.org>
32398 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
32400 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
32402 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
32403 * lib/memmem.c [!defined _LIBC]: Include config.h.
32405 2007-02-04 Bruno Haible <bruno@clisp.org>
32407 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
32410 2007-02-04 Bruno Haible <bruno@clisp.org>
32412 New module mbstok_r.
32413 * modules/mbstok_r: New file.
32414 * lib/mbstok_r.c: New file.
32415 * lib/string_.h (strtok_r): Change argument names to match the
32416 comments. Add a conditional link warning.
32417 (mbstok_r): New declaration.
32418 * m4/mbstok_r.m4: New file.
32419 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32421 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
32422 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
32424 2007-02-04 Bruno Haible <bruno@clisp.org>
32427 * modules/mbsspn: New file.
32428 * lib/mbsspn.c: New file.
32429 * lib/string_.h (strspn): Add a conditional link warning.
32430 (mbsspn): New declaration.
32431 * m4/mbsspn.m4: New file.
32432 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32434 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
32435 * MODULES.html.sh (Internationalization functions): Add mbsspn.
32437 2007-02-04 Bruno Haible <bruno@clisp.org>
32439 New module mbspbrk.
32440 * modules/mbspbrk: New file.
32441 * lib/mbspbrk.c: New file.
32442 * lib/string_.h (strpbrk): Add a conditional link warning.
32443 (mbspbrk): New declaration.
32444 * m4/mbspbrk.m4: New file.
32445 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32447 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
32448 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
32450 2007-02-04 Bruno Haible <bruno@clisp.org>
32452 New module mbscspn.
32453 * modules/mbscspn: New file.
32454 * lib/mbscspn.c: New file.
32455 * lib/string_.h (strcspn): Add a conditional link warning.
32456 (mbscspn): New declaration.
32457 * m4/mbscspn.m4: New file.
32458 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32460 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
32461 * MODULES.html.sh (Internationalization functions): Add mbscspn.
32463 2007-02-04 Bruno Haible <bruno@clisp.org>
32465 New module mbscasestr, reduced goal of strcasestr.
32466 * modules/mbscasestr: New file.
32467 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
32468 (mbscasestr): Renamed from strcasestr.
32469 * lib/strcasestr.c: Don't include mbuiter.h.
32470 (strcasestr): Remove support for multibyte locales.
32471 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
32472 Change the conditional link warning.
32473 (mbscasestr): New declaration.
32474 * m4/mbscasestr.m4: New file.
32475 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
32476 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
32477 REPLACE_STRCASESTR.
32478 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
32479 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32480 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32481 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
32482 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
32483 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32484 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
32485 (Depends-on): Remove mbuiter.
32486 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
32488 2007-02-04 Bruno Haible <bruno@clisp.org>
32490 Simplify handling of strncasecmp.
32491 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
32492 the conditional link warning.
32493 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32494 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
32495 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
32496 * modules/strcase (configure.ac): Don't invoke
32497 gl_STRING_MODULE_INDICATOR.
32498 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
32500 2007-02-04 Bruno Haible <bruno@clisp.org>
32502 New module mbscasecmp, reduced goal of strcasecmp.
32503 * modules/mbscasecmp: New file.
32504 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
32505 (mbscasecmp): Renamed from strcasecmp.
32506 * lib/strcasecmp.c: Don't include mbuiter.h.
32507 (strcasecmp): Remove support for multibyte locales.
32508 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
32509 Change the conditional link warning.
32510 (mbscasecmp): New declaration.
32511 * m4/mbscasecmp.m4: New file.
32512 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
32513 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
32514 REPLACE_STRCASECMP.
32515 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
32516 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32518 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
32519 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
32520 * modules/strcase (Files): Remove m4/mbrtowc.m4.
32521 (Depends-on): Remove mbuiter.
32522 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
32524 2007-02-04 Bruno Haible <bruno@clisp.org>
32526 New module mbsstr. Remove module strstr.
32527 * modules/mbsstr: New file.
32528 * modules/strstr: Remove file.
32529 * lib/mbsstr.c: Renamed from lib/strstr.c.
32530 (mbsstr): Renamed from strstr.
32531 * lib/string_.h (strstr): Remove declaration. Change the conditional
32533 (mbsstr): New declaration.
32534 * m4/mbsstr.m4: New file.
32535 * m4/strstr.m4: Remove file.
32536 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32538 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
32539 Don't initialize GNULIB_STRSTR.
32540 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
32541 substitute GNULIB_STRSTR and REPLACE_STRSTR.
32542 * MODULES.html.sh (Internationalization functions): Add mbsstr.
32543 (Support for systems lacking ANSI C 89): Remove strstr.
32545 2007-02-04 Bruno Haible <bruno@clisp.org>
32547 New module mbsrchr.
32548 * modules/mbsrchr: New file.
32549 * lib/mbsrchr.c: New file.
32550 * lib/string_.h (strrchr): Add a conditional link warning.
32551 (mbsrchr): New declaration.
32552 * m4/mbsrchr.m4: New file.
32553 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32555 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
32556 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
32558 2007-02-04 Bruno Haible <bruno@clisp.org>
32561 * modules/mbschr: New file.
32562 * lib/mbschr.c: New file.
32563 * lib/string_.h (strchr): Add a conditional link warning.
32564 (mbschr): New declaration.
32565 * m4/mbschr.m4: New file.
32566 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32568 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
32569 * MODULES.html.sh (Internationalization functions): Add mbschr.
32571 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
32573 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
32575 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
32577 2007-02-04 Bruno Haible <bruno@clisp.org>
32579 New module description section 'configure.ac-early'.
32580 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
32581 (func_get_autoconf_early_snippet): New function.
32582 (func_import, func_create_testdir): Use it. Remove special cases for
32583 modules 'extensions' and 'lock'.
32584 * modules/extensions (configure.ac-early): Require
32585 gl_USE_SYSTEM_EXTENSIONS.
32586 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
32588 2007-02-04 Bruno Haible <bruno@clisp.org>
32590 Make use of gcj-4.3's -fsource and -ftarget option.
32591 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
32592 and if so try the options -fsource and -ftarget.
32593 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
32594 source_version, ftarget_option, target_version arguments.
32595 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
32596 (is_envjavac_oldgcj_14_14_usable): Renamed from
32597 is_envjavac_gcj_14_14_usable.
32598 (is_envjavac_oldgcj_14_13_usable): Renamed from
32599 is_envjavac_gcj_14_13_usable.
32600 (is_gcj_present): Update.
32601 (is_gcj_43, is_gcj43_usable): New functions.
32602 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
32603 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
32604 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
32605 try the options -fsource and -ftarget.
32607 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
32609 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
32610 checking code. Set N = ceil (1.5 * N) rather than to a slightly
32613 2007-02-03 Jim Meyering <jim@meyering.net>
32615 Give tools a better chance to allocate space for very large buffers.
32616 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
32618 Make pwd and readlink work also when run with an unreadable parent dir
32619 on systems with openat support.
32620 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
32621 provided getcwd function, even when we have openat support.
32622 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
32624 2007-02-02 Bruno Haible <bruno@clisp.org>
32626 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
32627 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
32628 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
32629 portability problems if one of these functions is only used on specific
32631 Reported by Paul Eggert.
32633 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
32635 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
32636 is causing more trouble than it's curing.
32637 * lib/regex_internal.h (__mempcpy): Remove.
32638 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
32639 (and make the code a tad smaller to boot).
32640 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
32642 2007-02-02 Jim Meyering <jim@meyering.net>
32644 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
32645 section, not in the Makefile.am: one.
32647 2007-02-02 Eric Blake <ebb9@byu.net>
32649 * lib/strchrnul.c: Always include config.h first.
32651 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
32652 gnulib strstr is not necessary here.
32654 2007-02-02 Simon Josefsson <simon@josefsson.org>
32656 * m4/socklen.m4: Fix typo.
32658 2007-02-02 Eric Blake <ebb9@byu.net>
32660 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
32661 * modules/netinet_in (Makefile.am): Likewise.
32663 2007-02-01 Bruno Haible <bruno@clisp.org>
32665 * lib/string_.h (GL_LINK_WARNING): New macro.
32666 (strcasecmp, strstr, strcasestr): If provided by the system,
32667 conditionally define as a macro that leads to a warning instead of to
32669 (strncasecmp): Conditionally define as a macro that leads to a warning.
32671 2007-02-01 Karl Berry <karl@gnu.org>
32673 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
32675 2007-02-01 Bruno Haible <bruno@clisp.org>
32677 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
32680 2007-02-01 Eric Blake <ebb9@byu.net>
32682 * modules/regex (Depends-on): Revert dependence on mempcpy.
32683 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
32684 module's definition of mempcpy.
32685 Reported by Paul Eggert.
32687 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
32689 * lib/string_.h: If the gnulib module XYZ is not present, undefine
32690 the symbol XYZ before redefining it. This fixes a problem with
32691 programs that don't use XYZ, when compiled on systems that define
32692 XYZ to something else.
32694 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
32696 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
32697 occurs when "mkdir -m foo" creates a setgid directory that is (1)
32698 writeable to group or other and (2) is intended to have a special
32699 mode bit that is set or cleared. In such a case, the directory
32700 should be neither group- nor other-writeable until the special
32701 mode bits are right.
32703 2007-01-31 Eric Blake <ebb9@byu.net>
32705 * modules/mountlist (Depends-on): Add strstr.
32707 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
32709 * modules/string (Makefile.am): Remove redundant replacement.
32710 * modules/regex (Depends-on): Add mempcpy.
32712 2007-01-31 Bruno Haible <bruno@clisp.org>
32714 New module description field 'Link'.
32715 * gnulib-tool (func_usage): Document --extract-link-directive.
32716 (sed_extract_prog): Recognize 'Link' directive.
32717 (func_get_link_directive): New function.
32718 (func_import): Show summary of link directives.
32719 Handle --extract-link-directive option.
32720 * modules/acl (Link): New section.
32721 * modules/clock-time (Link): New section.
32722 * modules/euidaccess (Link): New section.
32723 * modules/gettext (Link): New section.
32724 * modules/iconv (Link): New section.
32725 * modules/lock (Link): New section.
32726 * modules/nanosleep (Link): New section.
32727 * modules/readline (Link): New section.
32729 2007-01-27 Bruno Haible <bruno@clisp.org>
32731 Enforce the use of gnulib modules for unportable <string.h> functions.
32732 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
32733 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
32734 (gl_HEADER_STRING_H_BODY): Require it.
32735 * lib/string_.h: If the gnulib module XYZ is not present, redefine
32736 the symbol XYZ to one that gives a link error.
32737 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
32738 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
32739 * modules/mempcpy (configure.ac): Likewise.
32740 * modules/memrchr (configure.ac): Likewise.
32741 * modules/stpcpy (configure.ac): Likewise.
32742 * modules/stpncpy (configure.ac): Likewise.
32743 * modules/strcase (configure.ac): Likewise.
32744 * modules/strcasestr (configure.ac): Likewise.
32745 * modules/strchrnul (configure.ac): Likewise.
32746 * modules/strdup (configure.ac): Likewise.
32747 * modules/strndup (configure.ac): Likewise.
32748 * modules/strnlen (configure.ac): Likewise.
32749 * modules/strpbrk (configure.ac): Likewise.
32750 * modules/strsep (configure.ac): Likewise.
32751 * modules/strstr (configure.ac): Likewise.
32752 * modules/strtok_r (configure.ac): Likewise.
32754 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
32756 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
32758 2007-01-30 Jim Meyering <jim@meyering.net>
32760 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
32762 2007-01-29 Bruno Haible <bruno@clisp.org>
32764 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
32765 * lib/execute.c: Likewise.
32766 * lib/pipe.c: Likewise.
32767 * lib/printf-args.h: Likewise.
32768 * lib/printf-args.c: Likewise.
32769 * lib/printf-parse.c: Likewise.
32770 * lib/vasnprintf.c: Likewise.
32772 2007-01-29 Eric Blake <ebb9@byu.net>
32774 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
32777 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
32779 * lib/strptime.h (strptime): Use 'restrict' for args where
32780 POSIX requires this.
32781 * lib/strptime.c (strptime): Likewise.
32782 Change license notice from LGPL to GPL, since gnulib-tool will
32783 change this as needed.
32784 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
32786 Include "strptime.h" first, to check interface.
32787 Do not #undef _LIBC and _NL_CURRENT.
32788 Do not include <stdlib.h>; no longer needed.
32789 Include "time_r.h" and declare ptime_locale_status
32790 only if _LIBC is not defined.
32791 (__P): Remove unused macro.
32792 (match_string): Bring back glibc version, but use it only if _LIBC
32794 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
32795 Remove unnecessary assertion and abort() call.
32796 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
32797 * m4/strptime.m4: Fix serial number comment.
32798 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
32799 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
32800 (Depends-on): Add time_r.
32802 2007-01-29 Bruno Haible <bruno@clisp.org>
32804 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32806 * modules/strptime (Depends-on): Add stdbool.
32807 * lib/strptime.h: Include <time.h> always. Add comments.
32809 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
32811 * modules/strptime: New file.
32812 * lib/strptime.h: New file.
32813 * lib/strptime.c: New file.
32814 * m4/strptime.m4: New file.
32816 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
32818 * MODULES.html.sh: New module mpsort.
32819 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
32821 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
32822 a circularity problem with HP-UX ia64 reported by Bob Proulx in
32823 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
32825 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
32827 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
32829 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
32830 the parameter matches the prototype.
32832 2007-01-28 Jim Meyering <jim@meyering.net>
32834 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
32835 sys/time.h here, reverting that part of the previous patch:
32836 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
32838 2007-01-28 Bruno Haible <bruno@clisp.org>
32840 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
32841 value of $(SYS_TIME_H).
32842 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
32843 remove it conditionally, too. [added by Jim Meyering]
32844 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
32845 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
32846 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
32847 GETTIMEOFDAY_REPLACEMENT to 1.
32849 2007-01-28 Bruno Haible <bruno@clisp.org>
32851 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
32852 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
32853 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
32854 Set UNISTD_H instead of UNISTD_H2.
32855 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
32857 2007-01-28 Bruno Haible <bruno@clisp.org>
32859 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
32860 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
32862 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32864 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
32865 (func_create_testdir): Ensure C locale for `grep' and `tr'
32867 (func_create_megatestdir): Avoid one `grep'. Fix bug in
32868 ACLOCAL_AMFLAGS parsing state machine.
32870 2007-01-27 Bruno Haible <bruno@clisp.org>
32872 * modules/unistr/base: Update.
32874 2007-01-27 Bruno Haible <bruno@clisp.org>
32876 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
32877 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
32878 * modules/unistr/u32-mbtouc-unsafe: Renamed from
32879 modules/unistr/u32-mbtouc.
32880 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
32881 * lib/unistr.h: Update.
32882 * lib/linebreak.c: Update.
32883 * modules/unistr/u32-mbtouc: Renamed from
32884 modules/unistr/u32-mbtouc-safe.
32885 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
32886 * lib/unistr.h: Update.
32887 * lib/unistr/u32-to-u8.c: Update.
32888 * lib/unistr/u32-to-u16.c: Update.
32890 2007-01-27 Bruno Haible <bruno@clisp.org>
32892 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
32893 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
32894 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
32895 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
32896 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
32897 * modules/unistr/u16-mbtouc-unsafe: Renamed from
32898 modules/unistr/u16-mbtouc.
32899 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
32900 * lib/unistr.h: Update.
32901 * lib/linebreak.c: Update.
32902 * modules/linebreak: Update.
32903 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
32904 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
32905 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
32906 * modules/unistr/u16-mbtouc: Renamed from
32907 modules/unistr/u16-mbtouc-safe.
32908 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
32909 * lib/unistr.h: Update.
32910 * lib/unistr/u16-to-u8.c: Update.
32911 * modules/unistr/u16-to-u8: Update.
32912 * lib/unistr/u16-to-u32.c: Update.
32913 * modules/unistr/u16-to-u32: Update.
32915 2007-01-27 Bruno Haible <bruno@clisp.org>
32917 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
32918 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
32919 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
32920 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
32921 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
32922 * modules/unistr/u8-mbtouc-unsafe: Renamed from
32923 modules/unistr/u8-mbtouc.
32924 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
32925 * lib/unistr.h: Update.
32926 * lib/striconveh.c: Update.
32927 * modules/striconveh: Update.
32928 * lib/linebreak.c: Update.
32929 * modules/linebreak: Update.
32930 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
32931 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
32932 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
32933 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
32934 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
32935 * lib/unistr.h: Update.
32936 * lib/striconveh.c: Update.
32937 * modules/striconveh: Update.
32938 * lib/unistr/u8-to-u16.c: Update.
32939 * modules/unistr/u8-to-u16: Update.
32940 * lib/unistr/u8-to-u32.c: Update.
32941 * modules/unistr/u8-to-u32: Update.
32943 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32946 * lib/argz.c: Do not include strings.h nor memory.h, include
32947 string.h unconditionally. Patch by Simon Josefsson.
32949 2007-01-27 Bruno Haible <bruno@clisp.org>
32951 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
32952 from gl_HEADER_STRING_H_BODY.
32953 (gl_HEADER_STRING_H_BODY): Require it.
32954 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
32955 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
32956 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
32957 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
32958 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32959 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
32960 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32961 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
32962 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
32963 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
32964 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
32965 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
32966 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
32967 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32968 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32970 2007-01-27 Bruno Haible <bruno@clisp.org>
32972 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
32973 check_PROGRAMS into noinst_PROGRAMS.
32974 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
32975 check_PROGRAMS in this case.
32976 (func_import): Set for_test to false.
32977 (func_create_testdir): Set for_test to true.
32979 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
32980 Bruno Haible <bruno@clisp.org>
32982 * modules/strcasestr (Files): Remove lib/strcasestr.h.
32983 (Depends-on): Add string.
32984 (Includes): Use <string.h> instead of strcasestr.h.
32985 * modules/string (Makefile.am): Also substitute the value of
32986 REPLACE_STRCASESTR.
32987 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
32988 assume strcasestr is declared in <string.h> not <strings.h>. Also
32989 set REPLACE_STRCASESTR.
32990 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
32991 REPLACE_STRCASESTR.
32992 * lib/strcasestr.h: Remove file.
32993 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
32994 * lib/string_.h (strcasestr): New declaration.
32996 2007-01-27 Bruno Haible <bruno@clisp.org>
32998 * lib/string_.h: Use 'extern'.
33000 2007-01-27 Jim Meyering <jim@meyering.net>
33002 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
33003 of set-but-not-used local, "q".
33005 * lib/mempcpy.c: Include <config.h> before <string.h>.
33006 This fixes a compilation error on HP-UX, due to the system's
33007 "restrict"-using mempcpy prototype.
33009 2007-01-26 Bruno Haible <bruno@clisp.org>
33011 Small optimization.
33012 * lib/javacomp.c: Include c-strstr.h.
33013 (is_envjavac_gcj): Use c_strstr instead of strstr.
33014 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
33016 2007-01-26 Bruno Haible <bruno@clisp.org>
33018 * MODULES.html.sh (Unicode string functions): Add the new modules.
33020 * modules/uniconv/u32-strconv-to-locale: New file.
33021 * lib/uniconv/u32-strconv-to-locale.c: New file.
33023 * modules/uniconv/u16-strconv-to-locale: New file.
33024 * lib/uniconv/u16-strconv-to-locale.c: New file.
33026 * modules/uniconv/u8-strconv-to-locale: New file.
33027 * lib/uniconv/u8-strconv-to-locale.c: New file.
33029 * modules/uniconv/u32-strconv-from-locale: New file.
33030 * lib/uniconv/u32-strconv-from-locale.c: New file.
33032 * modules/uniconv/u16-strconv-from-locale: New file.
33033 * lib/uniconv/u16-strconv-from-locale.c: New file.
33035 * modules/uniconv/u8-strconv-from-locale: New file.
33036 * lib/uniconv/u8-strconv-from-locale.c: New file.
33038 * modules/uniconv/u32-strconv-to-enc: New file.
33039 * lib/uniconv/u32-strconv-to-enc.c: New file.
33040 * modules/uniconv/u32-strconv-to-enc-tests: New file.
33041 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
33043 * modules/uniconv/u16-strconv-to-enc: New file.
33044 * lib/uniconv/u16-strconv-to-enc.c: New file.
33045 * lib/uniconv/u-strconv-to-enc.h: New file.
33046 * modules/uniconv/u16-strconv-to-enc-tests: New file.
33047 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
33049 * modules/uniconv/u8-strconv-to-enc: New file.
33050 * lib/uniconv/u8-strconv-to-enc.c: New file.
33051 * modules/uniconv/u8-strconv-to-enc-tests: New file.
33052 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
33054 * modules/uniconv/u32-strconv-from-enc: New file.
33055 * lib/uniconv/u32-strconv-from-enc.c: New file.
33056 * modules/uniconv/u32-strconv-from-enc-tests: New file.
33057 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
33059 * modules/uniconv/u16-strconv-from-enc: New file.
33060 * lib/uniconv/u16-strconv-from-enc.c: New file.
33061 * modules/uniconv/u16-strconv-from-enc-tests: New file.
33062 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
33064 * modules/uniconv/u8-strconv-from-enc: New file.
33065 * lib/uniconv/u8-strconv-from-enc.c: New file.
33066 * lib/uniconv/u-strconv-from-enc.h: New file.
33067 * modules/uniconv/u8-strconv-from-enc-tests: New file.
33068 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
33070 * modules/uniconv/u32-conv-from-enc: New file.
33071 * lib/uniconv/u32-conv-from-enc.c: New file.
33072 * modules/uniconv/u32-conv-from-enc-tests: New file.
33073 * tests/uniconv/test-u32-conv-from-enc.c: New file.
33075 * modules/uniconv/u16-conv-from-enc: New file.
33076 * lib/uniconv/u16-conv-from-enc.c: New file.
33077 * lib/uniconv/u-conv-from-enc.h: New file.
33078 * modules/uniconv/u16-conv-from-enc-tests: New file.
33079 * tests/uniconv/test-u16-conv-from-enc.c: New file.
33081 * modules/uniconv/u8-conv-from-enc: New file.
33082 * lib/uniconv/u8-conv-from-enc.c: New file.
33083 * modules/uniconv/u8-conv-from-enc-tests: New file.
33084 * tests/uniconv/test-u8-conv-from-enc.c: New file.
33086 * modules/uniconv/base: New file.
33087 * lib/uniconv.h: New file.
33089 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
33091 * doc/gnulib-tool.texi (Initial import): Update to match current
33092 behavior with strdup module.
33093 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
33094 * lib/memmem.h: Remove; all uses removed. This is now done
33096 * lib/mempcpy.h: Likewise.
33097 * lib/memrchr.h: Likewise.
33098 * lib/stpcpy.h: Likewise.
33099 * lib/stpncpy.h: Likewise.
33100 * lib/strcase.h: Likewise.
33101 * lib/strchrnul.h: Likewise.
33102 * lib/strdup.h: Likewise.
33103 * lib/strndup.h: Likewise.
33104 * lib/strnlen.h: Likewise.
33105 * lib/strpbrk.h: Likewise.
33106 * lib/strsep.h: Likewise.
33107 * lib/strstr.h: Likewise.
33108 * lib/strtok_r.h: Likewise.
33109 * lib/string_.h: New file.
33110 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
33111 Rely on <string.h> instead.
33112 * lib/canon-host.c: Likewise.
33113 * lib/chdir-long.c: Likewise.
33114 * lib/concatpath.c: Likewise.
33115 * lib/exclude.c: Likewise.
33116 * lib/fchdir.c: Likewise.
33117 * lib/getaddrinfo.c: Likewise.
33118 * lib/getcwd.c: Likewise.
33119 * lib/getsubopt.c: Likewise.
33120 * lib/glob.c: Likewise.
33121 * lib/hard-locale.c: Likewise.
33122 * lib/iconvme.c: Likewise.
33123 * lib/javacomp.c: Likewise.
33124 * lib/mempcpy.c: Likewise.
33125 * lib/memrchr.c: Likewise.
33126 * lib/regex_internal.h: Likewise.
33127 * lib/stpncpy.c: Likewise.
33128 * lib/strcasecmp.c: Likewise.
33129 * lib/strchrnul.c: Likewise.
33130 * lib/strdup.c: Likewise.
33131 * lib/striconv.c: Likewise.
33132 * lib/striconveh.c: Likewise.
33133 * lib/striconveha.c: Likewise.
33134 * lib/strncasecmp.c: Likewise.
33135 * lib/strndup.c: Likewise.
33136 * lib/strnlen.c: Likewise.
33137 * lib/strsep.c: Likewise.
33138 * lib/strstr.c: Likewise.
33139 * lib/strtok_r.c: Likewise.
33140 * lib/userspec.c: Likewise.
33141 * lib/w32spawn.h: Likewise.
33142 * lib/xstrndup.c: Likewise.
33143 * lib/mountlist.c (strstr): Remove decl.
33144 * m4/string_h.m4: New file.
33145 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
33146 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
33147 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
33148 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
33149 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
33150 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
33151 Set REPLACE_STRCASECMP if necessary.
33152 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
33153 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
33154 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
33155 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
33156 HAVE_DECL_STRDUP if necessary.
33157 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
33158 since gl_FUNC_STRNDUP does that now.
33159 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
33160 Check for decl here...
33161 (gl_PREREQ_STRNLEN): ... not here.
33162 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
33163 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
33164 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
33165 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
33167 * modules/string: New file.
33168 * modules/memmem (Files): Remove special-purpose include file.
33169 (Depends-on): Add string.
33170 (Include): Include <string.h>, not the removed file.
33171 * modules/mempcpy: Likewise.
33172 * modules/memrchr: Likewise.
33173 * modules/stpcpy: Likewise.
33174 * modules/stpncpy: Likewise.
33175 * modules/strcase: Likewise.
33176 * modules/strchrnul: Likewise.
33177 * modules/strdup: Likewise.
33178 * modules/strndup: Likewise.
33179 * modules/strnlen: Likewise.
33180 * modules/strpbrk: Likewise.
33181 * modules/strsep: Likewise.
33182 * modules/strstr: Likewise.
33183 * modules/strtok_r: Likewise.
33184 * tests/test-dirname.c: Don't include "strdup.h", since
33185 <string.h> now suffices.
33186 * tests/test-memmem.c: Don't include "memmem.h", since
33187 <string.h> now suffices.
33189 2007-01-25 Bruno Haible <bruno@clisp.org>
33191 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
33194 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
33195 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
33196 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
33197 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
33199 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
33200 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
33201 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
33202 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
33203 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
33204 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
33206 2007-01-24 Bruno Haible <bruno@clisp.org>
33208 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
33209 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
33210 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
33211 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
33213 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
33214 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
33215 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33216 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
33217 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
33218 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
33220 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
33222 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
33223 Reported by Ralf Wildenhues.
33225 2007-01-24 Bruno Haible <bruno@clisp.org>
33227 Drop AC_REQUIRE calls that are redundant with the module dependencies.
33228 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
33230 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
33231 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
33232 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
33234 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
33236 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
33237 Don't use 'exit'; just return from 'main'.
33238 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
33240 * lib/fnmatch_.h: Readjust white space and comments to match
33241 glibc, to avoid spurious diffs.
33243 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
33245 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
33246 2004-12-01 change by Jakub Jelinek, since this code won't compile
33247 if !LIBC. Problem reported by Bob Proulx.
33249 2007-01-23 Bruno Haible <bruno@clisp.org>
33251 * lib/striconveh.c: Include c-strcaseeq.h.
33252 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
33253 * modules/striconveh (Depends-on): Add c-strcaseeq.
33255 2007-01-23 Bruno Haible <bruno@clisp.org>
33257 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
33259 * modules/c-strcaseeq: New file.
33260 * lib/c-strcaseeq.h: New file.
33262 * modules/streq: New file.
33263 * lib/streq.h: New file.
33265 2007-01-23 Bruno Haible <bruno@clisp.org>
33267 * modules/striconveha-tests: New file.
33268 * tests/test-striconveha.c: New file.
33270 * lib/striconveha.h: Include <stdbool.h>.
33271 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
33272 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
33273 (mem_iconveha_notranslit): Renamed from mem_iconveha.
33274 (mem_iconveha): New function.
33275 (str_iconveha_notranslit): Renamed from str_iconveha.
33276 (str_iconveha): New function.
33277 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
33280 2007-01-23 Bruno Haible <bruno@clisp.org>
33282 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
33283 encodings without forgiving before trying any encoding with handler.
33284 (str_iconveha): Try all encodings without forgiving before trying any
33285 encoding with handler.
33287 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
33289 Import the following changes from libc.
33291 2005-10-14 Ulrich Drepper <drepper@redhat.com>
33293 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
33295 2004-12-01 Jakub Jelinek <jakub@redhat.com>
33297 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
33298 normal_bracket label.
33300 2004-09-01 Jakub Jelinek <jakub@redhat.com>
33303 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
33304 to normal_bracket after fetching the next character.
33306 2007-01-22 Bruno Haible <bruno@clisp.org>
33308 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
33310 * lib/striconveh.c (iconv_carefully_1): New function.
33311 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
33313 (str_cd_iconveh): Update.
33314 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
33315 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
33316 * tests/test-striconveh.c (MAGIC): New macro.
33317 (new_offsets): New function.
33318 (main): Test call with and without offsets.
33320 2007-01-22 Bruno Haible <bruno@clisp.org>
33322 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
33323 * modules/sys_select (Makefile.am): Likewise.
33324 * modules/sys_socket (Makefile.am): Likewise.
33325 * modules/sys_time (Makefile.am): Likewise.
33327 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
33329 * modules/gettimeofday (License): Change from GPL to LGPL, since
33330 gettimeofday is a library function.
33332 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33334 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
33336 2007-01-21 Bruno Haible <bruno@clisp.org>
33338 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
33340 2007-01-21 Bruno Haible <bruno@clisp.org>
33342 * modules/striconveha: New file.
33343 * lib/striconveha.h: New file.
33344 * lib/striconveha.c: New file.
33345 * MODULES.html.sh (Internationalization functions): Add striconveha.
33346 * lib/striconv.c (str_iconv): Optimize the case of an empty input
33348 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
33350 2007-01-21 Bruno Haible <bruno@clisp.org>
33352 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
33353 * lib/striconveh.c (str_iconveh): Likewise.
33355 2007-01-21 Bruno Haible <bruno@clisp.org>
33357 * lib/striconveh.h (mem_iconveh): New declaration.
33358 * lib/striconveh.c (mem_iconveh): New function.
33359 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
33361 2007-01-21 Bruno Haible <bruno@clisp.org>
33363 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
33365 * lib/striconveh.h (mem_cd_iconveh): Change specification.
33366 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
33367 original result buffer.
33368 (str_cd_iconveh): Update.
33369 * tests/test-striconveh.c (main): Update.
33371 * lib/striconv.h (mem_cd_iconv): Change specification.
33372 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
33374 (str_cd_iconv): Update.
33375 * tests/test-striconv.c (main): Update.
33377 2007-01-21 Bruno Haible <bruno@clisp.org>
33379 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
33381 2007-01-20 Jim Meyering <jim@meyering.net>
33383 * lib/userspec.c (parse_with_separator): If a user or group string
33384 starts with "+", skip the corresponding name-to-ID look-up, since
33385 such a look-up must fail: user and group names may not include "+".
33387 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
33389 * lib/poll.c: Include sys/time.h and time.h unconditionally,
33390 since we now assume the sys_time module.
33391 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
33392 check for sys/time.h; no longer needed.
33393 * modules/poll (Depends-on): Depend on sys_time.
33395 2007-01-18 Bruno Haible <bruno@clisp.org>
33397 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
33398 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33400 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
33403 * tests/test-gettimeofday.c: Include <time.h>.
33404 (dummy): Remove variable.
33406 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
33407 gl_HEADER_SYS_TIME_H.
33408 (gl_HEADER_SYS_TIME_H): New macro.
33410 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
33411 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33412 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
33413 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
33414 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33415 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
33416 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
33417 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33418 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
33419 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
33420 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33422 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
33423 last change; it caused a compilation error when cross-compiling to
33426 2007-01-18 Jim Meyering <jim@meyering.net>
33428 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
33429 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
33430 than the race-prone "test -d sys || mkdir sys".
33431 (configure.ac): Use AC_PROG_MKDIR_P.
33432 * modules/sys_select: Likewise.
33433 * modules/sys_socket: Likewise.
33434 * modules/sys_time: Likewise.
33436 2007-01-18 Eric Blake <ebb9@byu.net>
33438 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
33439 replace gettimeofday.
33440 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
33441 name, to avoid infinite recursion.
33443 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
33445 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
33447 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
33448 assume timespec.h defines struct timeval.
33449 * lib/settime.c: Likewise.
33450 * lib/utimens.c: Likewise.
33451 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
33452 since we now assume the gettimeofday module.
33453 * lib/tempname.c (__gen_tempname): Likewise.
33454 * lib/gettimeofday.h: Remove.
33455 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
33456 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
33457 Include <time.h>, for 'time()'.
33458 (localtime_buffer_addr): Also use this workaround if
33459 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
33460 to simplify the uses. All uses changed.
33461 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
33462 that #undef is inside {}, and 'const' follows type name consistently.
33463 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
33464 (gettimeofday): Do not use the maximum possible value for
33465 tv->tv_usec, since that might break usages other than ls.c.
33466 Instead, we'll leave ls.c alone. This undoes today's patch
33467 by Bruno. Add a compile-time warning for 1s-clock resolution;
33468 we've never observed the problem but might as well keep the
33470 * lib/nanosleep.c: Include timespec.h first, for interface check.
33471 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
33472 now assume the sys_time module.
33473 * lib/tempname.c: Likewise.
33474 * lib/timespec.h: Likewise.
33475 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
33477 * lib/strftime.c: Likewise.
33478 * lib/timespec.h: Likewise.
33479 * lib/posixtm.c: Include posixtm.h first, for interface check.
33480 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
33481 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
33482 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
33483 * lib/sys_time_.h: New file.
33484 * lib/timespec.h (struct timespec): Use long int, not long.
33485 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
33486 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
33487 Remove obsolescent call to AC_HEADER_TIME.
33488 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
33489 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33490 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33491 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
33493 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
33494 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
33495 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
33496 into the sys_time module. Check for gettimeofday just once.
33497 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
33498 for gettimeofday signature to just check the signature. Merely
33499 compile it, since linking doesn't test signature. Improve test for
33500 whether gettimeofday.o is actually needed.
33501 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
33502 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
33503 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
33504 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33505 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
33506 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
33507 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
33508 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
33509 than worrying about sys/time.h.
33510 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33511 Don't bother worrying about TIME_WITH_SYS_TIME.
33512 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33513 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
33514 * m4/sys_time_h.m4: New file.
33515 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
33516 Don't include sys/time.h. Return from main rather than exiting.
33517 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
33519 * modules/gethrxtime (Depends-on): Add sys_time.
33520 * modules/gettime (Depends-on): Likewise.
33521 * modules/gettimeofday (Depends-on): Likewise.
33522 * modules/nanosleep (Depends-on): Likewise.
33523 * modules/settime (Depends-on): Likewise.
33524 * modules/tempname (Depends-on): Likewise.
33525 * modules/utimens (Depends-on): Likewise.
33526 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
33527 (Include:) Change back to <sys/time.h>.
33528 (Maintainer:) Add self.
33529 * modules/sys_time: New file.
33530 * modules/tempname (Depends-on): Add gettimeofday.
33531 * tests/test-gettimeofday.c: Include <sys/time.h>
33532 rather than gettimeofday.h.
33534 2007-01-17 Bruno Haible <bruno@clisp.org>
33536 * gnulib-tool (func_get_license): Revert last patch. Instead, let
33537 the license default to GPL.
33538 (func_create_testdir): Don't complain if a module is LGPL and its
33539 tests module depends on GPLed modules.
33541 2007-01-17 Bruno Haible <bruno@clisp.org>
33543 * lib/gettimeofday.c (gettimeofday): Add code for the case
33544 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
33545 maximum possible value for tv->tv_usec, rather than the minimum one.
33547 2005-10-08 Martin Lambers <marlam@marlam.de>
33548 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
33549 2007-01-16 Bruno Haible <bruno@clisp.org>
33551 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
33552 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
33553 gl_FUNC_GETTIMEOFDAY.
33554 (Include): Add gettimeofday.h.
33555 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
33556 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
33557 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
33558 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
33559 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
33560 * lib/gettimeofday.h: New file.
33561 * lib/gettimeofday.c: Include <sys/timeb.h>.
33562 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
33563 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33564 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
33565 fall back on time().
33567 * tests/test-gettimeofday.c: New file.
33568 * modules/gettimeofday-tests: New file.
33570 2007-01-16 Eric Blake <ebb9@byu.net>
33572 * modules/fnmatch (Depends-on): Depend on wchar.
33573 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
33574 * m4/fnmatch.m4: Likewise.
33575 * modules/mbchar (Makefile.am): Assume <wchar.h>.
33576 * m4/mbchar.m4: Likewise.
33577 * modules/mbswidth (Depends-on): Depend on wchar.
33578 * lib/mbswidth.c: Assume <wchar.h>.
33579 * m4/mbswidth.m4: Likewise.
33580 * modules/quotearg (Depends-on): Depend on wchar.
33581 * lib/quotearg.c: Assume <wchar.h>.
33582 * m4/quotearg.m4: Likewise.
33583 * modules/regex (Depends-on): Depend on wchar.
33584 * lib/regex_internal.h: Assume <wchar.h>.
33585 * m4/regex.m4: Likewise.
33586 * modules/stdint (Depends-on): Depend on wchar.
33587 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
33588 * m4/stdint.m4: Likewise.
33589 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
33590 * modules/strftime (Depends-on): Depend on wchar.
33591 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
33592 * modules/strtol (Depends-on): Depend on wchar.
33593 * lib/strtol.c: Assume <wchar.h>.
33594 * modules/wcwidth (Depends-on): Depend on wchar.
33595 * lib/wcwidth.h: Assume <wchar.h>.
33596 * m4/wcwidth.m4: Likewise.
33598 2007-01-16 Bruno Haible <bruno@clisp.org>
33600 * modules/csharpexec-script: New, created from...
33601 * modules/csharpexec: ... this.
33603 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
33605 * modules/javaexec-script: New, created from...
33606 * modules/javaexec: ... this.
33608 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33610 * modules/poll (Dependencies): Add sys_select.
33612 2007-01-15 Jim Meyering <jim@meyering.net>
33614 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
33615 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
33616 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
33617 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
33619 2007-01-15 Bruno Haible <bruno@clisp.org>
33621 * modules/striconveh: New file.
33622 * lib/striconveh.h: New file.
33623 * lib/striconveh.c: New file.
33624 * MODULES.html.sh (Internationalization functions): Add striconveh.
33626 * modules/striconveh-tests: New file.
33627 * tests/test-striconveh.c: New file.
33629 2007-01-15 Bruno Haible <bruno@clisp.org>
33631 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
33632 not from GNU libiconv or GNU libc.
33634 2007-01-15 Bruno Haible <bruno@clisp.org>
33636 * doc/gnulib-intro.texi (Copyright): Explain the different license
33637 terms for module descriptions, autoconf macros, tests, documentation.
33639 2007-01-14 Bruno Haible <bruno@clisp.org>
33641 * modules/striconv-tests: New file.
33642 * tests/test-striconv.c: New file.
33644 2007-01-14 Bruno Haible <bruno@clisp.org>
33646 * modules/iconv-tests: New file.
33647 * tests/test-iconv.c: New file.
33649 2007-01-14 Bruno Haible <bruno@clisp.org>
33651 * gnulib-tool (func_get_license): For test modules, use the license of
33654 2007-01-14 Bruno Haible <bruno@clisp.org>
33656 * modules/iconv (Include): Clarify that <iconv.h> can only be included
33657 if iconv is found to exist.
33659 2007-01-14 Bruno Haible <bruno@clisp.org>
33661 * modules/c-ctype-tests: New file.
33662 * tests/test-c-ctype.c: New file.
33664 2007-01-14 Bruno Haible <bruno@clisp.org>
33666 * modules/binary-io-tests: New file.
33667 * tests/test-binary-io.sh: New file.
33668 * tests/test-binary-io.c: New file.
33670 2007-01-14 Bruno Haible <bruno@clisp.org>
33672 * modules/array-oset-tests: New file.
33673 * tests/test-array_oset.c: New file.
33675 2007-01-14 Bruno Haible <bruno@clisp.org>
33677 * modules/array-list-tests: New file.
33678 * tests/test-array_list.c: New file.
33680 2007-01-14 Bruno Haible <bruno@clisp.org>
33682 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
33684 Reported by Simon Josefsson in
33685 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
33687 2007-01-14 Bruno Haible <bruno@clisp.org>
33689 * modules/allocsa-tests: New file.
33690 * tests/test-allocsa.c: New file.
33692 2007-01-14 Bruno Haible <bruno@clisp.org>
33694 * modules/fchdir (Depends-on): Add absolute-header.
33695 * modules/unistd (Depends-on): Likewise.
33697 2006-12-30 Bruno Haible <bruno@clisp.org>
33699 * modules/fchdir: New file.
33700 * modules/unistd (Files): Add lib/unistd_.h.
33701 (Makefile.am): Generate unistd.h from unistd_.h.
33702 * lib/fchdir.c: New file.
33703 * lib/dirent_.h: New file.
33704 * lib/unistd_.h: New file.
33705 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
33706 * m4/fchdir.m4: New file.
33707 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
33708 (gl_HEADER_UNISTD): Invoke it.
33709 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
33711 * lib/backupfile.c (opendir, closedir): Undefine.
33712 * lib/chown.c (open, close): Undefine.
33713 * lib/clean-temp.c (open, close): Undefine.
33714 * lib/copy-file.c (open, close): Undefine.
33715 * lib/execute.c (open, close): Undefine.
33716 * lib/fsusage.c (open, close): Undefine.
33717 * lib/gc-gnulib.c (open, close): Undefine.
33718 * lib/getcwd.c (opendir, closedir): Undefine.
33719 * lib/glob.c (opendir, closedir): Undefine.
33720 * lib/javacomp.c (open, close): Undefine.
33721 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
33722 * lib/openat-proc.c (open, close): Undefine.
33723 * lib/pagealign_alloc.c (open, close): Undefine.
33724 * lib/pipe.c (open, close): Undefine.
33725 * lib/progreloc.c (open, close): Undefine.
33726 * lib/savedir.c (opendir, closedir): Undefine.
33727 * lib/utime.c (open, close): Undefine.
33728 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
33730 2007-01-10 Bruno Haible <bruno@clisp.org>
33732 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
33734 2007-01-12 Eric Blake <ebb9@byu.net>
33736 Provide a robust <wchar.h>. Further simplifications are now
33737 possible in other modules, but not included here.
33738 * modules/wchar: New module.
33739 * m4/wchar.m4: New file.
33740 * lib/wchar_.h: Likewise.
33741 * modules/mbchar (Depends-on): Depend on wchar, as the first use
33743 * MODULES.html.sh (Extended multibyte and wide character utilities):
33746 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
33748 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
33749 to a reasonable default for memory allocation.
33750 (xreadlink): Don't allocate a huge buffer, to work around a buggy
33751 file system that reports garbage st_size values for symlinks.
33752 Problem reported by Liyang Hu.
33754 2007-01-11 Simon Josefsson <simon@josefsson.org>
33756 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
33757 Emacs .#* auto-save files).
33759 2007-01-11 Bruno Haible <bruno@clisp.org>
33761 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
33764 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
33766 Use @...@ consistently in lib/wctype_.h.
33767 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
33768 on it being set to 1 or 0.
33769 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
33770 go back to AC_SUBSTing it.
33771 * modules/wctype (Makefile.am): Undo previous change.
33773 2007-01-10 Eric Blake <ebb9@byu.net>
33775 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
33776 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
33777 * modules/wctype (Makefile.am): Likewise.
33778 Reported by Chris McGuire.
33780 2007-01-10 Jim Meyering <jim@meyering.net>
33782 fts.c: a small readability/maintainability improvement
33783 * lib/fts.c (fts_read): Make this code slightly more readable and
33784 maintainable by hoisting the "sp->fts_cur = p" assignments to
33785 immediately follow the statements that set P. Derived from
33786 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
33788 2007-01-10 Eric Blake <ebb9@byu.net>
33790 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
33791 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
33792 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
33793 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
33794 Reported by Chris McGuire.
33796 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33798 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
33801 2007-01-09 Bruno Haible <bruno@clisp.org>
33803 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
33804 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
33806 (func_module): Use them.
33808 2007-01-09 Bruno Haible <bruno@clisp.org>
33810 * modules/unistr/base: New file.
33811 * lib/unistr.h: New file.
33813 * modules/unistr/u8-to-u16: New file.
33814 * lib/unistr/u8-to-u16.c: New file.
33816 * modules/unistr/u8-to-u32: New file.
33817 * lib/unistr/u8-to-u32.c: New file.
33819 * modules/unistr/u16-to-u8: New file.
33820 * lib/unistr/u16-to-u8.c: New file.
33822 * modules/unistr/u16-to-u32: New file.
33823 * lib/unistr/u16-to-u32.c: New file.
33825 * modules/unistr/u32-to-u8: New file.
33826 * lib/unistr/u32-to-u8.c: New file.
33828 * modules/unistr/u32-to-u16: New file.
33829 * lib/unistr/u32-to-u16.c: New file.
33831 * modules/unistr/u8-check: New file.
33832 * modules/unistr/u16-check: New file.
33833 * modules/unistr/u32-check: New file.
33834 * lib/unistr/u8-check.c: New file.
33835 * lib/unistr/u16-check.c: New file.
33836 * lib/unistr/u32-check.c: New file.
33838 * modules/unistr/u8-chr: New file.
33839 * modules/unistr/u16-chr: New file.
33840 * modules/unistr/u32-chr: New file.
33841 * lib/unistr/u8-chr.c: New file.
33842 * lib/unistr/u16-chr.c: New file.
33843 * lib/unistr/u32-chr.c: New file.
33845 * modules/unistr/u8-cmp: New file.
33846 * modules/unistr/u16-cmp: New file.
33847 * modules/unistr/u32-cmp: New file.
33848 * lib/unistr/u8-cmp.c: New file.
33849 * lib/unistr/u16-cmp.c: New file.
33850 * lib/unistr/u32-cmp.c: New file.
33852 * modules/unistr/u8-cpy: New file.
33853 * modules/unistr/u16-cpy: New file.
33854 * modules/unistr/u32-cpy: New file.
33855 * lib/unistr/u8-cpy.c: New file.
33856 * lib/unistr/u16-cpy.c: New file.
33857 * lib/unistr/u32-cpy.c: New file.
33858 * lib/unistr/u-cpy.h: New file.
33860 * modules/unistr/u8-cpy-alloc: New file.
33861 * modules/unistr/u16-cpy-alloc: New file.
33862 * modules/unistr/u32-cpy-alloc: New file.
33863 * lib/unistr/u8-cpy-alloc.c: New file.
33864 * lib/unistr/u16-cpy-alloc.c: New file.
33865 * lib/unistr/u32-cpy-alloc.c: New file.
33866 * lib/unistr/u-cpy-alloc.h: New file.
33868 * modules/unistr/u8-endswith: New file.
33869 * modules/unistr/u16-endswith: New file.
33870 * modules/unistr/u32-endswith: New file.
33871 * lib/unistr/u8-endswith.c: New file.
33872 * lib/unistr/u16-endswith.c: New file.
33873 * lib/unistr/u32-endswith.c: New file.
33874 * lib/unistr/u-endswith.h: New file.
33876 * modules/unistr/u8-mblen: New file.
33877 * modules/unistr/u16-mblen: New file.
33878 * modules/unistr/u32-mblen: New file.
33879 * lib/unistr/u8-mblen.c: New file.
33880 * lib/unistr/u16-mblen.c: New file.
33881 * lib/unistr/u32-mblen.c: New file.
33883 * modules/unistr/u8-mbtouc: New file.
33884 * modules/unistr/u16-mbtouc: New file.
33885 * modules/unistr/u32-mbtouc: New file.
33886 * lib/unistr/u8-mbtouc.c: New file.
33887 * lib/unistr/u16-mbtouc.c: New file.
33888 * lib/unistr/u32-mbtouc.c: New file.
33890 * modules/unistr/u8-mbtouc-safe: New file.
33891 * modules/unistr/u16-mbtouc-safe: New file.
33892 * modules/unistr/u32-mbtouc-safe: New file.
33893 * lib/unistr/u8-mbtouc-safe.c: New file.
33894 * lib/unistr/u16-mbtouc-safe.c: New file.
33895 * lib/unistr/u32-mbtouc-safe.c: New file.
33897 * modules/unistr/u8-move: New file.
33898 * modules/unistr/u16-move: New file.
33899 * modules/unistr/u32-move: New file.
33900 * lib/unistr/u8-move.c: New file.
33901 * lib/unistr/u16-move.c: New file.
33902 * lib/unistr/u32-move.c: New file.
33903 * lib/unistr/u-move.h: New file.
33905 * modules/unistr/u8-next: New file.
33906 * modules/unistr/u16-next: New file.
33907 * modules/unistr/u32-next: New file.
33908 * lib/unistr/u8-next.c: New file.
33909 * lib/unistr/u16-next.c: New file.
33910 * lib/unistr/u32-next.c: New file.
33912 * modules/unistr/u8-prev: New file.
33913 * modules/unistr/u16-prev: New file.
33914 * modules/unistr/u32-prev: New file.
33915 * lib/unistr/u8-prev.c: New file.
33916 * lib/unistr/u16-prev.c: New file.
33917 * lib/unistr/u32-prev.c: New file.
33919 * modules/unistr/u8-set: New file.
33920 * modules/unistr/u16-set: New file.
33921 * modules/unistr/u32-set: New file.
33922 * lib/unistr/u8-set.c: New file.
33923 * lib/unistr/u16-set.c: New file.
33924 * lib/unistr/u32-set.c: New file.
33925 * lib/unistr/u-set.h: New file.
33927 * modules/unistr/u8-startswith: New file.
33928 * modules/unistr/u16-startswith: New file.
33929 * modules/unistr/u32-startswith: New file.
33930 * lib/unistr/u8-startswith.c: New file.
33931 * lib/unistr/u16-startswith.c: New file.
33932 * lib/unistr/u32-startswith.c: New file.
33933 * lib/unistr/u-startswith.h: New file.
33935 * modules/unistr/u8-stpcpy: New file.
33936 * modules/unistr/u16-stpcpy: New file.
33937 * modules/unistr/u32-stpcpy: New file.
33938 * lib/unistr/u8-stpcpy.c: New file.
33939 * lib/unistr/u16-stpcpy.c: New file.
33940 * lib/unistr/u32-stpcpy.c: New file.
33941 * lib/unistr/u-stpcpy.h: New file.
33943 * modules/unistr/u8-stpncpy: New file.
33944 * modules/unistr/u16-stpncpy: New file.
33945 * modules/unistr/u32-stpncpy: New file.
33946 * lib/unistr/u8-stpncpy.c: New file.
33947 * lib/unistr/u16-stpncpy.c: New file.
33948 * lib/unistr/u32-stpncpy.c: New file.
33949 * lib/unistr/u-stpncpy.h: New file.
33951 * modules/unistr/u8-strcat: New file.
33952 * modules/unistr/u16-strcat: New file.
33953 * modules/unistr/u32-strcat: New file.
33954 * lib/unistr/u8-strcat.c: New file.
33955 * lib/unistr/u16-strcat.c: New file.
33956 * lib/unistr/u32-strcat.c: New file.
33957 * lib/unistr/u-strcat.h: New file.
33959 * modules/unistr/u8-strchr: New file.
33960 * modules/unistr/u16-strchr: New file.
33961 * modules/unistr/u32-strchr: New file.
33962 * lib/unistr/u8-strchr.c: New file.
33963 * lib/unistr/u16-strchr.c: New file.
33964 * lib/unistr/u32-strchr.c: New file.
33966 * modules/unistr/u8-strcmp: New file.
33967 * modules/unistr/u16-strcmp: New file.
33968 * modules/unistr/u32-strcmp: New file.
33969 * lib/unistr/u8-strcmp.c: New file.
33970 * lib/unistr/u16-strcmp.c: New file.
33971 * lib/unistr/u32-strcmp.c: New file.
33973 * modules/unistr/u8-strcpy: New file.
33974 * modules/unistr/u16-strcpy: New file.
33975 * modules/unistr/u32-strcpy: New file.
33976 * lib/unistr/u8-strcpy.c: New file.
33977 * lib/unistr/u16-strcpy.c: New file.
33978 * lib/unistr/u32-strcpy.c: New file.
33979 * lib/unistr/u-strcpy.h: New file.
33981 * modules/unistr/u8-strcspn: New file.
33982 * modules/unistr/u16-strcspn: New file.
33983 * modules/unistr/u32-strcspn: New file.
33984 * lib/unistr/u8-strcspn.c: New file.
33985 * lib/unistr/u16-strcspn.c: New file.
33986 * lib/unistr/u32-strcspn.c: New file.
33987 * lib/unistr/u-strcspn.h: New file.
33989 * modules/unistr/u8-strdup: New file.
33990 * modules/unistr/u16-strdup: New file.
33991 * modules/unistr/u32-strdup: New file.
33992 * lib/unistr/u8-strdup.c: New file.
33993 * lib/unistr/u16-strdup.c: New file.
33994 * lib/unistr/u32-strdup.c: New file.
33995 * lib/unistr/u-strdup.h: New file.
33997 * modules/unistr/u8-strlen: New file.
33998 * modules/unistr/u16-strlen: New file.
33999 * modules/unistr/u32-strlen: New file.
34000 * lib/unistr/u8-strlen.c: New file.
34001 * lib/unistr/u16-strlen.c: New file.
34002 * lib/unistr/u32-strlen.c: New file.
34003 * lib/unistr/u-strlen.h: New file.
34005 * modules/unistr/u8-strmblen: New file.
34006 * modules/unistr/u16-strmblen: New file.
34007 * modules/unistr/u32-strmblen: New file.
34008 * lib/unistr/u8-strmblen.c: New file.
34009 * lib/unistr/u16-strmblen.c: New file.
34010 * lib/unistr/u32-strmblen.c: New file.
34012 * modules/unistr/u8-strmbtouc: New file.
34013 * modules/unistr/u16-strmbtouc: New file.
34014 * modules/unistr/u32-strmbtouc: New file.
34015 * lib/unistr/u8-strmbtouc.c: New file.
34016 * lib/unistr/u16-strmbtouc.c: New file.
34017 * lib/unistr/u32-strmbtouc.c: New file.
34019 * modules/unistr/u8-strncat: New file.
34020 * modules/unistr/u16-strncat: New file.
34021 * modules/unistr/u32-strncat: New file.
34022 * lib/unistr/u8-strncat.c: New file.
34023 * lib/unistr/u16-strncat.c: New file.
34024 * lib/unistr/u32-strncat.c: New file.
34025 * lib/unistr/u-strncat.h: New file.
34027 * modules/unistr/u8-strncmp: New file.
34028 * modules/unistr/u16-strncmp: New file.
34029 * modules/unistr/u32-strncmp: New file.
34030 * lib/unistr/u8-strncmp.c: New file.
34031 * lib/unistr/u16-strncmp.c: New file.
34032 * lib/unistr/u32-strncmp.c: New file.
34034 * modules/unistr/u8-strncpy: New file.
34035 * modules/unistr/u16-strncpy: New file.
34036 * modules/unistr/u32-strncpy: New file.
34037 * lib/unistr/u8-strncpy.c: New file.
34038 * lib/unistr/u16-strncpy.c: New file.
34039 * lib/unistr/u32-strncpy.c: New file.
34040 * lib/unistr/u-strncpy.h: New file.
34042 * modules/unistr/u8-strnlen: New file.
34043 * modules/unistr/u16-strnlen: New file.
34044 * modules/unistr/u32-strnlen: New file.
34045 * lib/unistr/u8-strnlen.c: New file.
34046 * lib/unistr/u16-strnlen.c: New file.
34047 * lib/unistr/u32-strnlen.c: New file.
34048 * lib/unistr/u-strnlen.h: New file.
34050 * modules/unistr/u8-strpbrk: New file.
34051 * modules/unistr/u16-strpbrk: New file.
34052 * modules/unistr/u32-strpbrk: New file.
34053 * lib/unistr/u8-strpbrk.c: New file.
34054 * lib/unistr/u16-strpbrk.c: New file.
34055 * lib/unistr/u32-strpbrk.c: New file.
34056 * lib/unistr/u-strpbrk.h: New file.
34058 * modules/unistr/u8-strrchr: New file.
34059 * modules/unistr/u16-strrchr: New file.
34060 * modules/unistr/u32-strrchr: New file.
34061 * lib/unistr/u8-strrchr.c: New file.
34062 * lib/unistr/u16-strrchr.c: New file.
34063 * lib/unistr/u32-strrchr.c: New file.
34065 * modules/unistr/u8-strspn: New file.
34066 * modules/unistr/u16-strspn: New file.
34067 * modules/unistr/u32-strspn: New file.
34068 * lib/unistr/u8-strspn.c: New file.
34069 * lib/unistr/u16-strspn.c: New file.
34070 * lib/unistr/u32-strspn.c: New file.
34071 * lib/unistr/u-strspn.h: New file.
34073 * modules/unistr/u8-strstr: New file.
34074 * modules/unistr/u16-strstr: New file.
34075 * modules/unistr/u32-strstr: New file.
34076 * lib/unistr/u8-strstr.c: New file.
34077 * lib/unistr/u16-strstr.c: New file.
34078 * lib/unistr/u32-strstr.c: New file.
34079 * lib/unistr/u-strstr.h: New file.
34081 * modules/unistr/u8-strtok: New file.
34082 * modules/unistr/u16-strtok: New file.
34083 * modules/unistr/u32-strtok: New file.
34084 * lib/unistr/u8-strtok.c: New file.
34085 * lib/unistr/u16-strtok.c: New file.
34086 * lib/unistr/u32-strtok.c: New file.
34087 * lib/unistr/u-strtok.h: New file.
34089 * modules/unistr/u8-uctomb: New file.
34090 * modules/unistr/u16-uctomb: New file.
34091 * modules/unistr/u32-uctomb: New file.
34092 * lib/unistr/u8-uctomb.c: New file.
34093 * lib/unistr/u16-uctomb.c: New file.
34094 * lib/unistr/u32-uctomb.c: New file.
34096 * MODULES.html.sh (Unicode string functions): Add the new modules.
34098 2007-01-08 Bruno Haible <bruno@clisp.org>
34100 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
34101 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
34104 2007-01-08 Karl Berry <karl@gnu.org>
34106 * doc/error.texi: mention that main() fns must set program_name
34107 when progname is used.
34109 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
34111 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
34112 WCTYPE_H is empty, for the benefit of builds from non-distclean
34113 directories. Problem reported by Eric Blake in
34114 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
34116 2007-01-08 Bruno Haible <bruno@clisp.org>
34118 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
34119 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
34120 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
34121 PROVIDE_CANONICALIZE_FILENAME_MODE.
34122 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
34124 2007-01-08 Bruno Haible <bruno@clisp.org>
34126 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
34127 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
34128 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
34129 * lib/fts.c: Likewise.
34130 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
34132 2006-12-25 Bruno Haible <bruno@clisp.org>
34134 * modules/utf8-ucs4-safe: New file.
34135 * lib/utf8-ucs4-safe.h: New file.
34136 * lib/unistr/utf8-ucs4-safe.c: New file.
34138 * modules/utf16-ucs4-safe: New file.
34139 * lib/utf16-ucs4-safe.h: New file.
34140 * lib/unistr/utf16-ucs4-safe.c: New file.
34142 * MODULES.html.sh (Unicode string functions): Add the new modules.
34144 2007-01-08 Bruno Haible <bruno@clisp.org>
34146 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
34147 (Depends-on): Add unitypes.
34148 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
34149 (u8_mbtouc_aux): Move out to separate file.
34150 (u8_mbtouc): Use ucs4_t, uint8_t types.
34151 * lib/unistr/utf8-ucs4.c: New file.
34153 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
34154 (Depends-on): Add unitypes.
34155 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
34156 (u16_mbtouc_aux): Move out to separate file.
34157 (u16_mbtouc): Use ucs4_t, uint16_t types.
34158 * lib/unistr/utf16-ucs4.c: New file.
34160 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
34161 (Depends-on): Add unitypes.
34162 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
34163 (u8_uctomb_aux): Move out to separate file.
34164 (u8_uctomb): Use ucs4_t, uint8_t types.
34165 * lib/unistr/ucs4-utf8.c: New file.
34167 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
34168 (Depends-on): Add unitypes.
34169 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
34170 (u16_uctomb_aux): Move out to separate file.
34171 (u16_uctomb): Use ucs4_t, uint16_t types.
34172 * lib/unistr/ucs4-utf16.c: New file.
34174 2006-12-25 Bruno Haible <bruno@clisp.org>
34176 * modules/unitypes: New file.
34177 * lib/unitypes.h: New file.
34178 * MODULES.html.sh (func_all_modules): New section "Unicode string
34179 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
34180 this section. Add unitypes.
34182 2007-01-08 Bruno Haible <bruno@clisp.org>
34184 Avoid variable names that conflict with those from libtool.
34185 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
34186 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
34187 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
34188 library_names_spec to acl_library_names_spec, hardcode_* to
34190 Reported by Ralf Wildenhues.
34192 2007-01-08 Bruno Haible <bruno@clisp.org>
34194 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
34196 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
34198 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
34199 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
34201 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
34203 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
34204 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
34205 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
34206 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
34208 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
34210 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
34211 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
34212 GC_USE_<algorithm>.
34213 * lib/gc-libgcrypt.c: Likewise.
34214 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
34215 * modules/gc-arctwo (configure.ac): Likewise.
34216 * modules/gc-des (configure.ac): Likewise.
34217 * modules/gc-hmac-md5 (configure.ac): Likewise.
34218 * modules/gc-hmac-sha1 (configure.ac): Likewise.
34219 * modules/gc-md2 (configure.ac): Likewise.
34220 * modules/gc-md4 (configure.ac): Likewise.
34221 * modules/gc-md5 (configure.ac): Likewise.
34222 * modules/gc-random (configure.ac): Likewise.
34223 * modules/gc-rijndael (configure.ac): Likewise.
34224 * modules/gc-sha1 (configure.ac): Likewise.
34226 2007-01-08 Bruno Haible <bruno@clisp.org>
34228 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
34230 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
34232 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
34234 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
34235 * modules/fcntl-safer (configure.ac): Likewise.
34236 * modules/fopen-safer (configure.ac): Likewise.
34237 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
34238 GNULIB_FWRITEERROR macro definition.
34240 2007-01-08 Bruno Haible <bruno@clisp.org>
34242 * m4/gnulib-common.m4: New file.
34243 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
34244 (func_get_filelist): Add m4/gnulib-common.m4.
34246 2007-01-08 Bruno Haible <bruno@clisp.org>
34248 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
34251 2007-01-08 Jim Meyering <jim@meyering.net>
34253 Use a more robust test for a "can't happen" condition.
34254 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
34255 narrowed the st_size value. Presuming the "can't happen" condition
34256 is true, that narrowing could conceivably convert an invalid st_size
34257 value into a valid one. Instead, use a change based on Matthew
34258 Woehlke's original patch.
34260 Slight readability improvement: use an assert-like macro
34261 in place of literal "abort ()" uses.
34262 * lib/fts.c (fts_assert): Define.
34263 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
34264 Use this macro instead of a bare 'abort'.
34266 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
34268 Don't worry about using IRIX 5.3's wctype.h broken definitions;
34269 simply work around them.
34270 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
34271 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
34272 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
34274 Don't bother to define as macros, since the standard doesn't require it.
34275 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
34276 longer worry about IRIX 5.3.
34277 (HAVE_WCTYPE_CTMP_BUG): Remove.
34279 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
34281 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
34282 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
34283 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34284 Problems reported by Georg Schwarz for IRIX 5.3.
34286 * gnulib-tool (autoconf_minversion): Take the maximum version number
34287 found, not the minimum. Problem reported by James Youngman.
34289 2007-01-03 Karl Berry <karl@gnu.org>
34291 * doc/error.texi: new file, explaining interaction with progname.
34292 * doc/gnulib.texi: include it. Update copyright.
34294 2007-01-03 Simon Josefsson <simon@josefsson.org>
34296 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
34297 AC_CANONICAL_HOST, to improve autobuild outputs.
34299 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
34300 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34302 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
34303 sockets, server sockets, and other file descriptors. Count errors
34304 to compute the return value. Reorder the code a bit to be easier
34305 to follow. Don't set event bits that were not requested (except
34306 POLLERR and POLLHUP).
34308 2007-01-01 Bruno Haible <bruno@clisp.org>
34310 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
34312 2007-01-03 Jim Meyering <jim@meyering.net>
34314 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
34316 2007-01-02 Bruno Haible <bruno@clisp.org>
34318 * modules/settime (Include): Require timespec.h.
34319 * modules/nanosleep (Include): Likewise.
34321 2007-01-01 Bruno Haible <bruno@clisp.org>
34323 * gnulib-tool (func_emit_copyright_notice): Bump year.
34324 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
34326 2007-01-01 Bruno Haible <bruno@clisp.org>
34328 Improve support for OpenBSD.
34329 * build-aux/config.rpath (libname_spec): Export.
34330 (library_names_spec): New variable. Export.
34331 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
34332 library_names_spec from the config.rpath output. Locate shared library
34333 through the name pattern in library_names_spec.
34335 2007-01-01 Eric Blake <ebb9@byu.net>
34337 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
34339 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
34341 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
34342 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
34343 assume the C locale, and avoid an "eval" that could cause trouble.
34344 Problem with SORT reported by Bob Proulx.
34346 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
34347 Define. Trivial patch from Henning Nielsen Lund, originally
34348 sent to bug-grep@gnu.org today.
34350 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
34352 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
34353 struct stat. Problem reported by Henning Nielsen Lund.
34354 * lib/acl.c: Include acl.h first, to check interface. Don't
34355 bother to include sys/types.h and sys/stat.h again.
34357 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
34359 Import the following change from libc; problem reported by
34362 2005-10-13 Ulrich Drepper <drepper@redhat.com>
34365 * lib/argp.h: Remove __NTH for __argp_usage inline function.
34367 2006-12-28 Jim Meyering <jim@meyering.net>
34369 * build-aux/announce-gen: Do not assume that the package
34370 builds any of tar.gz, tar.bz2, and .xdelta files.
34371 Suggestion from Simon Josefsson.
34373 2006-12-28 Simon Josefsson <simon@josefsson.org>
34375 * modules/announce-gen: New file.
34377 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
34379 * lib/mbchar.h: Just include <wctype.h>; the wctype module
34380 handles its gotchas now.
34381 * lib/mbswidth.c: Likewise.
34382 * lib/wcwidth.h: Likewise.
34383 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
34384 and iswcntrl; the wctype module does this stuff now.
34385 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34386 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
34387 * modules/mbchar (Depends-on): Add wctype.
34388 * modules/mbswidth (Depends-on): Likewise.
34389 * modules/wcwidth (Depends-on): Likewise.
34391 2006-12-27 Eric Blake <ebb9@byu.net>
34393 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
34394 module uses more than what <wctype.h> is required to provide.
34396 2006-12-26 Eric Blake <ebb9@byu.net>
34398 * gnulib-tool (sed_extract_prog): Avoid space-tab.
34400 2006-12-26 Eric Blake <ebb9@byu.net>
34402 * modules/absolute-header: New module.
34403 * modules/fcntl (Depends-on): Depend on it.
34404 * modules/inttypes (Depends-on): Likewise.
34405 * modules/stdint (Depends-on): Likewise.
34406 * modules/sys_stat (Depends-on): Likewise.
34407 * modules/wctype (Depends-on): Likewise.
34408 * MODULES.html.sh (Support for building libraries and
34409 executables): Document it.
34411 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
34413 * gnulib-tool (SED): Remove, undoing previous change.
34414 The problem was that it broke coreutils on Solaris, because
34415 "sed --posix" leaked into a makefile.
34416 (sed): New alias, if 'alias' and GNU sed.
34418 2006-12-24 Jim Meyering <jim@meyering.net>
34420 Work around an fchownat bug in glibc-2.4:
34421 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
34422 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
34423 in spite of the -P option.
34424 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
34426 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
34427 * modules/openat (Files): Add lib/fchownat.c.
34428 * lib/openat.c (fchownat): Don't define here. Move to...
34429 * lib/fchownat.c: ...this new file.
34431 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
34433 Fix bug reported by Bruno Haible in
34434 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
34435 where quotearg.c didn't compile on Mac OS X 10.2 because it
34436 lacks <wchar.h> and wint_t.
34437 * lib/wctype_.h (__wctype_wint_t): New type.
34438 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
34439 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
34440 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
34441 Arg is now of type __wctype_wint_t, not wint_t.
34442 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
34443 substitute HAVE_WINT_T.
34444 * modules/wctype (Files): Add m4/wint_t.m4.
34445 (wctype.h): Substitute HAVE_WINT_T.
34447 2006-12-23 Bruno Haible <bruno@clisp.org>
34449 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
34451 2006-12-23 Bruno Haible <bruno@clisp.org>
34453 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
34455 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
34458 2006-12-22 Bruno Haible <bruno@clisp.org>
34460 * lib/copy-file.c: Include acl.h.
34461 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
34462 Close the file descriptors only after being done with copy_acl.
34463 * modules/copy-file (Depends-on): Add acl.
34465 2006-12-22 Bruno Haible <bruno@clisp.org>
34467 * gnulib-tool (SED): New variable.
34468 Use $SED instead of sed everywhere.
34470 2006-12-22 Bruno Haible <bruno@clisp.org>
34472 * modules/no-c++: New file.
34473 * m4/no-c++.m4: New file.
34474 * MODULES.html.sh (Support for building libraries and executables):
34477 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
34479 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
34480 Include <limits.h>, and use its INT_MAX to rewrite the
34481 j loop so that it does not overflow 'int'. Problem reported by
34483 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
34484 Play it safe by shifting left by 1 rather than multiplying by 2,
34485 as GCC is less likely to optimize this away when the value
34486 is signed (when it assumes overflow leads to undefined behavior).
34487 Also, don't assume time_t uses two's complement.
34489 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
34491 * MODULES.html.sh: New module wctype.
34492 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
34493 * lib/fnmatch.c: Don't bother to include <wchar.h> before
34494 <wctype.h>, since the new wctype module should fix this.
34495 * lib/quotearg.c: Include <wctype.h> unconditionally, since
34496 the wctype module should arrange for it.
34497 * lib/regex_internal.h: Likewise.
34498 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
34499 since the wctype module should handle this now.
34500 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
34501 * modules/fnmatch (Depends-on): Add wctype.
34502 * modules/quotearg (Depends-on): Likewise.
34503 * modules/regex (Depends-on): Likewise.
34505 2006-12-19 Bruno Haible <bruno@clisp.org>
34507 * lib/strdup.h [C++]: Wrap definitions in extern "C".
34508 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
34510 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34512 * modules/savewd (Depends-on): Fix dependency on fcntl.
34514 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
34516 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
34517 conforms to C99, rather than relying on the user's environment
34518 setting of STDINT_H.
34520 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
34521 and Eric Blake <ebb9@byu.net>
34523 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
34524 This is more consistent with the other defines here.
34525 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
34526 Port to z/OS. Problem reported by Paul Gilmartin.
34527 Change local vars to use gl_ prefix rather than ac_.
34528 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
34529 with other defines.
34530 * modules/double-slash-root: New module.
34531 * modules/dirname (Files): Remove m4/double-slash-root.m4.
34532 (Depends-on): Add double-slash-root.
34533 * MODULES.html.sh (File system functions): Mention new module.
34535 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
34537 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
34538 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
34539 This is for the benefit of gzip, which doesn't do i18n.
34541 2006-12-12 Jim Meyering <jim@meyering.net>
34543 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
34544 Reported by Andreas Schwab <schwab@suse.de>.
34546 2006-12-12 Bruno Haible <bruno@clisp.org>
34548 Merge these changes.
34549 2006-09-05 Bruno Haible <bruno@clisp.org>
34550 * lib/iconvme.c (iconv_string): No need to save and restore errno when
34551 iconv_alloc succeeded.
34552 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
34553 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
34554 test for " && dest " at the end - dest is always != NULL there. Call
34555 iconv with 4xNULL arguments initially, to reset the state. Call iconv
34556 with 2xNULL arguments, also to flush the state storage. Handle the
34557 IRIX iconv behaviour. Realloc the final result, to throw away unused
34560 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
34562 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
34563 and fchmodat unconditionally, since glibc 2.4 has them.
34564 Problem reported by Arkadiusz Miskiewicz.
34566 2006-12-10 Bruno Haible <bruno@clisp.org>
34568 * gnulib-tool (func_import): Show the include files only for those
34569 modules that are copied and specified.
34570 Reported by Karl Berry.
34572 2006-12-08 Jim Meyering <jim@meyering.net>
34574 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
34575 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
34577 * build-aux/announce-gen: Add two new options, both optional:
34578 --bootstrap-tools=TOOL_LIST
34579 a comma-separated list of tools, e.g.,
34580 autoconf,automake,bison,gnulib
34581 --gnulib-snapshot-date=DATE
34582 if gnulib is in the bootstrap tool list,
34583 then report this as the snapshot date.
34584 If not specified, use the current date/time.
34585 If you specify a date here, be sure it's UTC.
34587 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34589 * tests/test-argp-2.sh: Fix test to match actual output.
34590 (func_compare): Fix sed script to be portable.
34592 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
34594 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
34595 workaround for this case. It is not autoconfigured now; offhand
34596 it's hard to see how to autoconfigure it.
34598 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
34600 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
34601 a directory that is about to be chowned. Such a directory's
34602 initial file permissions should permit the owner only and this
34603 should not be changed until after the chown, since the group and
34604 other bits would be incorrect if they granted permission before
34607 Fix porting problem for iswctype reported by Georg Schwarz in:
34608 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
34609 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
34610 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
34611 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
34612 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34614 2006-12-03 Jim Meyering <jim@meyering.net>
34616 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
34617 p->fts_statp may not yet be defined.
34618 (fts_read): Instead, set it in the caller, once p->fts_statp is
34619 sure to be defined, and corresponds to a top-level directory.
34620 This bug made du -x fail. Here's the coreutils test case:
34621 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
34622 Reported by Mike Frysinger.
34624 2006-12-01 Jim Meyering <jim@meyering.net>
34626 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
34627 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
34628 Reported by Simon Josefsson.
34630 2006-11-30 Jim Meyering <jim@meyering.net>
34632 * m4/warning.m4: Use the all-permissive copyright notice
34633 recommended by RMS (rather than LGPL).
34634 * m4/vararrays.m4: Likewise.
34635 * m4/flexmember.m4: Likewise.
34637 2006-11-29 Bruno Haible <bruno@clisp.org>
34639 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34640 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
34642 Reported by Simon Josefsson <simon@josefsson.org>.
34644 2006-11-28 James Youngman <jay@gnu.org>
34646 * README: Advise users that they might find the bug-gnulib@gnu.org
34647 and autotools-announce@gnu.org mailing lists useful.
34649 2006-11-28 Bruno Haible <bruno@clisp.org>
34651 * m4/ptrdiff_max.m4: Remove file.
34653 2006-11-21 Bruno Haible <bruno@clisp.org>
34655 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
34657 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34658 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
34660 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34661 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
34663 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34665 2006-11-28 Jim Meyering <jim@meyering.net>
34667 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
34668 warning from "gcc -Wshadow" about shadowing the builtin.
34670 2006-11-27 Bruno Haible <bruno@clisp.org>
34672 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
34674 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34676 2006-11-27 Bruno Haible <bruno@clisp.org>
34677 Paul Eggert <eggert@cs.ucla.edu>
34679 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
34681 2006-11-26 Bruno Haible <bruno@clisp.org>
34683 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34684 noinst_LTLIBRARIES.
34686 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
34687 Bruno Haible <bruno@clisp.org>
34689 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
34690 if compiling with "gcc -ansi".
34692 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
34694 Fix some incompatibilities with gcc -ansi -pedantic.
34695 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
34696 if compiling pedantically with GCC, unless it's C99 or later.
34697 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
34698 it mishandles gcc -ansi -pedantic as well.
34699 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
34701 * lib/regexec.c (check_node_accept_bytes): Don't use auto
34702 initializers for struct if -pedantic, unless it's C99 or later.
34704 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
34706 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
34707 Don't close an fd more than once. Identical atimes indicate
34708 success, not failure.
34710 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
34712 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
34714 2006-11-23 Jim Meyering <jim@meyering.net>
34716 * build-aux/announce-gen: New file. From coreutils.
34718 2006-11-22 Jim Meyering <jim@meyering.net>
34720 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
34721 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
34722 (fts_read): Use a temporary to narrow the overused st_size member
34723 before using it in a switch statement. Reported by Matthew Woehlke.
34725 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
34726 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
34728 2006-11-20 Bruno Haible <bruno@clisp.org>
34730 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
34731 changequote instead of pairs of brackets.
34732 Reported by Andreas Schwab <schwab@suse.de>.
34734 2006-11-21 Jim Meyering <jim@meyering.net>
34736 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
34737 so as to remain compatible with older compilers.
34738 Patch from Michael Deutschmann.
34740 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
34742 * MODULES.html.sh (File system functions): Add openat.
34744 * lib/openat.h (rpl_fstatat): New macro, if
34745 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
34746 (fstatat): Define to rpl_fstatat under the same conditions,
34747 unless COMPILING_FSTATAT.
34748 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
34749 seems to have the bug.
34750 * lib/fstatat.c: New file.
34751 * modules/openat (Files): Add it.
34753 2006-11-20 Bruno Haible <bruno@clisp.org>
34755 * Makefile: New file.
34757 2006-11-20 Jim Meyering <jim@meyering.net>
34759 The beginnings of syntax-related checks for gnulib.
34760 * lib/Makefile: New file.
34761 * lib/t-idcache: New script. Ensure that the two halves of
34762 idcache.c stay in sync.
34764 * lib/idcache.c: Adjust comments in user- and group- portions to
34765 be more accurate, and to be consistent with one another.
34767 2006-11-20 Jim Meyering <jim@meyering.net>
34769 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
34770 continue using the flexible array member (thus, this module performs
34771 half as many malloc calls), with the addition that...
34772 (getgroup, getuser): Consistently record a non-match via an empty
34773 "name" string, and map an empty string match to a NULL return value.
34774 * modules/idcache (Depends-on): Re-add flexmember.
34776 * lib/idcache.c (getuser): Remove all uses of the register keyword.
34777 (getuidbyname, getgroup, getgidbyname): Likewise.
34779 Use cleaner syntax: NULL rather than 0.
34780 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
34782 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
34784 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
34785 It mishandled the case where the group was missing.
34786 Problem reported by Greg Schafer.
34787 * modules/idcache: Likewise.
34789 2006-11-18 Jim Meyering <jim@meyering.net>
34791 * check-module (%exempt_header): Add exception for some
34792 conditionally-included headers.
34794 * modules/i-ring (Depends-on): Add verify.
34795 (License): Change to LGPL.
34797 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
34799 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
34800 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
34801 and inttostr.h. Use snprintf rather than uinttostr, so that
34802 LGPLed code doesn't depend on GPLed.
34804 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
34806 * modules/inline (License): Change from GPL to LGPL.
34808 2006-11-17 Jim Meyering <jim@meyering.net>
34810 * modules/d-type (License): Switch to LGPL.
34812 2006-11-15 Bruno Haible <bruno@clisp.org>
34814 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
34816 2006-11-15 Eric Blake <ebb9@byu.net>
34818 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
34819 the module dependency.
34821 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34822 Bruno Haible <bruno@clisp.org>
34824 * gnulib-tool (func_create_testdir): Add license consistency check.
34826 2006-11-15 Eric Blake <ebb9@byu.net>
34828 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
34829 random "(cached)" in configure output.
34831 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34833 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
34834 test for conforming inttypes.h is both announced and cached.
34836 * MODULES.html.sh (seen_modules, seen_files): New variables.
34837 (func_module): Rewrite to use a few less gnulib-tool and sed
34838 invocations. Avoid a couple of quadratic algorithms for ...
34839 (missed_modules, missed_files): ... these, with ...
34840 (func_append, func_tmpdir): ... these new functions, from
34841 gnulib-tool. Analogously, install traps for cleanup.
34843 * tests/test-gc.c (main): Remove unused variables.
34844 * tests/test-read-file.c: Include stdlib.h, for 'free'.
34846 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
34848 * modules/inttostr (License): Change to LGPL.
34850 2006-11-14 Eric Blake <ebb9@byu.net>
34852 * modules/tempname (License): Change to LGPL.
34854 2006-11-14 Eric Blake <ebb9@byu.net>
34856 * doc/functions.texi (Function Portability): *printf functions on
34857 Cygwin now understand all POSIX size specifiers.
34859 2006-11-14 Bruno Haible <bruno@clisp.org>
34861 * modules/c-ctype (License): Change to LGPL.
34863 2006-11-12 Bruno Haible <bruno@clisp.org>
34865 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34866 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
34867 for GNOME libraries, for which the include files are installed in
34868 subdirectories of $prefix/include.
34870 2006-11-12 Bruno Haible <bruno@clisp.org>
34872 * m4/lib-link.m4: Require at least autoconf-2.54.
34873 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
34874 name to underscores for the --with option.
34876 2006-11-13 Bruno Haible <bruno@clisp.org>
34878 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
34879 the tests directory.
34880 Reported by Ralf Wildenhues.
34882 2006-11-13 Bruno Haible <bruno@clisp.org>
34884 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
34885 (func_emit_initmacro_end): Undo the override here.
34886 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
34887 Works around the famous automake error in coreutils.
34889 2006-11-13 Eric Blake <ebb9@byu.net>
34891 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
34892 element, not its node.
34894 2006-11-12 Bruno Haible <bruno@clisp.org>
34896 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
34897 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
34899 2006-11-12 Bruno Haible <bruno@clisp.org>
34901 * gnulib-tool: New option --local-symlink.
34902 (func_usage): Document it.
34903 (lsymbolic): New variable.
34904 (func_import, func_create_testdir): If --symlink was not specified,
34905 test whether --local-symlink was specified and the file comes from
34906 the local_gnulib_dir.
34908 2006-11-12 Bruno Haible <bruno@clisp.org>
34910 * gnulib-tool (func_ln): New function.
34911 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
34913 2006-11-12 Bruno Haible <bruno@clisp.org>
34915 Finish support for source files in subdirectories.
34916 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
34917 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
34919 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
34921 2006-11-12 Bruno Haible <bruno@clisp.org>
34923 * gnulib-tool (func_get_automake_snippet): Synthesize also an
34924 EXTRA_lib_SOURCES augmentation.
34925 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
34927 2006-11-12 Jim Meyering <jim@meyering.net>
34929 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
34930 file descriptors. This also averts a failure on systems with
34931 native openat support when a traversed directory lacks "x" access.
34932 * lib/fts_.h: Include "i-ring.h"
34933 (struct FTS) [fts_fd_ring]: New member.
34934 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
34935 (FCHDIR): Add parentheses.
34936 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
34937 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
34938 When descending, rather than simply closing the previous
34939 fts_cwd_fd value, push that file descriptor onto the ring.
34940 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
34941 (fts_open): Initialize the new fd_ring member.
34942 (fts_close): Clear the ring.
34943 (fts_safe_changedir): When possible, use our new fd_ring to skip
34944 the diropen and fstat and dev/ino comparison that would normally
34945 accompany a virtual `chdir ("..")'.
34947 * modules/fts (Depends-on): Add i-ring.
34948 * modules/i-ring: New module.
34949 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
34950 * m4/i-ring.m4: New file.
34952 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34954 * gnulib-tool (func_create_testdir): Fix replacement of
34955 `build-aux' in configure.ac. Run autotools in gltests
34957 (func_create_testdir, func_create_megatestdir, test): There is
34958 no need for '--force' in most autotool invocations in a new
34959 tree. Actually fail the whole test if any of the tools, or the
34960 configure or make stages fail.
34962 Sync from Automake.
34963 * build-aux/gnupload: Revert last change. Add pointer to upload
34964 instructions of the GNU Maintenance Instructions.
34965 Suggestion by Karl Berry.
34967 2006-11-10 Jim Meyering <jim@meyering.net>
34969 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
34971 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
34973 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
34974 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
34975 (bind_textdomain_codeset) [! ENABLE_NLS]:
34976 Evaluate all the arguments. That way, callers get compatible behavior
34977 if the arguments have side effects. Also, it avoids some GCC
34978 diagnostics in some cases; Joel E. Denny reported problems when Bison
34979 was configured with --enable-gcc-warnigs.
34981 2006-11-10 Jim Meyering <jim@meyering.net>
34983 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
34984 relevant options in CFLAGS (like -O, -fno-inline) are taken into
34987 2006-11-10 Jim Meyering <jim@meyering.net>
34989 * modules/inline: New file/module.
34990 * modules/xalloc (Files): Remove m4/inline.m4.
34991 (Depends-on): Add inline, instead.
34992 * modules/oset: Likewise.
34993 * modules/list: Likewise.
34995 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
34997 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
34998 Problem reported by Matthew Woehlke.
35000 2006-11-09 Bruno Haible <bruno@clisp.org>
35002 * lib/tempname.c (gen_tempname): Remove variant that invokes
35004 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
35007 2006-11-08 Bruno Haible <bruno@clisp.org>
35009 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
35010 to 'yes' instead of 'cross-compiling'.
35012 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
35014 * lib/quotearg.h (quotearg_free): New decl.
35015 * lib/quotearg.c (quotearg_free): New function.
35016 (slot0, nslots, slotvec0, slotvec):
35017 Now file-scope so that quotearg_free can get at them.
35019 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35021 Sync from Automake.
35022 * build-aux/gnupload: Add missing 'gnu' to example URL.
35023 Report by Karl Berry.
35025 2006-11-08 Bruno Haible <bruno@clisp.org>
35027 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
35028 Suggested by Paul Eggert.
35030 2006-11-08 Jim Meyering <jim@meyering.net>
35032 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
35033 It's already included if !_LIBC.
35034 (fts_safe_changedir): Add a comment.
35036 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
35038 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
35039 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
35042 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
35043 definitions up, to avoid colliding with change below.
35044 (static_inline) [HAVE_INLINE]: New macro.
35045 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
35046 Provide extern decls when !HAVE_INLINE. Do not define unless
35047 static_inline is defined, either by us or by xmalloc.c. Use
35048 static_inline rather than static inline.
35049 (XCALLOC): Optimize sizeof(T) = 1 case.
35050 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
35052 2006-11-07 Bruno Haible <bruno@clisp.org>
35054 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
35055 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
35057 * modules/xalloc (Files): Add m4/inline.m4.
35059 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35061 * README: Fix typo.
35062 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
35063 (Miscellanous Notes): ...from this.
35065 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
35067 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
35068 Mention that offsetof should be used instead of sizeof.
35071 2006-11-07 Bruno Haible <bruno@clisp.org>
35073 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
35075 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
35077 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
35078 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
35079 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
35080 (gl_tree_add_before, gl_tree_add_after):
35081 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
35082 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
35083 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35084 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
35085 (gl_linked_add_after, gl_linked_add_at): Likewise.
35086 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
35087 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
35088 (gl_tree_add_before, gl_tree_add_after): Likewise.
35089 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
35090 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
35091 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
35093 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35095 * lib/gl_oset.h: Use C comment style, not C++ comment style.
35097 2006-11-06 Bruno Haible <bruno@clisp.org>
35099 * m4/inline.m4: New file.
35100 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
35101 * modules/list (Files): Add m4/inline.m4.
35102 * modules/oset (Files): Likewise.
35104 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
35106 * lib/idcache.c: Include <stddef.h>, for offsetof.
35107 (struct userid.name): Change from char * to a flexible array member.
35109 * modules/idcache (Depends-on): Add flexmember.
35111 * MODULES.html.sh (Core language properties): New module flexmember.
35112 * modules/flexmember, m4/flexmember.m4: New files.
35114 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
35115 inline functions that are identical with the old xnmalloc_inline,
35116 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
35117 that we can avoid some unnecessary integer multiplications and
35118 divisions in the common case where the element size is known at
35120 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
35122 (xnboundedmalloc): Remove.
35123 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
35124 arguments, for consistency with rest of this header.
35125 (xcharalloc): Rewrite using XNMALLOC.
35126 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
35127 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
35128 versions have been moved to lib/xalloc.h and renamed to be the
35129 non-*_inline versions.
35130 (xmalloc, xrealloc): Implement without reference to the xnmalloc
35131 and xnrealloc functions, since those functions are now inline and
35133 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
35134 renaming described above.
35135 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
35136 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
35137 captures the dependency in AC_C_INLINE.
35139 New module canonicalize-lgpl, proposed by Charles Wilson in
35140 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
35141 with a few small changes afterwards.
35142 * MODULES.html.sh (File system functions): New module
35144 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
35145 and canonicalize_file_name.
35146 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
35147 * modules/canonicalize-lgpl: New files.
35149 2006-11-05 Bruno Haible <bruno@clisp.org>
35151 * gnulib-tool (func_import, func_create_testdir): Create directories
35152 also for files in subdirectories of lib/.
35154 2006-11-05 Bruno Haible <bruno@clisp.org>
35156 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
35159 2006-11-03 Bruno Haible <bruno@clisp.org>
35161 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
35162 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
35163 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
35164 (xnboundedmalloc): New inline function.
35165 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
35166 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
35168 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
35170 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
35171 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
35172 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
35174 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
35175 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
35177 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
35178 gl_tree_add_after): Use XMALLOC instead of xmalloc.
35179 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
35181 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
35182 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
35183 gl_tree_add_after): Use XMALLOC instead of xmalloc.
35184 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
35185 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
35186 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
35187 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
35189 2006-11-03 Bruno Haible <bruno@clisp.org>
35191 * lib/c-ctype.h [C++]: Define functions without name mangling.
35192 * lib/fwriteerror.h [C++]: Likewise.
35193 * lib/gcd.h [C++]: Likewise.
35194 * lib/linebreak.h [C++]: Likewise.
35196 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
35198 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
35199 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
35200 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
35201 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
35202 Check for functions and headers just once.
35203 Check for declaration of canonicalize_file_name.
35204 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
35206 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
35208 * gnulib-tool (func_import): Fix typo in actioncmd.
35210 2006-11-02 Bruno Haible <bruno@clisp.org>
35212 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
35213 newline sequence in the Makefile.am snippet as a space, like "make"
35215 Reported by Roger Persson <perrog@gmail.com>.
35217 2006-11-01 Bruno Haible <bruno@clisp.org>
35219 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
35220 already declared in <string.h>.
35221 * lib/strcase.h (strncasecmp): Don't declare it if yes.
35223 2006-11-01 Bruno Haible <bruno@clisp.org>
35225 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
35226 * lib/strcase.h: Include <string.h>.
35227 (strcasecmp): Define to rpl_strcasecmp here.
35229 2006-11-01 Bruno Haible <bruno@clisp.org>
35231 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
35233 2006-11-01 Eric Blake <ebb9@byu.net>
35235 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
35237 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
35239 2006-10-29 Bruno Haible <bruno@clisp.org>
35241 Make it compile in C++ mode.
35242 * lib/full-write.c (full_rw): Add a cast.
35244 2006-11-01 Bruno Haible <bruno@clisp.org>
35246 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
35247 be POSIX compliant.
35248 Reported by Roger Persson <perrog@gmail.com>.
35250 2006-11-01 Eric Blake <ebb9@byu.net>
35252 * lib/getopt_.h: Fix comments.
35254 2006-10-31 Eric Blake <ebb9@byu.net>
35256 * modules/tmpdir (Depends-on): Add sys_stat.
35257 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
35258 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
35259 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
35260 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
35263 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
35265 Avoid some C++ diagnostics reported by Bruno Haible.
35266 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
35268 (quotearg_alloc): Use xcharalloc rather than xmalloc.
35269 (struct slotvec): Move to top level.
35270 (quotearg_n_options): Rewrite to avoid xmalloc.
35271 * lib/xalloc.h (xcharalloc): New function.
35272 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
35273 [defined __cplusplus]: Add function template that provides result
35274 type propagation. This part of the change is from Bruno Haible.
35276 2006-10-29 Bruno Haible <bruno@clisp.org>
35278 Make it compile in C++ mode.
35279 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
35280 * lib/strnlen1.c (strnlen1): Cast memchr result.
35281 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
35282 * lib/clean-temp.c (string_equals, string_hash): Add casts.
35283 (create_temp_dir): Rename local variable 'template'.
35284 (compile_csharp_using_sscli): Add cast.
35285 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
35286 * lib/findprog.c (find_in_path): Likewise.
35287 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
35288 * lib/wait-process.c (register_slave_subprocess): Likewise.
35290 2006-10-22 Bruno Haible <bruno@clisp.org>
35292 * modules/tsearch: New file.
35293 * lib/tsearch.h: New file.
35294 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
35295 * m4/tsearch.m4: New file.
35296 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
35298 2006-10-29 Eric Blake <ebb9@byu.net>
35300 * lib/arcfour.c: Assume config.h.
35301 * lib/arctwo.c: Likewise.
35302 * lib/base64.c: Likewise.
35303 * lib/check-version.c: Likewise.
35304 * lib/crc.c: Likewise.
35305 * lib/des.c: Likewise.
35306 * lib/gc-gnulib.c: Likewise.
35307 * lib/gc-libgcrypt.c: Likewise.
35308 * lib/gc-pbkdf2-sha1.c: Likewise.
35309 * lib/getaddrinfo.c: Likewise.
35310 * lib/getdelim.c: Likewise.
35311 * lib/getline.c: Likewise.
35312 * lib/hmac-md5.c: Likewise.
35313 * lib/hmac-sha1.c: Likewise.
35314 * lib/iconvme.c: Likewise.
35315 * lib/md2.c: Likewise.
35316 * lib/md4.c: Likewise.
35317 * lib/memxor.c: Likewise.
35318 * lib/read-file.c: Likewise.
35319 * lib/readline.c: Likewise.
35320 * lib/rijndael-alg-fst.c: Likewise.
35321 * lib/rijndael-api-fst.c: Likewise.
35322 * lib/xgetdomainname.c: Likewise.
35324 2006-10-28 Eric Blake <ebb9@byu.net>
35326 * lib/xstrndup.c: Assume config.h.
35328 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
35330 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
35331 stat-macros.h is now for our own macros, whereas stat_h is for
35332 macros in the <sys/stat.h> name space.
35333 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
35334 (STAT_MACROS_H): Remove.
35335 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
35336 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
35337 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
35338 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
35339 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
35340 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
35341 Move these macros to ...
35342 * lib/stat_.h: here. Don't include stat-macros.h.
35343 * lib/canonicalize.c: Don't include stat-macros.h.
35344 * lib/chown.c: Likewise.
35345 * lib/euidaccess.c: Likewise.
35346 * lib/file-type.c: Likewise.
35347 * lib/filemode.c: Likewise.
35348 * lib/glob.c: Likewise.
35349 * lib/isapipe.c: Likewise.
35350 * lib/lchown.c: Likewise.
35351 * lib/lstat.c: Likewise.
35352 * lib/mkdir-p.c: Likewise.
35353 * lib/rmdir.c: Likewise.
35354 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
35355 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
35356 unless mkdir isn't declared, to speed up 'configure'.
35357 Always create sys/stat.h, since it's unlikely any real sys/stat.h
35358 would define all the S_* symbols.
35359 * modules/canonicalize (Depends-on):
35360 Depend on sys_stat, not stat-macros.
35361 * modules/chown: Likewise.
35362 * modules/euidaccess: Likewise.
35363 * modules/filemode: Likewise.
35364 * modules/file-type: Likewise.
35365 * modules/glob: Likewise.
35366 * modules/isapipe: Likewise.
35367 * modules/lchown: Likewise.
35368 * modules/lstat: Likewise.
35369 * modules/mkancesdirs: Likewise.
35370 * modules/rmdir: Likewise.
35371 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
35372 * modules/modechange: Likewise.
35373 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
35374 (configure.ac): Remove gl_STAT_MACROS.
35375 * modules/sys_stat (Depends-on): Remove stat-macros.
35377 2006-10-27 Bruno Haible <bruno@clisp.org>
35379 * m4/signed.m4: Remove file.
35380 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
35382 * modules/vasnprintf (Files): Remove m4/signed.m4.
35384 2006-10-27 Bruno Haible <bruno@clisp.org>
35386 Update to GNU gettext 0.16.
35387 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
35388 m4/inttypes-h.m4, m4/signed.m4.
35389 * m4/gettext.m4: Update to GNU gettext 0.16.
35390 * m4/intl.m4: New file, from GNU gettext.
35391 * m4/intldir.m4: New file, from GNU gettext.
35392 * config/srclist.txt: Update
35394 2006-10-27 Eric Blake <ebb9@byu.net>
35396 * MODULES.html.sh: Document tempname.
35397 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
35399 (Files): Move lib/tempname.c...
35400 * modules/tempname: ...to this new module.
35401 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
35402 (gl_PREREQ_TEMPNAME): Move...
35403 * m4/tempname.m4: ...to this new file.
35404 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
35405 * modules/sys_stat (Depends-on): Add stat-macros.
35406 * lib/stat_.h (includes): Pick up stat macros.
35407 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
35408 if stat macros are broken.
35409 * lib/tempname.c (includes): No need to include "stat-macros.h".
35410 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
35411 (direxists, __path_search) [!_LIBC]: Don't compile these in
35412 gnulib; the tmpdir module covers that.
35413 * lib/tempname.h: New file.
35415 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
35417 * COPYING: Explain how gnulib-tool converts licence headers.
35418 Almost all wording by Eric Blake.
35420 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
35422 * lib/mbchar.h (is_basic_table): Make read-only.
35423 * lib/mbchar.c (is_basic_table): Likewise.
35424 Reported by John Darrington.
35426 2006-10-25 Bruno Haible <bruno@clisp.org>
35428 * lib/progname.h (set_program_name): Undefine before defining.
35430 2006-10-25 Bruno Haible <bruno@clisp.org>
35432 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
35433 false for non-gcc C++ compilers.
35434 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35436 2006-10-24 Bruno Haible <bruno@clisp.org>
35438 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
35439 iconv implementations like Irix iconv.
35441 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
35443 * modules/vararrays: New file.
35444 * m4/vararrays.m4: New file, taken from diffutils.
35445 * MODULES.html.sh: New module vararrays.
35447 2006-10-24 Karl Berry <karl@gnu.org>
35449 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
35450 Don't call GNU Unix.
35452 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35454 * users.txt: Add Libtool.
35458 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
35460 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
35461 to gnulib's policy of including config.h unconditionally.
35463 2006-10-24 Bruno Haible <bruno@clisp.org>
35465 * modules/wcwidth (Files): Add m4/wint_t.m4.
35466 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
35467 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
35469 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
35471 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
35472 to pacify GCC with some -W flags enabled. Problem reported by
35475 2006-10-24 Jim Meyering <jim@meyering.net>
35477 * MODULES.html.sh: Remove uinttostr. It's not a module.
35478 Reported by Karl Berry.
35480 2006-10-23 Bruno Haible <bruno@clisp.org>
35482 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
35484 2006-10-24 Bruno Haible <bruno@clisp.org>
35486 * lib/gl_list.h: Use C comment style, not C++ comment style.
35488 2006-10-23 Eric Blake <ebb9@byu.net>
35490 * lib/getaddrinfo.c (includes): Add missing include.
35492 2006-10-23 Bruno Haible <bruno@clisp.org>
35493 Paul Eggert <eggert@cs.ucla.edu>
35495 Ability to rename obstack_free.
35496 * lib/obstack.h (__obstack_free): New macro. Declare instead of
35498 (obstack_free): Invoke the __obstack_free macro.
35499 * lib/obstack.c (obstack_free): Use __obstack_free macro.
35501 2006-10-23 Bruno Haible <bruno@clisp.org>
35502 Paul Eggert <eggert@cs.ucla.edu>
35504 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
35505 __argc, __argv from the declaration. (They are defined as macros on
35508 2006-10-22 Bruno Haible <bruno@clisp.org>
35510 * doc/gnulib-intro.texi: New file.
35511 * doc/gnulib.texi: Include it.
35513 2006-10-21 Bruno Haible <bruno@clisp.org>
35515 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
35516 "Introduction", "Miscellanous Notes", "Particular Modules".
35518 2006-10-21 Bruno Haible <bruno@clisp.org>
35520 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35521 Change mostlyclean-local rule to avoid sh syntax error from bash
35522 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
35524 2006-10-23 Jim Meyering <jim@meyering.net>
35526 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
35527 in place of snprintf.
35529 * modules/inttostr (Files): Add lib/uinttostr.c.
35530 * lib/uinttostr.c (inttostr): New file/function.
35531 * lib/inttostr.h (uinttostr): Declare.
35532 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
35533 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
35535 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
35537 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
35539 * lib/canonicalize.c (ELOOP): Define if not already defined.
35540 Problem reported by Bruno Haible in
35541 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
35543 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
35545 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
35546 Problem reported by Perry Smith and Ville Laurikari.
35548 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
35551 2006-10-19 Bruno Haible <bruno@clisp.org>
35553 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
35556 2006-10-19 Bruno Haible <bruno@clisp.org>
35558 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
35561 2006-10-19 Bruno Haible <bruno@clisp.org>
35563 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
35565 2006-10-19 Bruno Haible <bruno@clisp.org>
35567 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
35570 2006-10-19 Bruno Haible <bruno@clisp.org>
35572 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
35575 2006-10-19 Bruno Haible <bruno@clisp.org>
35577 * gnulib-tool (func_create_testdir): Don't include ftruncate and
35578 mountlist by default.
35580 2006-10-16 Bruno Haible <bruno@clisp.org>
35582 * lib/c-strstr.c: Include c-strstr.h.
35584 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
35586 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
35589 2006-10-18 Bruno Haible <bruno@clisp.org>
35591 * lib/lock.h [C++]: Wrap definitions in extern "C".
35593 2006-10-18 Bruno Haible <bruno@clisp.org>
35595 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
35598 2006-10-18 Bruno Haible <bruno@clisp.org>
35600 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
35602 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
35604 * lib/xstrtol.h: Include gettext.h.
35605 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
35606 Problem reported by Eric Blake.
35607 * modules/xstrtol (Depends-on): Add gettext-h.
35609 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
35611 * lib/strftime.c (advance): New macro.
35612 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
35613 incomplete type, so you can't add 0 to it. Problem and patch
35614 reported by Eelco Dolstra for dietlibc.
35616 2006-10-18 Jim Meyering <jim@meyering.net>
35618 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
35619 type for a local, and rename it: s/up/user_proc/.
35621 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
35623 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
35624 READ_UTMP_USER_PROCESS.
35625 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
35627 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
35629 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
35630 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
35632 2006-10-17 Eric Blake <ebb9@byu.net>
35634 * lib/sigprocmask.c (sigprocmask): Fix typo.
35636 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
35638 * modules/clean-temp (Makefile.am): Don't add to make output...
35639 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
35642 2006-10-17 Bruno Haible <bruno@clisp.org>
35644 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
35645 differently if DEFAULT_TEXT_DOMAIN is set.
35647 2006-10-16 Bruno Haible <bruno@clisp.org>
35649 * lib/clean-temp.c: Include fwriteerror.h.
35651 2006-10-16 Bruno Haible <bruno@clisp.org>
35653 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
35655 2006-10-16 Bruno Haible <bruno@clisp.org>
35657 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
35658 * lib/sigprocmask.h: Include <sys/types.h>.
35659 (sigset_t): Use the system's definition if present.
35661 2006-10-17 Eric Blake <ebb9@byu.net>
35663 * lib/xvasprintf.c (includes): Assume config.h.
35664 * lib/xasprintf.c (includes): Likewise.
35666 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
35668 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
35669 at least as wide as intmax_t.
35671 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
35673 (Imported from Automake.)
35674 * build-aux/gnupload: Update to version 1.1 of directive file.
35676 2006-10-16 Eric Blake <ebb9@byu.net>
35678 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
35679 match Automake 1.10a.
35681 2006-10-14 Bruno Haible <bruno@clisp.org>
35683 * modules/sigprocmask: New file.
35684 * lib/sigprocmask.h: New file.
35685 * lib/sigprocmask.c: New file.
35686 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
35687 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
35688 request sigprocmask.o.
35689 (gl_PREREQ_SIGPROCMASK): New macro.
35690 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
35691 (Depends-on): Add sigprocmask.
35692 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
35693 gt_SIGNALBLOCKING. Test for 'raise' only once.
35694 * lib/fatal-signal.c: Include sigprocmask.h.
35695 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
35696 unblock_fatal_signals): Define always.
35697 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35700 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
35702 Sync from Automake.
35703 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
35704 which incorrectly sets the mode of an existing destination
35705 directory. In some cases the unpatched install-sh could do the
35706 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
35707 system. We hope this is rare in practice, but it's clearly worth
35708 fixing. Problem reported by Alex Unleashed in
35709 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
35710 Also, don't bother to check for -m bugs unless we're using -m;
35711 suggested by Stepan Kasal.
35713 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35715 Sync from Automake.
35716 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
35717 `-c' flag, so they appear at the same position as in %FASTDEP%
35718 mode in depend2.am. Fixes build failure for FreeBSD's c89,
35719 which ignores unknown options only after the first non-option.
35720 Bug report against M4 by Nelson H. F. Beebe.
35722 2006-10-13 Jim Meyering <jim@meyering.net>
35724 Fix a bug in yesterday's change.
35725 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
35726 p->fts_statp->st_dev would be used uninitialized.
35727 Ensures that we always call fts_stat on the very first entry.
35728 Miklos Szeredi reported that find -xdev stopped working.
35730 2006-10-12 Bruno Haible <bruno@clisp.org>
35732 * gnulib-tool (func_get_automake_snippet): Append an automatically
35733 computed EXTRA_DIST augmentation.
35734 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
35735 * modules/alloca-opt (Makefile.am): Likewise.
35736 * modules/allocsa (Makefile.am): Likewise.
35737 * modules/arcfour (Makefile.am): Likewise.
35738 * modules/arctwo (Makefile.am): Likewise.
35739 * modules/argmatch (Makefile.am): Likewise.
35740 * modules/argz (Makefile.am): Likewise.
35741 * modules/atexit (Makefile.am): Likewise.
35742 * modules/backupfile (Makefile.am): Likewise.
35743 * modules/byteswap (Makefile.am): Likewise.
35744 * modules/c-strtod (Makefile.am): Likewise.
35745 * modules/c-strtold (Makefile.am): Likewise.
35746 * modules/calloc (Makefile.am): Likewise.
35747 * modules/canon-host (Makefile.am): Likewise.
35748 * modules/canonicalize (Makefile.am): Likewise.
35749 * modules/chdir-long (Makefile.am): Likewise.
35750 * modules/chdir-safer (Makefile.am): Likewise.
35751 * modules/check-version (Makefile.am): Likewise.
35752 * modules/chown (Makefile.am): Likewise.
35753 * modules/cloexec (Makefile.am): Likewise.
35754 * modules/close-stream (Makefile.am): Likewise.
35755 * modules/closeout (Makefile.am): Likewise.
35756 * modules/crc (Makefile.am): Likewise.
35757 * modules/csharpexec (Makefile.am): Likewise.
35758 * modules/cycle-check (Makefile.am): Likewise.
35759 * modules/des (Makefile.am): Likewise.
35760 * modules/dev-ino (Makefile.am): Likewise.
35761 * modules/dirfd (Makefile.am): Likewise.
35762 * modules/dirname (Makefile.am): Likewise.
35763 * modules/dup2 (Makefile.am): Likewise.
35764 * modules/eealloc (Makefile.am): Likewise.
35765 * modules/error (Makefile.am): Likewise.
35766 * modules/euidaccess (Makefile.am): Likewise.
35767 * modules/exclude (Makefile.am): Likewise.
35768 * modules/exitfail (Makefile.am): Likewise.
35769 * modules/fcntl-safer (Makefile.am): Likewise.
35770 * modules/fcntl (Makefile.am): Likewise.
35771 * modules/file-type (Makefile.am): Likewise.
35772 * modules/fileblocks (Makefile.am): Likewise.
35773 * modules/filemode (Makefile.am): Likewise.
35774 * modules/filenamecat (Makefile.am): Likewise.
35775 * modules/fnmatch (Makefile.am): Likewise.
35776 * modules/fopen-safer (Makefile.am): Likewise.
35777 * modules/fpending (Makefile.am): Likewise.
35778 * modules/fprintftime (Makefile.am): Likewise.
35779 * modules/free (Makefile.am): Likewise.
35780 * modules/fsusage (Makefile.am): Likewise.
35781 * modules/ftruncate (Makefile.am): Likewise.
35782 * modules/fts (Makefile.am): Likewise.
35783 * modules/gc-arcfour (Makefile.am): Likewise.
35784 * modules/gc-des (Makefile.am): Likewise.
35785 * modules/gc-hmac-md5 (Makefile.am): Likewise.
35786 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
35787 * modules/gc-md4 (Makefile.am): Likewise.
35788 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
35789 * modules/gc-sha1 (Makefile.am): Likewise.
35790 * modules/gc (Makefile.am): Likewise.
35791 * modules/getaddrinfo (Makefile.am): Likewise.
35792 * modules/getcwd (Makefile.am): Likewise.
35793 * modules/getdelim (Makefile.am): Likewise.
35794 * modules/getdomainname (Makefile.am): Likewise.
35795 * modules/getgroups (Makefile.am): Likewise.
35796 * modules/gethostname (Makefile.am): Likewise.
35797 * modules/gethrxtime (Makefile.am): Likewise.
35798 * modules/getline (Makefile.am): Likewise.
35799 * modules/getloadavg (Makefile.am): Likewise.
35800 * modules/getlogin_r (Makefile.am): Likewise.
35801 * modules/getndelim2 (Makefile.am): Likewise.
35802 * modules/getopt (Makefile.am): Likewise.
35803 * modules/getpagesize (Makefile.am): Likewise.
35804 * modules/getpass-gnu (Makefile.am): Likewise.
35805 * modules/getpass (Makefile.am): Likewise.
35806 * modules/getsubopt (Makefile.am): Likewise.
35807 * modules/gettime (Makefile.am): Likewise.
35808 * modules/gettimeofday (Makefile.am): Likewise.
35809 * modules/getugroups (Makefile.am): Likewise.
35810 * modules/getusershell (Makefile.am): Likewise.
35811 * modules/glob (Makefile.am): Likewise.
35812 * modules/group-member (Makefile.am): Likewise.
35813 * modules/hard-locale (Makefile.am): Likewise.
35814 * modules/hash (Makefile.am): Likewise.
35815 * modules/hmac-md5 (Makefile.am): Likewise.
35816 * modules/hmac-sha1 (Makefile.am): Likewise.
35817 * modules/human (Makefile.am): Likewise.
35818 * modules/idcache (Makefile.am): Likewise.
35819 * modules/imaxabs (Makefile.am): Likewise.
35820 * modules/imaxdiv (Makefile.am): Likewise.
35821 * modules/inet_ntop (Makefile.am): Likewise.
35822 * modules/inet_pton (Makefile.am): Likewise.
35823 * modules/intprops (Makefile.am): Likewise.
35824 * modules/inttostr (Makefile.am): Likewise.
35825 * modules/inttypes (Makefile.am): Likewise.
35826 * modules/isapipe (Makefile.am): Likewise.
35827 * modules/javaversion (Makefile.am): Likewise.
35828 * modules/lchmod (Makefile.am): Likewise.
35829 * modules/lchown (Makefile.am): Likewise.
35830 * modules/localcharset (Makefile.am): Likewise.
35831 * modules/long-options (Makefile.am): Likewise.
35832 * modules/lstat (Makefile.am): Likewise.
35833 * modules/malloc (Makefile.am): Likewise.
35834 * modules/mathl (Makefile.am): Likewise.
35835 * modules/mbchar (Makefile.am): Likewise.
35836 * modules/md2 (Makefile.am): Likewise.
35837 * modules/md4 (Makefile.am): Likewise.
35838 * modules/md5 (Makefile.am): Likewise.
35839 * modules/memcasecmp (Makefile.am): Likewise.
35840 * modules/memchr (Makefile.am): Likewise.
35841 * modules/memcmp (Makefile.am): Likewise.
35842 * modules/memcoll (Makefile.am): Likewise.
35843 * modules/memcpy (Makefile.am): Likewise.
35844 * modules/memmem (Makefile.am): Likewise.
35845 * modules/memmove (Makefile.am): Likewise.
35846 * modules/mempcpy (Makefile.am): Likewise.
35847 * modules/memrchr (Makefile.am): Likewise.
35848 * modules/memset (Makefile.am): Likewise.
35849 * modules/memxor (Makefile.am): Likewise.
35850 * modules/mkancesdirs (Makefile.am): Likewise.
35851 * modules/mkdir-p (Makefile.am): Likewise.
35852 * modules/mkdir (Makefile.am): Likewise.
35853 * modules/mkdtemp (Makefile.am): Likewise.
35854 * modules/mkstemp (Makefile.am): Likewise.
35855 * modules/mktime (Makefile.am): Likewise.
35856 * modules/modechange (Makefile.am): Likewise.
35857 * modules/mountlist (Makefile.am): Likewise.
35858 * modules/nanosleep (Makefile.am): Likewise.
35859 * modules/obstack (Makefile.am): Likewise.
35860 * modules/openat (Makefile.am): Likewise.
35861 * modules/pagealign_alloc (Makefile.am): Likewise.
35862 * modules/pathmax (Makefile.am): Likewise.
35863 * modules/physmem (Makefile.am): Likewise.
35864 * modules/poll (Makefile.am): Likewise.
35865 * modules/posixtm (Makefile.am): Likewise.
35866 * modules/posixver (Makefile.am): Likewise.
35867 * modules/putenv (Makefile.am): Likewise.
35868 * modules/quote (Makefile.am): Likewise.
35869 * modules/quotearg (Makefile.am): Likewise.
35870 * modules/raise (Makefile.am): Likewise.
35871 * modules/read-file (Makefile.am): Likewise.
35872 * modules/readline (Makefile.am): Likewise.
35873 * modules/readlink (Makefile.am): Likewise.
35874 * modules/readtokens (Makefile.am): Likewise.
35875 * modules/readutmp (Makefile.am): Likewise.
35876 * modules/realloc (Makefile.am): Likewise.
35877 * modules/regex (Makefile.am): Likewise.
35878 * modules/rename-dest-slash (Makefile.am): Likewise.
35879 * modules/rename (Makefile.am): Likewise.
35880 * modules/rijndael (Makefile.am): Likewise.
35881 * modules/rmdir (Makefile.am): Likewise.
35882 * modules/rpmatch (Makefile.am): Likewise.
35883 * modules/safe-read (Makefile.am): Likewise.
35884 * modules/safe-write (Makefile.am): Likewise.
35885 * modules/same-inode (Makefile.am): Likewise.
35886 * modules/same (Makefile.am): Likewise.
35887 * modules/save-cwd (Makefile.am): Likewise.
35888 * modules/savedir (Makefile.am): Likewise.
35889 * modules/setenv (Makefile.am): Likewise.
35890 * modules/settime (Makefile.am): Likewise.
35891 * modules/sha1 (Makefile.am): Likewise.
35892 * modules/sig2str (Makefile.am): Likewise.
35893 * modules/snprintf (Makefile.am): Likewise.
35894 * modules/stat-macros (Makefile.am): Likewise.
35895 * modules/stat-time (Makefile.am): Likewise.
35896 * modules/stdbool (Makefile.am): Likewise.
35897 * modules/stdint (Makefile.am): Likewise.
35898 * modules/stdlib-safer (Makefile.am): Likewise.
35899 * modules/stpcpy (Makefile.am): Likewise.
35900 * modules/stpncpy (Makefile.am): Likewise.
35901 * modules/strcase (Makefile.am): Likewise.
35902 * modules/strcasestr (Makefile.am): Likewise.
35903 * modules/strchrnul (Makefile.am): Likewise.
35904 * modules/strcspn (Makefile.am): Likewise.
35905 * modules/strdup (Makefile.am): Likewise.
35906 * modules/strerror (Makefile.am): Likewise.
35907 * modules/strftime (Makefile.am): Likewise.
35908 * modules/strndup (Makefile.am): Likewise.
35909 * modules/strnlen (Makefile.am): Likewise.
35910 * modules/strpbrk (Makefile.am): Likewise.
35911 * modules/strsep (Makefile.am): Likewise.
35912 * modules/strstr (Makefile.am): Likewise.
35913 * modules/strtod (Makefile.am): Likewise.
35914 * modules/strtoimax (Makefile.am): Likewise.
35915 * modules/strtok_r (Makefile.am): Likewise.
35916 * modules/strtol (Makefile.am): Likewise.
35917 * modules/strtoll (Makefile.am): Likewise.
35918 * modules/strtoul (Makefile.am): Likewise.
35919 * modules/strtoull (Makefile.am): Likewise.
35920 * modules/strtoumax (Makefile.am): Likewise.
35921 * modules/strverscmp (Makefile.am): Likewise.
35922 * modules/sys_socket (Makefile.am): Likewise.
35923 * modules/sys_stat (Makefile.am): Likewise.
35924 * modules/sysexits (Makefile.am): Likewise.
35925 * modules/time_r (Makefile.am): Likewise.
35926 * modules/timegm (Makefile.am): Likewise.
35927 * modules/timespec (Makefile.am): Likewise.
35928 * modules/tmpfile-safer (Makefile.am): Likewise.
35929 * modules/trim (Makefile.am): Likewise.
35930 * modules/unistd-safer (Makefile.am): Likewise.
35931 * modules/unlinkdir (Makefile.am): Likewise.
35932 * modules/unlocked-io (Makefile.am): Likewise.
35933 * modules/userspec (Makefile.am): Likewise.
35934 * modules/utime (Makefile.am): Likewise.
35935 * modules/utimecmp (Makefile.am): Likewise.
35936 * modules/utimens (Makefile.am): Likewise.
35937 * modules/vasnprintf (Makefile.am): Likewise.
35938 * modules/vasprintf (Makefile.am): Likewise.
35939 * modules/vsnprintf (Makefile.am): Likewise.
35940 * modules/xalloc (Makefile.am): Likewise.
35941 * modules/xgetcwd (Makefile.am): Likewise.
35942 * modules/xnanosleep (Makefile.am): Likewise.
35943 * modules/xreadlink (Makefile.am): Likewise.
35944 * modules/xstrtod (Makefile.am): Likewise.
35945 * modules/xstrtol (Makefile.am): Likewise.
35946 * modules/xstrtold (Makefile.am): Likewise.
35947 * modules/yesno (Makefile.am): Likewise.
35948 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
35950 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
35952 * modules/error (Makefile.am): Distribute files through
35953 EXTRA_DIST, not lib_SOURCES.
35955 2006-10-12 Eric Blake <ebb9@byu.net>
35957 * modules/error (Makefile.am): Distribute files in /lib.
35958 * modules/obstack (Makefile.am): Likewise.
35960 2006-10-12 Bruno Haible <bruno@clisp.org>
35962 * modules/acl (Makefile.am): Distribute all files in lib/ through
35964 * modules/arcfour (Makefile.am): Likewise.
35965 * modules/arctwo (Makefile.am): Likewise.
35966 * modules/argmatch (Makefile.am): Likewise.
35967 * modules/argz (Makefile.am): Likewise.
35968 * modules/atexit (Makefile.am): Likewise.
35969 * modules/backupfile (Makefile.am): Likewise.
35970 * modules/c-strtod (Makefile.am): Likewise.
35971 * modules/c-strtold (Makefile.am): Likewise.
35972 * modules/calloc (Makefile.am): Likewise.
35973 * modules/canon-host (Makefile.am): Likewise.
35974 * modules/canonicalize (Makefile.am): Likewise.
35975 * modules/chdir-long (Makefile.am): Likewise.
35976 * modules/chdir-safer (Makefile.am): Likewise.
35977 * modules/check-version (Makefile.am): Likewise.
35978 * modules/chown (Makefile.am): Likewise.
35979 * modules/cloexec (Makefile.am): Likewise.
35980 * modules/close-stream (Makefile.am): Likewise.
35981 * modules/closeout (Makefile.am): Likewise.
35982 * modules/crc (Makefile.am): Likewise.
35983 * modules/cycle-check (Makefile.am): Likewise.
35984 * modules/des (Makefile.am): Likewise.
35985 * modules/dirfd (Makefile.am): Likewise.
35986 * modules/dirname (Makefile.am): Likewise.
35987 * modules/dup2 (Makefile.am): Likewise.
35988 * modules/euidaccess (Makefile.am): Likewise.
35989 * modules/exclude (Makefile.am): Likewise.
35990 * modules/exitfail (Makefile.am): Likewise.
35991 * modules/fcntl-safer (Makefile.am): Likewise.
35992 * modules/file-type (Makefile.am): Likewise.
35993 * modules/fileblocks (Makefile.am): Likewise.
35994 * modules/filemode (Makefile.am): Likewise.
35995 * modules/filenamecat (Makefile.am): Likewise.
35996 * modules/fnmatch (Makefile.am): Likewise.
35997 * modules/fopen-safer (Makefile.am): Likewise.
35998 * modules/fpending (Makefile.am): Likewise.
35999 * modules/fprintftime (Makefile.am): Likewise.
36000 * modules/free (Makefile.am): Likewise.
36001 * modules/fsusage (Makefile.am): Likewise.
36002 * modules/ftruncate (Makefile.am): Likewise.
36003 * modules/fts (Makefile.am): Likewise.
36004 * modules/gc (Makefile.am): Likewise.
36005 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
36006 * modules/getaddrinfo (Makefile.am): Likewise.
36007 * modules/getcwd (Makefile.am): Likewise.
36008 * modules/getdelim (Makefile.am): Likewise.
36009 * modules/getdomainname (Makefile.am): Likewise.
36010 * modules/getgroups (Makefile.am): Likewise.
36011 * modules/gethostname (Makefile.am): Likewise.
36012 * modules/gethrxtime (Makefile.am): Likewise.
36013 * modules/getline (Makefile.am): Likewise.
36014 * modules/getloadavg (Makefile.am): Likewise.
36015 * modules/getlogin_r (Makefile.am): Likewise.
36016 * modules/getopt (Makefile.am): Likewise.
36017 * modules/getpass (Makefile.am): Likewise.
36018 * modules/getpass-gnu (Makefile.am): Likewise.
36019 * modules/getsubopt (Makefile.am): Likewise.
36020 * modules/gettime (Makefile.am): Likewise.
36021 * modules/gettimeofday (Makefile.am): Likewise.
36022 * modules/getugroups (Makefile.am): Likewise.
36023 * modules/getusershell (Makefile.am): Likewise.
36024 * modules/glob (Makefile.am): Likewise.
36025 * modules/group-member (Makefile.am): Likewise.
36026 * modules/hard-locale (Makefile.am): Likewise.
36027 * modules/hash (Makefile.am): Likewise.
36028 * modules/hmac-md5 (Makefile.am): Likewise.
36029 * modules/hmac-sha1 (Makefile.am): Likewise.
36030 * modules/human (Makefile.am): Likewise.
36031 * modules/idcache (Makefile.am): Likewise.
36032 * modules/imaxabs (Makefile.am): Likewise.
36033 * modules/imaxdiv (Makefile.am): Likewise.
36034 * modules/inet_ntop (Makefile.am): Likewise.
36035 * modules/inet_pton (Makefile.am): Likewise.
36036 * modules/inttostr (Makefile.am): Likewise.
36037 * modules/isapipe (Makefile.am): Likewise.
36038 * modules/lchown (Makefile.am): Likewise.
36039 * modules/long-options (Makefile.am): Likewise.
36040 * modules/lstat (Makefile.am): Likewise.
36041 * modules/malloc (Makefile.am): Likewise.
36042 * modules/mathl (Makefile.am): Likewise.
36043 * modules/mbchar (Makefile.am): Likewise.
36044 * modules/md2 (Makefile.am): Likewise.
36045 * modules/md4 (Makefile.am): Likewise.
36046 * modules/md5 (Makefile.am): Likewise.
36047 * modules/memcasecmp (Makefile.am): Likewise.
36048 * modules/memchr (Makefile.am): Likewise.
36049 * modules/memcmp (Makefile.am): Likewise.
36050 * modules/memcoll (Makefile.am): Likewise.
36051 * modules/memcpy (Makefile.am): Likewise.
36052 * modules/memmem (Makefile.am): Likewise.
36053 * modules/memmove (Makefile.am): Likewise.
36054 * modules/mempcpy (Makefile.am): Likewise.
36055 * modules/memrchr (Makefile.am): Likewise.
36056 * modules/memset (Makefile.am): Likewise.
36057 * modules/memxor (Makefile.am): Likewise.
36058 * modules/mkancesdirs (Makefile.am): Likewise.
36059 * modules/mkdir (Makefile.am): Likewise.
36060 * modules/mkdir-p (Makefile.am): Likewise.
36061 * modules/mkdtemp (Makefile.am): Likewise.
36062 * modules/mkstemp (Makefile.am): Likewise.
36063 * modules/mktime (Makefile.am): Likewise.
36064 * modules/modechange (Makefile.am): Likewise.
36065 * modules/mountlist (Makefile.am): Likewise.
36066 * modules/nanosleep (Makefile.am): Likewise.
36067 * modules/openat (Makefile.am): Likewise.
36068 * modules/pagealign_alloc (Makefile.am): Likewise.
36069 * modules/physmem (Makefile.am): Likewise.
36070 * modules/poll (Makefile.am): Likewise.
36071 * modules/posixtm (Makefile.am): Likewise.
36072 * modules/posixver (Makefile.am): Likewise.
36073 * modules/putenv (Makefile.am): Likewise.
36074 * modules/quote (Makefile.am): Likewise.
36075 * modules/quotearg (Makefile.am): Likewise.
36076 * modules/raise (Makefile.am): Likewise.
36077 * modules/read-file (Makefile.am): Likewise.
36078 * modules/readline (Makefile.am): Likewise.
36079 * modules/readlink (Makefile.am): Likewise.
36080 * modules/readtokens (Makefile.am): Likewise.
36081 * modules/readutmp (Makefile.am): Likewise.
36082 * modules/realloc (Makefile.am): Likewise.
36083 * modules/regex (Makefile.am): Likewise.
36084 * modules/rename (Makefile.am): Likewise.
36085 * modules/rename-dest-slash (Makefile.am): Likewise.
36086 * modules/rijndael (Makefile.am): Likewise.
36087 * modules/rmdir (Makefile.am): Likewise.
36088 * modules/rpmatch (Makefile.am): Likewise.
36089 * modules/safe-read (Makefile.am): Likewise.
36090 * modules/safe-write (Makefile.am): Likewise.
36091 * modules/same (Makefile.am): Likewise.
36092 * modules/save-cwd (Makefile.am): Likewise.
36093 * modules/savedir (Makefile.am): Likewise.
36094 * modules/setenv (Makefile.am): Likewise.
36095 * modules/settime (Makefile.am): Likewise.
36096 * modules/sha1 (Makefile.am): Likewise.
36097 * modules/sig2str (Makefile.am): Likewise.
36098 * modules/snprintf (Makefile.am): Likewise.
36099 * modules/stdlib-safer (Makefile.am): Likewise.
36100 * modules/stpcpy (Makefile.am): Likewise.
36101 * modules/stpncpy (Makefile.am): Likewise.
36102 * modules/strcase (Makefile.am): Likewise.
36103 * modules/strcasestr (Makefile.am): Likewise.
36104 * modules/strchrnul (Makefile.am): Likewise.
36105 * modules/strcspn (Makefile.am): Likewise.
36106 * modules/strdup (Makefile.am): Likewise.
36107 * modules/strerror (Makefile.am): Likewise.
36108 * modules/strftime (Makefile.am): Likewise.
36109 * modules/strndup (Makefile.am): Likewise.
36110 * modules/strnlen (Makefile.am): Likewise.
36111 * modules/strpbrk (Makefile.am): Likewise.
36112 * modules/strsep (Makefile.am): Likewise.
36113 * modules/strstr (Makefile.am): Likewise.
36114 * modules/strtod (Makefile.am): Likewise.
36115 * modules/strtoimax (Makefile.am): Likewise.
36116 * modules/strtok_r (Makefile.am): Likewise.
36117 * modules/strtol (Makefile.am): Likewise.
36118 * modules/strtoll (Makefile.am): Likewise.
36119 * modules/strtoul (Makefile.am): Likewise.
36120 * modules/strtoull (Makefile.am): Likewise.
36121 * modules/strtoumax (Makefile.am): Likewise.
36122 * modules/strverscmp (Makefile.am): Likewise.
36123 * modules/time_r (Makefile.am): Likewise.
36124 * modules/timegm (Makefile.am): Likewise.
36125 * modules/tmpfile-safer (Makefile.am): Likewise.
36126 * modules/unistd-safer (Makefile.am): Likewise.
36127 * modules/unlinkdir (Makefile.am): Likewise.
36128 * modules/userspec (Makefile.am): Likewise.
36129 * modules/utime (Makefile.am): Likewise.
36130 * modules/utimecmp (Makefile.am): Likewise.
36131 * modules/utimens (Makefile.am): Likewise.
36132 * modules/vasnprintf (Makefile.am): Likewise.
36133 * modules/vasprintf (Makefile.am): Likewise.
36134 * modules/vsnprintf (Makefile.am): Likewise.
36135 * modules/xalloc (Makefile.am): Likewise.
36136 * modules/xgetcwd (Makefile.am): Likewise.
36137 * modules/xnanosleep (Makefile.am): Likewise.
36138 * modules/xreadlink (Makefile.am): Likewise.
36139 * modules/xstrtod (Makefile.am): Likewise.
36140 * modules/xstrtol (Makefile.am): Likewise.
36141 * modules/xstrtold (Makefile.am): Likewise.
36142 * modules/yesno (Makefile.am): Likewise.
36144 2006-10-12 Jim Meyering <jim@meyering.net>
36146 * m4/getloadavg.m4: Revert the change below.
36148 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
36149 lib/getloadavg.c using "ls -L", not "test -f". The latter would
36150 fail with a symlink, which is what coreutils' ./bootstrap now
36151 creates by default.
36153 2006-10-12 Bruno Haible <bruno@clisp.org>
36155 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
36157 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
36158 MSVC and mingw explicitly.
36160 2006-10-11 Simon Josefsson <jas@extundo.com>
36161 Bruno Haible <bruno@clisp.org>
36163 Add support for multiple gnulib-tool invocations in the scope of a
36164 single configure.ac file.
36165 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
36166 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
36167 with the same contents as the _LIBADD variable.
36168 (func_emit_initmacro_start, func_emit_initmacro_end,
36169 func_emit_initmacro_done): New functions.
36170 (func_import, func_create_testdir): Invoke them. Allow the identifiers
36171 gl_LIBOBJS and gl_LTLIBOBJS.
36173 2006-10-11 Bruno Haible <bruno@clisp.org>
36175 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
36176 (func_create_testdir): Don't create po/Makefile.am, don't invoke
36177 autoreconf. Instead, invoke autopoint explicitly but move back the
36178 *.m4 files from gnulib.
36180 2006-10-11 Bruno Haible <bruno@clisp.org>
36182 * gnulib-tool (func_usage): Make module names after --create-testdir
36184 (func_create_testdir): If no module was specified, use nearly all
36187 2006-10-12 Jim Meyering <jim@meyering.net>
36189 Big performance improvement for fts-based tools that use FTS_NOSTAT.
36190 Avoid spurious inode-mismatch problems on non-POSIX file systems.
36191 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
36192 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
36193 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
36194 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
36195 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
36196 (fts_set_stat_required): New function.
36197 (fts_open): Defer the calls to fts_stat, if possible or requested.
36198 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
36199 into fts_stat itself.
36200 (fts_read): Perform any required (deferred) fts_stat call.
36201 (fts_build): Likewise, for the directory we're about to open and read.
36202 In the readdir loop, carefully decide whether each entry will require
36203 an eventual call to fts_stat, using dirent.d_type info if available.
36204 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
36205 a command line argument into this function. Update all callers.
36206 Map a return value of FTS_DOT to FTS_D for a command line argument.
36207 * modules/fts (Depends-on): Add d-type. Alphabetize.
36208 Thanks to Miklos Szeredi for his tenacity and for the initial
36209 bug report about "find" failing on a FUSE-based file system.
36211 * lib/fts.c (fts_open): Use consistent indentation.
36213 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
36215 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
36216 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
36217 reported by Jim Meyering. All uses of cache variables renamed
36218 to match Autoconf's.
36219 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
36222 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36223 Fix misspelling in diagnostic.
36225 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
36227 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
36228 defined. Problem reported by Matthew Woehlke.
36230 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
36231 Add support for Tandem NonStop R series.
36232 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
36235 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
36236 (has_trailing_slash): Omit size arg; all callers changed.
36237 Omit 'inline', since it doesn't help performance and we'd
36238 need to configure it.
36239 Don't count //, ///, etc. as having a trailing slash.
36240 As a side effect, this removes a C99ism reported by Matthew Woehlke.
36241 (rpl_rename_dest_slash): On failure, use rename's errno rather
36242 than (in some cases) an incorrect or junk errno.
36243 Simplify code by removing need to compute length; this does
36244 cause it to make two passes instead of one over the file name,
36247 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
36248 change, since Autoconf's version may no longer be appropriate now
36249 that we are using CVS Autoconf's version. Add support for Tandem.
36251 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
36252 Bruno Haible <bruno@clisp.org>
36254 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
36255 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
36256 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
36257 gl_AC_TYPE_LONG_LONG.
36259 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
36260 instead of HAVE_LONG_LONG.
36261 * lib/printf-args.c (printf_fetchargs): Likewise.
36262 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
36263 * lib/vasnprintf.c (VASNPRINTF): Likewise.
36264 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
36265 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
36266 gl_AC_TYPE_LONG_LONG.
36268 2006-10-11 Bruno Haible <bruno@clisp.org>
36270 * m4/longlong.m4: Add comments.
36271 * m4/ulonglong.m4: Likewise.
36273 2006-10-10 Bruno Haible <bruno@clisp.org>
36275 Make it possible to #define stpcpy, strdup to aliases.
36276 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
36277 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
36279 2006-10-10 Bruno Haible <bruno@clisp.org>
36281 Make it possible to #define gcd to an alias.
36282 * lib/gcd.c: Include config.h.
36284 2006-10-10 Bruno Haible <bruno@clisp.org>
36286 Make it possible to #define c_isascii to an alias.
36287 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
36288 defined. Undefine the macros before defining them, to avoid gcc
36290 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
36291 define NO_C_CTYPE_MACROS early.
36293 2006-10-10 Bruno Haible <bruno@clisp.org>
36295 Make it possible to #define set_program_name to an alias.
36296 * lib/progname.c: Don't undefine set_program_name; instead, undefine
36297 ENABLE_RELOCATABLE early.
36299 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
36301 Port to Tandem NSK OSS, which has 64-bit signed int but at most
36302 32-bit unsigned int. Problem reported by Matthew Woehlke in:
36303 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
36304 More generally, don't assume that 64-bit signed int is available
36305 if unsigned int is, and vice versa.
36306 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
36307 unsigned symbols, not on their signed counterparts.
36308 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
36309 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
36310 (UINT64_C, UINTMAX_C):
36312 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
36313 unsigned counterparts.
36314 (Have_long_long, Unsigned): New macros.
36315 (Int): Renamed from INT.
36316 (strtoimax): Use the new macros.
36317 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
36318 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
36319 * modules/inttypes (inttypes.h): Substitute
36320 HAVE_UNSIGNED_LONG_LONG_INT.
36321 * modules/stdint (stdint.h): Likewise.
36322 (Files): Add m4/ulonglong.m4.
36324 2006-10-10 Bruno Haible <bruno@clisp.org>
36326 Fix a gcc -Wshadow warning.
36327 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
36329 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
36330 gl_linked_indexof_from_to): Likewise.
36331 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
36333 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
36335 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
36336 Reported by Eric Blake.
36338 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
36340 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
36341 for NetBSD. Problem reported by Bruno Haible.
36343 2006-10-09 Jim Meyering <jim@meyering.net>
36345 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
36346 Patch from Bruno Haible.
36348 2006-10-09 Jim Meyering <jim@meyering.net>
36350 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
36351 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
36352 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
36354 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
36356 Don't include <config.h> twice; this doesn't work in some cases,
36357 e.g., when config.h has "#define intmax_t long long int" and
36358 we include <config.h>, <inttypes.h>, <config.h> in that order.
36359 Problem reported by Matthew Woehlke in:
36360 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
36361 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
36362 * lib/fts-cycle.c: Don't include config.h.
36363 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
36364 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
36365 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
36366 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
36368 * lib/xstrtoumax.c: Likewise.
36369 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
36370 __strtol and the like, so that this module is more like its siblings.
36371 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
36372 Remove; no longer needed now that we assume gnulib inttypes.h.
36374 2006-10-08 Bruno Haible <bruno@clisp.org>
36376 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
36379 2006-10-07 Jim Meyering <jim@meyering.net>
36381 * modules/inttypes (inttypes.h): Revert what seems to have been
36382 an inadvertent part of today's change: use "|", not "/" in the
36383 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
36385 2006-10-07 Bruno Haible <bruno@clisp.org>
36387 * modules/sublist: New file.
36389 2006-10-07 Bruno Haible <bruno@clisp.org>
36391 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
36392 * modules/argz (argz.h): Likewise.
36393 * modules/arpa_inet (arpa/inet.h): Likewise.
36394 * modules/byteswap (byteswap.h): Likewise.
36395 * modules/configmake (configmake.h): Likewise.
36396 * modules/fcntl (fcntl.h): Likewise.
36397 * modules/fnmatch (fnmatch.h): Likewise.
36398 * modules/getopt (getopt.h): Likewise.
36399 * modules/glob (glob.h): Likewise.
36400 * modules/inttypes (inttypes.h): Likewise.
36401 * modules/netinet_in (netinet/in.h): Likewise.
36402 * modules/poll (poll.h): Likewise.
36403 * modules/stdbool (stdbool.h): Likewise.
36404 * modules/stdint (stdint.h): Likewise.
36405 * modules/sys_select (sys/select.h): Likewise.
36406 * modules/sys_socket (sys/socket.h): Likewise.
36407 * modules/sys_stat (sys/stat.h): Likewise.
36408 * modules/sysexits (sysexits.h): Likewise.
36409 * modules/unistd (unistd.h): Likewise.
36410 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36411 Add a "DO NOT EDIT" comment to the generated file.
36412 (func_import): Likewise for gnulib-comp.m4.
36414 2006-10-07 Bruno Haible <bruno@clisp.org>
36416 * lib/gl_sublist.h: New file.
36417 * lib/gl_sublist.c: New file.
36419 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
36421 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
36422 name (relative to the original working directory) and the file
36423 name component (relative to the temporary working directory). All
36425 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
36426 * lib/mkdir-p.c (make_dir_parents): Likewise.
36427 * lib/mkdir-p.h (make_dir_parents): Likewise.
36429 2006-10-06 Eric Blake <ebb9@byu.net>
36431 Define several macros for use by the clean-temp module.
36432 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
36433 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
36434 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
36436 * lib/clean-temp.h (close_stream_temp): New declaration.
36437 * lib/clean-temp.c (includes): Pull in headers according to what
36438 other modules are in use.
36439 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
36441 2006-10-06 Bruno Haible <bruno@clisp.org>
36443 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
36444 instead of fopen, fwriteerror.
36446 2006-10-06 Bruno Haible <bruno@clisp.org>
36448 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
36449 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
36451 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
36452 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
36453 Return an error indicator.
36454 Suggested by Eric Blake.
36456 2006-10-06 Bruno Haible <bruno@clisp.org>
36458 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
36459 Reported by Eric Blake.
36461 2006-10-06 Bruno Haible <bruno@clisp.org>
36463 * modules/closeout (Description): Mention stderr too.
36465 2006-10-06 Bruno Haible <bruno@clisp.org>
36466 and Paul Eggert <eggert@cs.ucla.edu>
36468 * lib/closeout.c (close_stdout): Also close stderr.
36469 * lib/closeout.h: Update comment.
36471 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
36473 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
36474 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
36475 * lib/dirchownmod.c: Include lchown.h.
36476 * lib/lchown.c: Don't include files that lchown.h now includes.
36477 Don't declare chown, since lchown.h now does that.
36478 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
36479 (lchown): Define to rpl_chown if lchown is declared but
36480 does not exist. Declare using a prototype if lchown is not
36481 declared. Add a copyright notice.
36482 * lib/mkstemp.h: Include <unistd.h>.
36483 * lib/openat.c: Include lchown.h.
36485 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
36486 we now test for that separately.
36487 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
36488 rather than O_NOFOLLOW, when testing whether it's possible to
36489 avoid a race condition reliably.
36490 * lib/savewd.c (savewd_chdir): Likewise.
36492 Remove macros that are no longer needed now that stdint.h is
36494 * lib/fsusage.c (UINTMAX_MAX): Remove.
36495 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
36496 * lib/utimecmp.c (SIZE_MAX): Remove.
36498 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
36500 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
36501 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
36504 2006-10-05 Bruno Haible <bruno@clisp.org>
36506 * lib/gl_list.h (gl_sortedlist_search_from_to,
36507 gl_sortedlist_indexof_from_to): New declarations.
36508 (gl_list_implementation): New fields sortedlist_search_from_to,
36509 sortedlist_indexof_from_to.
36510 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
36512 * lib/gl_list.c (gl_sortedlist_search_from_to,
36513 gl_sortedlist_indexof_from_to): New functions.
36514 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
36516 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
36517 (gl_array_sortedlist_search_from_to): New function.
36518 (gl_array_list_implementation): Update.
36519 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
36521 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
36522 (gl_carray_sortedlist_search_from_to): New function.
36523 (gl_carray_list_implementation): Update.
36524 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
36525 gl_linked_sortedlist_indexof_from_to): New functions.
36526 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36527 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36528 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
36529 gl_tree_sortedlist_indexof_from_to): New functions.
36530 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36531 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36533 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36534 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
36537 2006-10-05 Bruno Haible <bruno@clisp.org>
36539 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
36540 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
36541 (struct gl_list_implementation): Add fields search_from_to,
36542 indexof_from_to. Remove fields search, indexof.
36543 (gl_list_search): Use the search_from_to method.
36544 (gl_list_search_from, gl_list_search_from_to): New functions.
36545 (gl_list_indexof): Use the indexof_from_to method.
36546 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36547 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
36548 (gl_list_search_from, gl_list_search_from_to): New functions.
36549 (gl_list_indexof): Use the indexof_from_to method.
36550 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36551 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
36552 gl_array_indexof. Add start_index, end_index arguments.
36553 (gl_array_search_from_to): Renamed from gl_array_search. Add
36554 start_index, end_index arguments.
36555 (gl_array_remove, gl_array_list_implementation): Update.
36556 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
36557 gl_carray_indexof. Add start_index, end_index arguments.
36558 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
36559 start_index, end_index arguments.
36560 (gl_carray_remove, gl_carray_list_implementation): Update.
36561 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
36562 gl_linked_search. Add start_index, end_index arguments.
36563 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
36564 start_index, end_index arguments.
36565 (gl_linked_remove): Update.
36566 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36567 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36568 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
36570 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
36571 gl_tree_search. Add start_index, end_index arguments.
36572 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36573 start_index, end_index arguments.
36574 (gl_tree_remove): Update.
36575 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36576 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36577 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
36579 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
36580 gl_tree_search. Add start_index, end_index arguments.
36581 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36582 start_index, end_index arguments.
36583 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36585 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36587 2006-10-05 Bruno Haible <bruno@clisp.org>
36589 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
36591 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
36592 fwriteerror_temp): New declarations.
36593 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
36594 (descriptors): New variable.
36595 (cleanup): First, close the descriptors.
36596 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
36597 fclose_temp, fwriteerror_temp): New functions.
36599 2006-10-04 Jim Meyering <jim@meyering.net>
36601 * lib/fts.c (fts_open): Tiny comment change.
36603 2006-10-04 Bruno Haible <bruno@clisp.org>
36605 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
36606 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
36608 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
36609 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
36610 gl_LOCK_EARLY_BODY.
36611 (gl_LOCK): Require gl_LOCK_BODY.
36613 2006-10-04 Bruno Haible <bruno@clisp.org>
36615 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
36616 (gl_oset_search_atleast): New declaration.
36617 (struct gl_oset_implementation): Add field 'search_atleast'.
36618 (gl_oset_search_atleast): New inline function.
36619 * lib/gl_oset.c (gl_oset_search_atleast): New function.
36620 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
36621 (gl_array_oset_implementation): Update.
36622 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
36623 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
36624 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
36626 2006-10-04 Bruno Haible <bruno@clisp.org>
36628 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
36630 2006-10-03 Bruno Haible <bruno@clisp.org>
36632 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
36633 from gl_avltreehash_list_implementation.
36635 2006-10-03 Bruno Haible <bruno@clisp.org>
36637 * lib/gl_oset.c (gl_oset_add): Fix return type.
36639 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
36641 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
36643 2006-10-02 Eric Blake <ebb9@byu.net>
36645 * modules/strnlen (Depends-on): Add extensions.
36647 2006-10-02 Eric Blake <ebb9@byu.net>
36649 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
36650 definition in 2.60+.
36652 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
36654 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
36657 2006-10-02 Bruno Haible <bruno@clisp.org>
36659 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
36660 to the AUTOMAKE_OPTIONS.
36661 Reported by Jim Meyering.
36663 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
36665 Work around bug in Solaris 10 /proc file system:
36666 /proc/self/fd/NNN/.. isn't the parent directory of
36667 the directory whose file descriptor is NNN. This needs to
36668 be worked around at run time, not compile time, since a
36669 program might be built on Solaris 8, where things work, and
36671 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
36672 to use the following interface instead:
36673 (OPENAT_BUFFER_SIZE): New macro.
36674 (openat_proc_name): New function.
36675 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
36676 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
36678 * lib/openat-proc.c: New file.
36679 * modules/openat (Files): Add lib/openat-proc.c.
36680 (Depends-on): Add same-inode, stdbool.
36681 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
36683 2006-09-29 Bruno Haible <bruno@clisp.org>
36685 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
36686 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
36687 argument. Set stdout_closed before testing for ferror, not after.
36688 (fwriteerror, fwriteerror_no_ebadf): New functions.
36690 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36692 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
36694 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
36696 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
36697 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
36699 2006-09-28 Jim Meyering <jim@meyering.net>
36701 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
36702 Include <unistd.h>.
36704 2006-09-28 Bruno Haible <bruno@clisp.org>
36706 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
36707 * modules/linkedhash-list (Depends-on): Likewise.
36708 * modules/rbtreehash-list (Depends-on): Likewise.
36710 2006-09-28 Bruno Haible <bruno@clisp.org>
36712 * lib/strndup.h: Simplify the redefinition of strndup.
36713 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
36714 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
36716 2006-09-28 Bruno Haible <bruno@clisp.org>
36718 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
36719 * lib/gl_linkedhash_list.c: Likewise.
36720 * lib/gl_rbtreehash_list.c: Likewise.
36722 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
36724 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
36727 * lib/__fpending.h: Don't include <stdio_ext.h> unless
36728 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
36729 it causes <stdio_ext.h> to cause a compile-time error.
36730 Problem reported by Nelson H. F. Beebe.
36731 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
36732 of HAVE_DECL___PENDING.
36734 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
36735 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
36738 2006-09-27 Jim Meyering <jim@meyering.net>
36740 This file could end up with a definition for a function
36741 named __strndup, rather than rpl_strndup on a system with
36742 incomplete weak_alias support.
36743 * lib/strndup.c (strndup): Rename from __strndup.
36744 Remove #defines that used to map __strndup to strndup.
36745 Don't use K&R prototypes.
36746 Remove LIBC-related code, since this file is not sync'd with glibc.
36747 * lib/strndup.h: Revamp, accordingly.
36748 * m4/strndup.m4: Modernize.
36750 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
36752 * modules/savewd (Depends-on): Add 'raise'.
36753 * lib/savewd.c: Include <signal.h>, for 'raise'.
36755 2006-09-26 Jim Meyering <jim@meyering.net>
36757 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
36758 when we detect Darwin 8.7.0's acl_get_file bug.
36759 Rearrange to perform the new (below) run-test while $LIBS
36760 contains any acl-related library. Set USE_ACL at the end.
36761 (gl_ACL_GET_FILE): New function.
36763 2006-09-26 Eric Blake <ebb9@byu.net>
36765 * lib/verror.c: Include <config.h> unconditionally.
36767 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
36769 * modules/clock-time (Maintainer): Add self.
36770 * modules/getlogin_r (Depends-on): Add extensions.
36772 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36774 * modules/clock-time: New module.
36775 * modules/nanosleep (Depends-on): Add clock-time.
36776 * modules/gethrxtime (Depends-on): Likewise.
36777 * modules/gettime (Depends-on): Likewise.
36778 * modules/settime (Depends-on): Likewise.
36780 * modules/fts-lgpl: Depend on openat.
36781 * modules/mkancesdirs: Depend on savewd.
36782 * modules/mkdir-p: Likewise.
36784 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36786 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
36788 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
36789 `gl_have_arbitrary_file_name_length_limit' to
36790 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
36791 actually works between configure runs.
36793 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36794 Bruno Haible <bruno@clisp.org>
36796 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
36798 2006-09-25 Jim Meyering <jim@meyering.net>
36800 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
36801 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
36803 2006-09-25 Eric Blake <ebb9@byu.net>
36805 * gnulib-tool (func_import, func_create_testdir): Fix typos in
36806 exec's in 2006-09-18 patch when shuffling fds.
36808 2006-09-25 Bruno Haible <bruno@clisp.org>
36810 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
36811 Reported by Jim Meyering.
36813 2006-09-24 Jim Meyering <jim@meyering.net>
36815 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
36816 compare a pointer against a literal "0". That caused failures with
36817 at least HP-UX's hpcc.
36819 2006-09-22 Simon Josefsson <jas@extundo.com>
36823 * modules/gc-hmac-sha1:
36824 * modules/gc-hmac-md5:
36826 * modules/gc-arcfour: Distribute more files.
36828 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36830 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
36831 (gl_linked_iterator_from_to): Initialize struct completely.
36832 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
36833 (gl_tree_iterator_from_to): Likewise
36834 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
36835 * lib/gl_array_list.c [lint] (gl_array_iterator)
36836 (gl_array_iterator_from_to): Likewise.
36837 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
36838 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
36839 (gl_carray_iterator_from_to): Likewise.
36841 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
36842 * lib/md4.c (md4_process_block): Remove unused variable.
36843 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
36844 parentheses for clarity.
36846 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36848 * modules/bison-i18n (Depends-on): Add gettext.
36850 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36852 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
36853 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
36854 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
36855 also add missing comma that caused broken test.
36856 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
36857 stdlib.h, for `abort'.
36858 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
36860 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
36861 include unistd.h if present, for `rmdir'.
36862 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
36864 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
36865 in the process include standard headers for prototypes.
36866 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
36867 gets declared on GNU/Linux.
36868 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
36869 unistd.h, for `rmdir'.
36870 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
36872 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
36874 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
36876 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
36878 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36880 * gnulib-tool (func_version): Create output all at once. This
36881 may help avoid triggering unnecessary SIGPIPEs, and at any
36882 rate it doesn't hurt.
36884 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36885 Bruno Haible <bruno@clisp.org>
36887 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
36888 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
36889 * m4/signed.m4 (bh_C_SIGNED): Likewise.
36891 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
36892 (gl_FUNC_VASPRINTF): Invoke it.
36894 2006-09-22 Bruno Haible <bruno@clisp.org>
36896 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
36897 getloadavg.c as first argument.
36899 2006-09-22 Bruno Haible <bruno@clisp.org>
36901 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
36902 at the beginning of the gl_INIT macro.
36903 * modules/getloadavg (configure.ac): Pass $gl_source_base to
36906 2006-09-22 Bruno Haible <bruno@clisp.org>
36908 * gnulib-tool (func_create_megatestdir): Don't include the config-h
36910 Suggested by Ralf Wildenhues.
36912 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
36914 Import this patch from libc:
36916 2006-09-06 Jakub Jelinek <jakub@redhat.com>
36918 * lib/regex_internal.c (re_string_reconstruct): Handle
36919 offset < pstr->valid_raw_len && pstr->offsets_needed case.
36920 Ensure no bytes read before raw_mbs array. Pass a saved copy of
36921 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
36922 re_string_context_at.
36924 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
36926 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
36927 gl_REGEX now does it for us.
36928 (gl_REGEX): Add test taken from
36929 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
36931 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
36932 Check that large offsets work. Modernize Autoconf usages.
36933 Prefer "yes" to mean a good thing rather than a bad.
36934 Don't put "#define mkstemp" in config.h, as this might interfere
36935 with standard system headers that "#define mkstemp mkstemp64".
36937 * modules/mkstemp (Depends-on): Add extensions, so that
36938 mkstemp is visible on some platforms.
36939 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
36940 (Include): Change to "mkstemp.h" from <stdlib.h>.
36941 (Files): Add mkstemp.h.
36943 * lib/mkstemp.h: New file, since some standard headers
36945 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
36946 Include "mkstemp.h".
36947 Make the _LIBC code resemble glibc original more,
36948 e.g., use K&R style.
36949 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
36950 (mkstemp): Remove, since mkstemp.h does this for us.
36951 * lib/stdlib--.h: Include mkstemp.h.
36953 Import this patch from libc:
36955 2006-04-07 Ulrich Drepper <drepper@redhat.com>
36957 * lib/tempname.c (__gen_tempname): Change attempts_min
36958 into a macro. Use preprocessor to decide how to initialize
36959 attempts [Coverity CID 67].
36961 2006-09-20 Bruno Haible <bruno@clisp.org>
36963 * lib/mkdtemp.c: Import from libc.
36964 2006-04-07 Ulrich Drepper <drepper@redhat.com>
36965 * sysdeps/posix/tempname.c (__gen_tempname): Change
36966 attempts_min into a macro. Use preprocessor to decide how to
36967 initialize attempts [Coverity CID 67].
36968 2001-11-27 Paul Eggert <eggert@twinsun.com>
36969 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
36970 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
36972 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36974 * gnulib-tool (func_exit): New function, to allow to pass the
36975 exit status portably through the trap. Use everywhere.
36976 (--help, --version): Signal a write error.
36977 (trap): catch SIGPIPE, for write errors.
36978 Exit at the end of the trap, with the correct exit status.
36980 2006-09-19 Karl Berry <karl@gnu.org>
36982 * doc/gnulib.texi: note about the license texinfo files.
36984 2006-09-19 Eric Blake <ebb9@byu.net>
36986 * gnulib-tool: Avoid space-tab.
36988 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
36990 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
36991 that prevented coreutils 6.1 from building. Problem reported
36992 by Petter Reinholdtsen.
36994 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
36996 * gnulib-tool (avoidlist): Fix typo that broke options like
36997 --avoid=lock that are used by coreutils bootstrap.
36999 2006-09-18 Mark D. Baushke <mdb@gnu.org>
37001 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
37002 more systematically.
37004 2006-09-18 Jim Meyering <jim@meyering.net>
37006 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
37008 2006-09-18 Bruno Haible <bruno@clisp.org>
37010 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
37012 2006-09-18 Bruno Haible <bruno@clisp.org>
37014 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
37015 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
37016 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
37017 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
37018 * m4/gettext.m4: Require autoconf >= 2.52.
37019 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
37020 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
37021 of gl_cv_header_inttypes_h.
37023 2006-09-18 Bruno Haible <bruno@clisp.org>
37025 * lib/javaversion.c: Include configmake.h.
37027 2006-09-18 Bruno Haible <bruno@clisp.org>
37029 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
37030 avoid that the while loops be executed in a subshell.
37032 2006-09-18 Bruno Haible <bruno@clisp.org>
37034 * MODULES.html.sh (func_module): Break long lines.
37035 Suggested by Bruce Korb <bkorb@gnu.org>.
37037 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37039 Speed up by a factor of 1.12.
37040 * gnulib-tool (nl): New variable.
37041 (func_import): Rewrite include directive extraction to only read each
37044 2006-09-17 Bruno Haible <bruno@clisp.org>
37046 * modules/javaversion (Makefile.am): Remove DEFS setting.
37047 (Depends-on): Add configmake, for PKGDATADIR definition.
37049 2006-09-17 Bruno Haible <bruno@clisp.org>
37051 * gnulib-tool (func_create_testdir): Rewrite all files at once.
37053 2006-09-17 Bruno Haible <bruno@clisp.org>
37055 * gnulib-tool (func_append): New function, stolen from libtool.m4.
37056 (func_modules_transitive_closure, func_modules_add_dummy,
37057 func_modules_to_filelist, func_import, func_create_testdir,
37058 func_create_megatestdir, ...): Use it wherever possible.
37059 Suggested by Ralf Wildenhues.
37061 2006-09-16 Karl Berry <karl@gnu.org>
37063 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
37064 to avoid sectioning errors.
37065 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
37066 [ifinfo]: blank line after @center-ed titles.
37067 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
37068 Spell FSF address consistently with others.
37069 (These changes approved by rms.)
37071 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37073 Speed up by a factor of 1.61.
37074 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
37075 already checked module names again.
37077 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37079 Speed up by a factor of 1.13.
37080 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
37081 for new_files, and the input to func_add_or_update.
37083 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37085 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
37086 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
37088 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
37090 * modules/mkancesdirs (Depends-on): Add fcntl.
37091 * modules/savewd: New file.
37092 * MODULES.html.sh (File system functions): Add savewd.
37094 * modules/configmake (Makefile.am): Add support for the
37095 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
37097 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
37099 * m4/savewd.m4: New file.
37101 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
37103 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
37104 (dirchownmod): New arg FD. All callers changed.
37105 Use FD rather than opening the directory ourself, as opening is
37106 now the caller's responsibility.
37107 * lib/dirchownmod.h: Likewise.
37108 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
37109 hosts that require <sys/types.h> before <sys/stat.h>. Include
37110 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
37111 (test_dir): Remove.
37112 (mkancesdirs): Return length of prefix of FILE that has already
37113 been made, or -2 if there is a child doing the work. Redo
37114 algorithm so that it is O(N) rather than O(N**2). Optimize away
37115 ".", and treat ".." specially since it might stray back into
37116 already-created areas. Use a subprocess if necessary. New arg
37117 WD; all users changed. MAKE_DIR function should now return 1
37118 if it creates a directory that is not readable. Return -2 if
37119 a child process is spun off.
37120 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
37121 Adjust signature to match code.
37122 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
37123 (make_dir_parents): Use a subprocess if necessary. New arg WD;
37125 * lib/savewd.c, lib/savewd.h: New files.
37127 2006-09-15 Jim Meyering <jim@meyering.net>
37129 * modules/rename-dest-slash: New module.
37130 * MODULES.html.sh (posix_compat): Add it here.
37132 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
37134 2006-09-15 Jim Meyering <jim@meyering.net>
37136 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
37139 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
37141 2006-09-15 Jim Meyering <jim@meyering.net>
37143 * lib/rename-dest-slash.c (has_trailing_slash): Use
37144 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
37145 (rpl_rename_dest_slash): Perform the cheaper trailing slash
37146 test before testing whether SRC is a directory.
37147 Suggestions from Bruno Haible.
37149 Avoid a warning about an unused variable.
37150 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
37151 into the #ifdef block where it's used.
37153 * lib/rename-dest-slash.c: New file.
37155 2006-09-14 Bruno Haible <bruno@clisp.org>
37157 * lib/allocsa.c: Include <config.h> unconditionally.
37158 * lib/asnprintf.c: Likewise.
37159 * lib/asprintf.c: Likewise.
37160 * lib/c-strcasecmp.c: Likewise.
37161 * lib/c-strcasestr.c: Likewise.
37162 * lib/c-strncasecmp.c: Likewise.
37163 * lib/c-strstr.c: Likewise.
37164 * lib/classpath.c: Likewise.
37165 * lib/clean-temp.c: Likewise.
37166 * lib/concatpath.c: Likewise.
37167 * lib/copy-file.c: Likewise.
37168 * lib/csharpcomp.c: Likewise.
37169 * lib/csharpexec.c: Likewise.
37170 * lib/execute.c: Likewise.
37171 * lib/fatal-signal.c: Likewise.
37172 * lib/findprog.c: Likewise.
37173 * lib/fwriteerror.c: Likewise.
37174 * lib/gl_array_list.c: Likewise.
37175 * lib/gl_array_oset.c: Likewise.
37176 * lib/gl_avltree_list.c: Likewise.
37177 * lib/gl_avltree_oset.c: Likewise.
37178 * lib/gl_avltreehash_list.c: Likewise.
37179 * lib/gl_carray_list.c: Likewise.
37180 * lib/gl_linked_list.c: Likewise.
37181 * lib/gl_linkedhash_list.c: Likewise.
37182 * lib/gl_list.c: Likewise.
37183 * lib/gl_oset.c: Likewise.
37184 * lib/gl_rbtree_list.c: Likewise.
37185 * lib/gl_rbtree_oset.c: Likewise.
37186 * lib/gl_rbtreehash_list.c: Likewise.
37187 * lib/imaxabs.c: Likewise.
37188 * lib/imaxdiv.c: Likewise.
37189 * lib/javacomp.c: Likewise.
37190 * lib/javaexec.c: Likewise.
37191 * lib/javaversion.c: Likewise.
37192 * lib/linebreak.c: Likewise.
37193 * lib/localcharset.c: Likewise.
37194 * lib/lock.c: Likewise.
37195 * lib/mbchar.c: Likewise.
37196 * lib/mbswidth.c: Likewise.
37197 * lib/mkdtemp.c: Likewise.
37198 * lib/pipe.c: Likewise.
37199 * lib/printf-args.c: Likewise.
37200 * lib/printf-parse.c: Likewise.
37201 * lib/progname.c: Likewise.
37202 * lib/progreloc.c: Likewise.
37203 * lib/readlink.c: Likewise.
37204 * lib/sh-quote.c: Likewise.
37205 * lib/stpcpy.c: Likewise.
37206 * lib/stpncpy.c: Likewise.
37207 * lib/strcasecmp.c: Likewise.
37208 * lib/strcasestr.c: Likewise.
37209 * lib/strcspn.c: Likewise.
37210 * lib/striconv.c: Likewise.
37211 * lib/strncasecmp.c: Likewise.
37212 * lib/strnlen1.c: Likewise.
37213 * lib/strstr.c: Likewise.
37214 * lib/strtok_r.c: Likewise.
37215 * lib/tls.c: Likewise.
37216 * lib/tmpdir.c: Likewise.
37217 * lib/unicodeio.c: Likewise.
37218 * lib/unsetenv.c: Likewise.
37219 * lib/vasnprintf.c: Likewise.
37220 * lib/vasprintf.c: Likewise.
37221 * lib/wait-process.c: Likewise.
37222 * lib/xallocsa.c: Likewise.
37223 * lib/xsetenv.c: Likewise.
37224 * lib/xstriconv.c: Likewise.
37226 2006-09-13 Simon Josefsson <jas@extundo.com>
37228 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
37229 that internally, suggested by Ralf Wildenhues
37230 <Ralf.Wildenhues@gmx.de>.
37232 2006-09-13 Simon Josefsson <jas@extundo.com>
37234 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
37236 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37238 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
37240 * lib/_fpending.c: Include <config.h> unconditionally, since we no
37241 longer worry about uses that don't define HAVE_CONFIG_H.
37242 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
37243 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
37244 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
37245 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
37246 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
37247 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
37248 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
37249 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
37250 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
37251 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
37252 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
37253 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
37254 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
37255 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
37256 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
37257 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
37258 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
37259 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
37260 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
37261 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
37262 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
37263 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
37264 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
37265 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
37266 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
37267 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
37268 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
37269 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
37270 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
37271 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
37272 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
37273 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
37274 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
37275 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
37276 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
37277 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
37278 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
37279 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
37280 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
37281 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
37282 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
37285 2006-09-13 Eric Blake <ebb9@byu.net>
37287 * lib/getopt.c: Fix typo in last commit.
37289 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
37291 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
37294 2006-09-12 Jim Meyering <jim@meyering.net>
37296 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
37297 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
37298 Reported by Nelson H. F. Beebe.
37300 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
37302 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
37303 program_invocation_name and program_invocation_short_name are
37305 * lib/argp-namefrob.h: Move declarations of program_invocation_name
37306 and program_invocation_short_name to argp.h, so they are visible
37308 * lib/argp.h: Likewise
37310 2006-09-10 Bruno Haible <bruno@clisp.org>
37312 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
37313 m4/inttypes_h.m4, m4/uintmax_t.m4.
37315 2006-09-10 Bruno Haible <bruno@clisp.org>
37317 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
37318 gl_AC_TYPE_UINTMAX_T.
37320 2006-09-10 Bruno Haible <bruno@clisp.org>
37322 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
37324 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
37326 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
37327 convention. Text proposed by Bruno Haible.
37328 (struct argp_option): Document the use of N_() wrappers.
37330 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
37331 '\v', and translate the two parts separately, instead of feeding
37332 the whole string to gettext. This allows to exclude
37333 '\v' from the strings visible to the translator by writing doc
37334 strings as N_("..") "\v" N_("..").
37336 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
37338 * config/srclist.txt: Undo latest change; the bug was fixed.
37340 2006-09-09 Bruno Haible <bruno@clisp.org>
37342 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
37343 assignments if building a library without libtool.
37344 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
37345 in func_emit_lib_Makefile_am.
37346 (func_import): When building a static library libfoo.a, arrange to
37347 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
37348 (func_create_testdir): Likewise.
37349 * modules/gc (configure.ac, Makefile.am): If building statically,
37350 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
37351 * modules/iconvme (configure.ac, Makefile.am): Likewise.
37352 * modules/striconv (configure.ac, Makefile.am): Likewise.
37353 Based on a suggestion by Ralf Wildenhues.
37355 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37357 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37358 Check for unistd.h too, since Autoconf doesn't assume POSIX.
37361 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37362 Add year_2050_test to catch glibc bug 2821
37363 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37365 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
37366 Prefer #ifdef to #if.
37368 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
37369 Return from 'main' instead of calling 'exit'.
37371 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37373 * lib/mktime.c (guess_time_tm): Fix bug where mktime
37374 returned the maximum time_t value rather than (time_t) -1.
37375 Problem originally reported by William Bardwell
37376 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37378 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37380 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37383 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37385 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
37388 2006-09-08 Jim Meyering <jim@meyering.net>
37390 Don't make generated files read-only. That would bother too many
37391 people. However, do retain the ability to work when targets are
37392 read-only: remove the destination and temporary files before writing
37393 them (when generated via sed or echo), or by using the -f option for
37394 both cp and mv commands. Suggestion to use -f from Paul Eggert.
37395 * modules/alloca-opt, modules/argz, modules/arpa_inet:
37396 * modules/byteswap, modules/configmake, modules/fcntl:
37397 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37398 * modules/localcharset, modules/netinet_in, modules/poll:
37399 * modules/stdbool, modules/stdint, modules/sys_select:
37400 * modules/sys_socket, modules/sys_stat, modules/sysexits:
37402 2006-09-08 Jim Meyering <jim@meyering.net>
37404 Avoid new build failure on FreeBSD 6.0.
37405 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
37406 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
37407 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
37409 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37411 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
37413 2006-09-07 Jim Meyering <jim@meyering.net>
37415 Fix global typo in last change: use chmod u-w, not chmod u-x.
37416 Spotted by Paul Eggert and Bruce Korb.
37417 * modules/alloca-opt, modules/argz, modules/arpa_inet:
37418 * modules/byteswap, modules/configmake, modules/fcntl:
37419 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37420 * modules/localcharset, modules/netinet_in, modules/poll:
37421 * modules/stdbool, modules/stdint, modules/sys_select:
37422 * modules/sys_socket, modules/sys_stat, modules/sysexits:
37424 2006-09-06 Jim Meyering <jim@meyering.net>
37426 Make generated files be read-only.
37427 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
37428 Ensure that each generated file is now read-only.
37429 * modules/argz: Likewise.
37430 * modules/arpa_inet: Likewise.
37431 * modules/byteswap: Likewise.
37432 * modules/configmake: Likewise.
37433 * modules/fcntl: Likewise.
37434 * modules/fnmatch: Likewise.
37435 * modules/getopt: Likewise.
37436 * modules/glob: Likewise.
37437 * modules/inttypes: Likewise.
37438 * modules/netinet_in: Likewise.
37439 * modules/poll: Likewise.
37440 * modules/stdbool: Likewise.
37441 * modules/stdint: Likewise.
37442 * modules/sys_select: Likewise.
37443 * modules/sys_socket: Likewise.
37444 * modules/sys_stat: Likewise.
37445 * modules/sysexits: Likewise.
37446 * modules/localcharset: Same as above, but continue using temporary
37447 file named "t-$@" (why different?) rather than the "$@-t" used
37450 * modules/sysexits (Makefile.am): Replace literal occurrences
37451 of "sysexit.h" more readable, and more consistent, "$@".
37453 2006-09-06 Bruno Haible <bruno@clisp.org>
37455 * modules/striconv: New file.
37456 * modules/xstriconv: New file.
37457 * MODULES.html.sh (Internationalization functions): Add striconv,
37460 2006-09-06 Bruno Haible <bruno@clisp.org>
37462 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
37463 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
37464 not using libtool correctly.
37466 2006-09-06 Bruno Haible <bruno@clisp.org>
37468 * lib/striconv.h: New file.
37469 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
37471 * lib/xstriconv.h: New file.
37472 * lib/xstriconv.c: New file.
37474 2006-09-06 Bruno Haible <bruno@clisp.org>
37476 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37479 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37481 * lib/argz_.h: Sync from Libtool.
37483 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
37484 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37486 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
37488 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
37490 * modules/trim: New file.
37492 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
37494 * lib/trim.h: New file.
37495 * lib/trim.c: New file.
37497 2006-09-05 Bruno Haible <bruno@clisp.org>
37499 * MODULES.html.sh (String handling): Add trim.
37501 2006-09-04 Karl Berry <karl@gnu.org>
37503 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
37504 until next release.
37506 2006-09-03 Bruno Haible <bruno@clisp.org>
37508 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
37511 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
37513 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
37514 not gl_GETLOADAVG. Omit unneeded semicolons.
37515 Problems reported by Ralf Wildenhues in
37516 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37517 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
37518 at the end, which is the usual gnulib style.
37520 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
37521 of doing all the work ourselves.
37522 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
37523 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
37525 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
37527 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
37528 Problem reported by Ralf Wildenhues in
37529 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37531 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
37532 HAVE_STRUCT_STATFS_F_FSTYPENAME.
37534 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
37536 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
37537 yesterday's patch by changing test -n to test -z.
37539 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
37541 * modules/getloadavg (Files): Add m4/getloadavg.m4.
37542 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
37543 the former is now obsolescent.
37545 * modules/chdir-long (Depends-on): Add fcntl.
37547 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
37549 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
37550 obsolescent, and programs should use gnulib instead.
37551 * m4/getloadavg.m4: New file, with contents taken from Autoconf
37552 but with prefixes changed.
37554 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
37556 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
37557 or stdbool.h, because they might not exist while configuring.
37559 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
37560 Don't include unistd.h or limits.h; not needed, since chdir-long.h
37562 (O_DIRECTORY): Remove.
37564 2006-08-31 Eric Blake <ebb9@byu.net>
37566 * gnulib-tool: Don't let emacs change spaces to TAB.
37568 2006-08-31 Bruno Haible <bruno@clisp.org>
37570 * gnulib-tool: When calling func_import more than once, do it in a
37572 Reported by Eric Blake <ebb9@byu.net>.
37574 2006-08-31 Bruno Haible <bruno@clisp.org>
37576 * gnulib-tool (nl): Remove variable.
37577 (sed_transform_lib_file): Use more robust test for config-h module.
37578 (func_import): Fix typo in 2006-08-25 patch.
37580 2006-08-31 Bruno Haible <bruno@clisp.org>
37582 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
37583 specified, augment Makefile.am variables instead of assigning them.
37585 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37587 Work around a bug in both the Linux and SunOS 64-bit kernels:
37588 nanosleep mishandles sleeps for longer than 2**31 seconds.
37589 Problem reported by Frank v Waveren in
37590 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37591 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
37592 Check for nanosleep bug.
37593 (LIB_NANOSLEEP): Append clock_gettime library if needed.
37595 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37597 Work around a bug in both the Linux and SunOS 64-bit kernels:
37598 nanosleep mishandles sleeps for longer than 2**31 seconds.
37599 Problem reported by Frank v Waveren in
37600 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37601 * lib/nanosleep.c (BILLION): New constant.
37602 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
37603 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
37606 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37608 * modules/nanosleep (Depends-on): Add gettime.
37610 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37611 and Simon Josefsson <jas@extundo.com>
37612 and Oskar Liljeblad <oskar@osk.mine.nu>
37614 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
37615 * gnulib-tool (func_import): New license type 'unmodifiable license
37617 * modules/fdl: Use it. Longer description.
37618 * module/gpl, module/lgpl: New files.
37620 2006-08-30 Jim Meyering <jim@meyering.net>
37622 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
37623 shadowing the parameter.
37625 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37629 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37631 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
37632 sharing with gnulib. Report by Eric Blake.
37634 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37636 * modules/isapipe: New file.
37637 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
37639 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37641 * modules/configmake (Makefile.am): Add a comment, and omit
37642 the CONFIGMAKE_ prefix from generated macro names. Suggested
37645 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37647 * m4/isapipe.m4: New file.
37649 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37651 * lib/isapipe.c, lib/isapipe.h: New files.
37653 2006-08-29 Jim Meyering <jim@meyering.net>
37655 * modules/configmake (Makefile.am): Make configmake.h depend on
37656 Makefile. Otherwise, a stale configmake.h could hang around.
37658 2006-08-29 Eric Blake <ebb9@byu.net>
37660 * lib/error.c (error_at_line, print_errno_message): Match libc, after
37661 resolution of upstream bug 3044.
37663 2006-08-29 Bruno Haible <bruno@clisp.org>
37665 * modules/localcharset (Depends-on): Add configmake.
37666 (Makefile.am): Remove setting of LIBDIR through DEFS.
37668 2006-08-29 Bruno Haible <bruno@clisp.org>
37670 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
37673 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37675 * modules/fcntl: New file.
37676 * modules/chdir-safer (Depends-on): Add fcntl.
37677 * modules/fts: Likewise.
37678 * modules/mkdir-p: Likewise.
37680 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
37681 This undoes the most recent change, since we're now addressing the
37682 problem in a different way.
37684 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
37685 into output, since the output might be called Makefile.am even
37686 if $makefile_name is something different.
37687 (func_import): Use $makefile_am rather than
37688 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
37691 * modules/inttypes (Files): Add m4/inttypes-h.m4.
37693 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37695 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
37696 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
37697 recent change to stdint.m4, since we're now addressing the problem in a
37700 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37702 * m4/fcntl_h.m4: New file.
37704 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37706 * lib/fcntl_.h: New file.
37707 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
37709 * lib/dirchownmod.c: Likewise.
37710 * lib/fts.c: Likewise.
37712 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
37713 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
37714 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
37715 just before including <inttypes.h>, to avoid circular inclusion.
37717 2006-08-28 Jim Meyering <jim@meyering.net>
37719 * doc/visibility.texi: Actually read and correct the grammar of the
37720 sentence affected by yesterday's change.
37722 2006-08-28 Eric Blake <ebb9@byu.net>
37724 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
37727 2006-08-28 Eric Blake <ebb9@byu.net>
37729 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
37731 2006-08-28 Eric Blake <ebb9@byu.net>
37733 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
37735 2006-08-28 Bruno Haible <bruno@clisp.org>
37737 * modules/c-strstr: New file, from GNU gettext.
37738 * MODULES.html.sh (String handling): Add c-strstr.
37740 2006-08-28 Bruno Haible <bruno@clisp.org>
37742 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
37744 Reported by Eric Blake.
37746 2006-08-28 Bruno Haible <bruno@clisp.org>
37748 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
37749 (VASNPRINTF): Return a string of length > INT_MAX without failing.
37750 * lib/vasprintf.c: Include errno.h, limits.h.
37751 (EOVERFLOW): New fallback definition.
37752 (vasprintf): Test here whether the string length is > INT_MAX.
37753 * lib/vsnprintf.c: Include errno.h, limits.h.
37754 (EOVERFLOW): New fallback definition.
37755 (vsnprintf): Fix bug when generated string was too long for the buffer.
37756 Test here whether the string length is > INT_MAX.
37758 2006-08-28 Bruno Haible <bruno@clisp.org>
37760 * lib/inttypes_.h (SCNX*): Remove definitions.
37761 Reported by Eric Blake.
37763 2006-08-28 Bruno Haible <bruno@clisp.org>
37765 * lib/c-strstr.h: New file, from GNU gettext.
37766 * lib/c-strstr.c: New file, from GNU gettext.
37768 2006-08-28 Bruno Haible <bruno@clisp.org>
37770 * gnulib-tool: Reorder some statements.
37772 2006-08-28 Bruno Haible <bruno@clisp.org>
37774 * gnulib-tool: New option --makefile-name.
37775 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
37777 (func_import): Write $makefile_name to the cache file, and read it from
37778 there unless explicitly specified. Use $makefile_name as file name
37779 instead of Makefile.am. Adjust the recommendations accordingly.
37781 2006-08-28 Bruno Haible <bruno@clisp.org>
37783 * gnulib-tool (func_verify_module): Check against misapplying patch.
37785 2006-08-28 Bruno Haible <bruno@clisp.org>
37787 * gnulib-tool (func_relativize, func_relconcat): New functions.
37788 Give an error if --local-dir is given with --update.
37789 Remove trailing slashes from $local_gnulib_dir.
37790 (func_import): Store the relativized $local_gnulib_dir in
37791 gnulib-cache.m4, and read it from there if not specified explicitly.
37793 2006-08-28 Bruno Haible <bruno@clisp.org>
37795 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
37796 is the current directory. Respect also $local_gnulib_dir.
37798 2006-08-28 Bruno Haible <bruno@clisp.org>
37799 Simon Josefsson <jas@extundo.com>
37802 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
37804 2006-08-27 Jim Meyering <jim@meyering.net>
37806 * doc/visibility.texi: Remove duplicate word: "pointer".
37808 2006-08-26 Bruno Haible <bruno@clisp.org>
37810 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
37811 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
37812 (Makefile.am): Create inttypes.h from inttypes_.h.
37813 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
37815 * modules/imaxabs: New file.
37817 * modules/imaxdiv: New file.
37819 2006-08-26 Bruno Haible <bruno@clisp.org>
37821 * m4/inttypes.m4: New file.
37822 * m4/_inttypes_h.m4: Remove file.
37823 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
37825 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
37827 * m4/imaxabs.m4: New file.
37829 * m4/imaxdiv.m4: New file.
37831 2006-08-26 Bruno Haible <bruno@clisp.org>
37833 * lib/inttypes_.h: New file.
37834 * lib/inttypes.h: Remove file.
37835 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
37837 * lib/imaxabs.c: New file.
37839 * lib/imaxdiv.c: New file.
37841 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
37843 New config-h module, so that "make" output needn't be cluttered
37844 by -DHAVE_CONFIG_H.
37845 * MODULES.html.sh (Support for building libraries and executables):
37847 * modules/config-h: New file.
37848 * gnulib-tool (nl, sed_transform_lib_file): New vars.
37849 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
37850 the config-h module is used.
37852 New configmake module, so that "make" output needn't be cluttered
37853 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
37854 * MODULES.html.sh (Support for building libraries and executables):
37856 * modules/configmake: New file.
37858 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
37860 * m4/config-h.m4: New file.
37862 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
37864 * config/srclist.txt: Add elisp-comp.
37866 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
37868 * MODULES.html.sh (Support for building libraries and executables):
37870 * build-aux/elisp-comp: New file.
37871 * modules/elisp-comp: New file.
37873 2006-08-24 Bruno Haible <bruno@clisp.org>
37875 * gnulib-tool (func_create_testdir): Use non-default values of
37876 sourcebase and m4base.
37878 2006-08-24 Bruno Haible <bruno@clisp.org>
37880 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
37883 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
37885 * modules/openat (Depends-on): Add lchown.
37887 2006-08-23 Bruno Haible <bruno@clisp.org>
37889 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
37890 of gl_LOCK_EARLY instead of gl_LOCK.
37892 2006-08-23 Bruno Haible <bruno@clisp.org>
37894 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
37896 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
37898 2006-08-23 Bruno Haible <bruno@clisp.org>
37900 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
37903 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
37904 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
37905 (gl_LOCK): New macro.
37907 2006-08-22 Simon Josefsson <jas@extundo.com>
37909 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
37912 2006-08-22 Simon Josefsson <jas@extundo.com>
37914 * MODULES.html.sh: Add "Support for maintaining and release
37917 * build-aux/gnupload: New file, from coreutils.
37919 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
37921 Avoid the need for AC_LIBSOURCES in m4 macros.
37922 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
37923 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
37924 * modules/check-version (EXTRA_DIST): Add check-version.h.
37925 * modules/crc (EXTRA_DIST): Add crc.h.
37926 * modules/des (EXTRA_DIST): Add des.h.
37927 * modules/gc (EXTRA_DIST): Add gc.h.
37928 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
37929 * modules/getline (EXTRA_DIST): Add getline.h.
37930 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
37931 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
37932 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
37933 * modules/md2 (EXTRA_DIST): Add md2.h.
37934 * modules/md4 (EXTRA_DIST): Add md4.h.
37935 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
37936 * modules/read-file (EXTRA_DIST): Add read-file.h.
37937 * modules/readline (EXTRA_DIST): Add readline.h.
37938 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
37939 rijndael-api-fst.h.
37941 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
37943 * m4/rijndael.m4 (gl_ARCFOUR):
37944 * m4/arctwo.m4 (gl_ARCTWO):
37945 * m4/check-version.m4 (gl_CHECK_VERSION):
37946 * m4/crc.m4 (gl_CRC):
37947 * m4/des.m4 (gl_DES):
37948 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
37949 * m4/gc.m4 (gl_GC):
37950 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
37951 * m4/getline.m4 (gl_FUNC_GETLINE):
37952 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
37953 * m4/hmac-md5.m4 (gl_HMAC_MD5):
37954 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
37955 * m4/md2.m4 (gl_MD2):
37956 * m4/md4.m4 (gl_MD4):
37957 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
37958 * m4/read-file.m4 (gl_FUNC_READ_FILE):
37959 * m4/readline.m4 (gl_FUNC_READLINE):
37960 * m4/rijndael.m4 (gl_RIJNDAEL):
37961 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
37962 to get the necessary .h files and whatnot.
37964 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
37966 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
37967 gnulib rather than the other way around.
37968 * config/srclistvars.sh (COREUTILS): Remove.
37970 2006-08-22 Jim Meyering <jim@meyering.net>
37972 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
37974 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
37976 2006-08-22 Eric Blake <ebb9@byu.net>
37978 * modules/regexprops-generic: New file.
37979 * MODULES.html.sh (Support for building documentation): List it.
37981 2006-08-22 Eric Blake <ebb9@byu.net>
37983 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
37984 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
37985 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
37986 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
37988 2006-08-22 Bruno Haible <bruno@clisp.org>
37990 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
37991 and lib_LTLIBRARIES like the other lib_* variables.
37993 2006-08-22 Bruno Haible <bruno@clisp.org>
37995 * build-aux/x-to-1.in: New file, from GNU gettext.
37997 2006-08-22 Bruno Haible <bruno@clisp.org>
37999 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
38002 2006-08-22 Bruno Haible <bruno@clisp.org>
38004 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
38007 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
38010 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
38012 Problem reported by Bruno Haible.
38014 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
38016 Avoid the need for AC_LIBSOURCES in m4 macros.
38017 * modules/acl (EXTRA_DIST): Add acl.h.
38018 * modules/argmatch (Files): Add m4/argmatch.m4.
38019 (configure.ac): Add gl_ARGMATCH.
38020 (EXTRA_DIST): Renamed from lib_SOURCES, for
38021 consistency with the other modules. Remove argmatch.c.
38022 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
38023 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
38024 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
38025 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
38026 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
38027 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
38028 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
38029 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
38030 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
38031 * modules/closeout (EXTRA_DIST): Add closeout.h.
38032 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
38033 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
38034 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
38035 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
38036 dirname.h; remove basename.c and stripslash.c.
38037 * modules/exclude (EXTRA_DIST): Add exclude.h.
38038 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
38039 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
38040 * modules/file-type (EXTRA_DIST): Add file-type.h.
38041 * modules/filemode (EXTRA_DIST): Add filemode.h.
38042 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
38043 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
38044 * modules/fpending (EXTRA_DIST): Add __fpending.h.
38045 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
38046 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
38047 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
38048 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
38049 * modules/getdate (EXTRA_DIST): Add getdate.c.
38050 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
38051 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
38052 * modules/getpass (EXTRA_DIST): Add getpass.h.
38053 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
38054 * modules/group-member (EXTRA_DIST): Add group-member.h.
38055 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
38056 * modules/hash (EXTRA_DIST): Add hash.h.
38057 * modules/human (EXTRA_DIST): Add human.h.
38058 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
38059 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
38060 * modules/lchown (EXTRA_DIST): Add lchown.h.
38061 * modules/long-options (EXTRA_DIST): Add long-options.h.
38062 * modules/lstat (EXTRA_DIST): Add lstat.h.
38063 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
38064 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
38065 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
38066 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
38067 * modules/memxor (EXTRA_DIST): Add memxor.h.
38068 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
38069 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
38070 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
38071 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
38072 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
38073 * modules/physmem (EXTRA_DIST): Add physmem.h.
38074 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
38075 * modules/posixver (EXTRA_DIST): Add posixver.h.
38076 * modules/quote (EXTRA_DIST): Add quote.h.
38077 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
38078 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
38079 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
38080 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
38081 regex_internal.h regexec.c.
38082 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
38083 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
38084 * modules/same (EXTRA_DIST): Add same.h.
38085 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
38086 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
38087 * modules/savedir (EXTRA_DIST): Add savedir.h.
38088 * modules/sha1 (EXTRA_DIST): Add sha1.h.
38089 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
38090 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
38091 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
38092 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
38093 * modules/strdup (EXTRA_DIST): Add strdup.h.
38094 * modules/strftime (EXTRA_DIST): Add strftime.h.
38095 * modules/strndup (EXTRA_DIST): Add strndup.h.
38096 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
38097 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
38098 * modules/time_r (EXTRA_DIST): Add time_r.h.
38099 * modules/timespec (EXTRA_DIST): Add timespec.h.
38100 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
38101 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
38102 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
38103 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
38104 * modules/userspec (EXTRA_DIST): Add userspec.h.
38105 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
38106 * modules/utimens (EXTRA_DIST): Add utimens.h.
38107 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
38108 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
38109 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
38110 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
38111 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
38112 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
38113 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
38114 * modules/yesno (EXTRA_DIST): Add yesno.h.
38116 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
38118 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
38120 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
38121 * m4/dev-ino.m4, same-inode.m4: Remove.
38123 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
38124 * m4/acl.m4 (AC_FUNC_ACL):
38125 * m4/backupfile.m4 (gl_BACKUPFILE):
38126 * m4/c-strtod.m4 (gl_C99_STRTOLD):
38127 * m4/canon-host.m4 (gl_CANON_HOST):
38128 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
38129 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
38130 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
38131 * m4/cloexec.m4 (gl_CLOEXEC):
38132 * m4/close-stream.m4 (gl_CLOSE_STREAM):
38133 * m4/closeout.m4 (gl_CLOSEOUT):
38134 * m4/dirfd.m4 (gl_FUNC_DIRFD):
38135 * m4/dirname.m4 (gl_DIRNAME):
38136 * m4/exclude.m4 (gl_EXCLUDE):
38137 * m4/exitfail.m4 (gl_EXITFAIL):
38138 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
38139 * m4/file-type.m4 (gl_FILE_TYPE):
38140 * m4/filemode.m4 (gl_FILEMODE):
38141 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
38142 * m4/fpending.m4 (gl_FUNC_FPENDING):
38143 * m4/fprintftime.m4 (gl_FPRINTFTIME):
38144 * m4/fts.m4 (gl_FUNC_FTS):
38145 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
38146 * m4/getdate.m4 (gl_GETDATE):
38147 * m4/gethrxtime.m4 (gl_GETHRXTIME):
38148 * m4/getpagesize.m4 (gl_GETPAGESIZE):
38149 * m4/getpass.m4 (gl_FUNC_GETPASS):
38150 * m4/gettime.m4 (gl_GETTIME):
38151 * m4/getugroups.m4 (gl_GETUGROUPS):
38152 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
38153 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
38154 * m4/hard-locale.m4 (gl_HARD_LOCALE):
38155 * m4/hash.m4 (gl_HASH):
38156 * m4/idcache.m4 (gl_IDCACHE):
38157 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
38158 * m4/lchown.m4 (gl_FUNC_LCHOWN):
38159 * m4/long-options.m4 (gl_LONG_OPTIONS):
38160 * m4/lstat.m4 (gl_FUNC_LSTAT):
38161 * m4/md5.m4 (gl_MD5):
38162 * m4/memcasecmp.m4 (gl_MEMCASECMP):
38163 * m4/memcoll.m4 (gl_MEMCOLL):
38164 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
38165 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
38166 * m4/memxor.m4 (gl_MEMXOR):
38167 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
38168 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
38169 * m4/modechange.m4 (gl_MODECHANGE):
38170 * m4/mountlist.m4 (gl_MOUNTLIST):
38171 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38172 * m4/openat.m4 (gl_FUNC_OPENAT):
38173 * m4/pathmax.m4 (gl_PATHMAX):
38174 * m4/physmem.m4 (gl_PHYSMEM):
38175 * m4/posixtm.m4 (gl_POSIXTM):
38176 * m4/posixver.m4 (gl_POSIXVER):
38177 * m4/quote.m4 (gl_QUOTE):
38178 * m4/quotearg.m4 (gl_QUOTEARG):
38179 * m4/readtokens.m4 (gl_READTOKENS):
38180 * m4/readutmp.m4 (gl_READUTMP):
38181 * m4/regex.m4 (gl_REGEX):
38182 * m4/safe-read.m4 (gl_SAFE_READ):
38183 * m4/safe-write.m4 (gl_SAFE_WRITE):
38184 * m4/same.m4 (gl_SAME):
38185 * m4/save-cwd.m4 (gl_SAVE_CWD):
38186 * m4/savedir.m4 (gl_SAVEDIR):
38187 * m4/settime.m4 (gl_SETTIME):
38188 * m4/sha1.m4 (gl_SHA1):
38189 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
38190 * m4/stat-macros.m4 (gl_STAT_MACROS):
38191 * m4/stat-time.m4 (gl_STAT_TIME):
38192 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
38193 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
38194 * m4/strdup.m4 (gl_FUNC_STRDUP):
38195 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
38196 * m4/strndup.m4 (gl_FUNC_STRNDUP):
38197 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
38198 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
38199 * m4/time_r.m4 (gl_TIME_R):
38200 * m4/timespec.m4 (gl_TIMESPEC):
38201 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
38202 * m4/unlinkdir.m4 (gl_UNLINKDIR):
38203 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
38204 * m4/userspec.m4 (gl_USERSPEC):
38205 * m4/utimecmp.m4 (gl_UTIMECMP):
38206 * m4/utimens.m4 (gl_UTIMENS):
38207 * m4/xalloc.m4 (gl_XALLOC):
38208 * m4/xgetcwd.m4 (gl_XGETCWD):
38209 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
38210 * m4/xreadlink.m4 (gl_XREADLINK):
38211 * m4/xstrtod.m4 (gl_XSTRTOD):
38212 * m4/yesno.m4 (gl_YESNO):
38213 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
38214 to get the necessary .h files and whatnot.
38216 2006-08-21 Mark D. Baushke <mdb@gnu.org>
38217 Bruno Haible <bruno@clisp.org>
38219 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
38220 /bin/sh understanding of '!' conditional negation.
38222 2006-08-21 Jim Meyering <jim@meyering.net>
38224 * modules/openat (Depends-on): Really alphabetize.
38226 * modules/acl (Depends-on): Add error and quote.
38228 * check-module (find_included_lib_files): Add at-func.c to the
38229 ok-to-include-more-than-once white list.
38231 * modules/openat (Depends-on): Add lstat. Alphabetize.
38233 2006-08-21 Bruno Haible <bruno@clisp.org>
38235 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38236 Emit a pkgdata_DATA variable only if some snippets add contents to it.
38237 Reported by Martin Lambers <marlam@marlam.de>.
38239 2006-08-21 Bruno Haible <bruno@clisp.org>
38241 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
38242 specify an installation location, don't emit a noinst_LIBRARIES or
38243 noinst_LTLIBRARIES assignment.
38245 2006-08-21 Bruno Haible <bruno@clisp.org>
38248 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
38249 BeOS has mbrtowc() but no <wctype.h>.
38251 2006-08-21 Bruno Haible <bruno@clisp.org>
38254 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
38257 2006-08-21 Bruno Haible <bruno@clisp.org>
38260 * lib/mbchar.h: Include <wctype.h> only if it exists.
38262 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
38264 Remove files that are no longer needed by their respective modules.
38265 * m4/obstack.m4: Remove.
38266 * m4/strerror_r.m4: Remove.
38267 * m4/uint32_t.m4: Remove.
38268 * m4/uintptr_t.m4: Remove.
38269 * m4/ullong_max.m4: Remove.
38270 * m4/xstrtoimax.m4: Remove.
38271 * m4/xstrtoumax.m4: Remove.
38273 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
38274 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
38275 dependencies now capture this.
38277 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
38278 Do not use AC_LIBSOURCES, since gnulib modules now do this.
38279 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
38280 * m4/human.m4 (gl_HUMAN): Likewise.
38281 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
38282 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
38284 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
38286 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
38287 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
38289 * m4/human.m4 (gl_HUMAN): Likewise.
38290 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
38291 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
38292 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
38293 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
38294 * m4/xstrtol (gl_XSTRTOL): Likewise.
38296 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
38297 AC_TYPE_LONG_LONG_INT.
38298 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
38299 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
38300 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
38301 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
38303 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
38306 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
38307 (gl_PREREQ_XSTRTOUL): Remove.
38309 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
38311 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
38314 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
38316 Add and change modules to make it easier for coreutils to use
38318 * modules/backupfile (Files): Remove m4/d-ino.m4.
38319 (Depends-on): Add d-ino.
38320 * modules/cycle-check (Depends-on): Add stdint.
38321 (lib_SOURCES): Add cycle-check.h.
38322 * modules/d-ino: New module.
38323 * modules/d-type: New module.
38324 * modules/error (Files): Remove m4/strerror_r.m4.
38325 * modules/filemode (Files): Add m4/st_dm_mode.m4.
38326 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
38327 m4/inttypes_h.m4, m4/uintmax_t.m4.
38328 (Depends-on): Add stdint.
38329 (lib_SOURCES): Add fsusage.h.
38330 * modules/getcwd (Files): Remove d-ino.m4.
38331 (Depends-on): Add d-ino.
38332 * modules/getndelim2 (Depends-on): Add stdint.
38333 * modules/glob (Files): Remove m4/d-type.m4.
38334 (Depends-on): Add d-type.
38335 * modules/host-os: New module.
38336 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
38337 m4/inttypes_h.m4, m4/uintmax_t.m4.
38338 * Depends-on: Add stdint.
38339 (lib_SOURCES): Add human.h.
38340 * modules/inttostr (Files): Remove m4/intmax_t.m4,
38341 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
38342 m4/uintmax_t.m4, m4/ulonglong.m4.
38343 (Depends-on): Add stdint.
38344 (EXTRA_DIST): Add inttostr.h.
38345 * modules/lchmod: New module.
38346 * modules/link-follow: New module.
38347 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
38348 (Depends-on): Add lchmod.
38349 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
38350 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
38351 (Depends-on): Add stdint.
38352 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
38353 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
38354 (Depends-on): Add stdint.
38355 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
38356 * modules/perl: New module.
38357 * modules/regex (Depends-on): Add stdint.
38358 * modules/rmdir-errno: New module.
38359 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38361 (Depends-on): Add stdint.
38362 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38364 (Depends-on): Add stdint.
38365 * modules/unlink-busy: New module.
38366 * modules/utimecmp (Depends-on): Add stdint.
38367 * modules/uptime: New module.
38368 * modules/winsz-ioctl: New module.
38369 * modules/winsz-termios: New module.
38370 * modules/xnanosleep (Depends-on): Add nanosleep.
38371 * modules/ullong_max: Remove.
38372 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
38373 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
38374 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
38375 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
38376 (Depends-on): Add inttypes.
38377 (lib_SOURCES): Add xstrtol.h.
38378 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
38379 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
38380 * MODULES.html.sh: Move 'assert' into the assert section.
38381 Move 'dummy' into the linking section.
38383 Add section for compatibility checks for POSIX:2001 functions,
38384 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
38385 winsz-ioctl, and winsz-termios into it.
38387 Add top-level Misc section and put host-os, perl, and uptime
38390 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
38392 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
38393 now assume the stdint module. Do not include inttypes.h.
38394 * lib/fsusage.h: Likewise.
38395 * lib/getndelim2.c: Likewise.
38396 * lib/human.h: Likewise.
38397 * lib/inttostr.h: Likewise.
38398 * lib/obstack.c: Likewise.
38399 * lib/regex_internal.h: Likewise.
38400 * lib/tempname.c: Likewise.
38401 * lib/utimecmp.c: Likewise.
38402 * lib/xstrtol.h: Likewise.
38404 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
38406 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
38407 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
38408 * lib/xtime.h: Likewise.
38410 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
38412 * modules/openat (Files): Add lib/fchmodat.c.
38413 Fixes problem reported by Jay Youngman.
38415 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
38417 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
38418 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
38420 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
38421 Bruno Haible <bruno@clisp.org>
38423 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
38424 and is a script that invokes bison. Tighten the code. Add comments.
38426 2006-08-18 Jim Meyering <jim@meyering.net>
38428 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
38429 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
38430 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
38431 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
38433 2006-08-18 Bruno Haible <bruno@clisp.org>
38435 * modules/bison-i18n: New file.
38436 * MODULES.html.sh (Internationalization functions): Add it.
38438 2006-08-18 Bruno Haible <bruno@clisp.org>
38440 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
38441 sys/statvfs.h. When getmntinfo was found, check its declaration and
38442 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
38444 2006-08-18 Bruno Haible <bruno@clisp.org>
38446 * m4/bison-i18n.m4: New file, from bison.
38448 2006-08-18 Bruno Haible <bruno@clisp.org>
38450 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
38451 (ME_DUMMY): Treat "kernfs" as a dummy.
38452 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
38454 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
38456 Update from coreutils.
38458 2006-08-15 Jim Meyering <jim@meyering.net>
38460 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
38462 2006-01-17 Jim Meyering <jim@meyering.net>
38464 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
38466 2006-01-11 Jim Meyering <jim@meyering.net>
38468 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
38469 Check for the lchmod function.
38471 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
38473 Update from coreutils.
38475 * lib/__fpending.h: Add copyright notice.
38476 * lib/fprintftime.h: Likewise.
38477 * lib/savedir.c: Use (C) in copyright notice.
38478 * lib/savedir.h: Likewise.
38480 2006-08-15 Jim Meyering <jim@meyering.net>
38482 * lib/at-func.c: New file, with the logic of all emulated at-functions.
38483 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
38484 in support of the EXPECTED_ERRNO macro.
38485 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
38486 definitions. Instead, define the appropriate symbols and include
38488 * lib/mkdirat.c (mkdirat): Likewise.
38489 * lib/fchmodat.c (fchmodat): Likewise.
38490 (ENOSYS): Remove definition.
38491 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
38492 it. Don't include "unistd--.h" -- it wasn't ever used.
38494 2006-01-17 Jim Meyering <jim@meyering.net>
38496 Rewrite fts.c not to change the current working directory,
38497 by using openat, fstatat, fdopendir, etc..
38499 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
38500 (HAVE_OPENAT_SUPPORT): Define.
38501 [_LIBC] (fchdir): Don't undef or define; no longer used.
38502 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
38503 Now, this `function' always succeeds, and consumes its file descriptor
38504 parameter -- so callers must not close such FDs. Update callers.
38505 (diropen_fd, opendirat, cwd_advance_fd): New functions.
38506 (diropen): Add parameter, SP. Adjust all callers.
38507 Implement using diropen_fd, rather than open.
38508 (fts_open): Initialize new member, fts_cwd_fd.
38509 Remove fts_rft-setting code.
38510 (fts_close): Close fts_cwd_fd, if necessary.
38511 (__opendir2): Define in terms of opendir or opendirat,
38512 depending on whether the FST_NOCHDIR flag is set.
38513 (fts_build): Since fts_safe_changedir consumes its FD, and since
38514 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
38515 and close the dup'd file descriptor upon failure.
38516 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
38517 (fts_safe_changedir): Tweak semantics to reflect that this function
38518 now calls cwd_advance_fd and hence consumes its FD argument.
38519 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
38520 [struct FTS] (fts_rft): Remove now-unused member.
38521 [struct FTS] (fts_cycle.state): Improve comment.
38523 * lib/openat.c (openat_needs_fchdir): New function.
38524 * lib/openat.h (openat_needs_fchdir): Declare it.
38526 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
38528 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
38529 Problem and fix reported by Pádraig Brady in
38530 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
38532 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38534 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
38536 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38538 * lib/memcoll.c (memcoll): Optimize for the common case where the
38539 arguments are bytewise equal.
38541 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38543 * doc/regexprops-generic.texi: Add a copyright notice.
38545 2006-08-15 Bruno Haible <bruno@clisp.org>
38547 * modules/tmpdir (License): Change to LGPL.
38549 2006-08-15 Bruno Haible <bruno@clisp.org>
38551 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
38554 2006-08-14 Simon Josefsson <jas@extundo.com>
38556 * config/srclist.txt: Add gnupload.
38558 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38560 Change copyright notice from LGPL 2 to GPL 2, since that's the
38561 standard form used in the gnulib repository.
38562 * tests/test-lock.c: Likewise.
38563 * tests/test-stdint.c: Likewise.
38564 * tests/test-tls.c: Likewise.
38566 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
38567 prelude-manager. User shorter URLs for GNU projects, without '?'.
38568 Add copyright notice.
38570 * check-module: Add copyright notice. Output a copyright
38571 notice if "--version" is specified.
38572 * modules/COPYING: New file.
38573 * tests/test-getaddrinfo.c: Add copyright notice.
38574 * tests/test-verify.c: Likewise.
38576 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38578 Change copyright notice from LGPL 2 to GPL 2, since that's the
38579 standard form used in the gnulib repository.
38580 * lib/lock.c: LGPL -> GPL.
38581 * lib/lock.h: Likewise.
38582 * lib/strnlen1.c: Likewise.
38583 * lib/strnlen1.h: Likewise.
38584 * lib/tls.c: Likewise.
38585 * lib/tls.h: Likewise.
38586 * lib/tmpdir.c: Likewise.
38588 * lib/TODO: Remove; this belongs only in coreutils.
38590 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38592 Add copyright notices to long-enough files that lack them, since
38593 otherwise the files aren't clearly free. Use the same notice that
38594 getdate.texi already uses.
38595 * doc/alloca-opt.texi: Add copyright notice.
38596 * doc/alloca.texi: Likewise.
38597 * doc/ctime.texi: Likewise.
38598 * doc/functions.texi: Likewise.
38599 * doc/gcd.texi: Likewise.
38600 * doc/gnulib-tool.texi: Likewise.
38601 * doc/inet_ntoa.texi: Likewise.
38602 * doc/visibility.texi: Likewise.
38604 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
38605 * doc/quote.texi: Add copyright notice.
38607 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
38608 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
38609 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
38610 Mention SunOS 5.11. Mention that everything before SunOS 5.7
38611 is now obsolete, and give a pointer to the Sun list.
38612 Add copyright notice.
38614 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38616 * config/srclistvars.sh: Add copyright notice.
38618 2006-08-14 Eric Blake <ebb9@byu.net>
38620 Import the following change from libc:
38622 2006-08-12 Ulrich Drepper <drepper@redhat.com>
38625 * lib/misc/error.c: Add space between program name and message if file
38628 2006-08-12 Karl Berry <karl@gnu.org>
38630 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
38631 remove, these originate in gnulib now.
38633 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38635 * doc/Makefile (standards.info standards.html standards.dvi):
38636 Also depend on make-stds.texi.
38638 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
38640 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
38641 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
38643 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
38644 in wchar_t. Problem reported by Eric Blake.
38646 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
38647 LEN is smaller than SIZE. Suggested by Bruno Haible.
38648 Also, help the compiler to keep LEN in a register.
38650 2006-08-11 Eric Blake <ebb9@byu.net>
38652 * users.txt: Sort. Add tar.
38654 2006-08-11 Bruno Haible <bruno@clisp.org>
38656 * users.txt: New file.
38658 2006-08-11 Bruno Haible <bruno@clisp.org>
38660 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
38661 before <wchar.h>. Needed for OSF/1 and BSD/OS.
38663 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
38665 * modules/snprintf (Depends-on): Remove minmax.
38666 (Maintainer): Add self and Bruno.
38668 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
38670 * lib/.cppi-disable: Add snprintf.h, socket_.h.
38671 * lib/snprintf.c: Include <errno.h> and <limits.h>.
38672 (EOVERFLOW): Define if the system does not.
38673 Do not include "minmax.h"; it wasn't used.
38674 (snprintf): Don't assume size_t promotes to an unsigned type.
38675 Fix bug when generated string was too long for the buffer: the
38676 buffer's contents are supposed to be the initial prefix of the
38677 output. Don't assume vasnprintf returns EOVERFLOW if the size
38678 exceeds INT_MAX; do the check ourselves.
38680 Import the following changes from libc:
38682 2006-06-02 Jakub Jelinek <jakub@redhat.com>
38684 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
38685 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
38686 set wc to the byte which couldn't be converted.
38687 (re_string_reconstruct): Don't clear valid_raw_len before calling
38688 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
38689 tip_context using re_string_context_at.
38691 2006-05-02 Ulrich Drepper <drepper@redhat.com>
38693 * lib/posix/regex.h: g++ still cannot handled [restrict].
38695 2006-04-21 Ulrich Drepper <drepper@redhat.com>
38697 * lib/posix/regex.h: Remove special handling for VMS.
38699 2006-08-10 Jim Meyering <jim@meyering.net>
38701 * modules/same-inode: New module.
38702 * modules/dev-ino: New module.
38703 * modules/cycle-check: Depend on these modules, rather than simply
38704 including their .h files.
38705 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
38706 required via m4/cycle-check.m4.
38707 * modules/same: Depend on new same-inode module, rather than
38708 including same-inode.h.
38709 * modules/chdir-safer: New file.
38711 * modules/chown (Depends-on): Add stat-macros.
38713 2006-08-10 Jim Meyering <jim@meyering.net>
38715 * m4/cycle-check.m4: New file.
38716 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
38717 * m4/dev-ino.m4, m4/same-inode.m4: New files.
38719 2006-08-10 Eric Blake <ebb9@byu.net>
38721 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
38722 in from original proposal.
38724 2006-08-10 Eric Blake <ebb9@byu.net>
38725 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38727 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
38730 2006-08-10 Bruno Haible <bruno@clisp.org>
38732 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
38735 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
38737 Sync from coreutils.
38739 2006-07-19 Mike Frysinger <vapier@gentoo.org>
38741 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
38742 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
38744 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
38746 * modules/restrict: Remove; no longer needed now that we assume
38747 Autoconf 2.59 or later.
38748 * MODULES.html.sh: Remove 'restrict'.
38749 * modules/argp (Depends-on): Remove 'restrict'.
38750 * modules/base64 (Depends-on): Likewise.
38751 * modules/gc (Depends-on): Likewise.
38752 * modules/getaddrinfo (Depends-on): Likewise.
38753 * modules/glob (Depends-on): Likewise.
38754 * modules/inet_ntop (Depends-on): Likewise.
38755 * modules/inet_pton (Depends-on): Likewise.
38756 * modules/memxor (Depends-on): Likewise.
38757 * modules/regex (Depends-on): Likewise.
38758 * modules/strtok_r (Depends-on): Likewise.
38759 * modules/time_r (Depends-on): Likewise.
38761 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
38763 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
38764 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
38765 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
38766 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
38767 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
38768 * m4/memxor.m4 (gl_MEMXOR): Likewise.
38769 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
38770 gl_C_RESTRICT replaced by AC_C_RESTRICT.
38772 Merge from coreutils.
38773 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
38774 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
38775 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
38776 * m4/time_r.m4 (gl_TIME_R): Likewise.
38778 2006-08-09 Karl Berry <karl@gnu.org>
38780 * config/srclist.txt: no more gettext-tools, per Bruno.
38782 2006-08-08 Eric Blake <ebb9@byu.net>
38784 * modules/verror: New module.
38785 * MODULES.html.sh: Document it.
38787 2006-08-08 Eric Blake <ebb9@byu.net>
38789 * lib/verror.h, lib/verror.c: New files.
38791 2006-08-08 Eric Blake <ebb9@byu.net>
38793 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
38794 verror_at_line output complies with GNU Coding Standards even when
38797 2006-08-07 Bruno Haible <bruno@clisp.org>
38799 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
38801 Reported by Ralf Wildenhues.
38803 2006-08-07 Bruno Haible <bruno@clisp.org>
38805 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
38806 in an AC_DEFUN. Needed so that the autoconf snippets can use
38809 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38811 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38812 Initialize pkgdata_DATA.
38813 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
38816 2006-08-06 Eric Blake <ebb9@byu.net>
38818 * lib/error.h: Fold in some upstream changes from glibc.
38819 * lib/error.c: Likewise.
38821 2006-08-04 Bruno Haible <bruno@clisp.org>
38823 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38824 Make the mostlyclean-local rule depend on mostlyclean-generic.
38825 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
38827 2006-07-31 Bruno Haible <bruno@clisp.org>
38829 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
38830 <stdlib.h>, <string.h>.
38832 2006-07-30 Bruno Haible <bruno@clisp.org>
38834 * modules/readlink (License): Change to LGPL.
38836 2006-07-30 Bruno Haible <bruno@clisp.org>
38838 * modules/javaversion (Makefile.am): Distribute javaversion.java and
38839 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
38840 set PKGDATADIR to point to it.
38842 2006-07-30 Bruno Haible <bruno@clisp.org>
38844 * modules/csharpexec (configure.ac): Comment out macro invocation.
38845 * modules/javaexec (configure.ac): Likewise.
38846 * modules/javacomp-script (configure.ac): Likewise.
38848 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
38850 2006-07-30 Bruno Haible <bruno@clisp.org>
38852 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
38855 2006-07-30 Bruno Haible <bruno@clisp.org>
38857 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
38859 2006-07-30 Bruno Haible <bruno@clisp.org>
38861 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38862 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
38865 2006-07-29 Bruno Haible <bruno@clisp.org>
38867 Make it possible for gnulib-tool to work with locally modified or
38868 augmented gnulib repositories.
38869 * gnulib-tool (func_usage): Document --local-dir option.
38870 (local_gnulib_dir): New variable.
38871 Handle --local-dir option.
38872 (func_lookup_file): New function.
38873 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
38874 (func_get_description, func_get_filelist, func_get_description,
38875 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
38876 func_get_automake_snippet, func_get_include_directive,
38877 func_get_license, func_get_maintainer): Use func_lookup_file.
38878 (func_import, func_create_testdir): Use func_lookup_file.
38880 2006-07-29 Bruno Haible <bruno@clisp.org>
38882 * modules/setenv (Depends-on): Add unistd.
38884 2006-07-29 Bruno Haible <bruno@clisp.org>
38886 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
38888 2006-07-29 Bruno Haible <bruno@clisp.org>
38890 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
38892 2006-07-29 Bruno Haible <bruno@clisp.org>
38894 * gnulib-tool (import, update): If there is no Makefile.am, look at
38895 aclocal.m4, instead of bailing out.
38897 2006-07-29 Bruno Haible <bruno@clisp.org>
38899 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
38900 Categorize the options by when they are useful.
38902 2006-07-29 Bruno Haible <bruno@clisp.org>
38904 * gnulib-tool (func_usage): Document option --no-libtool.
38905 Handle option --no-libtool.
38906 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
38907 for changed semantics of $libtool variable.
38908 (func_import): Likewise. If libtool is not used, show this through
38909 an option --no-libtool.
38910 (func_create_testdir): Update.
38912 2006-07-29 Bruno Haible <bruno@clisp.org>
38914 * gnulib-tool (func_import): Extend error message about missing
38917 2006-07-29 Bruno Haible <bruno@clisp.org>
38919 * gnulib-tool (func_import): Don't create the $docbase directory if
38920 there is no file to store there.
38922 2006-07-29 Bruno Haible <bruno@clisp.org>
38924 * gnulib-tool (autoconf_minversion): If a --dir option is given and
38925 relevant, look for configure.ac there, not in the current directory.
38926 Also use a simple search for AC_PREREQ, not "autoconf --trace".
38928 2006-07-29 Bruno Haible <bruno@clisp.org>
38930 * gnulib-tool (SORT): New variable.
38931 (func_usage): Undocument --assume-autoconf option.
38932 Remove --assume-autoconf option handling.
38933 (autoconf_minversion): Determine from the contents of configure.ac.
38934 (func_import): Remove autoconf_minversion handling.
38935 Suggested by Eric Blake.
38937 2006-07-29 Bruno Haible <bruno@clisp.org>
38939 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
38941 2006-07-29 Bruno Haible <bruno@clisp.org>
38943 * config/srclist.txt (*setenv.[ch]): Remove rules.
38945 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38947 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
38949 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38951 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
38954 2006-07-28 Simon Josefsson <jas@extundo.com>
38956 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
38957 * modules/inet_pton (Depends-on): Likewise.
38959 2006-07-28 Simon Josefsson <jas@extundo.com>
38961 * m4/netinet_in_h.m4: New file.
38963 2006-07-28 Simon Josefsson <jas@extundo.com>
38965 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
38968 2006-07-28 Simon Josefsson <jas@extundo.com>
38970 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
38973 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
38975 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
38976 setgid on directories only if they set these bits.
38977 * lib/modechange.h: Remove obsolete comment about masks.
38979 2006-07-28 Eric Blake <ebb9@byu.net>
38981 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
38984 2006-07-28 Bruno Haible <bruno@clisp.org>
38986 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
38988 2006-07-28 Bruno Haible <bruno@clisp.org>
38990 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
38992 2006-07-28 Bruno Haible <bruno@clisp.org>
38994 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
38995 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
38997 Avoids link error on FreeBSD 4.x.
38998 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39000 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
39002 * lib/mbswidth.c (iswcntrl): Likewise.
39004 2006-07-27 Bruno Haible <bruno@clisp.org>
39006 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
39009 2006-07-27 Bruno Haible <bruno@clisp.org>
39011 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
39012 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
39015 2006-07-26 Eric Blake <ebb9@byu.net>
39017 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
39019 2006-07-26 Eric Blake <ebb9@byu.net>
39021 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
39022 like mingw that lack mkstemp.
39023 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
39024 avoid compilation warning on mingw.
39026 2006-07-26 Bruno Haible <bruno@clisp.org>
39028 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
39029 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
39030 INT_FAST*_MIN, INTPTR_MIN.
39032 2006-07-25 Bruno Haible <bruno@clisp.org>
39034 * modules/version-etc (Depends-on): Add stdarg.
39036 2006-07-25 Bruno Haible <bruno@clisp.org>
39038 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
39041 2006-07-25 Bruno Haible <bruno@clisp.org>
39043 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
39044 defined in <stdarg.h> or config.h.
39046 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
39048 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
39049 (gl_STDIO_SAFER): Remove.
39051 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
39053 * MODULES.html.sh (File stream based Input/Output):
39054 Add fopen-safer, tmpfile-safer; remove stdio-safer.
39055 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
39056 * modules/fopen-safer, modules/tmpfile-safer: New files.
39057 * modules/stdio-safer: Remove.
39059 2006-07-24 Bruno Haible <bruno@clisp.org>
39061 * modules/tmpdir: New file.
39062 * MODULES.html.sh (File system functions): Add it.
39064 2006-07-24 Bruno Haible <bruno@clisp.org>
39066 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
39067 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
39069 2006-07-24 Bruno Haible <bruno@clisp.org>
39071 * modules/clean-temp: New file.
39073 2006-07-24 Bruno Haible <bruno@clisp.org>
39075 * m4/tmpdir.m4: New file, from GNU gettext.
39077 2006-07-24 Bruno Haible <bruno@clisp.org>
39079 * lib/tmpdir.h: New file, from GNU gettext.
39080 * lib/tmpdir.c: New file, from GNU gettext.
39082 2006-07-24 Bruno Haible <bruno@clisp.org>
39084 * lib/clean-temp.h: New file, from GNU gettext.
39085 * lib/clean-temp.c: New file, from GNU gettext.
39087 2006-07-23 Eric Blake <ebb9@byu.net>
39089 * modules/stdio-safer (Files): Add tmpfile-safer.c.
39090 (Depends-on): Add binary-io.
39092 2006-07-23 Eric Blake <ebb9@byu.net>
39094 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
39096 2006-07-23 Eric Blake <ebb9@byu.net>
39098 * lib/tmpfile-safer.c: New file.
39099 * lib/stdio-safer.h (fopen_safer): Add prototype.
39100 * lib/stdio--.h (tmpfile): Make safer.
39102 2006-07-23 Bruno Haible <bruno@clisp.org>
39104 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
39105 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
39106 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
39107 gl_linked_remove_at): Use it.
39109 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39110 and Simon Josefsson <jas@extundo.com>
39112 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
39114 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
39116 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
39118 * modules/close-stream: New file.
39119 * modules/closeout (Description): Make it clear that it exits
39120 with a diagnostic on error.
39121 (Depends-on): Add close-stream. Remove fpending, stdbool.
39122 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
39124 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
39126 * m4/close-stream.m4: New file.
39128 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
39130 * lib/close-stream.c, lib/close-stream.h: New files.
39132 2006-07-22 Bruno Haible <bruno@clisp.org>
39134 Merge from GNU gettext 0.15.
39136 2006-05-01 Bruno Haible <bruno@clisp.org>
39138 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
39140 2006-07-22 Bruno Haible <bruno@clisp.org>
39142 * modules/javaversion: New file.
39143 * MODULES.html.sh (Java): Add javaversion.
39145 2006-03-12 Bruno Haible <bruno@clisp.org>
39147 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
39149 2005-12-04 Bruno Haible <bruno@clisp.org>
39151 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
39154 2006-06-21 Bruno Haible <bruno@clisp.org>
39156 Avoid warnings from recent versions of mcs.
39157 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
39158 -o, -L, -r any more. Use options documented since mcs-1.0
39159 instead. Similarly for -g.
39161 2005-12-04 Bruno Haible <bruno@clisp.org>
39163 * build-aux/csharpcomp.sh.in: Suffix for resources is
39164 .resources, not .resource.
39166 2005-07-09 Bruno Haible <bruno@clisp.org>
39168 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
39170 Reported by Mark Junker <mjscod@gmx.de>.
39172 2006-07-22 Bruno Haible <bruno@clisp.org>
39174 * modules/gettext: Upgrade to gettext-0.15.
39175 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
39177 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
39179 2006-07-22 Bruno Haible <bruno@clisp.org>
39181 Merge from GNU gettext 0.15.
39183 2006-03-25 Bruno Haible <bruno@clisp.org>
39185 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
39187 2006-07-21 Bruno Haible <bruno@clisp.org>
39189 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
39192 2006-05-09 Bruno Haible <bruno@clisp.org>
39194 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
39195 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
39196 for the conftestver execution.
39198 2006-05-01 Bruno Haible <bruno@clisp.org>
39200 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
39201 optional target-version argument. Verify that the compiler
39202 groks source of the specified source-version, or add -source
39203 option as necessary. Verify that the compiler produces
39204 bytecode in the specified target-version, or add -target and
39205 -source options as necessary. Make the result of the test
39206 available as variable CONF_JAVAC. Also log error output in
39209 2006-03-11 Bruno Haible <bruno@clisp.org>
39211 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
39213 2006-05-09 Bruno Haible <bruno@clisp.org>
39215 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
39216 CLASSPATH_SEPARATOR to a semicolon.
39218 2006-03-12 Bruno Haible <bruno@clisp.org>
39220 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
39221 available as variable CONF_JAVA, for subsequent autoconf
39222 tests. Also log error output in config.log.
39224 2006-07-19 Bruno Haible <bruno@clisp.org>
39226 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
39227 that getline works on glibc2 systems. Needed to avoid trouble
39229 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
39231 2005-12-04 Bruno Haible <bruno@clisp.org>
39233 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
39234 launcher (untested).
39236 2005-12-04 Bruno Haible <bruno@clisp.org>
39238 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
39240 2006-07-22 Bruno Haible <bruno@clisp.org>
39242 * gettext.m4: Update from GNU gettext-0.15.
39243 * nls.m4: Likewise.
39245 * inttypes-pri.m4: Likewise.
39246 * inttypes-h.m4: Renamed from inttypes.m4.
39247 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
39249 2006-07-22 Bruno Haible <bruno@clisp.org>
39251 Merge from GNU gettext 0.15.
39253 2005-07-05 Bruno Haible <bruno@clisp.org>
39255 * printf-args.c (printf_fetchargs): Work around broken
39256 definition of wint_t on mingw.
39258 2005-02-12 Bruno Haible <bruno@clisp.org>
39260 * xallocsa.h: Add extern "C" for C++.
39262 2006-05-17 Bruno Haible <bruno@clisp.org>
39264 Cygwin portability.
39265 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
39267 2006-04-30 Bruno Haible <bruno@clisp.org>
39269 * progreloc.c: Include <mach-o/dyld.h> if available.
39270 (find_executable): Use _NSGetExecutablePath when possible.
39272 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
39274 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
39277 2005-12-29 Bruno Haible <bruno@clisp.org>
39279 * progreloc.c (set_program_name_and_installdir): Fix
39282 2005-12-04 Bruno Haible <bruno@clisp.org>
39284 Cygwin portability.
39285 * progreloc.c: Include <windows.h> also on Cygwin.
39286 (find_executable): Add support for Cygwin.
39287 (set_program_name_and_installdir): Handle also platforms with
39290 2006-07-11 Bruno Haible <bruno@clisp.org>
39292 * javacomp.c: Fix a comment.
39293 Reported by Jim Meyering.
39295 2006-04-30 Bruno Haible <bruno@clisp.org>
39297 * javacomp.h (compile_java_class): Add source_version,
39298 target_version arguments.
39299 * javacomp.c: Rewritten to choose only a compiler that
39300 respects the specified source_version and target_version.
39302 2006-06-27 Bruno Haible <bruno@clisp.org>
39304 Assume correct S_ISDIR macro.
39305 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
39307 2006-07-22 Bruno Haible <bruno@clisp.org>
39309 * javaversion.h: New file, from GNU gettext.
39310 * javaversion.c: New file, from GNU gettext.
39311 * javaversion.java: New file, from GNU gettext.
39312 * javaversion.class: New file, from GNU gettext.
39314 2006-05-17 Bruno Haible <bruno@clisp.org>
39316 Cygwin portability.
39317 * javaexec.c (execute_java_class): Test for jview program
39320 2006-04-09 Bruno Haible <bruno@clisp.org>
39322 * fatal-signal.c: Don't include string.h.
39323 (at_fatal_signal): Use a copying loop instead of memcpy.
39325 2005-12-04 Bruno Haible <bruno@clisp.org>
39327 * csharpexec.c: Add support for 'clix' launcher (untested).
39328 (execute_csharp_using_sscli): New function.
39329 (execute_csharp_program): Call it.
39331 2006-06-21 Bruno Haible <bruno@clisp.org>
39333 Avoid warnings from recent versions of mcs.
39334 * csharpcomp.c (compile_csharp_using_mono): Don't use options
39335 -o, -L, -r any more. Use options documented since mcs-1.0
39336 instead. Similarly for -g.
39338 2005-07-09 Bruno Haible <bruno@clisp.org>
39340 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
39342 Reported by Mark Junker <mjscod@gmx.de>.
39344 2006-06-17 Bruno Haible <bruno@clisp.org>
39346 * config.charset: Update for NetBSD 3.0.
39348 2006-05-17 Bruno Haible <bruno@clisp.org>
39350 Cygwin portability.
39351 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
39353 2006-05-16 Bruno Haible <bruno@clisp.org>
39355 * localcharset.c [CYGWIN]: Include <windows.h>.
39356 (get_charset_aliases): For Cygwin, return the same CPxxx
39357 aliases list as under WIN32.
39358 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
39359 the environment variables. Fall back to GetACP().
39361 2006-04-05 Bruno Haible <bruno@clisp.org>
39363 * config.charset: Update Juan Manuel Guerrero's address.
39365 2005-02-12 Bruno Haible <bruno@clisp.org>
39367 * allocsa.h: Add extern "C" for C++.
39369 2005-02-10 Bruno Haible <bruno@clisp.org>
39371 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
39372 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
39374 2006-07-22 Bruno Haible <bruno@clisp.org>
39376 * gettext.h: Update to GNU gettext-0.15.
39378 2006-07-22 Bruno Haible <bruno@clisp.org>
39380 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
39381 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
39382 lib-prefix.m4, longdouble.m4, ssize_t.m4.
39384 2006-07-21 Eric Blake <ebb9@byu.net>
39386 * modules/stdlib-safer: New file.
39387 * MODULES.html.sh (File stream based Input/Output): Add
39390 2006-07-21 Eric Blake <ebb9@byu.net>
39392 * lib/stdlib-safer.h: New file from coreutils, required by
39395 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
39397 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
39399 2006-07-20 Bruno Haible <bruno@clisp.org>
39401 * gnulib-tool: Recognize new option --assume-autoconf.
39402 (autoconf_minversion): New variable.
39403 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
39405 2006-07-20 Bruno Haible <bruno@clisp.org>
39407 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
39409 2006-07-19 Derek R. Price <derek@ximbiot.com>
39411 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
39412 Reindent and repaginate.
39414 2006-07-19 Derek Price <derek@ximbiot.com>
39416 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
39419 2006-07-17 Bruno Haible <bruno@clisp.org>
39421 * modules/list: New file.
39422 * modules/array-list: New file.
39423 * modules/carray-list, modules/carray-list-tests: New files.
39424 * modules/linked-list, modules/linked-list-tests: New files.
39425 * modules/avltree-list, modules/avltree-list-tests: New files.
39426 * modules/rbtree-list, modules/rbtree-list-tests: New files.
39427 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
39428 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
39429 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
39430 * modules/oset: New file.
39431 * modules/array-oset: New file.
39432 * modules/avltree-oset, modules/avltree-oset-tests: New files.
39433 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
39434 * tests/test-carray_list.c: New file.
39435 * tests/test-linked_list.c: New file.
39436 * tests/test-avltree_list.c: New file.
39437 * tests/test-rbtree_list.c: New file.
39438 * tests/test-linkedhash_list.c: New file.
39439 * tests/test-avltreehash_list.c: New file.
39440 * tests/test-rbtreehash_list.c: New file.
39441 * tests/test-avltree_oset.c: New file.
39442 * tests/test-rbtree_oset.c: New file.
39443 * MODULES.html.sh (Container data structures): New section.
39445 2006-07-17 Bruno Haible <bruno@clisp.org>
39447 * m4/gl_list.m4: New file.
39449 2006-07-17 Bruno Haible <bruno@clisp.org>
39451 * lib/gl_list.h: New file.
39452 * lib/gl_list.c: New file.
39453 * lib/gl_array_list.h: New file.
39454 * lib/gl_array_list.c: New file.
39455 * lib/gl_carray_list.h: New file.
39456 * lib/gl_carray_list.c: New file.
39457 * lib/gl_linked_list.h: New file.
39458 * lib/gl_linked_list.c: New file.
39459 * lib/gl_anylinked_list1.h: New file.
39460 * lib/gl_anylinked_list2.h: New file.
39461 * lib/gl_avltree_list.h: New file.
39462 * lib/gl_avltree_list.c: New file.
39463 * lib/gl_anyavltree_list1.h: New file.
39464 * lib/gl_anyavltree_list2.h: New file.
39465 * lib/gl_rbtree_list.h: New file.
39466 * lib/gl_rbtree_list.c: New file.
39467 * lib/gl_anyrbtree_list1.h: New file.
39468 * lib/gl_anyrbtree_list2.h: New file.
39469 * lib/gl_anytree_list1.h: New file.
39470 * lib/gl_anytree_list2.h: New file.
39471 * lib/gl_linkedhash_list.h: New file.
39472 * lib/gl_linkedhash_list.c: New file.
39473 * lib/gl_anyhash_list1.h: New file.
39474 * lib/gl_anyhash_list2.h: New file.
39475 * lib/gl_avltreehash_list.h: New file.
39476 * lib/gl_avltreehash_list.c: New file.
39477 * lib/gl_rbtreehash_list.h: New file.
39478 * lib/gl_rbtreehash_list.c: New file.
39479 * lib/gl_anytreehash_list1.h: New file.
39480 * lib/gl_anytreehash_list2.h: New file.
39482 * lib/gl_oset.h: New file.
39483 * lib/gl_oset.c: New file.
39484 * lib/gl_array_oset.h: New file.
39485 * lib/gl_array_oset.c: New file.
39486 * lib/gl_avltree_oset.h: New file.
39487 * lib/gl_avltree_oset.c: New file.
39488 * lib/gl_rbtree_oset.h: New file.
39489 * lib/gl_rbtree_oset.c: New file.
39490 * lib/gl_anytree_oset.h: New file.
39492 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
39494 * m4/mkancesdirs.m4: New file.
39495 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
39496 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
39497 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
39500 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
39502 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
39503 * lib/mkancesdirs.h: New files.
39504 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
39505 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
39506 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
39507 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
39508 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
39509 callers changed. Revamp internals significantly, by not
39510 attempting to create directories that are temporarily more
39511 permissive than the final results. Do not attempt to use
39512 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
39513 This removes some race conditions, fixes some bugs, and simplifies
39514 things. Use new dirchownmod function to do owner and mode changes.
39515 * lib/mkdir-p.h: Likewise.
39516 * lib/modechange.c (octal_to_mode): New function.
39517 (struct mode_change): New member mentioned.
39518 (make_node_op_equals): New arg mentioned. All callers changed.
39519 (mode_compile): Keep track of which mode bits the user has explicitly
39521 (mode_adjust): New arg DIR, so that we implement the X op correctly.
39522 New arg PMODE_BITS, to keep track of which mode bits the user
39523 mentioned; it treats S_ISUID and S_ISGID speciall.
39524 All callers changed.
39525 * lib/modechange.h: Likewise.
39527 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
39529 * MODULES.html.sh: Add mkancestors.
39530 * modules/mkancesdirs: New module.
39531 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
39532 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
39533 The chdir-safer and afs files are now orphans; I'll remove them
39534 unless someone speaks up.
39535 Add lib/dirchownmod.c, lib/dirchownmod.h.
39536 (Depends-on): Remove alloca, chown, save-cwd, dirname.
39537 Add lchown, mkancesdirs.
39538 (Maintainer): Add self.
39540 2006-07-15 Karl Berry <karl@gnu.org>
39542 * gnulib-tool: help message wording/arrangement.
39544 2006-07-14 Simon Josefsson <jas@extundo.com>
39546 * doc/gnulib.texi (Libtool and Windows): New section.
39548 2006-07-12 Simon Josefsson <jas@extundo.com>
39550 * modules/gendocs (License): Fix license, approved by Karl.
39552 2006-07-12 Eric Blake <ebb9@byu.net>
39554 * MODULES.html.sh: Add gendocs.
39556 2006-07-11 Eric Blake <ebb9@byu.net>
39558 * modules/fdl: New module, to install doc/fdl.texi.
39559 * MODULES.html.sh: Add new section for documentation modules.
39560 * gnulib-tool: Avoid space-tab.
39561 (--doc-base): New option, to manage files from doc.
39563 2006-07-11 Eric Blake <ebb9@byu.net>
39565 * m4/absolute-header.m4: Fix comments to match recent change.
39567 2006-07-11 Eric Blake <ebb9@byu.net>
39569 * gnulib-tool: List --doc-base before --tests-base.
39571 2006-07-11 Derek R. Price <derek@ximbiot.com>
39573 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
39575 2006-07-11 Bruno Haible <bruno@clisp.org>
39577 * README: Mention where to put documentation.
39579 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39581 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
39583 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
39585 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
39588 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
39590 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
39591 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
39592 "no/such/file/stdint.h" when there is no such file, so that
39593 the resulting C code can be parsed by dodgy compilers.
39594 Problems reported by Bob Proulx.
39596 2006-07-10 Derek R. Price <derek@ximbiot.com>
39598 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
39599 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
39600 macros into the GNU _D_EXACT_NAMLEN.
39601 * lib/savedir.c: Likewise.
39602 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
39604 2006-07-10 Derek R. Price <derek@ximbiot.com>
39605 and Paul Eggert <eggert@cs.ucla.edu>
39607 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
39609 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
39610 macros into the GNU _D_EXACT_NAMLEN.
39612 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
39614 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
39615 around the absolute name, to work around a problem with the HP-UX
39616 11.23 native C compiler, reported by Bob Proulx.
39618 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
39620 * doc/maintain.texi, make-stds.texi: Sync from
39621 <http://savannah.gnu.org/projects/gnustandards>.
39623 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
39625 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
39627 2006-07-09 Jim Meyering <jim@meyering.net>
39629 * m4/glob.m4: Remove a doubled word in a comment.
39631 2006-07-09 Jim Meyering <jim@meyering.net>
39633 * lib/argp-pv.c: Remove a doubled word in a comment.
39634 * lib/check-version.c (check_version): Likewise.
39635 * lib/javacomp.c (compile_java_class): Likewise.
39637 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
39639 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
39640 for the benefit of people using Autoconf 2.60. If you want to
39641 support older Autoconf versions you can copy m4/onceonly_2_57.m4
39642 (or m4/onceonly.m4, if pre-2.57) manually.
39644 2006-07-08 Jim Meyering <jim@meyering.net>
39646 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
39648 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
39649 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
39652 2006-07-08 Jim Meyering <jim@meyering.net>
39654 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
39656 2006-07-07 Simon Josefsson <jas@extundo.com>
39658 * tests/test-crc.c: Change expected crc value, the test vector
39659 were probably computed using the old broken crc.c?
39661 2006-07-06 Simon Josefsson <jas@extundo.com>
39663 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
39664 now the canonical place for the M4 file).
39666 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
39667 from the sys_socket dependency now.
39669 * modules/inet_pton (Files): Ditto.
39671 * modules/inet_ntop (Files): Ditto.
39673 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
39675 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
39676 not gl_PREREQ_GETUSERSHELL.
39678 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39680 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
39681 with only one argument, for Autoconf 2.60.
39682 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
39683 expand to nothing, so add a shell command to avoid syntax error.
39684 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
39686 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39688 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
39690 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
39692 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
39693 no longer needed. Check for isblank decl.
39694 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
39695 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
39698 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
39700 * lib/getloadavg.c: Use __VMS, not VMS.
39701 * lib/getopt.c: Likewise.
39702 * lib/getpagesize.h: Likewise.
39703 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
39704 and probably does not work.
39706 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
39708 * lib/.cppi-disable: Add wcwidth.
39709 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
39710 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
39711 (ISGRAPH): Remove. All uses changed to isgraph.
39712 (FOLD) [!defined _LIBC]: Remove special case.
39713 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
39714 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
39716 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
39719 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
39721 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
39722 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
39723 brackets. Other minor changes to suppress some compiler
39726 2006-07-06 Derek R. Price <derek@ximbiot.com>
39727 and Paul Eggert <eggert@cs.ucla.edu>
39729 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
39730 of invoking obsolescent AC_HEADER_DIRENT macro.
39731 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
39732 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
39733 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
39734 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
39735 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
39736 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39737 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
39738 * m4/readdir.m4: Remove; no longer needed.
39740 2006-07-06 Derek R. Price <derek@ximbiot.com>
39741 and Paul Eggert <eggert@cs.ucla.edu>
39743 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
39744 Don't worry about this obsolete case any more.
39745 (HAVE_DIR): Remove. All uses removed; we now assume you can read
39747 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
39748 worry about this obsolete case any more.
39749 * lib/fts.c: Likewise.
39750 * lib/getcwd.c: Likewise.
39751 * lib/glob.h: Likewise.
39752 * lib/savedir.c: Likewise.
39754 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
39756 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
39757 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
39758 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
39761 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
39762 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
39763 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
39765 * m4/getdate.m4 (gl_GETDATE): Likewise.
39766 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
39767 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
39768 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
39769 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
39770 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
39771 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39772 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
39775 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
39777 * lib/memcasecmp.c: Include <limits.h>.
39778 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
39779 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
39780 Don't assume isdigit succeeds only on '0' through '9'.
39782 2006-07-05 Eric Blake <ebb9@byu.net>
39784 * modules/getaddrinfo (Depends-on): Add snprintf.
39786 2006-07-05 Eric Blake <ebb9@byu.net>
39788 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
39789 to avoid 'header present but could not be compiled' on cygwin.
39791 2006-07-05 Eric Blake <ebb9@byu.net>
39793 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
39794 missing from netdb.h.
39795 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
39797 2006-07-05 Derek R. Price <derek@ximbiot.com>
39799 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
39801 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
39802 * m4/getdate.m4 (gl_GETDATE): Likewise.
39803 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
39804 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
39805 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
39806 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
39807 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39809 2006-07-05 Derek R. Price <derek@ximbiot.com>
39811 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
39812 All uses of is_space replaced by isspace.
39813 * lib/exit.h: Don't talk about STDC_HEADERS.
39814 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
39815 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
39816 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
39817 replaced by isprint etc.
39818 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
39819 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
39820 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
39821 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
39822 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
39823 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
39825 2006-07-05 Bruno Haible <bruno@clisp.org>
39827 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
39828 the function exists, before testing against AIX.
39829 Reported by Martin Lambers <marlam@marlam.de>.
39831 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
39833 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
39834 From Mark D. Baushke.
39836 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
39838 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
39839 to the absolute name, not just one, to bypass Sun C 5.8's
39840 "warning: #include of /usr/include/... may be non-portable".
39842 2006-07-04 Eric Blake <ebb9@byu.net>
39844 * modules/dirname-tests: New test module.
39845 * tests/test-dirname.c: New file, replacing dirname.c
39846 TEST_DIRNAME section that was recently deleted.
39848 2006-07-04 Bruno Haible <bruno@clisp.org>
39850 Assume ANSI C header files and <ctype.h> functions.
39851 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
39852 (mbsnwidth): Use isprint, iscntrl instead.
39854 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
39856 Merge from coreutils.
39857 * MODULES.html.sh: Add xstrtold.
39858 * modules/xstrtold: New file.
39859 * modules/cycle-check (Files): Add lib/same-inode.h.
39860 * modules/dirname (Files): Add m4/double-slash-root.m4.
39861 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
39862 * modules/mkdir-p (Files): Add lib/same-inode.h.
39863 * modules/same (Files): Add lib/same-inode.h.
39865 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
39867 * m4/absolute-header.m4: Renamed from full-header-path.m4.
39868 This is to keep the terminology clean; POSIX talks about
39869 "absolute pathnames", not "full pathnames", but the GNU
39870 Coding Standards say to use "path" for something else;
39871 so use "absolute" to keep both sides happy.
39872 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
39873 Set gl_absolute_header, not gl_full_header_path.
39874 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
39875 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
39878 Merge from coreutils.
39880 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
39882 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
39883 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
39884 want to require the building of c-strtod.o.
39885 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
39886 needs -lm directly.
39887 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
39889 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
39891 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
39892 --as-needed option if available. Problem reported by Albert Chin in
39893 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
39894 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
39895 cc merely issues a bunch of annoying warnings for --as-needed
39896 (this problem was reported by Bob Proulx). Also, try linking with
39897 -lm to detect a bug in binutils 2.16 (this problem was reported
39898 by Ralf Wildenhues).
39900 2006-06-18 Jim Meyering <jim@meyering.net>
39902 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
39903 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
39905 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
39906 also check for glibc-2.4's abort-inducing bug.
39908 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
39909 Low-probability clean-up should be to use rmdir to get rid of
39910 the just-created directory, not unlink.
39912 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
39913 configure fail, and request a bug report to inform us about it.
39914 Add a comment that, barring reports to the contrary, in 2007 we'll
39915 assume ftruncate is universally available.
39917 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
39919 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
39921 2006-03-12 Jim Meyering <jim@meyering.net>
39923 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
39924 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
39925 * m4/same.m4 (gl_SAME): Likewise.
39926 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
39928 2006-03-11 Eric Blake <ebb9@byu.net>
39930 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
39931 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
39932 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
39933 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
39935 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
39937 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
39938 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
39939 reported by Mark D. Baushke, one in
39940 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
39942 Merge from coreutils.
39944 * lib/.cppi-disable: Add stdint_.h.
39945 * lib/.cvsignore: Add stdint.h.
39947 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
39949 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
39950 both double and long double versions.
39951 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
39952 * lib/xstrtold.c: New file.
39953 * lib/xstrtod.h (xstrtold): New decl.
39955 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
39957 * lib/filemode.c (setst): Remove.
39958 (strmode): Rewrite to avoid setst. This makes the code shorter,
39959 (arguably) clearer, and the generated code is a bit smaller on my
39960 Debian GNU/Linux stable x86 host.
39962 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
39964 * lib/filemode.c: Include "filemode.h" first, to test the interface.
39965 Assume that filemode.h includes sys/types.h and sys/stat.h.
39966 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
39967 (ftypelet): Reorder to put common cases first, for efficiency.
39968 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
39970 (strmode): Renamed from mode_string, and now stores 12 bytes instead
39971 of 10, for compatibility with FreeBSD. All callers changed.
39972 (filemodestring): Now stores 12 bytes instead of 10, and sets file
39973 types that can't be deduced solely from st_mode. First arg is now a
39975 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
39976 (strmode): Renamed from mode_string.
39977 (filemodestring): New decl.
39978 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
39979 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
39981 (S_ISPORT, S_ISWHT): New macros, if not already defined.
39983 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
39985 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
39986 fsusage.h now does that. Include fsusage.h first, to test interface.
39987 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
39988 at most one method (the old code could have generated decls that
39989 didn't conform to C89, not that this was ever exercised).
39990 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
39992 2006-03-19 Jim Meyering <jim@meyering.net>
39994 Work even in a chroot where d_ino values for entries in "/"
39995 don't match the stat.st_ino values for the same names.
39996 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
39997 number, iterate through all entries again, using lstat instead.
39998 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
39999 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
40001 * lib/getcwd.c (__getcwd): Clarify a comment.
40002 Use memcpy in place of a call to strcpy.
40004 2006-03-12 Jim Meyering <jim@meyering.net>
40006 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
40007 matches that of the current directory (which we're about to chdir ".."
40008 out of), then save the dev-ino of the parent, instead.
40010 * lib/same-inode.h (SAME_INODE): New file/macro.
40011 * lib/chdir-safer.c (SAME_INODE): Remove definition.
40012 Include "same-inode.h", instead.
40013 * lib/same.c: Likewise.
40014 * lib/cycle-check.h: Include "same-inode.h".
40015 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
40016 * lib/cycle-check.c (SAME_INODE): Remove definition.
40017 * lib/root-dev-ino.h: Include "same-inode.h".
40019 2006-03-11 Eric Blake <ebb9@byu.net>
40021 * lib/same.c (same_name): s/base_name/last_component/
40022 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
40023 * lib/filenamecat.c (file_name_concat): Likewise.
40025 2006-03-11 Eric Blake <ebb9@byu.net>,
40026 Paul Eggert <eggert@cs.ucla.edu>
40028 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
40029 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
40031 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
40032 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
40033 (last_component): New method.
40034 * lib/dirname.c (dir_len): Determine when drive letters need a
40035 subsequent slash. Preserve // when it is special.
40036 (dir_name): Don't append dot when drive letter is absolute.
40037 [TEST_DIRNAME]: Move into a full-blown gnulib test.
40038 * lib/basename.c (base_name): New semantics - malloc the result.
40039 Preserve // when it is special. Preserve relative files that look
40040 like drive letters.
40041 (base_len): Preserve // when it is special.
40042 (last_component): New method, similar to old base_name semantics.
40043 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
40044 base_name. Strip redundant slashes from ///.
40046 2006-07-03 Jim Meyering <jim@meyering.net>
40048 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
40049 macro is used before the first cycle_check call.
40051 2006-07-03 Eric Blake <ebb9@byu.net>
40053 * modules/dirname (Depends-on): Add xstrndup.
40055 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
40057 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
40058 test cases, so that config.log is a bit easier to follow.
40060 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
40062 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
40063 both are 64 bits, since this seems to be the tradition, and this
40064 prevents gcc -Wformat from warning about usages with PRIuMAX. If
40065 we ever run into a host that prefers long long to long in this
40066 case, we'll need another configure-time test. Problem reported by
40069 2006-07-02 Eric Blake <ebb9@byu.net>
40071 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
40073 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
40075 * modules/inttypes (Depends-on): No longer depends on stdint.
40076 * modules/stdint (Description): Say more about assumptions.
40077 Say that the fast types might differ. Say macros are used.
40078 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
40079 (Makefile.am): Revise list of substituted symbols to match
40081 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
40082 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
40083 * tests/test-stdint.c (verify_same_types)
40084 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
40085 the code conforms to C99/C89.
40086 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
40087 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
40089 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
40091 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
40092 but fix a bug, by requiring at least 64 bits.
40093 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40094 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
40095 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
40096 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
40098 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
40099 changes. Make 2.59 a prerequisite. Check and substitute for
40100 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
40101 inttypes.h. Do not use special include files; just use the
40102 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
40103 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
40104 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
40105 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
40106 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
40107 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
40108 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
40109 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
40110 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
40111 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
40112 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
40113 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
40114 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
40115 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
40116 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
40117 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
40118 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
40119 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
40120 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
40121 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
40122 WINT_MAX. Check for C99 conformance more strictly, by detecting
40123 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
40124 not check for things that C99 does not require, e.g., int8_t. If
40125 a test isn't needed unless <stdint.h> isn't working, and is
40126 unlikely to be needed for any other reason, then don't do it
40127 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
40128 size_t, since we assume C89 freestanding at least. Do not check
40129 for sig_atomic_t, wchar_t, or wint_t, since the code now does
40130 the right thing even if the types are not defined. Instead use:
40131 (gl_STDINT_TYPE_PROPERTIES): New macro.
40132 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
40133 testing whether <sys/types.h> clashes, as Autoconf does this for
40134 us now. All uses removed.
40135 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
40136 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
40137 (gl_CHECK_TYPE_SAME):
40138 Remove; no longer needed.
40139 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
40140 exists, since we'll return 0 anyway in that case.
40141 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
40143 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
40145 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
40146 possible collision with system files.
40147 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
40148 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
40149 WCHAR_MIN and WCHAR_MAX in this case.
40150 (<stddef.h>): Do not include; no longer needed.
40151 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
40152 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
40153 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
40154 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
40155 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
40156 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
40157 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
40158 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
40159 !defined(__c99))]: Include in this case too, since it's harmless
40161 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
40162 dangerous to do so.
40163 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
40164 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
40165 (_STDINT_MIN, _STDINT_MAX): New macros.
40166 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
40167 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
40168 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
40169 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
40170 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
40171 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
40172 macros, not typedefs; this simplifies things quite a bit.
40173 Use long int for all types narrower than int64_t.
40174 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
40175 Define in terms of long long int or int64_t or long int,
40176 not int64_t or int32_t. This saves some compile-time testing.
40177 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
40178 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
40179 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
40180 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
40181 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
40182 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
40183 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
40184 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
40185 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
40186 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
40187 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
40188 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
40189 undef any previous version and define our own version, for
40190 simplicity and consistency with the new macros for types.
40191 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
40192 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
40193 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
40194 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
40195 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
40196 @WINT_T_SUFFIX@ to keep things simple here.
40197 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
40198 Simplify by assuming typical 8/16/32/64 host, since we're
40199 already doing that elsewhere anyway.
40200 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
40201 and assume long long int is 64 bits if available. This
40202 speeds up 'configure'.
40204 2006-07-01 Eric Blake <ebb9@byu.net>
40206 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
40207 Reported by Andreas Buening.
40209 2006-07-01 Eric Blake <ebb9@byu.net>
40211 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
40213 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
40215 * lib/getaddrinfo.c: fixed typo
40217 2006-06-29 Jim Meyering <jim@meyering.net>
40219 * modules/strftime (Maintainer): Add my name, since with the
40220 FPRINTFTIME changes strftime.c has forked from glibc.
40222 2006-06-29 Eric Blake <ebb9@byu.net>
40224 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
40226 2006-06-29 Eric Blake <ebb9@byu.net>
40228 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
40230 2006-06-29 Eric Blake <ebb9@byu.net>
40232 * lib/stat_.h: New file.
40234 2006-06-29 Eric Blake <ebb9@byu.net>
40236 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
40237 unused static function.
40239 2006-06-29 Eric Blake <ebb9@byu.net>
40241 * doc/functions.texi (Function Portability): Document missing lstat
40244 2006-06-29 Eric Blake <ebb9@byu.net>
40246 * MODULES.html.sh: Add sys_stat.
40247 * modules/sys_stat: New module.
40248 * modules/mkstemp (Depends-on): Add sys_stat.
40250 2006-06-29 Derek R. Price <derek@ximbiot.com>
40252 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
40254 2006-06-29 Derek R. Price <derek@ximbiot.com>
40256 * m4/c-bs-a.m4: Removed.
40258 2006-06-29 Derek R. Price <derek@ximbiot.com>
40260 * lib/strftime.c: Assume strftime() exists.
40262 2006-06-29 Derek Price <derek@ximbiot.com>
40264 * modules/c-bs-a: Removed - \a is C89.
40265 * MODULES.html.sh: Remove c-bs-a.
40267 2006-06-29 Bruno Haible <bruno@clisp.org>
40269 * modules/wcwidth (License): Change to LGPL.
40271 2006-06-28 Simon Josefsson <jas@extundo.com>
40273 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
40276 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
40279 2006-06-28 Simon Josefsson <jas@extundo.com>
40281 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
40283 2006-06-28 Simon Josefsson <jas@extundo.com>
40285 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
40286 functions there. It will succeed on Windows XP, but on Windows
40287 2000 and (presumably) earlier, it will fail, and use the internal
40289 (use_win32_p): New function.
40290 (getaddrinfo): Use strtoul on servname, to support numeric ports.
40291 Support AI_NUMERICSERV to disable getservbyname.
40292 (getnameinfo): New function, only supports
40293 NI_NUMERICHOST|NI_NUMERICSERV for now.
40295 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
40296 only have some of them. Add AI_NUMERICSERV. Add prototype for
40299 2006-06-28 Eric Blake <ebb9@byu.net>
40301 * modules/wcwidth: New file.
40302 * modules/mbchar (Depends-on): Add wcwidth.
40303 * modules/mbswidth (Depends-on): Add wcwidth.
40304 * MODULES.html.sh: Add wcwidth.
40306 2006-06-28 Eric Blake <ebb9@byu.net>
40308 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
40309 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
40311 2006-06-28 Eric Blake <ebb9@byu.net>
40313 * lib/xvasprintf.h: Fix comments.
40315 2006-06-28 Eric Blake <ebb9@byu.net>
40317 * lib/mbchar.h (wcwidth): Include wcwidth.h.
40318 * lib/mbswidth.c (wcwidth): Move from here...
40319 * lib/wcwidth.h: ...to this new file.
40321 2006-06-28 Derek R. Price <derek@ximbiot.com>
40323 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
40325 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
40327 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
40329 2006-06-28 Derek R. Price <derek@ximbiot.com>
40331 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
40332 Autoconf 2.60 says this stuff was obsolete.
40334 2006-06-28 Bruno Haible <bruno@clisp.org>
40336 * modules/wcwidth (Files): Add m4/wchar_t.m4.
40338 2006-06-28 Bruno Haible <bruno@clisp.org>
40340 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
40343 2006-06-28 Bruno Haible <bruno@clisp.org>
40345 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
40346 declaration for wcwidth.
40347 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
40349 2006-06-28 Bruno Haible <bruno@clisp.org>
40351 * lib/mkdtemp.c [MINGW]: Include <io.h>.
40352 (mkdir): Define using _mkdir.
40354 2006-06-28 Bruno Haible <bruno@clisp.org>
40356 * lib/getaddrinfo.h: Fix POSIX URL.
40357 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
40359 (use_win32_p): Make static.
40360 (getaddrinfo): Reject service name if it is empty or does not consist
40361 solely of decimal digits, or if its value is > 65535.
40362 (getnameinfo): Remove useless casts.
40364 2006-06-27 Simon Josefsson <jas@extundo.com>
40366 * modules/sys_select: New file, suggested by Bruno Haible, Paul
40367 Eggert and Martin Lambers.
40369 2006-06-27 Simon Josefsson <jas@extundo.com>
40371 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
40372 Eggert and Martin Lambers.
40374 2006-06-27 Bruno Haible <bruno@clisp.org>
40376 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
40377 result to 0, not to empty.
40378 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
40380 2006-06-27 Bruno Haible <bruno@clisp.org>
40382 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
40384 2006-06-26 Simon Josefsson <jas@extundo.com>
40386 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
40389 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
40391 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
40392 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
40393 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
40395 2006-06-26 Mark D. Baushke <mdb@gnu.org>
40397 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
40399 2006-06-26 Bruno Haible <bruno@clisp.org>
40401 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
40403 2006-06-26 Bruno Haible <bruno@clisp.org>
40405 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
40407 2006-06-26 Bruno Haible <bruno@clisp.org>
40409 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
40410 SGI C compiler in pre-C99 mode.
40411 Suggested by Mark D. Baushke and Larry Jones.
40413 2006-06-26 Bruno Haible <bruno@clisp.org>
40415 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
40417 Reported by Mark D. Baushke and Larry Jones.
40419 2006-06-26 Bruno Haible <bruno@clisp.org>
40421 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
40423 Suggested by Mark D. Baushke and Larry Jones.
40425 2006-06-23 Simon Josefsson <jas@extundo.com>
40426 Bruno Haible <bruno@clisp.org>
40428 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
40429 Emit mostlyclean-local rule.
40430 (func_emit_tests_Makefile_am): Likewise.
40431 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
40433 2006-06-23 Mark D. Baushke <mdb@gnu.org>
40435 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
40437 2006-06-23 Bruno Haible <bruno@clisp.org>
40439 * tests/test-stdint.c: Update to match ISO C 99 Technical
40442 2006-06-23 Bruno Haible <bruno@clisp.org>
40444 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
40446 2006-06-23 Bruno Haible <bruno@clisp.org>
40448 * lib/stdint_.h: Treat IRIX like OpenBSD.
40450 2006-06-23 Bruno Haible <bruno@clisp.org>
40452 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
40453 ISO C 99 Technical Corrigendum 1.
40455 2006-06-22 Simon Josefsson <jas@extundo.com>
40457 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
40460 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
40462 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
40463 needed. Some compiler complained about some of them. Problem reported
40465 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
40467 2006-06-21 Simon Josefsson <jas@extundo.com>
40469 * tests/test-getaddrinfo.c: New file.
40471 * modules/getaddrinfo-tests: New file.
40473 * MODULES.html.sh: Add inet_pton.
40475 * modules/inet_pton: New file.
40477 2006-06-21 Simon Josefsson <jas@extundo.com>
40479 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
40480 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
40481 of using the (limited) gnulib implementation on Windows XP.
40483 * m4/inet_pton.m4: New file.
40485 2006-06-21 Simon Josefsson <jas@extundo.com>
40487 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
40490 * lib/socket_.h: Don't define WINVER.
40492 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
40493 slightly modified to work in gnulib.
40495 2006-06-21 Simon Josefsson <jas@extundo.com>
40497 * doc/gnulib.texi (Windows sockets): Add.
40499 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
40501 * lib/read-file.c (fread_file): Start with buffer allocation of
40502 0 bytes rather than 1 byte; this simplifies the code.
40503 Don't invoke feof; it's not needed. Refactor to avoid duplicate
40504 code to free buffer and save/restore errno.
40505 (internal_read_file): Remove unused local.
40507 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
40509 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
40510 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
40511 Problem reported by Denis Excoffier in
40512 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
40514 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40516 * modules/sys_socket, modules/socklen: Include sys/types since
40517 FreeBSD 4.x's sys/socket.h needs it.
40519 2006-06-19 Simon Josefsson <jas@extundo.com>
40521 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
40523 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
40525 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
40527 2006-06-19 Bruno Haible <bruno@clisp.org>
40529 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
40530 and FULL_PATH_INTTYPES_H in angle brackets.
40531 Reported by Mark D. Baushke <mdb@gnu.org>.
40533 2006-06-17 Eric Blake <ebb9@byu.net>
40535 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
40538 2006-06-17 Bruno Haible <bruno@clisp.org>
40540 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
40543 2006-06-17 Bruno Haible <bruno@clisp.org>
40545 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
40546 whether errno is declared. Assume <errno.h> declares errno.
40548 2006-06-17 Bruno Haible <bruno@clisp.org>
40550 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
40552 2006-06-17 Bruno Haible <bruno@clisp.org>
40554 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
40555 problem on Solaris 2.5.1.
40557 2006-06-16 Eric Blake <ebb9@byu.net>
40559 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
40560 * lib/unicodeio.c [!defined errno]: Likewise.
40561 * lib/strtol.c [!defined errno]: Likewise.
40562 * lib/strtod.c [!defined errno]: Likewise.
40564 2006-06-15 Eric Blake <ebb9@byu.net>
40566 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
40568 2006-06-15 Eric Blake <ebb9@byu.net>
40570 * config/srclist.txt (ssize_t.m4): Lose sync.
40572 2006-06-15 Bruno Haible <bruno@clisp.org>
40574 * modules/stdint (Files): Include m4/full-header-path.m4,
40575 m4/size_max.m4, m4/wchar_t.m4.
40576 (Makefile.am): Many more substitutions.
40577 * modules/stdint-tests: New file.
40578 * tests/test-stdint.c: New file.
40580 2006-06-15 Bruno Haible <bruno@clisp.org>
40582 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
40583 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
40584 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
40585 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
40586 gl_CHECK_TYPE_SAME): New macros.
40588 2006-06-15 Bruno Haible <bruno@clisp.org>
40590 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
40592 2006-06-15 Bruno Haible <bruno@clisp.org>
40594 * lib/stdint_.h: Rewritten to be fully auto-configured.
40595 Fixes bug on HP-UX/IA64.
40597 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
40599 * lib/getdate.y (__attribute__): Don't define if already defined.
40600 Problem reported by Larry Jones.
40601 * lib/utimens.c (__attribute__): Likewise.
40603 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
40605 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
40606 reported by Andreas Schwab.
40608 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40609 Bruno Haible <bruno@clisp.org>
40611 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
40612 check for the declaration of strnlen and a run test that exposes the
40613 AIX 5.1 strnlen bug. In the failure case, #define strndup to
40616 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40617 Bruno Haible <bruno@clisp.org>
40619 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
40621 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40623 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
40624 compile test, for Tru64 4.0D.
40626 2006-05-28 Karl Berry <karl@gnu.org>
40628 * config/srclist.txt (printf-args.c): lose sync.
40630 2006-05-26 Martin Lambers <marlam@marlam.de>
40632 * lib/getpass.c: Updates the test for the native W32 API, and adds
40633 missing includes, thus fixing compilation warnings.
40635 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
40637 * lib/exclude.c (exclude_fnmatch): New function.
40638 (excluded_file_name): Call exclude_fnmatch.
40639 * lib/exclude.h (excluded_file_name): New prototype
40641 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
40643 * lib/tempname.c (small_open, large_open): New macros.
40644 (__open, __open64) [!_LIBC]: Remove.
40645 (__gen_tempname): Use small_open and large_open instead of __open
40646 and __open64. This fixes a portability bug on HP-UX 11.11i
40647 reported by Simon Wing-Tang in
40648 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
40650 2006-05-24 Bruno Haible <bruno@clisp.org>
40652 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
40653 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
40654 Reported by Thorsten Maerz <torte@netztorte.de> via
40655 Aaron Stone <aaron@serendipity.cx>.
40657 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
40659 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
40660 gl_ rather than jm_. Link, don't run, so that cross-compiles are
40661 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
40662 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
40663 not really conditional on the cache.
40664 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
40666 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
40668 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
40669 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
40670 (my_usleep): Don't mishandle maximum value.
40672 2006-05-19 Jim Meyering <jim@meyering.net>
40674 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
40676 2006-05-17 Bruno Haible <bruno@clisp.org>
40678 Cygwin portability.
40679 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
40681 2006-05-17 Bruno Haible <bruno@clisp.org>
40683 * lib/stdint_.h: Fix recognition of Cygwin.
40685 2006-05-15 Bruno Haible <bruno@clisp.org>
40687 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
40688 on libtool patch by Ralf Wildenhues.
40690 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
40692 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
40693 test for C99 conformance; (bool) 0.5 is an integer constant
40694 expression, but (bool) -0.5 is not. Problem reported by Fedor
40695 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
40697 2006-05-11 Simon Josefsson <jas@extundo.com>
40699 * m4/xvasprintf.m4: Fix obvious typo.
40701 2006-05-11 Jim Meyering <jim@meyering.net>
40703 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
40706 2006-05-10 Simon Josefsson <jas@extundo.com>
40708 * lib/md4.c: Typo fix, update copyright years.
40709 (K1, K2): Don't use L because it turn computations into 64-bit on
40712 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
40714 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
40715 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
40716 unwanted sign propagation, e.g., on hosts with 64-bit int.
40717 There still are some problems with reeelly weird theoretical hosts
40718 (e.g., 33-bit int) but it's not worth worrying about now.
40719 * lib/sha1.c (rol): Likewise.
40720 (K1, K2, K3, K4): Remove unnecessary L suffix.
40722 2006-05-10 Bruno Haible <bruno@clisp.org>
40724 * lib/des.c: Cast to avoid warnings.
40726 2006-05-09 Bruno Haible <bruno@clisp.org>
40728 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
40729 (Depends-on): Depend also on xsize, stdarg.
40730 (configure.ac): Add gl_XVASPRINTF.
40732 2006-05-09 Bruno Haible <bruno@clisp.org>
40734 * m4/xvasprintf.m4: New file.
40736 2006-05-09 Bruno Haible <bruno@clisp.org>
40738 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
40739 (EOVERFLOW): Define fallback value.
40740 (xstrcat): New function.
40741 (xvasprintf): Recognize the special case of a string concatenation.
40743 2006-05-08 Eric Blake <ebb9@byu.net>
40745 * gnulib-tool (func_version): Base copyright year on CVS date.
40746 (func_emit_copyright_notice): New function.
40747 (func_emit_lib_Makefile_am): Use it.
40748 (func_emit_tests_Makefile_am): Likewise.
40749 (func_import): Likewise.
40751 2006-05-08 Bruno Haible <bruno@clisp.org>
40753 * modules/stdarg: New file.
40754 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
40756 2006-05-08 Bruno Haible <bruno@clisp.org>
40758 * m4/stdarg.m4: New file, from GNU gettext.
40760 2006-05-08 Bruno Haible <bruno@clisp.org>
40762 * config/srclist.txt (build-aux/config.rpath): different from latest
40765 2006-05-08 Bruno Haible <bruno@clisp.org>
40767 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
40769 2006-05-05 Jim Meyering <jim@meyering.net>
40771 * m4/warning.m4: New file, derived from bison's file by the same name.
40773 2006-05-03 Bruno Haible <bruno@clisp.org>
40775 * lib/stdint_.h: Shorter URL.
40776 * lib/inttypes.h: Likewise.
40778 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
40780 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
40782 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
40784 * lib/verify.h: Document the internals better. Most of this change
40785 was written by Bruno Haible.
40787 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
40789 * doc/verify.texi: New file, partly based on a proposal by
40792 2006-05-02 Bruno Haible <bruno@clisp.org>
40794 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
40796 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
40798 2006-04-29 Bruno Haible <bruno@clisp.org>
40800 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
40801 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
40803 2006-04-29 Bruno Haible <bruno@clisp.org>
40805 * gnulib-tool: Make --update option actually work.
40807 2006-04-29 Bruno Haible <bruno@clisp.org>
40809 * doc/gcd.texi: New file.
40810 * doc/gnulib.texi: Include it.
40812 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
40814 * lib/getdate.y (get_date): When adding relative date, start with the
40815 initial time, not with the result of the first mktime call.
40817 2006-04-25 Bruno Haible <bruno@clisp.org>
40819 * gnulib-tool (func_import): Output the include directives in three
40820 blocks, sorted separately.
40821 Reported by Ben Pfaff <blp@cs.stanford.edu>.
40823 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
40825 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
40826 to define main with arguments, for C++. Reported by Eric Blake.
40827 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
40828 Prefer 'int main ()' to 'int main (void)', for C++.
40829 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
40830 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
40831 for 'main', for C99 and C++.
40833 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
40835 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
40836 Don't assume that exit status -1 is valid.
40837 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
40838 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
40839 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40840 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
40841 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
40842 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
40843 not AC_TRY_RUN. Use return, not exit. Don't assume that
40844 functions can be used without declaring them, or that you can
40845 exit with status -1.
40846 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40848 2006-04-24 Karl Berry <karl@gnu.org>
40850 * config/srclist.txt (longdouble.m4): sync lost.
40852 2006-04-24 Eric Blake <ebb9@byu.net>
40854 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
40856 2006-04-24 Bruno Haible <bruno@clisp.org>
40858 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
40859 poll() implementation in AIX.
40860 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40862 2006-04-24 Bruno Haible <bruno@clisp.org>
40864 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
40865 assigned exactly once.
40867 2006-04-23 Claudio Fontana <claudio@gnu.org>
40868 Bruno Haible <bruno@clisp.org>
40870 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
40871 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
40874 2006-04-23 Bruno Haible <bruno@clisp.org>
40876 * modules/copy-file: Depend on unistd.
40877 * modules/execute: Likewise.
40878 * modules/fatal-signal: Likewise.
40879 * modules/findprog: Likewise.
40880 * modules/mkdtemp : Likewise.
40881 * modules/pipe: Likewise.
40882 * modules/wait-process: Likewise.
40884 2006-04-23 Bruno Haible <bruno@clisp.org>
40886 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
40887 condition was already detected.
40888 Reported by Ben Pfaff <blp@cs.stanford.edu>.
40890 2006-04-23 Bruno Haible <bruno@clisp.org>
40892 * lib/copy-file.c: Include <unistd.h> unconditionally.
40893 * lib/execute.c: Likewise.
40894 * lib/fatal-signal.c: Likewise.
40895 * lib/findprog.c: Likewise.
40896 * lib/mkdtemp.c: Likewise.
40897 * lib/pipe.h: Likewise.
40898 * lib/pipe.c: Likewise.
40899 * lib/wait-process.h: Likewise.
40901 2006-04-23 Bruno Haible <bruno@clisp.org>
40903 * gnulib-tool (func_usage): Fix --import description. Document
40905 (func_import): Create temporary file in a temporary directory, if
40906 --dry-run is specified. Silence errors from 'grep' when there are no
40907 m4 files in $m4dir.
40908 (func_create_testdir): Silence errors from 'grep' when there are no
40909 m4 files in $m4dir.
40910 Reported by Karl Berry <karl@freefriends.org>.
40912 2006-04-20 Bruno Haible <bruno@clisp.org>
40914 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
40915 one argument, so that the code will be portable to Autoconf 2.60.
40916 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
40917 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
40918 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
40920 2006-04-19 Derek Price <derek@ximbiot.com>
40921 Eric Blake <ebb9@byu.net>
40923 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
40924 rather than "/full/path.h". Update comment to match. Shorten &
40925 generalize m4_translit call via AS_TR_CPP.
40927 2006-04-19 Derek Price <derek@ximbiot.com>
40928 Eric Blake <ebb9@byu.net>
40930 * lib/inttypes.h: Correct grammar in comment.
40932 2006-04-18 Derek Price <derek@ximbiot.com>
40933 Paul Eggert <eggert@cs.ucla.edu>
40935 * modules/inttypes: New file.
40936 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
40938 2006-04-18 Derek Price <derek@ximbiot.com>
40939 Paul Eggert <eggert@cs.ucla.edu>
40941 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
40944 2006-04-18 Derek Price <derek@ximbiot.com>
40945 Paul Eggert <eggert@cs.ucla.edu>
40947 * lib/inttypes.h: New file.
40948 * lib/strtoimax.c: Assume <inttypes.h>.
40950 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
40952 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
40953 isn't mounted. Problem reported by Kir Kolyshkin.
40955 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
40957 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
40958 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
40960 * lib/regex.h (RE_DUP_MAX): Update comment to match current
40963 2006-04-12 Eric Blake <ebb9@byu.net>
40965 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
40966 is now done automatically by the corresponding Autoconf macro.
40968 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
40970 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
40973 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
40975 Merge regex changes from libc, removing some of our
40976 POSIX-conformance changes that were rejected and redoing them in a
40977 less-intrusive way.
40979 * lib/regcomp.c (re_compile_internal, init_dfa):
40980 Length arg is now size_t, not Idx. All uses changed.
40981 (peek_token): Forward decl now says internal_function.
40982 (__re_error_msgid, __re_error_msgid_idx):
40983 Now static rather than extern with attribute_hidden.
40984 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
40985 For some reason libc prefers K&R style defns for external functions.
40986 (regerror) [!defined _LIBC]: Likewise.
40987 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
40988 (seek_collating_symbol_entry, lookup_collation_sequence_value):
40989 (build_range_exp, build_collating_symbol):
40990 Use K&R-style defn.
40991 (re_compile_fastmap): Use '\0' to memset, not 0.
40992 (utf8_sb_map): Make the calculations more obvious.
40993 (init_dfa, parse_bracket_exp, build_charclass_op):
40994 Call calloc and cast result, as glibc does.
40995 (init_word_char, fetch_token, peek_token, peek_token_bracket):
40996 (build_range_exp, build_collating_symbol):
40997 Now internal functions.
40999 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
41001 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
41002 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
41003 Don't depend on VMS; depend on __VMS instead, for POSIX
41004 namespace cleanness.
41005 (regoff_t): Define to ssize_t, not long int.
41007 Remove the REG_ macros named below. Instead, make the old names
41008 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
41010 (REG_BACKSLASH_ESCAPE_IN_LISTS):
41011 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
41012 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
41013 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
41014 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
41015 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
41016 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
41017 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
41018 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
41019 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
41020 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
41021 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
41022 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
41023 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
41024 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
41025 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
41026 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
41028 Remove. All uses replaced by the old RE_* names.
41029 (RE_BACKSLASH_ESCAPE_IN_LISTS):
41030 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
41031 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
41032 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
41033 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
41034 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
41035 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
41036 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
41037 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
41038 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
41039 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
41040 Don't bother having these macros be independent of each others'
41041 values, since they no longer exist in the POSIX name space.
41043 Rename the following member names back to their old names,
41044 unless !__USE_GNU_REGEX. All uses changed back.
41045 (buffer): Renamed from re_buffer.
41046 (allocated): Renamed from re_allocated.
41047 (used): Renamed from re_used.
41048 (syntax): Renamed from re_syntax.
41049 (fastmap): Renamed from re_fastmap.
41050 (translate): Renamed from re_translate.
41051 (can_be_null): Renamed from re_can_be_null.
41052 (regs_allocated): Renamed from re_regs_allocated.
41053 (fastmap_accurate): Renamed from re_fastmap_accurate.
41054 (no_sub): Renamed from re_no_sub.
41055 (not_bol): Renamed from re_not_bol.
41056 (not_eol): Renamed from re_not_eol.
41057 (newline_anchor): Renamed from re_newline_anchor.
41058 (num_regs): Renamed from rm_num_regs.
41059 (start): Renamed from rm_start.
41060 (end): Renamed from rm_end.
41062 (free_state): Move up a bit.
41064 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
41065 #define to be empty.
41066 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
41067 when that is what is intended.
41068 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
41069 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
41071 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
41072 All uses changed back to re_malloc, etc. It's now the caller's
41073 responsibility to check for overflow; all callers changed.
41074 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
41075 (re_x2nrealloc): Remove.
41076 (free_state): Remove decl.
41078 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
41079 (re_set_registers, re_exec):
41080 Use K&R-style defn.
41082 2006-01-31 Roland McGrath <roland@redhat.com>
41084 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
41085 Reported by Mike Frysinger <vapier@gentoo.org>.
41087 2006-01-15 Andreas Jaeger <aj@suse.de>
41090 * lib/regex_internal.c (re_string_reconstruct): Adjust for
41091 build_wcs_upper_buffer change.
41092 (build_wcs_upper_buffer): Change return type.
41094 2005-12-10 Ulrich Drepper <drepper@redhat.com>
41096 * lib/regex_internal.h: Include <stdint.h> if available.
41098 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
41100 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
41102 2005-10-14 Ulrich Drepper <drepper@redhat.com>
41104 * lib/regcomp.c: Adjust for changed secondary hash function.
41106 2005-09-30 Ulrich Drepper <drepper@redhat.com>
41108 * lib/regex.h: Pretty printing.
41109 Clean up namespace a bit.
41111 2005-09-30 Jakub Jelinek <jakub@redhat.com>
41113 * lib/regexec.c (update_cur_sifted_state, check_arrival,
41114 check_arrival_add_next_nodes): Avoid using uninitialized variable.
41116 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
41117 Ulrich Drepper <drepper@redhat.com>
41120 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
41122 (bitset_word_t): Renamed from bitset_word. All uses changed.
41124 2005-09-22 Ulrich Drepper <drepper@redhat.com>
41127 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
41128 * lib/regcomp.c: Remove unnecessary uses of
41129 unsigned RE_TRANSLATE_TYPE.
41130 * lib/regex_internal.h: Likewise.
41131 * lib/regex_internal.c: Likewise.
41132 * lib/regexec.c: Likewise.
41133 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
41135 2005-09-07 Ulrich Drepper <drepper@redhat.com>
41137 * lib/regexec.c (find_recover_state): Remove unnecessary
41139 (transit_state_bkref): Make DFA a const pointer.
41140 (get_subexp): Likewise.
41141 (check_arrival): Likewise.
41142 (update_cur_sifted_state): Likewise.
41143 (re_search_internal): Likewise.
41144 (prune_impossible_nodes): Likewise.
41145 (acquire_init_state_context): Likewise.
41146 (proceed_next_node): Likewise.
41147 (set_regs): Likewise.
41148 (free_fail_stack_return): Likewise.
41149 (check_arrival_expand_ecl): Mark DFA parameter as const.
41150 (check_arrival_expand_ecl_sub): Likewise.
41151 (check_subexp_limits): Likewise.
41152 (sub_epsilon_src_nodes): Likewise.
41153 (add_epsilon_src_nodes): Likewise.
41154 (merge_state_array): Likewise.
41155 (update_regs): Likewise.
41156 (build_trtable): Likewise.
41157 (sift_states_backward): Mark MCTX parameter as const.
41158 (build_sifted_states): Likewise.
41159 (update_cur_sifted_state): Likewise.
41160 (sift_states_mkref): Likewise.
41161 (check_arrival_expand_ecl): Mark eclosure as const.
41162 (check_dst_limits_calc_pos_1): Likewise.
41163 * lib/regex_internal.h (re_match_context_t): Make dfa a const
41166 2005-09-06 Ulrich Drepper <drepper@redhat.com>
41168 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
41169 (transit_state_sb): Likewise.
41170 (transit_state_mb): Likewise.
41171 (sift_states_iter_mb): Likewise.
41172 (check_arrival_add_next_nodes): Likewise.
41173 (check_node_accept_bytes): Change first parameter to pointer-to-const.
41174 [_LIBC] (re_search_2_stub): Use mempcpy.
41176 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
41177 mbrtowc for very simple UTF-8 case.
41179 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
41180 a pointer-to-const.
41181 (re_acquire_state_context): Likewise.
41182 * lib/regex_internal.h: Adjust prototypes.
41184 * lib/regex.c: Prevent using C++ compilers.
41186 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
41187 (re_acquire_state_context): Likewise.
41189 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41191 * modules/regex (Depends-on): Add ssize_t.
41193 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41195 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
41198 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41200 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
41202 2006-03-29 Mark D. Baushke <mdb@gnu.org>
41203 Bruno Haible <bruno@clisp.org>
41205 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
41206 <sys/types.h> and <inttypes.h>.
41208 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41210 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
41211 `__error_t_defined', so argp.h will not typedef the former.
41213 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
41215 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
41216 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
41217 glibc names. Even if glibc is changed to conform to POSIX, the
41218 traditional names will be available anyway, since regex depends on
41219 the extensions module. Also, fix a longstanding typo in the
41220 implementation of Spencer ERE test #75 from grep 2.3. Problems
41221 reported by Emanuele Giaquinta. Also, change sense of cached
41222 variable, so that the message makes sense.
41224 2006-03-24 Simon Josefsson <jas@extundo.com>
41226 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
41227 including some doc fixes.
41228 (base64_encode_alloc): Fix +1 bug on allocation failures.
41230 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41232 * lib/base64.c (base64_encode): Do not read past end of array with
41233 unsanitized input on systems with CHAR_BIT > 8.
41235 2006-03-24 Eric Blake <ebb9@byu.net>
41237 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
41239 2006-03-22 Karl Berry <karl@gnu.org>
41241 * config/srclist.txt (*setenv.[ch]): get from coreutils.
41242 * config/srclistvars.sh (COREUTILS): new var.
41244 2006-03-17 Jim Meyering <jim@meyering.net>
41246 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
41247 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
41249 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
41251 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
41252 no longer needs it. Instead, check that regoff_t is as least
41253 as wide as ptrdiff_t.
41255 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
41256 so that our regex.h stays compatible with the installed regex.
41257 This is helpful for installers who configure --without-included-regex.
41258 Problem reported by Emanuele Giaquinta.
41260 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
41262 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
41263 Typedef to long int, not to off_, as POSIX will likely change
41266 2006-03-15 Eric Blake <ebb9@byu.net>
41268 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
41270 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
41272 * lib/argp-help.c (validate_uparams): Fix typo
41273 * lib/argp-parse.c (argp_default_options): Consistently begin help
41274 messages with a lowercase letter.
41276 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
41278 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
41279 overrun buffers and shouldn't be used (much as gets shouldn't be
41281 * lib/time_r.c (asctime_r, ctime_r): Likewise.
41283 2006-03-08 Simon Josefsson <jas@extundo.com>
41285 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
41286 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41288 2006-03-08 Simon Josefsson <jas@extundo.com>
41290 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
41291 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41293 2006-03-08 Simon Josefsson <jas@extundo.com>
41295 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
41296 signal that configure disabled the device.
41298 2006-03-08 Simon Josefsson <jas@extundo.com>
41300 * build-aux/maint.mk: Fix refresh-po, to handle no translated
41303 2006-03-07 Simon Josefsson <jas@extundo.com>
41305 * modules/getopt (Depends-on): Add unistd.
41307 * modules/unistd: New file.
41309 2006-03-07 Simon Josefsson <jas@extundo.com>
41311 * modules/gc-random: New file.
41313 2006-03-07 Simon Josefsson <jas@extundo.com>
41315 * m4/unistd_h.m4: New file.
41317 2006-03-07 Simon Josefsson <jas@extundo.com>
41319 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
41320 test to be side-effect free by storing the result in the cache
41321 variable gl_cv_lib_readline, and moving the assignment of
41322 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
41323 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41325 2006-03-07 Simon Josefsson <jas@extundo.com>
41327 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
41328 error on missing devices (the functions will return an error).
41330 * m4/gc.m4: Move random stuff to gc-random.m4
41332 2006-03-07 Simon Josefsson <jas@extundo.com>
41334 * lib/unistd_.h: New file.
41336 2006-03-07 Simon Josefsson <jas@extundo.com>
41338 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
41340 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
41342 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
41343 Problem reported by Juan Manuel Guerrero.
41345 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
41347 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
41349 * lib/getlogin_r.c: Likewise.
41350 * lib/getlogin_r.h: Likewise.
41351 * lib/glob.c: Likewise.
41352 * lib/pagealign_alloc.c: Likewise.
41353 * lib/unistd_.h: Remove; no longer needed.
41355 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
41357 * MODULES.html.sh (Support for systems lacking POSIX:2001):
41359 * modules/c-stack (Depends-on): Add unistd.
41360 * modules/getlogin_r: Likewise.
41361 * modules/glob: Likewise.
41362 * modules/pagealign_alloc: Likewise.
41363 * modules/unistd (Files): Remove lib/unistd_.h.
41364 (EXTRA_DIST): Remove.
41365 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
41367 (MOSTLYCLEANFILES): Remove unistd.h-t.
41369 2006-03-03 Simon Josefsson <jas@extundo.com>
41371 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
41373 2006-03-03 Simon Josefsson <jas@extundo.com>
41375 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
41378 2006-03-03 Simon Josefsson <jas@extundo.com>
41380 * build-aux/maint.mk: Add indent target.
41382 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
41384 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
41385 our replacement poll.h in any case, to avoid a differing
41386 declaration from a system header. Seen on AIX.
41388 2006-03-01 Simon Josefsson <jas@extundo.com>
41390 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
41393 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
41395 * modules/gettime (Depends-on): Add extensions module.
41396 * modules/nanosleep (Depends-on): Likewise.
41397 * modules/settime (Depends-on): Likewise.
41399 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
41401 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
41402 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
41404 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41405 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
41407 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
41408 not "==". Reported by Ralf Wildenhues.
41410 2006-03-01 Karl Berry <karl@gnu.org>
41412 * doc/Copyright/request-*: new files, synced from gnuorg.
41414 2006-03-01 Karl Berry <karl@gnu.org>
41416 * config/srclist.txt (Copyright/*): new entries.
41418 2006-02-28 Simon Josefsson <jas@extundo.com>
41420 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
41422 2006-02-27 Simon Josefsson <jas@extundo.com>
41424 * lib/base64.h: Indent #define's. From Jim Meyering
41425 <jim@meyering.net>.
41427 2006-02-27 Jim Meyering <jim@meyering.net>
41429 Revert the change of 2006-02-24, so these files can continue
41430 to be sync'd from gettext.
41431 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
41434 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
41436 * modules/intprops: New file.
41437 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41439 * modules/getloadavg (Files): Remove lib/intprops.h.
41440 (Depends-on): Add intprops.
41441 * modules/human: Likewise.
41442 * modules/inttostr: Likewise.
41443 * modules/openat: Likewise.
41444 * modules/sig2str: Likewise.
41445 * modules/userspec: Likewise.
41446 * modules/utimecmp: Likewise.
41447 * modules/xnanosleep: Likewise.
41448 * modules/xstrtol: Likewise.
41450 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
41452 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
41453 * modules/lock-tests (TESTS): Use $(EXEEXT).
41454 * modules/tls-tests: Likewise.
41455 * modules/argp-tests: Likewise.
41456 (check_PROGRAMS): New var, replacing...
41457 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
41459 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41461 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
41464 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
41466 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
41468 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41470 Sync from coreutils.
41471 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
41474 2006-02-22 Jim Meyering <jim@meyering.net>
41476 Sync from coreutils.
41477 * m4/chdir-safer.m4: New file.
41479 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
41481 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
41482 AT_FDCWD exceeds INT_MAX.
41483 * lib/openat.h (AT_FDCWD): Likewise.
41485 2006-02-17 Eric Blake <address@hidden>
41487 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
41489 2006-02-16 Simon Josefsson <jas@extundo.com>
41491 * modules/getaddrinfo (Depends-on): Add sys_socket.
41493 2006-02-15 Simon Josefsson <jas@extundo.com>
41495 * build-aux/maint.mk: Add dsyntax-check rule.
41497 2006-02-15 Eric Blake <ebb9@byu.net>
41499 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
41500 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
41501 'present but cannot compile' warnings on cygwin.
41502 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
41503 use ws2tcpip.h if sys/socket.h works.
41504 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
41505 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
41507 2006-02-14 Simon Josefsson <jas@extundo.com>
41509 * modules/maintainer-makefile (Files): Rename.
41511 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
41512 and (the local) Makefile.cfg to maint-cfg.mk.
41514 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
41517 * modules/maintainer-makefile: New module.
41519 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
41520 severaly stripped to make it possible to build it up from scratch
41521 with reliable tests.
41523 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
41524 fixes to permit overriding the default actions when configure and
41525 makefile are not available.
41527 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
41529 Sync from coreutils.
41530 * modules/lstat (Depends-on): Don't depend on xalloc.
41531 (License): Change from GPL to LGPL, since this is now simply a
41532 replacement for a libc function.
41534 2006-02-14 Jim Meyering <jim@meyering.net>
41536 Sync from coreutils.
41538 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
41539 failure on deficient systems, and simplify gnulib lgpl dependencies.
41540 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
41541 xmalloc/lstat combination. Based on a patch from Bruno Haible.
41543 * lib/xalloc-die.c: Remove unused definition of N_.
41545 2006-02-14 Jim Meyering <jim@meyering.net>
41547 Sync from coreutils.
41548 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
41549 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
41550 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
41551 double-quote uses of that variable, to accommodate the rare case in
41552 which getmntent is available in none of the libraries checked. This
41553 happens at least on FreeBSD 5.0.
41555 2006-02-13 Simon Josefsson <jas@extundo.com>
41557 * gnulib-tool (Usage): Fix --import, from
41558 karl@freefriends.org (Karl Berry).
41560 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
41562 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
41564 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
41566 * lib/argp-namefrob.h: Restore changes accidentally lost during the
41567 "autoupdate" on 2005-12-12.
41569 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
41571 * modules/closeout (Depends-on): Remove atexit.
41573 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
41575 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
41576 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
41578 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
41580 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
41581 __EXTENSIONS__ if this causes compilation to fail. Problem
41582 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
41583 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
41585 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
41587 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
41588 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
41589 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
41592 2006-01-26 Simon Josefsson <jas@extundo.com>
41594 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
41595 prototype is visible on mingw32.
41597 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
41600 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
41603 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
41605 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
41606 attempt to open for write; this always fails, at least on POSIX
41607 hosts. This reinstates the 2006-01-09 change, which was
41608 inadvertently removed.
41610 2006-01-26 Bruno Haible <bruno@clisp.org>
41612 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
41613 Reported by Paul Eggert.
41615 2006-01-26 Bruno Haible <bruno@clisp.org>
41616 Paul Eggert <eggert@cs.ucla.edu>
41618 * lib/stdbool_.h (_Bool)
41619 [(! (defined __cplusplus || defined __BEOS__)
41620 && !defined __GNUC__
41621 && !(defined __HP_cc || defined __xlc__
41622 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
41623 || defined __sgi))]:
41624 #define to signed char in these cases too; this simplifies
41625 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
41626 etc., separately) and makes it more conservative.
41628 2006-01-25 Simon Josefsson <jas@extundo.com>
41630 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
41631 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
41632 ws2tcpip.h with WINVER=0x0501. All for mingw32.
41634 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
41636 * lib/argp-namefrob.h: Bugfix. Remove stray #
41638 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
41640 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
41641 so that we test the test.
41642 Check for yet another HP-UX cc bug involving *bool |= bool.
41644 2006-01-25 Karl Berry <karl@gnu.org>
41646 * config/srclist.txt (vasnprintf.c): sync lost.
41648 2006-01-25 Jim Meyering <jim@meyering.net>
41650 Sync from the stable (b5) branch of coreutils:
41652 * lib/fts.c (fts_children): Don't let close() clobber errno from
41655 * lib/fts.c (fts_stat): When following a symlink-to-directory,
41656 don't necessarily interpret stat-fails+lstat-succeeds as indicating
41657 a dangling symlink. That can also happen at least for ELOOP.
41658 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
41659 FYI, this bug predates the inclusion of fts.c in coreutils.
41661 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
41662 in their own block, so pre-c99 compilers don't object.
41664 Avoid the double-free (first in fts_read, second in fts_close) that
41665 would occur when an `active' directory is made inaccessible (e.g.,
41666 via chmod a-x) during a traversal.
41667 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
41668 before returning. Reproduce this failure by
41669 mkdir -p a/b; cd a; chmod a-x . b
41670 Reported by Stavros Passas.
41672 2006-01-25 Jim Meyering <jim@meyering.net>
41674 * lib/fileblocks.c: Remove more useless parentheses.
41675 * lib/readutmp.h: Likewise.
41677 2006-01-25 Bruno Haible <bruno@clisp.org>
41679 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
41681 Reported by Paul Eggert.
41683 2006-01-25 Bruno Haible <bruno@clisp.org>
41685 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
41686 rid of a trap command. For Solaris sh.
41687 Reported by Mark D. Baushke <mdb@gnu.org>.
41689 2006-01-24 Simon Josefsson <jas@extundo.com>
41691 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
41694 2006-01-24 Karl Berry <karl@gnu.org>
41696 * config/srclist.txt (argp-namefrob.h): sync lost.
41698 2006-01-24 Jim Meyering <jim@meyering.net>
41700 * modules/openat (Files): Add lib/intprops.h.
41701 From Mark D. Baushke.
41703 2006-01-24 Jim Meyering <jim@meyering.net>
41705 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
41706 Reported by Mark D. Baushke.
41708 2006-01-24 Jim Meyering <jim@meyering.net>
41710 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
41712 2006-01-24 Bruno Haible <bruno@clisp.org>
41714 * modules/strnlen (Maintainer): Change from glibc to all.
41716 2006-01-24 Bruno Haible <bruno@clisp.org>
41718 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
41719 Patch by Paul Eggert.
41721 2006-01-24 Bruno Haible <bruno@clisp.org>
41723 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
41725 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
41728 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
41729 'signed char' to avoid problems with the built-in _Bool type.
41730 Reported by Paul Eggert on 2005-11-26.
41732 2006-01-24 Bruno Haible <bruno@clisp.org>
41734 * gnulib-tool (func_import): Avoid constructing complicated sed
41735 expressions inside backquote.
41736 Report and solution by Mark D. Baushke <mdb@gnu.org>.
41738 2006-01-23 Ulrich Drepper <drepper@redhat.com>
41740 These changes imported from libc.
41741 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
41742 test and two separate function calls.
41743 * lib/strndup.c (__strndup): Add libc_hidden_def.
41745 2006-01-23 Simon Josefsson <jas@extundo.com>
41747 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
41748 Remove the test_*_SOURCES variable: automake infers it by default.
41749 * modules/tls-tests: Likewise.
41751 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
41753 Work around porting bugs reported by Dieter in
41754 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
41755 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
41756 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
41757 Include "getopt.h" first, to check interface.
41758 (getenv): Declare only if defined HAVE_DECL_GETENV &&
41760 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
41761 (__strndup): Revert to K&R-style function dfns, the glibc style.
41762 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
41763 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
41764 Include strnlen.h first, to get prototype properly.
41765 (strnlen): Renamed from __strnlen.
41768 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
41770 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
41772 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
41774 * config/srclist.txt: Adjust to reflect glibc reorganization.
41775 This affects only comments.
41777 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
41779 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
41780 Reported by Bruce Korb <bkorb@gnu.org>.
41782 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
41784 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
41785 to pacify gcc -Wswitch-default.
41787 2006-01-22 Bruno Haible <bruno@clisp.org>
41789 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
41790 temporary buffer for sprintf, take into account the precision also
41791 for 'd', 'i', 'u', 'o', 'x', 'X'.
41793 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
41795 * modules/argp-tests: New module
41796 * tests/test-argp.c: New file
41797 * tests/test-argp-2.sh: New file
41799 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
41801 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
41802 (__argp_base_name): Removed
41803 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
41805 (__argp_base_name): Provide macro definition or extern declaration
41806 depending on the configuration
41808 2006-01-20 Simon Josefsson <jas@extundo.com>
41810 * modules/inet_ntop (Depends-on): Depend on sys_socket.
41812 2006-01-20 Simon Josefsson <jas@extundo.com>
41814 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
41816 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
41818 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
41819 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
41820 Suggested by Bruno Haible.
41822 2006-01-20 Karl Berry <karl@gnu.org>
41824 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
41825 until changes propagate, I guess.
41827 2006-01-19 Simon Josefsson <jas@extundo.com>
41829 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
41831 2006-01-19 Simon Josefsson <jas@extundo.com>
41833 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
41835 2006-01-19 Simon Josefsson <jas@extundo.com>
41837 * gnulib-tool: Set check_PROGRAMS.
41839 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
41840 modules/des-tests, modules/gc-arcfour-tests,
41841 modules/gc-arctwo-tests, modules/gc-des-tests,
41842 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
41843 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
41844 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
41845 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
41846 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
41847 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
41848 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
41851 2006-01-18 Simon Josefsson <jas@extundo.com>
41853 * modules/socklen (Depends-on): Depend on sys_socket.
41855 2006-01-18 Simon Josefsson <jas@extundo.com>
41857 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
41858 modules/des-tests, modules/gc-arcfour-tests,
41859 modules/gc-arctwo-tests, modules/gc-des-tests,
41860 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
41861 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
41862 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
41863 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
41864 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
41865 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
41866 $(EXEEXT) to automake TESTS variable, for mingw32.
41868 2006-01-17 Simon Josefsson <jas@extundo.com>
41870 * modules/socklen (Include): Need sys/socket.h.
41872 2006-01-17 Bruno Haible <bruno@clisp.org>
41874 * modules/ssize_t (Include): Add <sys/types.h>.
41876 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
41878 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
41879 it's not portable and it doesn't work with cross-compiles.
41880 Problem reported by Bruno Haible. Fix missing-$ typo in
41881 'test "gl_cv_ignore_unused_libraries" ...' that prevented
41882 -zignore from being used with Sun's C compiler.
41884 2006-01-12 Simon Josefsson <jas@extundo.com>
41886 * lib/base64.c: Fix warning, reported by Bruno Haible
41887 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
41889 2006-01-12 Bruno Haible <bruno@clisp.org>
41891 * modules/ldd: New file.
41892 * build-aux/ldd.sh.in: New file.
41893 * MODULES.html.sh (Support for building libraries and executables): Add
41896 2006-01-12 Bruno Haible <bruno@clisp.org>
41898 * m4/ldd.m4: New file.
41900 2006-01-12 Bruno Haible <bruno@clisp.org>
41902 * gnulib-tool (func_import, func_create_testdir): Don't go into an
41903 endless loop while replacing $auxdir with build-aux.
41905 2006-01-11 Simon Josefsson <jas@extundo.com>
41907 * lib/stdint_.h (SIZE_MAX): Add missing (.
41909 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
41911 Sync from coreutils.
41912 * lib/md5.c: Fix commentary typos.
41913 (alignof, UNALIGNED_P): No need for a GCC-specific version.
41914 * lib/md5.h (__attribute__): Remove; unused.
41915 * lib/sha1.c: Fix commentary to match md5 better.
41916 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
41917 so that we don't need to worry about alignment. All uses changed.
41918 This merges the 2005-10-28 md5 change into sha1.
41920 2006-01-11 Jim Meyering <jim@meyering.net>
41922 Sync from coreutils.
41923 * lib/md5.c (OP): Fix spacing.
41925 2006-01-11 Bruno Haible <bruno@clisp.org>
41927 Ensure automatic ordering between gl_LOCK and gl_ARGP.
41928 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
41929 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
41931 2006-01-11 Bruno Haible <bruno@clisp.org>
41933 Ensure automatic ordering between gl_LOCK and gl_ARGP.
41934 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
41935 the "early" section as well.
41937 2006-01-11 Bruno Haible <bruno@clisp.org>
41939 Avoid "ar: no archive members specified" error on MacOS X.
41940 * gnulib-tool (func_modules_add_dummy): New function.
41941 (func_import, func_create_testdir): Invoke it.
41943 2006-01-11 Bruno Haible <bruno@clisp.org>
41945 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
41946 with $auxdir in AC_CONFIG_FILES statements.
41948 2006-01-11 Bruno Haible <bruno@clisp.org>
41950 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41951 Initialize also noinst_HEADERS to empty.
41953 2006-01-11 Bruno Haible <bruno@clisp.org>
41955 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
41957 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
41960 2006-01-11 Bruno Haible <bruno@clisp.org>
41962 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
41963 overridable by the user.
41964 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41966 2006-01-10 Simon Josefsson <jas@extundo.com>
41968 * modules/sys_socket: New file.
41970 2006-01-10 Simon Josefsson <jas@extundo.com>
41972 * m4/sys_socket_h.m4: New file.
41974 2006-01-10 Simon Josefsson <jas@extundo.com>
41976 * lib/socket_.h: New file.
41978 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
41980 * modules/readutmp (Maintainer): Add myself.
41982 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
41984 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
41985 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
41986 People who are still concerned with buggy memcmp implementations
41987 can invoke gl_FUNC_MEMCMP themselves.
41989 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
41991 * lib/regex_internal.h (BITSET_WORD_BITS):
41992 Work around a bug in 64-bit PGC (before version 6.1-2), where the
41993 preprocessor mishandles large unsigned values as if they were signed.
41994 Problem reported by Claudio Fontana in
41995 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
41997 2006-01-10 Jim Meyering <jim@meyering.net>
41999 Avoid the double-free (first in fts_read, second in fts_close) that
42000 would occur when an `active' directory is made inaccessible (e.g.,
42001 via chmod a-x) during a traversal.
42002 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
42003 before returning. Reproduce this failure by
42004 mkdir -p a/b; cd a; chmod a-x . b
42005 Reported by Stavros Passas.
42007 Sync from coreutils.
42008 * lib/sha1.c: Tweak grammar in a comment.
42010 2006-01-10 Jim Meyering <jim@meyering.net>
42012 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
42013 Patch by Joerg Sonnenberger.
42015 2006-01-10 Bruno Haible <bruno@clisp.org>
42017 * modules/readutmp: Depend on module free.
42018 * modules/strtok_r: Depend on module restrict.
42020 2006-01-10 Bruno Haible <bruno@clisp.org>
42022 * modules/gettext (configure.ac): Add an invocation of
42023 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
42025 2006-01-10 Bruno Haible <bruno@clisp.org>
42027 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
42028 Reported by Werner Lemberg <wl@gnu.org>.
42030 2006-01-10 Bruno Haible <bruno@clisp.org>
42032 * lib/localcharset.c: Update from GNU gettext.
42034 2006-01-10 Bruno Haible <bruno@clisp.org>
42036 * lib/argp.h (__const): Remove macro. Use const instead.
42037 * lib/argp-fmtstream.h (__const): Likewise.
42038 * lib/glob_.h (__const): Remove macro.
42039 * lib/glob-libc.h: Use const instead of __const.
42041 2006-01-10 Bruno Haible <bruno@clisp.org>
42043 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
42045 Needed to avoid an automake error regarding the 'gettext' module.
42047 2006-01-09 Simon Josefsson <jas@extundo.com>
42049 * modules/inet_ntop (Depends-on): Add restrict.
42051 2006-01-09 Simon Josefsson <jas@extundo.com>
42053 * modules/gc-rijndael-tests (License): Put under LGPL.
42055 * modules/gc-des-tests (License): Likewise.
42057 * modules/gc-arcfour-tests (License): Likewise.
42059 * modules/gc-arctwo-tests (License): Likewise.
42061 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
42063 * modules/gc-hmac-sha1-tests (Files): Likewise.
42065 * modules/gc-hmac-md5-tests (License): Likewise.
42067 * modules/gc-sha1-tests (License): Likewise.
42069 * modules/gc-md5-tests (License): Likewise.
42071 * modules/gc-md4-tests (License): Likewise.
42073 * modules/gc-md2-tests (License): Likewise.
42075 * modules/gc-tests (License): Likewise.
42077 * modules/des-tests (License): Likewise.
42079 * modules/md4-tests (License): Likewise.
42081 * modules/md2-tests (License): Likewise.
42083 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
42085 Sync from coreutils:
42087 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
42088 * modules/lib-ignore: New file.
42089 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
42090 chdir-safer.m4, lchmod.m4.
42091 * modules/openat: Add mkdirat.c, openat-priv.h.
42093 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
42095 Sync from coreutils.
42096 * m4/lib-ignore.m4: New file.
42097 * m4/lchmod.m4: New file.
42099 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
42101 Sync from coreutils.
42102 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
42103 for write access: POSIX says that must fail.
42104 * lib/fts.c (diropen): Likewise.
42105 * lib/save-cwd.c (save_cwd): Likewise.
42106 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
42107 well, for minor improvements on hosts that lack O_DIRECTORY.
42108 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
42109 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
42110 Fall back on chown if open failed with EACCES.
42112 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
42113 Report an error at compile-time if only a 1-second nominal clock
42114 resolution is found.
42116 * lib/lchmod.h: New file.
42117 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
42118 (make_dir_parents): Use lchown rather than chown, and
42119 lchmod rather than chmod.
42121 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
42122 dummies too. Problem with "none" reported by Bob Proulx. Problem with
42123 "proc" reported by n0dalus.
42125 * lib/mountlist.c: Include <limits.h>.
42126 (dev_from_mount_options)
42127 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
42128 New function. It no longer assumes "dev=" has the System V meaning
42129 on Linux (since it doesn't). It also parses "dev=" more carefully.
42130 (read_file_system_list)
42131 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
42132 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
42135 * lib/posixtm.h (PDS_PRE_2000): New macro.
42136 * lib/posixtm.c (year): Arg is now syntax_bits rather than
42137 allow_century. All usages changed. Reject dates outside the range
42138 1969-1999 if PDS_PRE_2000 is used.
42140 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
42142 Sync from coreutils.
42143 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
42144 (Time of day items): Mention the possibility of leap seconds.
42145 Problem reported by Dr. David Alan Gilbert.
42147 2006-01-09 Jim Meyering <jim@meyering.net>
42149 Sync from coreutils.
42151 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
42153 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
42155 * lib/modechange.c (mode_compile): Reject an invalid mode string
42156 that starts with an octal digit. From Andreas Gruenbacher.
42158 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
42159 and dup to open_safer and dup_safer, respectively.
42160 (openat_permissive): Fix typo in comment.
42162 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
42163 "gettext.h"; either no longer needed or are guaranteed by openat.h.
42164 (_): Remove; no longer needed.
42165 (openat): Renamed from rpl_openat; no need for rpl_openat
42166 since openat.h renames openat for us.
42167 Replace most of the body with a call to openat_permissive,
42168 to avoid duplicate code.
42169 Port to (probably hypothetical) environments were mode_t is
42171 (openat_permissive): Require mode arg, so that we can check
42172 types better. Put it just after flags. Change cwd failure
42173 indicator from pointer-to-bool to pointer-to-errno-value.
42174 All callers changed.
42175 Invoke openat_save_fail and/or openat_restore_fail if
42176 cwd_errno is null, so that openat can call us.
42177 (openat_permissive, fdopendir, fstatat, unlinkat):
42178 Simplify errno handling to avoid some duplicate code,
42179 as it's OK to set errno on success.
42180 * lib/openat.h: Revamp code so that function macros depend on
42181 __OPENAT_PREFIX only, not also on AT_FDCWD.
42182 (openat_ro): Remove. Caller changed to use openat_permissive.
42183 (openat_permissive): Now a macro, if not a function.
42184 (openat_restore_fail, openat_save_fail): Now always functions,
42185 since mkdirat needs them even if __OPENAT_PREFIX is defined.
42187 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
42189 * lib/mkdirat.c: Include openat-priv.h.
42190 Remove definitions of macros defined therein.
42191 * lib/openat.c: Likewise.
42193 * lib/mkdirat.c (mkdirat): New file and function.
42194 * lib/openat.h (mkdirat): Declare.
42196 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
42198 * lib/openat.h (openat_permissive): Declare.
42199 (openat_ro): Define.
42201 * lib/openat.c (EXPECTED_ERRNO): New macro.
42202 (openat_permissive): New function -- used in remove.c rewrite.
42203 (all functions): Set errno just before returning, only if there
42204 was an actual failure.
42205 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
42207 Emulate openat-family functions using Linux's procfs, if possible.
42208 Idea and some code based on Ulrich Drepper's glibc changes.
42210 * lib/openat.c: (BUILD_PROC_NAME): New macro.
42211 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
42212 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
42213 before falling back on save_cwd and restore_cwd.
42214 (fdopendir, fstatat, unlinkat): Likewise.
42216 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
42217 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
42219 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
42220 as second argument to va_arg. Otherwise, some versions of gcc
42221 warn that `if this code is reached, the program will abort'.
42223 2006-01-09 Jim Meyering <jim@meyering.net>
42225 Sync from coreutils.
42226 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
42227 Require openat-priv.h.
42229 2006-01-09 Bruno Haible <bruno@clisp.org>
42231 * modules/strnlen (Include): Use strnlen.h.
42233 2006-01-09 Bruno Haible <bruno@clisp.org>
42235 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
42237 2006-01-09 Bruno Haible <bruno@clisp.org>
42239 * lib/sysexit_.h (EX_OK): New macro.
42240 Suggested by Martin Lambers <marlam@marlam.de>.
42242 2006-01-09 Bruno Haible <bruno@clisp.org>
42244 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
42245 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
42247 2006-01-09 Bruno Haible <bruno@clisp.org>
42249 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
42252 2006-01-09 Bruno Haible <bruno@clisp.org>
42254 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
42255 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
42256 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
42257 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
42259 2006-01-09 Bruno Haible <bruno@clisp.org>
42261 * build-aux/javacomp.sh.in: New file, moved from lib/.
42262 * modules/javacomp-script (Files): Update.
42263 (configure.ac): Add AC_CONFIG_FILES invocation.
42264 (EXTRA_DIST): Remove variable.
42266 * build-aux/javaexec.sh.in: New file, moved from lib/.
42267 * modules/javaexec (Files): Update.
42268 (configure.ac): Add AC_CONFIG_FILES invocation.
42269 (EXTRA_DIST): Remove javaexec.sh.in.
42271 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
42272 * modules/csharpcomp-script (Files): Update.
42273 (configure.ac): Add AC_CONFIG_FILES invocation.
42274 (EXTRA_DIST): Remove variable.
42276 * build-aux/csharpexec.sh.in: New file, moved from lib/.
42277 * modules/csharpexec (Files): Update.
42278 (configure.ac): Add AC_CONFIG_FILES invocation.
42279 (EXTRA_DIST): Remove csharpexec.sh.in.
42281 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
42283 Sync from coreutils.
42285 Add POSIX ACL support
42286 * lib/acl.h (copy_acl, set_acl): Add declarations.
42287 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
42288 systems other than Linux.
42289 (chmod_or_fchmod): New function: use fchmod when possible,
42290 and chmod otherwise.
42291 (file_has_acl): Add a POSIX ACL implementation, with a
42292 Linux-specific subcase.
42293 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
42294 S_ISVTX from one file to another. Fall back to fchmod/chmod when
42295 acls are unsupported.
42296 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
42297 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
42300 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
42302 Sync from coreutils.
42303 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
42305 2006-01-07 Bruno Haible <bruno@clisp.org>
42307 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
42310 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
42312 * lib/strftime.c (tzname): Don't declare if it is already #defined.
42313 Problem reported for Mingw by Mark Junker.
42315 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
42317 * README: Gnulib normally doesn't generate a tarball.
42319 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
42321 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
42322 long int, not int, for nanosecond counts, so that people who are
42323 used to POSIX struct timespec won't be surprised. Reported by Jim
42326 2005-12-28 Bruno Haible <bruno@clisp.org>
42328 * build-aux/config.rpath: Update from GNU gettext.
42330 2005-12-16 Jim Meyering <jim@meyering.net>
42332 * modules/fprintftime: New module.
42333 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
42335 2005-12-16 Jim Meyering <jim@meyering.net>
42337 * m4/fprintftime.m4: New file.
42339 2005-12-16 Jim Meyering <jim@meyering.net>
42341 * lib/fprintftime.c, lib/fprintftime.h: New files.
42343 2005-12-15 Simon Josefsson <jas@extundo.com>
42345 * modules/socklen (configure.ac): Fix M4 macro name, to align with
42348 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
42350 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
42351 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
42353 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
42355 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
42356 * lib/argp-help.c (fill_in_uparams): Check if the constructed
42357 struct uparams is valid. Fall back to the default values if it is
42360 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
42362 * modules/argp (Files): Add argp-pin.c
42363 (Depends-on): dirname
42364 (lib_SOURCES): Add argp-pin.c
42366 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
42368 * m4/argp.m4: Check if program_invocation_name and
42369 program_invocation_short_name are declared and define appropriate
42370 macros if they are not.
42372 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
42374 * lib/argp-help.c (__argp_base_name): New function
42375 (__argp_short_program_name): Rewrite using __argp_base_name
42376 * lib/argp-namefrob.h: Define program_invocation_name and
42377 program_invocation_short_name if requested
42378 (__argp_base_name): Add prototype
42379 * lib/argp-parse.c (argp_def): Use gettext wrappers
42380 (argp_default_parser): Use __argp_base_name
42381 * lib/argp-pin.c: New file. Defines program_invocation_name and
42382 program_invocation_short_name on systems that lack them.
42384 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
42386 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
42387 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42388 porting problem reported by Georg Schwarz in
42389 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42391 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
42393 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
42394 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42395 porting problem reported by Georg Schwarz in
42396 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42398 2005-12-05 Bruno Haible <bruno@clisp.org>
42400 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
42401 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
42402 Reported by Mark Junker <mjscod@gmx.de>.
42404 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
42406 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
42407 Use implementation from Albert Chin, with some
42408 comments/corrections by Stepan Kasal and myself.
42410 2005-12-02 Bruno Haible <bruno@clisp.org>
42412 * gnulib-tool (func_import): Accept GPLed build tool modules when
42414 * modules/csharpcomp-script: New file.
42415 * modules/csharpcomp: Depend on it.
42416 * modules/javacomp-script: New file.
42417 * modules/javacomp: Depend on it.
42418 Suggested by Simon Josefsson.
42420 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
42422 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
42423 statement, to work around an HP-UX 10.20 compiler bug reported by
42426 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
42428 * modules/savedir (Depends-on): Add openat.
42430 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
42432 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
42433 (uintmax_t) [defined uintmax_t]: Do not declare.
42434 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
42435 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
42436 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
42437 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
42438 sake of portability to weird hosts that C allows (though we don't
42439 know of any practical examples).
42441 * lib/savedir.h (fdsavedir): New decl.
42442 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
42443 contains most of the former guts of savedir.
42444 (savedir): Use savedirstream.
42445 Include "openat.h".
42447 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
42449 * modules/obstack (Files): Add m4/ulonglong.m4.
42450 Problem reported by Davide Angelocola.
42452 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
42454 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
42455 coreutils no longer futzes with rounding modes.
42457 2005-11-14 Jim Meyering <jim@meyering.net>
42459 * lib/mkstemp-safer.c: Include <config.h>, required for possible
42460 replacement of mkstemp.
42462 2005-11-10 Simon Josefsson <jas@extundo.com>
42464 * lib/readline.c: Remove EOL.
42466 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
42468 * modules/gethrxtime (Depends-on): Add gettime.
42470 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
42472 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
42473 or gettimeofday; no longer needed.
42475 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
42477 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
42479 (gethrxtime) [! (HAVE_NANOUPTIME
42480 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
42481 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
42482 our own approximation.
42484 2005-11-08 Eric Blake <ebb9@byu.net>
42486 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42488 2005-11-08 Eric Blake <ebb9@byu.net>
42490 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42492 2005-11-04 Bruno Haible <bruno@clisp.org>
42494 * gnulib-tool: Implement --update mode.
42496 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
42498 Fix porting problem reported by Theodoros V. Kalamatianos.
42499 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
42500 Don't assume that futimes failing means we must fail.
42502 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
42504 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
42505 variables to suggest the intended function of the PATH_MAX check.
42507 2005-10-30 Kean Johnston <jkj@sco.com>
42509 Trivial changes to support SCO systems.
42510 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
42512 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
42513 where __ptr is null when no I/O is pending.
42515 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
42517 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
42518 leave errno alone. Problem reported by Dmitry V. Levin.
42520 2005-10-28 Simon Josefsson <jas@extundo.com>
42522 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
42525 * tests/test-gc-md2.c, tests/test-md2.c: New files.
42527 * modules/md2, modules/md2-tests: New files.
42529 2005-10-28 Simon Josefsson <jas@extundo.com>
42531 * m4/inet_ntop.m4: More tests.
42533 * m4/gc-md2.m4, md2.m4: New file.
42535 2005-10-28 Simon Josefsson <jas@extundo.com>
42537 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
42538 "restrict" keywords, as per POSIX. Protect the function
42539 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
42540 Don't use K&R prototypes. Check the sprintf return values.
42541 Re-define EAFNOSUPPORT if not present. Indent.
42543 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
42544 suggested by Bruno Haible <bruno@clisp.org>.
42546 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
42548 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
42550 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
42553 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
42555 * lib/md2.h, lib/md2.c: New files.
42557 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
42559 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
42560 errno alone. Problem reported by Frederic Jolliton.
42562 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
42564 * modules/verify (License): Change from GPL to LGPL. This is a
42565 tiny module and there are apparently near-equivalents that are
42566 under the BSD license.
42568 2005-10-24 Simon Josefsson <jas@extundo.com>
42570 * modules/sha1: Relicense to LGPL.
42572 2005-10-24 Simon Josefsson <jas@extundo.com>
42574 * lib/md4.h: Shrink buffer size, now that we changed the type.
42576 2005-10-23 Simon Josefsson <jas@extundo.com>
42578 * gnulib-tool (func_import): Fix --tests-base.
42580 2005-10-22 Simon Josefsson <jas@extundo.com>
42582 * modules/arcfour (Depends-on): Need stdint.
42584 2005-10-22 Simon Josefsson <jas@extundo.com>
42586 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
42587 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
42589 2005-10-22 Simon Josefsson <jas@extundo.com>
42591 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
42592 suggested by Bruno Haible <bruno@clisp.org>.
42594 2005-10-22 Simon Josefsson <jas@extundo.com>
42596 * lib/crc.h: Include stddef.h, for size_t.
42598 2005-10-22 Simon Josefsson <jas@extundo.com>
42600 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
42601 arcfour_context struct (simplify test vector testing in GNU
42604 2005-10-21 Simon Josefsson <jas@extundo.com>
42606 * modules/des, modules/des-tests: New files.
42608 * modules/gc-des, modules/gc-des-tests: New files.
42610 * tests/test-des.c, tests/test-gc-des.c: New file.
42612 2005-10-21 Simon Josefsson <jas@extundo.com>
42614 * modules/arctwo, modules/arctwo-tests: New files.
42616 * tests/test-arctwo.c: New file.
42618 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
42620 * tests/test-gc-arctwo.c: New file.
42622 2005-10-21 Simon Josefsson <jas@extundo.com>
42624 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
42625 Bruno Haible <bruno@clisp.org>.
42627 * m4/gc-des.m4: New file.
42629 2005-10-21 Simon Josefsson <jas@extundo.com>
42631 * m4/arctwo.m4: New file.
42633 * m4/gc-arctwo.m4: New file.
42635 2005-10-21 Simon Josefsson <jas@extundo.com>
42637 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
42640 2005-10-21 Simon Josefsson <jas@extundo.com>
42642 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
42645 * lib/hmac-sha1.c (hmac_sha1): Likewise.
42647 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
42648 Bruno Haible <bruno@clisp.org>.
42650 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
42653 2005-10-21 Simon Josefsson <jas@extundo.com>
42655 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
42657 2005-10-21 Simon Josefsson <jas@extundo.com>
42659 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
42661 2005-10-21 Simon Josefsson <jas@extundo.com>
42663 * lib/des.h, lib/des.c: New files.
42665 * lib/gc-gnulib.c: Support DES.c
42667 2005-10-21 Simon Josefsson <jas@extundo.com>
42669 * lib/arctwo.h, lib/arctwo.c: New files.
42671 * lib/gc-gnulib.c: Support ARCTWO.
42673 2005-10-21 Simon Josefsson <jas@extundo.com>
42675 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
42676 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42678 2005-10-21 Simon Josefsson <jas@extundo.com>
42680 * gnulib-tool (func_import, func_create_testdir): Define automake
42681 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
42682 Makefile.am snippet),
42683 suggested by Bruno Haible <bruno@clisp.org>.
42685 * modules/gc (Makefile.am): Use it.
42687 2005-10-21 Bruno Haible <bruno@clisp.org>
42689 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
42692 2005-10-19 Simon Josefsson <jas@extundo.com>
42694 * tests/test-gc-rijndael.c: New file.
42696 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
42698 2005-10-19 Simon Josefsson <jas@extundo.com>
42700 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
42703 2005-10-19 Simon Josefsson <jas@extundo.com>
42705 * tests/test-gc-arcfour.c: New file.
42707 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
42709 2005-10-19 Simon Josefsson <jas@extundo.com>
42711 * modules/gc-md4, modules/gc-md4-tests: New file.
42713 * tests/test-gc-md4.c: New file.
42715 2005-10-19 Simon Josefsson <jas@extundo.com>
42717 * m4/gc-md4.m4: New file.
42719 2005-10-19 Simon Josefsson <jas@extundo.com>
42721 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
42722 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
42725 2005-10-19 Simon Josefsson <jas@extundo.com>
42727 * m4/gc-arcfour.m4: New file.
42729 * m4/gc-rijndael.m4: New file.
42731 2005-10-19 Simon Josefsson <jas@extundo.com>
42733 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
42735 2005-10-19 Simon Josefsson <jas@extundo.com>
42737 * lib/gc-gnulib.c: Support ARCFOUR.
42739 2005-10-19 Simon Josefsson <jas@extundo.com>
42741 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
42744 * lib/gc.h: Add ECB enum type.
42746 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
42748 2005-10-18 Simon Josefsson <jas@extundo.com>
42750 * tests/test-md5.c: New file.
42752 * modules/md5-tests: New file.
42754 2005-10-18 Simon Josefsson <jas@extundo.com>
42756 * tests/test-md4.c: New file.
42758 * modules/md4, modules/md4-tests: New files.
42760 2005-10-18 Simon Josefsson <jas@extundo.com>
42762 * m4/md4.m4: New file.
42764 2005-10-18 Simon Josefsson <jas@extundo.com>
42766 * lib/md4.h, lib/md4.c: New files, based on md5.?.
42768 2005-10-17 Stepan Kasal <kasal@ucw.cz>
42770 * gnulib-tool (func_create_testdir): Omit the second check whether
42771 BUILT_SOURCES in nonempty.
42773 2005-10-17 Simon Josefsson <jas@extundo.com>
42775 * tests/test-rijndael.c: New file.
42777 2005-10-17 Simon Josefsson <jas@extundo.com>
42779 * modules/sha1: Depend on stdint instead of md5.
42781 * modules/md5: Depend on stdint, remove uint32_t.
42783 2005-10-17 Simon Josefsson <jas@extundo.com>
42785 * modules/gc-sha1-tests: New file.
42787 * tests/test-gc-sha1.c: New file.
42789 2005-10-17 Simon Josefsson <jas@extundo.com>
42791 * m4/md5.m4: Remove call to uint32_t.m4.
42793 2005-10-17 Simon Josefsson <jas@extundo.com>
42795 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
42797 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
42800 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
42802 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
42804 2005-10-17 Simon Josefsson <jas@extundo.com>
42806 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
42808 2005-10-17 Simon Josefsson <jas@extundo.com>
42810 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
42812 2005-10-17 Simon Josefsson <jas@extundo.com>
42814 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
42816 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
42818 2005-10-17 Bruno Haible <bruno@clisp.org>
42820 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
42821 that it can also be used in a test.
42823 2005-10-16 Bruno Haible <bruno@clisp.org>
42825 * gnulib-tool (func_emit_tests_Makefile_am): Also define
42826 TESTS_ENVIRONMENT, so that individual tests can augment it.
42828 * gnulib-tool (func_create_testdir): Use an intermediate target for
42829 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
42830 macros, like $(ALLOCA_H), which cannot be passed through the command
42833 2005-10-15 Simon Josefsson <jas@extundo.com>
42835 * modules/rijndael-tests: New file.
42837 * modules/rijndael: New file.
42839 2005-10-15 Simon Josefsson <jas@extundo.com>
42841 * m4/rijndael.m4: New file.
42843 2005-10-15 Simon Josefsson <jas@extundo.com>
42845 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
42847 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
42849 2005-10-14 Simon Josefsson <jas@extundo.com>
42851 * tests/test-arcfour.c: New file.
42853 * modules/arcfour, modules/arcfour-tests: New files.
42855 2005-10-14 Simon Josefsson <jas@extundo.com>
42857 * m4/arcfour.m4: New file.
42859 2005-10-14 Simon Josefsson <jas@extundo.com>
42861 * lib/arcfour.h, lib/arcfour.c: New files.
42863 2005-10-14 Roland McGrath <roland@redhat.com>
42865 Import from libc. [BZ #1331]
42866 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
42868 Reported by Matej Vela <vela@debian.org>.
42870 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
42872 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
42873 include <wchar.h>; no longer needed.
42875 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
42877 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
42879 2005-10-14 Jakub Jelinek <jakub@redhat.com>
42880 and Ulrich Drepper <drepper@redhat.com>
42883 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
42884 instead of inline stream orientation test and two separate
42885 function calls. Pay no attention to USE_IN_LIBIO.
42887 2005-10-13 Simon Josefsson <jas@extundo.com>
42889 * modules/gc-hmac-md5-tests: New file.
42891 * tests/test-gc-hmac-sha1.c: New file.
42893 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
42895 * modules/gc-hmac-md5-tests: New file.
42897 * tests/test-gc-md5.c: New file.
42899 * modules/gc-md5-tests: New file.
42901 2005-10-13 Simon Josefsson <jas@extundo.com>
42903 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
42904 Move memory allocation outside of loop.
42906 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
42908 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
42909 intermediate directory is in a read-only file system. Problem
42910 reported by Eric Blake.
42912 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
42914 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
42916 2005-10-12 Simon Josefsson <jas@extundo.com>
42918 * tests/test-hmac-sha1.c: New file.
42920 * modules/hmac-sha1-tests: New file.
42922 * modules/hmac-sha1: New file.
42924 2005-10-12 Simon Josefsson <jas@extundo.com>
42926 * modules/gc-sha1: New file.
42928 2005-10-12 Simon Josefsson <jas@extundo.com>
42930 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
42932 * tests/test-gc-pbkdf2-sha1.c: New file.
42934 2005-10-12 Simon Josefsson <jas@extundo.com>
42936 * modules/gc-md5, modules/gc-hmac-md5: New files.
42938 * modules/gc (Files): Remove md5, memxor and hmac files.
42940 2005-10-12 Simon Josefsson <jas@extundo.com>
42942 * m4/gc-pbkdf2-sha1.m4: New file.
42944 * m4/gc-hmac-sha1.m4: New file.
42946 * m4/gc-sha1: New file.
42948 * m4/hmac-sha1.m4: New file.
42950 2005-10-12 Simon Josefsson <jas@extundo.com>
42952 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
42954 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
42956 2005-10-12 Simon Josefsson <jas@extundo.com>
42958 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
42959 suggested by Bruno Haible <bruno@clisp.org>.
42961 2005-10-12 Simon Josefsson <jas@extundo.com>
42963 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
42965 2005-10-12 Simon Josefsson <jas@extundo.com>
42967 * lib/gc-pbkdf2-sha1.c: New file.
42969 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
42971 2005-10-12 Simon Josefsson <jas@extundo.com>
42973 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
42975 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
42977 2005-10-12 Simon Josefsson <jas@extundo.com>
42979 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
42980 GC_USE_HMAC_MD5, respectively.
42982 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
42983 (gc_md5): Fix typo.
42985 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
42987 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
42989 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
42991 2005-10-12 Bruno Haible <bruno@clisp.org>
42993 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
42994 Reported by Stepan Kasal <kasal@ucw.cz>.
42996 2005-10-11 Simon Josefsson <jas@extundo.com>
42998 * tests/test-crc.c: New file.
43000 * modules/crc, modules/crc-tests: New files.
43002 2005-10-11 Simon Josefsson <jas@extundo.com>
43004 * m4/crc.m4: New file.
43006 2005-10-11 Simon Josefsson <jas@extundo.com>
43008 * lib/gc.h: Add gc_hash and gc_hash_buffer.
43010 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
43012 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
43014 2005-10-11 Simon Josefsson <jas@extundo.com>
43016 * lib/crc.h, lib/crc.c: New files.
43018 * lib/gc.h (gc_hash_buffer): Add doc.
43020 2005-10-11 Bruno Haible <bruno@clisp.org>
43022 * modules/c-strcasestr: New file.
43023 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
43025 2005-10-11 Bruno Haible <bruno@clisp.org>
43027 * modules/c-strcase: New file.
43028 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
43030 2005-10-11 Bruno Haible <bruno@clisp.org>
43032 * lib/strcasecmp.c: Include limits.h.
43033 (strcasecmp): Avoid integer overflow on exotic platforms.
43034 * lib/strncasecmp.c: Include limits.h.
43035 (strncasecmp): Avoid integer overflow on exotic platforms.
43036 Reported by Paul Eggert.
43038 2005-10-11 Bruno Haible <bruno@clisp.org>
43040 * lib/c-strcasestr.h: New file, from GNU gettext.
43041 * lib/c-strcasestr.c: New file, from GNU gettext.
43043 2005-10-11 Bruno Haible <bruno@clisp.org>
43045 * lib/c-strcase.h: New file, from GNU gettext.
43046 * lib/c-strcasecmp.c: New file, from GNU gettext.
43047 * lib/c-strncasecmp.c: New file, from GNU gettext.
43049 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
43051 * modules/mempcpy (License): GPL -> LGPL.
43052 * modules/strchrnul (License): Likewise.
43053 * modules/sysexits (License): Likewise.
43055 2005-10-08 Simon Josefsson <jas@extundo.com>
43057 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
43059 2005-10-07 Simon Josefsson <jas@extundo.com>
43061 * m4/memxor.m4: Remove gl_C_RESTRICT call.
43063 2005-10-06 Simon Josefsson <jas@extundo.com>
43065 * tests/test-hmac-md5.c: New file.
43067 * modules/hmac-md5-tests: New file.
43069 * modules/hmac-md5: New file.
43071 2005-10-06 Simon Josefsson <jas@extundo.com>
43073 * m4/hmac-md5.m4: New file.
43075 * m4/memxor.m4: Require gl_C_RESTRICT.
43077 2005-10-06 Simon Josefsson <jas@extundo.com>
43079 * lib/memxor.c (memxor): Avoid casts and warnings.
43081 2005-10-06 Simon Josefsson <jas@extundo.com>
43083 * lib/hmac-md5.c: New file.
43085 * lib/hmac.h: New file.
43087 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
43089 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
43090 promotes to int, not unsigned int, to catch the AIX 5.3
43093 2005-10-05 Simon Josefsson <jas@extundo.com>
43095 * modules/memxor: New file.
43097 * modules/iconv (Files): Move config.rpath to havelib, it is used
43100 * modules/havelib (Files): Add config.rpath.
43102 2005-10-05 Simon Josefsson <jas@extundo.com>
43104 * m4/memxor.m4: New file.
43106 2005-10-05 Simon Josefsson <jas@extundo.com>
43108 * lib/memxor.c (memxor): Fix compiler error.
43110 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
43111 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
43113 * lib/memxor.h, lib/memxor.c: New files.
43115 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
43116 we assume all systems have it, suggested by Jim Meyering
43117 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
43118 any systems lack sys/socket.h; mingw32 is known to lack it, but we
43119 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
43122 2005-10-05 Simon Josefsson <jas@extundo.com>
43124 * config/srclist.txt: Add glibc bug 1423 for md5.h.
43126 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
43128 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
43129 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
43130 needed, since the source code now assumes these .h files.
43132 2005-10-05 Derek Price <derek@ximbiot.com>
43134 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
43136 2005-10-05 Bruno Haible <bruno@clisp.org>
43138 * modules/stdint (License): Change to LGPL.
43140 2005-10-04 Simon Josefsson <jas@extundo.com>
43142 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
43143 D. Baushke" <mdb@gnu.org>.
43145 2005-10-04 Bruno Haible <bruno@clisp.org>
43147 * lib/verify.h (verify_true): Provide alternative definition for C++.
43149 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
43151 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
43152 (SSIZE_MAX): New macro, if not already defined.
43153 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
43156 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
43158 Sync from coreutils.
43159 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
43160 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
43161 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
43162 ULLONG_MAX doesn't work with 2.7.2.1.
43164 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
43166 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
43169 * modules/exclude (Depends-on): Depend on verify.
43170 * modules/strtoimax (Depends-on): Likewise.
43171 * modules/utimecmp (Depends-on): Likewise.
43173 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
43175 * lib/exclude.c: Include verify.h.
43176 (verify): Remove. All callers changed to use verify.h's version.
43177 * lib/strtoimax.c: Likewise.
43178 * lib/utimecmp.c: Likewis.e
43180 Sync from coreutils.
43181 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
43182 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
43183 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
43184 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
43185 bother returning ENOSYS if settimeofday or stime fails; just let
43186 them return whatever errno they want to return.
43187 * lib/utimens.c: Include unistd.h, for dup2.
43188 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
43189 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
43191 2005-10-02 Jim Meyering <jim@meyering.net>
43193 Sync from coreutils.
43194 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
43195 from glibc-2.2.5 that fails for read-only files.
43197 2005-10-02 Jim Meyering <jim@meyering.net>
43199 Sync from coreutils.
43200 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
43201 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
43202 `#if HAVE_CONFIG_H'.
43203 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
43204 Remove AT_FDCWD test.
43205 Do not consume the fd unless successful.
43206 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
43207 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
43208 block, so that we don't even try to compile it if settimeofday is
43209 available. This works around a compilation failure on OSF1 V5.1,
43210 due to stime requiring a `long int*' while tv_sec is `int'.
43212 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
43214 Sync from coreutils.
43215 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
43216 against `yes', rather than just testing for nonempty.
43218 2005-10-01 Simon Josefsson <jas@extundo.com>
43220 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
43223 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
43224 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
43225 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
43226 freeaddrinfo and gai_strerror are declared by the POSIX headers.
43227 Check if struct addrinfo is declared.
43229 2005-10-01 Simon Josefsson <jas@extundo.com>
43231 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
43232 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
43233 AI_* and EAI_* definitions. Protect function declarations.
43235 2005-10-01 Jim Meyering <jim@meyering.net>
43237 Sync from coreutils.
43239 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
43240 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
43241 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
43242 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
43243 in the inet and nsl libraries. Required on Solaris 5.7.
43245 2005-10-01 Jim Meyering <jim@meyering.net>
43247 Sync from coreutils.
43248 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
43249 in the inet and nsl libraries. Required on Solaris 5.7.
43251 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
43253 * lib/getdelim.c (getdelim): Remove unused variables.
43255 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
43257 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
43258 so that the code works even with ancient cpp. Portability problem
43259 with GCC 2.7.2.1 reported by Thomas M.Ott.
43261 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
43263 * modules/regex (Depends-on): Add strcase.
43265 * modules/gethostname (Licence): Change from GPL to LGPL, since
43266 gethostname.c is a trivial implementation of a standard library
43268 * modules/poll (License): Change from GPL to LGPL, since it's
43269 derived from LGPL code.
43271 2005-09-27 Jim Meyering <jim@meyering.net>
43273 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
43276 * lib/intprops.h (signed_type_or_expr__): Define.
43277 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
43278 for unsigned types.
43280 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
43282 * lib/verify.h (verify_expr): Remove, replacing with:
43283 (verify_true): New macro that returns true instead of void.
43284 (verify_type__): Remove.
43285 (verify): Use verify_true rather than verify_type__.
43287 2005-09-26 Bruno Haible <bruno@clisp.org>
43289 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
43291 (lib_SOURCES): Remove mbchar.c.
43292 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
43293 (Files): Add m4/mbrtowc.m4.
43294 * modules/mbiter: Likewise.
43295 * modules/mbuiter: Likewise.
43297 2005-09-26 Bruno Haible <bruno@clisp.org>
43299 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
43300 compile mbchar.c if they are not both present.
43301 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
43302 * m4/mbiter.m4 (gl_MBITER): Likewise.
43303 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
43304 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
43305 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
43307 2005-09-25 Jim Meyering <jim@meyering.net>
43309 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
43310 also uses socklen_t.
43312 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
43314 * lib/utimens.c (ENOSYS): Define if not already defined.
43315 (futimens): Support having a null PATH if the file descriptor
43318 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
43320 (__attribute): Define to empty unless GCC 3.1 or later.
43321 This works around a core dump on OpenBSD 3.4, which has GCC
43322 2.95.3, which dumps core when given __attribute__(()). It also
43323 simplifies other tests, since we really don't want to bother with
43324 worrying about which ancient version of GCC supported what.
43325 Original problem reported by Yoann Vandoorselaere, with part of
43326 the fix suggested by Derek Price.
43328 2005-09-24 Jim Meyering <jim@meyering.net>
43330 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
43331 so we can once again use a positive bitfield width of 1 -- now we
43332 don't have to explain why we were using a bitfield width of 2.
43334 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
43336 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
43337 and similarly for the other external symbols. Problem reported
43340 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
43341 bug reported by Jim Meyering.
43343 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
43344 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
43345 not needed, since socklen is a prerequisite module.
43347 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
43349 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
43350 Problem reported by Eric Blake.
43351 (getaddrinfo): Initialize se so that it's not garbage.
43352 Redo internal storage allocation so that it doesn't make unportable
43353 assumptions about alignment.
43356 * lib/utimens.c (futimens): Use futimesat if available.
43357 Prefer it to futimes since it doesn't have the futimes bug.
43359 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
43360 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
43361 Instead, declare a function that returns a pointer to an array,
43362 and use verify_type__ to declare the size of the array.
43363 Problem and germ of a solution reported by Bruno Haible.
43364 (verify_type__): Use 2, not 1, for bitfield size, to avoid
43365 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
43367 2005-09-23 Jim Meyering <jim@meyering.net>
43369 Sync from coreutils.
43370 Correct build failure (socklen_t not defined) on at least
43371 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
43372 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
43374 2005-09-23 Jim Meyering <jim@meyering.net>
43376 * modules/getaddrinfo (Depends-on): Add socklen.
43378 2005-09-23 Bruno Haible <bruno@clisp.org>
43380 * tests/test-verify.c: New file.
43382 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43384 Sync from coreutils.
43386 * modules/argmatch (Depends-on): Add verify.
43387 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
43389 * modules/save-cwd (Depends-on): Likewise.
43391 * modules/openat (Files): Add lib/openat-die.c.
43392 (Depends-on): Remove error, exitfail.
43395 * modules/verify: New file.
43396 * MODULES.html.sh (Diagnostics <assert.h>): New section,
43397 with "verify" module.
43399 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43401 Sync from coreutils.
43403 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
43404 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
43405 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
43406 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
43407 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
43408 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
43409 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
43410 Don't bother checking for string.h, stdlib.h, unistd.h.
43411 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
43412 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
43414 * m4/jm-macros.m4 (gl_MACROS): Likewise.
43415 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
43417 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
43418 (gl_GETDATE): Use it.
43420 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
43422 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43424 Sync from coreutils.
43426 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
43428 * lib/argmatch.h: Include verify.h
43429 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
43430 (ARGMATCH_ASSERT): Remove; unused.
43431 * lib/canonicalize.c: Assume STDC_HEADERS.
43432 * lib/exclude.c: Include "strcase.h".
43433 * lib/regex_internal.h [!defined _LIBC]: Likewise.
43434 * lib/getusershell.c: Include stdio--.h rather than stdio.h
43436 (getusershell): Call fopen, not fopen_safer.
43437 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
43438 Do not include unistd-safer.h.
43439 (save_cwd): Don't call fd_safer; no longer needed
43440 now that we include fcntl--.h.
43442 * lib/getdate.y (relative_time): New type.
43443 (RELATIVE_TIME_0): New constant.
43444 (parser_control): Use relative_time instead of doing it ourselves.
43445 (%union): Add new relative_time rel member.
43446 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
43448 (relunit, relunit_snumber): Now of type rel.
43449 (zone, rel, relunit, get_date): Adjust to above changes.
43451 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
43452 Do not include unistd-safer.h.
43453 (getloadavg): Don't call fd_safer; no longer needed
43454 now that we include fcntl--.h.
43456 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
43457 (make_dir_parents): Treat ENOSYS like EEXIST.
43459 Improve quality of diagnostics on restore_cwd failure.
43460 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
43461 (make_dir_parents): Last arg is now int * (for errno), not bool *.
43462 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
43463 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
43464 each time through the loop. Do not diagnose restore_cwd failure;
43465 that is the caller's job (and perhaps the caller does not care).
43467 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
43468 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
43469 If the file already exists but is not a directory, don't bother
43470 to try to make its parents.
43471 Close potential file descriptor leak if we can't chdir("/") (!).
43472 Don't always return true if chdir($PWD) fails; return true only
43473 if the requested action was done successfully (except for the
43475 Don't log final directory unless we actually made it.
43476 Refactor to avoid duplicate code to fix up permissions.
43477 Don't attempt to fix up parent permissions if chdir($PWD) fails.
43479 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
43480 to make it a bit faster and (I hope) clearer.
43481 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
43482 Fix bug in formats like %2N.
43484 * lib/verify.h: New file.
43486 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43488 Sync from coreutils.
43489 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
43491 2005-09-22 Jim Meyering <jim@meyering.net>
43493 Sync from coreutils.
43495 * m4/lstat.m4 (gl_FUNC_LSTAT):
43496 Use AC_LIBSOURCES to require lstat.c and lstat.h.
43497 Remove obsolete comment.
43498 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
43499 * m4/xstrtod.m4: Likewise.
43501 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
43503 2005-09-22 Jim Meyering <jim@meyering.net>
43505 Sync from coreutils.
43507 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
43509 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
43510 the .tm_year member, since otherwise gcc-4.0 would now warn about
43511 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
43513 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
43514 order to avoid an unsuppressible warning from gcc on 64-bit systems.
43516 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
43517 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
43518 when run in a time zone for which daylight savings time is in effect
43519 for the starting date.
43521 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
43522 stop us from restricting permissions of just-created absolute-named
43524 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
43525 to restore initial working directory.
43526 * lib/mkdir-p.c (make_dir_parents): New parameter:
43527 different_working_dir, to tell caller if/when we change the working
43528 directory and are unable to return to the initial one.
43529 * lib/mkdir-p.h (make_dir_parents): Update prototype.
43530 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
43531 `return false'. This fixes a bug introduced on 2004-07-30.
43533 * lib/openat.c (fdopendir): Be sure to close the supplied
43534 file descriptor before returning. This makes our replacement
43535 implementation a little closer to Solaris's, where fdopendir
43536 ties the file descriptor to the returned DIR* pointer.
43537 * lib/openat.c (unlinkat): New function.
43538 * lib/openat.h (unlinkat): Add prototype.
43539 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
43540 (openat_restore_fail): Rename from openat_restore_die.
43541 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
43543 Provide an alternative to exiting immediately upon save_cwd or
43544 restore_cwd failure. Now, an application can arrange e.g.,
43545 to perform a longjump in that case.
43546 * lib/openat.c: Include dirname.h.
43547 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
43548 (rpl_openat, fdopendir, fstatat): Call openat_save_die
43549 and openat_restore_die rather than calling error directly.
43550 Don't include "error.h" or "exitfail.h"; they're no longer needed.
43552 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
43553 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
43556 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
43557 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
43558 int utc, int nanoseconds);
43560 date should not have to allocate a megabyte of virtual memory to
43561 handle a format argument like +%1048575T. When implemented with
43562 strftime, it must allocate such a buffer, use strftime to fill it
43563 in, print it, then free it.
43564 With fprintftime, it simply prints everything and exits.
43565 With no need for memory allocation, that's one fewer way to fail.
43566 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
43567 optional field width, not before, so we accept %9:z, not %:9z.
43568 (my_strftime): Be sure to use L_('x') for literals.
43570 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
43571 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
43572 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
43573 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
43574 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
43575 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
43576 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
43577 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
43578 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
43579 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
43580 * lib/xgethostname.c, lib/xreadlink.c:
43581 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
43583 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
43584 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
43585 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
43586 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
43587 and don't include <sys/file.h>).
43589 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
43591 Sync from coreutils.
43593 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
43594 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
43595 [!LDAV_DONE]: Avoid unused variable warning.
43597 2005-09-21 Bruno Haible <bruno@clisp.org>
43599 * lib/unicodeio.h (unicode_to_mb): New declaration.
43601 2005-09-20 Derek Price <derek@ximbiot.com>
43603 * lib/getaddrinfo.c: Don't include <netdb.h> included from
43606 2005-09-20 Bruno Haible <bruno@clisp.org>
43608 * gnulib-tool: Remove trailing slashes from the values specified for
43609 --source-base, --m4-base, --tests-base, --aux-dir.
43610 Suggested by Simon Josefsson <jas@extundo.com>.
43612 2005-09-20 Bruno Haible <bruno@clisp.org>
43614 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
43615 func_modules_to_filelist, func_import, func_create_testdir): Make all
43616 sorting results locale-independent, so that gnulib-cache.m4 doesn't
43617 change when gnulib-tool is invoked in a different locale.
43619 2005-09-19 Simon Josefsson <jas@extundo.com>
43621 * m4/socklen.m4: Fix typo.
43623 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43625 Use a consistent style for including <config.h>.
43626 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
43627 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
43628 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
43629 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
43630 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
43631 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
43632 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
43633 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
43634 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
43635 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
43636 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
43637 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
43638 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
43639 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
43640 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
43641 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
43642 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
43643 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
43644 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
43645 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
43646 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
43647 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
43648 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
43649 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
43650 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
43651 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
43652 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
43653 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
43654 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
43655 lib/xstrtoumax.c, lib/yesno.c:
43656 Standardize inclusion of config.h.
43657 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
43658 lib/inttostr.h: Removed inclusion of config.h from header files.
43659 * lib/inttostr.c: Adjusted in-tree users.
43660 * lib/timespec.h: Remove superfluous warning to include config.h.
43661 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
43662 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
43663 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
43664 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
43665 config.h with HAVE_CONFIG_H.
43667 2005-09-19 Jim Meyering <jim@meyering.net>
43669 * modules/pathmax (License): Change to LGPL.
43671 2005-09-19 Derek Price <derek@ximbiot.com>
43673 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
43675 2005-09-19 Bruno Haible <bruno@clisp.org>
43677 * gnulib-tool (import): Provide default for --tests-base.
43679 2005-09-19 Bruno Haible <bruno@clisp.org>
43681 * doc/quote.texi: New file, extracted from gnulib.texi.
43682 * doc/ctime.texi: New file, extracted from gnulib.texi.
43683 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
43684 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
43685 * doc/gnulib.texi: Include them.
43687 2005-09-18 Bruno Haible <bruno@clisp.org>
43690 * gnulib-tool (func_readlink): New function.
43691 (func_ln_if_changed): Use it.
43693 2005-09-18 Bruno Haible <bruno@clisp.org>
43695 * gnulib-tool: Support --with-tests also with --import.
43696 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
43697 (func_import): Use variables $testsbase and $inctests. Emit a
43698 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
43699 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
43700 SUBDIRS += $testsdir.
43701 (func_create_testdir): Update.
43703 2005-09-18 Bruno Haible <bruno@clisp.org>
43705 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
43706 instead of $dry_run.
43707 (func_cp_if_changed, func_mv_if_changed): Remove functions.
43708 (func_ln_if_changed): Don't handle dry-run here.
43709 (func_import): In dry-run mode, detect more precisely which actions
43710 would be performed, and don't use "...ing" verbs.
43712 2005-09-18 Bruno Haible <bruno@clisp.org>
43714 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
43715 (func_import): Use join on two temporary files instead of three nested
43716 loops, in order to determine which files are new or old.
43718 2005-09-18 Bruno Haible <bruno@clisp.org>
43720 * gnulib-tool (func_import): Comment out code that spits out the
43721 new files with --dry-run.
43723 2005-09-18 Bruno Haible <bruno@clisp.org>
43725 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
43727 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
43729 * lib/stat-time.h: New file.
43730 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
43731 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
43732 in a different way.
43733 (timespec_cmp): New function.
43734 * lib/utimecmp.c: Include stat-time.h.
43735 (SYSCALL_RESOLUTION): Depend on whether various struct stat
43736 members exist, not on the obsolescent ST_MTIM_NSEC.
43737 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
43739 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
43741 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
43743 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
43745 * MODULES.html.sh (File system functions): Add stat-time.
43746 * modules/stat-time: New file.
43747 * modules/timespec (Files): Remove m4/st_mtim.m4; this
43748 is now done in a different way, by the stat-time module.
43749 * modules/utimecmp (Depends-on): Add stat-time.
43751 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
43753 * m4/st_mtim.m4: Remove. Superseded by...
43754 * m4/stat-time.m4: New file.
43755 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
43756 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
43758 2005-09-15 Derek Price <derek@ximbiot.com>
43760 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
43762 2005-09-15 Derek Price <derek@ximbiot.com>
43764 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
43765 * lib/regex_internal.c: Ditto, using this...
43766 (__GNUC_PREREQ): ...new macro.
43767 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
43769 (__GNUC_PREREQ): ...this new macro.
43771 * lib/strstr.h: Include string.h. Define strstr as a macro here.
43773 2005-09-15 Derek Price <derek@ximbiot.com>
43774 Paul Eggert <eggert@cs.ucla.edu>
43776 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
43777 changes, consolidating in...
43778 * lib/regex_internal.h: ...this file.
43780 2005-09-13 Jim Meyering <jim@meyering.net>
43782 * lib/canon-host.c: Filter through gnu indent and reword comments
43784 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
43786 2005-09-13 Derek Price <derek@ximbiot.com>
43788 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
43790 Reported by Jim Meyering <jim@meyering.net>.
43792 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
43794 * lib/base64.c: Typo.
43795 (base64_encode): Put b64str in initialized data section.
43797 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
43799 Merge glibc and coreutils changes into gnulib, plus a few
43801 * lib/md5.c: Use #error rather than a string.
43802 (CYCLIC): New macro, from glibc source. Use it instead of rol.
43803 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
43804 (__attribute__): Define to empty for non recent-GCC.
43805 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
43806 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
43807 Renamed from their non-__ counterparts, with new macros replacing
43808 them if not _LIBC. Add __THROW attribute.
43810 (struct md5_ctx): Align buffer if using GCC.
43811 * lib/sha1.h (struct sha1_ctx): Likewise.
43812 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
43813 The old name was backwards.
43814 (NOTSWAP): Remove; not used.
43815 (rol): New macro, moved here from md5.h.
43816 (sha1_process_block): Remove a FIXME that doesn't make sense.
43818 2005-09-12 Derek Price <derek@ximbiot.com>
43820 Return usable errors from canon-host.
43821 * lib/canon-host.h: New file.
43822 * lib/canon-host.c (canon_host): Wrap...
43823 (canon_host_r): ...this new function, which now relies exclusively on
43825 (ch_strerror): New function.
43826 (last_cherror): New global.
43827 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
43829 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
43831 (freeaddrinfo): Free ai->ai_canonname when set.
43833 2005-09-12 Derek Price <derek@ximbiot.com>
43835 Make canon-host require getaddrinfo.
43836 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
43837 AC_LIBSOURCE canon-host.h. Call...
43838 (gl_PREREQ_CANON_HOST): ...this new function, which requires
43840 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
43842 2005-09-12 Derek Price <derek@ximbiot.com>
43844 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
43846 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
43848 2005-09-12 Derek Price <derek@ximbiot.com>
43850 * lib/gai_strerror.c: Include config.h when available. Include
43851 getaddrinfo.h before other headers to test interface.
43852 Reported by Larry Jones <lawrence.jones@ugs.com>.
43854 2005-09-12 Derek Price <derek@ximbiot.com>
43855 Paul Eggert <eggert@cs.ucla.edu>
43857 * modules/glob (Files): Add glob-libc.h.
43859 2005-09-12 Derek Price <derek@ximbiot.com>
43860 Paul Eggert <eggert@cs.ucla.edu>
43862 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
43863 glob_.h, glob-libc.h.
43864 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
43866 2005-09-12 Derek Price <derek@ximbiot.com>
43867 Paul Eggert <eggert@cs.ucla.edu>
43869 * lib/glob-libc.h: Renamed from glob_.h. The new version is
43870 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
43871 protecting things that should be done only in gnulib contexts.
43872 * lib/glob_.h: New file, containing only the glob things needed for
43874 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
43875 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
43876 (glob, globfree, glob_pattern_p): Now defined simply in terms of
43877 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
43878 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
43879 and to respect the namespace rules better.
43881 2005-09-08 Simon Josefsson <jas@extundo.com>
43883 * modules/socklen: New file.
43885 2005-09-08 Simon Josefsson <jas@extundo.com>
43887 * m4/socklen.m4: New file.
43889 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
43891 * modules/utimens (Files): Add m4/utimbuf.m4, since
43892 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
43893 Reported by Sergey Poznyakoff.
43895 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
43897 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
43898 definitions, since that's the preferred style in glibc.
43899 Fix a minor spacing issue, and update copyright notice to match
43902 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
43904 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
43906 2005-09-06 Simon Josefsson <jas@extundo.com>
43908 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
43909 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
43911 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
43913 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
43916 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
43918 * config/srclist.txt: Add glibc bug 1302.
43920 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
43922 Change bitset word type from unsigned int to unsigned long int,
43923 as this has better performance on typical 64-bit hosts.
43924 Port bitset code to hosts with unusual word sizes.
43925 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
43926 (build_collating_symbol):
43927 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
43928 argument is a bitset. This is merely a style issue, but it makes
43929 it clearer that an entire array is expected.
43930 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
43931 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
43932 Port to the case where bitset_word is not the same as unsigned int.
43933 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
43934 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
43936 * lib/regexec.c (check_dst_limits_calc_pos_1,
43937 check_subexp_matching_top):
43938 (build_trtable, group_nodes_into_DFAstates):
43940 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
43941 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
43942 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
43943 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
43944 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
43945 * lib/regcomp.c (optimize_subexps, lower_subexp):
43946 Work even if bitset_word has holes in its bitwise representation.
43947 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
43948 * lib/regexec.c (check_dst_limits_calc_pos_1,
43949 check_subexp_matching_top):
43951 * lib/regex_internal.c (re_string_reconstruct):
43952 Don't assume UCHAR_MAX == 255.
43953 * lib/regex_internal.h (bitset_set_all): Likewise.
43954 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
43956 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
43957 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
43959 (BITSET_WORD_MAX): New macro.
43960 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
43961 (bitset_set_all, bitset_copy): Now inline functions, not macros.
43962 (bitset_empty, bitset_copy):
43963 Prefer sizeof (bitset) to multiplying it out ourselves.
43964 (bitset_not_merge): Remove; unused.
43965 (bitset_contain): Return bool, not unsigned int with one bit on.
43966 All callers changed.
43967 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
43968 alignment than re_node_set; do this by defining a new internal
43969 type struct dests_alloc and using it to allocate memory.
43971 2005-09-05 Bruno Haible <bruno@clisp.org>
43973 * gnulib-tool (func_import): Fix comparison in handling of symbolic
43976 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
43978 * modules/size_max (Makefile.am): Add size_max.h
43980 2005-09-04 Derek Price <derek@ximbiot.com>
43982 * gnulib-tool (func_import): Fix reversed $symbolic logic.
43984 2005-09-03 Simon Josefsson <jas@extundo.com>
43986 * gnulib-tool: Fix typo.
43988 2005-09-03 Simon Josefsson <jas@extundo.com>
43990 * config/srclist.txt: Add glibc bug 1293.
43992 2005-09-03 Derek Price <derek@ximbiot.com>
43994 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
43995 From Larry Jones <lawrence.jones@ugs.com>.
43997 2005-09-02 Simon Josefsson <jas@extundo.com>
43999 * modules/socklen: New file.
44001 2005-09-02 Simon Josefsson <jas@extundo.com>
44003 * modules/havelib: New module.
44005 * modules/gettext, modules/iconv, modules/lock, modules/readline:
44008 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
44010 Check for arithmetic overflow when calculating sizes, to prevent
44011 some buffer-overflow issues. These patches are conservative, in the
44012 sense that when I couldn't determine whether an overflow was possible,
44013 I inserted a run-time check.
44014 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
44016 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
44017 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
44018 (re_xnrealloc, re_x2nrealloc): New inline functions.
44019 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
44020 parse_bracket_exp):
44021 (build_equiv_class, build_charclass): Check for arithmetic overflow
44022 in size expression calculations.
44023 * lib/regex_internal.c (re_string_realloc_buffers):
44024 (build_wcs_upper_buffer, re_node_set_add_intersect):
44025 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
44026 (re_dfa_add_node, register_state): Likewise.
44027 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
44028 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
44029 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
44030 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
44032 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
44034 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
44035 m4/ulonglong.m4. Problem reported by Martin Lambers.
44037 2005-09-02 Bruno Haible <bruno@clisp.org>
44039 Support for lib vs. lib64 distinction on biarch platforms.
44040 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
44041 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
44042 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
44044 2005-09-02 Bruno Haible <bruno@clisp.org>
44046 * gnulib-tool (import): In the other first-use case, provide defaults
44049 2005-09-02 Bruno Haible <bruno@clisp.org>
44051 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
44052 patches not yet found in the latest gettext release.
44054 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
44056 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
44057 to avoid a collision with bits/local_lim.h in glibc.
44058 All uses changed. Problem reported by Dmitry V. Levin in
44059 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
44061 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
44062 bugs in int versus size_t comparisons.
44063 (re_string_context_at): Fix bug where the code assumed that
44066 Use bool where appropriate.
44067 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
44068 All callers changed.
44069 (calc_eclosure_iter): Likewise, for ROOT arg.
44070 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
44071 (build_charclass_op): Likewise, for NON_MATCH arg.
44072 * lib/regex_internal.c (re_string_allocate, re_string_construct):
44073 (re_string_construct_common): Likewise, for ICASE arg.
44074 * lib/regexec.c (re_search_2_stub, re_search_stub):
44075 Likewise, for RET_LEN arg.
44076 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
44077 (set_regs): Likewise, for FL_BACKTRACK arg.
44078 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
44079 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
44080 (calc_eclosure_iter, parse_bracket_exp):
44081 Use bool for internal variables that are booleans.
44082 * lib/regexec.c (re_search_internal, check_matching,
44083 proceed_next_node):
44084 (set_regs, build_sifted_states, sift_states_bkref):
44085 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
44086 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
44087 (find_collation_sequence_value):
44089 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
44090 (re_node_set_compare):
44091 Return bool, not int. All callers changed.
44092 * lib/regexec.c (check_halt_node_context, check_dst_limits):
44093 (build_trtable, check_node_accept): Likewise.
44094 * lib/regex_internal.h: Include stdbool.h.
44096 Fix bugs uncovered when converting to bool.
44097 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
44098 failure instead of charging ahead blindly.
44099 * lib/regex_internal.c (register_state): Likewise.
44100 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
44101 for freeing internal storage.
44102 (group_nodes_into_DFA_states): Use unsigned int, not int, for
44103 bitset pieces used as boolean, to avoid undefined behavior
44104 on hosts that do int overflow checking.
44106 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
44108 * config/srclist.txt: Add glibc bugs 1285-1287.
44110 2005-09-01 Jim Meyering <jim@meyering.net>
44112 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
44113 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
44114 Require gl_STAT_MACROS, too.
44116 2005-09-01 Bruno Haible <bruno@clisp.org>
44118 * gnulib-tool (import): In the first-use case, provide defaults.
44120 2005-09-01 Bruno Haible <bruno@clisp.org>
44122 * gnulib-tool (func_import): Remove the .tmp files.
44124 2005-09-01 Bruno Haible <bruno@clisp.org>
44126 * gnulib-tool (func_import): Fix handling of symbolic links.
44128 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44130 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
44131 old glibc regex code mishandles strings longer than 2**31 bytes.
44132 This patch fixes this when the regex code is used in gnulib
44133 (i.e., outside glibc).
44135 This patch should not affect the use of the regex code inside
44136 glibc. No doubt this problem also needs to be handled for glibc
44137 as well, but the result will be an incompatible change to the
44138 glibc ABI, and the old ABI will have to be supported too. That
44139 can be the the subject for another patch.
44141 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
44142 governing whether the rest of this patch is active. By default,
44143 the macro is disabled and the patch has no effect.
44144 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
44145 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
44146 (struct re_pattern_buffer, re_search, re_search_2, re_match):
44147 (re_match_2, re_set_registers): Use the new types.
44148 * lib/regex_internal.h (Idx, re_hashval_t): New types.
44149 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
44151 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
44152 (re_string_context_at, bin_tree_t, re_dfastate_t):
44153 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
44154 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
44155 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
44156 (re_string_char_size_at, re_string_wchar_at):
44157 (re_string_elem_size_at):
44158 Use the new types and macros to port to 64-bit hosts.
44159 Use unsigned types for internal values, so that the code
44160 mostly works even for arrays larger than SSIZE_MAX.
44161 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
44162 (search_duplicated_node, calc_eclosure_iter, fetch_number):
44163 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
44164 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
44165 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
44166 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
44167 (calc_inveclosure, parse_dup_op, build_range_exp):
44168 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
44169 (fetch_number, create_token_tree, mark_opt_subexp):
44171 * lib/regex_internal.c (re_string_construct_common,
44172 create_ci_newstate):
44173 (create_cd_newstate, re_string_allocate, re_string_construct):
44174 (re_string_realloc_buffers, build_wcs_upper_buffer):
44175 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
44176 (re_string_reconstruct, re_string_peek_byte_case):
44177 (re_string_fetch_byte_case, re_string_context_at):
44178 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
44179 (re_node_set_init_copy, re_node_set_add_intersect):
44180 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44181 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44182 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
44183 (re_acquire_state, re_acquire_state_context, register_state):
44185 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
44186 search_cur_bkref_entry):
44187 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
44188 (re_search_internal, re_search_2_stub, re_search_stub)
44189 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
44190 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
44191 (update_cur_sifted_state, check_dst_limits):
44192 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
44193 (check_subexp_limits, sift_states_bkref, merge_state_array):
44194 (check_subexp_matching_top, get_subexp, get_subexp_sub):
44195 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
44196 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
44197 (expand_bkref_cache, check_node_accept_bytes):
44198 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
44199 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
44200 (acquire_init_state_context, check_halt_node_context):
44201 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
44202 (sift_states_backward, clean_state_log_if_needed):
44203 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
44204 (find_recover_state, transit_state_sb, transit_state_mb):
44205 (transit_state_bkref, build_trtable, match_ctx_clean):
44207 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
44208 to work around an assumption that REG_MISSING is negative.
44210 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
44211 (seek_collating_symbol_entry) [defined _LIBC]:
44212 (lookup_collation_sequence_value) [defined _LIBC]:
44213 (build_range_exp, build_collating_symbol) [defined _LIBC]:
44214 Use prototypes rather than old-style function definitions.
44215 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
44216 (transit_state_sb) [0]:
44217 (find_collation_sequence_value) [defined _LIBC]: Likewise.
44219 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
44222 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
44223 (optimize_subexps, lower_subexp):
44224 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
44225 since the signed shift might overflow. Use 1u<<31 instead.
44226 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
44228 * lib/regexec.c (check_dst_limits_calc_pos_1,
44229 check_subexp_matching_top): Likewise.
44231 * lib/regcomp.c (optimize_subexps, lower_subexp):
44232 Use CHAR_BIT rather than 8, for clarity.
44233 * lib/regexec.c (check_dst_limits_calc_pos_1):
44234 (check_subexp_matching_top): Likewise.
44235 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
44236 have to worry about portability issues when shifting it left.
44237 Remove no-longer-needed test for table_size > 0.
44238 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
44239 in a word, as the resulting behavior is undefined.
44240 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
44241 in one case, a <= should have been an <, and in another case the
44242 whole test was missing.
44243 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
44244 the standard name CHAR_BIT.
44245 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
44246 this is not true on one's complement and signed-magnitude hosts.
44248 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
44250 (struct re_dfa_t): Remove unused member states_alloc.
44251 * lib/regcomp.c (init_dfa): Don't initialize unused members.
44253 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44255 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
44256 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
44257 and large-file glibc and in 32-bit large-file Solaris.
44259 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44261 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
44262 lengths fit in regoff_t; this isn't true if regoff_t is the same
44264 * lib/regex.c (re_search_internal): 5th arg is LAST_START
44265 (= START + RANGE) instead of RANGE. This avoids overflow
44266 problems when regoff_t is the same width as size_t.
44267 All callers changed.
44268 (re_search_2_stub): Check for overflow when adding the
44269 sizes of the two strings.
44270 (re_search_stub): Check for overflow when adding START
44271 to RANGE; if it occurs, substitute the extreme value.
44273 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44275 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
44277 2005-08-31 Jim Meyering <jim@meyering.net>
44279 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
44280 a pointer-to-const.
44281 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
44282 (register_state): Likewise.
44283 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
44284 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
44285 (group_nodes_into_DFAstates): Likewise.
44287 2005-08-31 Jim Meyering <jim@meyering.net>
44289 * check-module: Add a FIXME comment.
44291 2005-08-31 Eric Blake <ebb9@byu.net>
44293 * modules/unistd-safer (Files): Add unistd--.h.
44294 * modules/stdio-safer (Files): Add stdio--.h.
44296 2005-08-31 Derek Price <derek@ximbiot.com>
44298 * lib/getdelim.c (getdelim): Return EOF on EOF.
44299 Reported by Larry Jones <lawrence.jones@ugs.com>.
44301 2005-08-31 Bruno Haible <bruno@clisp.org>
44303 Avoid unnecessary diffs in the generated lib/Makefile.am.
44304 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
44305 the generated files.
44306 (func_import): Don't set cmd.
44308 2005-08-31 Bruno Haible <bruno@clisp.org>
44310 * lib/strstr.c: Include <stddef.h>, for NULL.
44311 * lib/strcasestr.c: Likewise.
44312 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44314 2005-08-31 Bruno Haible <bruno@clisp.org>
44316 * gnulib-tool: New option --macro-prefix.
44317 (func_import): Use macro_prefix.
44318 (import): Handle option --macro-prefix.
44320 2005-08-31 Bruno Haible <bruno@clisp.org>
44322 * gnulib-tool (import): Rename most ac_* variables to cached_*.
44323 Also use new variables cached_lgpl, cached_libtool.
44325 2005-08-31 Bruno Haible <bruno@clisp.org>
44327 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
44328 always instantiating them.
44330 2005-08-31 Bruno Haible <bruno@clisp.org>
44332 * gnulib-tool (func_import): Read the previous cached settings
44333 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
44334 earlier added by gnulib but are now dropped. Warn when a gnulib file
44335 overwrites a non-gnulib file.
44337 2005-08-31 Bruno Haible <bruno@clisp.org>
44339 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
44340 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
44341 projects that don't keep autogenerated files in CVS. Put into
44342 actioncmd only the specified modules, not the transitive closure.
44344 2005-08-31 Bruno Haible <bruno@clisp.org>
44346 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
44347 Create directories that shall be filled.
44348 (import): Don't look for gl_* macros in configure.ac. Recurse across
44349 all directories containing a gnulib-cache.m4 files, if meaningful.
44351 2005-08-31 Bruno Haible <bruno@clisp.org>
44353 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
44354 (import): Set seen_libtool when we see gl_LIBTOOL.
44356 2005-08-31 Bruno Haible <bruno@clisp.org>
44358 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
44359 declaration macro definitions from generated gnulib.m4.
44361 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
44363 * lib/iconvme.h: Add prototype for iconv_alloc.
44365 2005-08-29 Simon Josefsson <jas@extundo.com>
44367 * lib/iconvme.c: Fix errno.
44369 2005-08-29 Bruno Haible <bruno@clisp.org>
44371 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
44372 that it works when the directory contains spaces.
44374 2005-08-29 Bruno Haible <bruno@clisp.org>
44376 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
44378 2005-08-29 Bruno Haible <bruno@clisp.org>
44380 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
44383 2005-08-29 Bruno Haible <bruno@clisp.org>
44384 and Stepan Kasal <kasal@ucw.cz>
44386 * check-module: If more parameters are given, check each of them
44387 separately; add more exceptions, as noted by Jim Meyering.
44388 (check_module): New procedure.
44389 (%exempt_header): Now contains all exceptions.
44391 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
44393 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
44395 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
44397 * lib/iconvme.c: Split iconv_string into iconv_alloc.
44399 2005-08-28 Bruno Haible <bruno@clisp.org>
44401 * m4/gnulib-tool.m4: New file.
44403 2005-08-27 Jim Meyering <jim@meyering.net>
44405 * modules/unistd-safer (Files): Add pipe-safer.c.
44406 * modules/fcntl-safer (Files): Add creat-safer.c.
44408 2005-08-27 Jim Meyering <jim@meyering.net>
44410 * m4/stdlib-safer.m4: New file. From coreutils.
44411 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
44412 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
44413 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
44414 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
44415 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
44417 2005-08-27 Jim Meyering <jim@meyering.net>
44419 * lib/fopen-safer.c: Merge minor changes from coreutils.
44420 * lib/dup-safer.c: Likewise.
44421 * lib/fd-safer.c: Likewise.
44423 Merge from coreutils.
44424 * lib/stdio--.h: New file.
44425 * lib/stdlib--.h: New file.
44426 * lib/mkstemp-safer.c: New file.
44428 GNU tar needs these.
44429 * lib/pipe-safer.c: New file.
44430 * lib/creat-safer.c: New file.
44431 * lib/fcntl--.h (creat): Define to creat_safer.
44432 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
44433 * lib/unistd--.h (pipe): Define to pipe_safer.
44434 * lib/unistd-safer.h: Declare pipe_safer.
44436 2005-08-26 Simon Josefsson <jas@extundo.com>
44438 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
44439 Haible <bruno@clisp.org>.
44441 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
44443 * lib/regex_internal.h: Remove all references to
44444 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
44446 (bitset_not, bitset_merge, bitset_not_merge):
44447 (bitset_mask, re_string_allocate, re_string_construct):
44448 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
44449 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
44450 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
44451 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
44452 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44453 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44454 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
44455 (re_acquire_state_context):
44456 Remove unnecessary forward decls.
44457 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
44458 Put __attribute at function definition,
44459 now that the function decl has been removed.
44460 * lib/regex_internal.c (re_string_peek_byte_case):
44461 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
44464 2005-08-25 Stepan Kasal <kasal@ucw.cz>
44466 * m4/regex.m4: Add AC_PREREQ(2.50).
44467 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
44469 2005-08-25 Simon Josefsson <jas@extundo.com>
44471 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
44474 2005-08-25 Simon Josefsson <jas@extundo.com>
44476 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
44477 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
44478 GLIBC specific code.
44480 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44482 Make regex safe for g++. This fixes one real bug (an "err"
44483 that should have been "*err"). g++ problem reported by
44485 * lib/regex_internal.h (re_calloc): New macro, consistent with
44486 re_malloc etc. All callers of calloc changed to use re_calloc.
44487 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
44488 not int. All callers changed.
44489 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
44490 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
44491 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
44492 (find_recover_state): Change "err" to "*err"; this fixes what
44493 appears to be a real bug.
44494 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
44497 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44499 * modules/regex (Depends-on): Add malloc, since the code
44500 assumes that !malloc(0) means failure.
44502 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44504 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
44506 alloca modernization/simplification for regex.
44507 * lib/regex.c: Remove portability cruft for alloca. This no longer
44508 needs to be at the start of the file, and can be moved into
44509 regex_internal.h and simplified.
44510 * lib/regex_internal.h: Include <alloca.h>.
44511 (__libc_use_alloca) [!defined _LIBC]: New macro.
44512 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
44513 now works outside glibc.
44515 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44517 * config/srclist.txt: Add glibc bugs 1241, 1245.
44519 2005-08-25 Jim Meyering <jim@meyering.net>
44521 * lib/open-safer.c: Include <config.h>.
44522 Otherwise, we'd lose LARGEFILE support in any file using
44525 2005-08-25 Bruno Haible <bruno@clisp.org>
44527 * m4/minmax.m4: Require autoconf 2.52.
44528 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
44529 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
44530 alternatives of translit over the alphabet.
44531 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
44533 2005-08-24 Simon Josefsson <jas@extundo.com>
44535 * tests/test-getpass.c: New file.
44537 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
44539 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
44540 for GNU regex features.
44542 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
44544 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
44545 * lib/regex.h (regerror): Likewise.
44547 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
44548 requires this. (The code never needed it.)
44550 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
44551 All uses of recently-renamed identifiers changed to use the new,
44552 POSIX-compliant names. The code will build and run just fine
44553 without these changes, but it's better to eat our own dog food
44554 and use the standard-conforming names.
44556 * lib/regex.h: Fix a multitude of POSIX name space violations.
44557 These changes have an effect only for programs that define
44558 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
44559 do not change anything for programs compiled in the normal way.
44560 Also, there is no effect on the ABI.
44562 (_REGEX_SOURCE): New macro.
44563 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
44564 defined and _GNU_SOURCE is not; this fixes a name space violation.
44566 Rename the following macros to obey POSIX requirements.
44567 The old names are still visible as macros if _REGEX_SOURCE is defined.
44568 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
44569 RE_BACKSLASH_ESCAPE_IN_LISTS.
44570 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
44571 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
44572 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
44573 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
44574 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
44575 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
44576 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
44577 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
44578 (REG_INTERVALS): renamed from RE_INTERVALS.
44579 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
44580 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
44581 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
44582 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
44583 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
44584 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
44585 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
44586 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
44587 RE_UNMATCHED_RIGHT_PAREN_ORD.
44588 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
44589 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
44590 (REG_DEBUG): renamed from RE_DEBUG.
44591 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
44592 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
44593 unusual, since we can't clash with the POSIX REG_ICASE.
44594 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
44595 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
44596 (REG_NO_SUB): renamed from RE_NO_SUB.
44597 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
44598 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
44599 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
44600 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
44601 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
44602 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
44603 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
44604 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
44605 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
44606 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
44607 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
44608 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
44609 RE_SYNTAX_POSIX_MINIMAL_BASIC.
44610 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
44611 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
44612 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
44613 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
44614 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
44615 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
44616 (REG_FIXED): Renamed from REGS_FIXED.
44617 (REG_NREGS): Renamed from RE_NREGS.
44619 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
44620 of other REG_* macros, since POSIX says the user is allowed to
44621 #undef these macros selectively.
44623 (reg_errcode_t): Update comment stating what other tables need
44626 Rename the following enum values to obey POSIX requirements.
44627 The old names are still visible as macros.
44628 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
44629 is not defined, since GNU is supposed to be a superset of POSIX as
44630 much as possible, and since we want reg_errcode_t to be a signed
44631 type for implementation consistency.
44632 (_REG_NOERROR): Renamed from REG_NOERROR.
44633 (_REG_NOMATCH): Renamed from REG_NOMATCH.
44634 (_REG_BADPAT): Renamed from REG_BADPAT.
44635 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
44636 (_REG_ECTYPE): Renamed from REG_ECTYPE.
44637 (_REG_EESCAPE): Renamed from REG_EESCAPE.
44638 (_REG_ESUBREG): Renamed from REG_ESUBREG.
44639 (_REG_EBRACK): Renamed from REG_EBRACK.
44640 (_REG_EPAREN): Renamed from REG_EPAREN.
44641 (_REG_EBRACE): Renamed from REG_EBRACE.
44642 (_REG_BADBR): Renamed from REG_BADBR.
44643 (_REG_ERANGE): Renamed from REG_ERANGE.
44644 (_REG_ESPACE): Renamed from REG_ESPACE.
44645 (_REG_BADRPT): Renamed from REG_BADRPT.
44646 (_REG_EEND): Renamed from REG_EEND.
44647 (_REG_ESIZE): Renamed from REG_ESIZE.
44648 (_REG_ERPAREN): Renamed from REG_ERPAREN.
44649 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
44650 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
44651 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
44652 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
44654 (_REG_RE_NAME, _REG_RM_NAME): New macros.
44655 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
44656 changed. But support the old name if the new one is not defined
44657 and if _REGEX_SOURCE.
44659 Change the following member names in struct re_pattern_buffer.
44660 The old names are still supported if !_REGEX_SOURCE.
44661 The new names are always supported, regardless of _REGEX_SOURCE.
44662 (re_buffer): Renamed from buffer.
44663 (re_allocated): Renamed from allocated.
44664 (re_used): Renamed from used.
44665 (re_syntax): Renamed from syntax.
44666 (re_fastmap): Renamed from fastmap.
44667 (re_translate): Renamed from translate.
44668 (re_can_be_null): Renamed from can_be_null.
44669 (re_regs_allocated): Renamed from regs_allocated.
44670 (re_fastmap_accurate): Renamed from fastmap_accurate.
44671 (re_no_sub): Renamed from no_sub.
44672 (re_not_bol): Renamed from not_bol.
44673 (re_not_eol): Renamed from not_eol.
44674 (re_newline_anchor): Renamed from newline_anchor.
44676 Change the following member names in struct re_registers.
44677 The old names are still supported if !_REGEX_SOURCE.
44678 The new names are always supported, regardless of _REGEX_SOURCE.
44679 (rm_num_regs): Renamed from num_regs.
44680 (rm_start): Renamed from start.
44681 (rm_end): Renamed from end.
44683 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
44684 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
44685 Prepend __ to parameter names.
44687 Undo yesterday's changes.
44689 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
44691 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
44692 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
44695 2005-08-24 Jim Meyering <jim@meyering.net>
44697 Sync from coreutils.
44698 * m4/fcntl-safer.m4: New file.
44700 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
44701 and object files for this module.
44703 2005-08-24 Jim Meyering <jim@meyering.net>
44705 Sync from coreutils.
44706 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
44708 2005-08-24 Jim Meyering <jim@meyering.net>
44710 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
44711 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
44713 2005-08-24 Jim Meyering <jim@meyering.net>
44715 * modules/fcntl-safer: New module.
44716 * modules/fts (Depends-on): Add fcntl-safer.
44717 * MODULES.html.sh (File descriptor based Input/Output):
44720 2005-08-24 Bruno Haible <bruno@clisp.org>
44722 Support for unit test modules.
44723 * modules/README: Mention tests modules.
44724 * modules/TEMPLATE-TESTS: New file.
44725 * gnulib-tool: New options --extract-tests-module, --with-tests and
44726 --tests-base (unused for the moment).
44727 (testsbase, inctests): New variables.
44728 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
44729 (func_verify_module): Exclude TEMPLATE-TESTS.
44730 (func_verify_nontests_module, func_verify_tests_module): New functions.
44731 (func_get_dependencies): Add implicit dependency for tests modules.
44732 (func_get_tests_module): New function.
44733 (func_modules_transitive_closure): When --with-tests was specified,
44734 include the unit tests as well, unless explicitly avoided.
44735 (func_emit_lib_Makefile_am): Ignore the tests modules here.
44736 (func_emit_tests_Makefile_am): New function.
44737 (func_create_testdir): When --with-tests was specified, emit a
44739 * MODULES.html.sh (Future developments): Update.
44741 2005-08-24 Bruno Haible <bruno@clisp.org>
44743 * modules/tls-tests: New file.
44744 * tests/test-tls.c: New file, from GNU gettext.
44746 2005-08-24 Bruno Haible <bruno@clisp.org>
44748 * modules/lock-tests: New file.
44749 * tests/test-lock.c: New file, from GNU gettext.
44751 2005-08-24 Bruno Haible <bruno@clisp.org>
44753 * lib/lock.h: Add multiple inclusion guard.
44754 * lib/tls.h: Add multiple inclusion guard.
44756 2005-08-24 Bruno Haible <bruno@clisp.org>
44758 * gnulib-tool: Add support for the --aux-dir option to
44759 --create-testdir, --create-megatestdir, --test, --megatest.
44760 (func_create_testdir, func_create_megatestdir): Optionally emit a
44761 AC_CONFIG_AUX_DIR directive.
44762 (create-testdir, create-megatestdir, test, megatest): Provide a
44763 default value for $auxdir.
44765 2005-08-24 Bruno Haible <bruno@clisp.org>
44767 * gnulib-tool (import): Use compound statement instead of subshell
44770 2005-08-24 Bruno Haible <bruno@clisp.org>
44772 * gnulib-tool (import): Change --aux-dir default to "build-aux".
44774 2005-08-24 Bruno Haible <bruno@clisp.org>
44776 * gnulib-tool (func_version): Update.
44778 2005-08-24 Bruno Haible <bruno@clisp.org>
44780 * gnulib-tool (func_import, func_create_testdir,
44781 func_create_megatestdir): Quote all autoconf macro arguments.
44783 2005-08-24 Bruno Haible <bruno@clisp.org>
44785 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
44786 option --force, because --force causes the aclocal.m4 of each
44787 subdirectory to be newer than the corresponding config.h.in.
44789 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
44791 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
44792 All contents moved to gl_REGEX.
44793 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
44794 assume that it does.
44796 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
44798 * lib/regex.h (REG_NOSYS)
44799 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
44800 Define, since POSIX requires it as of 2001.
44802 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
44803 New private symbol, used to keep the enum signed in all cases.
44804 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
44806 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
44808 * lib/regex_internal.c (re_string_skip_chars, register_state):
44810 Remove forward decls; no longer needed now that we use prototypes.
44811 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
44812 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
44813 (clean_state_log_if_needed): Likewise.
44815 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
44817 * config/srclist.txt: Add glibc bugs 1231-1233.
44819 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
44821 Fix problems reported by Sam Steingold in
44822 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
44823 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
44824 assumed that reg_errcode_t is a signed type, which is not
44825 necessarily true if _XOPEN_SOURCE is not defined.
44826 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
44827 since some compilers warn about it otherwise.
44829 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
44831 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
44832 (init_word_char, create_initial_state, duplicate_node_closure):
44833 (fetch_token, peek_token_bracket, build_range_exp):
44834 (build_collating_symbol): Remove forward decls; no longer needed
44835 now that we use prototypes.
44838 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
44839 (re_compile_fastmap_iter, regcomp, regerror, regfree):
44840 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
44841 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
44842 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
44843 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
44844 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
44845 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
44846 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
44847 (build_range_exp, build_collating_symbol, parse_bracket_exp):
44848 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
44849 (build_charclass, build_charclass_op, fetch_number, create_tree):
44850 (create_token_tree, mark_opt_subexp, duplicate_tree):
44851 Use prototypes rather than old-style definitions.
44853 * lib/regex_internal.c:
44854 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
44855 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
44856 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
44857 (re_string_reconstruct, re_string_peek_byte_case):
44858 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
44859 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
44860 (re_node_set_init_copy, re_node_set_add_intersect):
44861 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44862 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44863 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
44864 (re_acquire_state, re_acquire_state_context, register_state):
44865 (create_ci_newstate, create_cd_newstate, free_state):
44867 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
44869 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
44870 (re_search_internal, prune_impossible_nodes):
44871 (acquire_init_state_context, check_matching, static):
44872 (check_halt_node_context, check_halt_state_context, proceed_next_node):
44873 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
44874 (update_regs, sift_states_backward, build_sifted_states):
44875 (clean_state_log_if_needed, merge_state_array):
44876 (update_cur_sifted_state, add_epsilon_src_nodes):
44877 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
44878 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
44879 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
44880 (find_recover_state, check_subexp_matching_top, transit_state_mb):
44881 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
44882 (check_arrival, check_arrival_add_next_nodes):
44883 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
44884 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
44885 (check_node_accept_bytes, check_node_accept, extend_buffers):
44886 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
44887 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
44891 * lib/regex_internal.h:
44892 (re_string_allocate, re_string_construct, re_string_reconstruct):
44893 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
44894 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
44895 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
44896 (re_string_context_at, re_string_peek_byte_case):
44897 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
44898 is defined, since we now use prototypes always.
44900 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
44901 C89 or better. All uses removed.
44903 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
44905 * config/srclist.txt: Add glibc bugs 1220-1227.
44907 2005-08-20 Jim Meyering <jim@meyering.net>
44909 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
44910 of unused local, dfa.
44912 2005-08-20 Bruno Haible <bruno@clisp.org>
44914 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
44916 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
44918 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
44919 (re_node_set_insert_last, re_dfa_add_node):
44920 Rename local variables to avoid GCC shadowing warnings.
44922 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
44924 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
44925 [defined lint]: Suppress bogus uninitialized-variable warnings.
44927 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
44928 and let the caller return REG_ESPACE if out of space. This
44929 removes an uninitialied-variable warning with GCC 4.0.1, and also
44930 avoids taking the address of a local variable. All callers
44933 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
44935 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
44936 $LIBCSRC/posix/regexec.c.
44937 Add glibc bug 1217 for regcomp.c.
44939 2005-08-19 Jim Meyering <jim@meyering.net>
44941 * lib/regexec.c (proceed_next_node): Redo local variables to
44942 avoid GCC shadowing warnings.
44944 2005-08-18 Bruno Haible <bruno@clisp.org>
44946 * lib/strstr.c (strstr): Fix return value in multibyte case.
44947 * lib/strcasestr.c (strcasestr): Likewise.
44949 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
44951 * lib/regex.h: Remove useless space-before-tab. From coreutils.
44953 2005-08-17 Jim Meyering <jim@meyering.net>
44955 Make the %s format (seconds since the epoch) work for a negative
44956 number and when used with a zero-padded field width, e.g. %015s.
44958 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
44959 label so that it precedes the code to set `digits'. Otherwise,
44960 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
44961 print `00-22'. Now, it prints `-0022', as it should.
44963 2005-08-17 Bruno Haible <bruno@clisp.org>
44965 * modules/strstr (Files): Add m4/mbrtowc.m4.
44966 (Depends-on): Add mbuiter.
44968 2005-08-17 Bruno Haible <bruno@clisp.org>
44970 * modules/strcasestr: New file.
44971 * MODULES.html.sh (String handling, based on ANSI C 89): Add
44974 2005-08-17 Bruno Haible <bruno@clisp.org>
44976 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
44978 2005-08-17 Bruno Haible <bruno@clisp.org>
44980 * modules/mbuiter: New file.
44981 * MODULES.html.sh (Extended multibyte and wide character utilities):
44984 2005-08-17 Bruno Haible <bruno@clisp.org>
44986 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
44987 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
44989 2005-08-17 Bruno Haible <bruno@clisp.org>
44991 * m4/strcasestr.m4: New file.
44993 2005-08-17 Bruno Haible <bruno@clisp.org>
44995 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
44996 * lib/strstr.c: Completely rewritten, with multibyte locale support.
44998 2005-08-17 Bruno Haible <bruno@clisp.org>
45000 * lib/strcasestr.h: New file.
45001 * lib/strcasestr.c: New file.
45003 2005-08-17 Bruno Haible <bruno@clisp.org>
45005 * lib/strcasecmp.c: Use mbuiter.h.
45007 2005-08-17 Bruno Haible <bruno@clisp.org>
45009 * lib/mbuiter.h: New file.
45011 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
45013 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
45014 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
45015 and gl_GETOPT are both invoked via different paths (as happens
45016 with GNU tar CVS because it uses both argp and getopt), the former
45019 2005-08-16 Bruno Haible <bruno@clisp.org>
45021 * modules/tls: New file.
45022 * MODULES.html.sh (Multithreading): Add tls.
45024 2005-08-16 Bruno Haible <bruno@clisp.org>
45026 * modules/strnlen1: New file.
45027 * MODULES.html.sh (String handling): Add strnlen1.
45029 2005-08-16 Bruno Haible <bruno@clisp.org>
45031 * modules/strcase (Files): Add m4/mbrtowc.m4.
45032 (Depends-on): Add strnlen1, mbchar.
45034 2005-08-16 Bruno Haible <bruno@clisp.org>
45036 * modules/mbiter: New file.
45037 * MODULES.html.sh (Extended multibyte and wide character utilities):
45040 2005-08-16 Bruno Haible <bruno@clisp.org>
45042 * modules/mbfile: New file.
45043 * MODULES.html.sh (Extended multibyte and wide character utilities):
45046 2005-08-16 Bruno Haible <bruno@clisp.org>
45048 * modules/mbchar: New file.
45049 * MODULES.html.sh (Extended multibyte and wide character utilities):
45052 2005-08-16 Bruno Haible <bruno@clisp.org>
45054 * m4/tls.m4: New file, from GNU gettext.
45056 2005-08-16 Bruno Haible <bruno@clisp.org>
45058 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
45060 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
45062 2005-08-16 Bruno Haible <bruno@clisp.org>
45064 * m4/mbiter.m4: New file.
45066 2005-08-16 Bruno Haible <bruno@clisp.org>
45068 * m4/mbfile.m4: New file.
45070 2005-08-16 Bruno Haible <bruno@clisp.org>
45072 * m4/mbchar.m4: New file.
45074 2005-08-16 Bruno Haible <bruno@clisp.org>
45076 * lib/tls.h: New file, from GNU gettext.
45077 * lib/tls.c: New file, from GNU gettext.
45079 2005-08-16 Bruno Haible <bruno@clisp.org>
45081 * lib/strnlen1.h: New file.
45082 * lib/strnlen1.c: New file.
45084 2005-08-16 Bruno Haible <bruno@clisp.org>
45086 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
45087 (mbi_init): Update.
45088 (mbi_avail, mbi_advance): Let the iteration end before the terminating
45089 NUL byte, not after it.
45091 2005-08-16 Bruno Haible <bruno@clisp.org>
45093 * lib/strcase.h (strcasecmp): Add note in comments.
45094 * lib/strncasecmp.c: Use code from strcasecmp.c.
45095 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
45096 (strcasecmp): Work correctly in multibyte locales.
45098 2005-08-16 Bruno Haible <bruno@clisp.org>
45100 * lib/mbiter.h: New file.
45102 2005-08-16 Bruno Haible <bruno@clisp.org>
45104 * lib/mbfile.h: New file.
45106 2005-08-16 Bruno Haible <bruno@clisp.org>
45108 * lib/mbchar.h: New file.
45109 * lib/mbchar.c: New file.
45111 2005-08-16 Bruno Haible <bruno@clisp.org>
45113 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
45114 the valid ones. Makes the comparison operations transitive:
45115 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
45116 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
45118 2005-08-15 Simon Josefsson <jas@extundo.com>
45120 * modules/ssize_t (License): Change to 'unlimited'.
45122 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
45124 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
45126 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
45127 Add comments for each pending glibc patch.
45129 2005-08-15 Bruno Haible <bruno@clisp.org>
45131 * lib/regex.h (__restrict_arr): Don't define to __restrict if
45132 __cplusplus is defined.
45134 2005-08-14 Jim Meyering <jim@meyering.net>
45136 Sync from coreutils.
45138 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
45139 Use the hash-table-based cycle-detection code not just when
45140 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
45141 Reported by James Youngman in
45142 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
45143 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
45144 FTS_TIGHT_CYCLE_CHECK.
45145 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
45146 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
45148 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
45149 * lib/fts.c (fd_safer): Remove decl.
45150 Include fcntl--.h rather than unistd-safer.h
45151 (fts_safe_changedir): Don't call fd_safer; no longer needed
45152 now that we include fcntl--.h.
45154 2005-08-12 Simon Josefsson <jas@extundo.com>
45156 * modules/getndelim2: Use ssize_t module.
45157 * modules/getnline: Likewise.
45158 * modules/safe-read: Likewise.
45159 * modules/xreadlink: Likewise.
45161 * modules/ssize_t: New file.
45163 2005-08-12 Simon Josefsson <jas@extundo.com>
45165 * m4/readline.m4: Look for termcap, curses or ncurses if required.
45167 2005-08-12 Simon Josefsson <jas@extundo.com>
45169 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45172 2005-08-12 Simon Josefsson <jas@extundo.com>
45174 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
45175 readline, getdelim and check_version.
45176 (Support for systems lacking ISO C 99: Sizes of integer types):
45179 2005-08-12 Bruno Haible <bruno@clisp.org>
45181 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
45183 2005-08-11 Simon Josefsson <jas@extundo.com>
45185 * modules/readline: New file.
45187 * modules/strnlen (Files): Add strnlen.h.
45189 2005-08-11 Simon Josefsson <jas@extundo.com>
45191 * m4/readline.m4: New file.
45193 2005-08-11 Simon Josefsson <jas@extundo.com>
45195 * lib/readline.h, readline.c: New file.
45197 2005-08-11 Simon Josefsson <jas@extundo.com>
45199 * doc/gnulib.texi (Initial import, Finishing touches): Mention
45202 2005-08-11 Bruno Haible <bruno@clisp.org>
45204 * lib/strnlen.h (strnlen): Change parameter name to match comment.
45206 2005-08-10 Stepan Kasal <kasal@ucw.cz>
45208 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
45210 2005-08-10 Simon Josefsson <jas@extundo.com>
45212 * tests/test-iconvme.c: New file.
45214 2005-08-10 Simon Josefsson <jas@extundo.com>
45216 * m4/strnlen.m4: New file.
45218 * m4/strndup.m4: Don't check for strnlen declaration, done in
45221 2005-08-10 Simon Josefsson <jas@extundo.com>
45223 * lib/strndup.c: Use strnlen.h.
45225 * lib/strnlen.h: New file.
45227 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45231 2005-08-02 Simon Josefsson <jas@extundo.com>
45233 * modules/readline: New file.
45235 2005-08-02 Simon Josefsson <jas@extundo.com>
45237 * modules/getdelim: New file.
45239 * modules/getline: Rewrite, don't use getndelim2.
45241 2005-08-02 Simon Josefsson <jas@extundo.com>
45243 * m4/getline.m4: Separate out getdelim stuff into separate module.
45245 * m4/getdelim.m4: New file.
45247 2005-08-02 Simon Josefsson <jas@extundo.com>
45249 * lib/getline.h, getline.c: Rewrite.
45251 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
45253 2005-07-31 Bruno Haible <bruno@clisp.org>
45255 * lib/lock.h (gl_lock_initializer): New macro.
45256 (gl_lock_define_initialized): Use it.
45257 (gl_rwlock_initializer): New macro.
45258 (gl_rwlock_define_initialized): Use it.
45259 (gl_recursive_lock_initializer): New macro.
45260 (gl_recursive_lock_define_initialized): Use it.
45262 2005-07-30 Karl Berry <karl@gnu.org>
45264 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
45265 Report from Ben Pfaff, regarding getopt.
45267 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
45269 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
45271 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
45272 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
45273 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
45274 (gl_GETOPT): Use the new macros. Most of the implementation
45275 is moved to the new macros. This is for programs like Emacs
45276 that don't want all the functionality of gl_GETOPT.
45278 2005-07-26 Bruno Haible <bruno@clisp.org>
45280 * m4/lock.m4: Update from GNU gettext.
45282 2005-07-26 Bruno Haible <bruno@clisp.org>
45284 * lib/lock.h: Update from GNU gettext.
45285 * lib/lock.c: Update from GNU gettext.
45287 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
45289 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
45290 obsolescent AC_TRY_RUN. Include the default includes files, for
45293 2005-07-24 Bruno Haible <bruno@clisp.org>
45295 * modules/visibility: New file.
45296 * MODULES.html.sh (Misc): Add visibility.
45298 2005-07-24 Bruno Haible <bruno@clisp.org>
45300 * m4/visibility.m4: New file.
45302 2005-07-24 Bruno Haible <bruno@clisp.org>
45304 * doc/visibility.texi: New file.
45306 2005-07-22 Bruno Haible <bruno@clisp.org>
45308 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
45309 $(ALLOCA_H), redundant through BUILT_SOURCES.
45310 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
45311 redundant through BUILT_SOURCES.
45312 * modules/byteswap (Makefile.am): Remove explicit dependency on
45313 $(BYTESWAP_H), redundant through BUILT_SOURCES.
45314 * modules/fnmatch (Makefile.am): Remove explicit dependency on
45315 $(FNMATCH_H), redundant through BUILT_SOURCES.
45316 * modules/getopt (Makefile.am): Remove explicit dependency on
45317 $(GETOPT_H), redundant through BUILT_SOURCES.
45318 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
45319 redundant through BUILT_SOURCES.
45320 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
45321 redundant through BUILT_SOURCES.
45322 * modules/stdbool (Makefile.am): Remove explicit dependency on
45323 $(STDBOOL_H), redundant through BUILT_SOURCES.
45324 * modules/stdint (Makefile.am): Remove explicit dependency on
45325 $(STDINT_H), redundant through BUILT_SOURCES.
45326 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
45327 Remove explicit dependency on $(SYSEXITS_H).
45328 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
45330 2005-07-18 Simon Josefsson <jas@extundo.com>
45332 * lib/check-version.c (check_version): Accept identical versions too.
45334 2005-07-18 Bruno Haible <bruno@clisp.org>
45336 * modules/lock: New file.
45337 * MODULES.html.sh (Multithreading): New section.
45339 2005-07-18 Bruno Haible <bruno@clisp.org>
45341 * m4/lock.m4: New file, from GNU gettext.
45343 2005-07-18 Bruno Haible <bruno@clisp.org>
45345 * lib/lock.h: New file, from GNU gettext.
45346 * lib/lock.c: New file, from GNU gettext.
45348 2005-07-18 Bruno Haible <bruno@clisp.org>
45350 * lib/lock.h (gl_once_t): New type.
45351 (gl_once_define, gl_once): New macros.
45352 * lib/lock.c (fresh_once): New variable.
45353 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
45356 2005-07-16 Simon Josefsson <jas@extundo.com>
45358 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
45359 workaround, suggested by Bruno.
45361 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
45363 * modules/xalloc (Depends-on): Add xalloc-die.
45364 * modules/xvasprintf (Depends-on): Add xalloc-die.
45366 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
45368 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
45369 with a minor change.
45371 2005-07-15 Bruno Haible <bruno@clisp.org>
45373 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
45374 When using lib/poll.c, define poll as rpl_poll.
45376 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
45378 * modules/argp (Depends-on): Remove unlocked-io.
45380 2005-07-14 Derek Price <derek@ximbiot.com>
45382 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
45383 for glob symlink bug.
45385 2005-07-14 Bruno Haible <bruno@clisp.org>
45387 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
45388 Instead, test for *_unlocked function declarations directly.
45390 2005-07-11 Simon Josefsson <jas@extundo.com>
45392 * modules/size_max: New file.
45394 * modules/xsize: Depend on size_max module for size_max.m4.
45396 2005-07-11 Simon Josefsson <jas@extundo.com>
45398 * lib/size_max.h: New file.
45400 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
45402 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
45403 copyright symbol and the year.
45404 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
45405 (version_etc_va): Use parameterized copyright notice.
45406 Reword to conform to the current GNU coding standards.
45408 2005-07-11 Karl Berry <karl@gnu.org>
45410 * doc/gnulib.texi (Quoting): new node.
45411 (Initial import): more info, from Patrice.
45413 2005-07-11 Bruno Haible <bruno@clisp.org>
45415 * gnulib-tool (func_usage): Document option --avoid.
45416 (Command line options): Handle --avoid.
45417 (func_acceptable): New function.
45418 (func_modules_transitive_closure): Use it.
45420 2005-07-11 Bruno Haible <bruno@clisp.org>
45422 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
45423 Reported by Jim Meyering.
45425 2005-07-10 Bruno Haible <bruno@clisp.org>
45427 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
45428 Needed when size_t is smaller than 'unsigned int'.
45429 Reported by Paul Eggert.
45431 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
45433 * modules/argp (Depends-on): Add unlocked-io
45435 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
45437 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
45440 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
45442 * config/srclist.txt: Comment out regcomp.c, since we have a porting
45445 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
45446 and Paul Eggert <eggert@cs.ucla.edu>
45448 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
45449 in wint_t, not wchar_t. Remove now-unnecessary cast.
45451 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45453 * modules/regex (Files): Add lib/regex_internal.c,
45454 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
45455 (Depends-on): Add extensions.
45456 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
45458 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45460 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
45462 * m4/same.m4 (gl_SAME): Likewise.
45463 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
45465 * m4/regex.m4: Adjust to new libc regex implementation.
45466 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
45467 all the .c and .h parts of (the new) regex.
45468 Quote the m4 stuff better.
45469 Check for RE_ICASE bug of old gnulib.
45470 Check for REG_STARTEND of recent libc.
45471 Rename local variables from jm_* to gl_*.
45472 Quote operand of "test -f".
45473 Say "recent enough" version of libc, not "version 2".
45474 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
45475 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
45476 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
45477 Remove check for btowc, isascii.
45478 Require AM_LANGINFO_CODESET.
45480 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45482 * lib/regex.c, regex.h: Sync from libc.
45483 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
45485 New files, synced from libc, except that regex_internal.h
45486 currently has a small porting fix.
45488 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45490 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
45491 regex_internal.c, regexec.c.
45492 Add regex_internal.h too, but as a comment, since the libc version
45493 is currently broken in gnulib mode.
45495 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
45497 Support programs like Emacs that use gnulib but not gettext.
45498 * MODULES.html.sh (Internationalization functions): Add gettext-h.
45499 * modules/gettext-h: New file.
45500 * modules/gettext (Files): Remove lib/gettext.h.
45501 (Depends-on): Add gettext-h.
45502 (Makefile.am): Remove lib_SOURCES.
45503 * modules/argmatch, modules/c-stack, modules/closeout:
45504 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
45505 * modules/execute, modules/file-type, modules/getaddrinfo:
45506 * modules/getopt, modules/human, modules/javacomp:
45507 * modules/javaexec, modules/mkdir-p, modules/obstack:
45508 * modules/openat, modules/pagealign_alloc, modules/pipe:
45509 * modules/quotearg, modules/regex, modules/rpmatch:
45510 * modules/unicodeio, modules/userspec, modules/version-etc:
45511 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
45513 Depend on gettext-h, not gettext.
45515 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
45517 * gnulib-tool (func_import): Add support for 'public domain' license.
45518 * modules/alloca, modules/atexit, modules/memmove:
45519 Now public domain, not GPL.
45520 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
45521 * modules/realloc, modules/strerror, modules/strtod:
45524 2005-07-05 Bruno Haible <bruno@clisp.org>
45526 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
45527 autoconf CVS. Needed for mingw.
45529 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
45531 Remove the dependency of the strftime module on the tzset module.
45532 * modules/strftime (Depends-on): Remove dependency on tzset.
45534 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
45536 Remove the dependency of the strftime module on the tzset module.
45537 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
45538 gl_FUNC_TZSET_CLOBBER.
45540 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
45542 Remove the dependency of the strftime module on the tzset module.
45543 * lib/strftime.c (my_strftime)
45544 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
45545 Copy the input structure, to work around some of the bug with
45546 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
45547 Solaris releases, you should also use the tzset module, but we won't
45548 require it as a dependency any more since we don't want LGPLed code
45549 to depend on GPLed code.
45551 2005-07-02 Jim Meyering <jim@meyering.net>
45553 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
45554 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
45555 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
45556 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
45558 2005-07-02 Jim Meyering <jim@meyering.net>
45560 * lib/backupfile.c (backup_args): Change a `0' to NULL.
45562 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
45564 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
45565 declares only 'struct timespec;' (!).
45567 2005-07-01 Jim Meyering <jim@meyering.net>
45569 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
45570 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
45571 * lib/save-cwd.c, tempname.c:
45572 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
45573 and don't include <sys/file.h>).
45575 2005-06-29 Jim Meyering <jim@meyering.net>
45577 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
45578 type name. Use the variable name instead.
45579 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
45582 2005-06-28 Simon Josefsson <jas@extundo.com>
45584 * modules/check-version (Files): Add check-version.m4.
45586 2005-06-28 Simon Josefsson <jas@extundo.com>
45588 * m4/check-version.m4: New file, suggested by Jim Meyering
45589 <jim@meyering.net>.
45591 2005-06-28 Simon Josefsson <jas@extundo.com>
45593 * lib/check-version.h, lib/check-version.c: New files.
45595 2005-06-28 Simon Josefsson <jas@extundo.com>
45597 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
45598 collision with global variable. Better indentation. Don't
45599 increment buffer pointer beyond buffer end. Based on comments
45600 from Paul Eggert <eggert@cs.ucla.edu>.
45602 * lib/base64.h: Indent.
45604 2005-06-28 Simon Josefsson <jas@extundo.com>
45606 * doc/gnulib.texi (Library version handling): New section.
45608 2005-06-28 Jim Meyering <jim@meyering.net>
45610 * check-module (find_included_lib_files): Hard-code another
45611 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
45612 but modules/fts-lgpl (correctly) does not list those files.
45614 * modules/canonicalize (Files): Add lib/pathmax.h.
45616 2005-06-25 Simon Josefsson <jas@extundo.com>
45618 * modules/check-version: New file.
45620 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
45622 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
45623 initializer of struct addrinfo, as an indication that we don't
45624 care how many members the structure has.
45626 2005-06-24 Derek Price <derek@ximbiot.com>
45627 and Bruno Haible <bruno@clisp.org>
45629 Remove stat module & update lstat.
45630 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
45631 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45632 * m4/stat.m4: Remove this file.
45634 2005-06-24 Derek Price <derek@ximbiot.com>
45635 and Bruno Haible <bruno@clisp.org>
45637 Remove stat module & update lstat.
45638 * lib/stat.c: Remove this file...
45639 (slash_aware_lstat): ...moving this content and its support...
45640 * lib/lstat.c (rpl_lstat): ...into here.
45641 * lib/lstat.h: New file.
45643 2005-06-24 Derek Price <derek@ximbiot.com>
45644 and Bruno Haible <bruno@clisp.org>
45646 Remove stat module & update lstat.
45647 * config/srclist.txt (libc sources): Remove stat.
45649 2005-06-24 Derek Price <derek@ximbiot.com>
45650 and Bruno Haible <bruno@clisp.org>
45652 Remove stat module & update lstat.
45653 * MODULES.html.sh (stat): Remove.
45654 * MODULES.html: Regenerated.
45655 * modules/lstat (Description): Correct function name.
45656 (Files): Add "lstat.h".
45657 (Depends-on): Remove stat, add xalloc, stat-macros.
45658 * modules/stat: Remove this file.
45659 (Include): Add "lstat.h", remove <sys/stat.h>.
45661 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
45663 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
45664 (ranged_convert): Don't save conversion in a temporary struct.
45665 This causes a warning with GCC 4.0.0, and anyway in the typical
45666 case it's not worth the extra 100 bytes or so of code.
45667 (ranged_convert, __mktime_internal): When calling a function via a
45668 pointer P, use P () rather than (*P) (), as we now assume C89 or
45671 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
45673 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
45674 "who -r" failed to give output. Problem reported by Tim Waugh.
45676 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
45677 (xcalloc): Use it to avoid needless tests.
45678 Problem reported by Jim Meyering.
45680 2005-06-20 Derek Price <derek@ximbiot.com>
45682 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
45683 unnecessary for Autoconfs > 2.59c.
45685 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
45687 * lib/argp.h (__option_is_short): Check upper limit of
45688 __key. Isprint() requires its argument to have the value
45689 of an unsigned char or EOF.
45691 2005-06-16 Jim Meyering <jim@meyering.net>
45693 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
45694 when either N or S is zero.
45696 2005-06-16 Derek Price <derek@ximbiot.com>
45698 * m4/bison.m4: Declare YACC & YFLAGS precious.
45700 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
45702 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
45703 multibyte string or pattern, fall back on unibyte matching.
45704 Problem reported by James Youngman.
45706 2005-06-08 Bruno Haible <bruno@clisp.org>
45708 * modules/csharpcomp: New file.
45709 * MODULES.html.sh (C#): Add csharpcomp.
45711 2005-06-08 Bruno Haible <bruno@clisp.org>
45713 * m4/csharpcomp.m4: New file, from GNU gettext.
45715 2005-06-08 Bruno Haible <bruno@clisp.org>
45717 * lib/csharpcomp.h: New file, from GNU gettext.
45718 * lib/csharpcomp.c: New file, from GNU gettext.
45719 * lib/csharpcomp.sh.in: New file, from GNU gettext.
45721 2005-06-08 Bruno Haible <bruno@clisp.org>
45723 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
45726 2005-06-07 Derek Price <derek@ximbiot.com>
45729 * lib/glob_.h: Indent nested #ifdef.
45731 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
45733 Sync from coreutils.
45734 Use "file name" when talking about file names, instead of "filename"
45735 or "path", as per the GNU coding standards.
45736 * lib/mkdir-p.c: Renamed from makepath.c.
45737 (make_dir_parents): Renamed from make_path. All callers changed.
45738 * lib/mkdir-p.h: Likewise. All includers changed.
45739 * lib/filenamecat.c: Renamed from path-concat.c.
45740 (file_name_concat): Renamed from path_concat. All callers changed.
45741 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
45742 * lib/filenamecat.h: Likewise. All includers changed.
45743 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
45744 in comments or local variable names.
45745 * lib/basename.c: Likewise.
45746 * lib/canonicalize.c, canonicalize.h: Likewise.
45747 * lib/dirname.c, dirname.h: Likewise.
45748 * lib/euidaccess.c: Likewise.
45749 * lib/exclude.c: Likewise
45750 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
45751 * lib/fsusage.c, fsuage.h: Likewise.
45752 * lib/fts.c, fts_.h: Likewise.
45753 * lib/getcwd.c: Likewise.
45754 * lib/getloadavg.c: Likewise.
45755 * lib/mkstemp.c: Likewise.
45756 * lib/mountlist.c, mountlist.h: Likewise.
45757 * lib/openat.c, openat.h: Likewise.
45758 * lib/readlink-stub.c: Likewise.
45759 * lib/readutmp.c, readutmp.h: Likewise.
45760 * lib/rename.c: Likewise.
45761 * lib/rmdir.c: Likewise.
45762 * lib/same.c: Likewise.
45763 * lib/savedir.c: Likewise.
45764 * lib/stripslash.c: Likewise.
45765 * lib/tempname.c: Likewise.
45766 * lib/xreadlink.c: Likewise.
45767 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
45769 * lib/exclude.h: Likewise.
45771 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
45772 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
45773 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
45774 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
45775 * lib/pathmax.h: Include <limits.h> unconditionally, since other
45776 files have been getting away with it for years (MORE/BSD 4.3
45778 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
45779 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
45781 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
45782 Define to 256, not 255, as per modern POSIX.
45784 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
45786 Sync from coreutils.
45787 Use "file name" when talking about file names, instead of "filename"
45788 or "path", as per the GNU coding standards.
45789 * MODULES.html.sh: mkdir-p renamed from makepath.
45790 filenamecat renamed from path-concat.
45791 * modules/filenamecat: Renamed from modules/path-concat.
45792 (Files): filenamecat.h and filenamecat.c renamed from
45793 path-concat.h and path-concat.c.
45794 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
45795 (Include): filenamecat.h, not path-concat.h.
45796 * modules/mkdir-p: Renamed from modules/makepath.
45797 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
45799 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
45800 (Include): mkdir-p.h, not makepath.h.
45802 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
45804 Sync from coreutils.
45805 * m4/mkdir-p.m4: Renamed from makepath.m4.
45806 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
45807 Rename files from makepath.c to mkdir-p.c, and from
45808 makepath.h to mkdir-p.h.
45809 * m4/filenamecat.m4: Renamed from path-concat.m4.
45810 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
45811 Rename files from path-concat.c to filenamecat.c,
45812 and from path-concat.h to filenamecat.h.
45813 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
45814 "file name" in local variables or comments.
45815 * m4/rename.m4: Likewise.
45817 2005-06-01 Bruno Haible <bruno@clisp.org>
45819 * modules/csharpexec: New file.
45820 * MODULES.html.sh (C#): New section.
45822 2005-06-01 Bruno Haible <bruno@clisp.org>
45824 * m4/csharp.m4: New file, from GNU gettext.
45825 * m4/csharpexec.m4: New file, from GNU gettext.
45827 2005-06-01 Bruno Haible <bruno@clisp.org>
45829 * lib/csharpexec.h: New file, from GNU gettext.
45830 * lib/csharpexec.c: New file, from GNU gettext.
45831 * lib/csharpexec.sh.in: New file, from GNU gettext.
45833 2005-05-31 Derek Price <derek@ximbiot.com>
45834 Paul Eggert <eggert@cs.ucla.edu>
45837 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
45839 2005-05-31 Derek Price <derek@ximbiot.com>
45840 Paul Eggert <eggert@cs.ucla.edu>
45843 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
45845 2005-05-29 Derek Price <derek@ximbiot.com>
45847 * config/srclist.txt (glob_.h, glob.c): Add these files.
45849 2005-05-29 Derek Price <derek@ximbiot.com>
45851 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
45852 * modules/glob: New file.
45853 * modules/getlogin_r: Add link to POSIX spec in description.
45855 2005-05-29 Derek Price <derek@ximbiot.com>
45856 Paul Eggert <eggert@cs.ucla.edu>
45858 * m4/glob.m4: New file.
45860 2005-05-29 Derek Price <derek@ximbiot.com>
45861 Paul Eggert <eggert@cs.ucla.edu>
45863 * lib/glob_.h, lib/glob.c: New files.
45865 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
45867 * modules/fts (Files): Remove m4/inttypes-pri.m4.
45868 * modules/fts-lgpl (Depends-on): Remove gettext.
45870 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
45872 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
45873 and don't require gt_INTTYPES_PRI.
45875 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
45877 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
45879 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
45880 the configuration hassle isn't worth it.
45881 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
45882 (LONGEST_MODIFIER, PRIuMAX): Remove.
45884 2005-05-27 Bruno Haible <bruno@clisp.org>
45886 * lib/getlogin_r.h: Remove second include of <stddef.h>.
45888 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
45890 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
45891 _POSIX_PTHREAD_SEMANTICS for Solaris.
45893 2005-05-25 Derek Price <derek@ximbiot.com>
45895 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
45897 2005-05-25 Derek Price <derek@ximbiot.com>
45898 Paul Eggert <eggert@cs.ucla.edu>
45900 * modules/getlogin_r, m4/getlogin_r.m4: New files.
45901 * lib/getlogin_r.c, getlogin_r.h: New files.
45903 2005-05-25 Bruno Haible <bruno@clisp.org>
45904 Derek Price <derek@ximbiot.com>
45906 * lib/getlogin_r.h: Simplify API documentation.
45908 2005-05-23 Derek Price <derek@ximbiot.com>
45910 * modules/minmax (Files): Add m4/minmax.m4.
45911 (configure.ac): Add gl_MINMAX.
45913 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
45915 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
45916 so that unistd-safer.h (GPL'ed code) need not be included.
45918 2005-05-22 Bruno Haible <bruno@clisp.org>
45920 * m4/minmax.m4: New file.
45921 Based on a patch by Derek Price <derek@ximbiot.com>.
45923 2005-05-22 Bruno Haible <bruno@clisp.org>
45925 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
45926 (INT64_MIN): Fix definition.
45927 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
45929 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
45930 NEED_SIGNED_INT_TYPES.
45932 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
45933 HAVE_SYSTEM_INTTYPES.
45935 2005-05-22 Bruno Haible <bruno@clisp.org>
45937 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
45938 Also include <sys/param.h> if it defines MIN, MAX.
45939 Based on a patch by Derek Price <derek@ximbiot.com>.
45941 2005-05-21 Jim Meyering <jim@meyering.net>
45943 * modules/fts (Files): Add m4/inttypes-pri.m4.
45944 (Depends-on): Add lstat and remove gettext. Alphabetize.
45946 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
45949 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
45950 (setup_dir, free_dir): New functions.
45951 (enter_dir, leave_dir): Define trivial
45952 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
45953 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
45954 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
45955 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
45956 Move to fts-cycle.c.
45957 (fts_open): Use setup_dir.
45958 (fts_close): Use free_dir.
45959 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
45960 This adds a label and some gotos, but the alternatives were messier.
45961 Check for memory allocation failure when entering a dir.
45962 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
45963 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
45964 (FTS): New member fts_cycle, that is a union that contains the
45965 old active_dir_ht and cycle_state. All uses changed to mention
45966 fts_cycle.ht and fts_cycle.state.
45967 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
45968 fts.c, with the following changes:
45969 (setup_dir, free_dir): New functions.
45970 (enter_dir): Now returns bool. Return true if successful, false
45971 if memory exhausted. All callers changed.
45972 Do not bother partly cleaning up on
45973 memory allocation failure; that is free_dir's job.
45974 However, free ad if hash_insert fails, to avoid memory leak.
45975 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
45976 fts->fts_options to see which union member to use.
45978 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
45980 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
45981 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
45983 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
45985 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
45987 2005-05-20 Jim Meyering <jim@meyering.net>
45989 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
45990 Now a macro, to pacify GCC.
45992 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
45994 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
45997 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
45999 * lib/chown.c (rpl_chown): Return -1 on failure.
46001 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
46003 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
46004 Don't check for stddef.h.
46005 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
46006 don't use its results.
46007 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
46008 since we include them unconditionally. Don't require
46009 AM_STDBOOL_H, since stdbool is a prerequisite.
46010 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
46011 since we assume C89 or better.
46012 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
46013 as we don't use their results.
46014 Don't check for fchdir, memmove, memset, strrchr, as we use
46015 them unconditionally.
46016 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
46017 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
46019 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
46021 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
46022 Include <stddef.h> unconditionally, since we assume C89 now.
46023 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
46024 * lib/fts.c: Include fts_.h first, to check interface.
46025 Do not include intprops.h; no longer needed.
46026 Include cycle-check.h and hash.h, since fts_.h no longer does.
46027 Remove unnecessary casts of closedir to void.
46028 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
46029 decide whether to decrement nlinks.
46030 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
46031 (FTS): Use struct hash_table * instead of Hash_table, so that
46032 we no longer need to include hash.h here.
46034 2005-05-18 Jim Meyering <jim@meyering.net>
46036 * modules/dirfd (License): Change to LGPL. Most of the code
46037 is already in the public domain.
46039 2005-05-18 Jim Meyering <jim@meyering.net>
46041 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
46042 Reported by Yoann Vandoorselaere.
46044 2005-05-17 Jim Meyering <jim@meyering.net>
46046 * m4/fts.m4: New file, from coreutils.
46048 2005-05-17 Jim Meyering <jim@meyering.net>
46050 * lib/fts.c, lib/fts_.h: New files, from coreutils.
46052 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
46054 Sync from coreutils.
46055 * m4/unlinkdir.m4: New file.
46057 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
46059 Sync from coreutils.
46060 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
46061 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
46062 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
46063 White space changes only.
46064 * lib/makepath.c (make_path): Port to hosts where leading "//" is
46066 * lib/yesno.c: Include getline.h, not ctype.h.
46067 (yesno): Don't remove leading white space; POSIX doesn't allow it.
46068 Use getline to remove arbitrary restriction on response length.
46070 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
46072 * config/srclist-update: Spell out "Street" in FSF postal
46073 mail address; this is the style the FSF seems to prefer.
46075 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
46076 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
46077 this updates FSF postal mail address.
46079 Sync from coreutils.
46080 * modules/unlinkdir: New file.
46081 * modules/yesno (Depends-on): Add getline.
46082 * MODULES.html.sh (File system functions): Add unlinkdir.
46084 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
46086 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
46088 Change the initial comment to refer to GPL, not LGPL.
46089 gnulib-tool will change it to LGPL as needed.
46091 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
46092 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
46093 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
46094 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
46095 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
46096 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
46097 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
46098 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
46099 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
46100 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
46101 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
46102 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
46103 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
46104 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
46105 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
46106 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
46107 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
46108 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
46109 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
46110 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
46111 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
46112 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
46113 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
46114 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
46115 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
46116 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
46117 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
46118 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
46119 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
46120 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
46121 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
46122 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
46123 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
46124 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
46125 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
46126 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
46127 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
46128 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
46129 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
46130 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
46131 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
46132 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
46133 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
46134 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
46135 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
46136 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
46137 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
46138 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
46139 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
46140 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
46141 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
46142 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
46143 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
46144 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
46145 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
46146 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
46147 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
46148 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
46149 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
46150 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
46151 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
46152 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
46153 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
46154 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
46155 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
46156 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
46157 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
46158 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
46159 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
46160 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
46161 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
46162 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
46163 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
46164 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
46165 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
46166 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
46167 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
46168 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
46169 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
46170 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
46171 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
46172 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
46173 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
46174 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
46175 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
46176 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
46177 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
46178 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
46179 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
46180 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
46181 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
46182 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
46183 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
46184 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
46185 lib/yesno.c, lib/yesno.h:
46186 Update FSF postal mail address.
46188 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
46190 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
46191 tests/test-memmem.c, tests/test-stpncpy.c:
46192 Update FSF postal mail address.
46194 2005-05-13 Bruno Haible <bruno@clisp.org>
46196 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
46197 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
46198 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
46199 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
46200 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
46201 Add support for 64-bit integers in the MSVC compiler.
46203 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
46205 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
46207 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
46209 * gnulib-tool (func_import): Sort and uniquify recommended includes.
46211 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
46213 * doc/getdate.texi (General date syntax): Don't say that date
46214 date --iso-8601=ns generates acceptable dates; it doesn't yet.
46215 Problem reported by Nic Ferrier.
46217 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46219 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
46220 specified in ai_socktype. Fix invalid ai_protocol
46221 check. ai_protocol is usually set to 0 or depending on
46222 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
46223 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
46224 ai_socktype / ai_protocol in the returned addrinfo structure.
46226 2005-05-10 Simon Josefsson <jas@extundo.com>
46228 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
46229 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46231 2005-05-10 Karl Berry <karl@gnu.org>
46233 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
46234 (from http://www.gnu.org/licenses).
46235 * doc/COPYING.LIB: also rename to COPYING.LESSER.
46236 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
46239 2005-05-10 Karl Berry <karl@gnu.org>
46241 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
46242 (COPYING.DOC): remove.
46244 * config/srclist-update: new FSF address.
46246 2005-05-10 Derek Price <derek@ximbiot.com>
46248 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
46251 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46252 Bruno Haible <bruno@clisp.org>
46254 * modules/inet_ntop: New file.
46255 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46258 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46259 Bruno Haible <bruno@clisp.org>
46261 * m4/inet_ntop.m4: New file.
46263 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46264 Bruno Haible <bruno@clisp.org>
46266 * lib/inet_ntop.h: New file.
46267 * lib/inet_ntop.c: New file, from glibc with modifications.
46269 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
46271 * modules/time_r (License): Change to LGPL.
46272 * modules/extensions (License): Change to LGPL. Actually,
46273 the license is more permissive than that, but currently gnulib-tool
46274 doesn't know how to handle more-permissive licenses.
46276 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
46277 Problem reported by Dave Love.
46279 2005-05-08 Jim Meyering <jim@meyering.net>
46281 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
46284 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
46286 * modules/argmatch (Depends-on): Add stdbool.
46287 * modules/backupfile (Depends-on): Likewise.
46288 * modules/chdir-long (Depends-on): Likewise.
46289 * modules/closeout (Depends-on): Likewise.
46290 * modules/cycle-check (Depends-on): Likewise.
46291 * modules/dirname (Depends-on): Likewise.
46292 * modules/fnmatch (Depends-on): Likewise.
46293 * modules/fsusage (Depends-on): Likewise.
46294 * modules/fwriteerror (Depends-on): Likewise.
46295 * modules/getcwd (Depends-on): Likewise.
46296 * modules/getloadavg (Depends-on): Likewise.
46297 * modules/hard-locale (Depends-on): Likewise.
46298 * modules/makepath (Depends-on): Likewise.
46299 * modules/mountlist (Depends-on): Likewise.
46300 * modules/nanosleep (Depends-on): Likewise.
46301 * modules/posixtm (Depends-on): Likewise.
46302 * modules/quotearg (Depends-on): Likewise.
46303 * modules/readtokens (Depends-on): Likewise.
46304 * modules/readtokens0 (Depends-on): Likewise.
46305 * modules/readutmp (Depends-on): Likewise.
46306 * modules/save-cwd (Depends-on): Likewise.
46307 * modules/strftime (Depends-on): Likewise.
46308 * modules/userspec (Depends-on): Likewise.
46309 * modules/utimecmp (Depends-on): Likewise.
46310 * modules/xgetcwd (Depends-on): Likewise.
46311 * modules/xnanosleep (Depends-on): Likewise.
46312 * modules/xstrtod (Depends-on): Likewise.
46313 * modules/yesno (Depends-on): Likewise.
46315 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
46317 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
46320 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46322 Merge from coreutils. Among other things,
46323 add bulletproofing for cases where stdin, stdout, or stderr are closed.
46324 * lib/fd-safer.c: New file.
46325 * lib/fcntl-safer.h, open-safer.c: Remove.
46326 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
46327 * lib/dup-safer.c: Include unistd-safer.h first.
46328 Don't include errno.h.
46329 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
46330 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
46331 * lib/file-type.c: Rely on file-type.h change.
46332 * lib/getloadavg.c: Include unistd-safer.h.
46333 (getloadavg): Use safer open.
46334 * lib/getusershell.c: Include "stdio-safer.h".
46335 (getusershell): Use safer fopen.
46336 * lib/long-options.c (long_options): Use NULL rather than 0.
46337 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
46339 * lib/modechange.c: Likewise.
46340 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
46341 (MODE_DONE): New constant.
46342 (struct mode_change): Remove 'next' member.
46343 (make_node_op_equals): New function; like the old one of the
46344 same name, except it allocates an array.
46345 (mode_compile, mode_create_from_ref): Use it.
46346 (mode_compile): Allocate result as an array, not a linked list.
46347 Parse octal string ourself, so that we catch mistakes like "+0".
46348 (mode_adjust): Arg is an array, not a linked list.
46349 * lib/modechange.c: Include stat-macros.h, xalloc.h.
46350 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
46351 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
46352 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
46353 Remove. This is now stat-macros.h's job.
46354 (talloc): Remove. All callers replaced by xalloc, so that
46355 our invokers don't have to worry about reporting memory failures.
46356 (make_node_op_equals): Remove.
46357 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46359 (struct mode_change): Moved here from modechange.h.
46360 (mode_append_entry): Remove.
46361 (mode_compile): Remove MASKED_OPS arg, since it encouraged
46362 apps to have incorrect behavior. Use simpler algorithm for head
46363 and tail. Don't futz with umask; that's now the job of mode_adjust.
46364 Detect more invalid usages rather than having somewhat-random behavior.
46365 Don't insert an "a=" action, as that leads to incorrect behavior.
46366 (mode_compile, mode_create_from_ref): Return NULL on error instead
46367 of an enum, since now there's only one way to have an error. All
46369 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
46370 at the correct time. Simplify calculation of "+u" and its ilk.
46371 Don't mishandle "+X".
46372 (mode_free): Remove "register" and localize decls.
46373 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46374 (struct mode_change): Move to modechange.c; callers don't
46375 need to see this stuff.
46376 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
46377 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
46378 (mode_change, mode_adjust): Reflect the new signatures noted above.
46379 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
46380 that might redefine system include files.
46381 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
46382 (my_usleep): Use NULL rather than (void *) 0.
46383 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
46384 Use siginterrupt to specify that system calls should be interrupted.
46385 (rpl_nanosleep): Move initialization of suspended closer to call of
46387 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
46388 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
46389 (desirable_utmp_entry): New function.
46390 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
46391 using x2nrealloc, to simplify logic.
46392 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
46393 size calculation. Do not assume utmp file is a regular file.
46394 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
46395 (READ_UTMP_CHECK_PIDS): New constant.
46396 * lib/save-cwd.c: Include unistd-safer.h.
46397 (save_cwd): Use fd_safer.
46398 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
46399 [!_LIBC] Include "stat-macros.h" instead.
46400 * lib/unistd-safer.h (fd_safer): New decl.
46402 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46404 * modules/getloadavg (Depends-on): Add unistd-safer.
46405 * modules/getusershell (Depends-on): Add stdio-safer.
46406 * modules/lstat (Depends-on): Remove xalloc.
46407 * modules/mkstemp (Depends-on): Add stat-macros.
46408 * modules/modechange (Depends-on): Remove xstrtol.
46409 Add stat-macros, xalloc.
46410 * modules/save-cwd (Depends-on): Add unistd-safer.
46411 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
46412 * modules/unistd-safer (Files): Add lib/fd-safer.c
46413 (Makefile.am): Remove lib_SOURCES.
46415 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
46416 Remove fcntl-safer; unistd-safer supersedes it.
46418 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46420 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
46422 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
46423 (gl_PREREQ_CHOWN): Remove.
46424 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
46425 it. Don't require AC_HEADER_STAT.
46426 (gl_PREREQ_LSTAT): Remove.
46427 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
46428 Don't require AC_HEADER_STAT.
46429 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
46430 (gl_PREREQ_RMDIR): Remove.
46431 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
46432 mention stat-macros.h or AC_HEADER_STAT, since we'll make
46433 the stat-macros module a prerequisite.
46434 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
46435 * m4/filemode.m4 (gl_FILEMODE): Likewise.
46436 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
46437 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
46438 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
46440 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
46441 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
46443 * m4/fcntl-safer.m4: Remove.
46444 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
46445 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
46446 Invoke gl_PREREQ_FD_SAFER.
46447 (gl_PREREQ_FD_SAFER): New macro.
46448 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
46449 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
46450 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
46451 Remove duplicate call to AC_LIBOBJ(readutmp).
46452 (gl_PREREQ_READUTMP): Remove. All uses inlined.
46454 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
46455 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
46457 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46459 * MODULES.html.sh (Misc): Add byteswap.
46461 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46463 * modules/getcwd (Depends-on): Add extensions.
46464 * modules/openat (Depends-on): Likewise.
46466 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46468 * modules/byteswap: New file.
46470 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46472 * m4/byteswap.m4: New file.
46474 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46476 * lib/byteswap_.h: New file.
46478 2005-04-25 Karl Berry <karl@gnu.org>
46480 * m4/gettext.m4: Update from GNU gettext 0.14.4.
46482 2005-04-25 Albert Chin <china@thewrittenword.com>
46484 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
46487 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
46489 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
46490 (func_ln_if_changed) Remove forcibly for no error message
46491 in case file does not exist.
46493 2005-04-19 Simon Josefsson <jas@extundo.com>
46495 * gnulib-tool (Options): Make --symlink mean --symbolic.
46497 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
46499 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
46501 2005-04-16 Simon Josefsson <jas@extundo.com>
46503 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
46505 2005-04-15 Simon Josefsson <jas@extundo.com>
46507 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
46509 2005-04-15 Simon Josefsson <jas@extundo.com>
46511 * gnulib-tool: Rename --symlink to --symbolic.
46513 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
46515 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
46516 symbolic links to files instead of copying/moving. Add --aux-dir,
46517 specifying directory relative --dir where auxiliary build tools
46520 2005-04-14 Bruno Haible <bruno@clisp.org>
46522 * modules/allocsa (License): Change to LGPL.
46523 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46525 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
46527 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
46528 that "UTC +1 second" continues to work. Problem reported
46529 by Dmitry V. Levin.
46530 (relunit_snumber): New rule.
46533 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
46535 * lib/getdate.y (universal_time_zone_table): New constant.
46536 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
46537 universal_time_zone_table.
46538 (lookup_zone): Prefer universal_time_zone_table to
46539 local_time_zone_table, so that "GMT" time stamps are allowed in
46540 London during the summer. Problem reported by Ian Abbott.
46542 2005-04-12 Jim Meyering <jim@meyering.net>
46544 * lib/human.c (humblock): Set *options even when returning due to
46545 xstrtoumax conversion failure. Thanks to a used-uninitialized
46546 warning from gcc-4.
46548 2005-04-09 Jim Meyering <jim@meyering.net>
46550 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
46551 -Wuninitialized: initialize tm0.tm_year.
46553 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
46555 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
46556 count, since there's no maximum. All uses changed.
46557 Add member dsts_seen.
46558 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
46560 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
46561 Use pc_rels_seen to decide whther a date is absolute.
46563 * lib/getdate.y (number): Don't overwrite year.
46564 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
46567 2005-04-02 Simon Josefsson <jas@extundo.com>
46569 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
46570 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
46572 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
46574 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
46575 where no absolute path name can be longer than PATH_MAX.
46577 2005-03-27 Jim Meyering <jim@meyering.net>
46579 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
46581 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
46583 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
46584 "one's complement" -> "ones' complement" in comment, as per Knuth.
46585 "value of type" -> "type or expression" in comment.
46586 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
46588 2005-03-26 Jim Meyering <jim@meyering.net>
46591 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
46592 Correct typos: s/or/of/.
46594 2005-03-26 Jim Meyering <jim@meyering.net>
46596 * modules/check-include-files: Move to ../ and rename to...
46597 * check-module: ...this.
46599 2005-03-25 Jim Meyering <jim@meyering.net>
46601 * modules/xvasprintf (Files): Add xalloc.h.
46603 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
46605 * modules/gettext (Files): config/config.rpath ->
46606 build-aux/config.rpath
46607 * modules/iconv (Files): Likewise.
46608 Problem reported by Oskar Liljeblad.
46610 2005-03-23 Jim Meyering <jim@meyering.net>
46612 * modules/check-include-files: New script to check for
46613 missing dependencies, multiple includes, etc.
46615 * modules/c-strtold (Depends-on): Add xalloc.
46616 * modules/c-strtod (Depends-on): Add xalloc.
46617 * modules/hash (Depends-on): Add xalloc.
46618 (Files): Remove lib/xalloc.h.
46620 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
46621 * modules/userspec (Files): Add lib/inttostr.h.
46623 2005-03-23 Jim Meyering <jim@meyering.net>
46625 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
46627 2005-03-22 Jim Meyering <jim@meyering.net>
46629 * modules/stat-macros: New module.
46630 * modules/canonicalize, modules/euidaccess, modules/file-type,
46631 * modules/filemode, modules/lchown, modules/makepath,
46632 * modules/rmdir, modules/stat: Depend on new stat-macros module
46633 rather than listing lib/stat-macros.h manually.
46634 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
46636 2005-03-22 Jim Meyering <jim@meyering.net>
46638 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
46640 2005-03-22 Bruno Haible <bruno@clisp.org>
46642 * config/srclist.txt: Replace target directory 'config' with
46644 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
46645 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
46648 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
46650 * modules/chdir-long (Depends-on): Add mempcpy.
46652 * modules/acl, modules/backupfile, modules/c-strtod,
46653 modules/c-strtold, modules/canon-host, modules/canonicalize,
46654 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
46655 modules/exclude, modules/exitfail, modules/file-type,
46656 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
46657 modules/getdate, modules/getline, modules/getpagesize,
46658 modules/getpass, modules/getugroups, modules/group-member,
46659 modules/hard-locale, modules/hash, modules/human, modules/idcache,
46660 modules/inttostr, modules/long-options, modules/makepath,
46661 modules/md5, modules/memcasecmp, modules/memcoll,
46662 modules/modechange, modules/mountlist, modules/path-concat,
46663 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
46664 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
46665 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
46666 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
46667 modules/strftime, modules/strndup, modules/strverscmp,
46668 modules/timespec, modules/unlocked-io, modules/userspec,
46669 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
46671 Remove lib_SOURCES line from Makefile.am section, as this is now
46672 done automatically by the corresponding Autoconf macro.
46674 2005-03-21 Jim Meyering <jim@meyering.net>
46676 Changes imported from coreutils.
46678 * lib/cycle-check.c: Don't include xalloc.h.
46680 * lib/path-concat.c: Don't include assert.h.
46681 (path_concat): Remove assertion that would have triggered
46682 for ABASE starting with more than one slash.
46683 Reported by Andreas Schwab.
46685 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
46686 properly when ABASE is an absolute file name.
46687 Correct the description of this function.
46688 Include <assert.h>.
46689 Add an assertion and a test driver.
46690 This fixes a bug introduced on 2004-07-02.
46691 Andreas Schwab reported the resulting failure of cp --parents:
46692 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
46694 2005-03-21 Jim Meyering <jim@meyering.net>
46696 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
46697 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
46699 2005-03-21 Jim Meyering <jim@meyering.net>
46700 and Paul Eggert <eggert@cs.ucla.edu>
46702 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
46703 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
46704 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
46705 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
46706 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
46707 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
46708 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
46709 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
46710 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
46711 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
46712 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
46713 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
46714 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
46715 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
46716 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
46717 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
46718 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
46721 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
46723 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
46724 (which shouldn't happen), generate nothing instead of returning 0
46725 immediately, so that nstrftime (NULL, ...) doesn't return 0.
46727 2005-03-16 Bruno Haible <bruno@clisp.org>
46729 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
46730 HAVE_LONGLONG_64BIT.
46732 2005-03-16 Bruno Haible <bruno@clisp.org>
46734 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
46735 HAVE_LONGLONG_64BIT.
46737 2005-03-16 Bruno Haible <bruno@clisp.org>
46739 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
46740 HAVE_LONGLONG_64BIT.
46742 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
46744 * lib/strftime.c (my_strftime): Prepend space to format so that we can
46745 reliably distinguish strftime failure from empty output on POSIX
46748 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
46750 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
46751 (iconv_string): Don't guess a size-zero buffer, as that might cause
46752 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
46753 result would be 'too large', where 'too large' is (heuristically)
46754 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
46755 overflow concerns. This will prevent some unwanted malloc failures
46756 when the inputs are very large.
46758 2005-03-15 Karl Berry <karl@gnu.org>
46760 * config/srclist.txt (config.rpath): from gettext.
46761 * config/config.rpath: update.
46763 2005-03-15 Bruno Haible <bruno@clisp.org>
46765 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
46768 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
46771 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
46774 2005-03-14 Simon Josefsson <jas@extundo.com>
46776 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
46779 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
46781 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
46782 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
46784 * lib/strtol.c: Likewise.
46786 2005-03-14 Jim Meyering <jim@meyering.net>
46788 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
46789 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
46790 to be nonzero so that we (and caller) can detect the difference
46791 between a valid zero-length expansion and an error return, even
46792 when the underlying strftime fails before writing anything into
46795 2005-03-14 Bruno Haible <bruno@clisp.org>
46797 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
46798 Update from GNU gettext 0.14.3.
46800 2005-03-10 Jim Meyering <jim@meyering.net>
46802 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
46804 2005-03-10 Jim Meyering <jim@meyering.net>
46806 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
46807 so that this module works on systems without fchdir.
46809 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
46811 Factor int-properties macros into a single file, except for
46812 glibc-related files.
46813 * lib/intprops.h: New file.
46814 * lib/getloadavg.c: Include it instead of limits.h.
46815 (INT_STRLEN_BOUND): Remove.
46816 * lib/human.c: Include intprops.h.
46817 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
46818 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
46820 * lib/inttostr.h: Include intprops.h instead of limits.h.
46821 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
46822 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
46823 for consistency with intprops.h.
46824 (time_t_is_integer, twos_complement_arithmetic): Use them.
46825 * lib/sig2str.h: Include <signal.h>, intprops.h.
46826 (INT_STRLEN_BOUND): Remove.
46827 * lib/strftime.c (TYPE_SIGNED): Remove.
46828 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
46829 * lib/strtol.c: Adjust comments to match intprops.h.
46830 * lib/userspec.c: Include intprops.h.
46831 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
46832 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
46833 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
46834 instead of rolling our own expressions.
46835 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
46837 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
46839 (my_strftime): Do not mishandle years close to INT_MAX, by doing
46840 the right thing even if adding 1900 would overflow. Similarly
46841 for tm_mon + 1 and tm_yday + 1.
46842 Make %Y always equivalent to %C%y, and similarly for %G and %g.
46843 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
46844 (DO_SIGNED_NUMBER): New macro.
46845 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
46847 2005-03-07 Bruno Haible <bruno@clisp.org>
46849 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
46851 2005-03-07 Bruno Haible <bruno@clisp.org>
46853 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
46855 2005-03-04 Derek R. Price <derek@ximbiot.com>
46857 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
46858 (func_import): Only replace files via --import when they have actually
46861 2005-03-03 Derek R. Price <derek@ximbiot.com>
46863 * m4/mmap-anon.m4: New file.
46864 * m4/pagealign_alloc.m4: New file.
46866 2005-03-03 Derek R. Price <derek@ximbiot.com>
46867 Bruno Haible <bruno@clisp.org>
46869 * modules/pagealign_alloc: New file.
46870 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
46872 2005-03-03 Derek R. Price <derek@ximbiot.com>
46873 Bruno Haible <bruno@clisp.org>
46875 * lib/pagealign_alloc.h: New file.
46876 * lib/pagealign_alloc.c: New file.
46878 2005-03-03 Bruno Haible <bruno@clisp.org>
46880 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
46881 Use an all-permissive copyright notice, recommended by RMS.
46883 2005-03-02 Bruno Haible <bruno@clisp.org>
46885 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
46886 of AIX, the replacement has to be done only after <string.h> is
46887 included, therefore not in config.h. stpncpy.h does the replacement,
46888 and stpncpy.c uses it.
46890 2005-03-02 Bruno Haible <bruno@clisp.org>
46892 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
46895 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
46897 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
46898 The workaround isn't strictly needed for POSIX conformance, and
46899 it's too much of a pain to configure and maintain. We'll ask
46900 people to fix their kernels instead.
46901 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
46902 (NANOSLEEP_BUG_WORKAROUND): Remove.
46903 (xnanosleep): Remove the workaround.
46905 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
46907 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
46908 Reported by Derek Price.
46909 (Include): Add "timespec.h".
46911 * modules/xnanosleep (Depends-on): Remove gethrxtime.
46913 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
46915 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
46916 to detect nanosleep bug.
46918 2005-03-01 Bruno Haible <bruno@clisp.org>
46920 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
46922 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
46924 * modules/gethrxtime: New file.
46925 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
46926 (Depends-on): Add gethrxtime.
46927 (configure.ac): Add gl_XNANOSLEEP.
46928 (Makefile.am): Remove lib_SOURCES line.
46930 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
46932 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
46933 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
46935 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
46937 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
46938 * lib/timespec.h (gettime): Return void, since it always
46939 succeeds now. All uses changed.
46940 * lib/gettime.c (gettime) Likewise.
46941 [HAVE_NANOTIME]: Prefer nanotime.
46942 Assume gettimeofday succeeds, as POSIX requires.
46943 Assime time () succeeds, since other code already does.
46944 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
46945 (timespec_subtract): Remove.
46946 (NANOSLEEP_BUG_WORKAROUND): New constant.
46947 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
46948 things considerably. Use it only on GNU/Linux hosts, since the
46949 workaround shouldn't be needed elsewhere.
46951 2005-02-24 Bruno Haible <bruno@clisp.org>
46953 * modules/gettext (Files): Add m4/glibc2.m4.
46955 2005-02-24 Bruno Haible <bruno@clisp.org>
46957 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
46958 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
46960 Update from GNU gettext 0.14.2.
46961 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
46963 2005-02-24 Bruno Haible <bruno@clisp.org>
46965 * lib/localcharset.c: Update from GNU gettext 0.14.2.
46966 * lib/config.charset: Update from GNU gettext 0.14.2.
46968 2005-02-24 Bruno Haible <bruno@clisp.org>
46970 * lib/gettext.h: Update from GNU gettext 0.14.2.
46972 2005-02-23 Simon Josefsson <jas@extundo.com>
46974 * m4/iconvme.m4: New file.
46976 2005-02-23 Jim Meyering <jim@meyering.net>
46978 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
46980 Thanks to Bruno Haible for catching it.
46982 2005-02-22 Simon Josefsson <jas@extundo.com>
46984 * modules/iconvme: New file.
46986 * MODULES.html.sh: Add iconvme.
46988 2005-02-22 Simon Josefsson <jas@extundo.com>
46990 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
46992 2005-02-22 Simon Josefsson <jas@extundo.com>
46994 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
46996 2005-02-22 Jim Meyering <jim@meyering.net>
46998 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
47001 2005-02-20 Neil Conway <neilc@samurai.com>
47003 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
47004 returned by OSX/Darwin if the specified buffer is not large
47005 enough for the hostname.
47007 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47009 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
47010 pass it to _help, otherwise the latter coredumps trying to
47011 dereference state.root_argp.
47013 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
47015 * modules/chdir-long (Depends-on): Add memrchr.
47016 * modules/memrchr (Files): Add lib/memrchr.h.
47017 (Include): "memrchr.h".
47019 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
47021 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
47023 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
47025 * lib/memrchr.h: New file.
47026 * lib/chdir-long.c: Include it.
47027 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
47028 Don't bother including stddef.h.
47030 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
47032 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
47034 Include <sys/types.h>, for dev_t.
47035 (ME_DUMMY, ME_REMOTE): Move from here....
47036 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
47037 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
47039 Include mountlist.h first, to test the interface.
47041 2005-01-29 Bruno Haible <bruno@clisp.org>
47043 * lib/progname.c (program_name): Initialize.
47044 Needed when linking statically on MacOS X.
47046 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
47048 Sync from coreutils.
47049 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
47050 (Depends-on): Add c-strtod.
47051 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
47053 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
47055 Sync from coreutils.
47056 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
47058 Remove files that are specific to coreutils.
47059 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
47061 2005-01-28 Bruno Haible <bruno@clisp.org>
47063 * modules/javacomp: New file.
47064 * MODULES.html.sh (Java): Add javacomp.
47066 2005-01-28 Bruno Haible <bruno@clisp.org>
47068 * m4/javacomp.m4: New file, from GNU gettext.
47070 2005-01-28 Bruno Haible <bruno@clisp.org>
47072 * lib/javacomp.sh.in: New file, from GNU gettext.
47073 * lib/javacomp.h: New file, from GNU gettext.
47074 * lib/javacomp.c: New file, from GNU gettext.
47076 2005-01-26 Simon Josefsson <jas@extundo.com>
47078 * lib/gai_strerror.c: Use GPL in header.
47080 2005-01-26 Bruno Haible <bruno@clisp.org>
47082 * modules/javaexec: New file.
47083 * MODULES.html.sh (Java): Add javaexec.
47085 2005-01-26 Bruno Haible <bruno@clisp.org>
47087 * m4/javaexec.m4: New file, from GNU gettext.
47089 2005-01-26 Bruno Haible <bruno@clisp.org>
47091 * lib/javaexec.sh.in: New file, from GNU gettext.
47092 * lib/javaexec.h: New file, from GNU gettext.
47093 * lib/javaexec.c: New file, from GNU gettext.
47095 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47097 * modules/lchown (Depends-on): Remove lchown.h
47099 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47101 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
47102 must be defined if the header file was not found, in order
47103 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
47105 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47107 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
47108 initializers for struct pentry_state.
47109 (__argp_error): Check return value of __asprintf
47110 (__argp_failure): Translate error message
47112 * lib/argp-parse.c: Removed braces around the expansion of N_()
47114 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
47116 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
47117 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
47118 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
47119 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
47120 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
47121 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
47122 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
47123 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
47124 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
47125 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
47126 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
47127 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
47128 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
47129 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
47130 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
47131 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
47132 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
47133 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
47134 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
47135 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
47136 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
47137 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
47138 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
47139 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
47140 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
47141 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
47142 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
47143 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
47144 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
47145 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
47146 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
47147 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
47148 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
47149 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
47150 xstrtol.m4, xstrtoumax.m4, yesno.m4:
47151 Use an all-permissive copyright notice, recommended by RMS.
47153 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
47155 * modules/chdir-long (Depends-on): Remove mempcpy.
47157 2005-01-21 Jim Meyering <jim@meyering.net>
47159 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
47160 same value as for Solaris 9.
47162 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
47163 component length. This included changing the parameter to be
47164 of type `char *' rather than `char const *'.
47165 * lib/chdir-long.h (chdir_long): Update prototype.
47167 * lib/openat.c (fdopendir, fstatat): New functions.
47168 * lib/openat.h: Include headers required for use of DIR and struct
47170 [AT_SYMLINK_NOFOLLOW]: Define.
47171 (fdopendir, fstatat): Add prototypes.
47173 2005-01-21 Bruno Haible <bruno@clisp.org>
47175 * modules/classpath: New file.
47176 * MODULES.html.sh (Java): Add classpath.
47178 2005-01-21 Bruno Haible <bruno@clisp.org>
47180 * lib/classpath.h: New file, from GNU gettext.
47181 * lib/classpath.c: New file, from GNU gettext.
47183 2005-01-20 Simon Josefsson <jas@extundo.com>
47185 * modules/version-etc-fsf: New file.
47187 2005-01-20 Simon Josefsson <jas@extundo.com>
47189 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
47190 * lib/version-etc.c: Remove version_etc_copyright.
47191 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
47192 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
47194 2005-01-20 Simon Josefsson <jas@extundo.com>
47196 * lib/base64.h (isbase64): Add.
47198 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
47199 using a unsigned prototype, don't inline.
47200 (base64_decode): Use it.
47202 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
47204 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
47207 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
47209 * lib/save-cwd.c (save_cwd): Remove code to support the case
47210 where fchdir is missing or flaky.
47212 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
47214 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
47216 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
47218 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
47219 AC_LIBSOURCES now does this.
47220 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
47221 with new ullong_max module.
47223 2005-01-19 Bruno Haible <bruno@clisp.org>
47225 * modules/sh-quote: New file.
47226 * MODULES.html.sh (Executing programs): Add sh-quote.
47228 2005-01-19 Bruno Haible <bruno@clisp.org>
47230 * lib/sh-quote.h: New file, from GNU gettext.
47231 * lib/sh-quote.c: New file, from GNU gettext.
47233 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
47235 Merge from coreutils.
47236 * m4/ullong_max.m4: New file.
47237 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
47238 (gl_MACROS): Assume localeconv exists.
47240 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
47242 Merge changes from coreutils, as described below in several
47243 changelogs dated today.
47245 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
47246 (O_DIRECTORY): Remove; not needed here, since "." must be
47247 a directory. All uses removed.
47248 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
47249 universal on Suns, and we also need to test for IRIX.
47250 Revamp code to use 'if' rather than '#if'.
47251 Avoid unnecessary comparison of cwd->desc to 0.
47253 * lib/utimens.c (futimens): Robustify the previous patch, by checking
47254 for known valid error numbers rather than observed invalid ones.
47256 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
47258 * modules/ullong_max: New file.
47260 * modules/chdir-long, modules/openat: New files.
47261 * modules/save-cwd (Depends-on): Depend on chdir-long.
47262 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
47264 2005-01-18 Jim Meyering <jim@meyering.net>
47266 Merge from coreutils.
47267 * m4/chdir-long.m4, m4/openat.m4: New files.
47268 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
47269 save-cwd.h. Add AC_LIBOBJ for save-cwd.
47270 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
47271 is sane and DOES follow symlinks. Besides, testing 20 different
47272 systems found no broken chown implementations.
47273 Prompted by a change in rsync's copy of this macro.
47274 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
47276 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
47278 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
47279 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
47280 NULL-means-set-to-current-time semantics.
47281 Remove temporary file immediately, rather than waiting
47282 for configure's at-exit trap code to do it.
47284 2005-01-18 Jim Meyering <jim@meyering.net>
47286 * lib/version-etc.c (version_etc_copyright): Update copyright date.
47288 * lib/utimens.c (futimens): Account for the fact that futimes
47289 can also fail with errno == ENOSYS or errno == ENOENT.
47290 Patch from Dmitry V. Levin.
47292 Change the name of the robust chdir function from chdir to chdir_long.
47293 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
47294 (restore_cwd): Use chdir_long, not chdir.
47295 * lib/chdir-long.c: Renamed from chdir.c.
47296 * lib/chdir-long.h: Renamed from chdir.h.
47297 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
47300 2005-01-18 Bruno Haible <bruno@clisp.org>
47302 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
47303 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
47304 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
47305 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
47306 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
47307 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
47308 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
47309 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
47310 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
47311 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
47312 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
47313 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
47314 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
47315 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
47316 Use an all-permissive copyright notice, recommended by RMS.
47318 2005-01-18 Bob Proulx <bob@proulx.com>
47320 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
47321 simplify offsetof() macro construct to avoid compile failure with
47322 native HP-UX 11.0 ANSI C compiler.
47324 2005-01-17 Bruno Haible <bruno@clisp.org>
47326 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
47327 redundant because stpncpy.m4 takes care of it.
47329 2005-01-17 Bruno Haible <bruno@clisp.org>
47331 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
47333 2005-01-17 Bruno Haible <bruno@clisp.org>
47335 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
47338 2005-01-17 Bruno Haible <bruno@clisp.org>
47340 * lib/fwriteerror.h (fwriteerror): Change specification to include
47342 * lib/fwriteerror.c: Include <stdbool.h>.
47343 (fwriteerror): At the end, close the file stream. Record whether
47344 stdout was already closed.
47346 2005-01-17 Bruno Haible <bruno@clisp.org>
47348 * lib/execute.c (environ): Declare if needed.
47349 * lib/pipe.c (environ): Likewise.
47350 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
47352 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47354 * modules/argp: Depend on vsnprintf
47356 2005-01-10 Jim Meyering <jim@meyering.net>
47358 * modules/closeout (Depends-on): Add atexit.
47360 2005-01-06 Bruno Haible <bruno@clisp.org>
47362 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
47364 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
47366 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
47367 definitions to be after all include files, to avoid collisions.
47368 Problem reported by Bob Proulx.
47370 2005-01-04 Jim Meyering <jim@meyering.net>
47372 Changes imported from coreutils.
47373 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
47374 as the mkstemp template, use a temporary directory and an
47375 8.3-friendly template to avoid trouble on systems like DJGPP.
47376 Reported by Juan M. Guerrero via Stepan Kasal.
47377 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
47378 close. Remove the temporary directory right away, rather than waiting
47379 for configure's at-exit trap code to do it.
47380 Suggestion from Stepan Kasal.
47382 2005-01-01 Simon Josefsson <jas@extundo.com>
47384 * gnulib-tool: Print #include directives when --import'ing.
47386 2004-12-28 Simon Josefsson <jas@extundo.com>
47388 * tests/test-base64.c: Include required header files. Remove
47391 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
47393 * modules/error (Depends-on): Remove gettext.
47395 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
47397 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
47398 not needed. This removes a dependency on the gettext module.
47399 [defined _LIBC]: Do not include <libintl.h>; not needed.
47401 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
47403 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
47404 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
47406 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
47408 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
47411 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
47413 * modules/getdate (Depends-on): Remove alloca-opt.
47415 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
47417 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
47419 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
47421 * lib/argp-parse.c: Include <stddef.h>.
47422 (alignof, alignto): New macros.
47423 (parser_init): Don't assume that void * is aligned sufficiently
47426 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
47427 need to extend the stack.
47428 (YYINITDEPTH): New macro, so that the initial stack isn't overly
47431 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47433 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
47435 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
47437 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
47438 (2004-10-24) change. Apparently this was a false alarm.
47440 * modules/getdate: Depend on alloca-opt, not alloca.
47442 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
47444 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
47445 Remove now-obsolete comment about AIX.
47446 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
47447 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
47448 (YYMAXDEPTH): New macro.
47450 2004-12-18 Simon Josefsson <jas@extundo.com>
47452 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
47454 2004-12-18 Bruno Haible <bruno@clisp.org>
47456 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
47458 2004-12-18 Bruno Haible <bruno@clisp.org>
47460 * lib/fatal-signal.c (fatal_signals): Make non-const.
47461 (init_fatal_signals): New function.
47462 (uninstall_handlers, install_handlers): Ignore signals that were set to
47464 (at_fatal_signal): Call init_fatal_signals.
47465 (init_fatal_signal_set): Likewise. Ignore signals that were set to
47467 Reported by Paul Eggert.
47469 2004-12-18 Bruno Haible <bruno@clisp.org>
47471 * doc/alloca.texi: New file.
47472 * doc/alloca-opt.texi: New file.
47474 2004-12-17 Jim Meyering <jim@meyering.net>
47476 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
47477 Otherwise, install-sh could exit with improper exit status when
47478 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
47480 2004-12-16 Simon Josefsson <jas@extundo.com>
47482 * tests/test-base64.c: Add license.
47484 2004-12-15 Stepan Kasal <address@hidden>
47486 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
47488 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
47490 * modules/getcwd (Files): Add m4/d-ino.m4.
47491 Suggested by Mark D. Baushke.
47493 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
47495 * lib/getdate.y (textint): New member "negative".
47496 (time_zone_hhmm): New function.
47497 Expect 14 shift-reduce conflicts, not 13.
47498 (o_colon_minutes): New rule.
47499 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
47500 (yylex): Set the "negative" member of signed numbers.
47502 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
47504 * doc/getdate.texi (Time of day items, Time zone items):
47505 Describe new formats +00:00, UTC+00:00.
47507 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
47509 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
47510 spurious "-l"s. Problem reported by Stepan Kasal.
47512 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
47514 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
47515 in Autoconf 2.59. Problem reported by Mark D. Baushke.
47517 2004-12-04 Simon Josefsson <jas@extundo.com>
47519 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
47520 Vandoorselaere <yoann@prelude-ids.org>.
47522 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
47524 Changes imported from coreutils.
47525 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
47527 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
47529 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
47531 Changes imported from coreutils.
47532 * lib/hard-locale.c: Assume <locale.h> exists.
47533 Include "strdup.h".
47534 (GLIBC_VERSION): New macro.
47535 (hard_locale): Assume setlocale exists.
47536 Rewrite to avoid #ifdef.
47537 Use strdup rather than malloc + strcpy.
47538 * lib/human.c: Assume <locale.h> exists.
47539 (human_readable): Assume localeconv exists.
47541 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
47543 * modules/hard-locale (Depends-on): Add strdup.
47545 2004-12-01 Jakub Jelinek <jakub@redhat.com>
47547 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
47548 convert T2, not T. (Imported from libc.)
47550 2004-11-30 Simon Josefsson <jas@extundo.com>
47552 * modules/restrict (License): Change to LGPL.
47554 2004-11-30 Simon Josefsson <jas@extundo.com>
47556 * m4/restrict.m4: Add copyright and copying conditions.
47558 2004-11-30 Simon Josefsson <jas@extundo.com>
47560 * m4/base64.m4: New file.
47562 2004-11-30 Simon Josefsson <jas@extundo.com>
47564 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
47567 * tests/test-base64.c: New file.
47569 * modules/base64: New file.
47571 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
47573 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
47574 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
47576 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
47578 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
47580 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
47581 (__getcwd.c): Don't restore errno; glibc doesn't.
47582 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
47583 first, falling back to our code only if its results look suspicious.
47584 Ensure that the resulting buffer is only as large as necessary.
47586 * lib/readutmp.c: Include readutmp.h first.
47587 Include <errno.h>, since readutmp.h no longer does that.
47588 * lib/readutmp.h: Don't include <errno.h>,
47589 <sys/param.h>, <time.h>; not needed to establish interface.
47590 (errno): Remove decl.
47591 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
47592 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
47593 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
47595 2004-11-28 Simon Josefsson <jas@extundo.com>
47597 * lib/base64.h, base64.c: New file.
47599 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
47601 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
47603 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
47605 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
47606 (Depends-on): Remove pathmax, same. Add mempcpy.
47607 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
47608 (Makefile.am): Append getcwd.h to lib_SOURCES.
47609 (Include): Add getcwd.h.
47610 (Maintainer): Change from Jim Meyering to "all, glibc",
47611 since getdate now uses intended-for-glibc code.
47612 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
47613 (Depends-on): Depend on getcwd. Do not depend on pathmax.
47615 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
47617 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
47618 HP's ANSI C compiler.
47619 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
47620 Declaring int functions causes warnings on some modern systems and
47621 shouldn't be needed to compile on ancient ones.
47622 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
47625 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
47626 with the following changes.
47627 (__set_errno): Parenthesize properly.
47628 Include <stdbool.h>.
47629 (MIN, MAX, MATCHING_INO): New macros.
47630 (__getcwd): Define with prototype, not K&R form.
47631 Use heuristics to allocate default buffer on stack if possible.
47632 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
47633 behavior, and to avoid the PATH_MAX limit when computing
47635 Use MATCHING_INO to compare inode number to file.
47636 Check for arithmetic overflow in size calculations.
47637 Fix bug in reallocation of dot array that caused getcwd to fail
47638 on directories nested deeper than 75.
47639 Be more careful about saving errno on error.
47640 Do not use realloc; use only free+malloc, as this is a bit
47641 more flexible and avoids a needless copy operation.
47642 Do not inspect st_dev and st_ino for symbolic links; POSIX
47643 doesn't specify the latter.
47644 Check for closedir errors.
47645 Avoid needless casts.
47646 Use "#ifdef weak_alias" around weak_alias, to be like other
47648 The following changes to getcwd.c have effect only when used in
47649 gnulib; they have no effect inside glibc proper.
47650 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
47651 as alloca isn't used.
47652 (alloca, __alloca): Likewise.
47653 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
47654 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
47655 unconditionally, as gnulib assumes C89 or better.
47656 Do not include <sys/param.h>.
47657 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
47658 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
47660 (NULL) [!defined NULL]: Remove; we assume C89 or better.
47661 Include <dirent.h> in a way that is compatible with modern Autoconf.
47662 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
47663 New macros, if not already defined.
47664 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
47665 Use "_LIBC", not "defined _LIBC", for consistency.
47666 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
47668 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
47669 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
47670 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
47671 credit only to Jim Meyering and adjust the copyright dates.
47672 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
47673 <stdlib.h>, <unistd.h>, "pathmax.h".
47674 Instead, include "xgetcwd.h" (first) and "getcwd.h".
47675 (INITIAL_BUFFER_SIZE): Remove.
47676 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
47678 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
47680 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
47681 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
47682 Use the _ONCE methods, for efficiency.
47683 Check for fcntl.h. In test program, include <errno.h>
47684 and <fcntl.h> if available. Remove old K&R cruft from
47685 test program. Check for common errors in GNU/Linux,
47686 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
47687 don't do AC_LIBOBJ, as that's getcwd.m4's job.
47688 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
47689 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
47691 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
47692 accommodate new getcwd.c.
47693 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
47694 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
47695 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
47696 that's all we need now.
47698 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47700 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
47701 argp-parse.c depends on getopt internals, that means we should
47702 always use our getopt, to be on the safe side.
47703 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
47704 order not to spoil the result of an eventual previous invocation
47705 of gl_GETOPT_SUBSTITUTE.
47707 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47709 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
47710 redefinition warnings. To avoid them, include the defines
47711 in `#if !defined __need_getopt ... #endif'. The only place
47712 where __getopt_argv_const is used is in definitions
47713 of getopt_long and getopt_long_only below, which are as well
47714 protected by `#ifndef __need_getopt'.
47715 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
47716 __need_getopt after including <stdio.h> and <unistd.h> These
47717 headers might have defined it.
47719 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
47721 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
47723 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
47725 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
47726 (futimens): New function, which uses futimes if available.
47727 (futimens, utimens): Support timespec==NULL, with same semantics
47728 as utime and utimens.
47729 * lib/utimens.h (futimens): New decl.
47731 2004-11-23 Jim Meyering <jim@meyering.net>
47733 * lib/getopt_.h: Remove trailing blanks.
47735 2004-11-23 Jim Meyering <jim@meyering.net>
47737 * lib/__fpending.c: Add comment.
47739 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
47741 * modules/canonicalize (Depends-on): Add xreadlink.
47742 Problem reported by James Youngman.
47744 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
47746 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
47748 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
47749 optopt): Use them instead of invoking ## directly; otherwise, the
47750 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
47752 2004-11-19 Bruno Haible <bruno@clisp.org>
47754 * lib/strtok_r.c: Move comments from here...
47755 * lib/strtok_r.h: ... to here.
47757 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
47759 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
47760 implementations that mishandle size_t overflow.
47762 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
47764 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
47765 might fail. Problem reported by Yoann Vandoorselaere.
47766 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
47767 implementations that mishandle size_t overflow.
47769 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
47771 * modules/canon-host (Depends-on): Add strdup.
47773 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
47775 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
47777 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
47779 * lib/canon-host.c: Include "strdup.h".
47780 (canon_host): Use getaddrinfo if available, so that IPv6 works.
47781 Use strdup instead of malloc/strcpy to duplicate strings.
47783 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
47784 (human_space_before_unit): New constant.
47785 * lib/human.c (human_readable): Support it.
47787 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
47788 (xgetcwd): Set errno correctly when failing.
47789 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
47790 the failure is actually due to a PATH_MAX problem.
47792 Further getopt changes to make it more likely that glibc will
47793 buy the changes back.
47794 * lib/getopt.c (POSIXLY_CORRECT): New constant.
47795 (getopt): Use it, so to preserve glibc semantic
47796 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
47797 when compiling for libc.
47798 * lib/getopt_.h (__getopt_argv_const): Bring it back.
47799 (getopt_long, getopt_long_only): Use it.
47801 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
47802 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
47803 (getopt): Argv is now char * const *, as per standard.
47804 (_getopt_internal_r, _getopt_internal): Argv is now char **,
47805 not char *__getopt_argv_const *.
47806 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
47807 _getopt_long_only_r): Likewise.
47808 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
47809 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
47810 _getopt_long_r, _getopt_long_only_r): Likewise.
47811 * lib/getopt_.h (__getopt_argv_const): Remove.
47812 (getopt): Argv is now char * const *, as per standard.
47814 * lib/getdate.y (tORDINAL): New token.
47815 (day, relunit): Allow it for relative times.
47816 (relative_time_table): Use tORDINAL for ordinals.
47818 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
47820 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
47821 Document that "second" isn't allowed as an ordinal number.
47823 2004-11-16 Jim Meyering <jim@meyering.net>
47825 * modules/closeout (Depends-on): Add fpending.
47827 2004-11-15 Jim Meyering <jim@meyering.net>
47829 * lib/closeout.c: Include "__fpending.h" once again.
47830 Include <stdbool.h>.
47831 (close_stdout): Don't fail just because stdout was closed initially,
47832 since some programs don't write to stdout in the normal course of
47833 operation (other than --version and --help), and we don't want this
47834 function to make e.g. `touch file >&-' fail.
47835 But do fail if it was closed and someone has tried to write to it.
47836 E.g., `printf foo >&-' must fail.
47838 2004-11-13 Jim Meyering <jim@meyering.net>
47840 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
47842 2004-11-12 Simon Josefsson <jas@extundo.com>
47844 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
47845 small doc fix is still pending.
47847 2004-11-11 Simon Josefsson <jas@extundo.com>
47849 * modules/strtok_r: New file.
47851 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47854 2004-11-11 Simon Josefsson <jas@extundo.com>
47856 * m4/strtok_r.m4: New file.
47858 * m4/getopt.m4: Replace opterr.
47860 2004-11-11 Simon Josefsson <jas@extundo.com>
47862 * lib/strtok_r.h, strtok_r.c: New file.
47864 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
47866 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
47867 of replacing opterr, getopt, etc. This should handle the
47868 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
47870 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
47872 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
47873 we can stop lying to compilers about the constness of argv when we
47874 are compiled outside glibc.
47875 (getopt, getopt_long, getopt_long_only): Use it.
47876 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
47877 _getopt_internal, getopt): Likewise.
47878 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
47879 _getopt_long_only_r): Likewise.
47880 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
47881 _getopt_long_r, _getopt_long_only_r): Likewise.
47883 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
47884 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
47885 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
47886 the other external symbols.
47887 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
47888 declaration, since the above renaming now works around collisions.
47890 2004-11-11 Jim Meyering <jim@meyering.net>
47892 * lib/linebreak.c: Remove trailing blanks.
47893 * lib/alloca_.h: Likewise.
47894 * lib/acosl.c: Likewise.
47895 * lib/euidaccess.c: Likewise.
47896 * lib/allocsa.h: Likewise.
47898 2004-11-10 Simon Josefsson <jas@extundo.com>
47900 * m4/getaddrinfo.m4: New file.
47902 2004-11-10 Simon Josefsson <jas@extundo.com>
47904 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
47906 2004-11-10 Simon Josefsson <jas@extundo.com>
47908 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47911 * modules/getaddrinfo: New file.
47913 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
47915 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
47917 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
47919 * lib/mktime.c (SHR): New macro, which is a portable
47920 substitute for >> that should work even on Crays.
47921 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
47922 Problem reported by Mark D. Baushke in
47923 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
47924 * lib/getdate.y (SHR): Likewise.
47926 * lib/strftime.c (SHR): Likewise.
47928 * lib/quotearg.c (struct quoting_options): Use unsigned int for
47929 quote_these_too, so that right shifts are well defined. All uses
47932 2004-11-10 Jim Meyering <jim@meyering.net>
47934 Ensure that no close failure goes unreported.
47935 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
47936 return early when it seems there's nothing to flush.
47937 Don't include __fpending.h.
47939 2004-11-10 Jim Meyering <jim@meyering.net>
47941 * modules/closeout (Depends-on): Remove fpending.
47943 2004-11-10 Jim Meyering <jim@meyering.net>
47945 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
47947 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
47949 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
47951 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
47952 and AC_REQUIRE when possible, to avoid duplicate checks.
47953 Check for <wchar.h>.
47955 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
47957 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
47959 2004-11-09 Bruno Haible <bruno@clisp.org>
47961 * m4/sockpfaf.m4: New file.
47963 2004-11-05 Bruno Haible <bruno@clisp.org>
47965 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
47966 Reported by Mark D. Baushke <mdb@cvshome.org>.
47968 2004-11-04 Bruno Haible <bruno@clisp.org>
47970 2004-09-11 Bruno Haible <bruno@clisp.org>
47971 * allocsa.valgrind: New file.
47972 2004-02-06 Bruno Haible <bruno@clisp.org>
47973 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
47974 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
47975 Reported by Christopher Seip <chris.seip@hp.com>.
47977 2004-11-04 Bruno Haible <bruno@clisp.org>
47979 * modules/allocsa (Files): Add lib/allocsa.valgrind.
47980 (Makefile.am): Distribute it.
47982 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
47984 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
47985 with errno == ERANGE if the buffer is too small.
47986 Problem reported by Mark D. Baushke.
47988 2004-11-03 Albert Chin <china@thewrittenword.com>
47989 Paul Eggert <eggert@cs.ucla.edu>
47991 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
47992 equivalent, substitute $ac_type for equivalent type rather than
47993 blindly using uint32_t *always* which won't work if uint32_t is not
47994 available. Define _UINT32_T to work around typedef of uint32_t if
47995 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
47998 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
48000 * m4/jm-macros.m4: Sync from coreutils.
48001 (gl_MACROS): Check for mbrlen, for pathchk.
48002 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
48004 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
48006 * lib/xreadlink.c (MAXSIZE): New macro.
48007 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
48008 size does not exceed MAXSIZE. Avoid cast.
48009 As suggested by Mark D. Baushke in
48010 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
48011 if readlink fails with buffer size just under MAXSIZE, try again
48014 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
48016 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
48018 2004-11-02 Derek R. Price <derek@ximbiot.com>
48019 and Paul Eggert <eggert@cs.ucla.edu>
48021 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
48022 (get_date): Overparenthesize to avoid GCC warning.
48024 2004-11-02 Bruno Haible <bruno@clisp.org>
48026 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
48029 2004-11-02 Bruno Haible <bruno@clisp.org>
48031 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
48032 function returns void.
48034 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
48036 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
48037 fflush_unlocked, flockfile, funlockfile, funlockfile,
48038 fputs_unlocked, putc_unlocked.
48040 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
48042 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
48043 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
48046 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
48048 * modules/getdate (Files): Add doc/getdate.texi.
48049 (Depends-on): Add setenv, xalloc.
48051 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
48053 * lib/getdate.y: Add support for TZ="foo" within a date string.
48054 Fix some bugs near time_t boundaries. Reject dates with
48055 out-of-range components, e.g., "Sept 31".
48056 Include <stdlib.h>, "setenv.h", "xalloc.h".
48057 (ISDIGIT_LOCALE): Remove; unused.
48058 Note that the TZ and time functions used here are not reentrant.
48059 (mktime_ok, get_tz): New functions.
48060 (TZBUFSIZE): New constant.
48061 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
48062 This requires that we sometimes generate our own TZ="XXX..." setting.
48064 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
48066 * doc/getdate.texi: New file, from coreutils with modifications for
48067 the new TZ parsing.
48069 2004-10-27 Derek R. Price <derek@ximbiot.com>
48071 * lib/mktime.c (not_equal_tm): Remove redundant check.
48073 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
48075 * modules/regex (lib_SOURCES): Add regex.c.
48076 Reported by James Youngman in
48077 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
48079 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
48081 * lib/getdate.y: Use Bison 1.875 features, and some minor
48082 code cleanups. This change does not affect semantics.
48083 Don't include <stdlib.h>; no longer needed.
48084 Don't include unlocked-io.h; only the "#if TEST" code uses
48085 stdio, and performance isn't crucial there.
48086 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
48087 Bison 1.875 features as described below.
48088 All uses of "PC." replaced by "pc->".
48089 (YYSTYPE): Add a forward declaration.
48090 (yylex, yyerror): Use full prototypes in forward decls.
48091 Use "%pure-parser" rather than obsolescent "%pure_parser".
48092 Use %parse-param and %lex-param instead of obsolescent
48093 YYPARSE_PARAM and YYLEX_PARAM.
48094 (meridian_table, month_and_day_table, time_units_table,
48095 relative_time_table, time_zone_table, military_table,
48096 lookup_zone, lookup_word, get_date):
48097 Use NULL instead of 0 where appropriate.
48098 (to_hour): Avoid abort (), to avoid a dependency on
48100 (yyerror, yylex): Now accepts parser_control * arg.
48101 (main) [TEST]: Use '\0' rather than 0 for char.
48103 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
48105 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
48107 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
48109 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
48110 It's now the caller's responsibility to handle the case where
48111 !HAVE_GETPAGESIZE && !defined getpagesize.
48113 * lib/mktime.c (leapyear): Arg is long int, not int.
48115 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
48117 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
48119 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
48121 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
48122 missing. Problem reported by James Youngman.
48124 2004-10-16 Simon Josefsson <jas@extundo.com>
48126 * gnulib-tool: Fix comments. Fix parse problem.
48127 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
48129 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
48131 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
48132 implementation of getopt_long. Problem reported by Alexander Taler in:
48133 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
48135 2004-10-15 Bruno Haible <bruno@clisp.org>
48137 * gnulib-tool: Untabify. Initialize supplied_libname.
48138 (func_usage): More homogenous output.
48139 (func_modules_transitive_closure, func_modules_to_filelist,
48140 func_emit_lib_Makefile_am): New functions.
48141 (func_import): New function, extracted from big case statement. Use
48142 func_get_license, func_modules_transitive_closure,
48143 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
48144 opt_lgpl. Don't use test -a, as it's not portable.
48145 (func_create_testdir): Use func_modules_transitive_closure,
48146 func_modules_to_filelist, func_emit_lib_Makefile_am.
48148 2004-10-15 Bruno Haible <bruno@clisp.org>
48150 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
48152 2004-10-15 Bruno Haible <bruno@clisp.org>
48154 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
48155 the portions belonging to each module.
48156 Suggested by Derek Robert Price <derek@ximbiot.com>.
48158 2004-10-12 Simon Josefsson <jas@extundo.com>
48160 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
48161 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
48164 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
48166 * modules/vsnprintf: New file.
48168 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
48170 * m4/vsnprintf.m4: New file.
48172 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
48174 * lib/vsnprintf.h: New file.
48175 * lib/vsnprintf.c: New file.
48177 2004-10-11 Bruno Haible <bruno@clisp.org>
48179 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
48182 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
48184 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
48186 2004-10-07 Bruno Haible <bruno@clisp.org>
48188 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
48189 fits into the provided buffer.
48191 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
48193 * lib/diacrit.c, diacrit.h: Add GPL notice.
48195 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
48197 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
48198 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
48199 This avoids a potential constant-folding bug.
48201 2004-10-05 Bruno Haible <bruno@clisp.org>
48203 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
48204 for the declaration of strsep.
48206 2004-10-05 Bruno Haible <bruno@clisp.org>
48208 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
48210 2004-10-04 Simon Josefsson <jas@extundo.com>
48212 * modules/memmem: New file.
48213 * tests/test-memmem.c: New file.
48214 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
48216 2004-10-04 Simon Josefsson <jas@extundo.com>
48218 * m4/memmem.m4: New file.
48220 2004-10-04 Simon Josefsson <jas@extundo.com>
48222 * lib/memmem.h: New file.
48223 * lib/memmem.c: New file, taken from glibc.
48225 2004-10-04 Simon Josefsson <jas@extundo.com>
48227 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
48228 '#ifdef USE_UNLOCKED_IO'.
48230 2004-10-04 Simon Josefsson <jas@extundo.com>
48232 * config/srclist.txt: Add memmem from glibc.
48234 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48236 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
48238 * modules/argmatch, modules/argp, modules/closeout, modules/error,
48239 modules/exclude, modules/getdate, modules/getline,
48240 modules/getndelim2, modules/getpass, modules/getpass-gnu,
48241 modules/getusershell, modules/linebuffer, modules/md5,
48242 modules/mountlist, modules/posixtm, modules/readtokens,
48243 modules/readutmp, modules/regex, modules/sha1,
48244 modules/version-etc, modules/yesno:
48245 Remove dependency on unlocked-io.
48247 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48249 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
48251 * m4/unlocked-io.m4: Add copyright notice.
48252 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
48254 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48256 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
48257 * lib/xmalloc.c (xmemdup): Likewise.
48258 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
48259 XFREE): Remove these long-obsolescent macros.
48260 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
48261 * lib/xstrdup.c: Remove.
48263 * lib/regex.c (re_comp): Cast gettext return value to char *,
48264 Problem reported by Martin Neitzel via Mark D. Baushke.
48266 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48268 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
48269 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
48270 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
48271 regex.c, sha1.c, version-etc.c, yesno.c:
48272 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
48273 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
48274 the includer's responsibility.
48276 Sync from coreutils.
48278 * lib/modechange.c (mode_compile): Don't decrement a pointer that
48279 points to the start of a string, as the C Standard says the
48280 resulting behavior is undefined.
48282 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
48283 simple -> simple_backups, numbered_existing ->
48284 numbered_existing_backups, numbered -> numbered_backups
48285 to avoid shadowing problems. All uses changed.
48286 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
48287 * lib/backupfile.c (check_extension, numbered_backup):
48288 Rename locals to avoid shadowing 'basename'.
48289 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
48292 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
48293 * lib/.cvsignore: Add getopt.h.
48295 2004-10-04 Bruno Haible <bruno@clisp.org>
48297 * modules/README: New file.
48298 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
48301 2004-10-02 Jim Meyering <jim@meyering.net>
48303 * lib/dirfd.h, getpagesize.h: Add copyright notice.
48305 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
48307 * modules/strsep: New file.
48309 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
48311 * m4/strsep.m4: New file.
48313 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
48315 * lib/strsep.h: New file.
48316 * lib/strsep.c: New file.
48318 2004-10-01 Simon Josefsson <jas@extundo.com>
48320 * lib/snprintf.c (snprintf): Handle size==0.
48322 2004-10-01 Simon Josefsson <jas@extundo.com>
48323 Bruno Haible <bruno@clisp.org>
48325 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
48326 (snprintf): Declare 'args'.
48328 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
48330 * lib/snprintf.c: Remove comments as to why each header is needed.
48332 2004-10-01 Bruno Haible <bruno@clisp.org>
48334 * MODULES.html.sh: Add strsep.
48336 2004-09-30 Simon Josefsson <jas@extundo.com>
48338 * modules/snprintf: New file.
48340 2004-09-30 Simon Josefsson <jas@extundo.com>
48342 * m4/snprintf.m4: New file.
48344 2004-09-30 Simon Josefsson <jas@extundo.com>
48346 * lib/snprintf.h, lib/snprintf.c: New files.
48348 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48350 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
48351 (hol_entry_help): Never translate an empty string.
48352 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
48353 * lib/argp.h (OPTION_NO_TRANS): New option.
48355 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
48357 * modules/argp (Maintainer): Replace Simon Josefsson
48358 by Sergey Poznyakoff.
48360 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
48362 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
48363 changes merged back into glibc.
48365 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
48367 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
48369 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
48371 * lib/xvasprintf.c: Include xalloc.h.
48372 (xvasprintf): Use xalloc_die, not xmalloc_die.
48374 2004-09-29 Bruno Haible <bruno@clisp.org>
48376 * modules/alloca-opt: New file, derived from modules/alloca.
48377 * modules/allocsa: Depend on alloca-opt instead of alloca.
48378 * modules/setenv: Likewise.
48379 * modules/vasnprintf: Likewise.
48380 * MODULES.html.sh: Add alloca-opt.
48382 2004-09-28 Simon Josefsson <jas@extundo.com>
48384 * gnulib-tool: New parameter --lgpl, to asseert that modules are
48385 LGPL, and to replace license template from GPL to LGPL.
48387 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
48389 * modules/dummy: Change license to LGPL.
48391 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
48393 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
48395 2004-09-24 Simon Josefsson <jas@extundo.com>
48397 * modules/minmax (License): Change from GPL to LGPL.
48399 2004-09-23 Simon Josefsson <jas@extundo.com>
48401 * gnulib-tool (--import): Typo.
48403 2004-09-23 Simon Josefsson <jas@extundo.com>
48405 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
48407 2004-09-22 Bruno Haible <bruno@clisp.org>
48409 * modules/*: Add 'License' field.
48410 * gnulib-tool: Accept --extract-license option.
48411 (func_get_license): New function.
48413 2004-09-21 Bruno Haible <bruno@clisp.org>
48415 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
48416 Reported by Simon Josefsson.
48418 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
48420 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
48421 gl_AC_TYPE_LONG_LONG.
48423 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
48425 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
48427 2004-09-18 Simon Josefsson <jas@extundo.com>
48428 and Paul Eggert <eggert@cs.ucla.edu>
48430 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
48431 calls with autoreconf. Define GL_LIB.
48433 2004-09-14 Karl Berry <karl@gnu.org>
48435 * config/srclist.txt: unsync setenv.c, sigh.
48437 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
48439 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
48440 Problem reported by Bruno Haible in:
48441 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
48443 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
48445 * config/srclist.txt: Comment out argp-pvh.c.
48447 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
48449 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
48450 in case some system header has #define'd it. Problem reported by
48451 Soeren D. Schulze in
48452 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
48454 2004-09-09 Karl Berry <karl@gnu.org>
48456 * regex.[ch]: delete from the root. These were supposed to be
48457 synced with emacs cvs, but this has not happened for about
48458 a year, and anyway nothing else uses emacs regex.[ch].
48459 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
48460 lib/regex[.ch] is untouched.
48462 2004-09-09 Bruno Haible <bruno@clisp.org>
48464 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
48466 2004-09-09 Bruno Haible <bruno@clisp.org>
48468 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
48470 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
48472 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
48474 * modules/xvasprintf: New file.
48475 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
48477 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
48479 * lib/xvasprintf.h: New file.
48480 * lib/xvasprintf.c: New file.
48481 * lib/xasprintf.c: New file.
48483 2004-09-08 Bruno Haible <bruno@clisp.org>
48485 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
48487 2004-09-08 Bruno Haible <bruno@clisp.org>
48489 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
48490 length is > INT_MAX.
48491 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
48494 2004-09-08 Bruno Haible <bruno@clisp.org>
48496 * lib/stdint_.h: New file, taken from GNU clisp.
48498 2004-09-08 Bruno Haible <bruno@clisp.org>
48499 Oskar Liljeblad <oskar@osk.mine.nu>
48501 * modules/stdint: New file.
48502 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
48504 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
48506 Import from coreutils.
48507 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
48508 strings on unbounded length. alloca's performance benefits aren't
48509 that important here.
48510 (V_STRDUP): Remove.
48511 (parse_with_separator): New function, with most of the internals
48512 of the old parse_user_spec. Allow user to omit both user and group,
48513 for compatibility with FreeBSD.
48514 Clone only the user name, not the entire spec.
48515 Do not set *uid, *gid unless entirely successful.
48516 Avoid memory leak in some failing cases.
48517 Fix regression for USER.GROUP reported by Dmitry V. Levin in
48518 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
48519 (parse_user_spec): Rewrite to use parse_with_separator.
48521 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
48523 * modules/userspec: Don't depend on alloca.
48525 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
48527 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
48529 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
48531 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
48532 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
48533 utimecmp, utimens, xnanosleep. Rename sha to sha1.
48535 2004-08-16 Simon Josefsson <jas@extundo.com>
48537 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
48538 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
48539 Add --dry-run for --import.
48540 Let user provided command line parameters override configure.ac
48543 2004-08-12 Simon Josefsson <jas@extundo.com>
48545 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
48546 as discussed with Paul Eggert in threads rooted at
48547 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
48549 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
48550 Before, the test was empty, and relied on ELIDE_CODE in source
48552 (gl_PREREQ_GETOPT): New macro.
48553 (gl_GETOPT): Use them.
48555 2004-08-12 Simon Josefsson <jas@extundo.com>
48557 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
48558 * lib/getopt_.h: Renamed from getopt.h.
48560 2004-08-12 Simon Josefsson <jas@extundo.com>
48562 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
48563 Change default library name from libfoo to libgnu.
48564 Now, if you have a configure.ac that says:
48567 gl_MODULES(error getopt etcetera)
48569 you can import all you need by running:
48570 ../gnulib/gnulib-tool --import
48572 * modules/getopt (Files): Rename getopt.h to getopt_.h.
48573 (Makefile.am): Rewrite, use logic from argz.
48574 (Include): Use <getopt.h> instead of "getopt.h".
48576 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48578 * modules/argp (Files): Add m4/unlocked-io.m4.
48579 (Depends-on): Add extensions.
48581 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48583 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
48584 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
48585 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
48586 Check for program_invocation_name, program_invocation_short_name,
48587 flockfile, funlockfile, features.h, _getopt_long_only_r.
48589 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48591 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
48592 its complicated substitute.
48593 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
48594 and program_invocation_name.
48595 (__argp_basename) [!_LIBC]: Remove; the only use was
48596 replaced by its body.
48597 (__argp_short_program_name): Change condition from
48598 !defined __argp_short_program_name to
48599 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
48600 to match argp-namefrob.h.
48601 (__argp_failure): Don't assume strerror_r returns char *.
48602 * lib/argp-parse.c (N_): Define unconditionally.
48603 (argp_default_options): Fill out initializers with 0 to avoid
48606 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48608 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
48611 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
48613 Merge from coreutils.
48615 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
48617 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
48618 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
48620 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
48622 Merge from coreutils.
48624 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
48625 wmemchr or wmemcpy. Problem reported by Robert Dahlem
48626 for Reliant Unix 5.43.
48628 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
48629 (union fooround): Use uintmax_t, not long int.
48630 The rest is a merge from libc:
48631 [defined _LIBC]: Include <shlib-compat.h>.
48632 (_obstack) [defined _LIBC]: Remove after 2.3.4.
48634 * lib/settime.c (settime): Recode to avoid warning with
48637 * lib/strverscmp.c: Convert to UTF-8.
48639 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
48641 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48644 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
48646 * modules/xalloc-die: New file.
48647 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
48649 * modules/md5 (Files): Add m4/uint32_t.m4.
48650 * modules/sha1: Renamed from modules/sha.
48652 Rename lib/sha.h to lib/sha1.h.
48653 Rename lib/sha.c to lib/sha1.c.
48654 Rename m4/sha.m4 to m4/sha1.m4.
48655 (lib_SOURCES): Likewise.
48656 (configure.ac): Rename gl_SHA to gl_SHA1.
48657 (Include): sha.h -> sha1.h.
48659 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
48661 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
48662 * m4/sha1.m4: Renamed from sha.m4.
48663 (gl_SHA1): Renamed from gl_SHA. All uses changed.
48665 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
48667 * lib/obstack.h (obstack_empty_p):
48668 Don't assume that chunk->contents is suitably aligned.
48669 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
48670 Likewise. Problem reported by Benno in
48671 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
48673 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
48674 readable. This could be improved further but it'd take some work.
48676 2004-08-08 Simon Josefsson <jas@extundo.com>
48678 * modules/xgethostname (Depends-on): Remove exit and error (not
48681 * modules/getpass-gnu: Add getpass.h.
48682 (Depends-on): Add stdbool.
48683 * modules/getpass: Add getpass.h.
48685 2004-08-08 Simon Josefsson <jas@extundo.com>
48687 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
48688 Check getpass declaration.
48690 2004-08-08 Simon Josefsson <jas@extundo.com>
48692 * lib/xgethostname.c: Don't include error.h (not used).
48694 * lib/getpass.h: Add.
48695 * lib/getpass.c: Include getpass.h first.
48697 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
48699 * lib/xalloc-die.c: New file.
48700 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
48702 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
48703 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
48705 (_, N_, xalloc_die): Move to xalloc-die.c.
48706 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
48707 so that we needn't mess with xalloc_msg_memory_exhausted.
48709 * lib/sha1.h: Renamed from sha.h.
48710 (SHA1_H): Renamed from _SHA_H.
48711 (sha1_ctx): Renamed from sha_ctx.
48712 (sha1_init_ctx): Renamed from sha_init_ctx.
48713 (sha1_process_block): Renamed from sha_process_block.
48714 (sha1_process_bytes): Renamed from sha_process_bytes.
48715 (sha1_finish_ctx): Renamed from sha_finish_ctx.
48716 (sha1_read_ctx): Renamed from sha_read_ctx.
48717 (sha1_stream): Renamed from sha_stream.
48718 (sha1_buffer): Renamed from sha_buffer.
48719 * lib/sha1.c: Likewise; renamed from sha.c.
48720 Do not include <sys/types.h>.
48721 Include <stddef.h> rather than <stdlib.h>.
48723 2004-08-08 Bruno Haible <bruno@clisp.org>
48725 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
48726 FILESYSTEM_PREFIX_LEN.
48727 * lib/progreloc.c: Likewise.
48728 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
48730 2004-08-06 Simon Josefsson <jas@extundo.com>
48732 * modules/progname (Depends-on): Don't depend on stdbool.
48734 2004-08-06 Simon Josefsson <jas@extundo.com>
48736 * modules/getsubopt: New file.
48737 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48740 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
48742 More merge from coreutils.
48744 * m4/utimens.m4, m4/utimecmp.m4: New files.
48745 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
48746 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
48747 prereq.m4, sha.m4: Import changes from coreutils.
48749 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
48751 More merge from coreutils.
48752 * modules/raise, modules/readtokens0, modules/utimens:
48753 * modules/utimecmp, module/xnanosleep: New files.
48754 * modules/strftime: Add lib/strftime.h.
48755 Change include from <time.h> to "strftime.h".
48756 * modules/yesno: Add lib/yesno.h.
48757 * modules/backupfile: Remove lib/addext.c.
48758 * modules/euidaccess: Add stat-macros.h.
48759 * modules/canonicalize, modules/euidaccess,
48760 modules/filemode, modules/lchown, modules/makepath,
48761 modules/rmdir, modules/stat: Likewise.
48763 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
48766 * lib/argp-help.c (make_hol, hol_append): Don't assume that
48767 SIZE_MAX is a valid preprocessor constant.
48768 (__argp_basename): Change from "#ifndef _LIBC"
48769 to "#ifndef __argp_short_program_name", so that
48770 we don't compile these functions for tar.
48772 More merges from coreutils.
48773 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
48774 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
48775 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
48776 * lib/addext.c: Remove; no longer needed.
48777 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
48778 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
48779 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
48780 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
48781 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
48782 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
48783 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
48784 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
48785 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
48786 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
48787 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
48788 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
48789 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
48790 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
48791 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
48792 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
48793 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
48794 Import changes from coreutils.
48796 2004-08-05 Simon Josefsson <jas@extundo.com>
48798 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
48800 2004-08-05 Simon Josefsson <jas@extundo.com>
48802 * m4/getsubopt.m4: New file.
48804 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
48806 Merge from coreutils.
48808 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
48809 * m4/getcwd-path-max.m4: New files.
48811 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
48812 FILESYSTEM_PREFIX_LEN ->
48813 FILE_SYSTEM_PREFIX_LEN.
48814 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
48815 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
48816 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
48817 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
48819 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
48820 prerequisite modules now handle the DOS stuff.
48821 Don't check for unistd.h.
48823 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
48825 Merge from coreutils.
48827 * lib/.gdb-history: Remove; this doesn't belong here.
48829 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
48830 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
48831 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
48832 * lib/getcwd.c: New files.
48834 * lib/dirname.h: Include <stdbool.h>.
48835 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
48836 for consistency with POSIX terminology. All uses changed.
48837 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
48838 (strip_trailing_slashes): Use bool for booleans.
48839 * lib/stripslash.c (strip_trailing_slashes): Likewise.
48841 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
48842 sometimes returns a positive errno value even when it succeeds.
48843 (print_errno_message) [!LIBC]: Fall back on strerror if
48844 __strerror_r fails.
48846 * lib/path-concat.c (mempcpy): Don't define if a system header defines
48847 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
48848 (longest_relative_suffix): New function.
48849 (path_concat): Use it. Assume first argument is not NULL.
48850 Port to DOS. Omit redundant separators.
48851 Report an error instead of returning NULL.
48852 Use mempcpy instead of memcpy.
48853 (xpath_concat): Remove: not declared or used.
48855 * lib/same.h: Include <stdbool.h>
48856 (same_name): Return bool, not int.
48857 * lib/same.c (same_name): Likewise.
48858 (errno): Don't declare; we assume C89 or better now.
48860 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
48861 if not already defined.
48863 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
48864 * lib/dup-safer.c (errno): Likewise.
48866 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
48868 Merge from coreutils.
48869 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
48870 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
48871 * modules/path-concat: Don't depend on strdup.
48873 2004-08-03 Simon Josefsson <jas@extundo.com>
48875 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
48876 * lib/progname.h: Don't include stdbool.h.
48878 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
48880 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
48881 * MODULES.html.sh (func_all_modules): Remove fatal.
48883 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
48885 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
48887 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
48889 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
48892 2004-08-02 Simon Josefsson <jas@extundo.com>
48894 * lib/getsubopt.h: New file, with comments from Bruno Haible.
48895 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
48896 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
48898 2004-08-01 Simon Josefsson <jas@extundo.com>
48900 * lib/xgetdomainname.c: Include stdlib.h, for free().
48902 2004-07-19 Bruno Haible <bruno@clisp.org>
48904 * MODULES.html.sh (func_all_modules): Add dummy.
48906 2004-07-16 Simon Josefsson <jas@extundo.com>
48908 * modules/dummy: New file.
48910 2004-07-16 Simon Josefsson <jas@extundo.com>
48912 * lib/dummy.c: New file.
48914 2004-07-16 Bruno Haible <bruno@clisp.org>
48916 * lib/backupfile.h: Add extern "C" for C++.
48917 * lib/closeout.h: Likewise.
48918 * lib/copy-file.h: Likewise.
48919 * lib/findprog.h: Likewise.
48920 * lib/full-write.h: Likewise.
48921 * lib/pathname.h: Likewise.
48922 * lib/progname.h: Likewise.
48923 * lib/stpcpy.h: Likewise.
48924 * lib/stpncpy.h: Likewise.
48925 * lib/strcase.h: Likewise.
48926 * lib/strstr.h: Likewise.
48927 * lib/xalloc.h: Likewise.
48929 * lib/mbswidth.h: Add extern "C" for C++.
48930 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
48932 2004-07-13 Robert Millan <robertmh@gnu.org>
48934 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
48936 2004-07-09 Simon Josefsson <jas@extundo.com>
48938 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
48939 failed without this.)
48941 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
48943 * modules/chown (Files): Add lib/fchown-stub.c, since
48944 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
48946 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
48948 * lib/fchown-stub.c: New file.
48950 2004-06-24 Jim Meyering <jim@meyering.net>
48952 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
48954 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
48956 * modules/argz: Omit "#include".
48958 * MODULES.html.sh (func_all_modules): Add calloc, to match
48959 2004-06-01 addition of calloc module.
48961 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
48963 * m4/argz.m4: New file, which is autoupdated from libtool.
48965 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
48967 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
48970 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
48972 * config/srclist-update: Don't insist on "USA." before the
48973 close-comment, as libtool omits the period and puts the */ on a
48975 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
48976 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
48978 2004-06-22 Gary V. Vaughan <gary@gnu.org>
48980 * modules/argz: New file.
48981 * MODULES.html.sh (func_all_modules): Add argz.
48983 2004-06-12 Jim Meyering <jim@meyering.net>
48984 and Paul Eggert <eggert@cs.ucla.edu>
48986 * modules/hash (Files): Add lib/xalloc.h.
48987 * modules/pipe (Depends-on): Add wait-process.
48988 * modules/stat (Depends-on): Add xalloc.
48989 * modules/userspec (Files): Add lib/userspec.h.
48992 Upgrade from gettext-0.13.
48993 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
48994 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
48995 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
48997 2004-06-10 Jim Meyering <jim@meyering.net>
48999 * lib/calloc.c: New file.
49001 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
49003 * lib/getdate.y (yylex): Allow space between sign and number.
49004 Problem reported by Dan Jacobson.
49006 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
49008 Merge from coreutils CVS.
49010 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
49011 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
49012 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
49013 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
49014 xstrtol.m4: Fix copyright date and/or serial number.
49016 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
49017 See if we need an fchown replacement.
49018 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
49019 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
49020 and use the replacement function if we detect either defect.
49022 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
49025 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
49026 and Jim Meyering <jim@meyering.net>
49028 Merge from coreutils CVS.
49030 * lib/stat-macros.h: New file, with contents from file-type.h
49031 and coreutils' system.h.
49032 * lib/file-type.c: Include "stat-macros.h".
49033 * lib/file-type.h (file_type): Move all macro definitions to new file,
49036 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
49037 Wrap old code with this conditional.
49038 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
49039 function that does not dereference symlinks.
49040 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
49042 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
49043 dependency problems.
49044 (xreadlink): Accept new arg SIZE, for efficiency.
49045 All decls and uses changed.
49046 * lib/xreadlink.h: Include <stddef.h>, for size_t.
49048 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
49049 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
49051 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
49054 2004-06-01 Jim Meyering <jim@meyering.net>
49056 * m4/calloc.m4: New file.
49058 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
49060 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
49061 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
49062 Also, fix a typo in a diagnostic.
49064 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
49066 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
49067 or AC_FUNC_REALLOC.
49069 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
49071 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
49072 macros to be defined.
49073 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
49074 the allocator returns NULL because the requested size is zero.
49076 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
49078 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
49079 var. Add comment explaining why libc still defines it. This
49080 merges the following patch from glibc:
49081 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
49083 2004-05-20 Andreas Schwab <schwab@suse.de>
49085 * m4/free.m4: Replace free if it not known to work, not the other
49088 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
49090 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
49091 present in glibc since revision 1.1 of this file.
49092 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
49093 obstack_alignment_mask, obstack_alloc, obstack_base,
49094 obstack_blank, obstack_blank_fast, obstack_chunk_size,
49095 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
49096 obstack_grow0, obstack_init, obstack_int_grow,
49097 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
49098 obstack_next_free, obstack_object_size, obstack_ptr_grow,
49099 obstack_ptr_grow_fast, obstack_room): Remove declarations of
49100 nonexistent functions.
49102 2004-05-18 Karl Berry <karl@gnu.org>
49104 * config/srclist.txt: break link for vasnprintf.c.
49106 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
49108 Port obstack to the AS/400, where pointers are 16 bytes wide and
49109 you cannot cast an integer to a valid pointer. This patch is
49110 currently waiting to be integrated into glibc; see
49111 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
49113 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
49114 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
49115 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
49116 (struct obstack): temp member is now a union of a pointer and
49117 an integer, instead of an integer. All integer uses changed.
49118 This does not affect the physical layout of struct obstack,
49119 except on hosts (like the AS/400) where the size or alignment of
49120 void * is greater than that of ptrdiff_t.
49121 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
49122 __STDC__)]: Store temporary in pointer member of union, not
49124 * lib/obstack.c: Include <stddef.h>, for offsetof.
49125 (struct fooalign): Remove; it doesn't need a name.
49126 (union fooround): Change double to long double, and add void *.
49127 (DEFAULT_ALIGNMENT): Use offsetof to compute.
49128 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
49129 not a macro. Hence the values are always int; so remove all
49130 casts-to-int in uses.
49132 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
49134 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
49135 we can get this patch merged into glibc.
49137 2004-05-17 Derek R. Price <derek@ximbiot.com>
49138 Paul Eggert <eggert@cs.ucla.edu>
49140 * m4/argp: Depend on alloca.
49142 2004-05-17 Derek R. Price <derek@ximbiot.com>
49143 Paul Eggert <eggert@cs.ucla.edu>
49145 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
49148 2004-05-17 Bruno Haible <bruno@clisp.org>
49150 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
49151 precision that consists of a '.' followed by an empty digit string.
49152 Patch by Tor Lillqvist <tml@iki.fi>.
49154 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
49156 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
49157 for backward compatibility with older code. We need our own
49158 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
49159 it under some other name, and our alloca.h will define it.
49161 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
49162 Derek Price <derek@ximbiot.com>
49164 * lib/alloca.c: Include <alloca.h>, to get our interface.
49165 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
49166 include <alloca.h> first. Use C89 prototype for alloca; this
49167 requires including <stddef.h> for size_t. Use extern "C" if C++.
49168 Use #elif for simplicity, since we can assume C89 now.
49169 Don't try to source the system alloca.h since it will not be found
49170 and to prevent recursively including its replacement.
49171 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
49172 * lib/regex.c: Likewise.
49174 2004-05-16 Derek Price <derek@ximbiot.com>
49175 Paul Eggert <eggert@cs.ucla.edu>
49177 getline cleanup. This changes the getndelim2 API: both order of
49178 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
49181 * lib/getline.c: Don't include stddef.h or stdio.h, since our
49182 interface does that.
49183 (getline): Always use getdelim, so that we don't have two
49184 copies of this code.
49185 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
49187 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
49188 (GETNDELIM2_MAXIMUM): New macro.
49189 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
49190 instead of the old practice of delim2==0. All callers changed.
49191 Return -1 on overflow, instead of returning junk.
49192 Do not set *linesize unless allocation succeeds.
49193 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
49194 that we include sys/types.h.
49195 * lib/getnline.h: Likewise.
49196 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
49197 (getndelim2): Reorder arguments.
49198 * lib/getnline.c (getnline, getndelim):
49199 Don't discard the NMAX argument.
49200 (getnline): Invoke getndelim, to avoid code duplication.
49201 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
49202 of (size_t) -1 by callers of the getnline family.
49204 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
49206 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
49207 Check for gettimeofday.
49208 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
49209 Check for settimeofday, stime.
49211 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
49213 * lib/nanosleep.c (suspended): Change its type from int to
49214 sig_atomic_t volatile.
49215 (first_call): Make it private to rpl_nanosleep, and have it
49216 be zero initially as that's a bit faster.
49217 (my_usleep): Round up fractional times instead of truncating them,
49218 as this is the usual meaning for 'sleep'.
49220 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
49222 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
49223 (ENOSYS): Define if not defined.
49224 (settime): Fall back on stime if it exists and settimeofday fails.
49225 But don't bother with fallbacks if a method fails with errno == EPERM.
49227 2004-05-11 Jim Meyering <jim@meyering.net>
49229 Prior to this change, the save_cwd caller required read access to the
49230 current directory on most systems (ones with the fchdir function).
49232 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
49233 fails, try write-only, and finally, resort to using xgetcwd.
49235 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
49237 * lib/obstack.c, obstack.h: Import changes from libc.
49239 2004-04-28 Bruno Haible <bruno@clisp.org>
49241 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
49242 also implicitly appends .exe to executables.
49243 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
49244 accepts Windows pathnames.
49245 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
49246 Treat Cygwin like Windows, since it now accepts Windows pathnames.
49247 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
49248 Treat Cygwin like Windows, since it now accepts Windows pathnames.
49249 Reported by Derek Robert Price <derek@ximbiot.com>.
49251 2004-04-21 Karl Berry <karl@gnu.org>
49253 * config/srclist.txt (localcharset.c): break sync.
49255 2004-04-20 Paul Eggert <eggert@twinsun.com>
49257 * m4/host-os.m4: Add a copyright notice.
49259 2004-04-20 Jim Meyering <jim@meyering.net>
49261 Change UTILS_ to gl_ in AC_DEFINE'd names.
49262 Change utils_- and jm_-prefixed variables, too.
49263 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
49264 UTILS_FUNC_MKDIR_TRAILING_SLASH.
49265 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
49267 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
49268 Don't emit trailing blanks.
49269 Also rename jm_-prefixed variables to have gl_ prefix.
49271 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
49272 Also rename jm_-prefixed variables to have gl_ prefix.
49274 * m4/jm-macros.m4: Reflect the renamings.
49275 * m4/prereq.m4: Likewise.
49277 2004-04-20 Jim Meyering <jim@meyering.net>
49279 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
49282 2004-04-20 Jim Meyering <jim@meyering.net>
49283 Bruno Haible <bruno@clisp.org>
49285 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
49286 memory when realloc fails.
49288 2004-04-19 Jim Meyering <jim@meyering.net>
49290 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
49291 now that readutmp.c may call `free (0)'.
49293 2004-04-19 Bruno Haible <bruno@clisp.org>
49295 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
49296 * m4/inttypes_h.m4: Likewise.
49297 * m4/stdint_h.m4: Likewise.
49298 * m4/intmax_t.m4: Likewise.
49299 * m4/uintmax_t.m4: Likewise.
49301 2004-04-18 Jim Meyering <jim@meyering.net>
49303 * m4/prereq.m4: Don't forbid jm_ prefix.
49305 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
49306 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
49307 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
49308 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
49309 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
49310 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
49311 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
49312 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
49313 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
49314 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
49315 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
49316 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
49317 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
49318 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
49319 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
49320 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
49321 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
49322 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
49323 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
49325 2004-04-18 Jim Meyering <jim@meyering.net>
49327 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
49328 failure, don't leak memory and do call END_UTMP_ENT.
49330 2004-04-16 Jim Meyering <jim@meyering.net>
49332 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
49333 coreutils' stat program.
49334 (gl_PREREQ): Don't require jm_PREREQ_STAT.
49336 2004-04-11 Paul Eggert <eggert@twinsun.com>
49338 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
49340 (CHAR_BIT): Remove, since we assume C89.
49341 Include <stdint.h> if available, as per current Autoconf CVS advice.
49343 2004-03-31 Jim Meyering <jim@meyering.net>
49345 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
49346 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
49347 * m4/xalloc.m4: Likewise.
49349 2004-03-30 Paul Eggert <eggert@twinsun.com>
49351 Merge from coreutils.
49353 * m4/inttostr.m4: New file.
49354 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
49355 Require AM_STDBOOL_H and gl_TIMESPEC instead.
49356 Require gl_CLOCK_TIME.
49357 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
49359 2004-03-30 Paul Eggert <eggert@twinsun.com>
49361 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
49362 not bool, to be more consistent with Unix conventions.
49363 Suggested by Bruno Haible.
49365 Merge from coreutils.
49367 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
49368 * lib/umaxtostr.c: New files.
49370 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
49371 the usual <time.h> dance.
49372 (get_date): Change signature to support fractional time stamps.
49373 All callers changed.
49374 * lib/getdate.y: Include "getdate.h" first, as we can now
49375 assume C89 and don't need to worry about 'const'.
49376 Similarly, include "unlocked-io.h" near start, not in middle.
49377 Include <limits.h>.
49378 (textint.value): Use long int rather than int.
49379 (textint.digits): Use size_t rather than int.
49380 (BILLION, LOG10_BILLION): New constants.
49381 (parser_control): New member rel_ns. Members day_ordinal,
49382 time_zone, month, day, hour, minutes, rel_year, rel_month,
49383 rel_day, rel_hour, rel_minutes, rel_seconds
49384 are now long int, not int. Member seconds is now struct timespec,
49385 not int. New member timespec_seen. Members dates_seen, days_seen,
49386 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
49388 (%union.intval): Now long int, not int.
49389 New member timespec.
49390 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
49391 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
49392 (spec): Now is a timespec or an item list.
49393 (timespec, items): New nonterminals.
49394 (time, rel, relunit, number, get_date):
49395 Add support for fractional seconds.
49396 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
49397 (gmtime, localtime, mktime): Remove decls; not needed with C89.
49398 (to_hour): First arg is now long int, not int.
49399 (to_year): Returns long int, not int.
49400 Don't treat year -70 like 70.
49401 (tm_diff): Returns long int, not int.
49402 (lookup_word): Use bool instead of int when appropriate.
49403 (yylex): Use size_t for count, not int.
49404 Detect overflow when parsing large integer constants.
49405 Add support for fractions.
49406 (get_date): Make pointers 'const' if possible.
49407 Use more-portable code to detect integer overflow.
49408 (main) [TEST]: Adjust to above changes. Test for localtime failure.
49409 Don't use ctime; it's not reliable if the year has >4 digits.
49411 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
49412 This is for compatibility with BSD.
49414 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
49415 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
49416 From coreutils' system.h.
49418 * lib/userspec.c: Don't include "posixver.h".
49419 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
49420 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
49421 compatible extension. Simplify code by removing a boolean int
49422 that was always nonzero if a string was nonnull.
49424 2004-03-30 Jim Meyering <jim@meyering.net>
49426 Merge from coreutils.
49428 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
49429 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
49430 on some systems one must include <grp.h> before it.
49431 Reported by Christian Krackowizer.
49433 2004-03-30 Jim Meyering <jim@meyering.net>
49435 Merge from coreutils.
49437 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
49439 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
49440 an empty input stream.
49442 * lib/readtokens.c: Include <stdbool.h>.
49443 (readtoken): Use `size_t' rather than int/long.
49444 All callers adjusted.
49445 Use `bool' rather than `int' where appropriate.
49446 Use memset rather than an explicit loop.
49447 Use x2nrealloc rather than xrealloc.
49448 Allow the use of `\0' as a delimiter.
49449 (readtokens): Likewise.
49450 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
49452 2004-03-30 Jim Meyering <jim@meyering.net>
49454 * m4/realloc.m4: Remove file, since now it does no more than
49455 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
49456 the `configure.ac' section of module/realloc.
49457 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
49459 2004-03-30 Bruno Haible <bruno@clisp.org>
49461 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
49464 2004-03-29 Paul Eggert <eggert@twinsun.com>
49466 Merge changes to getloadavg.c from coreutils and Emacs.
49468 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
49469 Define to an expression, not to the empty string.
49470 Include cloexec.h and xalloc.h.
49471 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
49472 Use set_cloexec_flag rather than rolling our own.
49473 * lib/cloexec.c, lib/cloexec.h: New files.
49475 2004-03-29 Paul Eggert <eggert@twinsun.com>
49477 * m4/cloexec.m4: New file.
49479 2004-03-18 Paul Eggert <eggert@twinsun.com>
49481 * lib/getopt.h: Sync with libc CVS.
49483 2004-03-18 Paul Eggert <eggert@twinsun.com>
49484 Bruno Haible <bruno@clisp.org>
49486 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
49489 2004-03-18 Paul Eggert <eggert@twinsun.com>
49490 Bruno Haible <bruno@clisp.org>
49492 * lib/mbswidth.h: Include <wchar.h> only if
49493 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
49495 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
49497 2004-03-09 Paul Eggert <eggert@twinsun.com>
49499 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
49500 Sync with libc CVS.
49501 * lib/getopt_int.h: New file, also synced from libc.
49503 2004-03-09 Paul Eggert <eggert@twinsun.com>
49505 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
49506 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
49507 Bring back getopt.c, getopt.h, getopt1.c.
49509 2004-03-07 Paul Eggert <eggert@twinsun.com>
49511 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
49512 All uses changed. Check for sa_sigaction member; this fixes
49513 a bug first reported by Jason Andrade in
49514 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49516 2004-03-07 Paul Eggert <eggert@twinsun.com>
49518 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
49519 '#if' expressions. Unlike the code it replaces, it does not
49520 depend on (defined _SC_PAGESIZE). However, it does depend on
49521 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
49522 first reported by Jason Andrade in
49523 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49525 2004-02-25 Simon Josefsson <jas@extundo.com>
49527 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
49529 2004-02-25 Simon Josefsson <jas@extundo.com>
49531 * lib/strdup.h: New file.
49532 * lib/strdup.c: Include it.
49533 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
49534 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
49536 2004-02-23 Karl Berry <karl@gnu.org>
49538 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
49539 (from fencepost.gnu.org:/gd/gnuorg).
49541 2004-02-23 Karl Berry <karl@gnu.org>
49543 * config/srclistvars.sh (GNUORG) [karl]: redefine.
49544 * config/srclist.txt: add maintain/standards documents.
49546 2004-02-18 Bruno Haible <bruno@clisp.org>
49548 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
49549 Reported by Derek Robert Price <derek@ximbiot.com>.
49551 2004-02-16 Karl Berry <karl@gnu.org>
49553 * config/mkinstalldirs, install-sh: update from automake.
49555 2004-02-06 Karl Berry <karl@gnu.org>
49557 * m4/po.m4: update from gettext 0.14.1.
49559 2004-02-06 Karl Berry <karl@gnu.org>
49561 * lib/config.charset: update from gettext 0.14.1.
49563 2004-02-05 Paul Eggert <eggert@twinsun.com>
49565 Add comments and code, prompted by suggestions from Bruno Haible
49567 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
49568 describing the enum quoting_style values.
49569 * lib/quotearg.c (quotearg_alloc): New function.
49570 (quotearg_buffer_restyled): Treat lone { and } as special.
49571 Treat = as special. Work around bug with older shells
49572 that "see" a '\' that is really the 2nd byte of a multibyte char.
49573 Quote empty string with shell_quoting_style.
49575 2004-02-03 Bruno Haible <bruno@clisp.org>
49577 * m4/pipe.m4: New file, from GNU gettext.
49579 2004-02-03 Bruno Haible <bruno@clisp.org>
49581 * lib/pipe.h: New file, from GNU gettext.
49582 * lib/pipe.c: New file, from GNU gettext.
49584 2004-01-27 Bruno Haible <bruno@clisp.org>
49586 * m4/execute.m4: New file, from GNU gettext.
49588 2004-01-27 Bruno Haible <bruno@clisp.org>
49590 * lib/execute.h: New file, from GNU gettext.
49591 * lib/execute.c: New file, from GNU gettext.
49592 * lib/w32spawn.h: New file, from GNU gettext.
49594 2004-01-24 Paul Eggert <eggert@twinsun.com>
49596 Merge from diffutils.
49598 * lib/file-type.c (file_type): Add typed memory objects.
49599 * lib/file-type.h (S_TYPEISTMO): New macro.
49601 * lib/c-stack.h (c_stack_action): Remove argv argument.
49602 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
49603 (die): Don't calculate message unless segv_action returns.
49604 (get_stack_location, min_address_from_argv, max_address_from_argv,
49605 volatile stack_base, volatile_stack_size): Remove.
49606 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
49607 that every segmentation violation is a stack overflow. (Ouch!)
49608 See Debian bug 136249 (still outstanding) for more info about why
49609 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
49611 2004-01-24 Paul Eggert <eggert@twinsun.com>
49613 Exit-status fix from coreutils.
49615 Use exit_failure consistently in place of EXIT_FAILURE,
49616 so that program exit statuses are consistent on failure.
49618 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
49619 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
49620 * lib/argmatch.h: Comment fix to match the above.
49621 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
49622 Now a macro referring to exit_failure, instead of a separate
49623 variable. Include "exitfail.h" to get it.
49624 * lib/xstrtol.h: Include "exitfail.h".
49625 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
49627 * lib/long-options.c (parse_long_options): Use prototype
49628 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
49631 2004-01-21 Jim Meyering <jim@meyering.net>
49633 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
49634 so as not to conflict with a different-sized __mktime_internal
49635 function in GNU libc.
49636 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
49637 Problem building statically-linked `ls' reported by Michael Brunnbauer.
49639 2004-01-20 Karl Berry <karl@gnu.org>
49641 * config/config.guess: update from config.
49643 * config/srclistvars.sh: GNUWWWLICENSES for karl.
49645 2004-01-20 Bruno Haible <bruno@clisp.org>
49647 Safer stack allocation.
49648 * lib/setenv.c: Include allocsa.h.
49649 (alloca): Remove fallback definition.
49650 (freea): Remove macro.
49651 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
49654 2004-01-20 Bruno Haible <bruno@clisp.org>
49656 * m4/eealloc.m4: New file, from GNU gettext.
49658 2004-01-20 Bruno Haible <bruno@clisp.org>
49660 * m4/allocsa.m4: New file, from GNU gettext.
49662 2004-01-20 Bruno Haible <bruno@clisp.org>
49664 * lib/xallocsa.h: New file, from GNU gettext.
49665 * lib/xallocsa.c: New file, from GNU gettext.
49667 2004-01-20 Bruno Haible <bruno@clisp.org>
49669 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
49671 2004-01-20 Bruno Haible <bruno@clisp.org>
49673 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
49674 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
49677 2004-01-20 Bruno Haible <bruno@clisp.org>
49679 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
49682 2004-01-20 Bruno Haible <bruno@clisp.org>
49684 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
49686 2004-01-20 Bruno Haible <bruno@clisp.org>
49688 * lib/eealloc.h: New file.
49690 2004-01-20 Bruno Haible <bruno@clisp.org>
49692 * lib/binary-io.h: Avoid warnings on Cygwin.
49694 2004-01-20 Bruno Haible <bruno@clisp.org>
49696 * lib/allocsa.h: New file, from GNU gettext.
49697 * lib/allocsa.c: New file, from GNU gettext.
49699 2004-01-18 Karl Berry <karl@gnu.org>
49701 * doc/gpl.texi, doc/lgpl.texi: new files.
49703 2004-01-18 Karl Berry <karl@gnu.org>
49705 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
49706 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
49708 2004-01-15 Paul Eggert <eggert@twinsun.com>
49710 Merge from coreutils.
49712 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
49713 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
49714 (gl_DEFAULT_POSIX2_VERSION): Move
49715 the documentation from 'configure' into 'config.hin',
49716 so that 'configure --help' isn't burdened by it and
49717 we don't have to worry about its formatting there.
49718 Reword the documentation so that it's more succinct
49719 and can be run together into a single paragraph.
49720 * m4/same.m4 (gl_SAME): Check for pathconf.
49722 2004-01-15 Paul Eggert <eggert@twinsun.com>
49724 Merge from coreutils.
49726 * lib/posixver.c: Include posixver.h.
49728 * lib/same.c: Include <stdbool.h>, <limits.h>.
49729 (_POSIX_NAME_MAX): Define if not defined.
49731 (same_name): If file names are silently truncated, report
49732 that the file names are the same if they are the same after
49733 the silent truncation.
49735 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
49736 conversion function.
49737 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
49738 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
49741 2004-01-15 Jim Meyering <jim@meyering.net>
49743 Merge from coreutils.
49745 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
49746 if no library is required.
49747 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
49748 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
49749 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
49750 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
49751 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
49752 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
49753 value, $ac_cv_search_crypt, if it's "none required".
49754 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
49755 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
49756 not gl_FUNC_GETLOADAVG.
49757 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
49758 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
49760 2004-01-15 Jim Meyering <jim@meyering.net>
49762 Merge from coreutils.
49764 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
49765 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
49766 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
49768 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
49769 optional configure-time default.
49771 * lib/version-etc.c (version_etc_copyright): Update copyright date.
49773 * lib/xreadlink.c (xreadlink): Correct outdated comment.
49775 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
49777 Merge from coreutils.
49779 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
49780 value, $ac_cv_search_nanosleep, if it's "none required".
49782 2004-01-14 Paul Eggert <eggert@twinsun.com>
49784 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
49785 with like-named macro in fnmatch.c.
49786 (EXT): Use an internal constant instead.
49788 Merge fnmatch patches from glibc.
49789 * lib/fnmatch.c (mbsinit): Remove define.
49790 Add libc_hidden_ver (__fnmatch, fnmatch).
49791 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
49792 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
49794 2004-01-14 Karl Berry <karl@gnu.org>
49796 * config/install-sh: update from automake.
49798 2004-01-13 Karl Berry <karl@gnu.org>
49800 * config/install-sh: update from automake.
49802 2004-01-09 Karl Berry <karl@gnu.org>
49804 * config/install-sh: update from automake.
49806 2004-01-05 Karl Berry <karl@gnu.org>
49808 * config/config.{sub,guess}: update from config.
49810 2003-12-31 Karl Berry <karl@gnu.org>
49812 * config/depcomp: update from automake.
49814 2003-12-14 Karl Berry <karl@gnu.org>
49816 * lib/config.charset: update from gettext-runtime.
49818 2003-12-03 Paul Eggert <eggert@twinsun.com>
49820 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
49821 Bug reported by Alfred M. Szmidt.
49823 2003-12-03 Bruno Haible <bruno@clisp.org>
49825 * m4/gettext.m4: Upgrade from gettext-0.13.
49826 * m4/po.m4: Upgrade from gettext-0.13.
49827 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
49828 * m4/intmax.m4: New file, from gettext-0.13.
49829 * m4/printf-posix.m4: New file, from gettext-0.13.
49831 2003-11-29 Karl Berry <karl@gnu.org>
49833 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
49835 2003-11-25 Paul Eggert <eggert@twinsun.com>
49836 Bruno Haible <bruno@clisp.org>
49838 * lib/printf-parse.h: Don't include sys/types.h.
49839 (ARG_NONE): New macro.
49840 (char_directive): Change type of *arg_index fields to size_t.
49841 * lib/printf-parse.c: Don't include sys/types.h.
49842 (SSIZE_MAX): Remove macro.
49843 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
49844 Remove unnecessary overflow check.
49845 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
49848 2003-11-25 Bruno Haible <bruno@clisp.org>
49850 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
49852 2003-11-25 Bruno Haible <bruno@clisp.org>
49854 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
49857 2003-11-24 Paul Eggert <eggert@twinsun.com>
49859 * modules/alloca: Remove dependency on xalloc.
49861 2003-11-24 Paul Eggert <eggert@twinsun.com>
49863 * lib/alloca.c: Remove dependency on xalloc module.
49864 (xalloc_die): Remove.
49865 (memory_full) [!defined emacs]: New macro.
49866 [!defined emacs]: Don't include xalloc.h.
49867 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
49868 address arithmetic overflows. Change datatypes a bit to avoid
49871 2003-11-22 Jim Meyering <jim@meyering.net>
49873 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
49876 2003-11-21 Karl Berry <karl@gnu.org>
49878 * config/config.{sub,guess}: update from config.
49880 2003-11-18 Karl Berry <karl@gnu.org>
49882 * config/config.{sub,guess}: update from config.
49884 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
49886 2003-11-17 Paul Eggert <eggert@twinsun.com>
49888 * README: Mention that S+T cannot overflow if S is the size of
49889 an existing object and T is sufficiently small.
49891 2003-11-17 Jim Meyering <jim@meyering.net>
49893 On systems without utime and without a utimes function capable of
49894 dealing with a NULL struct utimbuf* argument, this utime replacement
49895 could -- in unusual circumstances -- leak a file descriptor.
49896 * lib/utime.c: Include <unistd.h> and <errno.h>.
49897 (utime_null): Be sure to close `fd' and to preserve errno.
49898 Reported by Geoff Collyer via Arnold Robbins.
49900 2003-11-17 Bruno Haible <bruno@clisp.org>
49902 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
49903 (Depends-on): Add xsize.
49905 2003-11-17 Bruno Haible <bruno@clisp.org>
49907 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
49909 2003-11-17 Bruno Haible <bruno@clisp.org>
49911 * lib/vasnprintf.c (alloca): Remove fallback definition.
49912 (freea): Remove definition.
49913 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
49914 Reported by Paul Eggert.
49916 2003-11-16 Paul Eggert <eggert@twinsun.com>
49917 Bruno Haible <bruno@clisp.org>
49919 Protect against address arithmetic overflow.
49920 * lib/printf-args.h: Include stddef.h.
49921 (arguments): Change type of field 'count' to size_t.
49922 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
49923 'unsigned int' where appropriate.
49924 * lib/printf-parse.h: Include sys/types.h.
49925 (char_directive): Change type of *arg_index fields to ssize_t.
49926 (char_directives): Change type of fields 'count', max_*_length to
49928 * lib/printf-parse.c: Include sys/types.h and xsize.h.
49929 (SSIZE_MAX): Define fallback value.
49930 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
49931 instead of 'int' where appropriate. Check a_allocated, d_allocated
49932 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
49933 * lib/vasnprintf.c: Include xsize.h.
49934 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
49935 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
49936 overflow. Avoid wraparound when converting a width or precision from
49939 2003-11-16 Bruno Haible <bruno@clisp.org>
49941 Update from GNU gettext.
49942 * lib/printf-parse.c: Generalize to it can be compiled for wide
49944 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
49945 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
49946 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
49947 SNPRINTF): New macros.
49948 Don't include <alloca.h> if the file is used inside libintl.
49949 (local_wcslen): New function, for Solaris 2.5.1.
49950 (VASNPRINTF): Use it instead of wcslen.
49952 2003-11-16 Bruno Haible <bruno@clisp.org>
49954 * lib/xsize.h (xmax): New function.
49955 (xsum, xsum3, xsum4): Declare as "pure" functions.
49957 2003-11-12 Paul Eggert <eggert@twinsun.com>
49959 * modules/xalloc (Files): Undo latest change, since xalloc.h
49960 no longer needs SIZE_MAX or PTRDIFF_MAX.
49962 2003-11-12 Paul Eggert <eggert@twinsun.com>
49964 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
49967 2003-11-12 Paul Eggert <eggert@twinsun.com>
49969 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
49970 "return", to pacify some unknown compiler. Problem reported
49971 by Joerg Schilling.
49973 2003-11-12 Paul Eggert <eggert@twinsun.com>
49975 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
49976 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
49977 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
49978 heuristic is just as accurate as far as we know, and it removes a
49979 dependency on size_max.m4 and ptrdiff_max.m4.
49981 2003-11-11 Bruno Haible <bruno@clisp.org>
49983 * modules/xsize (Files): Add m4/size_max.m4.
49984 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
49986 2003-11-11 Bruno Haible <bruno@clisp.org>
49988 * m4/size_max.m4: New file.
49989 * m4/ptrdiff_max.m4: New file.
49990 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
49991 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
49992 (gl_XALLOC): Invoke it.
49994 2003-11-11 Bruno Haible <bruno@clisp.org>
49996 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
49997 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
50000 2003-11-10 Paul Eggert <eggert@twinsun.com>
50002 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
50003 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
50004 rejected some allocations of exactly SIZE_MAX - 2 bytes.
50006 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
50007 not (size_t) -1, since it's defined here.
50009 2003-11-09 Karl Berry <karl@gnu.org>
50011 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
50013 2003-11-06 Paul Eggert <eggert@twinsun.com>
50015 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
50016 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
50017 Reject sizes of exactly SIZE_MAX bytes.
50018 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
50019 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
50021 2003-11-05 Bruno Haible <bruno@clisp.org>
50023 * lib/xsize.h: Include limits.h, to avoid a possible collision with
50024 SIZE_MAX defined in <limits.h> on Solaris.
50026 2003-11-04 Jim Meyering <jim@meyering.net>
50028 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
50029 variable names, rather than @VAR@.
50030 * modules/poll: Likewise.
50032 2003-11-04 Bruno Haible <bruno@clisp.org>
50034 * modules/xsize: New file.
50035 * modules/linebreak: Depend on xsize.
50036 * MODULES.html.sh (func_all_modules): Add xsize.
50038 2003-11-04 Bruno Haible <bruno@clisp.org>
50040 * m4/xsize.m4: New file.
50042 2003-11-04 Bruno Haible <bruno@clisp.org>
50044 * lib/xsize.h: New file.
50045 * lib/linebreak.c: Include xsize.h.
50046 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
50047 argument for overflow.
50048 Suggested by Paul Eggert.
50050 2003-11-03 Karl Berry <karl@gnu.org>
50052 * config/config.{guess,sub}: update from config.
50054 2003-11-03 Jim Meyering <jim@meyering.net>
50056 * modules/userspec (lib_SOURCES): Add userspec.h.
50057 (Include): Add "userspec.h".
50058 Improve description.
50060 2003-11-03 Jim Meyering <jim@meyering.net>
50062 * lib/userspec.c: Include "userspec.h".
50063 * lib/userspec.h: New file.
50065 2003-11-03 Bruno Haible <bruno@clisp.org>
50067 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
50069 2003-11-03 Bruno Haible <bruno@clisp.org>
50071 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
50072 available, to avoid (extremely rare) race condition.
50073 Suggested by Paul Eggert.
50075 2003-11-02 Karl Berry <karl@gnu.org>
50077 * config/srclist.txt (vasprintf.c): sync broken, sigh.
50079 2003-10-31 Paul Eggert <eggert@twinsun.com>
50081 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
50082 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
50083 (read_filesystem_list): Set and use me_type_malloced.
50084 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
50085 whatever the type happens to be), for brevity and consistency.
50086 Check for size calculation overflow on Alphas running OSF/1.
50088 2003-10-31 Jim Meyering <jim@meyering.net>
50090 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
50092 * lib/linebuffer.c: Include <string.h> for declaration of memset.
50094 2003-10-30 Paul Eggert <eggert@twinsun.com>
50095 Bruno Haible <bruno@clisp.org>
50097 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
50098 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
50100 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
50102 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
50103 netbsd*-gnu*. Suggested by Robert Millan.
50105 2003-10-29 Paul Eggert <eggert@twinsun.com>
50107 * modules/group-member: Depend on stdbool.
50109 2003-10-29 Paul Eggert <eggert@twinsun.com>
50111 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
50113 2003-10-29 Paul Eggert <eggert@twinsun.com>
50115 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
50116 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
50117 after the 'gnu' in these cases. This fixes some bugs in the
50118 previous change, and is based on suggestions by Robert Millan.
50120 2003-10-29 Paul Eggert <eggert@twinsun.com>
50122 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
50123 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
50125 * lib/quotearg.c (quotearg_n_options): Use it.
50126 * lib/group-member.c: Include <stdbool.h>.
50127 (free_group_info): Arg is now const *; don't free arg.
50128 (get_group_info): Now returns bool and accepts struct group_info *,
50129 rather than returning a malloc'ed struct group_info *.
50130 All uses changed. Check for overflow in internal size calculation.
50132 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
50133 rather than xmalloc/xrealloc.
50134 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
50135 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
50136 conformance bug: the old code used a pointer after freeing the
50137 storage that it addressed.
50138 * lib/hash.c (hash_initialize): Simplify the code by using
50139 xalloc_oversized rather than doing it by hand.
50140 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
50141 the buffer preserved. Use free and xmalloc instead.
50142 * lib/quotearg.c (quotearg_n_options): Likewise.
50143 Use a simpler test for size overflow. Don't use xalloc_oversized
50144 because unsigned int might be wider than size_t (!); this suggests
50145 that we should switch from unsigned int to size_t for slot numbers.
50147 2003-10-28 Paul Eggert <eggert@twinsun.com>
50149 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
50150 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
50151 NetBSD kernels. Requested by Richard Stallman.
50153 2003-10-27 Paul Eggert <eggert@twinsun.com>
50155 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
50156 to allocate the returned structure. Do not allocate a subarray,
50157 as x2nrealloc will do that.
50158 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
50159 instead of xnrealloc.
50160 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
50162 2003-10-27 Bruno Haible <bruno@clisp.org>
50164 * lib/stdbool_.h: Better support for BeOS.
50166 2003-10-26 Paul Eggert <eggert@twinsun.com>
50168 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
50171 2003-10-26 Paul Eggert <eggert@twinsun.com>
50173 * lib/xalloc.h (xalloc_oversized): New static inline function, for
50174 callers that want to do their own size-overflow checking. Include
50175 <stdbool.h>, since xalloc_oversized returns bool.
50176 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
50177 to use xalloc_oversized.
50179 Add two functions x2realloc, x2nrealloc, for programs that grow
50180 arrays dynamically by doubling their sizes.
50181 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
50182 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
50185 Port to C99 semantics for 'inline' of external functions.
50186 Bug reported by Bruno Haible.
50187 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
50188 with the old contents of xnmalloc.
50189 (xnmalloc, xmalloc): Use it.
50190 (xnrealloc_inline): New static inline function,
50191 with the old contents of xnrealloc.
50192 (xnrealloc, xrealloc): Use it.
50194 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
50197 2003-10-26 Karl Berry <karl@gnu.org>
50199 * config/srclist.txt (COPYING.DOC): no longer available from
50200 /gd/gnuorg; don't know where the ultimate source is.
50202 2003-10-25 Paul Eggert <eggert@twinsun.com>
50204 Fix several address-calculation bugs in the hash modules,
50205 plus some minor code cleanup.
50207 * lib/hash.h: Include <stdbool.h>, for bool.
50208 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
50209 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
50210 hash_get_n_entries, hash_get_max_bucket_length,
50211 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
50212 hash_rehash): Use size_t rather than unsigned.
50213 * lib/hash.c (struct hash_table, hash_get_n_buckets,
50214 hash_get_n_buckets_used, hash_get_n_entries,
50215 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
50216 hash_get_entries, hash_do_for_each, hash_string, is_prime,
50217 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
50219 (SIZE_MAX): Define if not defined.
50220 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
50221 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
50223 Use const * when possible.
50224 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
50225 (check_tuning): Fix bug: if tuning parameters were very close to
50226 0 or 1, rounding errors could have caused subscript violations.
50227 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
50228 (hash_initialize): Add 'fail:' label
50229 to free table and return NULL, and use it to simplify code.
50230 Use calloc rather than clearing the storage ourself.
50231 (hash_initialize, hash_rehash): Check for arithmetic overflow in
50232 buffer size calculations.
50233 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
50234 Include <stddef.h>, for size_t.
50235 * lib/hash-pjw.c (hash_pjw): Likewise.
50236 Switch to method described by Bruno Haible.
50237 Include <limits.h>, for CHAR_BIT.
50238 (SIZE_BITS): New macro.
50240 2003-10-23 Paul Eggert <eggert@twinsun.com>
50242 * m4/getline.m4 (AM_FUNC_GETLINE):
50243 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
50244 hosts. Problem reported by Derek Robert Price in
50245 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
50246 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
50247 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
50249 2003-10-21 Paul Eggert <eggert@twinsun.com>
50251 * lib/getndelim2.c (getndelim2): When size calculation overflows,
50252 ceiling the allocation at NMAX bytes rather than silently
50253 discarding input bytes before NMAX is reached. This makes
50254 a difference only if NMAX exceeds SIZE_MAX / 2.
50256 * lib/obstack.c: Merge from glibc.
50257 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
50258 Add libc_hidden_def (_obstack_newchunk).
50259 (_obstack_free) [! defined _LIBC]: Remove.
50260 [defined _LIBC]: Make a strong alias from obstack_free, rather than
50261 a clone of the function body.
50262 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
50263 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
50265 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
50267 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
50270 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
50271 (obstack_ptr_grow_fast, obstack_int_grow_fast):
50272 Don't use lvalue casts, as GCC plans to remove support for them
50273 in GCC 3.5. Reported by Joseph S. Myers. This bug
50274 was also present in the non-GCC version, indicating that this
50275 code had always been buggy and had never been widely used.
50276 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
50277 Use the fast variant of each macro, rather than copying the
50278 definiens of the fast variant; that way, we'll be more likely to
50279 catch future bugs in the fast variants.
50281 2003-10-20 Bruno Haible <bruno@clisp.org>
50283 * modules/wait-process: New file.
50284 * MODULES.html.sh (func_all_modules): Add wait-process.
50286 2003-10-20 Bruno Haible <bruno@clisp.org>
50288 * m4/wait-process.m4: New file.
50290 2003-10-20 Bruno Haible <bruno@clisp.org>
50292 * lib/wait-process.h: New file, from GNU gettext.
50293 * lib/wait-process.c: New file, from GNU gettext.
50295 2003-10-19 Jim Meyering <jim@meyering.net>
50297 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
50300 2003-10-18 Karl Berry <karl@gnu.org>
50302 * config/config.guess: update from config.
50304 2003-10-16 Paul Eggert <eggert@twinsun.com>
50306 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
50307 (getgroups): First arg is int, not size_t.
50308 Don't let 'free' mangle errno.
50310 2003-10-16 Paul Eggert <eggert@twinsun.com>
50312 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
50314 2003-10-16 Karl Berry <karl@gnu.org>
50316 * config/config.{guess,sub}: update from config.
50318 2003-10-16 Jim Meyering <jim@meyering.net>
50320 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
50323 2003-10-15 Paul Eggert <eggert@twinsun.com>
50325 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
50326 (SIZE_MAX): Remove.
50327 (new_exclude, add_exclude_file): Initial size no longer needs to
50329 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
50330 our own address arithmetic overflow checking.
50332 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
50333 (fnmatch): Do not alloca more than 2000 wide characters;
50334 instead, use malloc for large buffers.
50335 Check for address arithmetic overflow, and return -1
50336 with errno set to ENOMEM in that case.
50337 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
50338 (NEW_PATTERN): Do not alloca more than 8000 bytes;
50339 instead, return -1. Check for address arithmetic overflow.
50341 2003-10-14 Paul Eggert <eggert@twinsun.com>
50343 Handle invalid suffixes and overflow independently, so that
50344 callers can treat them independently as needed. Fix some bugs in
50345 suffix handling, e.g., "100k@" was not diagnosed as an invalid
50346 suffix for a human-readable blocksize. The major caller-visible
50347 change is the addition of a new
50348 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
50349 that both overflow and suffix chars were found.
50351 * lib/human.c (humblock): Don't check separately for invalid suffix
50352 char; that is xstrtoumax's job (now that its bug is fixed).
50353 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
50354 INTMAX_MAX]: New macros.
50355 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
50356 TYPE_MAXIMUM): New macros.
50357 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
50358 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
50359 if overflow occurs, as it's what __strtol does and it's more useful
50361 (__xstrtol): If __strtol reports some error other than ERANGE,
50362 reflect it to the caller as LONGINT_INVALID. If it reports
50363 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
50364 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
50365 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
50367 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
50368 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
50369 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
50370 [defined UINTMAX_MAX]: New macros.
50372 2003-10-14 Bruno Haible <bruno@clisp.org>
50374 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
50376 2003-10-14 Bruno Haible <bruno@clisp.org>
50378 * m4/sig_atomic_t: New file, from GNU gettext.
50379 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
50381 2003-10-14 Bruno Haible <bruno@clisp.org>
50383 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
50384 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
50385 Also use volatile where needed.
50387 2003-10-12 Paul Eggert <eggert@twinsun.com>
50389 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
50390 Change maintainer from Bruno Haible to 'all'.
50392 2003-10-12 Paul Eggert <eggert@twinsun.com>
50394 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
50396 2003-10-12 Paul Eggert <eggert@twinsun.com>
50398 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
50399 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
50400 and define in terms of the other primitives.
50401 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
50402 (SIZE_MAX): Define if not already defined.
50403 (array_size_overflow): New function.
50404 (xalloc_die): Abort instead of exiting if 'error' returns.
50405 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
50406 (xmalloc, xrealloc): Use them.
50407 (xcalloc): Check for address arithmetic overflow.
50408 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
50409 a bit faster than strcpy.
50411 2003-10-10 Simon Josefsson <jas@extundo.com>
50413 * modules/argp (Depends-on): Add restrict and strcase.
50415 2003-10-10 Simon Josefsson <jas@extundo.com>
50417 * m4/argp.m4: Add AC_C_INLINE.
50419 2003-10-08 Paul Eggert <eggert@twinsun.com>
50421 Merge getpass from libc, plus a few fixes.
50423 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
50424 Include <stdbool.h>.
50425 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
50426 __fsetlocking to empty.
50427 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
50428 do include <bits/libc-lock.h>.
50429 Do not include <fcntl.h>; not needed.
50430 [_LIBC]: Include <wchar.h>.
50431 (NOTCANCEL_MODE): New macro.
50432 (flockfile, funlockfile) [_LIBC]: New macros.
50433 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
50434 [!_LIBC]: New macros.
50435 (call_fclose): New function.
50436 (getpass): Use it. Save tty stream separately; this simplifies the
50437 code and makes it more reliable if stdin happens to equal stdout.
50438 Invoke __fsetlocking on tty.
50439 Handle thread cancellation if needed.
50440 Namespace cleanup (use __tcgetattr, __getline).
50441 Use bool for Booleans.
50442 [USE_IN_LIBIO]: Handle wide streams.
50443 [!_LIBC]: Unconditionally do the fseek, since we don't know what
50444 stream might go where.
50446 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
50447 doesn't have to include <stdio.h> before us.
50448 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
50449 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
50450 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
50451 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
50452 if not declared, so that we can use getpass.c code from libc without
50454 (flockfile, ftrylockfile, funlockfile): New macros.
50456 2003-10-08 Paul Eggert <eggert@twinsun.com>
50458 * modules/getpass: Depend on stdbool.
50460 2003-10-08 Paul Eggert <eggert@twinsun.com>
50462 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
50464 2003-10-07 Karl Berry <karl@gnu.org>
50466 * config/config.{guess,sub}: update from config.
50468 2003-10-06 Jim Meyering <jim@meyering.net>
50469 Bruno Haible <bruno@clisp.org>
50471 This lets translators provide better translations for the
50472 "Written by ..." part of --version output.
50473 * lib/version-etc.h: Include stdarg.h.
50474 (version_etc_copyright): Declare as readonly.
50475 (version_etc): Make this function variadic with a NULL-terminated list
50476 of author name strings.
50477 (version_etc_va): New declaration.
50478 * lib/version-etc.c: Include stdarg.h, stdlib.h.
50479 (version_etc_copyright): Declare as readonly.
50480 (version_etc_va): New function. Provide a different translatable string
50481 for each possible number of authors < 10. Abbreviate when there are 10
50483 (version_etc): Make this function variadic. Call version_etc_va.
50484 Suggestion from Gary V. Vaughan.
50486 * lib/long-options.h (parse_long_options): Change prototype: the
50487 authors string is moved to the end and becomes variadic.
50488 * lib/long-options.c: Include stdarg.h.
50489 (parse_long_options): Make this function variadic, too.
50490 Call version_etc_va, not version_etc.
50492 2003-10-06 Bruno Haible <bruno@clisp.org>
50494 * modules/version-etc-2: Remove file.
50495 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
50497 2003-10-06 Bruno Haible <bruno@clisp.org>
50499 * modules/fatal-signal: New file.
50500 * MODULES.html.sh (func_all_modules): Add fatal-signal.
50502 2003-10-06 Bruno Haible <bruno@clisp.org>
50504 * m4/fatal-signal.m4: New file.
50505 * m4/signalblocking.m4: New file, from GNU gettext.
50507 2003-10-06 Bruno Haible <bruno@clisp.org>
50509 * lib/version-etc-2.h: Remove file.
50510 * lib/version-etc-2.c: Remove file.
50512 2003-10-06 Bruno Haible <bruno@clisp.org>
50514 * lib/fatal-signal.h: New file, from GNU gettext.
50515 * lib/fatal-signal.c: New file, from GNU gettext.
50517 2003-10-05 Paul Eggert <eggert@twinsun.com>
50519 * README: Rework advice for preventing empty .o files.
50520 Don't recommend ELIDE constructs. Recommend <stddef.h>,
50523 2003-10-04 Karl Berry <karl@gnu.org>
50525 * lib/argp*: update from libc.
50527 2003-10-04 Karl Berry <karl@gnu.org>
50529 * config/config.{guess,sub}: update from config.
50531 2003-10-02 Bruno Haible <bruno@clisp.org>
50533 * modules/lchown (Include): Add lchown.h.
50534 * modules/time_r (Include): Use "..." syntax.
50535 * modules/xgetdomainname (Include): Add xgetdomainname.h.
50537 2003-10-01 Simon Josefsson <jas@extundo.com>
50539 * MODULES.html.sh (func_all_modules): Move gethostname from section
50540 'based on' to section 'lacking' POSIX:2001.
50542 2003-10-01 Larry Jones <lawrence.jones@eds.com>
50544 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
50545 to output mode on the same stream.
50547 2003-09-29 Paul Eggert <eggert@twinsun.com>
50549 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
50550 Fix arg typo in previous patch.
50552 2003-09-28 Jim Meyering <jim@meyering.net>
50554 * lib/error.c: Correct cpp indentation.
50556 2003-09-27 Paul Eggert <eggert@twinsun.com>
50558 * modules/free: New file.
50560 2003-09-27 Paul Eggert <eggert@twinsun.com>
50562 * m4/free.m4: New file.
50564 2003-09-27 Paul Eggert <eggert@twinsun.com>
50566 * lib/minmax.h (MIN, MAX)
50567 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
50568 Omit the special code that used __typeof__, since we worry that
50569 it could be more trouble than it's worth. See:
50570 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
50571 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
50573 * lib/free.c: New file.
50575 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
50577 Trivial fixes to Makefile.am parts of module listings.
50578 * modules/strstr: Append strstr.h to lib_SOURCES.
50579 * modules/strcase: Likewise, for strcase.h.
50581 2003-09-27 Karl Berry <karl@gnu.org>
50583 * config/mkinstalldirs: update from automake.
50585 2003-09-26 Paul Eggert <eggert@twinsun.com>
50587 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
50588 (error_tail): Do not loop, reallocating temporary buffer, since
50589 the output cannot contain more wide characters than the input
50590 contains bytes, the size must be big enough already. This avoids
50591 one potential size overflow calculation. Check for size overflow
50592 when calculating temporary buffer size. Free temporary buffer
50593 when done, if it was allocated with malloc; this plugs a memory
50594 leak. Remove casts from void * to pointers, that are no longer
50595 needed now that we're assuming C89 or better.
50597 Merge error changes from glibc.
50599 * lib/error.c, error.h: Update copyright notice header to match glibc.
50600 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
50601 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
50602 Disable cancellation while printing error.
50603 * lib/error.h: Prepend __ to parameter names.
50605 2003-09-26 Jim Meyering <jim@meyering.net>
50607 * lib/error.c (error_tail): Move some declarations
50608 into inner scope where the local variables are used.
50610 2003-09-26 Bruno Haible <bruno@clisp.org>
50612 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
50614 Don't define stpncpy through config.h; it's now done through stpncpy.h.
50616 2003-09-26 Bruno Haible <bruno@clisp.org>
50618 * lib/stpncpy.h (gnu_stpncpy): New declaration.
50619 (stpncpy): Define as alias for gnu_stpncpy.
50620 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
50622 2003-09-25 Simon Josefsson <jas@extundo.com>
50624 * lib/xgetdomainname.h: New file.
50625 * lib/xgetdomainname.c: New file.
50627 2003-09-25 Simon Josefsson <jas@extundo.com>
50628 Bruno Haible <bruno@clisp.org>
50630 * modules/getdomainname: New file.
50631 * modules/xgetdomainname: New file.
50632 * MODULES.html.sh (func_all_modules): Add getdomainname,
50635 2003-09-25 Simon Josefsson <jas@extundo.com>
50636 Bruno Haible <bruno@clisp.org>
50638 * m4/getdomainname.m4: New file.
50640 2003-09-25 Simon Josefsson <jas@extundo.com>
50641 Bruno Haible <bruno@clisp.org>
50643 * lib/getdomainname.h: New file.
50644 * lib/getdomainname.c: New file.
50646 2003-09-25 Karl Berry <karl@gnu.org>
50648 * lib/argp-fmtstream.c, argp-help.c: update from libc.
50650 2003-09-25 Karl Berry <karl@gnu.org>
50652 * config/install-sh: update from automake.
50654 2003-09-25 Bruno Haible <bruno@clisp.org>
50656 * modules/version-etc-2: New file, from modules/version-etc with
50658 * MODULES.html.sh (func_all_modules): Add version-etc-2.
50660 2003-09-25 Bruno Haible <bruno@clisp.org>
50662 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
50663 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
50665 2003-09-24 Simon Josefsson <jas@extundo.com>
50667 * modules/xgethostname: Add xgethostname.h.
50669 2003-09-24 Paul Eggert <eggert@twinsun.com>
50671 * lib/linebuffer.c (freebuffer): Don't free the argument, just
50672 the buffer associated with the argument. Bug reported by
50675 2003-09-24 Paul Eggert <eggert@twinsun.com>
50677 * README: Document assumptions that 'int' is at least 32 bits
50678 wide, that integer arithmetic is 2's complement without overflow,
50679 that there are no holes in integer values, that adding sizes of
50680 two nonoverlapping objects can't overflow, and that all-bits-zero
50681 yields scalar zero. Fix spelling and capitalization typos.
50683 2003-09-19 Karl Berry <karl@gnu.org>
50685 * lib/argp.h: update from libc.
50687 2003-09-17 Paul Eggert <eggert@twinsun.com>
50689 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
50690 to avoid spurious warnings like "AC_RUN_IFELSE was called before
50691 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
50693 2003-09-17 Paul Eggert <eggert@twinsun.com>
50695 * gnulib-tool: Use "test -h", not "test -L", for portability
50696 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
50697 (tags_regexp): Remove, since \| doesn't conform to POSIX.
50698 (sed_extract_prog): Issue s commands one-by-one, rather than
50699 using \| in one s command.
50701 2003-09-16 Paul Eggert <eggert@twinsun.com>
50703 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
50704 input error, instead of returning NULL the next time we are called
50705 (and therefore losing track of errno).
50707 2003-09-16 Bruno Haible <bruno@clisp.org>
50709 * gnulib-tool (func_create_testdir): Warn about duplicated
50712 2003-09-15 Paul Eggert <eggert@twinsun.com>
50714 * modules/argmatch, modules/fatal, modules/obstack,
50715 modules/xalloc, modules/xgethostname: Sort dependencies by
50716 importance, not alphabetically.
50718 2003-09-15 Paul Eggert <eggert@twinsun.com>
50720 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
50721 fails, so that the caller gets the proper errno.
50723 * lib/readutmp.c (read_utmp): Likewise.
50724 Check for fstat error. Close stream and free storage
50727 2003-09-14 Karl Berry <karl@gnu.org>
50729 * config/srclist.txt (strdup.c): disable for c89 changes.
50731 2003-09-14 Jim Meyering <jim@meyering.net>
50733 * lib/getloadavg.c: Correct cpp indentation.
50734 * lib/strdup.c: Likewise.
50735 * lib/vasnprintf.c: Likewise.
50737 2003-09-14 Bruno Haible <bruno@clisp.org>
50739 * modules/fwriteerror: New file.
50740 * MODULES.html.sh (func_all_modules): Add fwriteerror.
50742 2003-09-14 Bruno Haible <bruno@clisp.org>
50744 * lib/fwriteerror.h: New file.
50745 * lib/fwriteerror.c: New file.
50747 2003-09-12 Paul Eggert <eggert@twinsun.com>
50749 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
50750 modules/xgethostname, modules/xalloc: Depend on exit.
50752 2003-09-12 Paul Eggert <eggert@twinsun.com>
50754 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
50756 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
50757 and AC_MINIX, too, so that their extensions are available.
50759 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
50760 This macro has been superseded by gl_BACKUPFILE.
50762 More patches to assume C89 or better.
50764 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
50766 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
50768 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
50769 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
50770 Include <string.h>, <stdlib.h> unconditionally.
50771 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
50772 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
50773 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
50774 headers or for string.h.
50775 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
50778 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
50780 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
50781 * m4/userspec.m4 (gl_USERSPEC): Likewise.
50782 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
50783 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
50784 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50785 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
50787 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
50788 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
50789 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
50791 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
50792 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
50793 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
50796 2003-09-12 Paul Eggert <eggert@twinsun.com>
50798 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
50799 * lib/obstack.c [!defined _LIBC]: Likewise.
50800 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
50801 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
50802 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
50804 More changes to assume C89 or better.
50806 * lib/error.c (error_tail): Assume vprintf.
50808 * lib/argmatch.c (getenv): Remove decl.
50809 * lib/progreloc.c (get_full_program_name): Define via prototype.
50810 * lib/setenv.c (clearenv): Likewise.
50811 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
50813 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
50814 (malloc, memcpy): Remove decls.
50815 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
50816 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
50817 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
50818 (memcpy): Remove macro.
50819 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
50820 (__P): Remove. All uses removed.
50821 (PTR): Remove. All uses changed to void *.
50822 (CHAR_BIT, NULL): Remove.
50823 (spaces, zeros, memset_space, memset_zero)
50824 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
50826 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
50827 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
50828 Define with prototype.
50829 Remove now-unnecessary prototype decl.
50830 (extra_args_spec): Assume ANSI C. All uses changed.
50831 (extra_args_spec_iso): Remove.
50832 (my_strftime, emacs_strftimeu): Define via prototype.
50833 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
50835 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
50836 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
50837 (strtoul, strtol): Remove decls.
50838 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
50840 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
50841 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
50842 (LOCALE_PARAM_PROTO): New macro.
50843 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
50844 (INTERNAL (strtol), strtol): Define with a prototype.
50845 (PARAMS): Remove. All uses removed.
50846 * lib/tempname.c: Include <string.h> unconditionally.
50847 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
50848 * lib/xgethostname.c (main): Define with a prototype.
50849 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
50850 Include <stdlib.h> unconditionally.
50851 (calloc, malloc, realloc, free): Remove decls.
50852 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
50853 Include <stdlib.h> unconditionally. Sort include file names.
50855 (xstrtod): Define with a prototype.
50856 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
50857 (strtol, strtoul): Remove decls.
50859 2003-09-11 Paul Eggert <eggert@twinsun.com>
50861 More patches to assume C89 or better.
50862 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
50863 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
50864 string.h, memchr, STDC_HEADERS.
50866 2003-09-11 Paul Eggert <eggert@twinsun.com>
50868 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
50869 Include <stdlib.h>, <string.h> unconditionally.
50870 Remove now-unnecessary cast to char *.
50871 * lib/strnlen.c: Include <string.h> unconditionally.
50872 * lib/yesno.c (yesno): Define with a prototype.
50874 2003-09-11 Bruno Haible <bruno@clisp.org>
50876 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
50878 2003-09-10 Jim Meyering <jim@meyering.net>
50880 * lib/error.c: Correct indentation of cpp directives.
50882 2003-09-10 Bruno Haible <bruno@clisp.org>
50884 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
50885 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
50886 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
50887 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
50888 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
50889 <stdlib.h> and <string.h> checks.
50890 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
50891 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
50893 2003-09-10 Bruno Haible <bruno@clisp.org>
50895 * lib/strcspn.c: Include <string.h> unconditionally.
50896 * lib/strpbrk.c: Include <string.h> unconditionally.
50897 * lib/strstr.c: Include <string.h> unconditionally.
50898 * lib/unicodeio.c: Include <string.h> unconditionally.
50899 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
50900 * lib/unsetenv.c: Likewise.
50901 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
50902 * lib/yesno.c: Include <stdlib.h> unconditionally.
50903 (rpmatch): Add prototype.
50905 2003-09-09 Paul Eggert <eggert@twinsun.com>
50907 More patches to assume C89 or better.
50908 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
50909 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
50910 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
50912 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
50914 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
50916 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
50918 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
50919 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
50920 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
50922 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
50923 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
50925 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
50927 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
50928 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
50929 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
50930 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
50931 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
50932 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
50934 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
50935 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
50936 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
50937 C headers, or for string.h.
50938 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
50939 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
50940 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
50941 headers, memory.h, stdlib.h, string.h, strings.h.
50942 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
50943 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
50944 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
50946 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
50947 headers, memory.h, string.h.
50948 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
50949 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
50951 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
50953 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
50954 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
50955 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
50956 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
50957 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
50959 2003-09-09 Paul Eggert <eggert@twinsun.com>
50963 * lib/acosl.c (main): Use a prototype.
50964 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
50967 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
50969 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
50970 (getopt, etopt_long, getopt_long_only, _getopt_internal)
50971 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
50973 * lib/getopt.c (const): Remove macro.
50974 Include <string.h> unconditionally.
50975 (my_index): Remove; all uses changed to strchr.
50976 (strlen): Remove decl.
50977 (exchange): Remove forward decl; no longer needed.
50978 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
50979 Define with prototype.
50980 * lib/getopt1.c (const): Remove macro.
50981 (getopt_long, getopt_long_only, main): Define with prototype.
50983 * lib/getugroups.c: Include <string.h> unconditionally.
50985 * lib/getusershell.c: Include <stdlib.h> unconditionally.
50986 (getusershell, setusershell, endusershell, readname, main):
50987 Define with prototypes.
50989 * lib/group-member.c: Include group-member.h first.
50990 Include <stdlib.h> unconditionally.
50992 * lib/hard-locale.c: Include hard-locale.h first.
50993 Include <stdlib.h>, <string.h> unconditionally.
50995 * lib/hash.c (free, malloc): Remove decls.
50996 Include <stdlib.h> unconditionally.
50998 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
50999 (getenv): Do not declare.
51001 * lib/idcache.c: Include <string.h> unconditionally.
51003 * lib/long-options.c: Include long-options.h first, to test interface.
51004 Include <stdlib.h> unconditionally.
51006 * lib/makepath.c: Include makepath.h first, to test interface.
51007 Include <stdlib.h> and <string.h> unconditionally.
51009 * lib/linebuffer.c: Include <stdlib.h>.
51010 (free): Remove decl.
51012 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
51013 stddef.h. rpl_malloc returns void *, not char *.
51014 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
51017 * lib/md5.h: Include <limits.h> unconditionally.
51018 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
51019 (__P): Remove; all uses removed.
51020 * lib/md5.c: Include "md5.h" first.
51021 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
51022 md5_buffer, md5_process_bytes, md5_process_block):
51023 Define with prototypes.
51024 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
51025 * lib/sha.c: Include "sha.h" first.
51026 Include <stdlib.h>, <string.h> unconditionally.
51028 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
51029 * lib/memcmp.c (__ptr_t): Likewise.
51030 * lib/memrchr.c (__ptr_t): Likewise.
51031 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
51032 Include <string.h> unconditionally.
51033 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
51034 * lib/memchr.c: Include <stdlib.h> unconditionally.
51035 * lib/memchr.c (LONG_MAX): Remove.
51036 * lib/memrchr.c (LONG_MAX): Likewise.
51037 * lib/memchr.c (__memchr): Define via a prototype.
51038 * lib/memrchr.c (__memrchr): Likewise.
51039 * lib/memcmp.c (__P): Remove, and remove all uses.
51040 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
51041 Remove forward decls; no longer needed.
51042 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
51043 Use types required by C89 in prototype.
51045 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
51046 * lib/savedir.c: Likewise.
51047 * lib/mkdir.c (free): Remove decl.
51048 * lib/rmdir.c (rmdir): Define with a prototype.
51049 * lib/savedir.c: Include savedir.h first, to test interface.
51051 * lib/mktime.c (STDC_HEADERS): Remove.
51052 Include <stdlib.h>, <string.h> unconditionally.
51054 * lib/modechange.c: Include <stdlib.h> unconditionally.
51055 (malloc): Remove decl.
51057 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
51058 (free): Remove decl.
51060 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
51061 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
51062 (This type really should be intptr_t, but that's a C99ism.)
51063 (_obstack_memcpy): Remove: all uses changed to memcpy.
51064 Include <string.h> unconditionally.
51065 (struct obstack): Assume __STDC__ for types of members
51066 chunkfun, freefun, extra_arg.
51067 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
51068 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
51069 obstack_begin, obstack_specify_allocation,
51070 obstack_specify_allocation_with_arg, obstack_chunkfun,
51071 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
51072 Remove unprototyped decls and the macros that use them.
51073 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
51074 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
51075 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
51076 (defined __STDC__ && __STDC__)]:
51077 Remove nonprototyped code.
51078 Include <stdlib.h> unconditionally.
51079 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
51080 _obstack_allocated_p, _obstack_free, obstack_free,
51081 _obstack_memory_used, print_and_abort):
51082 Define using prototypes.
51083 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
51084 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
51085 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
51086 obstack_next_free, obstack_object_size, obstack_room) [0]:
51087 Remove unused, unprototyped code.
51089 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
51091 * lib/physmem.c (physmem_total, physmem_available, main): Define
51094 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
51095 (main): Define with a prototype.
51097 * lib/posixver.c (getenv): Remove decl.
51099 * lib/putenv.c (malloc): Returns void *, not char *.
51100 Include <string.h> unconditionally.
51101 (strchr, memcpy, NULL): Do not define.
51103 * lib/readtokens.c: Include readtokens.h first, to test interface.
51104 Include <stdlib.h>, <string.h> unconditionally.
51105 (init_tokenbuffer): Define with a prototype.
51107 * lib/regex.c (PARAMS): Remove. All uses removed.
51108 All uses of _RE_ARGS removed, too.
51109 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51111 (bzero): Assume memset exists.
51112 (memcmp, memcpy, NULL): Remove.
51113 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
51114 char, or assignments to local vars of type signed char.
51115 (init_syntax_once, PREFIX(extract_number_and_incr),
51116 PREFIX(print_partial_compiled_pattern),
51117 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
51118 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
51119 PREFIX(regex_grow_registers), PREFIX(regex_compile),
51120 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
51121 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
51122 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
51123 wcs_compile_range, byte_compile_range, truncate_wchar,
51124 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
51125 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
51126 count_mbs_length, wcs_re_match_2_internal,
51127 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
51128 PREFIX(alt_match_null_string_p),
51129 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
51130 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
51131 regfree, PREFIX(extract_number)): Define with prototype. Remove
51132 now-unnecessary declaration, if any.
51133 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
51135 Remove now-unnecessary casts among pointer types.
51136 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
51138 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
51139 (free): Remove decl.
51141 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
51143 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
51144 (free): Remove decl.
51146 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
51147 * lib/xgetcwd.c: Likewise.
51149 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
51150 (free): Remove decl.
51152 * lib/strchrnul.c (strchrnul): Define with a prototype.
51153 Fix bug: c_in was not converted to char before searching.
51155 The following changes are not K&R related:
51157 * lib/group-member.h: Include <sys/types.h>, so that this file is
51159 * lib/makepath.h: Likewise.
51161 * lib/getusershell.c (readname, default_index, line_size, readname):
51162 Use size_t, not int, for sizes.
51163 (readname): If the size overflows, report an error instead of
51166 2003-09-09 Paul Eggert <eggert@twinsun.com>
51168 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
51171 2003-09-09 Paul Eggert <eggert@twinsun.com>
51173 * README: New section: portability guidelines.
51175 2003-09-09 Derek Robert Price <derek@ximbiot.com>
51177 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
51180 2003-09-09 Derek Robert Price <derek@ximbiot.com>
51182 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
51184 2003-09-08 Paul Eggert <eggert@twinsun.com>
51186 Assume C89 or better; remove K&R cruft.
51187 A few of these changes were first proposed by Derek Robert Price
51188 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
51190 * lib/addext.c: Include <string.h> unconditionally.
51191 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
51192 Don't declare getenv or malloc.
51194 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
51195 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
51197 (find_stack_direction, alloca): Use prototypes.
51199 * lib/atexit.c (atexit): Define using a prototype.
51201 * lib/basename.c, dirname.c, stripslash.c:
51202 Include <string.h> unconditionally.
51204 * lib/bcopy.c: Include <stddef.h>.
51205 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
51207 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
51209 * lib/error.h (error, error_at_line, error_print_progname)
51210 [! (defined (__STDC__) && __STDC__)]: Remove decls.
51211 * lib/error.c: Include error.h first, to check interface.
51212 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
51213 (VA_START): Remove; all uses changeed to va_start.
51214 (exit, strerror): Remove decls.
51215 (error_print_progname): Prototype uncondionally.
51216 Don't include <errno.h>; no longer needed.
51217 (private_strerror): Remove.
51218 (error_tail): Always define.
51219 (error, error_at_line): Assume C89 or better; always use prototypes.
51220 * lib/fatal.c: Include "fatal.h" first, to test interface.
51221 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
51222 (VA_START): Remove; all uses changed to va_start.
51223 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
51225 (exit): Remove decl.
51226 (fatal): Prototype unconditionally. Assume va_start works.
51227 Abort at end, to pacify gcc.
51229 * lib/euidaccess.c (main): Define with a prototype.
51231 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
51233 * lib/exitfail.c: Include <stdlib.h> unconditionally.
51235 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
51237 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
51238 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
51239 (getenv): Remove decl.
51240 (fnmatch): Define using a prototype.
51241 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
51242 (FCT): Define using a prototype.
51244 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
51246 * lib/gethostname.c: Include <stddef.h>.
51247 (gethostname): Define with prototype. Length is size_t, not int.
51249 2003-09-08 Paul Eggert <eggert@twinsun.com>
51251 Assume C89 or better; remove K&R cruft.
51252 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
51253 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
51254 string.h, getenv, malloc.
51255 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
51257 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
51258 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
51259 do not check for strerror.
51260 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
51261 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
51262 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
51263 do not check for doprnt or vprintf.
51264 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
51265 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
51267 2003-09-08 Paul Eggert <eggert@twinsun.com>
51269 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
51270 getversion.c should have been removed then, but was accidentally
51273 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
51274 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
51276 2003-09-08 Karl Berry <karl@gnu.org>
51278 * config/config.sub, config.guess, srclistvars.sh: update from savannah
51279 config, forget about prep.
51281 * config/depcomp, missing: update from automake.
51283 2003-09-07 Paul Eggert <eggert@twinsun.com>
51285 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
51286 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
51288 2003-09-07 Paul Eggert <eggert@twinsun.com>
51290 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
51291 copy_tm_result. Bug reported by Simon Josefsson in
51292 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
51294 2003-09-06 Paul Eggert <eggert@twinsun.com>
51296 * m4/time_r.m4: New file.
51297 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
51298 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
51299 is. Check for timegm declaration.
51300 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
51301 Do not check for gmtime_r.
51302 Replace mktime if __mktime_internal does not exist and if mktime
51303 hasn't been replaced already.
51305 2003-09-06 Paul Eggert <eggert@twinsun.com>
51307 * lib/time_r.c, lib/time_r.h: New files.
51309 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
51311 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
51312 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
51314 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
51316 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
51317 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
51318 Include <time_r.h>.
51320 * lib/timegm.c: Switch to glibc implementation, with the following
51322 [defined HAVE_CONFIG_H]: Include <config.h>.
51323 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
51324 (__mktime_internal) [!defined _LIBC]: New decl.
51325 (__gmtime_r) [!defined _LIBC]: New macro and function.
51326 (timegm): Use a prototype, since gnulib assumes C89.
51327 Do not bother declaring tmp to be const, as it's not really usefu.
51328 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
51329 (timegm): Declare only if HAVE_DECL_TIMEGM.
51331 2003-09-06 Paul Eggert <eggert@twinsun.com>
51333 * MODULES.html.sh (func_all_modules): Add time_r.
51334 * modules/time_r: New file.
51335 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
51336 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
51338 2003-09-03 Paul Eggert <eggert@twinsun.com>
51340 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
51341 Bug reported by Lute Kamstra in
51342 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
51344 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
51345 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
51346 course with correspondingly smaller numbers for tomorrow and
51347 yesterday. From Tadayoshi Funaba. Originally installed into
51348 sh-utils on 1999-08-07, but the patch got lost (I guess during the
51351 2003-08-31 Simon Josefsson <jas@extundo.com>
51353 * modules/timegm: New file.
51354 * MODULES.html.sh (func_all_modules): Add timegm.
51356 2003-08-31 Simon Josefsson <jas@extundo.com>
51358 * m4/timegm.m4: New file.
51360 2003-08-31 Simon Josefsson <jas@extundo.com>
51362 * lib/timegm.h: New file.
51363 * lib/timegm.c: New file. Based on
51364 wget-1.8.2/src/http.c:mktime_from_utc.
51366 2003-08-31 Karl Berry <karl@gnu.org>
51368 * lib/argp.h: update from libc.
51370 2003-08-28 Bruno Haible <bruno@clisp.org>
51372 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
51373 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
51374 followed by '#define fnmatch fnmatch_posix' gives an error.
51376 2003-08-28 Bruno Haible <bruno@clisp.org>
51378 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
51379 warning on QNX, which defines O_BINARY to 000000.
51381 2003-08-27 Jim Meyering <jim@meyering.net>
51383 * m4/mkstemp.m4: Require that the system mkstemp be able to create
51384 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
51385 would fail after 32. Reported by Danny Levinson. Details here:
51386 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
51388 2003-08-24 Bruno Haible <bruno@clisp.org>
51390 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
51391 MSVC7 <stdio.h> is included later.
51393 2003-08-22 Simon Josefsson <jas@extundo.com>
51395 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
51397 2003-08-20 Karl Berry <karl@gnu.org>
51399 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
51401 2003-08-20 Bruno Haible <bruno@clisp.org>
51403 * modules/progname: New file.
51404 * MODULES.html.sh (func_all_modules): Add progname.
51406 2003-08-20 Bruno Haible <bruno@clisp.org>
51408 * lib/progname.h: New file, from GNU gettext.
51409 * lib/progname.c: New file, from GNU gettext.
51410 * lib/progreloc.c: New file, from GNU gettext.
51412 2003-08-19 Jim Meyering <jim@meyering.net>
51414 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
51415 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
51417 2003-08-19 Bruno Haible <bruno@clisp.org>
51419 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
51422 2003-08-19 Bruno Haible <bruno@clisp.org>
51424 * lib/xstrdup.c: Assume <string.h> exists.
51426 2003-08-18 Paul Eggert <eggert@twinsun.com>
51428 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
51431 2003-08-18 Jim Meyering <jim@meyering.net>
51433 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
51434 * m4/lib-ld.m4: Likewise.
51436 2003-08-18 Jim Meyering <jim@meyering.net>
51438 * lib/setenv.h: Indent nested cpp directive.
51439 * lib/vasnprintf.c: Remove trailing blanks.
51441 2003-08-17 Simon Josefsson <jas@extundo.com>
51443 * modules/xstrndup: New file.
51444 * MODULES.html.sh (func_all_modules): Add xstrndup.
51446 2003-08-17 Simon Josefsson <jas@extundo.com>
51448 * modules/argp: Fix autoconf macro name. Add more dependencies.
51450 2003-08-17 Simon Josefsson <jas@extundo.com>
51452 * m4/xstrndup.m4: New file.
51454 2003-08-17 Simon Josefsson <jas@extundo.com>
51456 * m4/argp.m4: New file.
51458 2003-08-17 Simon Josefsson <jas@extundo.com>
51459 Bruno Haible <bruno@clisp.org>
51461 * lib/xstrndup.h: New file.
51462 * lib/xstrndup.c: New file.
51464 2003-08-17 Bruno Haible <bruno@clisp.org>
51466 * modules/strndup (Files, Include): Add lib/strndup.h.
51468 2003-08-17 Bruno Haible <bruno@clisp.org>
51470 * modules/euidaccess (Files): Add lib/euidaccess.h.
51472 2003-08-17 Bruno Haible <bruno@clisp.org>
51474 * lib/strndup.h: New file.
51476 2003-08-17 Bruno Haible <bruno@clisp.org>
51478 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
51479 like AC_GNU_SOURCE.
51480 * modules/extensions (configure.ac): Comment out the invocation of
51481 gl_USE_SYSTEM_EXTENSIONS.
51483 2003-08-16 Paul Eggert <eggert@twinsun.com>
51485 Merges from coreutils, etc.
51486 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
51487 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
51488 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
51490 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
51491 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
51493 2003-08-16 Paul Eggert <eggert@twinsun.com>
51495 Document merge from coreutils.
51496 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
51497 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
51498 * modules/utime: Add m4/utimes-null.m4.
51500 2003-08-16 Paul Eggert <eggert@twinsun.com>
51502 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
51503 space, undoing this 2003-08-12 change:
51504 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51506 2003-08-16 Paul Eggert <eggert@twinsun.com>
51508 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
51509 strtoul.c from libc, undoing this 2003-08-12 change:
51510 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51512 2003-08-16 Jim Meyering <jim@meyering.net>
51514 Merges from coreutils.
51515 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
51516 prefix. Adjust cache variables similarly. Create 500 rather than
51517 just 300 files, to exercise bug on Darwin6.5, too.
51518 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
51520 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
51521 AM_SYS_POSIX_TERMIOS.
51522 Reported by mkc@mathdogs.com.
51523 Also change use of $am_cv_sys_posix_termios
51524 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
51525 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
51526 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
51527 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
51528 in /proc/mounts until it finds one with matching device number. This
51529 is unnecessary when the FILE argument *is* a mount point. No stat call
51530 is necessary in that case. So, disable the statvfs-testing code on
51531 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
51532 as RedHat bug# 84846.
51533 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51534 to 1MB, so as not to render systems with no stack size limit (e.g.,
51535 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
51536 Include <unistd.h>. On some systems,
51537 it is required for the definition of _SC_PAGESIZE.
51539 2003-08-16 Jim Meyering <jim@meyering.net>
51541 Merge from coreutils.
51542 * lib/xstrtoimax.c: #else #if -> #elif.
51543 * lib/xstrtoumax.c: Likewise.
51545 2003-08-16 Jim Meyering <jim@meyering.net>
51547 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
51548 * m4/utimes.m4: Removed.
51549 * m4/utimes-null.m4: Renamed from utimes.m4.
51551 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51552 to 1MB, so as not to render systems with no stack size limit (e.g.,
51553 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
51554 Include <unistd.h>. On some systems,
51555 it is required for the definition of _SC_PAGESIZE.
51557 2003-08-16 Jim Meyering <jim@meyering.net>
51558 and Paul Eggert <eggert@cs.ucla.edu>
51560 Merges from coreutils, etc.
51562 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
51563 using the latest version from cvs. This avoids problems with #line
51564 directives using a vendor (Sun) compiler.
51565 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
51566 Don't set GETGROUPS_LIB here; now it's
51567 done via getgroups.m4's wrapper function.
51568 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
51569 rather than just in sh-util/configure.in, so that the
51570 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
51572 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
51573 AC_FUNC_GETLOADAVG where to find getloadavg.c.
51574 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
51575 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
51576 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
51577 Remove code that is now done by the newly-required macros.
51578 Append $(EXEEXT) to DF_PROG.
51579 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
51580 Do not invoke or require the following here,
51581 since prereq.m4 or some gnulib .m4 now does this for us:
51582 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
51583 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
51584 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
51585 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
51586 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
51587 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
51588 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
51590 Do not replace the following functions, as this is now the job
51591 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
51592 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
51593 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
51594 atexit getpass, strdup, getpagesize.
51596 Do not check for the following functions, as this is now the job
51597 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
51598 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
51600 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
51601 Check for sys/sysctl.h.
51602 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
51603 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
51604 of checking for ssize_t ourselves.
51606 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
51607 Require every macro that gnulib/modules/* suggests for us.
51608 (jm_PREREQ_ADDEXT): New macro.
51609 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
51610 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
51612 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
51613 (gl_PHYSMEM): Use it.
51614 Also check for `table' function.
51615 Check for new headers and functions.
51616 Add check for sys/sysmp.h.
51617 With suggestions from Kaveh Ghazi.
51618 Ignore headers that are present but cannot be compiled. This
51619 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
51622 2003-08-15 Paul Eggert <eggert@twinsun.com>
51624 Document merge from coreutils.
51625 * modules/userspec: Depend on posixver.
51626 * modules/strftime: Depend on tzset.
51628 2003-08-15 Paul Eggert <eggert@twinsun.com>
51630 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
51631 rather than tab, after '#' in shell-script copyright notices.
51632 Suggested by Bruno Haible.
51634 2003-08-15 Paul Eggert <eggert@twinsun.com>
51636 * config/srclist-update: Use three spaces, rather than tab, after '#'
51637 in shell-script copyright notices. Suggested by Bruno Haible.
51638 Remove unnecessary parenthesization in regular expression.
51640 2003-08-15 Jim Meyering <jim@meyering.net>
51642 Merge from coreutils.
51643 * lib/xgethostname.c: Include <stdlib.h>.
51644 (xghostname): Don't exit for anything other than memory-related
51645 failure; just return NULL.
51646 * lib/userspec.c: Include "posixver.h".
51647 (parse_user_spec): Accept `.' as a separator only
51648 in pre-POSIX-200112 mode.
51649 * lib/strtoimax.c: Use #elif rather than #else #if.
51650 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
51651 Remove function, now that we can rely on a working tzset function.
51652 [!_LIBC]: Ensure that the required autoconf test has been run.
51653 [!defined _NL_CURRENT && HAVE_STRFTIME]:
51654 Use underlying_strftime for %r.
51655 * lib/sha.c: Merge in some clean-up and optimization changes from
51657 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
51658 Ensure that it is a multiple of 64.
51659 Rearrange loop exit tests so as to avoid performing an
51660 additional fread after encountering an error or EOF.
51661 * lib/realloc.c: Update copyright date.
51663 2003-08-15 Jim Meyering <jim@meyering.net>
51664 and Paul Eggert <eggert@twinsun.com>
51666 Merge from coreutils.
51667 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
51668 member but strut utmpx does not. Needed for AIX 4.3.3.
51669 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
51671 2003-08-15 Jim Meyering <jim@meyering.net>
51672 and Paul Eggert <eggert@cs.ucla.edu>
51674 Merges from coreutils, etc.
51675 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
51676 Require gl_FUNC_TZSET_CLOBBER.
51677 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
51678 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
51681 2003-08-14 Paul Eggert <eggert@twinsun.com>
51683 Help the merge from coreutils.
51684 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
51685 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
51686 * m4/tzset.m4: Use it too.
51688 2003-08-14 Paul Eggert <eggert@twinsun.com>
51690 * modules/tzset: New file.
51692 2003-08-14 Jim Meyering <jim@meyering.net>
51694 Merges from coreutils.
51695 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
51696 variable names, rather than @FNMATCH_H@.
51697 * modules/alloca: Likewise for $(ALLOCA_H).
51699 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
51700 the three copies of the literal target, `fnmatch.h'.
51701 * modules/alloca (alloca.h): Likewise.
51703 2003-08-14 Jim Meyering <jim@meyering.net>
51705 Merge from coreutils.
51706 * m4/tzset.m4: New file.
51707 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
51708 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
51709 otherwise, AIX 5.1 systems would end up using the latter.
51710 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
51711 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
51712 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
51713 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
51715 2003-08-14 Jim Meyering <jim@meyering.net>
51717 Merge from coreutils.
51718 * lib/obstack.h: Whitespace changes.
51719 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
51720 and xcalloc return values.
51721 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
51722 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
51723 hang on OSF/1 5.1 for DIR on both local and remote file systems.
51724 Reported by (and fix confirmed by) Nelson H. F. Beebe.
51725 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
51727 Use mntctl's return value to drive the entry-processing loop, since
51728 we can't rely on the value of the vmt_length member in the last
51729 entry. On some systems doing so could result in exhausting
51730 virtual memory. Based in part on a patch from Mike Jetzer.
51732 2003-08-14 Jim Meyering <jim@meyering.net>
51733 and Paul Eggert <eggert@twinsun.com>
51735 Merges from coreutils, plus other fixes.
51736 * lib/physmem.c: Merge in portability changes from gcc/libiberty
51737 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
51738 for credits and details. Thanks to Kaveh Ghazi for helping
51739 to keep these files in sync.
51740 (ARRAY_SIZE): Define it.
51741 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
51742 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
51743 (memcasecmp): Don't assume size_t fits in unsigned int.
51744 Remove casts and duplicate code.
51745 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
51746 (memcpy): Remove definition.
51747 Merge in some clean-up and optimization changes from glibc.
51748 [BLOCKSIZE]: Move definition to top of file.
51749 Ensure that it is a multiple of 64.
51750 Rearrange loop exit tests so as to avoid performing an
51751 additional fread after encountering an error or EOF.
51752 * lib/md5.h (md5_uintptr): Define.
51753 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
51754 return to the initial working directory. Preserve errno
51756 * lib/idcache.c: Include "xalloc.h".
51757 (xmalloc, xrealloc): Remove decls.
51758 (getuser): Remove casts no longer required in C89.
51759 * lib/human.c: Include stdio.h, for sprintf.
51760 * lib/group-member.c: Include "xalloc.h".
51761 (xmalloc, xrealloc): Remove decls.
51762 (get_group_info): Remove casts no longer required in C89.
51763 * lib/getusershell.c (readname): Remove casts no longer required in
51765 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
51766 * lib/getline.c: Whitespace fix, from coreutils.
51768 2003-08-13 Paul Eggert <eggert@twinsun.com>
51770 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
51773 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
51774 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
51775 Undo previous (whitespace-only) change.
51777 2003-08-13 Paul Eggert <eggert@twinsun.com>
51779 * lib/exclude.c: Include <ctype.h>
51780 (IN_CTYPE_DOMAIN): New macro.
51781 (is_space): New fn.
51782 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
51785 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
51786 Undo previous (whitespace-only) change.
51788 2003-08-13 Paul Eggert <eggert@twinsun.com>
51790 * config/srclist-update: Change update back to the old behavior,
51791 leaving whitespace alone. Use one 'sed' command rather than a
51793 (fixlicense): Now a variable, not a function.
51794 (remove_trailing_blanks): Remove.
51795 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
51796 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
51797 Undo previous (whitespace-only) change.
51799 2003-08-12 Paul Eggert <eggert@twinsun.com>
51801 Merge from coreutils.
51802 * modules/euidaccess: Add lib_SOURCES, include for new
51805 2003-08-12 Paul Eggert <eggert@twinsun.com>
51807 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
51808 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
51809 Normalize leading white space and remove trailing white space.
51811 Merge from coreutils
51812 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
51814 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
51815 0.12.1. These files are now being upgraded automatically by
51816 ../config/srclist-update.
51818 2003-08-12 Paul Eggert <eggert@twinsun.com>
51820 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
51821 Normalize leading white space and remove trailing white space.
51822 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
51823 notice, as per ../config/srclist-update.
51825 Merge from coreutils.
51826 * lib/euidaccess.h: New file.
51827 * lib/euidaccess.c: Include it.
51828 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
51829 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
51830 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
51832 2003-08-12 Paul Eggert <eggert@twinsun.com>
51834 * config/srclist-update: Add copyright notice.
51835 (remove_id_lines, remove_trailing_blanks): New constants.
51836 (fixfile): Use them to normalize spacing a bit in copied files.
51837 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
51838 Normalize leading white space and remove trailing white space.
51840 * config/texinfo.tex: Sync with texinfo.
51842 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
51843 strtoul.c from libc, to merge coreutils whitespace changes.
51845 * config/srclist.txt: Get the following m4 files from gettext:
51846 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
51847 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
51848 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
51851 2003-08-12 Karl Berry <karl@gnu.org>
51853 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
51856 2003-08-11 Paul Eggert <eggert@twinsun.com>
51858 * modules/gnu-source, m4/gnu-source.m4:
51859 Remove; we're assuming Autoconf 2.54 or later now.
51860 Suggested by Bruno Haible.
51861 * MODULES.html.sh (func_all_modules): Remove gnu-source.
51863 2003-08-11 Bruno Haible <bruno@clisp.org>
51865 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
51867 2003-08-11 Bruno Haible <bruno@clisp.org>
51869 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
51870 (vasnprintf): Use it instead of wcslen.
51872 2003-08-11 Bruno Haible <bruno@clisp.org>
51874 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
51875 value to ensure that _Bool promotes to int. Use #define for _Bool when
51876 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
51878 2003-08-10 Karl Berry <karl@gnu.org>
51880 * lib/regex.h: update from libc (whitespace fix).
51882 2003-08-09 Paul Eggert <eggert@twinsun.com>
51884 Merge some files from coreutils. These changes were
51885 originally made by Jim Meyering.
51886 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
51887 many older Unixes require this.
51888 * lib/alloca.c (alloca): Remove cast to argument of free;
51889 no longer needed in C89.
51890 * lib/alloca_.h, regex.h: Fix white space to match
51891 what GNU indent does.
51893 2003-08-09 Paul Eggert <eggert@twinsun.com>
51895 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
51896 apparently Emacs's Unicode mode got confused before my 2003-08-05
51899 2003-08-08 Paul Eggert <eggert@twinsun.com>
51901 * m4/extensions.m4: New file.
51902 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
51903 Require gl_USE_SYSTEM_EXTENSIONS.
51904 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
51905 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
51907 2003-08-08 Paul Eggert <eggert@twinsun.com>
51909 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
51910 * modules/extensions, modules/gnu-source: New files.
51911 * modules/timespec, modules/unlocked-io: Depend on extensions.
51913 2003-08-07 Paul Eggert <eggert@twinsun.com>
51915 * modules/restrict: New file.
51916 * MODULES.html.sh (func_all_modules): Add restrict.
51917 * modules/regex: Depend on restrict.
51919 2003-08-07 Paul Eggert <eggert@twinsun.com>
51921 * m4/restrict.m4: New file.
51922 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
51924 2003-08-07 Bruno Haible <bruno@clisp.org>
51926 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
51927 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
51929 2003-08-07 Bruno Haible <bruno@clisp.org>
51931 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
51932 makes the module 'getndelim2' compatible with the module 'getline'.
51934 2003-08-05 Paul Eggert <eggert@twinsun.com>
51936 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
51937 byte with "\201" to avoid glitches when editing that source file
51938 with multi-gnome-terminal.
51940 2003-08-05 Paul Eggert <eggert@twinsun.com>
51942 * lib/bumpalloc.h: Remove.
51944 2003-08-05 Paul Eggert <eggert@twinsun.com>
51946 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
51947 * modules/bumpalloc: Remove.
51949 2003-08-04 Paul Eggert <eggert@twinsun.com>
51951 * lib/getloadavg.c: Change copyright notice and spacing to conform to
51954 Merge from coreutils.
51955 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
51957 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
51958 from Karl Berry, implemented by Jim Meyering.
51959 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
51960 from Dmitry V. Levin.
51961 Remove anachronistic cast of xrealloc.
51962 * lib/fnmatch_.h (__const): Remove. Use 'const'.
51963 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
51964 type. Otherwise, it wouldn't compile with at least /bin/cc on
51965 ymp-cray-unicos9.0.2.X.
51966 Combine two mostly-identical uses of alloca into one.
51967 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
51969 2003-08-04 Dave Love <d.love@dl.ac.uk>
51973 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
51974 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
51975 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
51976 obsolete NLIST_NAME_UNION.
51977 [__GNU__]: Undef BSD and FSCALE.
51978 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
51980 2003-08-03 Paul Eggert <eggert@twinsun.com>
51982 * lib/stdbool_.h (_Bool): Make it signed char, instead of
51983 an enum type, so that it's guaranteed to promote to int. See:
51984 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
51986 2003-08-03 Karl Berry <karl@gnu.org>
51988 * config/depcomp: update from automake.
51990 2003-07-31 Paul Eggert <eggert@twinsun.com>
51992 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
51993 (strerror): Don't assume that a printable int fits in 14 bytes.
51995 2003-07-31 Bruno Haible <bruno@clisp.org>
51997 * modules/getpass-gnu: New file.
51998 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
52000 2003-07-31 Bruno Haible <bruno@clisp.org>
52002 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
52004 2003-07-24 Karl Berry <karl@gnu.org>
52006 * config/missing: update from automake.
52008 2003-07-24 Derek Robert Price <derek@ximbiot.com>
52009 Bruno Haible <bruno@clisp.org>
52011 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
52012 * lib/getline.c (getline, getdelim): Likewise.
52013 Remove _GNU_SOURCE define; now it's defined in config.h through
52016 2003-07-23 Karl Berry <karl@gnu.org>
52018 * config/config.sub: update from prep.
52020 2003-07-22 Paul Eggert <eggert@twinsun.com>
52022 * modules/xalloc (Depends-on): Add exitfail.
52023 * modules/xmemcoll: Likewise.
52025 2003-07-22 Paul Eggert <eggert@twinsun.com>
52027 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
52028 over-parenthesization in macros.
52030 Sync with coreutils.
52032 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
52035 Use `exit_failure' for xalloc and xmemcoll instead of their own
52036 private exit-failure variables.
52037 * lib/xalloc.h (xalloc_exit_failure): Remove.
52038 * lib/xmalloc.c: Likewise. Include exitfail.h.
52039 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
52040 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
52041 * lib/xmemcoll.c: Likewise. Include exitfail.h.
52042 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
52044 2003-07-20 Jim Meyering <jim@meyering.net>
52046 * modules/closeout (Depends-on): Add exitfail.
52047 Suggestion from Bruno Haible.
52049 2003-07-19 Karl Berry <karl@gnu.org>
52051 * config/config.sub: update from prep.
52053 2003-07-18 Paul Eggert <eggert@twinsun.com>
52055 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
52057 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
52058 to test that it can stand by itself. Include "exitfail.h".
52059 Clients should set exit_failure instead.
52060 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
52062 2003-07-18 Bruno Haible <bruno@clisp.org>
52064 * modules/getndelim2: New file.
52065 * modules/getline: Share files with module getndelim2.
52066 * modules/getnline: Depend on getndelim2 instead of sharing files with
52067 it. Add getnline.c to lib_SOURCES.
52068 * MODULES.html.sh (func_all_modules): Add getndelim2.
52070 2003-07-18 Bruno Haible <bruno@clisp.org>
52072 * m4/getndelim2.m4: New file.
52073 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
52074 invoke gl_PREREQ_GETNDELIM2.
52075 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
52076 gl_PREREQ_GETNDELIM2.
52077 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
52080 2003-07-18 Bruno Haible <bruno@clisp.org>
52082 * lib/getndelim2.h: New file.
52083 * lib/getndelim2.c: Make into a module of its own. Include config.h,
52085 (getndelim2): Make non-static. Change return type to ssize_t.
52086 * lib/getline.h: Change argument names.
52087 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
52088 * lib/getnline.c: Include getndelim2.h.
52090 2003-07-18 Andreas Schwab <schwab@suse.de>
52092 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
52094 2003-07-17 Karl Berry <karl@gnu.org>
52096 * config/config.sub: update from prep.
52098 2003-07-17 Bruno Haible <bruno@clisp.org>
52100 * modules/getnline: New file.
52101 * modules/getline: Add lib/getndelim2.c to source file list.
52102 * MODULES.html.sh (func_all_modules): Add getnline.
52104 2003-07-17 Bruno Haible <bruno@clisp.org>
52106 * m4/getnline.m4: New file.
52108 2003-07-17 Bruno Haible <bruno@clisp.org>
52110 * m4/Makefile.am.in: Remove file.
52111 * m4/Makefile.am: Remove file.
52112 * m4/Makefile.in: Remove file.
52114 2003-07-17 Bruno Haible <bruno@clisp.org>
52116 * lib/getnline.h: New file.
52117 * lib/getnline.c: New file.
52118 * lib/getndelim2.c: New file, extracted from getline.c.
52119 (getndelim2): Renamed from getdelim2, with added nmax argument.
52120 * lib/getline.c: Include getndelim2.c.
52121 (getdelim2): Moved out to getndelim2.c.
52122 (getline, getdelim): Update.
52124 2003-07-17 Bruno Haible <bruno@clisp.org>
52126 * lib/Makefile.am: Remove file.
52127 * lib/Makefile.in: Remove file.
52129 2003-07-17 Bruno Haible <bruno@clisp.org>
52131 * configure.in: Remove file.
52132 * Makefile.in: Remove file.
52134 2003-07-17 Bruno Haible <bruno@clisp.org>
52136 * MODULES.html.sh: Put the </BODY> right before </HTML>.
52138 2003-07-16 Karl Berry <karl@gnu.org>
52140 * config/srclist-update: was running fixlicense twice, which caused
52141 texinfo.tex to be nullified for some reason. Simplify,
52142 $gplsrc is no longer needed as far as I can see?
52144 2003-07-16 Jim Meyering <jim@meyering.net>
52146 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
52148 2003-07-15 Paul Eggert <eggert@twinsun.com>
52150 * config/srclist.txt: Get the following files from gettext-runtime/intl
52151 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
52152 ref-del.sin. From Bruno Haible.
52153 * config/srclist-update (fixfile): Change grep pattern again, since the
52154 previous fix didn't work (there was another trailing $). Use
52155 '[$]' to escape the $s.
52157 2003-07-15 Karl Berry <karl@gnu.org>
52159 * lib/vasnprintf.c: update from gettext.
52161 2003-07-15 Karl Berry <karl@gnu.org>
52163 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
52164 gets expanded when surrounded by '$'.
52166 2003-07-15 Jim Meyering <jim@meyering.net>
52168 * modules/save-cwd: Don't depend on error. From Derek Price.
52170 2003-07-15 Jim Meyering <jim@meyering.net>
52172 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
52174 2003-07-14 Simon Josefsson <jas@extundo.com>
52176 * modules/mempcpy: New file.
52177 * MODULES.html.sh (func_all_modules): Add mempcpy.
52179 2003-07-14 Simon Josefsson <jas@extundo.com>
52181 * m4/mempcpy.m4: New file.
52183 2003-07-14 Simon Josefsson <jas@extundo.com>
52185 * lib/mempcpy.h: New file.
52186 * lib/mempcpy.c: New file.
52188 2003-07-14 Paul Eggert <eggert@twinsun.com>
52190 * modules/getdate, modules/posixtm: Depend on mktime.
52192 2003-07-14 Paul Eggert <eggert@twinsun.com>
52194 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
52195 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
52196 unicodeio.c, unicodeio.h, unlocked-io.h:
52197 Switch from LGPL to GPL.
52199 2003-07-14 Paul Eggert <eggert@twinsun.com>
52201 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
52202 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
52203 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
52204 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
52205 vasprintf.c, vasprintf.h: Regenerate. These files are now being
52206 updated automatically by ../config/srclist-update. This changes
52207 their license from LPGL to GPL.
52209 2003-07-14 Paul Eggert <eggert@twinsun.com>
52211 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
52212 assumed to refer to the root of the most recent stable gettext version.
52213 * config/srclistvars.sh: Add defaults for eggert.
52214 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
52215 Match "This program" as well as "The program". This is needed
52218 2003-07-14 Jim Meyering <jim@meyering.net>
52220 Don't emit diagnostics. Let callers do that.
52221 * lib/save-cwd.c: Don't include "error.h".
52222 (save_cwd): Don't call error. Ensure that errno is valid
52223 when returning nonzero.
52225 * lib/save-cwd.h (restore_cwd): Update prototype.
52226 * lib/save-cwd.c (restore_cwd): Remove two parameters.
52227 Simplify. Don't call error upon failure. Let callers do that.
52228 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
52229 when auditing is enabled. But don't bother updating the #if.
52231 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
52233 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
52234 it breaks C++ compilation.
52235 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
52237 2003-07-10 Simon Josefsson <jas@extundo.com>
52239 * modules/strchrnul (Makefile.am): Add strchrnul.h.
52241 2003-07-10 Jim Meyering <jim@meyering.net>
52243 * m4/clock_time.m4: Remove trailing blank.
52244 * m4/intmax_t.m4: Likewise.
52246 2003-07-10 Jim Meyering <jim@meyering.net>
52248 * lib/vasnprintf.c: Remove trailing blanks.
52249 Make cpp indentation consistent.
52251 2003-07-09 Paul Eggert <eggert@twinsun.com>
52253 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
52254 posixver.c, strftime.c, strnlen.c, strverscmp.c:
52255 Switch from LGPL to GPL.
52257 2003-07-09 Paul Eggert <eggert@twinsun.com>
52259 * config/srclist.txt: Sort sublists. Add
52260 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
52261 that differ from gnulib for one reason or another; we'd like this list
52262 to be smaller but for now let's document what we have.
52264 2003-07-08 Paul Eggert <eggert@twinsun.com>
52266 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
52267 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
52268 and sweeter "eval x=$x".
52269 * config/srclist.txt: Get lib/argp* from glibc.
52271 2003-07-07 Paul Eggert <eggert@twinsun.com>
52273 * lib/mktime.c: Fix some boundary cases and remove need for floating
52276 Issue a compile-time diagnostic if time_t is floating point, or if
52277 two's complement arithmetic is not in effect, or if arithmetic
52278 right shift does not propagate the sign. These assumptions were
52279 all in the original code but they weren't checked.
52281 (TIME_T_MIDPOINT, verify): New macros.
52282 (__isleap): Remove; it has integer overflow problems.
52283 (leapyear): New function, without those problems.
52284 (ydhms_tm_diff): Remove; splitting into two parts.
52285 (ydhms_diff): New function, containing the arithmetic part of
52286 the old ydhms_tm_diff function. Issue a compile-time
52287 diagnostic if we are not using C99 integer division.
52288 Avoid casts when possible.
52289 (guess_time_tm): New function, containing the checking part of
52290 the old ydhms_tm_diff function. Return the new value, rather than
52291 the difference between it and the old. Accept a new argument T
52292 so that *T specifies the old value. Check for overflow in the result.
52294 (__mktime_internal): Use a time_t offset, not a long int offset.
52295 This undoes the 2003-06-04 change, which is no longer needed now
52296 that we have better overflow checking.
52297 (localtime_offset): Likewise.
52299 (__mktime_internal): Avoid harmful overflow on hosts where time_t
52300 and long are 64-bit but int is only 32-bit.
52301 (ydhms_diff): Use long int to store year1 and yday1.
52302 Issue a compile-time diagnostic if long int is not wide enough.
52304 (__mktime_internal): Use long int to store adjusted year and yday.
52305 Use plain C rather than preprocessor commands, if that doesn't
52307 Check for overflow (and try to repair) after each probe
52308 rather than checking only at the very end. This avoids some bugs
52309 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
52310 does not equal GMT offset at maximum time).
52311 Use integer to check for overflow rather than floating point; this
52312 is more portable to non-IEEE hosts, and is a tad faster.
52313 When we detect that we are oscillating between two values,
52314 don't check whether tm_isdst has the requested value, since
52315 we already know the answer. When tm_isdst has the wrong value,
52316 use a different heuristic to find the right one, based on the
52317 extreme values actually observed in practice in tz2003a,
52318 rather than the (overly optimistic) "previous 3 calendar quarters".
52320 (not_equal_tm, print_tm, check_result): Use "const T" rather than
52321 "T const" to accommodate glibc style.
52322 (check_result): Use less-confusing report format. "long" -> "long int.
52324 Don't loop if the iteration overflows time_t.
52325 Allow a negative step in the iteration.
52327 2003-07-06 Karl Berry <karl@gnu.org>
52329 * config/depcomp: update from automake.
52330 * config/config.sub: update from prep.
52332 2003-07-03 Karl Berry <karl@gnu.org>
52334 * config/config.guess: update from prep.
52336 2003-07-01 Paul Eggert <eggert@twinsun.com>
52338 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
52339 xreadlink.c now includes it unconditionally.
52341 2003-07-01 Paul Eggert <eggert@twinsun.com>
52343 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
52344 having it depend on HAVE_SYS_TYPES_H.
52346 2003-07-01 Bruno Haible <bruno@clisp.org>
52348 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
52349 <sys/types.h> should be sufficient.
52350 Reported by Paul Eggert.
52352 2003-06-26 Karl Berry <karl@gnu.org>
52354 * config/depcomp: update from automake.
52356 2003-06-26 Bruno Haible <bruno@clisp.org>
52358 * modules/human: Depend on module stdbool.
52360 2003-06-25 Bruno Haible <bruno@clisp.org>
52362 * modules/readlink: New file.
52363 * modules/xreadlink: Depend on it.
52364 * MODULES.html.sh (func_all_modules): Add readlink.
52366 2003-06-25 Bruno Haible <bruno@clisp.org>
52368 * m4/readlink.m4: New file.
52370 2003-06-25 Bruno Haible <bruno@clisp.org>
52372 * lib/readlink.c: New file.
52374 2003-06-22 Karl Berry <karl@gnu.org>
52376 * config/srclist.txt: update mkinstalldirs from automake.
52377 * config/mkinstalldirs: update.
52379 2003-06-22 Bruno Haible <bruno@clisp.org>
52381 Portability to mingw32.
52382 * m4/ssize_t.m4: New file, from GNU gettext.
52383 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
52384 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
52386 2003-06-22 Bruno Haible <bruno@clisp.org>
52388 * modules/safe-read: Add m4/ssize_t.m4.
52389 * modules/xreadlink: Add m4/ssize_t.m4.
52391 2003-06-20 Bruno Haible <bruno@clisp.org>
52393 Assume C89, so PARAMS isn't needed.
52394 * lib/unicodeio.h (PARAMS): Remove.
52395 * lib/unicodeio.c: Don't use PARAMS.
52397 2003-06-18 Karl Berry <karl@gnu.org>
52399 * config/config.{guess,sub}: update from prep.
52401 2003-06-18 Jim Meyering <jim@meyering.net>
52403 Merge changes from coreutils.
52404 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
52405 Remove explicit declarations of xmalloc and realloc.
52407 (read_utmp): Remove anachronistic cast of xmalloc.
52409 2003-06-17 Paul Eggert <eggert@twinsun.com>
52411 Assume C89, so PARAMS isn't needed.
52412 * lib/backupfile.h (PARAMS): Remove. All uses removed.
52413 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
52414 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
52415 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
52416 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
52417 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
52418 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
52419 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
52420 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
52421 lib/xstrtod.h, lib/xstrtol.h: Likewise.
52422 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
52423 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
52424 no longer needed. Anyway, config.h should always be included before any
52427 2003-06-11 Simon Josefsson <jas@extundo.com>
52429 * modules/sysexits: New file.
52430 * MODULES.html.sh (func_all_modules): Add sysexits.
52432 2003-06-11 Simon Josefsson <jas@extundo.com>
52434 * lib/sysexit_.h: New file.
52436 2003-06-11 Derek Price <derek@ximbiot.com>
52438 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
52441 2003-06-11 Bruno Haible <bruno@clisp.org>
52443 * m4/sysexits.m4: New file.
52445 2003-06-10 Simon Josefsson <jas@extundo.com>
52447 * lib/argp.h: New file, from glibc.
52448 * lib/argp-ba.c: New file, from glibc.
52449 * lib/argp-eexst.c: New file, from glibc.
52450 * lib/argp-fmtstream.c: New file, from glibc.
52451 * lib/argp-fmtstream.h: New file, from glibc.
52452 * lib/argp-fs-xinl.c: New file, from glibc.
52453 * lib/argp-help.c: New file, from glibc.
52454 * lib/argp-namefrob.h: New file, from glibc.
52455 * lib/argp-parse.c: New file, from glibc.
52456 * lib/argp-pv.c: New file, from glibc.
52457 * lib/argp-pvh.c: New file, from glibc.
52458 * lib/argp-xinl.c: New file, from glibc.
52460 2003-06-10 Simon Josefsson <jas@extundo.com>
52462 * modules/strchrnul: New file.
52464 2003-06-10 Simon Josefsson <jas@extundo.com>
52466 * modules/argp: New file.
52468 2003-06-10 Simon Josefsson <jas@extundo.com>
52470 * m4/strchrnul.m4: New file.
52472 2003-06-10 Simon Josefsson <jas@extundo.com>
52474 * lib/strchrnul.h: New file.
52475 * lib/strchrnul.c: New file.
52477 2003-06-10 Bruno Haible <bruno@clisp.org>
52479 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
52481 2003-06-07 Karl Berry <karl@gnu.org>
52483 * config/config.{guess,sub}: update from prep.
52485 2003-06-07 Jim Meyering <jim@meyering.net>
52487 * modules/strtod: Use $(...) notation, not @...@ for
52488 AC_REPLACE'd variables.
52489 * modules/localcharset: Likewise.
52491 2003-06-07 Jim Meyering <jim@meyering.net>
52493 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
52494 in place of my name in the copyright comment.
52495 Remove definition and uses of __P.
52498 * lib/stat.c: Don't declare xmalloc explicitly.
52499 Instead, include "xalloc.h".
52500 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
52501 xrealloc, and xcalloc return values.
52502 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
52504 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
52506 2003-06-07 Bruno Haible <bruno@clisp.org>
52508 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
52509 avoid AC_CONFIG_LINKS.
52510 * modules/fnmatch (Makefile.am): Use explicit creation rule for
52511 fnmatch.h, to avoid AC_CONFIG_LINKS.
52512 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
52514 2003-06-07 Bruno Haible <bruno@clisp.org>
52516 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
52517 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
52518 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52520 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
52521 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52524 2003-06-06 Jim Meyering <jim@meyering.net>
52526 Merge from coreutils.
52527 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
52528 Consolidate declarations and initializations of *_base* locals.
52530 Merge from coreutils.
52531 This avoids a core dump on systems without GNU putenv,
52532 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
52533 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
52534 (unsetenv): New static function, from GNU libc.
52535 (rpl_putenv): Use it.
52537 * lib/modechange.c: Remove trailing blanks.
52539 Merge from coreutils.
52540 * lib/fsusage.c: Remove declaration of statfs.
52541 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
52543 * lib/posixtm.c: Include <stdbool.h> unconditionally.
52545 2003-06-06 Jim Meyering <jim@meyering.net>
52547 * lib/stdbool_.h: Renamed from stdbool.h.in.
52549 2003-06-06 Jim Meyering <jim@meyering.net>
52550 Bruno Haible <bruno@clisp.org>
52552 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
52553 Adjust Makefile.am snippet not to redirect directly to target.
52554 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
52556 2003-06-05 Paul Eggert <eggert@twinsun.com>
52558 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
52559 mismatch, look in future quarters as well as past. This fixes a
52560 bug when processing fall-backwards gaps immediately after a long
52561 period of daylight-saving time.
52563 * lib/mktime.c: Assume freestanding C89 or better.
52564 (HAVE_LIMITS_H): Remove. Assume it's 1.
52565 (__P): Remove; not used.
52566 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
52567 (mktime, not_equal_tm, print_tm, check_result,
52568 main): Use prototypes. Use const * where appropriate.
52569 (main): Fix typo in testing code that uncovered by above changes.
52570 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
52572 2003-06-04 Paul Eggert <eggert@twinsun.com>
52574 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
52575 locale.h, localeconv. This merges changes from coreutils.
52577 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
52578 It can be removed after the next Autoconf is released.
52579 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
52582 2003-06-04 Paul Eggert <eggert@twinsun.com>
52584 * lib/mktime.c: Fix Debian bug 177940
52585 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
52586 (localtime_offset): Now long int, not time_t, because we want it
52587 to be guaranteed to be signed. All uses changed.
52588 (__mktime_internal): If overflow would occur when adding offset,
52591 Merge 'human' changes from coreutils. Rewrite to support
52592 locale-specific notations like thousands separators.
52593 * lib/human.c: Simplify authorship notice.
52594 Include human.h immediately after config.h.
52595 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
52596 <limits.h>: Do not include, since human.h does.
52597 (SIZE_MAX, UINTMAX_MAX): New macros.
52598 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
52599 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
52600 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
52601 (power_letter): Renamed from suffixes.
52602 (generate_suffix_backwards): Remove.
52603 (adjust_value): Now takes int style (because of human.h changes)
52604 and long double value (for greater precision on some platforms).
52605 (group_number): New function.
52606 (human_readable): Use it. Use integer options, not enum.
52607 Put the options before the sizes in the arg list.
52608 Support all the new options.
52609 The old human_readable function has been removed;
52610 use inttostr.h instead.
52611 (human_readable, default_block_size, humblock):
52612 Use uintmax_t, not int, for block sizes.
52613 (human_readable_inexact, block_size_types): Remove.
52614 (block_size_opts): New constant.
52615 (human_options): Renamed from human_block_size, with new signature
52616 that allows block sizes up to UINTMAX_MAX. All callers changed.
52617 * lib/human.h: Add copyright and authorship notice.
52618 Include <limits.h> and <stdbool.h> unconditionally.
52619 (PARAMS): Remove. All uses removed.
52620 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
52621 (enum human_inexact_style): Remove tag; now a nameless enum.
52622 (human_floor, human_ceiling, human_round_to_even): Now have
52623 values 2, 0, 1 rather than -1, 1, 0.
52624 (human_group_digits, human_suppress_point_zero, human_autoscale,
52625 human_base_1024, human_SI, human_B): New constants.
52626 (human_readable_inexact, human_block_size): Remove.
52627 (human_readable): Size args are now uintmax_t, not int.
52628 (human_options): New decl.
52630 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
52631 unnecessary now that we assume C89 or better. This change
52632 imported from coreutils.
52634 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
52635 arbitrarily. This is the same patch as 2003-05-28, but it got lost
52636 in the 2003-05-30 sync from glibc.
52638 .h files should stand alone, but we shouldn't include <sys/types.h>
52639 if we can get away with just <stddef.h>.
52641 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
52642 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
52643 rather than <sys/types.h>, as we merely need size_t.
52644 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
52646 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
52647 Include <stdio.h>, to get FILE.
52648 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
52649 memcasecmp.h has included <stddef.h> and all we need is size_t.
52650 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
52651 our interface, instead of including <sys/types.h>
52653 2003-06-04 Paul Eggert <eggert@twinsun.com>
52655 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
52656 now, as glibc mktime is buggy on non-glibc systems.
52658 2003-06-03 Karl Berry <karl@gnu.org>
52660 * config/config.sub: update from prep.
52662 2003-06-02 Paul Eggert <eggert@twinsun.com>
52665 Fix some minor time-related bugs with POSIX time arguments.
52666 Some valid time stamps were being rejected (notably -1, and
52667 time stamps before 1900 on 64-bit hosts). And some invalid
52668 time stamps were being accepted, e.g. September 31.
52670 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
52671 that we can return (time_t) -1 successfully.
52672 * lib/posixtm.c: Likewise.
52673 [HAVE_STDBOOL_H]: Include <stdbool.h>.
52674 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
52675 (t): Remove static var.
52676 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
52677 of static var. All uses changed.
52678 (year): Do not reject years before 1900; they can occur with
52680 (posix_time_parse): Do not check for out-of-range components;
52681 that is now the caller's responsibility, since our checks were
52682 only approximations.
52683 (posixtime): Use mktime to check for out-of-range components,
52684 since it knows them exactly.
52685 If mktime returns (time_t) -1, check whether an error actually occurred
52686 by invoking localtime on -1.
52687 (main) [TEST_POSIXTIME]: Check for input data errors, and report
52688 posixtime failures better.
52689 Improve the test data (in comments only).
52691 2003-06-02 Karl Berry <karl@gnu.org>
52693 * config/mkinstalldirs (version): new variable.
52694 (--version): new option.
52695 (usage): improve message.
52697 2003-05-30 Karl Berry <karl@gnu.org>
52699 * lib/mktime.c: update from libc.
52701 2003-05-30 Bruno Haible <bruno@clisp.org>
52703 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
52704 * config/config.rpath: Upgrade to gettext-0.12.1.
52706 2003-05-30 Bruno Haible <bruno@clisp.org>
52708 * m4/gettext.m4: Upgrade to gettext-0.12.1.
52709 * m4/nls.m4: New file, from gettext-0.12.1.
52710 * m4/po.m4: New file, from gettext-0.12.1.
52711 * m4/progtest.m4: Upgrade to gettext-0.12.1.
52713 2003-05-30 Bruno Haible <bruno@clisp.org>
52715 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
52716 * lib/localcharset.h: Likewise.
52717 * lib/localcharset.c: Likewise.
52719 2003-05-29 Karl Berry <karl@gnu.org>
52721 * config/config.rpath: update from gettext.
52723 2003-05-28 Paul Eggert <eggert@twinsun.com>
52725 Assume the headers required for C89 freestanding compilers.
52726 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
52727 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
52728 * m4/human.m4 (gl_HUMAN): Likewise.
52729 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
52730 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
52731 * m4/userspec.m4 (gl_USERSPEC): Likewise.
52732 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
52733 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52734 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
52736 2003-05-28 Paul Eggert <eggert@twinsun.com>
52738 Assume the headers required for C89 freestanding compilers.
52739 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
52740 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
52741 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
52742 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
52743 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
52744 define, since <limits.h> is guaranteed to do that.
52745 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
52746 * lib/exclude.c: Include <stdbool.h> unconditionally.
52747 * lib/tempname.c: Include <stddef.h> unconditionally.
52748 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
52749 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
52750 <stddef.h> does that.
52751 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
52752 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
52753 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
52755 * lib/xstrtol.c: Likewise.
52756 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
52757 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
52759 * lib/addext.c (addext): Use assignment rather than cast, to avoid
52760 warnings on some platforms.
52762 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
52765 2003-05-26 Jim Meyering <jim@meyering.net>
52767 Merge in a change from coreutils:
52768 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
52769 that is guaranteed to be `no'. Use `no_such_member' to indicate
52770 that condition, rather than `-1' which is slightly misleading.
52771 Change the name of the cache variable to have the gl_ prefix.
52772 Prompted by a patch from Richard Dawe for DJGPP.
52774 2003-05-24 Karl Berry <karl@gnu.org>
52776 * config/config.guess: update from prep.
52778 2003-05-22 Karl Berry <karl@gnu.org>
52780 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
52782 2003-05-20 Karl Berry <karl@gnu.org>
52784 * config/config.guess: update from prep.
52786 2003-05-18 Karl Berry <karl@gnu.org>
52788 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
52789 might actually be set by the user.
52791 * config/depcomp, install-sh, mdate-sh: update from automake.
52793 2003-05-17 Bruno Haible <bruno@clisp.org>
52795 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
52796 invalid expansion for AC_EGREP_CPP.
52797 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
52798 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
52799 Suggested by Akim Demaille <akim@epita.fr> in
52800 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
52802 2003-05-12 Jim Meyering <jim@meyering.net>
52804 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
52805 the space-padded-by-default conversion specifiers, %e, %k, %l.
52807 2003-05-12 Bruno Haible <bruno@clisp.org>
52809 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
52810 the string is longer than 4 KB.
52812 2003-05-11 Karl Berry <karl@gnu.org>
52814 * config/config.{guess,sub}: update from prep.
52816 2003-05-09 Bruno Haible <bruno@clisp.org>
52818 * modules/error: Add m4/strerror_r.m4 to file list.
52820 2003-05-03 Bruno Haible <bruno@clisp.org>
52822 Upgrade to Unicode-4.0.
52823 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
52824 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
52825 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
52826 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
52827 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
52828 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
52829 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
52830 Change width of U+E0100..U+E01EF from 1 to 0.
52832 2003-04-25 Jim Meyering <jim@meyering.net>
52834 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
52835 of type size_t, not int.
52837 2003-04-25 Bruno Haible <bruno@clisp.org>
52839 * lib/copy-file.c: Include <stddef.h>, for size_t.
52841 2003-04-21 Paul Eggert <eggert@twinsun.com>
52843 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
52844 code which expansion is under static control. Patch imported from
52845 Akim Demaille's patch to Bison; see
52846 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
52848 2003-04-14 Bruno Haible <bruno@clisp.org>
52850 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
52852 2003-04-11 Jim Meyering <jim@meyering.net>
52854 Merge changes from Coreutils.
52856 2003-03-22 Jim Meyering <jim@meyering.net>
52858 * lib/strftime.c (widen): Cast alloca return value to proper type.
52860 2003-01-19 Ulrich Drepper <drepper@redhat.com>
52863 * lib/strftime.c (my_strftime): Handle very large width
52864 specifications for numeric values correctly. Improve checks for
52867 2003-01-19 Jim Meyering <jim@meyering.net>
52869 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
52871 (nl_get_alt_digit) [! defined my_strftime]: Define.
52872 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
52873 _nl_get_alt_digit and _nl_get_walt_digit.
52875 * lib/strftime.c (my_strftime): Merge in locale-related changes from
52876 libc. These changes have no effect outside of _LIBC.
52878 2003-04-10 Bruno Haible <bruno@clisp.org>
52880 * modules/findprog: New file.
52881 * MODULES.html.sh (func_all_modules): Add it.
52883 2003-04-10 Bruno Haible <bruno@clisp.org>
52885 * m4/findprog.m4: New file.
52886 * m4/eaccess.m4: New file.
52888 2003-04-10 Bruno Haible <bruno@clisp.org>
52890 * lib/findprog.h: New file, from GNU gettext.
52891 * lib/findprog.c: New file, from GNU gettext.
52893 2003-04-05 Jim Meyering <jim@meyering.net>
52895 Merge changes from Coreutils.
52897 * lib/exclude.h (PARAMS): Remove definition and uses.
52898 * lib/exclude.c: Remove uses of `PARAMS'.
52900 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
52901 Add test-cases for DOS filenames. Declare program_name.
52902 (main): Set up program_name. Patch by Rich Dawe.
52904 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
52906 Use mntctl's return value to drive the entry-processing loop, since
52907 we can't rely on the value of the vmt_length member in the last
52908 entry. On some systems doing so could result in exhausting
52909 virtual memory. Based in part on a patch from Mike Jetzer.
52911 2003-04-04 Bruno Haible <bruno@clisp.org>
52913 * modules/linebreak: New file.
52914 * MODULES.html.sh (func_all_modules): Add it.
52916 2003-04-04 Bruno Haible <bruno@clisp.org>
52918 * m4/linebreak.m4: New file.
52920 2003-04-04 Bruno Haible <bruno@clisp.org>
52922 * lib/linebreak.h: New file, from GNU gettext.
52923 * lib/linebreak.c: New file, from GNU gettext with slight
52925 * lib/lbrkprop.h: New file, from GNU gettext.
52927 2003-04-03 Bruno Haible <bruno@clisp.org>
52929 * modules/utf8-ucs4: New file.
52930 * modules/utf16-ucs4: New file.
52931 * modules/ucs4-utf8: New file.
52932 * modules/ucs4-utf16: New file.
52933 * MODULES.html.sh (func_all_modules): Add them.
52935 2003-04-03 Bruno Haible <bruno@clisp.org>
52937 * m4/utf-ucs4.m4: New file.
52938 * m4/ucs4-utf.m4: New file.
52940 2003-04-03 Bruno Haible <bruno@clisp.org>
52942 * lib/utf8-ucs4.h: New file, from GNU gettext.
52943 * lib/utf16-ucs4.h: New file, from GNU gettext.
52944 * lib/ucs4-utf8.h: New file, from GNU gettext.
52945 * lib/ucs4-utf16.h: New file, from GNU gettext.
52947 2003-04-02 Bruno Haible <bruno@clisp.org>
52949 * modules/binary-io: New file.
52950 * MODULES.html.sh (func_all_modules): Add it.
52952 2003-04-02 Bruno Haible <bruno@clisp.org>
52954 * lib/binary-io.h: New file, from GNU gettext.
52956 2003-04-01 Bruno Haible <bruno@clisp.org>
52958 * modules/pathname: New file.
52959 * MODULES.html.sh (func_all_modules): Add it.
52961 2003-04-01 Bruno Haible <bruno@clisp.org>
52963 * lib/pathname.h: New file, from GNU gettext.
52964 * lib/concatpath.c: New file, from GNU gettext.
52966 2003-03-30 Bruno Haible <bruno@clisp.org>
52968 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
52970 2003-03-30 Bruno Haible <bruno@clisp.org>
52972 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
52973 function chown() doesn't exist.
52975 2003-03-28 Bruno Haible <bruno@clisp.org>
52977 * modules/copy-file: New file.
52978 * MODULES.html.sh (func_all_modules): Add it.
52980 2003-03-28 Bruno Haible <bruno@clisp.org>
52982 * m4/copy-file.m4: New file.
52984 2003-03-28 Bruno Haible <bruno@clisp.org>
52986 * lib/copy-file.h: New file, from GNU gettext.
52987 * lib/copy-file.c: New file, from GNU gettext.
52989 2003-03-18 Jim Meyering <jim@meyering.net>
52991 * lib/quote.c (quote_n): Fix typo in comment.
52993 2003-03-18 Bruno Haible <bruno@clisp.org>
52995 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
52997 * m4/onceonly_2_57.m4: Likewise.
52999 2003-03-17 Bruno Haible <bruno@clisp.org>
53001 * m4/onceonly.m4: Require autoconf 2.54 or newer.
53002 (m4_quote): Remove macro.
53003 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
53005 2003-03-14 Jim Meyering <jim@meyering.net>
53007 Merge changes from Coreutils.
53008 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
53009 to be const, in order to avoid warnings.
53010 (obstack_room): Likewise.
53011 (obstack_empty_p): Likewise.
53013 2003-03-14 Bruno Haible <bruno@clisp.org>
53015 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
53016 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
53018 2003-03-13 Paul Eggert <eggert@twinsun.com>
53020 Merge changes from Bison.
53021 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
53022 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
53023 when compiling Bison 1.875's `bitset bset = obstack_alloc
53024 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
53025 * lib/hash.c: Include <stdbool.h> unconditionally.
53027 2003-03-13 Paul Eggert <eggert@twinsun.com>
53029 * m4/onceonly.m4 (m4_quote): New macro.
53030 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
53031 Quote AC_FOREACH variable-expansions properly.
53033 2003-03-13 Paul Eggert <eggert@twinsun.com>
53035 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
53037 2003-03-09 Paul Eggert <eggert@twinsun.com>
53039 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
53040 Reported by Bruce Becker; see:
53041 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
53043 2003-03-03 Paul Eggert <eggert@twinsun.com>
53044 Bruno Haible <bruno@clisp.org>
53046 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
53047 Reported by John Hughes, see
53048 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
53050 2003-02-20 Bruno Haible <bruno@clisp.org>
53052 * MODULES.html.sh (func_all_modules): Add poll.
53054 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
53056 * modules/poll: New file.
53058 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
53060 * lib/poll_.h: New file.
53061 * lib/poll.c: New file.
53063 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
53065 * m4/poll.m4: New file.
53067 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
53069 * modules/mathl: New file.
53071 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
53073 * lib/mathl.h: New file.
53074 * lib/acosl.c: New file.
53075 * lib/asinl.c: New file.
53076 * lib/atanl.c: New file.
53077 * lib/ceill.c: New file.
53078 * lib/cosl.c: New file.
53079 * lib/expl.c: New file.
53080 * lib/floorl.c: New file.
53081 * lib/frexpl.c: New file.
53082 * lib/ldexpl.c: New file.
53083 * lib/logl.c: New file.
53084 * lib/sincosl.c: New file.
53085 * lib/sinl.c: New file.
53086 * lib/sqrtl.c: New file.
53087 * lib/tanl.c: New file.
53088 * lib/trigl.c: New file.
53089 * lib/trigl.h: New file.
53091 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
53093 * m4/mathl.m4: New file.
53095 2003-02-18 Bruno Haible <bruno@clisp.org>
53097 * MODULES.html.sh (func_all_modules): Add mathl.
53099 2003-02-17 Bruno Haible <bruno@clisp.org>
53101 * modules/mkdtemp: New module.
53102 * MODULES.html.sh (func_all_modules): Add it.
53104 2003-02-17 Bruno Haible <bruno@clisp.org>
53106 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
53108 2003-02-17 Bruno Haible <bruno@clisp.org>
53110 * lib/mkdtemp.h: New file, from GNU gettext.
53111 * lib/mkdtemp.c: New file, from GNU gettext.
53113 2003-02-02 Jim Meyering <jim@meyering.net>
53115 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
53118 2003-01-31 Bruno Haible <bruno@clisp.org>
53120 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
53122 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
53124 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
53126 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
53129 2003-01-31 Bruno Haible <bruno@clisp.org>
53131 * lib/rename.c: #undef rename before defining rpl_rename.
53132 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
53134 2003-01-30 Bruno Haible <bruno@clisp.org>
53136 * modules/vasnprintf, modules/vasprintf: New modules.
53137 * MODULES.html.sh (func_all_modules): Add them.
53139 2003-01-30 Bruno Haible <bruno@clisp.org>
53141 * m4/signed.m4: New file, from GNU gettext.
53142 * m4/longdouble.m4: New file, from GNU gettext.
53143 * m4/wchar_t.m4: New file, from GNU gettext.
53144 * m4/wint_t.m4: New file, from GNU gettext.
53145 * m4/vasnprintf.m4: New file.
53146 * m4/vasprintf.m4: New file.
53148 2003-01-30 Bruno Haible <bruno@clisp.org>
53150 * lib/printf-args.h: New file, from GNU gettext.
53151 * lib/printf-args.c: New file, from GNU gettext.
53152 * lib/printf-parse.h: New file, from GNU gettext.
53153 * lib/printf-parse.c: New file, from GNU gettext.
53154 * lib/vasnprintf.h: New file, from GNU gettext.
53155 * lib/vasnprintf.c: New file, from GNU gettext.
53156 * lib/asnprintf.c: New file, from GNU gettext.
53157 * lib/vasprintf.h: New file, from GNU gettext with modifications.
53158 * lib/vasprintf.c: New file, from GNU gettext.
53159 * lib/asprintf.c: New file, from GNU gettext.
53161 2003-01-29 Bruno Haible <bruno@clisp.org>
53163 * modules/stpncpy: New module.
53164 * MODULES.html.sh (func_all_modules): Add it.
53166 2003-01-29 Bruno Haible <bruno@clisp.org>
53168 * m4/stpncpy.m4: New file.
53170 2003-01-29 Bruno Haible <bruno@clisp.org>
53172 * lib/stpncpy.h: New file, from GNU gettext with modifications.
53173 * lib/stpncpy.c: New file, from GNU gettext with modifications.
53175 2003-01-28 Bruno Haible <bruno@clisp.org>
53177 * modules/c-ctype: New module.
53178 * MODULES.html.sh (func_all_modules): Add it.
53180 2003-01-28 Bruno Haible <bruno@clisp.org>
53182 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
53184 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
53187 2003-01-27 Bruno Haible <bruno@clisp.org>
53189 * modules/xsetenv: New module.
53190 * MODULES.html.sh (func_all_modules): Add it.
53192 2003-01-27 Bruno Haible <bruno@clisp.org>
53194 * lib/xsetenv.h: New file, from GNU gettext.
53195 * lib/xsetenv.c: New file, from GNU gettext.
53197 2003-01-23 Jim Meyering <jim@meyering.net>
53199 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
53200 from working on systems without dirfd (at least Irix and OSF1/Tru64).
53202 2003-01-23 Bruno Haible <bruno@clisp.org>
53204 * modules/minmax: New module.
53205 * MODULES.html.sh (func_all_modules): Add it.
53207 2003-01-23 Bruno Haible <bruno@clisp.org>
53209 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
53212 2003-01-22 Bruno Haible <bruno@clisp.org>
53214 * modules/exit: New module.
53215 * MODULES.html.sh (func_all_modules): Add it.
53217 2003-01-22 Bruno Haible <bruno@clisp.org>
53219 * lib/exit.h: New file, from GNU gettext.
53221 2003-01-19 Bruno Haible <bruno@clisp.org>
53223 * gnulib-tool: Recognize option --extract-maintainer.
53224 (func_get_maintainer): New function.
53225 * modules/*: Add Maintainer entry.
53227 2003-01-16 Jim Meyering <jim@meyering.net>
53229 * m4/regex.m4: The `regex' struct is both input and output.
53230 Initialize it before each use. Patch by Tim Waugh.
53232 2003-01-16 Bruno Haible <bruno@clisp.org>
53234 * MODULES.html.sh: Add a table of contents. Add the module name as
53235 leftmost column. Add hyperlinks.
53237 2003-01-15 Bruno Haible <bruno@clisp.org>
53239 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
53241 2003-01-15 Bruno Haible <bruno@clisp.org>
53243 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
53244 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
53247 2003-01-15 Bruno Haible <bruno@clisp.org>
53249 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
53251 2003-01-15 Bruno Haible <bruno@clisp.org>
53253 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
53254 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
53256 2003-01-14 Jim Meyering <jim@meyering.net>
53258 * lib/same.c (same_name): Tweak a comment.
53260 2003-01-14 Bruno Haible <bruno@clisp.org>
53262 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
53263 when a string comparison is sufficient.
53265 2003-01-14 Bruno Haible <bruno@clisp.org>
53267 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
53270 2003-01-14 Bruno Haible <bruno@clisp.org>
53272 * lib/hash-pjw.c: Add comment about low quality of this function.
53274 2003-01-13 Bruno Haible <bruno@clisp.org>
53276 * modules/stpcpy: Distribute lib/stpcpy.h.
53277 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
53279 2003-01-13 Bruno Haible <bruno@clisp.org>
53281 * modules/*: Add a description.
53282 * modules/strpbrk: Fix Makefile.am snippet.
53283 * modules/strtoimax: Fix dependencies.
53284 * modules/strtoumax: Likewise.
53286 2003-01-13 Bruno Haible <bruno@clisp.org>
53288 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
53289 * modules/alloca (Makefile.am): All object files depend on alloca.h.
53290 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
53292 2003-01-13 Bruno Haible <bruno@clisp.org>
53294 * gnulib-tool (func_create_testdir): Store config/* files in the main
53296 * config.rpath: Move to ...
53297 * config/config.rpath: ... here.
53298 * modules/gettext: Contains config/config.rpath, not config.rpath.
53299 * modules/iconv: Likewise.
53301 2003-01-12 Paul Eggert <eggert@twinsun.com>
53303 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53304 to avoid collisions with libcurses and libreadline.
53306 * m4/getstr.m4: Remove.
53307 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
53309 2003-01-12 Paul Eggert <eggert@twinsun.com>
53311 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53312 to avoid collisions with libcurses and libreadline.
53314 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
53315 * lib/getstr.h, getstr.c: Remove.
53316 * lib/getline.c: Include "getline.h", to check interface.
53317 Move body of old getstr.c here: this defines MIN_CHUNK and
53318 declares getdelim2, which is renamed from getstr.
53319 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
53321 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
53323 * lib/linebuffer.h: Likewise.
53324 (readline): Remove backward-compatibility macro.
53326 2003-01-12 Paul Eggert <eggert@twinsun.com>
53328 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53329 to avoid collisions with libcurses and libreadline.
53331 * MODULES.html.sh: Remove getstr.
53332 * modules/getline: Depend on unlocked-io, not getstr.
53334 2003-01-12 Jim Meyering <jim@meyering.net>
53336 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
53338 2003-01-10 Bruno Haible <bruno@clisp.org>
53340 * modules/alloca: Change Makefile.am requirements. Simplify Include
53341 requirements. Add lib/alloca_.h to file list.
53343 2003-01-10 Bruno Haible <bruno@clisp.org>
53345 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
53347 2003-01-10 Bruno Haible <bruno@clisp.org>
53349 * lib/alloca_.h: New file.
53350 * lib/getdate.y: Unconditionally include alloca.h.
53351 * lib/makepath.c: Likewise.
53352 * lib/setenv.c: Likewise.
53353 * lib/userspec.c: Likewise.
53355 2003-01-09 Karl Berry <karl@gnu.org>
53357 * MODULES.html.sh: include `dirname $0` in PATH, to find
53360 2003-01-09 Bruno Haible <bruno@clisp.org>
53362 * modules/stdbool: Change configure.ac, Makefile.am requirements.
53363 Simplify Include requirements. Add lib/stdbool.h.in to file list.
53365 2003-01-09 Bruno Haible <bruno@clisp.org>
53367 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
53369 2003-01-09 Bruno Haible <bruno@clisp.org>
53371 * lib/stdbool.h.in: New file.
53373 2003-01-09 Bruno Haible <bruno@clisp.org>
53375 * gnulib-tool (func_all_modules): Ignore files ending in ~.
53376 * MODULES.html.sh: Likewise.
53378 2003-01-08 Jim Meyering <jim@meyering.net>
53380 * lib/full-write.c: Undefine and define-away `const' after inclusion
53381 of errno.h, not before. Suggestion from Bruno Haible.
53383 2003-01-08 Bruno Haible <bruno@clisp.org>
53385 * modules/full-read: Depend on full-write.
53387 2003-01-08 Bruno Haible <bruno@clisp.org>
53389 * lib/safe-read.c: Include specification header first, to ensure its
53391 * lib/full-write.c: Likewise.
53393 2003-01-07 Jim Meyering <jim@meyering.net>
53395 * lib/full-write.c: Rework so that it may serve to define full_read,
53397 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
53399 2003-01-07 Bruno Haible <bruno@clisp.org>
53401 * lib/strtoimax.c: Include <stdint.h> as an alternative to
53403 * lib/xstrtol.h: Likewise.
53404 * lib/xstrtoimax.c: Likewise.
53405 * lib/xstrtoumax.c: Likewise.
53406 * lib/human.h: Likewise.
53408 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
53409 on systems that have <inttypes.h> but not <stdint.h>.
53411 2003-01-07 Bruno Haible <bruno@clisp.org>
53413 * MODULES.html.sh: Add copyright notice.
53414 (missed_files): Omit CVS directory entries.
53415 (func_module): Make it work with sed-3.02.
53416 * MODULES.txt: Remove file.
53418 2003-01-06 Jim Meyering <jim@meyering.net>
53420 * lib/version-etc.c: Update year in translatable copyright string.
53422 2003-01-03 Karl Berry <karl@gnu.org>
53424 * config/config.{guess,sub}: update from prep.
53426 2003-01-02 Karl Berry <karl@gnu.org>
53428 * doc/COPYING.DOC: belatedly updated to 1.2.
53430 2003-01-01 Karl Berry <karl@gnu.org>
53432 * gnulib-tool (func_verify_module): report module name $module in
53433 error message, not $1.
53434 * gnulib-tool (create-testdir): don't complain if destdir couldn't
53435 be created, only if it doesn't exist.
53436 * gnulib-tool (last_checkin_date): don't expand the $Date here.
53438 2002-12-31 Paul Eggert <eggert@twinsun.com>
53440 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
53442 2002-12-31 Paul Eggert <eggert@twinsun.com>
53444 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
53445 memcmp if strcoll doesn't work.
53447 2002-12-31 Bruno Haible <bruno@clisp.org>
53449 * lib/utime.c (utime_null): No need to call ftruncate if the file was
53452 2002-12-31 Bruno Haible <bruno@clisp.org>
53454 * lib/memcoll.c (STRCOLL): New macro.
53457 2002-12-31 Bruno Haible <bruno@clisp.org>
53459 * lib/localcharset.h: New file.
53460 * lib/localcharset.c: Include it.
53461 * lib/unicodeio.c: Likewise.
53463 2002-12-31 Bruno Haible <bruno@clisp.org>
53465 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
53466 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
53468 2002-12-31 Bruno Haible <bruno@clisp.org>
53470 * lib/getline.h: Include <stddef.h>, for size_t.
53472 * lib/unicodeio.h: Include <stddef.h>, for size_t.
53473 * lib/unicodeio.c: Don't include <stddef.h>.
53475 2002-12-31 Bruno Haible <bruno@clisp.org>
53477 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
53480 2002-12-24 Karl Berry <karl@gnu.org>
53482 * config/config.guess: update from prep.
53484 2002-12-24 Bruno Haible <bruno@clisp.org>
53486 General infrasructure.
53487 * m4/README: Rewritten.
53488 * m4/onceonly.m4: New file.
53489 * m4/onceonly_2_57.m4: New file.
53492 * m4/atexit.m4: New file.
53495 * m4/strtod.m4: New file.
53498 * m4/strtol.m4: New file.
53501 * m4/strtoul.m4: New file.
53504 * m4/memchr.m4: New file.
53507 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
53508 (jm_FUNC_MEMCMP): Invoke it.
53511 * m4/memcpy.m4: New file.
53514 * m4/memmove.m4: New file.
53517 * m4/memset.m4: New file.
53520 * m4/strcspn.m4: New file.
53523 * m4/strpbrk.m4: New file.
53526 * m4/strstr.m4: New file.
53529 * m4/strerror.m4: New file.
53532 * m4/mktime.m4: Renamed from jm-mktime.m4.
53533 (gl_PREREQ_MKTIME): New macro.
53534 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
53537 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
53538 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
53539 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
53542 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
53543 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
53544 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
53547 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
53548 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
53549 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
53551 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
53554 * m4/xalloc.m4: New file.
53557 * m4/alloca.m4: New file.
53560 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
53561 (jm_FUNC_PUTENV): Invoke it.
53564 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
53565 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
53566 when invoked twice.
53567 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
53571 * m4/memrchr.m4: New file.
53574 * m4/stpcpy.m4: New file.
53577 * m4/strcase.m4: New file.
53580 * m4/strdup.m4: New file.
53583 * m4/strnlen.m4: New file.
53586 * m4/strndup.m4: New file.
53589 * m4/xstrtod.m4: New file.
53592 * m4/xstrtol.m4: New file.
53595 * m4/getdate.m4: New file.
53597 Module unlocked-io.
53598 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
53599 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
53600 * m4/jm-glibc-io.m4n: Remove file.
53602 Module long-options.
53603 * m4/long-options.m4: New file.
53606 * m4/md5.m4: New file.
53609 * m4/sha.m4: New file.
53612 * m4/getstr.m4: New file.
53615 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
53616 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
53617 <sys/types.h>, for size_t. Use the function name gnu_getline, not
53618 simply getline. Infoke gl_PREREQ_GETLINE.
53621 * m4/obstack.m4: New file.
53624 * m4/hash.m4: New file.
53627 * m4/readtokens.m4: New file.
53630 * m4/strverscmp.m4: New file.
53633 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
53637 * m4/strtoll.m4: New file.
53640 * m4/strtoull.m4: New file.
53643 * m4/strtoimax.m4: New file.
53646 * m4/strtoumax.m4: New file.
53649 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
53650 jm_AC_PREREQ_XSTRTOIMAX.
53651 Moved the strtol prerequisites to strtol.m4.
53652 Moved the strtoll prerequisites to strtoll.m4.
53653 Moved the strtoimax prerequisites to strtoimax.m4.
53656 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
53657 jm_AC_PREREQ_XSTRTOUMAX.
53658 Moved the strtoul prerequisites to strtoul.m4.
53659 Moved the strtoull prerequisites to strtoull.m4.
53660 Moved the strtoumax prerequisites to strtoumax.m4.
53663 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
53664 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
53667 * m4/dup2.m4: New file.
53670 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
53671 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
53674 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
53675 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
53677 Module gettimeofday.
53678 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
53679 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
53680 gl_PREREQ_GETTIMEOFDAY.
53683 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
53684 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
53687 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
53688 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
53689 jm_AC_TYPE_UINTMAX_T.
53690 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
53693 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
53694 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
53697 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
53698 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
53701 * m4/timespec.m4 (gl_TIMESPEC): New macro.
53702 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
53703 * m4/st_mtim.m4: Indentation.
53706 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
53707 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
53708 gl_PREREQ_NANOSLEEP.
53711 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
53712 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
53713 (gl_REGEX): New macro.
53716 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
53717 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
53720 * m4/rmdir.m4: New file.
53723 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
53724 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
53725 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
53728 * m4/dirname.m4: New file.
53731 * m4/getopt.m4: New file.
53733 Module unistd-safer.
53734 * m4/unistd-safer.m4: New file.
53737 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
53739 (gl_PREREQ_FNMATCH_EXTRA): New macro.
53740 (gl_FUNC_FNMATCH_POSIX): New macro.
53741 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
53742 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
53746 * m4/exclude.m4: New file.
53749 * m4/human.m4: New file.
53755 * m4/backupfile.m4: New file.
53756 * m4/d-ino.m4: Indentation.
53759 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
53760 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
53761 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
53764 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
53768 * m4/euidaccess.m4: New file.
53771 * m4/file-type.m4: New file.
53774 * m4/fileblocks.m4: New file.
53777 * m4/filemode.m4: New file.
53780 * m4/isdir.m4: New file.
53783 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
53784 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
53787 * m4/makepath.m4: New file.
53790 * m4/modechange.m4: New file.
53793 * m4/mountlist.m4: New file.
53794 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
53797 Module path-concat.
53798 * m4/path-concat.m4: New file.
53801 * m4/pathmax.m4: New file.
53804 * m4/same.m4: New file.
53807 * m4/save-cwd.m4: New file.
53810 * m4/savedir.m4: New file.
53813 * m4/xgetcwd.m4: New file.
53814 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
53817 * m4/xreadlink.m4: New file.
53820 * m4/safe-read.m4: New file.
53823 * m4/safe-write.m4: New file.
53826 * m4/closeout.m4: New file.
53828 Module stdio-safer.
53829 * m4/stdio-safer.m4: New file.
53832 * m4/getpass.m4: New file.
53835 * m4/getugroups.m4: New file.
53837 Module group-member.
53838 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
53839 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
53842 * m4/idcache.m4: New file.
53845 * m4/userspec.m4: New file.
53848 * m4/clock_time.m4: New file.
53849 * m4/gettime.m4: New file.
53852 * m4/settime.m4: New file.
53855 * m4/posixtm.m4: New file.
53857 Module gethostname.
53858 * m4/gethostname.m4: New file.
53861 * m4/canon-host.m4: New file.
53864 * m4/codeset.m4: New file, from gettext-0.11.5.
53865 * m4/gettext.m4: New file, from gettext-0.11.5.
53866 * m4/glibc21.m4: New file, from gettext-0.11.5.
53867 * m4/iconv.m4: New file, from gettext-0.11.5.
53868 * m4/intdiv0.m4: New file, from gettext-0.11.5.
53869 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
53870 * m4/inttypes.m4: New file, from gettext-0.11.5.
53871 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
53872 * m4/isc-posix.m4: New file, from gettext-0.11.5.
53873 * m4/lcmessage.m4: New file, from gettext-0.11.5.
53874 * m4/lib-ld.m4: New file, from gettext-0.11.5.
53875 * m4/lib-link.m4: New file, from gettext-0.11.5.
53876 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
53877 * m4/progtest.m4: New file, from gettext-0.11.5.
53878 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
53879 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
53880 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
53882 Module localcharset.
53883 * m4/localcharset.m4: New file.
53885 Module hard-locale.
53886 * m4/hard-locale.m4: New file.
53889 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
53891 * m4/mbrtowc.m4: Add comment.
53894 * m4/memcasecmp.m4: New file.
53897 * m4/memcoll.m4: New file.
53900 * m4/unicodeio.m4: New file.
53903 * m4/rpmatch.m4: New file.
53906 * m4/yesno.m4: New file.
53909 * m4/exitfail.m4: New file.
53912 * m4/c-stack.m4 (gl_C_STACK): New macro.
53913 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
53916 * m4/error.m4 (gl_ERROR): New macro.
53917 (jm_PREREQ_ERROR): Use onceonly macros.
53920 * m4/fatal.m4: New file.
53923 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
53924 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
53926 Module getpagesize.
53927 * m4/getpagesize.m4: New file.
53929 Module getusershell.
53930 * m4/getusershell.m4: New file.
53933 * m4/physmem.m4: New file.
53936 * m4/posixver.m4: New file.
53939 * m4/quotearg.m4: New file.
53942 * m4/quote.m4: New file.
53945 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
53948 * m4/sig2str.m4: New file.
53951 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
53953 * m4/intmax_t.m4: New file.
53954 * m4/d-type.m4: Indentation.
53955 * m4/jm-macros.m4: Update.
53956 * m4/prereq.m4 (jm_PREREQ): Update.
53957 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
53958 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
53959 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
53960 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
53961 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
53962 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
53963 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
53964 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
53965 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
53966 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
53967 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
53968 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
53969 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
53970 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
53971 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
53972 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
53973 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
53974 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
53975 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
53977 2002-12-24 Bruno Haible <bruno@clisp.org>
53979 * MODULES.txt: Update according to m4/ changes.
53982 * config.rpath: New file, from gettext-0.11.5.
53984 * modules/*: New module descriptions.
53985 * gnulib-tool: New file.
53986 * MODULES.html.sh: New file.
53988 2002-12-21 Karl Berry <karl@gnu.org>
53990 * doc/fdl.texi: update to version 1.2.
53992 2002-12-19 Karl Berry <karl@gnu.org>
53994 * config/config.guess: update from prep.
53996 2002-12-18 Bruno Haible <bruno@clisp.org>
53998 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
53999 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
54001 2002-12-17 Bruno Haible <bruno@clisp.org>
54003 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
54004 stdlib.h, string.h.
54006 2002-12-17 Bruno Haible <bruno@clisp.org>
54008 * lib/canon-host.c (strdup): Remove unused declaration.
54010 * lib/fsusage.c: Include full_read.h.
54011 (get_fs_usage): Use full_read instead of safe_read.
54013 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
54015 2002-12-12 Karl Berry <karl@gnu.org>
54017 * config/config.guess: update from prep.
54019 2002-12-11 Bruno Haible <bruno@clisp.org>
54021 * m4/setenv.m4: New file, from gettext-0.11.5.
54023 2002-12-11 Bruno Haible <bruno@clisp.org>
54025 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
54027 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
54030 2002-12-11 Bruno Haible <bruno@clisp.org>
54032 * setenv.c (alloca): Fall back to malloc.
54033 (freea): New macro.
54034 (setenv): Use freea() to free memory allocated with alloca().
54036 2002-11-13 Bruno Haible <bruno@clisp.org>
54038 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
54039 function declarations.
54040 * unsetenv.c (unsetenv): Likewise.
54042 2002-03-04 Bruno Haible <bruno@clisp.org>
54044 Portability to AIX 4.3.3.
54045 * unsetenv.c: New file, extracted from setenv.c.
54046 * setenv.c: Move the unsetenv() function to unsetenv.c.
54048 2001-12-20 Bruno Haible <bruno@clisp.org>
54050 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
54051 use malloc instead. For SunOS 4.
54053 2001-12-11 Bruno Haible <bruno@clisp.org>
54055 * setenv.c: Declare alloca.
54056 (compar_fn_t): New typedef.
54057 (KNOWN_VALUE, STORE_VALUE): Use it.
54059 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
54062 2002-12-10 Paul Eggert <eggert@twinsun.com>
54064 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
54065 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
54066 Choose values that are less likely to collide with system fnmatch
54068 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
54069 defined (e.g., a pure POSIX system).
54070 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
54071 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
54073 2002-12-06 Paul Eggert <eggert@twinsun.com>
54075 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
54076 a pain in practice to deal with generated m4 files. This change
54077 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
54079 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
54080 and jm-glibc-io.m4, as they are no longer a special case.
54081 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
54082 kludge and the auto-generation stuff. Check only whether the
54083 functions are declared, not whether they exist, since older hosts
54084 that don't declare the functions can't use the optimization anyway.
54086 2002-12-06 Jim Meyering <jim@meyering.net>
54088 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
54090 Merge in changes from libc's misc/error.c, in preparation
54091 for the merge of gnulib's changes back into libc.
54093 * lib/error.c (_): Define only if not already defined.
54094 Move definition to follow all #include directives.
54095 Include unlocked-io.h only if !_LIBC.
54096 [_LIBC]: Include <libio/libioP.h>.
54097 [USE_IN_LIBIO]: Include <libio/iolibio.h>
54098 (fflush): Tweak definition to use INTUSE.
54101 2002-12-05 Paul Eggert <eggert@twinsun.com>
54103 * lib/alloca.c [defined emacs]: Include "lisp.h".
54104 (xalloc_die) [defined emacs]: New macro.
54105 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
54106 [! defined emacs]: Include <xalloc.h>.
54107 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
54108 (pointer): Typedef to POINTER_TYPE *.
54109 (malloc): Remove decl; we now always use xmalloc.
54110 (alloca): Use old-style definition, since Emacs needs this.
54111 Check for arithmetic overflow when computing combined size.
54113 2002-12-04 Paul Eggert <eggert@twinsun.com>
54115 Do not generate unlocked-io.h automatically, since it's easier to
54116 maintain it by hand.
54118 * lib/unlocked-io.h: New file, from GNU diffutils,
54119 but with proper copyright notice and attribution.
54120 * lib/gen-uio: Remove.
54121 * lib/Makefile.am: Add copyright notice.
54122 (libfetish_a_SOURCES): Add unlocked-io.h.
54123 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
54124 (DISTCLEANFILES, io_functions): Remove macros.
54125 (EXTRA_DIST): Remove gen_uio.
54126 (unlocked-io.h): Remove rule.
54128 2002-12-04 Jim Meyering <jim@meyering.net>
54130 Reflect the fact that stat.c and lstat.c are no longer generated.
54131 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
54132 (DISTCLEANFILES): Likewise.
54133 (EXTRA_DIST): Likewise.
54134 (all_local): Don't depend on stat.c or lstat.c.
54135 (stat.c, lstat.c): Remove rules.
54136 (EXTRA_DIST): Remove xstat.in.
54138 * lib/xstat.in: Remove file. Contents moved into stat.c.
54139 * lib/stat.c: New file. Contents mostly from xstat.in.
54140 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
54141 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
54143 * lib/safe-read.c: Rework so that it may serve to define safe_write,
54145 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
54147 2002-12-03 Jim Meyering <jim@meyering.net>
54149 * lib/safe-read.c, safe-write.c: Change variable names and comments,
54150 but not semantics, to minimize the differences between these two files.
54151 (safe_read): Change comment to mention SAFE_READ_ERROR.
54153 * lib/safe-read.c (IS_EINTR): Define.
54154 (safe_read): Use IS_EINTR in place of in-function cpp directives.
54156 2002-12-02 Jim Meyering <jim@meyering.net>
54158 * lib/safe-read.c (EINTR): Define.
54159 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
54160 (INT_MAX): Provide fallback.
54161 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
54163 * lib/safe-read.h (SAFE_READ_ERROR): Define.
54165 2002-12-02 Bruno Haible <bruno@clisp.org>
54167 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
54168 Define, taken from safe-read.c.
54169 (INT_MAX): Provide fallback.
54170 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
54171 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
54173 * lib/safe-read.c (EINTR): Remove definition.
54174 (safe_read): Don't use EINTR if it is absent.
54176 2002-12-01 Jim Meyering <jim@meyering.net>
54178 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
54180 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
54182 2002-11-27 Paul Eggert <eggert@twinsun.com>
54184 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
54185 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
54186 with `if (! (value < limit)) abort ();', for readability.
54188 2002-11-26 Karl Berry <karl@gnu.org>
54190 * lib/strdup.c: copy from libc again, with jim's ok.
54191 * lib/.cppi-disable: re-add strdup.c
54193 2002-11-25 Karl Berry <karl@gnu.org>
54195 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
54196 instead of "strtol.c".
54198 2002-11-25 Karl Berry <karl@gnu.org>
54200 * config/install-sh: update from automake for variable quoting, $0 in
54203 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
54204 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
54207 2002-11-25 Jim Meyering <jim@meyering.net>
54209 * lib/mktime.c: Sync from libc, now that it has the latest fix.
54211 2002-11-24 Karl Berry <karl@gnu.org>
54213 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
54214 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
54216 2002-11-24 Jim Meyering <jim@meyering.net>
54218 Update from coreutils:
54220 * lib/mktime.c: Merge in changes from libc.
54222 Avoid a link-time failure on some Linux systems.
54223 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
54225 (__mon_yday): Declare with the STATIC attribute.
54226 (__mktime_internal): Likewise.
54227 Based on a report from Greg Schafer.
54229 2002-11-23 Jim Meyering <jim@meyering.net>
54231 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
54232 Use `unsigned', not `int', as type of index.
54234 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
54236 * lib/fsusage.c: Remove unneeded parentheses around operands of
54239 2002-11-22 Paul Eggert <eggert@twinsun.com>
54241 * lib/quotearg.h: Allow multiple inclusion by surrounding with
54242 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
54243 so that we can be included first.
54244 (PARAMS): Remove; we now assume C89 or later. All uses removed.
54245 * lib/quotearg.c: Include quotearg.h immediately after config.h.
54246 No need to include stddef.h or sys/types.h any more.
54247 Surround local include files with "", not "<>".
54248 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
54249 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
54250 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
54251 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
54252 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
54253 (ISPRINT): Remove; no longer needed now that we assume C89.
54255 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
54258 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
54259 quotearg_char): Use SIZE_MAX rather than
54260 (size_t) -1 when we are talking about "infinity".
54262 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
54264 2002-11-22 Paul Eggert <eggert@twinsun.com>
54266 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
54267 hint that one should use `if (! x) abort ();' rather than `assert
54268 (x);', and anyway it's one less thing to worry about configuring.
54269 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
54270 hash_rehash, hash_insert): Use abort rather than assert.
54272 2002-11-22 Bruno Haible <bruno@clisp.org>
54274 * lib/safe-read.h: Assume C89. Add comments.
54275 (safe_read): Change return type to size_t.
54276 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
54277 byte counts > SSIZE_MAX correctly.
54278 * lib/safe-write.h: New file.
54279 * lib/safe-write.c: New file.
54280 * lib/full-read.h: New file.
54281 * lib/full-read.c: New file.
54282 * lib/full-write.h: Assume C89. Add comments.
54283 * lib/full-write.c: Include safe-write.h.
54284 (full_write): Rewritten to use safe_write.
54285 Suggested by Jim Meyering and Paul Eggert.
54287 2002-11-21 Jim Meyering <jim@meyering.net>
54289 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
54291 Merge in changes from the coreutils.
54293 2002-09-25 Paul Eggert <eggert@twinsun.com>
54294 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
54296 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
54297 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
54298 int. Work more efficiently if X is the same width as uintmax_t.
54299 Do not compare X to -1, to avoid bogus compiler warning.
54300 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
54301 Don't assume that f_frsize and f_bsize are the same type.
54303 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
54304 warning on FreeBSD.
54306 * lib/makepath.c (make_path): Restore umask *before* creating the final
54308 (make_path): Minor reformatting.
54310 * lib/xmalloc.c: Adjust to work with new autoconf macros,
54311 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
54312 HAVE_MALLOC/HAVE_REALLOC.
54314 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
54315 dummy ones. At least on GNU/Linux systems, `auto' means something
54317 From Michael Stone.
54319 2002-11-21 Bruno Haible <bruno@clisp.org>
54321 Remove case insensitive option matching.
54322 * lib/argmatch.h (argcasematch): Remove declaration.
54323 (ARGCASEMATCH): Remove macro.
54324 (__xargmatch_internal): Remove case_sensitive argument.
54325 (XARGMATCH): Update.
54326 (XARGCASEMATCH): Remove macro.
54327 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
54328 case_sensitive argument.
54329 (argcasematch): Remove function.
54330 (__xargmatch_internal): Remove case_sensitive argument.
54331 (main): Use XARGMATCH instead of XARGCASEMATCH.
54333 * lib/xmalloc.c: Change compile-time error message. Add comment about
54334 required autoconf version.
54336 2002-11-20 Paul Eggert <eggert@twinsun.com>
54338 Merge argmatch cleanups from Bison. Assume C89.
54340 * lib/argmatch.c: Include config.h here, not in argmatch.h.
54341 Include stdlib.h, for EXIT_FAILURE.
54342 Always include <string.h>, since we assume C89.
54343 (EXIT_FAILURE): Remove pre-C89 bug workaround.
54344 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
54345 Include <stddef.h> instead, since it's all we need for size_t.
54346 (PARAMS): Remove. All uses removed.
54347 (ARRAY_CARDINALITY): Do not bother to #undef.
54348 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
54349 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54350 Remove unnecessary parentheses.
54351 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54352 Insert necessary parentheses.
54353 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
54354 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
54356 2002-11-19 Bruno Haible <bruno@clisp.org>
54358 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
54359 * lib/mbswidth.h: Include <stddef.h>, for size_t.
54361 * lib/mbswidth.h (PARAMS): Remove macro.
54362 (mbswidth, mbsnwidth): Use ANSI C function declarations.
54363 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
54365 * lib/gcd.h (PARAMS): Remove macro.
54366 (gcd): Use ANSI C function declarations.
54367 * lib/gcd.c (gcd): Likewise.
54369 2002-11-15 Bruno Haible <bruno@clisp.org>
54371 * lib/strcspn.c: Include <stddef.h>.
54372 (strcspn): Use ANSI C function declaration. Change return type to
54374 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
54375 (strpbrk): Use NULL.
54376 * lib/strpbrk.h (PARAMS): Remove macro.
54377 (strpbrk): Use ANSI C function declaration.
54378 * lib/strstr.c: Don't include <sys/types.h>.
54379 * lib/strstr.h (PARAMS): Remove macro.
54380 (strstr): Use ANSI C function declarations.
54382 2002-11-14 Karl Berry <karl@gnu.org>
54384 * config/mkinstalldirs: `do' on separate line, instead of
54387 2002-11-06 Bruno Haible <bruno@clisp.org>
54389 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
54390 * lib/gcd.c (gcd): Likewise.
54392 2002-11-05 Bruno Haible <bruno@clisp.org>
54394 * lib/gcd.h: New file, from gettext-0.11.5.
54395 * lib/gcd.c: New file, from gettext-0.11.5.
54397 2002-11-05 Bruno Haible <bruno@clisp.org>
54399 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54400 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54401 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54402 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54404 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
54406 * lib/makepath.c: Include gettext.h instead of <locale.h> and
54409 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
54410 * lib/human.c: Include gettext.h instead of <libintl.h>.
54411 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
54412 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
54413 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
54414 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
54415 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
54416 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
54417 (textdomain): Remove definition.
54418 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
54420 * lib/long-options.c: Remove include of <libintl.h> and definition of
54422 * lib/same.c: Remove include of <libintl.h> and definition of _.
54424 2002-11-04 Owen Taylor <otaylor@redhat.com>
54426 * lib/config.charset: A few additions for Solaris.
54428 2002-11-04 Bruno Haible <haible@clisp.cons.org>
54430 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
54431 * lib/localcharset.c (locale_charset): Declare as extern "C".
54433 2002-11-04 Bruno Haible <haible@clisp.cons.org>
54435 * lib/config.charset: msdos in uk_UA uses CP1125.
54437 2002-11-04 Bruno Haible <bruno@clisp.org>
54439 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
54440 * lib/strcase.h: New file, from GNU gettext-0.11.5.
54441 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
54442 * lib/strstr.h: New file, from GNU gettext-0.11.5.
54443 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
54445 2002-11-04 Bruno Haible <bruno@clisp.org>
54447 * lib/localcharset.c (locale_charset): Don't return an empty string.
54449 2002-11-04 Bruno Haible <bruno@clisp.org>
54451 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
54454 2002-11-04 Bruno Haible <bruno@clisp.org>
54456 * lib/config.charset: Update for newest glibc. Add canonical names
54457 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
54459 2002-11-04 Bruno Haible <bruno@clisp.org>
54461 * lib/config.charset: Add support for NetBSD.
54463 2002-11-04 Bruno Haible <bruno@clisp.org>
54465 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
54467 2002-11-01 Bruno Haible <bruno@clisp.org>
54469 * configure.in: Add AC_CONFIG_AUX_DIR call.
54470 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
54472 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
54474 2002-09-28 Karl Berry <karl@gnu.org>
54476 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
54477 installed automake until the next release, since changes have been
54480 2002-09-25 Karl Berry <karl@gnu.org>
54482 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
54483 * lib/getopt*: copy from libc/posix.
54484 * lib/gettext.h: copy from gettext.
54485 * lib/.cppi-disable: add strdup.c, gettext.h.
54487 2002-09-25 Karl Berry <karl@gnu.org>
54489 * config/srclist.txt: enable gettext.h check.
54490 * config/config.{guess,sub}: update from prep.
54491 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
54492 from automake 1.6.3.
54495 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
54497 * regex.c (PATFETCH): Remove the translating fetch.
54498 (PATFETCH_RAW): Rename to PATFETCH.
54499 (set_image_of_range): New fun.
54500 (SET_RANGE_TABLE_WORK_AREA): Use it.
54501 (regex_compile): Don't translate the pattern chars so eagerly.
54502 Only do it when inserting an `exactn' bytecode or when handling
54504 (mutually_exclusive_p): Avoid empty statement.
54506 2002-07-06 Jim Meyering <meyering@lucent.com>
54508 * m4/README: Don't mention Makefile.am.in.
54509 Outline how I've tested changes to .m4 files. Yep, it's a pain.
54511 2002-07-01 Jim Meyering <meyering@lucent.com>
54513 * lib/c-stack.c: Include sys/time.h.
54514 From Volker Borchert.
54516 2002-06-26 Paul Eggert <eggert@twinsun.com>
54518 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
54520 2002-06-26 Paul Eggert <eggert@twinsun.com>
54522 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
54523 New macro. Use it uniformly instead of
54524 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
54525 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
54526 reported by Vin Shelton.
54528 2002-06-22 Paul Eggert <eggert@twinsun.com>
54530 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
54531 Do not assume SA_SIGINFO behavior.
54532 Bug reported by Jim Meyering on NetBSD 1.5.2.
54534 2002-06-22 Jim Meyering <meyering@lucent.com>
54536 * m4/c-stack.m4: New file, from diffutils-2.8.2.
54537 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
54539 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
54540 now that configure.ac uses AC_GNU_SOURCE.
54541 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
54542 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
54544 Update to latest tools. Suggestions from Paul Eggert.
54545 * m4/stdbool.m4: New file, from diffutils-2.8.2.
54546 * m4/gnu-source.m4: Update from diffutils-2.8.2.
54547 * m4/fnmatch.m4: Likewise.
54548 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
54549 to AC_HEADER_STDBOOL
54551 2002-06-22 Jim Meyering <meyering@lucent.com>
54553 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
54554 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
54556 2002-06-22 Jim Meyering <meyering@lucent.com>
54558 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
54560 * lib/exitfail.c, exitfail.h: Likewise.
54561 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
54563 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
54565 (EXTRA_DIST): Add fnmatch_loop.c.
54566 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
54568 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
54569 * lib/fnmatch.c: Update from diffutils-2.8.2.
54570 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
54571 * lib/fnmatch.h: Remove file.
54573 2002-06-21 Jim Meyering <meyering@lucent.com>
54575 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
54576 * m4/mbrtowc.m4: Likewise.
54578 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
54579 * m4/mbswidth.m4: Reflect name change:
54580 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
54581 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
54583 * m4/lib-link.m4: Update from gettext-0.11.2.
54584 * m4/gettext.m4: Likewise.
54586 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
54587 From Alfred M. Szmidt.
54589 2002-06-18 Paul Eggert <eggert@twinsun.com>
54591 * lib/file-type.h: Report an error if neither S_ISREG nor
54592 S_IFREG is defined, instead of using a test specific to glibc
54593 2.2. This should be safe, since POSIX requires S_ISREG and
54594 Unix Version 7 had S_IFREG. We don't need to check for
54595 <sys/types.h> since we don't use any symbols that it defines.
54597 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
54599 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
54600 $@-t, so that each temporary file name is unique and valid in the first
54601 8 characters, for operation under DOS.
54603 2002-06-15 Paul Eggert <eggert@twinsun.com>
54605 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
54607 2002-06-15 Jim Meyering <meyering@lucent.com>
54609 Work even with DJGPP 2.03, which lacks support for symlinks.
54611 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
54613 * lib/lchown.c (S_ISLNK): Likewise.
54615 2002-06-15 Jim Meyering <meyering@lucent.com>
54617 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
54618 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
54619 have been included before this file.
54621 2002-06-14 Jim Meyering <meyering@lucent.com>
54623 * lib/file-type.h: Use the version from diffutils-2.8.2.
54624 * lib/file-type.c: Likewise.
54626 2002-06-07 Jim Meyering <meyering@lucent.com>
54628 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
54629 They're needed at least for NetBSD 1.5.2.
54630 ($statxfs_includes): Include those same headers.
54631 ($statxfs_includes): Include sys/vfs.h if available.
54632 ($statxfs_includes): Likewise for sys/statvfs.h.
54633 Check for the following members in both structs statfs and statvfs:
54634 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
54636 2002-06-01 Jim Meyering <meyering@lucent.com>
54638 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
54639 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
54641 2002-05-28 Jim Meyering <meyering@lucent.com>
54643 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
54644 Reported by Volker Borchert.
54646 2002-05-27 Jim Meyering <meyering@lucent.com>
54648 Fix a problem seen only on nonconforming systems whereby ls.c's
54649 use of localtime, and then of gettimeofday would cause trouble:
54650 the localtime call used to initialize rpl_gettimeofday's save
54651 mechanism would clobber ls's current local time information so
54652 that in any long listing the first file would always be listed
54653 with date 1970-01-01. Analysis by Volker Borchert.
54655 * lib/gettimeofday.c (localtime): Undefine.
54656 (rpl_localtime): New function.
54658 2002-05-27 Jim Meyering <meyering@lucent.com>
54660 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
54663 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
54664 use the replacement function; it wouldn't resolve at link time.
54665 Reported by Volker Borchert.
54667 2002-05-22 Jim Meyering <meyering@lucent.com>
54669 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
54671 * lib/file-type.h: New file.
54672 * lib/file-type.c (file_type): New file/function. Extracted from
54675 2002-04-30 Jim Meyering <meyering@lucent.com>
54677 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
54679 2002-04-29 Paul Eggert <eggert@twinsun.com>
54681 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
54683 2002-04-29 Paul Eggert <eggert@twinsun.com>
54685 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
54686 Do not check for alloca.h (no longer used) or stdbool.h (was never
54687 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
54689 2002-04-29 Paul Eggert <eggert@twinsun.com>
54691 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
54693 2002-04-29 Jim Meyering <meyering@lucent.com>
54695 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
54696 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
54697 Use AC_FUNC_STRNLEN here instead.
54699 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
54700 With autoconf-2.53a, it's part of AC_PROG_CC.
54702 2002-04-28 Paul Eggert <eggert@twinsun.com>
54704 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
54705 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
54707 2002-04-28 Paul Eggert <eggert@twinsun.com>
54709 * lib/sig2str.h, lib/sig2str.c: New files.
54710 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
54712 2002-04-28 Paul Eggert <eggert@twinsun.com>
54714 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
54715 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
54716 of 127, since 64 is the largest conceivable number for ancient
54718 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
54720 2002-04-28 Jim Meyering <meyering@lucent.com>
54722 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
54724 2002-04-24 Jim Meyering <meyering@lucent.com>
54726 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
54727 (jm_PREREQ): Use it.
54729 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
54730 mach/mach.h fcntl.h.
54731 Check for this function: setlocale.
54733 2002-04-24 Jim Meyering <meyering@lucent.com>
54735 * lib/gettext.h: New file, from Gettext.
54736 * lib/Makefile.am (INCLUDES): Remove -I../intl.
54737 (libfetish_a_SOURCES): Add gettext.h.
54739 2002-04-16 Jim Meyering <meyering@lucent.com>
54741 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
54742 ut_pid, ut_id, ut_exit.
54744 2002-04-16 Jim Meyering <meyering@lucent.com>
54746 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
54747 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
54748 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
54750 2002-04-12 Jim Meyering <meyering@lucent.com>
54752 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
54753 now-bogus check for f_type in sys/mount.h. Instead, just test for the
54754 existence of the getmntinfo function. Needed for Darwin 5.3.
54756 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
54757 This is necessary at least on Darwin 5.3.
54759 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
54760 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
54761 strnlen.o in the library, and that makes some versions of ranlib
54764 2002-04-12 Jim Meyering <meyering@lucent.com>
54766 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
54768 2002-04-09 Jim Meyering <meyering@lucent.com>
54770 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
54771 to be more precise. Rather than saying we're checking whether the
54772 function `works', say what we're testing.
54773 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
54774 Reported by Bruno Haible.
54776 2002-03-10 Jim Meyering <meyering@lucent.com>
54778 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
54779 Suggestion from Santiago Vila.
54781 2002-03-08 Jim Meyering <meyering@lucent.com>
54783 * lib/rename.c: Mention that this wrapper is needed also on
54784 mips-dec-ultrix4.4 systems.
54786 2002-03-02 Jim Meyering <meyering@lucent.com>
54788 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
54789 not HAVE_CLOCK_SETTIME.
54791 2002-02-27 Paul Eggert <eggert@twinsun.com>
54793 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
54794 Check for clock_settime.
54796 2002-02-27 Paul Eggert <eggert@twinsun.com>
54798 * lib/nanosleep.h: Rename to....
54799 * lib/timespec.h: New name for nanosleep.h. All uses changed.
54801 * lib/gettime.c: New file.
54802 * lib/settime.c: New file.
54803 * lib/stime.c: Remove.
54805 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
54806 timespec.h. Remove nanosleep.h.
54808 2002-02-25 Paul Eggert <eggert@twinsun.com>
54810 * m4/acl.m4: New file.
54811 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
54812 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
54814 2002-02-25 Paul Eggert <eggert@twinsun.com>
54816 * lib/acl.c, lib/acl.h: New files.
54817 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
54819 2002-02-24 Jim Meyering <meyering@lucent.com>
54821 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
54822 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
54823 cause trouble. Reported by Nelson Beebe.
54825 2002-02-23 Paul Eggert <eggert@twinsun.com>
54827 * lib/path-concat.c (xpath_concat): Reorder code to pacify
54828 compilers that don't know that xalloc_die never returns.
54830 2002-02-20 Jim Meyering <meyering@lucent.com>
54832 * lib/getdate.c: Regenerate using bison-1.33.
54834 2002-02-17 Jim Meyering <meyering@lucent.com>
54836 * config/config.guess (main): Don't use `head -1'; it's no longer
54837 portable. Use `sed 1q' instead.
54839 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
54841 * m4/codeset.m4: Upgrade to gettext-0.11.
54842 * m4/gettext.m4: Upgrade to gettext-0.11.
54843 * m4/glibc21.m4: Upgrade to gettext-0.11.
54844 * m4/iconv.m4: Upgrade to gettext-0.11.
54845 * m4/isc-posix.m4: Upgrade to gettext-0.11.
54846 * m4/lcmessage.m4: Upgrade to gettext-0.11.
54847 * m4/lib-ld.m4: New file, from gettext-0.11.
54848 * m4/lib-link.m4: New file, from gettext-0.11.
54849 * m4/lib-prefix.m4: New file, from gettext-0.11.
54850 * m4/progtest.m4: Upgrade to gettext-0.11.
54852 2002-02-15 Paul Eggert <eggert@twinsun.com>
54854 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
54855 (jm_PREREQ): Use it.
54857 2002-02-15 Paul Eggert <eggert@twinsun.com>
54859 * lib/posixver.c, lib/posixver.h: New files.
54860 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
54862 2002-02-02 Paul Eggert <eggert@twinsun.com>
54863 Bruno Haible <bruno@clisp.org>
54865 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
54866 (fwrite_success_callback): New declaration.
54867 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
54868 print_unicode_char. Call failure callback instead of error.
54869 (fwrite_success_callback): New function.
54870 (exit_failure_callback): New function.
54871 (fallback_failure_callback): New function.
54872 (print_unicode_char): Call unicode_to_mb.
54874 2002-01-26 Jim Meyering <meyering@lucent.com>
54876 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
54877 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
54879 2002-01-26 Jim Meyering <meyering@lucent.com>
54881 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
54883 2002-01-22 Paul Eggert <eggert@twinsun.com>
54885 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
54887 2002-01-22 Jim Meyering <meyering@lucent.com>
54889 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
54890 Otherwise, some versions of automake would omit the rule that makes
54891 Makefile from Makefile.in.
54893 2002-01-21 Paul Eggert <eggert@twinsun.com>
54895 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
54896 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
54897 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
54898 (memcoll): Set errno to zero if there is no error.
54900 * lib/quotearg.c (quotearg_buffer_restyled):
54901 Fix bug with quoting buffers containing NUL when backslashing escapes.
54902 This bug was exposed by the other changes in this patch.
54903 (quotearg_n_options): New arg ARGSIZE.
54904 All callers changed.
54905 (quoting_options_from_style): New function.
54906 (quotearg_n_style): Use it.
54907 (quotearg_n_style_mem): New function.
54909 * lib/quotearg.h (quotearg_n_style_mem): New function.
54911 2002-01-19 Jim Meyering <meyering@lucent.com>
54913 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
54914 Remove useless quotes: DF_PROG="df".
54915 * m4/strnlen.m4: New file.
54917 2002-01-16 Paul Eggert <eggert@twinsun.com>
54919 * lib/backupfile.c (ISDIGIT): Comment fix.
54920 * lib/getdate.y (ISDIGIT): Likewise.
54921 * lib/posixtm.c (ISDIGIT, year): Likewise.
54922 * lib/strverscmp.c (ISDIGIT): Likewise.
54923 * lib/userspec.c (ISDIGIT): Likewise.
54925 2002-01-16 Jim Meyering <meyering@lucent.com>
54927 * lib/getdate.y: Add three semicolons, each just before a closing
54928 brace. Bison (as of version 1.31) no longer papers over that mistake.
54930 2002-01-05 Jim Meyering <meyering@lucent.com>
54932 * lib/version-etc.c (version_etc_copyright): Update copyright year.
54934 2001-12-19 Paul Eggert <eggert@twinsun.com>
54936 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
54937 not silently exit merely because the output buffer happens to
54938 have nothing pending.
54940 2001-12-18 Paul Eggert <eggert@twinsun.com>
54942 See the big note in ../ChangeLog.
54943 * lib/human.c (suffixes): Prefer K to k for 1024.
54944 (generate_suffix_backwards): New function.
54945 (human_readable_inexact): Use it.
54946 * lib/xstrtol.c (__xstrtol): If there is no number but there
54947 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
54948 Accept 'K' as well as 'k'.
54950 2001-12-15 Jim Meyering <meyering@lucent.com>
54952 * lib/regex.h (__restrict_arr): Update from libc.
54954 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
54955 as `remote' if the name starts with `//'. Suggested by Michael Stone.
54958 2001-12-14 Jim Meyering <meyering@lucent.com>
54960 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
54961 Suggestion from Bruno Haible.
54963 2001-12-10 Jim Meyering <meyering@lucent.com>
54965 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
54966 xrealloc, Instead, include "xalloc.h".
54967 (initbuffer): Don't cast xmalloc return value to char*.
54968 (readline): Reword comment.
54969 Don't cast xrealloc return value to char*
54970 Return NULL, not 0.
54972 2001-12-09 Jim Meyering <meyering@lucent.com>
54974 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
54975 about `signed and unsigned type in conditional expression'.
54976 * lib/posixtm.c (posix_time_parse): Likewise.
54978 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
54980 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
54981 to avoid a pedantic warning.
54983 * lib/getstr.c: Don't include assert.h.
54984 (getstr): Remove warning-evoking assertions.
54985 Return -1 if offset parameter is out of bounds.
54986 Change the type of a local from int to size_t.
54988 * lib/strftime.c (my_strftime_localtime_r): Include this function
54989 definition in the `#if ! HAVE_TM_GMTOFF' block.
54991 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
54992 Include xalloc.h instead.
54994 2001-12-02 Jim Meyering <meyering@lucent.com>
54996 * lib/tempname.c: Don't declare getenv, thus reverting the change of
54997 2001-11-18. It's no longer necessary, now that stdlib.h is always
55000 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
55001 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
55003 2001-11-30 Akim Demaille <akim@epita.fr>
55005 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
55006 before being defined.
55008 2001-11-27 Paul Eggert <eggert@twinsun.com>
55010 * lib/quotearg.h (quotearg_n, quotearg_n_style):
55011 First arg is int, not unsigned.
55012 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
55013 (SIZE_MAX, UINT_MAX): New macros.
55014 (quotearg_n_options): Abort if N is negative.
55015 Avoid overflow check on hosts where size_t is 64 bits and int
55016 is 32 bits, as overflow is impossible there.
55017 Fix off-by-one typo that caused unnecessary reallocation.
55019 2001-11-27 Jim Meyering <meyering@lucent.com>
55021 * lib/tempname.c: Merge with version from libc.
55022 * lib/regex.c: Likewise.
55024 * lib/tempname.c: Include stdlib.h unconditionally. On some old
55025 systems for which STDC_HEADERS is 0, it was not included, resulting in
55026 a warning about an integer-to-pointer conversion problem with getenv.
55027 Reported by Volker Borchert.
55029 2001-11-26 Jim Meyering <meyering@lucent.com>
55031 * lib/gtod.h: Remove file.
55032 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
55033 * lib/gettimeofday.c: Don't include gtod.h.
55034 (GTOD_init): Remove function.
55035 (rpl_gettimeofday): Do its job here instead, rather than aborting.
55036 Suggestion from Volker Borchert.
55038 2001-11-23 Jim Meyering <meyering@lucent.com>
55040 * lib/hash.h (struct hash_table): Don't define here. Merely declare
55042 * lib/hash.c (struct hash_table): Define it here instead.
55044 2001-11-22 Jim Meyering <meyering@lucent.com>
55046 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
55048 2001-11-20 Jim Meyering <meyering@lucent.com>
55050 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
55051 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
55053 2001-11-19 Jim Meyering <meyering@lucent.com>
55055 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
55056 directory. Use "conftestXXXXXX" as the template.
55057 Suggestion from Paul Eggert.
55059 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
55060 immediately, so the test doesn't mistakenly hit the max-open-files
55063 2001-11-18 Paul Eggert <eggert@twinsun.com>
55065 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
55066 (TEMPORARIES): New macro.
55067 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
55068 removes an artificial limitation (e.g. HP-UX 10.20, where
55071 2001-11-18 Jim Meyering <meyering@lucent.com>
55073 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
55075 2001-11-18 Jim Meyering <meyering@lucent.com>
55077 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
55080 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
55081 files will be created before anything else.
55083 2001-11-17 Paul Eggert <eggert@twinsun.com>
55085 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
55086 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
55088 2001-11-17 Jim Meyering <meyering@lucent.com>
55090 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
55091 Prompted by a report from Bob Proulx.
55093 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
55094 Instead, require UTILS_FUNC_MKSTEMP.
55096 2001-11-17 Jim Meyering <meyering@lucent.com>
55098 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
55099 Now, that's done as part of AC_FUNC_STRTOD.
55101 2001-11-17 Jim Meyering <meyering@lucent.com>
55103 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
55104 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
55105 rather than group writable. Patch by Juan F. Codagnone.
55107 * lib/readtokens.c: Remove explicit declarations of xmalloc and
55108 xrealloc, Instead, include "xalloc.h".
55110 * lib/mountlist.c: Include unlocked-io.h after all system headers.
55111 Remove explicit declarations of xmalloc, xrealloc,
55112 and xstrdup. Instead, include "xalloc.h".
55114 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
55116 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
55118 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
55120 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
55121 Reported by Padraig Brady.
55123 * lib/mkstemp.c: #undef mkstemp.
55125 (rpl_mkstemp): Rename from mkstemp.
55128 2001-11-16 Jim Meyering <meyering@lucent.com>
55130 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
55131 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
55132 determine the amount of total physical memory, use pstat_getstatic.
55133 HPUX-11 doesn't define _SC_PHYS_PAGES.
55134 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
55135 If sysconf couldn't be used to determine the amount of available
55136 physical memory, use both pstat_getstatic and pstat_getdynamic.
55137 Based on a patch from Bob Proulx.
55139 2001-11-10 Jim Meyering <meyering@lucent.com>
55141 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
55142 (jm_PREREQ): Use it.
55144 2001-11-09 Jim Meyering <meyering@lucent.com>
55146 * m4/jm-macros.m4: Require autoconf-2.52f.
55147 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
55148 Use these AC_-prefixed names, not the AM_-prefixed ones.
55150 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
55152 2001-11-05 Jim Meyering <meyering@lucent.com>
55154 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
55156 2001-11-04 Jim Meyering <meyering@lucent.com>
55158 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
55161 2001-11-03 Jim Meyering <meyering@lucent.com>
55163 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
55166 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
55167 know the name of the variable in the macro definition.
55169 2001-11-03 Jim Meyering <meyering@lucent.com>
55171 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
55172 in argmatch_to_argument call.
55174 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
55177 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
55178 e.g., a fault due to an attempt to free a NULL pointer.
55180 2001-11-01 Jim Meyering <meyering@lucent.com>
55182 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
55183 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
55185 2001-11-01 Jim Meyering <meyering@lucent.com>
55187 * lib/dirfd.c, lib/dirfd.h: New files.
55188 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
55190 * lib/hash.c (hash_print) [TESTING]: Clean up.
55192 2001-10-22 Paul Eggert <eggert@twinsun.com>
55194 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
55195 to avoid a warning if -Wall.
55197 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
55200 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
55201 (per RMS's instructions, this is now the canonical source)
55202 * lgpl/, gpl/: New directories.
55204 2001-10-21 Paul Eggert <eggert@twinsun.com>
55206 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
55208 2001-10-21 Jim Meyering <meyering@lucent.com>
55210 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
55211 this code would end up calling gettext even in packages built
55212 with --disable-nls.
55213 * lib/getopt.c (_): Likewise.
55214 * lib/regex.c (_): Likewise.
55216 2001-10-20 Paul Eggert <eggert@twinsun.com>
55218 * m4/error.m4 (jm_PREREQ_ERROR):
55219 Do not invoke AC_CHECK_FUNCS with strerror_r, as
55220 AC_FUNC_STRERROR_R does that.
55221 Check for strerror declaration.
55223 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
55224 are supposed to have them these days.
55225 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
55226 Merge changes from latest Autoconf CVS.
55227 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
55228 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
55229 POSIX decided to standardize on the int flavor of strerror_r.
55231 2001-10-20 Paul Eggert <eggert@twinsun.com>
55233 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
55234 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
55235 Use strerror_r that is only a macro, even if it is not a function.
55236 (strerror): Check for HAVE_DECL_STRERROR before declaring.
55237 (private_strerror): Use prototypes, not old-style function definition.
55238 (print_errno_message): New function.
55239 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
55240 char*-flavored one.
55241 (error_tail, error, error_at_line): Use it.
55243 2001-10-11 Jim Meyering <meyering@lucent.com>
55245 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
55246 and quote_n (1, ... to avoid clobbering a buffer.
55248 2001-10-05 Jim Meyering <meyering@lucent.com>
55250 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
55252 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
55253 * lib/hash-pjw.h: New file.
55255 2001-09-30 Jim Meyering <meyering@lucent.com>
55257 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
55258 `struct fsstat' has the `f_fstypename' member.
55259 Use that to define FS_TYPE, which is now used to make
55260 the getfsstat link test tighter.
55262 2001-09-30 Jim Meyering <meyering@lucent.com>
55264 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
55265 Include <sys/ucred.h>, for Apple Darwin.
55266 Include sys/mount.h and sys/fs_types.h only if available.
55268 (read_filesystem_list): Use FS_TYPE.
55270 2001-09-29 Paul Eggert <eggert@twinsun.com>
55272 * lib/exclude.c (excluded_filename): 0 -> false, since it's
55275 2001-09-29 Jim Meyering <meyering@lucent.com>
55277 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
55278 [one-argument getmntent function]): Include stdio.h before mntent.h.
55279 SunOS 4.1.x needs it for the declaration of `FILE'.
55280 Patch by Volker Borchert.
55282 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
55283 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
55284 sys/fs_types.h, and make the link-test for getfsstat guard #include
55285 directives with appropriate #if HAVE_*_H tests so that we can
55286 detect getfsstat on Apple Darwin1.3.7 systems.
55287 Reported by Nelson Beebe.
55288 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
55290 2001-09-28 Paul Eggert <eggert@twinsun.com>
55292 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
55293 #defines strtoimax. Also treat the other strto* functions
55296 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
55297 Check for strtoul and strtoumax,
55298 as those declarations are made even in the signed case.
55299 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
55300 Likewise, for strtol and strtoimax.
55302 2001-09-28 Paul Eggert <eggert@twinsun.com>
55304 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
55305 #defines strtoimax. Also treat the other strto* functions
55308 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
55309 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
55310 (strtoimax, strtoumax): Do not declare if already defined as a macro.
55312 2001-09-26 Jim Meyering <meyering@lucent.com>
55314 Most macros in unlocked-io.h had the wrong number of arguments.
55315 * lib/gen-uio: New script.
55316 (USE_UNLOCKED_IO): Define to 1 if not already defined.
55317 * lib/unlocked-io.hin: Remove file.
55318 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
55319 rather than trying to embed it here.
55320 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
55321 Reported by Padraig Brady.
55323 2001-09-25 Volker Borchert <bt@teknon.de>
55325 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
55328 2001-09-24 Jim Meyering <meyering@lucent.com>
55330 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
55332 2001-09-23 Jim Meyering <meyering@lucent.com>
55334 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
55335 instead of the mere test for existence of mntent.h. The latter
55336 would get a false-positive on AIX 3.4 systems.
55337 In the outer getmntent if-block, don't die if neither of the getmntent
55338 tests succeeds. Instead, just fall through and continue with the
55341 2001-09-23 Jim Meyering <meyering@lucent.com>
55343 * lib/mountlist.c: Remove useless parentheses in #if directives.
55344 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
55345 the deprecated MOUNTED symbol is no longer defined in mntent.h.
55347 2001-09-22 Jim Meyering <meyering@lucent.com>
55349 * m4/gettext.m4: New file. From gettext.
55350 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
55351 * m4/progtest.m4: Likewise
55352 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
55353 * m4/glibc21.m4: Likewise.
55355 * m4/libintl.m4: Remove. No longer used.
55357 2001-09-22 Jim Meyering <meyering@lucent.com>
55359 * lib/localcharset.c: Update from latest gettext.
55360 * lib/config.charset: Likewise.
55362 2001-09-20 Jim Meyering <meyering@lucent.com>
55364 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
55366 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
55369 2001-09-20 Jim Meyering <meyering@lucent.com>
55371 * lib/xstrtol.c (strtoimax): Guard declaration with
55372 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
55373 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
55374 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
55375 (strtoumax): Likewise, for completeness (it wasn't necessary).
55377 2001-09-17 Paul Eggert <eggert@twinsun.com>
55379 * lib/strtoimax.c (HAVE_LONG_LONG):
55380 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
55381 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
55382 to work around bug in IBM C compiler.
55384 2001-09-17 Jim Meyering <meyering@lucent.com>
55386 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
55387 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
55388 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
55389 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
55390 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
55391 whenever the right hand side need not be expanded by the shell.
55393 2001-09-16 Paul Eggert <eggert@twinsun.com>
55395 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
55396 library. It's not correct, as some older glibcs are buggy.
55397 fnmatch wasn't fixed until glibc 2.2.
55399 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
55400 special shell magic here.
55402 2001-09-16 Jim Meyering <meyering@lucent.com>
55404 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
55405 * m4/jm-macros.m4: Require it.
55407 2001-09-16 Jim Meyering <meyering@lucent.com>
55409 * lib/mkdir.c: New file.
55411 2001-09-15 Jim Meyering <meyering@lucent.com>
55413 * m4/jm-macros.m4: Check for help2man.
55415 2001-09-11 Jim Meyering <meyering@lucent.com>
55417 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
55418 The body, by Paul Eggert, was moved here from configure.in.
55419 * m4/jm-macros.m4: Require UTILS_HOST_OS.
55421 2001-09-04 Paul Eggert <eggert@twinsun.com>
55423 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
55424 (jm_PREREQ): Use it.
55426 2001-09-04 Paul Eggert <eggert@twinsun.com>
55428 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
55429 Use ssize_t, not int, to store result of readlink.
55430 Check for ssize_t overflow as well as size_t overflow,
55431 as POSIX says the result of readlink is implementation-defined
55432 when ssize_t overflows.
55433 Remove unnecessary cast to char*.
55434 Use free+malloc instead of realloc, as the storage doesn't need
55435 to be preserved and it's clearer and can be more efficient that way.
55436 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
55437 * lib/xreadlink.h (xreadlink): Update prototype.
55439 2001-09-04 Paul Eggert <eggert@twinsun.com>
55441 * lib/xgetcwd.c: Revert some of the previous change; intead,
55442 fix the HAVE_GETCWD_NULL code to behave more like the
55443 !HAVE_GETCWD_NULL code used to.
55445 Include "xalloc.h".
55446 (xgetcwd): Do not return NULL when memory is exhausted; instead,
55449 2001-09-03 Paul Eggert <eggert@twinsun.com>
55451 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
55452 sys/param.h, as pathmax.h includes them.
55454 2001-09-03 Paul Eggert <eggert@twinsun.com>
55456 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
55457 (jm_PREREQ_XGETCWD): New macro.
55459 * m4/getcwd.m4: New file.
55461 2001-09-03 Paul Eggert <eggert@twinsun.com>
55463 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
55464 like the HAVE_GETCWD_NULL code.
55465 Include pathmax.h if not HAVE_GETCWD.
55466 Do not include xalloc.h.
55467 (INITIAL_BUFFER_SIZE): New symbol.
55468 Do not use xmalloc / xrealloc, since the caller is responsible for
55469 handling errors. Preserve errno around `free' during failure.
55470 Do not overrun buffer when using getwd.
55472 2001-09-03 Paul Eggert <eggert@twinsun.com>
55474 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
55475 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
55478 2001-09-03 Paul Eggert <eggert@twinsun.com>
55480 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
55481 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
55482 spotted by Jim Meyering.
55484 2001-09-03 Jim Meyering <meyering@lucent.com>
55486 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
55489 2001-09-02 Jim Meyering <meyering@lucent.com>
55491 * lib/error.c: Update from GNU libc.
55493 2001-09-01 Jim Meyering <meyering@lucent.com>
55495 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
55498 2001-09-01 Jim Meyering <meyering@lucent.com>
55500 * lib/xreadlink.c: New file.
55501 * lib/xreadlink.h: New file.
55502 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
55505 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
55506 doesn't conflict with sparc Solaris 7's definition in
55507 /usr/include/sys/int_types.h.
55509 * lib/exclude.c: Use `""', not `<>' to #include non-system header
55511 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
55512 and strncasecmp as r-values. Unixware didn't have declarations.
55514 2001-08-31 Paul Eggert <eggert@twinsun.com>
55516 * lib/xstrtol.h: Add copyright notice.
55517 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
55518 LONGINT_INVALID_SUFFIX_CHAR.
55520 2001-08-31 Paul Eggert <eggert@twinsun.com>
55522 * lib/xstrtol.c (strtoimax): New decl.
55524 2001-08-31 Paul Eggert <eggert@twinsun.com>
55526 * lib/xgetcwd.c: Don't include pathmax.h.
55527 Include stdlib.h and unistd.h if available.
55529 (xmalloc, xstrdup, free): Remove decls.
55530 (xgetcwd): Don't assume sizes fit in unsigned.
55531 Check for overflow when computing sizes.
55532 Simplify reallocation code.
55534 2001-08-31 Paul Eggert <eggert@twinsun.com>
55536 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
55537 a directory's st_size can have an arbitrary value, so the old
55538 usage could waste an arbitrary amount of memory. All uses
55540 * lib/savedir.h: Update prototype.
55542 2001-08-31 Paul Eggert <eggert@twinsun.com>
55544 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
55546 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
55549 Also, make the following further changes to make this file's
55550 configuration more similar to that of strtol.c:
55551 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
55552 (strtoumax, uintmax_t, strtoull, strtol): Remove.
55553 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
55554 (strtoimax): Renamed from strtoumax. All uses of unsigned values
55555 changed to signed values.
55557 And make the following changes as well:
55558 Fix copyright notice, as 1999 was missing.
55559 (verify): New macro.
55560 (strtoimax): Check sizes at compile-time, not run-time.
55561 Prefer strtol to strtoll if both work.
55562 (main): Remove; it was not that useful and was a pain to maintain.
55564 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
55566 2001-08-31 Jim Meyering <meyering@lucent.com>
55568 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
55569 Use an initial, malloc'd, buffer of length 128 rather than
55570 a statically allocated one of length 1024.
55572 2001-08-30 Paul Eggert <eggert@twinsun.com>
55574 Simplify code, partly by assuming autoconf 2.52 semantics.
55576 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
55578 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
55579 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
55581 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
55582 Move AC_REQUIRE to next-to-top level, to avoid confusion.
55583 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
55584 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
55585 jm_AC_HEADER_INTTYPES_H.
55586 * m4/jm-macros.m4 (jm_MACROS): Likewise.
55588 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
55590 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
55591 Quote first arg of AC_DEFUN.
55592 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
55593 since they are needed to parse the include file even if we need
55594 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
55595 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
55596 but with opposite signedness.
55598 2001-08-30 Paul Eggert <eggert@twinsun.com>
55600 Merge 'exclude' changes from tar 1.13.22.
55601 This fixes one or two unlikely storage allocation overflow bugs,
55602 but doesn't change user-visible behavior otherwise.
55604 2001-08-30 Paul Eggert <eggert@twinsun.com>
55606 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
55607 (jm_PREREQ_EXCLUDE): New macro.
55609 2001-08-30 Paul Eggert <eggert@twinsun.com>
55611 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
55614 2001-08-30 Paul Eggert <eggert@twinsun.com>
55616 * lib/hash.c: Remove '2001' from copyright notice.
55618 2001-08-30 Paul Eggert <eggert@twinsun.com>
55620 * lib/full-write.h: New file.
55621 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
55622 * lib/full-write.c: Correct credits, as cccp.c no longer
55623 exists and anyway it was so heavily changed from the old cccp
55624 code as to be unrecognizable. Include full-write.h.
55625 (full_write) Return size_t, with short writes meaning failure.
55626 All callers changed. This fixes a bug with large buffers
55628 * lib/utime.c: Include full-write.h.
55630 2001-08-30 Paul Eggert <eggert@twinsun.com>
55632 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
55633 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
55634 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
55635 Include if available.
55636 (<xalloc.h>): Include
55637 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
55638 (verify): New macro. Use it to verify that EXCLUDE macros do not
55639 collide with FNM macros.
55640 (struct patopts): New struct.
55641 (struct exclude): Use it, as exclude patterns now come with options.
55642 (new_exclude): Support above changes.
55643 (new_exclude, add_exclude_file):
55644 Initial size must now be a power of two to simplify overflow checking.
55645 (free_exclude, fnmatch_no_wildcards): New function.
55646 (excluded_filename): No longer requires options arg, as the options
55647 are determined by add_exclude. Now returns bool, not int.
55648 (excluded_filename, add_exclude):
55649 Add support for the fancy new exclusion options.
55650 (add_exclude, add_exclude_file): Now takes int options arg.
55651 Check for arithmetic overflow when computing sizes.
55652 (add_exclude_file): xrealloc might modify errno, so don't
55653 realloc until after errno might be used.
55655 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
55657 (free_exclude): New decl.
55658 (add_exclude, add_exclude_file): Now takes int options arg.
55659 (excluded_filename): No longer requires options arg, as the options
55660 are determined by add_exclude. Now returns bool, not int.
55662 2001-08-30 Paul Eggert <eggert@twinsun.com>
55664 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
55666 2001-08-27 Jim Meyering <meyering@lucent.com>
55668 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
55670 * lib/version-etc.c (N_): Remove definition.
55671 Revert most of last change.
55672 Instead, simply don't mark the `Copyright...' string for translation.
55673 Based on advice from Paul Eggert.
55675 * lib/strtoxmax.c: Tweak comment.
55677 2001-08-26 Jim Meyering <meyering@lucent.com>
55679 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
55681 * m4/xstrtoimax.m4: New file.
55682 * m4/xstrtoumax.m4: Add comments explaining why we
55683 AC_REPLACE_FUNCS(strtol).
55685 2001-08-26 Jim Meyering <meyering@lucent.com>
55687 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
55688 of copyright with `%s' so translators don't get an untranslated
55690 (COPYRIGHT_YEAR): Define.
55691 (version_etc): Use fprintf rather than fputs.
55692 Suggestion from Ulrich Drepper.
55694 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
55696 * lib/strtoll.c: New file, from GNU libc.
55697 * lib/xstrtoimax.c: New file.
55699 * lib/xstrtol.h: Add xstrtoimax.
55700 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
55701 * lib/strtoimax.c: New file. Likewise, but first define
55704 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
55706 * lib/strtoxmax.c: ... then renamed to this.
55708 2001-08-18 Paul Eggert <eggert@twinsun.com>
55710 * m4/inttypes.m4: Add AC_PREREQ(2.13).
55711 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
55712 (jm_AC_TYPE_INTMAX_T): New macro.
55713 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
55715 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
55717 * m4/longlong.m4: Renamed from ulonglong.m4.
55718 * m4/inttypes.m4: Renamed from inttypes_h.m4.
55719 * m4/uintmax_t.m4: Removed.
55721 2001-08-13 Paul Eggert <eggert@twinsun.com>
55723 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
55724 Port to Solaris 8, where 'sed' requires a space after the 'r'
55725 command, and where sh dislikes "$/". Clean up the spacing a bit.
55726 Redirect output to $tmp just once.
55728 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
55730 * lib/addext.c (<errno.h>): Include.
55731 (errno): Declare if not defined.
55732 (addext): Work correctly when pathconf returns -1 and leaves
55733 errno alone because there is no limit. Also, work even if
55734 pathconf returns a value greater than SIZE_MAX.
55736 2001-08-12 Jim Meyering <meyering@lucent.com>
55738 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
55739 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
55740 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
55741 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
55742 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
55743 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
55744 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
55745 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
55746 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
55747 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
55748 utime.m4, utimes.m4, xstrtoumax.m4:
55749 Quote the first argument in each use of AC_DEFUN.
55751 2001-08-12 Jim Meyering <meyering@lucent.com>
55753 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
55754 Simply `return getcwd (NULL, 0);'.
55755 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
55756 Use 1300 as initial value for length, not PATH_MAX.
55758 * lib/pathmax.h: Clean up cpp syntax.
55760 2001-08-12 Jim Meyering <meyering@lucent.com>
55762 * lib/gettimeofday.c: New file.
55763 * lib/gtod.h: New file.
55764 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
55766 2001-08-05 Jim Meyering <meyering@lucent.com>
55768 * m4/jm-macros.m4: Require autoconf-2.52.
55770 2001-08-04 Jim Meyering <meyering@lucent.com>
55772 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
55773 stmt, to get in sync with glibc.
55775 2001-08-03 Paul Eggert <eggert@twinsun.com>
55777 The following changes are from gettext 0.10.39 as maintained by
55780 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
55781 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
55782 with inverted sense. All uses changed.
55784 * lib/mbswidth.c: Don't include <limits.h>.
55785 Include <stdlib.h> and <string.h> unconditionally.
55786 (iswcntrl, mbsinit, ISCNTRL): New macros.
55787 (mbsnwidth): Use K&R style function declarations.
55788 Don't bother checking for MB_LEN_MAX == 1, since the compiler
55789 can optimize it when MB_CUR_MAX == 1.
55790 The width of control characters is zero, not 1.
55792 2001-08-03 Paul Eggert <eggert@twinsun.com>
55794 The following changes are from gettext 0.10.39 as maintained by
55795 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
55797 * m4/codeset.m4: Upgrade to serial AM1.
55798 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
55799 all uses changed. Quote first arg of AC_DEFUN.
55800 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
55802 * m4/iconv.m4: Upgrade to serial AM2.
55803 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
55804 Add --with-libconv-prefix.
55805 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
55806 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
55807 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
55808 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
55809 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
55811 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
55812 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
55813 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
55814 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
55815 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
55816 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
55817 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
55818 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
55819 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
55821 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
55824 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
55825 not the default value.
55827 2001-06-25 Bruno Haible <haible@clisp.cons.org>
55828 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
55829 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
55830 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
55831 Also check for iswcntrl, used for wcwidth fallback.
55832 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
55835 2001-08-03 Jim Meyering <meyering@lucent.com>
55837 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
55838 as it was in the original. Reported by Paul Eggert.
55840 2001-07-16 Jim Meyering <meyering@lucent.com>
55842 * m4/gettimeofday.m4: New file.
55843 Prompted by a report from Bernhard Baehr.
55845 2001-07-15 Jim Meyering <meyering@lucent.com>
55847 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
55848 stuff. Now it's in ../Makefile.cfg.
55850 2001-07-15 Jim Meyering <meyering@lucent.com>
55852 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
55853 (BUILT_SOURCES): Add unlocked-io.h.
55854 (io_functions): Define.
55855 (unlocked-io.h): New rule.
55856 (DISTCLEANFILES): Add unlocked-io.h.
55857 (all-local): Depend on unlocked-io.h, to ensure it is created.
55859 * lib/unlocked-io.hin: New file
55861 * lib/regex.c: Update from glibc.
55863 2001-07-05 Jim Meyering <meyering@lucent.com>
55865 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
55867 (libfetish_a_SOURCES): Put all .h files here instead.
55868 Remove a thus-exposed (better checks in automake) duplicate and
55869 two unnecessary .h files.
55871 2001-07-04 Jim Meyering <meyering@lucent.com>
55873 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
55874 that generates jm-glibc-io.m4 so that it doesn't trigger any make
55877 2001-07-02 Jim Meyering <meyering@lucent.com>
55879 The following changes were prompted by suggestions from Bruno Haible.
55881 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
55883 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
55884 definition of EXTRA_DIST.
55885 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
55886 ensure that the generated file is created/updated whenever the list
55887 of $(unlocked_functions) is changed.
55888 (jm-glibc-io.m4): New rule.
55889 (unlocked-io.h): New rule -- currently unused.
55891 2001-06-24 Jim Meyering <meyering@lucent.com>
55893 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
55894 unmatched right bracket, rather than kludging it with an extra,
55895 falsely-matching quote in a comment. Patch by Akim Demaille.
55897 2001-06-11 Jim Meyering <meyering@lucent.com>
55899 * lib/regex.c: Update from GNU libc.
55901 2001-05-27 Jim Meyering <meyering@lucent.com>
55903 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
55904 Check for ut_type in struct utmp.
55906 2001-05-27 Jim Meyering <meyering@lucent.com>
55908 * lib/readutmp.h (UT_TYPE): Define.
55910 2001-05-24 Jim Meyering <meyering@lucent.com>
55912 * lib/argmatch.c: Include "quote.h".
55913 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
55914 quote function. Reported by Göran Uddeborg.
55916 2001-05-22 Jim Meyering <meyering@lucent.com>
55918 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
55919 now that we use the package-supplied version unconditionally.
55920 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
55922 2001-05-21 Jim Meyering <meyering@lucent.com>
55924 * m4/regex.m4: Change a couple backticks to single quotes to avoid
55925 shell syntax errors.
55927 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
55929 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
55931 2001-05-20 Paul Eggert <eggert@twinsun.com>
55933 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
55934 Don't bother to check library strftime, since
55935 we'll be using our own my_strftime function anyway.
55936 Define my_strftime instead of strftime.
55938 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
55940 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
55941 which is not yet declared.
55943 2001-05-15 Jim Meyering <meyering@lucent.com>
55945 * m4/regex.m4: Use proper quoting so brackets appear in the test
55947 Reported by, and with help from, Bruno Haible.
55949 2001-05-13 Jim Meyering <meyering@lucent.com>
55951 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
55954 2001-05-11 Paul Eggert <eggert@twinsun.com>
55956 dirname code cleanup. base_name now behaves more compatibly
55957 with POSIX basename when given file names that have trailing
55958 slashes, and similarly for dir_name. Add new primitives
55959 base_len and dir_len. Put the directory-name-related decls
55962 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
55963 * lib/backupfile.c (base_name): Likewise.
55964 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
55965 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
55966 * lib/makepath.c (strip_trailing_slashes): Likewise.
55967 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
55968 ISSLASH): Likewise.
55969 * lib/rename.c (strip_trailing_slashes): Likewise.
55970 * lib/same.c (base_name): Likewise.
55971 * lib/stripslash.c (ISSLASH): Likewise.
55973 * lib/addext.c: Include <dirname.h> after size_t is defined.
55974 * lib/backupfile.c: Likewise.
55976 * lib/addext.c (addext): Use base_len to trim redundant
55977 trailing slashes instead of doing it ourselves.
55978 But do not trim the last slash if it is not redundant.
55980 * lib/backupfile.c (find_backup_file_name,
55981 max_backup_version): Use base_len instead of rolling it ourselves.
55982 Handle the case of "" and (on DOS) "C:" correctly.
55984 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
55985 needed. Include <string.h>, <dirname.h>.
55986 (base_name): Allow file names ending in slashes, other than names
55987 that are all slashes. In this case, return the basename followed
55988 by the slashes. This is more general, and can be used in places
55989 where the original base_name purposely had an assertion failure.
55990 (base_len): New function.
55992 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
55993 Do not include <assert.h>; no longer needed.
55995 (memrchr): Remove decl.
55996 (dir_name_r): Remove.
55997 (dir_len): Renamed from dirlen. All callers changed.
55998 Rewrite in terms of base_name, for simplicity and consistency.
55999 (dir_name): Never return NULL. All callers changed.
56000 Do not include <stdlib.h> in test program; no longer needed.
56001 return 0; is fine for test program.
56003 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
56005 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
56007 * lib/path-concat.c (path_concat): Use base_len to compute
56008 base length, not strlen; this means we cannot rely on memcpy
56011 * lib/same.c (STREQ): Remove.
56012 (same_name): Handle the case where the basename ends in trailing '/'.
56014 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
56015 a slash was stripped. Do not strip the last slash after a
56016 file system prefix.
56018 2001-05-11 Paul Eggert <eggert@twinsun.com>
56020 * lib/Makefile.am (libfetish_a_SOURCES):
56021 Add strftime.c, since we now compile it on all hosts.
56023 * lib/strftime.c (my_strftime):
56024 Define to nstrftime if emacs, but only if my_strftime is not defined.
56025 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
56026 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
56027 Add one more extra argument: a nanoseconds value.
56030 (my_strftime function): Add %N format.
56031 (emacs_strftimeu): Renamed from emacs_strftime,
56032 with extra ut argument.
56034 2001-05-09 Paul Eggert <eggert@twinsun.com>
56036 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
56038 2001-04-21 Jim Meyering <meyering@lucent.com>
56040 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
56043 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
56045 * m4/ftruncate.m4: Check for chsize.
56046 Link with ftruncate.o unconditionally if ftruncate is missing.
56047 This was required when cross-compiling to i586-mingw32msvc.
56049 2001-04-08 Jim Meyering <meyering@lucent.com>
56051 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
56052 recomputed; that's necessary when the offset spans a DST transition.
56053 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
56055 2001-04-02 Jim Meyering <meyering@lucent.com>
56057 * lib/regex.h, regex.c: Update from GNU libc.
56059 2001-03-24 Jim Meyering <meyering@lucent.com>
56061 * m4/jm-macros.m4: Require autoconf-2.49d.
56063 2001-03-20 Bruno Haible <haible@clisp.cons.org>
56065 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
56067 2001-03-19 Paul Eggert <eggert@twinsun.com>
56069 * lib/version-etc.c (version_etc_copyright): Update to 2001.
56071 2001-03-17 Jim Meyering <meyering@lucent.com>
56073 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
56074 now that the version in autoconf is equivalent.
56075 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
56077 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
56078 Suggestion from Akim Demaille.
56080 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
56081 (jm_PREREQ_TEMPNAME): New function.
56083 2001-03-16 Paul Eggert <eggert@twinsun.com>
56085 * lib/tempname.c (uint64_t): Define to uintmax_t if
56086 not defined, and if UINT64_MAX is not defined.
56087 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
56088 Reported by John David Anglin.
56090 2001-03-15 Bruno Haible <haible@clisp.cons.org>
56092 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
56093 resolve alias if codeset is empty.
56094 * lib/config.charset (BeOS): Use wildcard syntax.
56096 2001-03-13 Jim Meyering <meyering@lucent.com>
56098 * lib/path-concat.c (path_concat)
56099 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
56100 concatenating e.g., `C:' and `foo'.
56103 2001-03-06 Bruno Haible <haible@clisp.cons.org>
56105 * lib/localcharset.c (locale_charset): Don't use
56106 setlocale(LC_CTYPE,NULL). Don't return NULL.
56107 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
56109 2001-03-06 Bruno Haible <haible@clisp.cons.org>
56111 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
56112 support for DOS/DJGPP.
56114 2001-03-01 Paul Eggert <eggert@twinsun.com>
56116 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
56117 lacks mkstemp. Compile our own tempname.c if we compile our own
56118 mkstemp.c, as mkstemp relies on tempname.
56120 2001-03-01 Jim Meyering <meyering@lucent.com>
56122 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
56123 AH_VERBATIM really does output its argument verbatim.
56125 2001-02-28 Paul Eggert <eggert@twinsun.com>
56127 * lib/Makefile.am (libfetish_a_SOURCES):
56128 Add dup-safer.c, fopen-safer.c.
56129 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
56131 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
56132 * lib/unistd-safer.h: New files.
56134 2001-02-25 Paul Eggert <eggert@twinsun.com>
56136 The mkstemp replacement is taken from glibc 2.2.2, with some
56137 portability fixes for use outside glibc, as follows:
56139 * lib/tempname.c (struct_stat64): New macro.
56140 (direxists, __gen_tempname): Use it.
56141 This avoids a portability problem with Solaris 8.
56143 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
56144 (<stddef.h>, <stdint.h>, <string.h>):
56145 Include only if STDC_HEADERS || _LIBC.
56146 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
56147 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
56148 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
56149 (__set_errno): Define this macro if <errno.h> doesn't.
56150 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
56151 Define these macros if <stdio.h> doesn't.
56152 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
56153 Define these macros if <sys/stat.h>
56154 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
56155 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
56156 __xstat64): Define if not _LIBC.
56157 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
56158 (__gen_tempname): Invoke gettimeofday only if
56159 HAVE_GETTIMEOFDAY || _LIBC;
56160 otherwise, fall back on plain "time".
56161 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
56163 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
56165 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
56167 2001-02-18 Paul Eggert <eggert@twinsun.com>
56169 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
56171 2001-02-17 Paul Eggert <eggert@twinsun.com>
56173 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
56174 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
56175 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
56176 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
56178 2001-02-17 Paul Eggert <eggert@twinsun.com>
56180 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
56181 Remove workaround macros for hosts that have mbrtowc but not
56182 mbstate_t, as we now insist on proper declarations for both
56183 before using mbrtowc.
56185 2001-02-17 Jim Meyering <meyering@lucent.com>
56187 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
56188 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
56189 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
56192 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
56193 rather than AC_CACHE_VAL.
56195 2001-02-17 Jim Meyering <meyering@lucent.com>
56197 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
56198 around included file name.
56200 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
56202 * lib/strftime.c: Update from GNU libc (the only changes were to
56205 2001-02-17 Jim Meyering <meyering@lucent.com>
56207 * lib/regex.c: Update from libc.
56209 2001-02-17 Bruno Haible <haible@clisp.cons.org>
56211 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
56214 2001-02-16 Paul Eggert <eggert@twinsun.com>
56216 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
56217 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
56218 Reported by Mark Hounschell via Paul Eggert.
56220 2001-02-07 Jim Meyering <meyering@lucent.com>
56222 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
56224 2001-02-05 Jim Meyering <meyering@lucent.com>
56226 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
56227 it includes the patch required for `large file' support with at least
56228 HP-UX's 10.20 /bin/cc.
56230 2001-02-03 Jim Meyering <meyering@lucent.com>
56232 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
56233 AS_IF, now that it works once again (mysteriously).
56234 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
56236 2001-01-30 Jim Meyering <meyering@lucent.com>
56238 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
56239 * m4/chown.m4: Rename conftestchown to conftest.chown.
56240 * m4/rename.m4: s/conftestdir/conftest.d1/ and
56241 s/conftestdir2/conftest.d2/.
56242 * m4/utimes.m4: s/conftestdata/conftest.data/
56243 Inspired by Pavel Roskin's change in autoconf.
56245 2001-01-30 Bruno Haible <haible@clisp.cons.org>
56247 * lib/config.charset: Update for FreeBSD 4.2.
56249 2001-01-27 Jim Meyering <meyering@lucent.com>
56251 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
56253 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
56255 2001-01-26 Jim Meyering <meyering@lucent.com>
56257 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
56258 quotearg.c includes it.
56260 2001-01-26 Jim Meyering <meyering@lucent.com>
56262 * lib/quotearg.c: Include stddef.h.
56263 * lib/quote.c: Include stddef.h.
56264 Reported by Axel Kittenberger.
56266 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
56267 line in double quotes so that it evokes a better diagnostic.
56268 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
56269 Reported by Axel Kittenberger.
56271 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
56273 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
56274 as if it was a `charset'.
56276 2001-01-21 Bruno Haible <haible@clisp.cons.org>
56278 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
56281 2001-01-21 Bruno Haible <haible@clisp.cons.org>
56283 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
56284 to avoid a warning. Add back 'const' to inptr.
56286 2001-01-20 Jim Meyering <meyering@lucent.com>
56288 Be sure that headers are checked before used in code compiled
56289 for the type checks.
56290 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
56291 In place of that, invoke jm_CHECK_ALL_TYPES.
56292 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
56293 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
56294 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
56295 The check for ssize_t was mistakenly run before the test for unistd.h.
56297 The configure-time check for stdbool.h was missing.
56298 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
56299 (jm_PREREQ_HASH): New function.
56301 2001-01-17 Jim Meyering <meyering@lucent.com>
56303 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
56304 for autoconf-2.49c.
56305 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
56307 2001-01-16 Jim Meyering <meyering@lucent.com>
56309 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
56312 2001-01-14 Jim Meyering <meyering@lucent.com>
56314 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
56315 foo and bar. Create conftestdir/ in the script, not in the C code.
56316 Remove directories in the script, not in the C code.
56317 Remove conftestdir{,2} before trying to create the directory.
56318 Make the entire configure script fail if the mkdir fails.
56320 2001-01-14 Jim Meyering <meyering@lucent.com>
56322 * lib/rename.c: New file. From Volker Borchert.
56323 Include stdlib.h, string.h or strings.h, and xalloc.h.
56324 Use strip_trailing_slashes rather than open-coding it.
56326 2001-01-03 Paul Eggert <eggert@twinsun.com>
56328 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
56330 2001-01-03 Jim Meyering <meyering@lucent.com>
56332 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
56333 of local `inptr' to avoid warning with some system declarations of
56336 2001-01-02 Volker Borchert <bt@teknon.de>
56338 * m4/rename.m4: New file.
56339 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
56341 2001-01-01 Jim Meyering <meyering@lucent.com>
56343 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
56344 even on systems with utmpx.h. It's necessary for the declaration of
56345 utmp's ut_user member. Reported by Andreas Jaeger.
56347 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
56348 available. They are required for the declarations of getgrgid and
56350 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
56351 Reported by Andreas Jaeger.
56353 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
56355 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
56356 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
56357 so `make install' also works in VPATH builds.
56359 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
56361 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
56362 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
56363 can be used in subdirectories.
56365 2000-12-29 Paul Eggert <eggert@twinsun.com>
56367 * lib/modechange.c: Do not assume that mode_t uses the
56368 traditional octal encoding. E.g. "chmod 1 FOO" should set
56369 the other-execute bit of FOO even if S_IXOTH != 1.
56371 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
56372 WOTH, XOTH, ALLM): New macros.
56373 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
56374 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
56376 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
56377 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
56379 No need to use uintmax_t; unsigned long is long enough.
56380 Don't bother to get suffix since we don't use it.
56382 2000-12-26 Jim Meyering <meyering@lucent.com>
56384 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
56385 better with autoheader.
56387 2000-12-24 Jim Meyering <meyering@lucent.com>
56389 * lib/hash.c (is_prime): Return explicit boolean values.
56390 (hash_get_first): Return NULL to appease Irix5.6's 89.
56391 Reported by Nelson Beebe.
56393 2000-12-19 Bruno Haible <haible@clisp.cons.org>
56395 * lib/localcharset.c (locale_charset): Add support for Win32.
56397 2000-12-18 Paul Eggert <eggert@twinsun.com>
56399 * lib/physmem.h, lib/physmem.c: New files.
56401 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
56402 (noinst_HEADERS): Add physmem.h.
56404 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
56405 't' for compatibility with Solaris 8 sort.
56407 2000-12-18 Bruno Haible <haible@clisp.cons.org>
56409 * lib/config.charset: Add support for BeOS.
56411 2000-12-17 Jim Meyering <meyering@lucent.com>
56413 * m4/dos.m4 (jm_AC_DOS): New file and macro.
56414 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
56416 2000-12-16 Jim Meyering <meyering@lucent.com>
56418 This bug had a serious impact on chown: `chown N:M FILE' (for integer
56419 N and M) would have treated it like `chown N:N FILE'.
56421 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
56423 2000-12-16 Jim Meyering <meyering@lucent.com>
56425 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
56426 SHELLS_FILE to a file name that's useful on djgpp systems.
56428 (ADDITIONAL_DEFAULT_SHELLS): Define.
56429 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
56430 Based mostly on a patch from Prashant TR.
56432 2000-12-16 Bruno Haible <haible@clisp.cons.org>
56434 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
56435 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
56436 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
56438 2000-12-08 Andreas Schwab <schwab@suse.de>
56440 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
56441 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
56443 2000-12-07 Jim Meyering <meyering@lucent.com>
56445 * lib/stripslash.c (ISSLASH): Define.
56446 (strip_trailing_slashes): Use ISSLASH rather than comparing against
56450 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
56451 (dir_name_r): Declare this function as static.
56452 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
56453 manifest itself on a name containing a mix of slashes and
56455 Make this function work with names starting with a DOS-style
56456 drive letter and colon prefix.
56457 (dir_name): Append `.' if necessary.
56458 Based mostly on patches from Prashant TR and Eli Zaretskii.
56460 * lib/dirname.h (dir_name_r): Remove prototype.
56462 2000-12-06 Paul Eggert <eggert@twinsun.com>
56464 * m4/off_t-format.m4: Remove this file.
56465 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
56467 2000-12-06 Jim Meyering <meyering@lucent.com>
56469 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
56470 replacement strtoull, we may well need the replacement strtoul, too.
56471 Check for declarations of strtoul and strtoull.
56472 Check for strtol. Mainly as a cue to cause automake to include
56473 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
56474 Check for limits.h -- strtol.c needs it.
56476 2000-12-05 Jim Meyering <meyering@lucent.com>
56478 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
56480 2000-12-04 Jim Meyering <meyering@lucent.com>
56482 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
56483 Also include memory.h, stdlib.h, unistd.h if appropriate.
56484 Reported by Andreas Jaeger (conflicting declaration of malloc).
56486 2000-12-02 Jim Meyering <meyering@lucent.com>
56488 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
56489 * m4/jm-macros.m4 (jm_MACROS): require it.
56491 2000-12-02 Jim Meyering <meyering@lucent.com>
56493 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
56495 2000-12-01 Paul Eggert <eggert@twinsun.com>
56497 * lib/memrchr.c: Include <config.h> before any system include file.
56499 2000-11-30 Jim Meyering <meyering@lucent.com>
56501 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
56503 2000-11-30 Jim Meyering <meyering@lucent.com>
56505 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
56507 2000-11-29 Paul Eggert <eggert@twinsun.com>
56509 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
56511 2000-11-26 Jim Meyering <meyering@lucent.com>
56513 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
56515 2000-11-22 Paul Eggert <eggert@twinsun.com>
56517 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
56518 size of (size_t) -1; it's not portable.
56520 2000-11-17 Jim Meyering <meyering@lucent.com>
56522 * lib/strstr.c: Update from GNU libc.
56524 2000-11-17 Akim Demaille <akim@epita.fr>
56526 * lib/obstack.h: Formatting changes.
56527 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
56528 prevent type checking.
56529 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
56530 cast the value to (void *): assigning a `foo *' to a `void *'
56532 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
56534 2000-11-16 Jim Meyering <meyering@lucent.com>
56536 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
56538 2000-11-11 Jim Meyering <meyering@lucent.com>
56540 * lib/error.c: Add a couple #includes, merging from GNU libc version.
56542 2000-11-10 Jim Meyering <meyering@lucent.com>
56544 * lib/obstack.h: Update from GNU libc.
56545 * lib/obstack.c: Likewise.
56547 2000-11-08 Bruno Haible <haible@clisp.cons.org>
56549 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
56551 2000-11-06 Paul Eggert <eggert@twinsun.com>
56553 * lib/getusershell.c (setusershell): Use rewind rather than
56554 fseek/fseeko, to avoid configuration hassles with fseeko.
56555 Don't bother opening SHELLS_FILE if shellstream is NULL;
56556 it's not necessary.
56558 2000-11-05 Jim Meyering <meyering@lucent.com>
56560 * lib/makepath.h (make_dir): Declare.
56561 * lib/makepath.c (make_dir): Remove `static' attribute.
56564 2000-11-04 Jim Meyering <meyering@lucent.com>
56566 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
56568 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
56570 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
56571 last one in a bucket, advance to the next bucket.
56573 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
56575 * lib/fnmatch.c: Do not comment out all the code if we are using
56576 the GNU C library, because in some cases we are replacing buggy
56577 code in the GNU C library itself.
56579 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
56581 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
56582 (regex_compile): Catch bogus \(\1\).
56584 2000-10-30 Paul Eggert <eggert@twinsun.com>
56586 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
56587 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
56588 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
56590 2000-10-30 Paul Eggert <eggert@twinsun.com>
56592 * lib/error.h, getline.h, modechange.h:
56593 Remove "2000" from Copyright line, as the file hasn't been
56594 changed this year other than in the copyright notice.
56596 * lib/xalloc.h: Add "2000" to Copyright line, as this file
56597 was changed this year.
56599 2000-10-29 Jim Meyering <meyering@lucent.com>
56601 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
56603 * m4/ls-mntd-fs.m4: Likewise
56605 2000-10-29 Jim Meyering <meyering@lucent.com>
56607 * lib/xstat.in: Fix grammar in comment.
56609 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
56611 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
56612 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
56613 doesn't define __restrict_arr.
56615 2000-10-28 Jim Meyering <meyering@lucent.com>
56617 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
56618 (jm_PREREQ_MEMCHR): New function.
56620 2000-10-28 Jim Meyering <meyering@lucent.com>
56622 * lib/memchr.c: Update from libc.
56623 Adjust for portability:
56624 [HAVE_STDLIB_H]: Include stdlib.h.
56625 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
56626 Undef __memchr, too.
56627 [!weak_alias]: Define __memchr to memchr.
56629 * lib/regex.c: Update from libc.
56630 * lib/regex.h: Likewise.
56631 * lib/getopt1.c: Likewise.
56632 * lib/memcmp.c: Likewise.
56634 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
56635 Avoid using fseek, when possible -- it's broken by design.
56636 Patch by Ulrich Drepper.
56638 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
56640 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
56641 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
56642 Giving in to popular pressure to shut up the compiler with casts.
56644 2000-10-26 Jim Meyering <meyering@lucent.com>
56646 * lib/strftime.c: Update from libc.
56648 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
56650 * regex.c: More `unsigned char' -> `re_char' changes.
56651 Also change several `int' into `re_wchar_t'.
56652 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
56653 (PUSH_FAILURE_POINTER): Don't cast any more.
56654 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
56655 We want GCC to complain, since this piece of code makes
56656 re_match non-reentrant, which *should* be fixed.
56657 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
56658 (EXTEND_BUFFER): Use RETALLOC.
56659 (SET_LIST_BIT): Don't cast.
56660 (re_wchar_t): New type.
56661 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
56662 that those two functions will always properly return.
56663 (IMMEDIATE_QUIT_CHECK): Cast to void.
56664 (analyse_first): Use recursion rather than an explicit stack.
56665 (re_compile_fastmap): Can't fail anymore.
56666 (re_search_2): Don't check re_compile_fastmap for failure.
56667 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
56668 Now also sets the new value (passed in a new argument).
56669 (re_match_2_internal): Use it.
56670 Also, use a new var `reg' of type size_t when looping through regs
56671 rather than reuse the inappropriate `mcnt'.
56673 2000-10-25 Jim Meyering <meyering@lucent.com>
56675 * lib/obstack.c: Update from libc.
56677 2000-10-24 Kenichi Handa <handa@etl.go.jp>
56679 * regex.c (regex_compile): Change the way of handling a range from
56680 a char less than 256 to a char not less than 256.
56682 2000-10-24 Andrew Innes <andrewi@gnu.org>
56684 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
56686 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
56687 so that re_search functions only quit when callers expect them to.
56689 2000-10-23 Jim Meyering <meyering@lucent.com>
56691 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
56692 wrong. That set_locale call must not have any side effects.
56695 2000-10-22 Jim Meyering <meyering@lucent.com>
56697 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
56698 [CYCLIC]: Remove now-unused definition.
56700 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
56701 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
56702 Suggestion from Ulrich Drepper.
56704 2000-10-21 Jim Meyering <meyering@lucent.com>
56706 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
56707 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
56708 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
56710 2000-10-21 Jim Meyering <meyering@lucent.com>
56712 * lib/dirname.c (memrchr): Declare if necessary.
56713 (dir_name): Remove the restriction that there be no
56714 trailing slashes. Now, this code skips past them, effectively
56716 [TEST_DIRNAME] (main): New unit tests.
56718 * lib/memrchr.c: New file from GNU libc.
56719 Undef __memrchr, too.
56720 [!weak_alias]: Define __memrchr to memrchr.
56721 Guard weak_alias use with `#ifdef weak_alias'.
56723 2000-10-21 Jim Meyering <meyering@lucent.com>
56725 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
56726 (dir_name): Use dir_name_r.
56727 * lib/dirname.h (dir_name_r): Declare it.
56729 2000-10-17 Jim Meyering <meyering@lucent.com>
56731 * lib/quote.h (PARAMS): Define and use.
56732 Reported by Akim Demaille.
56734 * lib/getopt.c: Update from libc.
56736 2000-10-16 Jim Meyering <meyering@lucent.com>
56738 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
56742 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
56744 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
56746 2000-09-25 Jim Meyering <meyering@lucent.com>
56748 * lib/md5.h (rol): Define (from GnuPG).
56750 * lib/sha.c: Give credit (GnuPG) where due.
56751 (M): Use rol rather than open-coding it.
56752 Add a FIXME comment.
56754 2000-09-21 Jim Meyering <meyering@lucent.com>
56756 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
56757 Reported by Michael Stone.
56759 2000-09-20 Jim Meyering <meyering@lucent.com>
56761 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
56762 (noinst_HEADERS): Add sha.h.
56763 Based on code from Scott G. Miller and from GnuPG.
56765 2000-09-18 Jim Meyering <meyering@lucent.com>
56767 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
56768 LIBS. Otherwise, everyone ends up linking with -lelf for some
56770 Reported by Mike Stone.
56772 2000-09-15 Jim Meyering <meyering@lucent.com>
56774 * lib/regex.c: Update from libc.
56776 2000-09-10 Jim Meyering <meyering@lucent.com>
56778 * lib/getopt.c (_getopt_internal): Update from glibc.
56780 2000-09-09 Jim Meyering <meyering@lucent.com>
56782 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
56783 think it should be used as a general replacement for isascii.
56784 * lib/fnmatch.c: Likewise.
56785 * lib/mbswidth.c: Likewise
56786 * lib/regex.c: Likewise.
56789 * lib/userspec.c: Include sys/param.h and limits.h.
56791 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
56792 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
56793 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
56794 UID, GID. Check range.
56796 2000-09-06 Jim Meyering <meyering@lucent.com>
56798 * lib/getopt.c (_getopt_internal): Update from glibc.
56800 2000-08-30 Jim Meyering <meyering@lucent.com>
56802 * lib/strftime.c: Merge in changes from GNU libc.
56804 2000-08-26 Jim Meyering <meyering@lucent.com>
56806 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
56807 * m4/fpending.m4: New file.
56809 2000-08-26 Jim Meyering <meyering@lucent.com>
56811 * lib/closeout.c: Include "__fpending.h".
56812 (close_stdout_status): Return right away if there's nothing to flush.
56814 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
56815 * lib/__fpending.c: New file.
56816 * lib/__fpending.h: New file.
56818 2000-08-20 Jim Meyering <meyering@lucent.com>
56820 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
56821 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
56822 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
56824 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
56826 Improve fileutils installation on systems where running
56827 programs (like install) can't be unlinked.
56828 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
56829 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
56831 2000-08-07 Paul Eggert <eggert@twinsun.com>
56833 Standardize on "memory exhausted" instead of "Memory exhausted"
56834 or "virtual memory exhausted".
56835 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
56836 "virtual memory exhausted".
56837 * lib/same.c (same_name): Invoke xalloc_die instead of printing
56839 * lib/userspec.c (parse_user_spec): Likewise.
56840 * lib/bumpalloc.h: comment fix
56841 * lib/same.c, userspec.c: Include xalloc.h.
56843 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
56844 not char *const and pointing to a constant array.
56845 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
56846 (xrealloc): Comment fix.
56848 * lib/userspec.c (parse_user_spec):
56849 Don't translate a message until just before returning,
56850 to avoid unnecessary translation.
56852 2000-08-07 Jim Meyering <meyering@lucent.com>
56854 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
56855 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
56856 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
56857 getgroups.c, gethostname.c, getopt.h, group-member.c,
56858 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
56859 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
56860 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
56861 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
56862 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
56863 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
56864 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
56865 yesno.c: Back out Copyright date changes for each file with no change
56866 this year. This eases coordination with other programs using the same
56867 source code modules. From Paul Eggert.
56869 2000-08-06 Paul Eggert <eggert@twinsun.com>
56871 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
56872 not char, for compatibility with glibc 2.1.3 strftime.c.
56874 2000-08-03 Greg McGary <greg@mcgary.org>
56876 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
56877 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
56878 (EXTEND_BUFFER): Use them.
56880 2000-08-01 Jim Meyering <meyering@lucent.com>
56882 * lib/dirname.c (ISSLASH): Define.
56883 (BACKSLASH_IS_PATH_SEPARATOR): Define.
56884 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
56885 both `\' and `/' may be use as path separators.
56886 Based on a patch from Prashant TR.
56888 2000-07-31 Paul Eggert <eggert@twinsun.com>
56890 * lib/quotearg.c (quotearg_n_options): Don't make the initial
56891 slot vector a constant, since it might get modified.
56893 2000-07-31 Jim Meyering <meyering@lucent.com>
56895 * lib/xmalloc.c: Use `virtual memory exhausted', not
56896 `Memory exhausted'.
56897 * lib/obstack.c (print_and_abort): Likewise.
56899 2000-07-30 Paul Eggert <eggert@twinsun.com>
56901 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
56902 buffer, so that the caller can always quote one small
56903 component of a "memory exhausted" message in slot 0.
56904 From a suggestion by Jim Meyering.
56906 2000-07-30 Jim Meyering <meyering@lucent.com>
56908 * lib/makepath.c (make_path): Quote the other instance, too.
56910 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
56911 (STATIC_BUF_SIZE): Define.
56912 (quotearg_n_options): Use only statically allocated storage when
56913 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
56914 than STATIC_BUF_SIZE.
56916 2000-07-29 Jim Meyering <meyering@lucent.com>
56918 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
56919 * lib/dirname.c (dir_name): Likewise.
56921 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
56924 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
56925 (dir_name): Assert that there are no trailing slashes.
56927 2000-07-29 Bruno Haible <haible@clisp.cons.org>
56929 * lib/mbswidth.h (mbswidth): Add a flags argument.
56930 (mbswidth): New declaration.
56931 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
56932 * lib/mbswidth.c (mbswidth): Add a flags argument.
56933 (mbsnwidth): New function.
56935 2000-07-24 Jim Meyering <meyering@lucent.com>
56937 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
56939 2000-07-23 Paul Eggert <eggert@twinsun.com>
56941 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
56943 2000-07-23 Paul Eggert <eggert@twinsun.com>
56945 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
56946 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
56947 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
56948 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
56949 invoke multibyte primitives.
56951 2000-07-23 Paul Eggert <eggert@twinsun.com>
56954 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
56955 so that mbstate_t is always defined.
56957 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
56958 be 1 in at least one GCC installation, and this configuration
56959 error is likely to be common. Ignoring MB_LEN_MAX hurts
56960 performance on hosts that have mbrtowc but have only unibyte
56961 locales, but I assume these hosts are rare.
56963 2000-07-23 Paul Eggert <eggert@twinsun.com>
56965 * lib/mbswidth.c (_XOPEN_SOURCE):
56966 Don't define; this causes problems on Solaris 7.
56967 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
56969 2000-07-23 Jim Meyering <meyering@lucent.com>
56971 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
56972 too: getgrgid, getpwuid, getuid.
56974 2000-07-23 Jim Meyering <meyering@lucent.com>
56976 * lib/basename.c (base_name): Add an assertion.
56978 2000-07-23 Bruno Haible <haible@clisp.cons.org>
56980 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
56981 shadow its mbsinit function.
56983 2000-07-17 Bruno Haible <haible@clisp.cons.org>
56985 * lib/mbswidth.h: New file.
56986 * lib/mbswidth.c: New file.
56987 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
56988 (noinst_HEADERS): Add mbswidth.h.
56990 2000-07-17 Bruno Haible <haible@clisp.cons.org>
56992 * lib/config.charset: Add support for FreeBSD. Improve support for
56995 2000-07-16 Bruno Haible <haible@clisp.cons.org>
56997 * m4/mbswidth.m4: New file.
56998 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
57000 2000-07-15 Jim Meyering <meyering@lucent.com>
57002 * lib/makepath.c: Include quote.h.
57003 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
57004 corresponding argument in a `quote (...)' call.
57005 Give better diagnostics.
57007 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
57008 (noinst_HEADERS): Add quote.h.
57010 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
57011 from tar's src/misc.c.
57012 * lib/quote.h: New file. Prototypes for same.
57014 2000-07-14 Paul Eggert <eggert@twinsun.com>
57016 From a suggestion by Bruno Haible.
57017 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
57018 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
57019 to decide whether to define the BeOS workaround macro;
57020 this adjusts to the change to AC_MBSTATE_T.
57022 2000-07-14 Jim Meyering <meyering@lucent.com>
57024 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
57025 jm_AC_TYPE_UINTMAX_T.
57027 2000-07-13 Paul Eggert <eggert@twinsun.com>
57029 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
57031 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
57032 quotearg_buffer_restyled): Add support for
57033 clocale_quoting_style. Undo previous change to
57034 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
57035 and "{RIGHT QUOTATION MARK}" msgids.
57037 2000-07-10 Paul Eggert <eggert@twinsun.com>
57039 From a suggestion by Bruno Haible.
57040 * m4/mbstate_t.m4 (AC_MBSTATE_T):
57041 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
57042 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
57043 and mbstate_t, to a single-part test that simply defines mbstate_t.
57044 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
57045 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
57047 2000-07-10 Jim Meyering <meyering@lucent.com>
57049 * m4/strerror_r.m4: Mirror the correction made in autoconf.
57051 * m4/gnu-source.m4: Output to confdefs.h directly.
57052 Suggestion from Akim Demaille.
57054 2000-07-09 Paul Eggert <eggert@twinsun.com>
57056 The old behavior of quoting `like this' doesn't look good with
57057 newer, ISO-style fonts. See:
57058 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
57060 Instead, quote "like this" by default. Let the translator
57061 tailor the locale-specific quoting behavior by providing
57062 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
57064 * lib/quotearg.c (N_): New macro.
57065 (gettext_default): New function.
57066 (quotearg_buffer_restyled): Use
57067 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
57068 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
57070 2000-07-09 Jim Meyering <meyering@lucent.com>
57072 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
57073 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
57075 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
57076 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
57078 2000-07-09 Jim Meyering <meyering@lucent.com>
57080 * lib/Most files: Update copyright dates to include 2000.
57082 2000-07-08 Jim Meyering <meyering@lucent.com>
57084 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
57086 (xgethostname): Remove now-unnecessary #ifdef.
57087 Move declaration of `err' into loop where it's used.
57089 2000-07-05 Paul Eggert <eggert@twinsun.com>
57090 and Bruno Haible <haible@clisp.cons.org>
57092 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
57093 only if the test for an object-type mbstate_t fails. This
57094 prevents us from mistakenly reporting that mbstate_t is a
57095 system object type after we "#define mbstate_t int" to work
57098 2000-07-05 Paul Eggert <eggert@twinsun.com>
57099 and Bruno Haible <haible@clisp.cons.org>
57101 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
57103 2000-07-05 Bruno Haible <haible@clisp.cons.org>
57105 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
57107 Include <ctype.h> for use of isalpha.
57109 2000-07-05 Bruno Haible <haible@clisp.cons.org>
57111 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
57112 by allocating a larger buffer. Test the gethostname return value for
57113 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
57114 returns an error and ENAMETOOLONG isn't defined.
57116 2000-07-05 Bruno Haible <haible@clisp.cons.org>
57118 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
57121 2000-07-04 Jim Meyering <meyering@lucent.com>
57123 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
57124 of the deprecated AC_CHECKING.
57126 2000-07-04 Jim Meyering <meyering@lucent.com>
57128 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
57129 Reported by Bruno Haible.
57131 2000-07-04 Jim Meyering <meyering@lucent.com>
57133 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
57134 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
57137 2000-07-03 Paul Eggert <eggert@twinsun.com>
57139 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
57140 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
57142 2000-07-03 Paul Eggert <eggert@twinsun.com>
57143 and Bruno Haible <haible@clisp.cons.org>
57145 * lib/quotearg.c (mbrtowc):
57146 Assign to *pwc, and return 1 only if result is nonzero.
57147 (iswprint): Use ISPRINT when substituting our own mbrtowc.
57149 2000-07-03 Jim Meyering <meyering@lucent.com>
57151 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
57153 2000-07-03 Jim Meyering <meyering@lucent.com>
57155 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
57156 This is necessary to get a definition of e.g., UTMP_FILE on
57160 2000-07-02 Jim Meyering <meyering@lucent.com>
57162 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
57164 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
57165 AC_LIBOBJ(function_name).
57166 * m4/chown.m4: Likewise.
57167 * m4/fnmatch.m4: Likewise.
57168 * m4/ftruncate.m4: Likewise.
57169 * m4/getgroups.m4: Likewise.
57170 * m4/getline.m4: Likewise.
57171 * m4/group-member.m4: Likewise.
57172 * m4/jm-macros.m4: Likewise.
57173 * m4/lstat.m4: Likewise.
57174 * m4/malloc.m4: Likewise.
57175 * m4/memcmp.m4: Likewise.
57176 * m4/nanosleep.m4: Likewise.
57177 * m4/putenv.m4: Likewise.
57178 * m4/realloc.m4: Likewise.
57179 * m4/regex.m4: Likewise.
57180 * m4/stat.m4: Likewise.
57181 * m4/strftime.m4: Likewise.
57183 2000-07-02 Jim Meyering <meyering@lucent.com>
57185 * lib/quotearg.c (mbstate_t): Don't define here.
57187 2000-07-02 Jim Meyering <meyering@lucent.com>
57189 * lib/nanosleep.c (SIGCONT): Define if not already defined.
57191 2000-07-01 Jim Meyering <meyering@lucent.com>
57193 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
57195 2000-07-01 Jim Meyering <meyering@lucent.com>
57197 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
57200 2000-07-01 Bruno Haible <haible@clisp.cons.org>
57202 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
57203 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
57205 2000-07-01 Bruno Haible <haible@clisp.cons.org>
57207 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
57208 per change in ../m4/ls-mntd-fs.m4.
57209 (read_filesystem_list): Ignore symbolic links.
57211 2000-06-29 Jim Meyering <meyering@lucent.com>
57213 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
57214 for declaration of strcmp.
57216 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
57218 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
57219 Avoid warning by casting result to `char *' to remove `const'.
57221 2000-06-28 Jim Meyering <meyering@lucent.com>
57223 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
57224 included by quotearg.c, for which we perform this test. From
57227 2000-06-27 Bruno Haible <haible@clisp.cons.org>
57229 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
57230 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
57231 <utmpx.h> exists, put readutmp.o into LIBOBJS.
57233 2000-06-27 Bruno Haible <haible@clisp.cons.org>
57235 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
57237 2000-06-26 Paul Eggert <eggert@twinsun.com>
57239 savedir now sets errno on failure and invokes xmalloc to get memory.
57240 Fix a couple of other minor bugs while we're at it.
57242 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
57243 (NAMLEN): Remove macro.
57244 (malloc, realloc): Remove decls.
57245 (stpcpy): Likewise.
57246 ("xalloc.h"): Include.
57247 (NAME_SIZE_DEFAULT): New macro.
57248 (savedir): Use xmalloc / xrealloc to allocate memory.
57249 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
57250 Skip "" directory entries.
57251 Use strlen to calculate directory entry length, since the old method
57252 is rarely used these days and isn't worth supporting.
57253 Don't use a pointer after freeing it.
57254 Check for integer overflow when calculating allocation size.
57255 Use memcpy to copy entries, instead of stpcpy.
57256 Set errno properly when returning NULL.
57257 Check for readdir error.
57259 2000-06-26 Jim Meyering <meyering@lucent.com>
57261 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
57263 2000-06-25 Jim Meyering <meyering@lucent.com>
57265 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
57266 Linux header bug when _XOPEN_SOURCE is defined to 500.
57268 2000-06-25 Bruno Haible <haible@clisp.cons.org>
57270 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
57273 2000-06-25 Bruno Haible <haible@clisp.cons.org>
57275 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
57277 Don't include <stdlib.h>. Don't declare malloc, realloc.
57279 2000-06-24 Jim Meyering <meyering@lucent.com>
57281 * m4/strerror_r.m4: Revive this file -- to try out an experimental
57282 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
57283 for which strerror does return char*, but which lacks a conveniently
57284 accessible declaration of the function. If the compile-test says
57285 strerror_r doesn't work, then resort to a `run'-test that works on
57286 BeOS and segfaults on DEC Unix.
57288 2000-06-24 Jim Meyering <meyering@lucent.com>
57290 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
57292 2000-06-23 Paul Eggert <eggert@twinsun.com>
57294 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
57295 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
57297 2000-06-23 Paul Eggert <eggert@twinsun.com>
57299 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
57300 (mbrtowc, mbstate_t): Define substitutes if
57301 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
57302 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
57303 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
57305 2000-06-23 Jim Meyering <meyering@lucent.com>
57307 * m4/afs.m4: Add missing AC_MSG_RESULT.
57308 Reported by Bruno Haible.
57310 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
57311 Suggestion from Bruno Haible.
57313 2000-06-23 Jim Meyering <meyering@lucent.com>
57315 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
57317 2000-06-21 Jim Meyering <meyering@lucent.com>
57319 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
57321 2000-06-21 Jim Meyering <meyering@lucent.com>
57323 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
57324 (noinst_HEADERS): Add getstr.h.
57326 * lib/getline.c (getstr): Move into a separate file.
57327 * lib/getstr.c (getstr): New file, extracted from getline.c, with
57328 the following changes: new parameter, delim2; both delim[12]
57329 parameters have type `int', not `char'. The latter would lose
57330 with 8-bit delimiters.
57331 * lib/getstr.h: New file.
57333 2000-06-21 Bruno Haible <haible@clisp.cons.org>
57335 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
57336 than 1024, return a memory chunk of least possible size, instead
57337 of size PATH_MAX + 2. In the loop, increment the size proportionally.
57338 Use free/xmalloc instead of xrealloc to avoid copying for very long
57341 2000-06-21 Bruno Haible <haible@clisp.cons.org>
57343 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
57346 2000-06-21 Bruno Haible <haible@clisp.cons.org>
57348 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
57349 address, not strdup. Include <stdlib.h> and don't declare free().
57351 2000-06-19 Jim Meyering <meyering@lucent.com>
57353 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
57355 2000-06-18 Jim Meyering <meyering@lucent.com>
57357 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
57359 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
57360 `checking whether...' message to be consistent with that of the
57363 2000-06-18 Jim Meyering <meyering@lucent.com>
57365 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
57366 Besides, these days every porting target provides a mkdir function.
57368 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
57369 needed. (this snippet comes from src/system.h).
57371 2000-06-16 Bruno Haible <haible@clisp.cons.org>
57373 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
57375 2000-06-15 Paul Eggert <eggert@twinsun.com>
57377 * lib/human.c (adjust_value): New function.
57378 (human_readable_inexact): Apply rounding style even when
57379 printing approximate values.
57381 2000-06-14 Paul Eggert <eggert@twinsun.com>
57383 * lib/human.c (human_readable_inexact): Allow an input block
57384 size that is not a multiple of the output block size, and vice versa.
57385 Reported by Piergiorgio Sartor.
57387 2000-06-14 Paul Eggert <eggert@twinsun.com>
57389 * lib/getdate.y (get_date): Apply relative times after time
57390 zone indicator, not before. Reported by Todd A. Jacobs.
57392 2000-06-13 Jim Meyering <meyering@lucent.com>
57394 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
57396 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
57398 2000-06-12 Paul Eggert <eggert@twinsun.com>
57400 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
57402 2000-06-12 Jim Meyering <meyering@lucent.com>
57404 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
57405 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
57407 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
57408 the optional argument, `lib'.
57410 2000-06-08 Jim Meyering <meyering@lucent.com>
57412 * m4/largefile.m4: Remove file (now that it's part of autoconf).
57414 2000-06-04 Paul Eggert <eggert@twinsun.com>
57416 Rewrite largefile configuration so that we don't need to run
57417 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
57418 AC_CANONICAL_HOST in configure.in -- jmm]
57420 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
57421 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
57422 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
57423 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
57424 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
57426 Instead of inspecting the output of getconf, try to compile the
57427 test program without and with the macro definition.
57428 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
57429 for getconf. Instead, check for the needed flags by compiling
57432 2000-06-04 Paul Eggert <eggert@twinsun.com>
57434 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
57436 2000-06-04 Jim Meyering <meyering@lucent.com>
57438 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
57439 SunOS 4.1.4 for which gid_t is an unsigned type.
57441 2000-06-03 Jim Meyering <meyering@lucent.com>
57443 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
57444 now that autoconf requires that.
57446 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
57447 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
57448 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
57450 2000-06-03 Jim Meyering <meyering@lucent.com>
57452 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
57454 2000-06-03 Bruno Haible <haible@clisp.cons.org>
57456 * m4/glibc21.m4: New file.
57457 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
57459 2000-06-03 Bruno Haible <haible@clisp.cons.org>
57461 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
57462 newer, don't install charset.alias.
57463 * lib/config.charset: Change the Linux/glibc rules so they become empty
57464 on glibc-2.1 or newer.
57466 2000-06-02 Jim Meyering <meyering@lucent.com>
57468 * lib/mountlist.c: Back out last change. Instead, do this...
57469 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
57470 me_dummy member using the same `ignore'-testing code.
57471 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
57475 2000-05-29 Jim Meyering <meyering@lucent.com>
57477 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
57478 mounts with the `ignore' attribute. Based on a patch from
57481 2000-05-28 Jim Meyering <meyering@lucent.com>
57483 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
57484 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57485 * m4/stat.m4: Likewise.
57486 * m4/lstat.m4: Likewise.
57487 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
57489 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
57490 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
57492 2000-05-26 Jim Meyering <meyering@lucent.com>
57494 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
57496 2000-05-24 Jim Meyering <meyering@lucent.com>
57498 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
57499 autoconf requires that.
57500 * m4/lib-check.m4: Likewise.
57501 * m4/jm-macros.m4: Likewise.
57502 * m4/strftime.m4: Likewise.
57504 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
57505 AC_CHECK_DECLS, now that autoconf requires that.
57507 2000-05-22 Jim Meyering <meyering@lucent.com>
57509 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57510 * m4/lstat.m4: Likewise.
57512 2000-05-22 Jim Meyering <meyering@lucent.com>
57514 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
57516 2000-05-20 Jim Meyering <meyering@lucent.com>
57518 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
57519 (jm_PREREQ): Use it.
57521 2000-05-18 Jim Meyering <meyering@lucent.com>
57523 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
57524 back, too, since it may have been modified by allocate_entry.
57525 (hash_delete): Rewrite to use neither the assignment operator
57526 nor the comma operator in an if-expression.
57528 2000-05-15 Paul Eggert <eggert@twinsun.com>
57531 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
57532 Remove; no longer needed.
57533 "quotearg.h": Add include.
57534 (file_name): Do not bother to explicitly initialize to NULL; it's less
57535 efficient on some hosts.
57536 (close_stdout_status): Remove test as to whether stdout was already
57537 closed; it breaks for the case "echo x | sort >&-".
57538 Quote file name colons.
57539 Do not assume that _("write error") lacks format strings.
57541 2000-05-15 Jim Meyering <meyering@lucent.com>
57543 * lib/version-etc.c (version_etc_copyright): Update the copyright
57544 string used in all --version output.
57546 2000-05-14 Jim Meyering <meyering@lucent.com>
57548 * lib/closeout.c (close_stdout_set_file_name): New function.
57549 (close_stdout_status): Use new file-scoped global.
57550 Return right away if fstat says the stdout file descriptor is invalid.
57551 * lib/closeout.h (close_stdout_set_file_name): Declare.
57553 2000-05-10 Jim Meyering <meyering@lucent.com>
57555 * lib/closeout.c [default_exit_status]: New file-scoped variable.
57556 (close_stdout_set_status): New function.
57557 * lib/closeout.h (close_stdout_set_status): Declare.
57559 2000-05-09 Jim Meyering <meyering@lucent.com>
57561 * m4/gettext.m4: Rename this...
57562 * m4/libintl.m4: ...to this.
57564 2000-05-08 Jim Meyering <meyering@lucent.com>
57566 * lib/long-options.c: Don't include closeout.h.
57567 (parse_long_options): Don't call close_stdout for --version.
57569 2000-05-06 Paul Eggert <eggert@twinsun.com>
57571 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
57572 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
57573 2.1.3 bug. This avoids a clash when files like regex.c define
57576 2000-05-06 Jim Meyering <meyering@lucent.com>
57578 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
57579 (AC_REPLACE_FUNCS): Add strnlen.
57581 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
57582 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
57584 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
57585 AC_SEARCH_LIBS call for nanosleep.
57586 (LIB_NANOSLEEP): Set and AC_SUBST.
57588 2000-05-06 Jim Meyering <meyering@lucent.com>
57590 * lib/strnlen.c: Undefine __strnlen and strnlen.
57591 [!weak_alias]: Define __strnlen to strnlen.
57593 * lib/atexit.c: New file, from libiberty.
57595 2000-05-06 Jim Meyering <meyering@lucent.com>
57597 * lib/closeout.c (close_stdout_status): Also check for errors on the
57600 2000-05-05 Jim Meyering <meyering@lucent.com>
57602 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
57603 AC_SEARCH_LIBS call for clock_gettime.
57604 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
57606 * m4/search-libs.m4: Update from autoconf.
57608 su doesn't work on Solaris 2.6.
57609 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
57610 <shadow.h>. Reported by Dragos Harabor.
57612 2000-05-05 Bruno Haible <haible@clisp.cons.org>
57614 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
57615 memcpy instead of xmalloc, xrealloc, path_concat.
57616 (locale_charset): Treat empty environment variables as absent.
57617 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
57619 2000-05-04 Jim Meyering <meyering@lucent.com>
57621 * lib/getopt.c: Update from glibc.
57622 * lib/obstack.c: Likewise.
57623 * lib/obstack.h: Likewise.
57624 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
57627 * lib/regex.h: Likewise.
57628 * lib/strndup.c: Likewise.
57629 * lib/strnlen.c: New file, from glibc.
57631 2000-05-03 Jim Meyering <meyering@lucent.com>
57633 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
57635 2000-05-02 Paul Eggert <eggert@twinsun.com>
57637 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
57638 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
57639 compile-time test, rather than inspecting host and OS, to
57640 decide whether to define _LARGEFILE_SOURCE.
57642 2000-05-01 Jim Meyering <meyering@lucent.com>
57644 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
57646 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
57647 Based on a patch from Bruno Haible.
57649 2000-05-01 Jim Meyering <meyering@lucent.com>
57651 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
57653 2000-04-29 Jim Meyering <meyering@lucent.com>
57655 * lib/path-concat.c: Declare strdup only if it's not defined.
57656 * lib/canon-host.c: Likewise.
57658 2000-04-28 Jim Meyering <meyering@lucent.com>
57660 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
57661 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
57662 is included first, then limits.h is included by locale.h by libintl.h.
57663 From John David Anglin.
57665 2000-04-25 Jim Meyering <meyering@lucent.com>
57667 * lib/makepath.c (S_IRWXUGO): Define.
57668 (make_path): Always perform explicit chmod if MODE specifies any
57669 of the `special' permission bits. Prompted by a bug report against
57670 install from Mate Wierdl and Joost van Baal.
57672 2000-04-18 Jim Meyering <meyering@lucent.com>
57674 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
57675 (jm_PREREQ): Use it.
57677 2000-04-18 Jim Meyering <meyering@lucent.com>
57679 * lib/README: New file.
57681 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
57682 getpagesize. For BeOS. Based on a patch from Bruno Haible.
57684 2000-04-17 Jim Meyering <meyering@lucent.com>
57687 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
57688 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
57689 Suggestion from Akim Demaille.
57691 2000-04-17 Jim Meyering <meyering@lucent.com>
57693 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
57694 the definition of it to rpl_strftime also defined-away the system's
57697 2000-04-15 Jim Meyering <meyering@lucent.com>
57699 Use `C' to denote so-called `contiguous' files, the same way
57701 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
57702 (ftypelet): Use S_ISCTG.
57703 From Michael Deutschmann.
57705 2000-04-14 Jim Meyering <meyering@lucent.com>
57707 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
57708 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
57711 2000-04-14 Jim Meyering <meyering@lucent.com>
57713 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
57715 2000-04-13 Jim Meyering <meyering@lucent.com>
57717 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
57718 AH_VERBATIM to insert required #ifndef into config.h.in.
57719 Suggestion from Akim Demaille.
57721 2000-04-12 Jim Meyering <meyering@lucent.com>
57723 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
57724 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
57725 Christian Krackowizer.
57727 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
57728 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
57729 (AC_SYS_LARGEFILE): Require.
57730 (AM_C_PROTOTYPES): Require.
57732 2000-04-08 Jim Meyering <meyering@lucent.com>
57734 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
57735 names don't conflict. Reported by Eli Zaretskii.
57737 2000-04-07 Jim Meyering <meyering@lucent.com>
57739 * lib/putenv.c: Move inclusion of errno.h so it follows that of
57740 sys/types.h, to work around system header problems on AIX 3.2.5.
57743 2000-04-07 Bruno Haible <haible@clisp.cons.org>
57745 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
57746 bug. Deal with the different error behavior of Irix iconv.
57748 2000-04-05 Paul Eggert <eggert@twinsun.com>
57750 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
57751 IRIX if the installer said otherwise.
57753 2000-04-05 Jim Meyering <meyering@lucent.com>
57755 Portability tweaks required for ultrix4.3.
57756 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
57757 (jm_CHECK_DECLS): Add getutent to the list of functions.
57758 (_jm_DECL_HEADERS): Add utmpx.h.
57759 From John David Anglin.
57761 * m4/strftime.m4: Back out the 2000-04-02 change.
57762 Instead of that change, simply undefine putenv in the test program.
57764 2000-04-05 Jim Meyering <meyering@lucent.com>
57766 Portability tweaks required for ultrix4.3.
57767 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
57769 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
57770 * lib/canon-host.c: Declare strdup.
57771 * lib/path-concat.c: Likewise.
57772 From John David Anglin.
57774 2000-04-04 Jim Meyering <meyering@lucent.com>
57776 Be more DOS 8.3-friendly.
57777 * lib/ref-add.sin: Renamed from ref-add.sed.in.
57778 * lib/ref-del.sin: Renamed from ref-del.sed.in.
57779 * lib/Makefile.am: Reflect renaming.
57780 Reported by Eli Zaretskii.
57782 Use a temporary file name that won't clash with `charset.alias'
57783 in the DOS 8.3 name space.
57784 * lib/Makefile.am (charset_tmp): Define.
57785 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
57786 (uninstall-local): Likewise.
57787 Reported by Eli Zaretskii.
57789 2000-04-03 Jim Meyering <meyering@lucent.com>
57791 * m4/gettext.m4: Fix typo in comment.
57793 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
57794 textutils/configure.in). Suggestion from Paul Eggert.
57795 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
57797 2000-04-02 Paul Eggert <eggert@twinsun.com>
57799 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
57800 variable in the shell rather than using putenv, which isn't
57801 portable. This avoids the configure-time inter-test dependency
57802 on the potentially-renamed putenv function.
57804 2000-03-30 Paul Eggert <eggert@twinsun.com>
57806 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
57807 before checking struct stat.st_blksize, so that
57808 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
57810 2000-03-29 Paul Eggert <eggert@twinsun.com>
57812 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
57813 since strftime.c uses HAVE_STRFTIME to decide whether to use
57814 the underlying strftime.
57816 2000-03-29 Paul Eggert <eggert@twinsun.com>
57818 * lib/time/strftime.c (my_strftime): Make sure we call the system
57819 strftime, not ourselves, when invoking the underlying strftime.
57821 2000-03-24 Jim Meyering <meyering@lucent.com>
57823 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
57824 (charset_alias): Define.
57825 (install-exec-local): Factor out common code.
57826 (uninstall-local): Split lines longer than 80.
57827 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
57828 (SUFFIXES): Define.
57829 (.sed.in.sed): New rule. Don't redirect directly to $@.
57830 (CLEANFILES): Add ref-add.sed and ref-del.sed.
57832 2000-03-19 Bruno Haible <haible@clisp.cons.org>
57834 * lib/config.charset: Output a line containing "Packages using this
57836 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
57837 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
57838 ref-del.sed): New rules.
57840 2000-03-17 Jim Meyering <meyering@lucent.com>
57842 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
57843 Otherwise, include <strings.h>
57845 2000-03-17 Bruno Haible <haible@clisp.cons.org>
57847 * lib/unicodeio.c (utf8_wctomb): New function.
57848 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
57849 format instead of in UCS-4 with platform dependent endianness.
57851 2000-03-10 Jim Meyering <meyering@lucent.com>
57853 * m4/lib-check.m4: Look for getspnam in -lgen, too.
57854 From Marco Franzen.
57856 2000-03-07 Paul Eggert <eggert@twinsun.com>
57858 * lib/savedir.c (savedir): Work even if directory size is
57859 negative; this can happen with some screwy NFS configurations.
57861 2000-03-06 Jim Meyering <meyering@lucent.com>
57863 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
57864 if it's NULL (because we ran out of memory). From Bruno Haible.
57866 2000-03-05 Jim Meyering <meyering@lucent.com>
57868 * lib/localcharset.c ("path-concat.h"): Include.
57869 (get_charset_aliases): Use path_concat instead of ANSI string
57872 * lib/unicodeio.h (PARAMS): Define.
57873 Use it to guard prototype.
57875 2000-03-04 Jim Meyering <meyering@lucent.com>
57877 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
57878 for lib/localcharset.c.
57880 2000-03-04 Jim Meyering <meyering@lucent.com>
57882 * lib/Makefile.am (install-exec-local): Create $(libdir) before
57883 installing into it.
57884 (uninstall-local): Uncomment this rule so `make distcheck' works
57887 * lib/unicodeio.c (<errno.h>): Include it.
57888 (errno): Declare if not defined.
57890 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
57892 * lib/config.charset: New version, incorporating remarks from a linux
57893 i18n mailing list. From Bruno Haible.
57895 2000-03-04 Bruno Haible <haible@clisp.cons.org>
57897 * m4/codeset.m4: New file.
57898 * m4/iconv.m4: New file.
57899 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
57901 2000-03-03 Jim Meyering <meyering@lucent.com>
57903 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
57905 2000-03-02 Jim Meyering <meyering@lucent.com>
57907 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
57908 the messages come out on separate lines.
57910 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
57911 rather than jm_CHECK_DECLARATIONS.
57912 * m4/decl.m4: Remove now-unused file.
57914 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
57917 2000-03-02 Jim Meyering <meyering@lucent.com>
57919 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
57921 2000-03-01 Jim Meyering <meyering@lucent.com>
57923 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
57924 * lib/unicodeio.c: Likewise.
57926 2000-03-01 Bruno Haible <haible@clisp.cons.org>
57928 * lib/config.charset: New file.
57929 * lib/localcharset.c: New file.
57930 * lib/unicodeio.h, lib/unicodeio.c: New files.
57931 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
57932 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
57933 (noinst_HEADERS): Add unicodeio.h.
57934 (all-local, install-exec-local, charset.alias): New targets.
57936 2000-02-28 Paul Eggert <eggert@twinsun.com>
57938 * lib/quotearg.c (ALERT_CHAR): New macro.
57939 (quotearg_buffer_restyled): Use it.
57941 2000-02-27 Jim Meyering <meyering@lucent.com>
57943 * m4/check-decl.m4: Add getenv to the list.
57945 2000-02-27 Jim Meyering <meyering@lucent.com>
57947 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
57948 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
57950 * lib/backupfile.c: Guard inclusion of stdlib.h with
57951 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
57952 Declare malloc if needed.
57954 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
57955 `#ifndef HAVE_DECL..'
57956 now that autoconf always defines the HAVE_DECL_ symbols.
57957 * lib/human.c: Likewise.
57958 * lib/same.c: Likewise.
57959 * lib/strtoumax.c: Likewise.
57961 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
57962 declaration check was not run.
57963 * lib/hash.c: Likewise.
57964 * lib/human.c: Likewise.
57965 * lib/same.c: Likewise.
57966 * lib/strtoumax.c: Likewise.
57968 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
57969 `.', then first look up the entire `.'-containing string as a login
57972 2000-02-23 Jim Meyering <meyering@lucent.com>
57974 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
57975 in place of my hack.
57977 2000-02-18 Paul Eggert <eggert@twinsun.com>
57979 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
57980 (textint): New typedef.
57981 (parser_control): Member year changed from int to textint.
57983 (YYSTYPE): Removed; replaced by %union with int and textint members.
57984 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
57985 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
57986 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
57987 (tSNUMBER, tUNUMBER): Now of type <textintval>.
57988 (date, number, to_year): Use width of number in digits, not its value,
57989 to determine whether it's a 2-digit year, or a 2-digit time.
57990 (yylex): Store number of digits of numeric tokens.
57991 Reported by John Kendall.
57993 (parser_control): Changed from struct parser_control to typedef (for
57994 consistency). All uses changed.
57996 (tID): Removed; not used.
57997 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
57999 2000-02-14 Paul Eggert <eggert@twinsun.com>
58001 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
58002 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
58004 2000-02-12 Jim Meyering <meyering@lucent.com>
58006 * lib/userspec.c (ISDIGIT): Define it.
58007 (isdigit): Remove definition.
58008 (is_number): Use ISDIGIT, not isdigit.
58009 <libintl.h>: Include.
58010 (_ and N_): Define.
58011 (parse_user_spec): Mark translatable strings.
58013 2000-02-10 Jim Meyering <meyering@lucent.com>
58015 With these changes, nanosleep.[ch] are finally enough like the other
58016 lib/* replacement files to compile on a few more losing systems.
58018 * lib/nanosleep.h: Don't include config.h.
58019 Remove prototype from declaration of nanosleep.
58020 (PARAMS): Remove now-unneeded definition.
58021 * lib/nanosleep.c: #undef nanosleep.
58022 (rpl_nanosleep): Rename from nanosleep.
58024 2000-02-10 Jim Meyering <meyering@lucent.com>
58026 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
58027 gnu_nanosleep to rpl_nanosleep.
58029 2000-02-09 Jim Meyering <meyering@lucent.com>
58031 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
58032 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
58034 2000-02-08 Akim Demaille <akim@epita.fr>
58036 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
58037 `[' and `]' and remove uses of `changequote'.
58038 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
58039 (AC_SYS_LARGEFILE): Likewise.
58040 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
58041 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
58043 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
58044 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
58045 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
58046 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
58048 2000-02-05 Jim Meyering <meyering@lucent.com>
58050 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
58051 Remove explicit use of AC_HEADER_TIME. It is required by
58052 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
58053 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
58054 in autoconf whereby the expansion of the latter ended up preceding
58055 the expansion of its prerequisite, AC_HEADER_TIME.
58056 Reported by Volker Borchert.
58058 2000-02-03 Jim Meyering <meyering@lucent.com>
58060 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
58062 2000-02-03 Jim Meyering <meyering@lucent.com>
58064 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
58065 rather than with `#if HAVE_UTMPNAME'.
58067 2000-02-02 Jim Meyering <meyering@lucent.com>
58069 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
58070 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
58071 Reported by Eli Zaretskii.
58073 2000-02-01 Jim Meyering <meyering@lucent.com>
58075 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
58077 2000-01-31 Jim Meyering <meyering@lucent.com>
58079 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
58080 functions. Add the time.h and sys/time.h headers along with the
58081 AC_REQUIRE'ment of AC_HEADER_TIME.
58083 2000-01-31 Jim Meyering <meyering@lucent.com>
58085 * lib/nanosleep.h (nanosleep): Guard declaration with
58086 `#if ! HAVE_DECL_NANOSLEEP'.
58087 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
58088 the declaration in that vendor's sys/timers.h.
58089 Reported by Christian Krackowizer.
58091 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
58092 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
58093 (ISPRINT): Likewise.
58094 Reported by Tom Tromey.
58096 2000-01-30 Jim Meyering <meyering@lucent.com>
58098 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
58100 * m4/prereq.m4 (utmp_includes): Define.
58101 Check for ut_user and ut_name members in both struct utmpx
58104 2000-01-30 Jim Meyering <meyering@lucent.com>
58106 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
58107 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
58108 header files where only utmpx.ut_user is declared.
58110 * lib/readutmp.h (UT_USER): Define.
58112 2000-01-29 Jim Meyering <meyering@lucent.com>
58114 * m4/lib-check.m4: New file containing library-related checks from
58115 fileutils and sh-utils (textutils had none).
58117 2000-01-28 Jim Meyering <meyering@lucent.com>
58119 * m4/perl.m4: Change format of warning message to look more like that
58120 from the missing script. Suggestion from François Pinard.
58122 2000-01-25 Jim Meyering <meyering@lucent.com>
58124 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
58125 well as time.h in the compile check.
58126 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
58127 Fix typo in cross-compiling case: s/yes/no/.
58129 2000-01-23 Jim Meyering <meyering@lucent.com>
58131 * m4/jm-macros.m4: Move df-related tests here from
58132 fileutils/configure.in
58134 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
58135 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
58137 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
58138 s/space/ac_fsusage_space/.
58139 (jm_FILE_SYSTEM_USAGE): Take two parameters.
58141 * m4/ftruncate.m4: New file (derived from part of
58142 fileutils/configure.in).
58143 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
58144 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
58146 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
58147 AC_SUBST these here, rather than just in sh-util/configure.in, so
58148 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
58150 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
58151 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
58152 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
58153 (AC_SUBST(POW_LIBM)): Likewise.
58154 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
58156 2000-01-23 Jim Meyering <meyering@lucent.com>
58158 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
58161 2000-01-22 Jim Meyering <meyering@lucent.com>
58163 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
58165 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
58167 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
58169 (AC_CHECK_HEADERS): Likewise for sh-utils.
58170 (AC_CHECK_HEADERS): Likewise for textutils.
58171 Merge the three lists of headers.
58173 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
58174 from fileutils' configure.in.
58176 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
58177 code. Moved tests into their own function (_jm_DECL_HEADERS) in
58180 * m4/check-decl.m4: Use #if rather than #ifdef.
58181 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
58182 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
58183 (_jm_DECL_HEADERS): Define new function.
58184 (jm_CHECK_DECLARATIONS): Require it.
58186 2000-01-22 Jim Meyering <meyering@lucent.com>
58188 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
58189 [! HAVE_DECL_STRTOULL]: Declare strtoull.
58190 Required for some AIX systems. Reported by Christian Krackowizer.
58191 [TESTING] (main): New function.
58193 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
58194 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
58197 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
58200 * lib/strverscmp.c (ISDIGIT): Define.
58201 (strverscmp): Use ISDIGIT, not isdigit.
58203 2000-01-19 Jim Meyering <meyering@lucent.com>
58205 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
58206 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
58207 defines `struct timespec' in <sys/time.h>
58209 * m4/c-bs-a.m4: Remove uses of changequote altogether.
58210 Thanks to Akim for explaining.
58212 2000-01-17 Paul Eggert <eggert@twinsun.com>
58214 * lib/nanosleep.c (nanosleep):
58215 Don't use SA_INTERRUPT to decide whether to call sigaction, as
58216 POSIX.1 doesn't require SA_INTERRUPT and some systems
58217 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
58218 it's been part of POSIX.1 since day 1 (in 1988).
58220 2000-01-17 Jim Meyering <meyering@lucent.com>
58222 * lib/interlock: Remove unused file. Reported by François Pinard.
58224 2000-01-16 Paul Eggert <eggert@twinsun.com>
58226 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
58227 alert, backslash, formfeed, and vertical tab unnecessarily in
58228 shell quoting style.
58230 2000-01-16 Jim Meyering <meyering@lucent.com>
58232 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
58233 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
58234 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
58235 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
58237 2000-01-16 Jim Meyering <meyering@lucent.com>
58239 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
58240 because the latter didn't work.
58242 2000-01-15 Jim Meyering <meyering@lucent.com>
58244 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
58245 (AC_REPLACE_FUNCS): Add memcpy and memset.
58246 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
58248 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
58250 2000-01-12 Jim Meyering <meyering@lucent.com>
58252 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
58253 (jm_PREREQ): Use it.
58254 (jm_PREREQ_READUTMP): New macro.
58255 (jm_PREREQ): Use it.
58257 2000-01-11 Paul Eggert <eggert@twinsun.com>
58259 Quote multibyte characters correctly.
58260 * m4/c-bs-a.m4: New file.
58261 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
58262 (jm_PREREQ): Use it.
58264 2000-01-11 Paul Eggert <eggert@twinsun.com>
58266 * m4/uintmax_t.m4: Port to autoconf 2.13.
58268 2000-01-08 Jim Meyering <meyering@ascend.com>
58270 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
58271 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
58273 2000-01-04 Jim Meyering <meyering@ascend.com>
58275 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
58276 jm_STRUCT_DIRENT_D_TYPE.
58277 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
58278 jm_STRUCT_DIRENT_D_INO.
58279 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
58281 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
58283 * m4/utime.m4: Likewise.
58285 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
58286 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
58288 2000-01-03 Paul Eggert <eggert@twinsun.com>
58290 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
58291 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
58293 2000-01-02 Jim Meyering <meyering@ascend.com>
58295 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
58296 remember if this is necessary.
58298 1999-12-26 Jim Meyering <meyering@ascend.com>
58300 * m4/jm-macros.m4: Use it here.
58301 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
58303 1999-12-23 Jim Meyering <meyering@ascend.com>
58305 * m4/jm-macros.m4: Check for clock_gettime (moved from
58306 fileutils/configure.in)
58307 Check for gettimeofday.
58309 1999-12-20 Jim Meyering <meyering@ascend.com>
58311 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
58312 autoconf-2.14a-1999-12-20.
58314 1999-12-19 Jim Meyering <meyering@ascend.com>
58316 * m4/lstat-slash.m4: New file.
58317 * m4/jm-macros.m4: Use the new macro:
58318 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58320 1999-12-07 Jim Meyering <meyering@ascend.com>
58322 * m4/perl.m4: Require that File::Compare be available, too.
58323 Too many systems seem to lack it.
58325 * m4/strftime.m4: Add checks for most of the cpp macros tested in
58326 GNU's strftime.c. Prompted by a patch from Paul Eggert.
58328 1999-11-18 Paul Eggert <eggert@twinsun.com>
58330 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
58331 problem with the QNX 4.25 shell, which doesn't propagate exit
58332 status of failed commands inside shell assignments.
58334 1999-11-17 Jim Meyering <meyering@ascend.com>
58336 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
58338 1999-11-07 Jim Meyering <meyering@ascend.com>
58340 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
58342 1999-11-06 Jim Meyering <meyering@ascend.com>
58344 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
58345 * m4/jm-macros.m4 (jm_MACROS): Use it here.
58347 1999-11-05 Jim Meyering <meyering@ascend.com>
58349 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
58350 configure.in of textutils, fileutils, and sh-utils into this one
58351 (shared between those packages) file.
58352 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
58353 AC_STRUCT_ST_BLKSIZE.
58355 1999-11-03 Jim Meyering <meyering@ascend.com>
58357 * m4/ssize_t.m4: Remove file. No longer needed since the new version
58358 of AC_CHECK_TYPE checks includes unistd.h.
58359 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
58360 Suggestion from Akim Demaille.
58362 1999-10-30 Jim Meyering <meyering@ascend.com>
58364 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
58366 * m4/ls-mntd-fs.m4: Likewise.
58367 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
58368 * m4/jm-winsz1.m4: Likewise.
58370 * m4/const.m4: Remove file, since the fix made it into the experimental
58371 version of autoconf.
58372 * m4/mktime.m4: Likewise.
58374 * m4/check-type.m4: Remove file, now that the latest version of
58375 AC_CHECK_TYPE takes a third arg to specify additional #includes.
58377 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
58378 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
58381 1999-10-04 Jim Meyering <meyering@ascend.com>
58383 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
58385 1999-09-22 Paul Eggert <eggert@twinsun.com>
58387 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
58388 2.95.1 bug with HP-UX 10.20.
58390 1999-09-17 Jim Meyering <meyering@ascend.com>
58392 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
58393 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
58394 due to missing strdup (against sh-utils-2.0).
58396 1999-08-29 Jim Meyering <meyering@ascend.com>
58398 * m4/jm-macros.m4: Require jm_BISON.
58399 * m4/bison.m4: New file.
58401 1999-08-17 Paul Eggert <eggert@twinsun.com>
58403 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
58404 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
58406 1999-08-05 Jim Meyering <meyering@ascend.com>
58408 * m4/getline.m4: Rename test file from conftestdata to conftest.data
58409 to avoid conflicts with `conftest' on 8+3 filesystems.
58410 Suggestion from Eli Zaretskii.
58412 1999-08-04 Jim Meyering <meyering@ascend.com>
58414 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
58415 fileutils and sh-utils (textutils's getline test was inadequate).
58416 (AM_FUNC_GETLINE): Run this test.
58417 (AC_CHECK_FUNCS): Check for getdelim.
58418 Reported by Bob Proulx.
58420 1999-08-02 Jim Meyering <meyering@ascend.com>
58422 * m4/jm-macros.m4: Add a comment.
58424 1999-08-01 Paul Eggert <eggert@twinsun.com>
58426 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
58427 <inttypes.h> defines strtoumax as a macro (and not as a
58430 1999-08-01 Paul Eggert <eggert@twinsun.com>
58432 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
58433 that we can shift, multiply and divide unsigned long long
58434 values; Ultrix cc can't do it.
58436 1999-08-01 Paul Eggert <eggert@twinsun.com>
58438 * m4/mktime.m4: New file, which is a preview of what should appear
58439 in the next public autoconf release.
58441 1999-08-01 Paul Eggert <eggert@twinsun.com>
58443 * m4/lfs.m4: Remove this file.
58444 * m4/largefile.m4: New file. It contains the old contents of
58445 lfs.m4, except that all names with prefix AC_LFS have been
58446 changed to use the prefix AC_SYS_LARGEFILE instead, to be
58447 compatible with future autoconf versions. Also, some minor m4
58448 quoting problems have been fixed.
58450 1999-08-01 Paul Eggert <eggert@twinsun.com>
58452 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
58453 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
58454 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
58455 and simplify the shell code.
58457 1999-08-01 Jim Meyering <meyering@ascend.com>
58459 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
58462 1999-07-20 Jim Meyering <meyering@ascend.com>
58464 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
58466 1999-07-15 Jim Meyering <meyering@ascend.com>
58468 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
58470 1999-05-22 Jim Meyering <meyering@ascend.com>
58472 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
58474 1999-05-20 Jim Meyering <meyering@ascend.com>
58476 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
58477 Add a colon after each `then' in case $4 is empty.
58479 1999-05-16 Jim Meyering <meyering@ascend.com>
58481 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
58483 1999-05-10 Jim Meyering <meyering@ascend.com>
58485 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
58487 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
58490 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
58492 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
58494 1999-05-04 Paul Eggert <eggert@twinsun.com>
58496 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
58497 not CPPFLAGS, so that linking works correctly in IRIX.
58499 1999-04-30 Paul Eggert <eggert@twinsun.com>
58501 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
58503 1999-04-20 Paul Eggert <eggert@twinsun.com>
58505 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
58506 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
58507 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
58508 jm_AC_TYPE_UNSIGNED_LONG_LONG.
58509 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
58511 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
58513 1999-04-20 Jim Meyering <meyering@ascend.com>
58515 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
58516 AC_REPLACE xstroull if necessary. From Paul Eggert.
58517 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
58519 1999-04-18 Jim Meyering <meyering@ascend.com>
58521 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
58522 * m4/jm-macros.m4: Use it.
58524 1999-04-06 Jim Meyering <meyering@ascend.com>
58526 * m4/strftime.m4: Remove test for %f.
58528 1999-03-29 Jim Meyering <meyering@ascend.com>
58530 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
58531 superset of the AC_TYPE_* checks in the textutils, fileutils,
58532 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
58535 1999-03-28 Jim Meyering <meyering@ascend.com>
58537 * m4/jm-macros.m4: Define GNU_PACKAGE here.
58538 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
58539 replaced e.g., in the *.sh files of the sh-utils.
58541 1999-03-20 Jim Meyering <meyering@ascend.com>
58543 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
58544 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
58545 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
58547 1999-03-19 Jim Meyering <meyering@ascend.com>
58549 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
58551 1999-03-12 Jim Meyering <meyering@ascend.com>
58553 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
58555 1999-03-07 Jim Meyering <meyering@ascend.com>
58557 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
58560 1999-02-17 Jim Meyering <meyering@ascend.com>
58562 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
58563 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
58565 1999-02-07 Jim Meyering <meyering@ascend.com>
58567 * m4/group-member.m4: New file -- extracted from sh-utils'
58570 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
58571 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
58573 1999-02-06 Jim Meyering <meyering@ascend.com>
58575 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
58576 * m4/fnmatch.m4: Likewise.
58577 * m4/getgroups.m4: Likewise.
58578 * m4/lstat.m4: Likewise.
58579 * m4/malloc.m4: Likewise.
58580 * m4/putenv.m4: Likewise.
58581 * m4/realloc.m4: Likewise.
58582 * m4/regex.m4: Likewise.
58583 * m4/stat.m4: Likewise.
58584 * m4/strftime.m4: Likewise.
58585 Suggestion from Alain Magloire.
58587 * m4/chown.m4: Use `.$ac_objext', not `.o'.
58588 * m4/fnmatch.m4: Likewise.
58589 * m4/getgroups.m4: Likewise.
58590 * m4/getline.m4: Likewise.
58591 * m4/lstat.m4: Likewise.
58592 * m4/malloc.m4: Likewise.
58593 * m4/memcmp.m4: Likewise.
58594 * m4/putenv.m4: Likewise.
58595 * m4/realloc.m4: Likewise.
58596 * m4/regex.m4: Likewise.
58597 * m4/stat.m4: Likewise.
58598 * m4/strftime.m4: Likewise.
58599 Suggestion from Alain Magloire.
58601 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
58604 * m4/regex.m4: Add a run-time Test for proper operation of
58605 re_compile_pattern.
58607 1999-01-31 Jim Meyering <meyering@ascend.com>
58609 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
58611 1999-01-30 Jim Meyering <meyering@ascend.com>
58613 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
58615 * m4/jm-mktime.m4: Make this a wrapper around the official
58616 AM_FUNC_MKTIME rather than my private copy, now that the official one
58618 * m4/mktime.m4: Remove file.
58620 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
58621 * m4/uptime.m4: Likewise.
58622 * m4/uintmax_t.m4: Likewise.
58624 1999-01-28 Jim Meyering <meyering@ascend.com>
58626 * m4/jm-macros.m4: Use jm_AFS.
58627 * m4/afs.m4: New file (from fileutils' configure.in).
58629 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
58630 * m4/chown.m4: Likewise.
58631 * m4/d-ino.m4: Likewise.
58632 * m4/d-type.m4: Likewise.
58633 * m4/fnmatch.m4: Likewise.
58634 * m4/getgroups.m4: Likewise.
58635 * m4/gettext.m4: Likewise.
58636 * m4/jm-mktime.m4: Likewise.
58637 * m4/jm-winsz2.m4: Likewise.
58638 * m4/lcmessage.m4: Likewise.
58639 * m4/ls-mntd-fs.m4: Likewise.
58640 * m4/malloc.m4: Likewise.
58641 * m4/memcmp.m4: Likewise.
58642 * m4/putenv.m4: Likewise.
58643 * m4/realloc.m4: Likewise.
58644 * m4/st_mtim.m4: Likewise.
58645 * m4/strftime.m4: Likewise.
58647 1999-01-16 Jim Meyering <meyering@ascend.com>
58649 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
58650 (ARGMATCH_DIE_DECL): Define.
58652 1999-01-12 Jim Meyering <meyering@ascend.com>
58654 * m4/Makefile.am.in: Rewrite to avoid using fmt.
58655 Reported by Lars Hecking.
58657 1999-01-10 Jim Meyering <meyering@ascend.com>
58659 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
58661 * m4/inttypes_h.m4: Likewise.
58662 * m4/lstat.m4: Likewise.
58663 * m4/malloc.m4: Likewise.
58664 * m4/readdir.m4: Likewise.
58665 * m4/realloc.m4: Likewise.
58666 * m4/st_dm_mode.m4: Likewise.
58667 * m4/stat.m4: Likewise.
58668 * m4/utimbuf.m4: Likewise.
58669 * m4/utimes.m4: Likewise.
58671 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
58672 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
58673 comments in config.h.in are meaningful.
58675 * m4/jm-macros.m4: Require autoconf-2.13 here.
58677 * m4/regex.m4: By default, don't use the included regex.c on systems
58678 with glibc 2. Suggestion from Uli Drepper.
58680 1999-01-02 Jim Meyering <meyering@ascend.com>
58682 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
58684 1998-12-18 Jim Meyering <meyering@ascend.com>
58686 * m4/Makefile.am.in (Makefile.am): Simplify rule.
58687 Based on a suggestion from Lars Hecking.
58689 1998-11-16 Paul Eggert <eggert@twinsun.com>
58691 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
58693 1998-11-16 Jim Meyering <meyering@ascend.com>
58695 * m4/lfs.m4: Double-quote the `uname...` expression.
58697 1998-11-14 Jim Meyering <meyering@ascend.com>
58699 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
58700 * m4/stat.m4: Likewise.
58702 1998-11-03 Jim Meyering <meyering@ascend.com>
58704 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
58705 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
58707 1998-10-18 Jim Meyering <meyering@ascend.com>
58709 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
58711 1998-10-17 Jim Meyering <meyering@ascend.com>
58713 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
58714 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
58715 calls for those previously hard-coded headers. Instead, take a new
58717 (jm_CHECK_DECLARATIONS): Reflect interface change.
58718 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
58719 (jm_CHECK_DECL_LOCALTIME_R): New macro.
58721 * m4/mktime.m4: Test for spring-forward gap before long-running test.
58723 1998-10-14 Jim Meyering <meyering@ascend.com>
58725 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
58726 instead of "TZ=America/Vancouver". From Paul Eggert.
58728 1998-10-11 Jim Meyering <meyering@ascend.com>
58730 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
58731 This adds a test for a recently added compatibility fix for mktime.c.
58732 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
58734 1998-09-27 Jim Meyering <meyering@ascend.com>
58736 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
58738 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
58739 ../configure.in, including a change from Gordon Matzigkeit to allow
58740 cross-compiling for the Hurd.
58742 * m4/glibc.m4: New file/macro to test for the GNU C Library
58743 versions 1 and 2. From Gordon Matzigkeit.
58746 1998-09-21 Jim Meyering <meyering@ascend.com>
58748 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
58750 1998-08-18 Paul Eggert <eggert@twinsun.com>
58752 Port nanosecond-resolution times to UnixWare 2.1.2 and
58753 pedantic Solaris 2.6.
58755 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
58757 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
58758 Generate name of ns member, instead of just 1 or undef.
58759 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
58761 1998-08-15 Jim Meyering <meyering@ascend.com>
58763 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
58764 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
58765 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
58766 instead of jm_TYPE_SSIZE_T.
58768 1998-08-12 Jim Meyering <meyering@ascend.com>
58770 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
58772 1998-08-02 Jim Meyering <meyering@ascend.com>
58774 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
58775 in acconfig.h manually.
58777 1998-07-31 Paul Eggert <eggert@twinsun.com>
58779 * m4/st_mtim.m4: New file.
58781 1998-07-28 Jim Meyering <meyering@ascend.com>
58783 * m4/utimes.m4: Undef stat.
58785 1998-07-25 Jim Meyering <meyering@ascend.com>
58787 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
58788 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
58790 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
58792 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
58793 uid and gid actually remain unchanged.
58795 1998-07-07 Jim Meyering <meyering@ascend.com>
58797 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
58799 1998-07-04 Jim Meyering <meyering@ascend.com>
58801 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
58802 to prove that this macro can be used in packages without regex.c.
58804 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
58806 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
58809 1998-07-03 Jim Meyering <meyering@ascend.com>
58811 * m4/gettext.m4: Add -lintl if it's found to be necessary.
58813 * m4/gettext.m4: New file -- from gettext-0.10.35.
58814 * m4/lcmessage.m4: Likewise.
58815 * m4/progtest.m4: Likewise.
58817 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
58818 * m4/jm-macros.m4: Require the new macro.
58820 1998-06-29 Jim Meyering <meyering@ascend.com>
58822 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
58823 for the definition of NGROUPS (used in a system header included
58826 1998-06-28 Jim Meyering <meyering@ascend.com>
58828 * m4/ls-mntd-fs.m4: New file.
58829 * m4/fstypename.m4: New file.
58831 * m4/jm-macros.m4: Require the new macro.
58832 * m4/jm-glibc-io.m4: New file.
58834 1998-05-19 Jim Meyering <meyering@ascend.com>
58836 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
58837 * m4/lchown.m4: New file.
58839 * m4/Makefile.am.in: New file.
58840 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
58842 1998-05-14 Jim Meyering <meyering@ascend.com>
58844 * m4/Makefile.am (EXTRA_DIST): Add them.
58845 * m4/jm-macros.m4: New file.
58846 * m4/utimbuf.m4: New file.
58848 1998-05-12 Jim Meyering <meyering@ascend.com>
58850 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
58852 1998-05-11 Jim Meyering <meyering@ascend.com>
58854 * m4/isc-posix.m4: New file.
58856 1998-05-10 Jim Meyering <meyering@ascend.com>
58858 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
58860 1998-05-09 Jim Meyering <meyering@ascend.com>
58862 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
58863 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
58866 * m4/ssize_t.m4: New file.
58867 * m4/mktime.m4: Remove file -- the new automake has this now.
58869 1998-04-26 Jim Meyering <meyering@ascend.com>
58871 * m4/assert.m4: New file.
58872 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
58874 1998-04-05 Jim Meyering <meyering@ascend.com>
58876 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
58877 (jm_PREREQ): Use it here.
58879 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
58881 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
58884 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
58886 * m4/prereq.m4: New file.
58887 * m4/error.m4: New file.
58888 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
58890 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
58892 * m4/getline.m4: Don't set am_cv_func_working_getline before the
58893 cache-check for the same variable -- that defeated the purpose of
58894 the test; the test program was never run. This was a problem only
58895 on systems with losing getline functions -- HP-UX 10.20 is one.
58896 Reported by Bjorn Helgaas.
58898 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
58900 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
58902 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
58904 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
58906 * m4/const.m4: New file. Use an initializer in this declaration
58907 typedef int charset[2]; const charset x;
58908 Reported by Bob Glickstein.
58910 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
58912 * m4/chown.m4: Fix reversed types on -1 args to chown.
58915 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
58917 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
58918 Add lseek and memchr.
58920 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
58921 T.E.Dickey <dickey@clark.net> said that some older preprocessors
58922 have a 20-character limit on names.
58924 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
58926 * m4/inttypes_h.m4: New file.
58927 * m4/uintmax_t.m4: New file.
58928 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
58937 Copyright (C) 1997-2009 Free Software Foundation, Inc.
58939 Copying and distribution of this file, with or without
58940 modification, are permitted provided the copyright notice
58941 and this notice are preserved.