1 2009-12-24 Eric Blake <ebb9@byu.net>
3 test-nanosleep: fix typo
4 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
6 Reported by Bruno Haible.
8 2009-12-24 Bruno Haible <bruno@clisp.org>
10 Reduce namespace pollution on glibc systems.
11 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
12 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
14 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
15 <getopt.h> on glibc systems.
16 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
18 * lib/fcntl.c: Include <unistd.h> here instead.
20 2009-12-24 Bruno Haible <bruno@clisp.org>
22 * lib/stdlib.in.h (includes): Fix typo in today's commit.
24 2009-12-24 Eric Blake <ebb9@byu.net>
26 tests: add signature checks
27 * tests/signature.h (SIGNATURE_CHECK): New file.
28 * modules/atexit-tests (Files): Use it.
29 * modules/btowc-tests (Files): Likewise.
30 * modules/canonicalize-lgpl-tests (Files): Likewise.
31 * modules/ceilf-tests (Files): Likewise.
32 * modules/ceill-tests (Files): Likewise.
33 * modules/chown-tests (Files): Likewise.
34 * modules/dprintf-posix-tests (Files): Likewise.
35 * modules/dup2-tests (Files): Likewise.
36 * modules/dup3-tests (Files): Likewise.
37 * modules/duplocale-tests (Files): Likewise.
38 * modules/fchdir-tests (Files): Likewise.
39 * modules/fcntl-tests (Files): Likewise.
40 * modules/fdopendir-tests (Files): Likewise.
41 * modules/fflush-tests (Files): Likewise.
42 * modules/flock-tests (Files): Likewise.
43 * modules/floorf-tests (Files): Likewise.
44 * modules/floorl-tests (Files): Likewise.
45 * modules/fnmatch-tests (Files): Likewise.
46 * modules/fopen-tests (Files): Likewise.
47 * modules/fprintf-posix-tests (Files): Likewise.
48 * modules/freopen-tests (Files): Likewise.
49 * modules/frexp-nolibm-tests (Files): Likewise.
50 * modules/frexp-tests (Files): Likewise.
51 * modules/frexpl-nolibm-tests (Files): Likewise.
52 * modules/frexpl-tests (Files): Likewise.
53 * modules/fseek-tests (Files): Likewise.
54 * modules/fseeko-tests (Files): Likewise.
55 * modules/fsync-tests (Files): Likewise.
56 * modules/ftell-tests (Files): Likewise.
57 * modules/ftello-tests (Files): Likewise.
58 * modules/futimens-tests (Files): Likewise.
59 * modules/getaddrinfo-tests (Files): Likewise.
60 * modules/getcwd-tests (Files): Likewise.
61 * modules/getdelim-tests (Files): Likewise.
62 * modules/getdtablesize-tests (Files): Likewise.
63 * modules/getgroups-tests (Files): Likewise.
64 * modules/gethostname-tests (Files): Likewise.
65 * modules/getline-tests (Files): Likewise.
66 * modules/getopt-posix-tests (Files): Likewise.
67 * modules/gettimeofday-tests (Files): Likewise.
68 * modules/glob-tests (Files): Likewise.
69 * modules/iconv-tests (Files): Likewise.
70 * modules/inet_ntop-tests (Files): Likewise.
71 * modules/inet_pton-tests (Files): Likewise.
72 * modules/isblank-tests (Files): Likewise.
73 * modules/lchown-tests (Files): Likewise.
74 * modules/ldexpl-tests (Files): Likewise.
75 * modules/link-tests (Files): Likewise.
76 * modules/linkat-tests (Files): Likewise.
77 * modules/lseek-tests (Files): Likewise.
78 * modules/lstat-tests (Files): Likewise.
79 * modules/mbrtowc-tests (Files): Likewise.
80 * modules/mbsinit-tests (Files): Likewise.
81 * modules/mbsnrtowcs-tests (Files): Likewise.
82 * modules/mbsrtowcs-tests (Files): Likewise.
83 * modules/memchr-tests (Files): Likewise.
84 * modules/memcmp-tests (Files): Likewise.
85 * modules/memmem-tests (Files): Likewise.
86 * modules/memrchr-tests (Files): Likewise.
87 * modules/mkdir-tests (Files): Likewise.
88 * modules/mkfifo-tests (Files): Likewise.
89 * modules/mkfifoat-tests (Files): Likewise.
90 * modules/mknod-tests (Files): Likewise.
91 * modules/nanosleep-tests (Files): Likewise.
92 * modules/nl_langinfo-tests (Files): Likewise.
93 * modules/obstack-printf-tests (Files): Likewise.
94 * modules/open-tests (Files): Likewise.
95 * modules/openat-tests (Files): Likewise.
96 * modules/perror-tests (Files): Likewise.
97 * modules/pipe2-tests (Files): Likewise.
98 * modules/poll-tests (Files): Likewise.
99 * modules/popen-tests (Files): Likewise.
100 * modules/posix_spawn-tests (Files): Likewise.
101 * modules/posix_spawnp-tests (Files): Likewise.
102 * modules/pread-tests (Files): Likewise.
103 * modules/printf-posix-tests (Files): Likewise.
104 * modules/pty-tests (Files): Likewise.
105 * modules/random_r-tests (Files): Likewise.
106 * modules/rawmemchr-tests (Files): Likewise.
107 * modules/readlink-tests (Files): Likewise.
108 * modules/remove-tests (Files): Likewise.
109 * modules/rename-tests (Files): Likewise.
110 * modules/renameat-tests (Files): Likewise.
111 * modules/rmdir-tests (Files): Likewise.
112 * modules/round-tests (Files): Likewise.
113 * modules/roundf-tests (Files): Likewise.
114 * modules/roundl-tests (Files): Likewise.
115 * modules/select-tests (Files): Likewise.
116 * modules/setenv-tests (Files): Likewise.
117 * modules/sigaction-tests (Files): Likewise.
118 * modules/sleep-tests (Files): Likewise.
119 * modules/snprintf-posix-tests (Files): Likewise.
120 * modules/snprintf-tests (Files): Likewise.
121 * modules/sprintf-posix-tests (Files): Likewise.
122 * modules/stat-tests (Files): Likewise.
123 * modules/strcasestr-tests (Files): Likewise.
124 * modules/strchrnul-tests (Files): Likewise.
125 * modules/strerror-tests (Files): Likewise.
126 * modules/strsignal-tests (Files): Likewise.
127 * modules/strstr-tests (Files): Likewise.
128 * modules/strtod-tests (Files): Likewise.
129 * modules/strverscmp-tests (Files): Likewise.
130 * modules/symlink-tests (Files): Likewise.
131 * modules/symlinkat-tests (Files): Likewise.
132 * modules/times-tests (Files): Likewise.
133 * modules/trunc-tests (Files): Likewise.
134 * modules/truncf-tests (Files): Likewise.
135 * modules/truncl-tests (Files): Likewise.
136 * modules/tsearch-tests (Files): Likewise.
137 * modules/uname-tests (Files): Likewise.
138 * modules/unlink-tests (Files): Likewise.
139 * modules/unsetenv-tests (Files): Likewise.
140 * modules/usleep-tests (Files): Likewise.
141 * modules/utimensat-tests (Files): Likewise.
142 * modules/vasprintf-tests (Files): Likewise.
143 * modules/vdprintf-posix-tests (Files): Likewise.
144 * modules/vfprintf-posix-tests (Files): Likewise.
145 * modules/vprintf-posix-tests (Files): Likewise.
146 * modules/vsnprintf-posix-tests (Files): Likewise.
147 * modules/vsnprintf-tests (Files): Likewise.
148 * modules/vsprintf-posix-tests (Files): Likewise.
149 * modules/wcrtomb-tests (Files): Likewise.
150 * modules/wcsnrtombs-tests (Files): Likewise.
151 * modules/wcsrtombs-tests (Files): Likewise.
152 * modules/wcwidth-tests (Files): Likewise.
153 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
154 * tests/test-isinf.c (isinf): Likewise.
155 * tests/test-isnan.c (isnan): Likewise.
156 * tests/test-signbit.c (signbit): Likewise.
157 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
158 declaration, either as macro or with correct signature.
159 (select): Ensure function under test is declared with correct
160 signature in correct header.
161 * tests/test-atexit.c (atexit): Likewise.
162 * tests/test-btowc.c (btowc): Likewise.
163 * tests/test-canonicalize-lgpl.c (realpath)
164 (canonicalize_file_name): Likewise.
165 * tests/test-ceilf1.c (ceilf): Likewise.
166 * tests/test-ceill.c (ceill): Likewise.
167 * tests/test-chown.c (chown): Likewise.
168 * tests/test-dprintf-posix.c (dprintf): Likewise.
169 * tests/test-dup2.c (dup2): Likewise.
170 * tests/test-dup3.c (dup3): Likewise.
171 * tests/test-duplocale.c (duplocale): Likewise.
172 * tests/test-fchdir.c (fchdir): Likewise.
173 * tests/test-fchownat.c (fchownat): Likewise.
174 * tests/test-fcntl.c (fcntl): Likewise.
175 * tests/test-fdopendir.c (fdopendir): Likewise.
176 * tests/test-fflush.c (fflush): Likewise.
177 * tests/test-flock.c (flock): Likewise.
178 * tests/test-floorf1.c (floorf): Likewise.
179 * tests/test-floorl.c (floorl): Likewise.
180 * tests/test-fnmatch.c (fnmatch): Likewise.
181 * tests/test-fopen.c (fopen): Likewise.
182 * tests/test-fprintf-posix.c (fprintf): Likewise.
183 * tests/test-freopen.c (freopen): Likewise.
184 * tests/test-frexp.c (frexp): Likewise.
185 * tests/test-frexpl.c (frexpl): Likewise.
186 * tests/test-fseek.c (fseek): Likewise.
187 * tests/test-fseeko.c (fseeko): Likewise.
188 * tests/test-fstatat.c (fstatat): Likewise.
189 * tests/test-fsync.c (fsync): Likewise.
190 * tests/test-ftell.c (ftell): Likewise.
191 * tests/test-ftello.c (ftello): Likewise.
192 * tests/test-futimens.c (futimens): Likewise.
193 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
194 (gai_strerror): Likewise.
195 * tests/test-getcwd.c (getcwd): Likewise.
196 * tests/test-getdelim.c (getdelim): Likewise.
197 * tests/test-getdtablesize.c (getdtablesize): Likewise.
198 * tests/test-getgroups.c (getgroups): Likewise.
199 * tests/test-gethostname.c (gethostname): Likewise.
200 * tests/test-getline.c (getline): Likewise.
201 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
203 * tests/test-gettimeofday.c (gettimeofday): Likewise.
204 * tests/test-glob.c (glob, globfree): Likewise.
205 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
206 * tests/test-inet_ntop.c (inet_ntop): Likewise.
207 * tests/test-inet_pton.c (inet_pton): Likewise.
208 * tests/test-isblank.c (isblank): Likewise.
209 * tests/test-lchown.c (lchown): Likewise.
210 * tests/test-ldexpl.c (ldexpl): Likewise.
211 * tests/test-link.c (link): Likewise.
212 * tests/test-linkat.c (linkat): Likewise.
213 * tests/test-lseek.c (lseek): Likewise.
214 * tests/test-lstat.c (lstat): Likewise.
215 * tests/test-mbrtowc.c (mbrtowc): Likewise.
216 * tests/test-mbsinit.c (mbsinit): Likewise.
217 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
218 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
219 * tests/test-memchr.c (memchr): Likewise.
220 * tests/test-memcmp.c (memcmp): Likewise.
221 * tests/test-memmem.c (memmem): Likewise.
222 * tests/test-memrchr.c (memrchr): Likewise.
223 * tests/test-mkdir.c (mkdir): Likewise.
224 * tests/test-mkdirat.c (mkdirat): Likewise.
225 * tests/test-mkfifo.c (mkfifo): Likewise.
226 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
227 * tests/test-mknod.c (mknod): Likewise.
228 * tests/test-nanosleep.c (nanosleep): Likewise.
229 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
230 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
232 * tests/test-open.c (open): Likewise.
233 * tests/test-openat.c (openat): Likewise.
234 * tests/test-perror.c (perror): Likewise.
235 * tests/test-pipe2.c (pipe2): Likewise.
236 * tests/test-poll.c (poll): Likewise.
237 * tests/test-popen.c (popen, pclose): Likewise.
238 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
239 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
240 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
241 (posix_spawn_file_actions_destroy)
242 (posix_spawn_file_actions_addclose)
243 (posix_spawn_file_actions_addopen)
244 (posix_spawn_file_actions_adddup2): Likewise.
245 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
246 * tests/test-pread.c (pread): Likewise.
247 * tests/test-printf-posix.c (printf): Likewise.
248 * tests/test-pty.c (openpty, forkpty): Likewise.
249 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
250 (random_r): Likewise.
251 * tests/test-rawmemchr.c (rawmemchr): Likewise.
252 * tests/test-readlink.c (readlink): Likewise.
253 * tests/test-remove.c (remove): Likewise.
254 * tests/test-rename.c (rename): Likewise.
255 * tests/test-renameat.c (renameat): Likewise.
256 * tests/test-rmdir.c (rmdir): Likewise.
257 * tests/test-round1.c (round): Likewise.
258 * tests/test-roundf1.c (roundf): Likewise.
259 * tests/test-roundl.c (roundl): Likewise.
260 * tests/test-setenv.c (setenv): Likewise.
261 * tests/test-sigaction.c (sigaction): Likewise.
262 * tests/test-sleep.c (sleep): Likewise.
263 * tests/test-snprintf.c (snprintf): Likewise.
264 * tests/test-sprintf-posix.c (sprintf): Likewise.
265 * tests/test-stat.c (stat): Likewise.
266 * tests/test-stpncpy.c (stpncpy): Likewise.
267 * tests/test-strcasestr.c (strcasestr): Likewise.
268 * tests/test-strchrnul.c (strchrnul): Likewise.
269 * tests/test-strerror.c (strerror): Likewise.
270 * tests/test-strsignal.c (strsignal): Likewise.
271 * tests/test-strstr.c (strstr): Likewise.
272 * tests/test-strtod.c (strtod): Likewise.
273 * tests/test-strverscmp.c (strverscmp): Likewise.
274 * tests/test-symlink.c (symlink): Likewise.
275 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
276 * tests/test-times.c (times): Likewise.
277 * tests/test-trunc1.c (trunc): Likewise.
278 * tests/test-truncf1.c (truncf): Likewise.
279 * tests/test-truncl.c (truncl): Likewise.
280 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
282 * tests/test-uname.c (uname): Likewise.
283 * tests/test-unlink.c (unlink): Likewise.
284 * tests/test-unlinkat.c (unlinkat): Likewise.
285 * tests/test-unsetenv.c (unsetenv): Likewise.
286 * tests/test-usleep.c (usleep): Likewise.
287 * tests/test-utimensat.c (utimensat): Likewise.
288 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
289 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
290 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
291 * tests/test-vprintf-posix.c (vprintf): Likewise.
292 * tests/test-vsnprintf.c (vsnprintf): Likewise.
293 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
294 * tests/test-wcrtomb.c (wcrtomb): Likewise.
295 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
296 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
297 * tests/test-wcwidth.c (wcwidth): Likewise.
299 build: pull in conditional headers during GNULIB_POSIXCHECK
300 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
301 definitions from any conditionally-included headers.
302 * lib/stdlib.in.h (includes): Likewise.
303 * lib/unistd.in.h (includes): Likewise.
305 2009-12-24 Bruno Haible <bruno@clisp.org>
307 * tests/test-argv-iter.c: Include header file being tested immediately
309 * tests/test-base64.c: Likewise.
310 * tests/test-flock.c: Likewise.
311 * tests/test-fsync.c: Likewise.
312 * tests/test-getdate.c: Likewise.
313 * tests/test-getndelim2.c: Likewise.
314 * tests/test-isfinite.c: Likewise.
315 * tests/test-isinf.c: Likewise.
316 * tests/test-strerror.c: Likewise.
317 * tests/test-strsignal.c: Likewise.
319 2009-12-23 Eric Blake <ebb9@byu.net>
321 unistd: work around cygwin bug
322 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
323 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
324 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
326 2009-12-23 Bruno Haible <bruno@clisp.org>
328 localename: More tests.
329 * tests/test-localename.c (SIZEOF): New macro.
330 (categories): New variable.
331 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
332 test_locale_name_default): Add test w.r.t. thread locale.
333 (test_locale_name_thread): New function.
336 localename: Make aware of thread locale.
337 * lib/localename.h (gl_locale_name_thread): New declaration.
338 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
339 behaviour with respect to thread locale.
340 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
341 <langinfo.h>, glthread/lock.h.
342 (SIZE_BITS): New macro.
343 (string_hash): New function.
344 (struct hash_node): New type.
345 (HASH_TABLE_SIZE): New macro.
346 (struniq_hash_table, struniq_lock): New variables.
347 (struniq): New function.
348 (gl_locale_name_thread): New function.
349 (gl_locale_name): Invoke it.
350 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
351 * modules/localename (Depends-on): Add lock.
352 Reported by Mike Gran <spk121@yahoo.com>.
354 2009-12-23 Eric Blake <ebb9@byu.net>
357 * modules/va-args: New file.
358 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
359 * MODULES.html.sh (Core language properties): Mention it.
361 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
362 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
363 named alias for __attribute__((__unused__)).
364 * lib/chown.c: Update client.
365 * lib/fchmodat.c: Likewise.
366 * lib/fts.c: Likewise.
367 * lib/getdate.y: Likewise.
368 * lib/getgroups.c: Likewise.
369 * lib/getopt.c: Likewise.
370 * lib/getugroups.c: Likewise.
371 * lib/mkdir.c: Likewise.
372 * lib/mkfifo.c: Likewise.
373 * lib/mkfifoat.c: Likewise.
374 * lib/mknod.c: Likewise.
375 * lib/mknodat.c: Likewise.
376 * lib/readlink.c: Likewise.
377 * lib/se-context.in.h: Likewise.
378 * lib/se-selinux.in.h: Likewise.
379 * lib/sockets.c: Likewise.
380 * lib/symlink.c: Likewise.
381 * lib/symlinkat.c: Likewise.
382 * lib/unicodeio.c: Likewise.
383 * lib/unistr.h: Likewise.
384 * tests/test-areadlink.c: Likewise.
385 * tests/test-areadlinkat.c: Likewise.
386 * tests/test-filenamecat.c: Likewise.
387 * tests/test-fseeko.c: Likewise.
388 * tests/test-ftello.c: Likewise.
389 * tests/test-getdate.c: Likewise.
390 * tests/test-getgroups.c: Likewise.
391 * tests/test-gethostname.c: Likewise.
392 * tests/test-quotearg.c: Likewise.
393 * tests/test-version-etc.c: Likewise.
394 * tests/test-xalloc-die.c: Likewise.
395 * tests/test-xfprintf-posix.c: Likewise.
396 * tests/test-xprintf-posix.c: Likewise.
397 * tests/test-xvasprintf.c: Likewise.
399 tests: avoid compiler warnings
400 * tests/test-fcntl.c (main): Delete unused parameters.
401 * tests/test-freopen-safer.c (main): Likewise.
402 * tests/test-xalloc-die.c (main): Mark unused parameters.
403 * tests/test-fseeko.c (main): Likewise.
404 * tests/test-ftello.c (main): Likewise.
405 * tests/test-nanosleep.c (main): Avoid declaration warning.
406 * tests/test-sleep.c (main): Likewise.
407 * tests/test-unsetenv.c (main): Silence warning about string
409 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
411 2009-12-23 Bruno Haible <bruno@clisp.org>
413 * tests/test-localename.c (test_locale_name): New function, extracted
414 from main. Also test mixed situations.
415 (test_locale_name_posix, test_locale_name_environ,
416 test_locale_name_default): New functions.
417 (main): Invoke them all.
418 * modules/localename-tests (configure.ac): Test for newlocale.
420 2009-12-23 Bruno Haible <bruno@clisp.org>
422 unistd: Ensure getcwd gets declared before being overridden.
423 * lib/unistd.in.h: Conditionally include <io.h>.
425 2009-12-22 Bruno Haible <bruno@clisp.org>
427 wchar: Diagnose broken combination of glibc and gcc versions and flags.
428 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
429 (gl_WCHAR_H): Invoke it.
430 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
431 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
432 Reported by Karl Berry <karl@freefriends.org>.
434 2009-12-22 Eric Blake <ebb9@byu.net>
436 math, unistd: avoid redundant includes
437 * lib/math.in.h (isnan): No need to re-include <math.h>.
438 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
440 getsubopt: work around cygwin bug
441 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
442 avoid conflicting with system getsubopt.
443 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
446 getopt: synchronize from glibc
447 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
448 parameter order. Adjust all callers.
449 (_getopt_internal_r, main): Adjust quoting in error messages.
450 Drop considerations for outdated POSIX 1003.2 error message.
451 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
453 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
455 test-getopt: test stderr behavior
456 * modules/getopt-posix-tests (Depends-on): Add dup2.
457 * tests/test-getopt.c (ASSERT): Avoid stderr.
458 (main): Move stderr to a temporary file.
459 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
460 Instead, add parameter to inform caller if output occurred.
461 (test_getopt): Adjust all existing tests to expect silence, and
462 add new tests of leading ":".
463 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
464 glibc shortcomings with leading "-:" or "+:" in optstring.
465 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
467 * doc/posix-functions/getopt.texi (getopt): Likewise.
469 test-getopt: enhance test
470 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
472 * tests/test-getopt.c (OPTIND_MIN): Move...
473 * tests/test-getopt.h (OPTIND_MIN): ...here.
474 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
475 Require that optind=0 works, since modern BSD supports it in
476 addition to optreset, and since coreutils expects it.
477 (test_getopt_long_only): New test.
478 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
479 glibc shortcomings with 'W;', and enforcement of optind=0.
480 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
483 2009-12-21 Bruno Haible <bruno@clisp.org>
485 localename: Improvements for MacOS X and Cygwin.
486 * lib/localename.h (gl_locale_name_environ): New declaration.
487 * lib/localename.c (gl_locale_name_environ): New function, extracted from
488 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
489 (gl_locale_name_posix): Invoke it.
490 (gl_locale_name_default): Add comments. Use Windows native API also on
493 2009-12-21 Bruno Haible <bruno@clisp.org>
495 Update list of Win32 locale ids.
496 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
497 (LANG_SAMI): Renamed from LANG_SAAMI.
498 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
499 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
500 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
501 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
502 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
503 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
504 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
505 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
506 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
507 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
508 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
509 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
510 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
511 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
512 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
513 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
514 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
515 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
516 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
517 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
518 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
519 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
520 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
521 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
522 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
523 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
524 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
525 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
526 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
527 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
528 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
529 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
530 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
531 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
532 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
533 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
534 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
535 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
536 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
537 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
538 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
539 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
540 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
541 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
542 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
543 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
544 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
545 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
546 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
547 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
548 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
549 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
550 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
551 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
552 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
553 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
554 Add more languages and countries for Sami, Sorbian. Add more countries
555 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
556 for Pashto. Change country for Syriac, Tswana.
558 2009-12-21 Eric Blake <ebb9@byu.net>
560 test-utimens: avoid spurious failure
561 * tests/test-chown.h (nap): Factor...
562 * tests/nap.h: ...into new file.
563 * tests/test-lchown.h (nap): Avoid duplication.
564 * tests/test-utimens-common.h (nap): Use shared implementation,
565 necessary on file systems with 1-second resolution.
566 * modules/chown-tests (Files): Include new file.
567 * modules/fdutimensat-tests (Files): Likewise.
568 * modules/futimens-tests (Files): Likewise.
569 * modules/lchown-tests (Files): Likewise.
570 * modules/openat-tests (Files): Likewise.
571 * modules/utimens-tests (Files): Likewise.
572 * modules/utimensat-tests (Files): Likewise.
574 2009-12-19 Eric Blake <ebb9@byu.net>
576 futimens, utimensat: work around Linux bug
577 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
578 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
579 * lib/utimensat.c (rpl_utimensat): Work around it.
580 * lib/futimens.c (rpl_futimens): Adjust comment.
582 utimens: work around Linux ctime bug
583 * lib/utimens.c (detect_ctime_bug): New helper function.
584 (update_timespec): Differentiate between workaround needed for
585 this bug vs. what is needed for systems that lack utimensat.
586 (fdutimens, lutimens): Work around bug.
588 utimens: check for ctime update
589 * tests/test-utimens-common.h (check_ctime): Define.
590 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
591 * tests/test-futimens.h (test_futimens): Likewise.
592 * tests/test-lutimens.h (test_lutimens): Likewise.
593 * doc/posix-functions/futimens.texi (futimens): Document the bug.
594 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
596 2009-12-19 Bruno Haible <bruno@clisp.org>
598 dprintf-posix: Check against memory leak fixed on 2009-12-15.
599 * tests/test-dprintf-posix2.sh: New file.
600 * tests/test-dprintf-posix2.c: New file.
601 * modules/dprintf-posix-tests (Files): Add them.
602 (configure.ac): Check for getrlimit and setrlimit.
603 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
605 2009-12-19 Bruno Haible <bruno@clisp.org>
607 fprintf-posix: Check against memory leak fixed on 2009-12-15.
608 * tests/test-fprintf-posix3.sh: New file.
609 * tests/test-fprintf-posix3.c: New file.
610 * modules/fprintf-posix-tests (Files): Add them.
611 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
613 2009-12-19 Eric Blake <ebb9@byu.net>
616 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
617 * lib/dirfd.c (dirfd): Likewise.
619 canonicalize: reduce memory usage
620 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
622 Reported by Solar Designer <solar@openwall.com>.
624 2009-12-19 Bruno Haible <bruno@clisp.org>
626 New module attribute 'Applicability'.
627 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
628 * gnulib-tool: New option --extract-applicability.
629 (func_usage): Document it.
630 (sed_extract_prog): Recognize it.
631 (func_get_applicability): New function.
632 (func_import): Generalize handling of 'link-warning' module.
633 * modules/link-warning (Applicability): New section.
634 * modules/arg-nonnull (Applicability): New section.
635 Repoted by Simon Josefsson <simon@josefsson.org>.
637 2009-12-19 Bruno Haible <bruno@clisp.org>
640 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
641 * lib/fseeko.c (rpl_fseeko): Likewise.
643 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
645 * lib/gl_list.h: Fix typo in comment.
647 2009-12-16 Eric Blake <ebb9@byu.net>
649 fcntl: use to simplify other modules
650 * modules/cloexec (Depends-on): Add fcntl.
651 * modules/fchdir (Depends-on): Likewise.
652 * modules/fd-safer-flag (Depends-on): Likewise.
653 * modules/unistd-safer (Depends-on): Likewise.
654 * modules/dup3 (configure.ac): Set module indicator.
655 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
657 * lib/fchdir.c (_gl_register_dup): Fix comment.
658 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
659 * lib/dup-safer.c (dup_safer): Likewise.
660 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
661 * lib/dup3.c (dup3): Likewise.
662 * tests/test-fchdir.c (main): Enhance test.
663 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
665 fcntl: port portions of fcntl to mingw
666 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
667 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
668 replacement for mingw.
669 * modules/fcntl (Description): Update.
670 (Depends-on): Add dup2.
671 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
672 * modules/fcntl-h (Makefile.am): Substitute it.
673 * lib/fcntl.in.h (fcntl): Update declaration.
674 (F_DUPFD, F_GETFD): New macros, when needed.
675 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
676 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
677 * tests/test-fcntl.c (check_flags, main): Enhance test for items
680 fcntl: work around cygwin bug in F_DUPFD
681 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
682 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
683 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
684 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
685 * doc/posix-functions/fcntl.texi (fcntl): Document it.
687 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
688 * modules/fcntl (Files): List new files.
689 (configure.ac): Run a test.
690 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
691 * lib/fcntl.c (rpl_fcntl): Likewise.
692 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
693 (gl_FCNTL_H): Always replace fcntl.h.
694 * modules/fcntl-h (Makefile.am): Substitute witnesses.
695 * lib/fcntl.in.h (fcntl): Declare replacement.
696 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
697 needed, plus a witness.
698 * doc/posix-functions/fcntl.texi (fcntl): Document this.
699 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
700 * tests/test-fcntl.c: New file.
701 * modules/fcntl-tests: Likewise.
703 binary-io: avoid potential compilation warning
704 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
707 fflush: avoid compilation error on NetBSD
708 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
709 between off_t and fpos_t, since the latter is sometimes a struct.
710 * lib/fseeko.c (rpl_fseeko): Likewise.
711 Reported by Alexander Nasonov <alnsn@yandex.ru>.
713 2009-12-15 Eric Blake <ebb9@byu.net>
715 fcntl-h, stdio, sys_ioctl: fix declarations
716 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
717 function must not take arguments.
718 * lib/sys_ioctl.in.h (ioctl): Likewise.
719 * lib/fcntl.in.h (openat): Likewise. Declare extern.
720 (open): Add a link warning.
722 2009-12-15 Jim Meyering <meyering@redhat.com>
724 areadlink, areadlink-with-size: relax license to LGPLv2+
725 * modules/areadlink (License): Relax to LGPLv2+.
726 * modules/areadlink-with-size (License): Likewise.
728 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
729 Bruno Haible <bruno@clisp.org>
731 *printf: Fix memory leak.
732 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
733 * lib/vfprintf.c (vfprintf): Likewise.
734 * lib/dprintf.c (dprintf): Likewise.
735 * lib/vdprintf.c (vdprintf): Likewise.
737 2009-12-14 Eric Blake <ebb9@byu.net>
739 accept4: adjust module dependencies
740 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
742 utimens: one more try at avoiding compiler warning
743 * lib/utimens.c (lutimens): Lower scope of result.
745 2009-12-13 Bruno Haible <bruno@clisp.org>
747 Move the malloc checking from module 'list' to new module 'xlist'.
748 * modules/xlist: New file.
749 * lib/gl_xlist.h: New file.
750 * lib/gl_xlist.c: New file.
751 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
752 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
753 gl_list_add_last, gl_list_add_before, gl_list_add_after,
754 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
755 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
756 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
757 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
758 gl_sortedlist_nx_add): New declarations.
759 (struct gl_list_implementation): Rename and change methods accordingly.
760 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
761 (gl_list_nx_create): Renamed from gl_list_create.
762 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
763 (gl_list_nx_set_at): Renamed from gl_list_set_at.
764 (gl_list_nx_add_first): Renamed from gl_list_add_first.
765 (gl_list_nx_add_last): Renamed from gl_list_add_last.
766 (gl_list_nx_add_before): Renamed from gl_list_add_before.
767 (gl_list_nx_add_after): Renamed from gl_list_add_after.
768 (gl_list_nx_add_at): Renamed from gl_list_add_at.
769 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
770 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
771 gl_list_create_empty.
772 (gl_list_nx_create): Renamed from gl_list_create.
773 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
774 (gl_list_nx_set_at): Renamed from gl_list_set_at.
775 (gl_list_nx_add_first): Renamed from gl_list_add_first.
776 (gl_list_nx_add_last): Renamed from gl_list_add_last.
777 (gl_list_nx_add_before): Renamed from gl_list_add_before.
778 (gl_list_nx_add_after): Renamed from gl_list_add_after.
779 (gl_list_nx_add_at): Renamed from gl_list_add_at.
780 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
781 * lib/gl_array_list.c: Don't include xalloc.h.
782 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
783 NULL upon out-of-memory.
784 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
786 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
787 Change return type to 'int'.
788 (gl_array_nx_set_at): Renamed from gl_array_set_at.
789 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
790 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
792 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
794 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
796 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
798 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
800 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
802 (gl_array_list_implementation): Update.
803 * lib/gl_carray_list.c: Don't include xalloc.h.
804 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
805 Return NULL upon out-of-memory.
806 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
808 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
809 Change return type to 'int'.
810 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
811 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
812 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
814 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
816 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
818 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
819 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
820 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
822 (gl_carray_list_implementation): Update.
823 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
824 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
825 gl_linked_create_empty. Return NULL upon out-of-memory.
826 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
828 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
829 Change return type to 'int'. Return -1 upon out-of-memory.
830 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
832 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
834 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
836 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
837 NULL upon out-of-memory.
838 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
840 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
842 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
844 * lib/gl_linked_list.c: Don't include xalloc.h.
845 (gl_linked_list_implementation): Update.
846 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
847 (add_to_bucket): Change return type to 'int'.
848 (gl_linkedhash_list_implementation): Update.
849 * lib/gl_anytree_list1.h (free_subtree): New function.
850 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
851 gl_tree_create_empty. Return NULL upon out-of-memory.
852 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
853 Change return type to 'int'. Return -1 upon out-of-memory.
854 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
856 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
857 (gl_tree_remove_node): New function, moved here from
858 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
859 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
861 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
862 malloc, not xmalloc. Return NULL upon out-of-memory.
863 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
865 (gl_tree_remove_node_from_tree): New function, extracted from
867 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
869 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
871 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
873 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
875 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
876 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
877 not xmalloc. Return NULL upon out-of-memory.
878 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
880 (gl_tree_remove_node_from_tree): New function, extracted from
882 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
884 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
886 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
888 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
890 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
891 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
892 gl_anytree_list1.h before gl_anyavltree_list2.h.
893 (gl_avltree_list_implementation): Update.
894 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
895 gl_anytree_list1.h before gl_anyavltree_list2.h.
896 (gl_rbtree_list_implementation): Update.
897 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
898 Change return type to 'int'. Return -1 upon out-of-memory. Use
900 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
901 (gl_avltreehash_list_implementation): Update.
902 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
903 (gl_rbtreehash_list_implementation): Update.
904 * modules/array-list (Depends-on): Remove xalloc.
905 * modules/carray-list (Depends-on): Likewise.
906 * modules/linked-list (Depends-on): Likewise.
907 * modules/linkedhash-list (Depends-on): Likewise.
908 * modules/avltree-list (Depends-on): Likewise.
909 * modules/rbtree-list (Depends-on): Likewise.
910 * modules/avltreehash-list (Depends-on): Likewise.
911 * modules/rbtreehash-list (Depends-on): Likewise.
913 * modules/xsublist: New file.
914 * lib/gl_xsublist.h: New file.
915 * lib/gl_xsublist.c: New file.
916 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
917 (gl_sublist_nx_create): New declaration.
918 * lib/gl_sublist.c: Don't include xalloc.h.
919 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
920 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
921 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
922 Change return type to 'int'. Return -1 upon out-of-memory.
923 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
925 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
926 NULL upon out-of-memory.
927 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
929 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
930 NULL upon out-of-memory.
931 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
932 NULL upon out-of-memory.
933 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
935 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
936 (gl_sublist_list_implementation): Update.
937 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
939 * modules/sublist (Depends-on): Remove xalloc.
941 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
942 * tests/test-carray_list.c: Likewise.
943 * tests/test-linked_list.c: Likewise.
944 * tests/test-linkedhash_list.c: Likewise.
945 * tests/test-avltree_list.c: Likewise.
946 * tests/test-rbtree_list.c: Likewise.
947 * tests/test-avltreehash_list.c: Likewise.
948 * tests/test-rbtreehash_list.c: Likewise.
949 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
950 * modules/carray-list-tests (Makefile.am): Likewise.
951 * modules/linked-list-tests (Makefile.am): Likewise.
952 * modules/linkedhash-list-tests (Makefile.am): Likewise.
953 * modules/avltree-list-tests (Makefile.am): Likewise.
954 * modules/rbtree-list-tests (Makefile.am): Likewise.
955 * modules/avltreehash-list-tests (Makefile.am): Likewise.
956 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
958 * NEWS: Mention the changes.
960 * lib/clean-temp.c: Include gl_xlist.h.
961 * modules/clean-temp (Depends-on): Add xlist.
963 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
964 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
966 * tests/test-array_oset.c: Include gl_xlist.h.
967 * modules/array-oset-tests (Depends-on): Add xlist.
969 Reported by José E. Marchesi <jemarch@gnu.org>.
971 2009-12-13 Bruno Haible <bruno@clisp.org>
973 Move the malloc checking from module 'oset' to new module 'xoset'.
974 * modules/xoset: New file.
975 * lib/gl_xoset.h: New file.
976 * lib/gl_xoset.c: New file.
977 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
979 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
980 (struct gl_oset_implementation): Rename and change methods accordingly.
981 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
982 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
983 'int'. Mark as __warn_unused_result__.
984 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
985 gl_oset_create_empty.
986 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
988 * lib/gl_array_oset.c: Don't include xalloc.h.
989 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
991 (grow): Change return type to 'int'. Don't call xalloc_die.
992 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
994 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
996 (gl_array_oset_implementation): Update.
997 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
998 gl_tree_create_empty.
999 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
1001 * lib/gl_avltree_oset.c: Don't include xalloc.h.
1002 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
1004 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
1006 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
1008 (gl_avltree_oset_implementation): Update.
1009 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
1010 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
1012 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
1014 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
1016 (gl_rbtree_oset_implementation): Update.
1017 * modules/array-oset (Depends-on): Remove xalloc.
1018 * modules/avltree-oset (Depends-on): Likewise.
1019 * modules/rbtree-oset (Depends-on): Likewise.
1020 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
1021 * tests/test-avltree_oset.c: Likewise.
1022 * tests/test-rbtree_oset.c: Likewise.
1023 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
1024 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
1025 * modules/rbtree-oset-tests (Makefile.am): Likewise.
1026 * NEWS: Mention the change.
1028 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
1030 maint.mk: allow a project to override release-prep commands
1031 * top/maint.mk (alpha, beta, stable): Move release-preparatory
1032 commands into a new rule.
1033 (release-prep): New rule.
1034 (release-prep-hook): New overridable variable.
1036 2009-12-13 Bruno Haible <bruno@clisp.org>
1038 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
1040 2009-12-13 Jim Meyering <meyering@redhat.com>
1042 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
1043 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
1045 2009-12-12 Bruno Haible <bruno@clisp.org>
1048 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
1050 2009-12-12 Karl Berry <karl@gnu.org>
1052 * config/srclist.txt (strtoll.c): tab changes, no more sync.
1054 2009-12-12 Bruno Haible <bruno@clisp.org>
1056 * m4/po.m4: Undo incorrect untabification.
1058 2009-12-12 Bruno Haible <bruno@clisp.org>
1060 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
1061 * modules/c-strtod (Depends-on): Add locale.
1062 * modules/c-strtold (Depends-on): Likewise.
1064 2009-12-12 Bruno Haible <bruno@clisp.org>
1066 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
1068 2009-12-11 Eric Blake <ebb9@byu.net>
1070 setenv: relax requirement in light of POSIX ruling
1071 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
1073 * tests/test-setenv.c (main): Relax test.
1074 * tests/test-unsetenv.c (main): Likewise.
1075 * doc/posix-functions/setenv.texi (setenv): Document this.
1076 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
1078 2009-12-11 Bruno Haible <bruno@clisp.org>
1080 New module 'fd-safer-flag'.
1081 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
1082 * lib/dup-safer.c (dup_safer_flag): Remove function.
1083 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
1084 * lib/fd-safer.c (fd_safer_flag): Remove function.
1085 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
1086 * modules/cloexec (configure.ac): Drop indicator macro.
1087 * modules/fd-safer-flag: New file.
1088 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
1089 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
1090 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
1092 2009-12-11 Bruno Haible <bruno@clisp.org>
1094 Tests for module 'nl_langinfo'.
1095 * modules/nl_langinfo-tests: New file.
1096 * tests/test-nl_langinfo.sh: New file.
1097 * tests/test-nl_langinfo.c: New file.
1099 New module 'nl_langinfo'.
1100 * lib/nl_langinfo.c: New file.
1101 * m4/nl_langinfo.m4: New file.
1102 * modules/nl_langinfo: New file.
1103 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
1105 2009-12-11 Bruno Haible <bruno@clisp.org>
1107 Tests for module 'langinfo'.
1108 * modules/langinfo-tests: New file.
1109 * tests/test-langinfo.c: New file.
1111 New module 'langinfo'.
1112 * lib/langinfo.in.h: New file.
1113 * m4/langinfo_h.m4: New file.
1114 * modules/langinfo: New file.
1115 * doc/posix-headers/langinfo.texi: Mention the new module.
1117 2009-12-11 Bruno Haible <bruno@clisp.org>
1119 * lib/config.charset: Untabify.
1121 2009-12-11 Bruno Haible <bruno@clisp.org>
1123 * modules/unistd-safer (configure.ac): Drop indicator macro.
1125 2009-12-11 Bruno Haible <bruno@clisp.org>
1127 Move pipe2-safer code to its own file.
1128 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
1129 * lib/pipe-safer.c (pipe2_safer): Remove function.
1130 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
1131 (Makefile.am): Add it to lib_SOURCES.
1133 2009-12-10 Bruno Haible <bruno@clisp.org>
1135 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
1137 2009-12-10 Bruno Haible <bruno@clisp.org>
1139 Declare which arguments expect non-NULL values, for GCC and clang.
1140 * build-aux/arg-nonnull.h: New file.
1141 * modules/arg-nonnull: New file.
1142 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
1143 (inet_ntop, inet_pton): Use it.
1144 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
1145 (closedir, dirfd, opendir, scandir, alphasort): Use it.
1146 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
1147 (open, openat): Use it.
1148 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
1150 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
1151 (getopt, getopt_long, getopt_long_only): Use it.
1152 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
1153 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
1155 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
1156 (iconv_open): Use it.
1157 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
1158 (strtoimax, strtoumax): Use it.
1159 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
1160 (duplocale): Use it.
1161 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
1162 (frexp, frexpl): Use it.
1163 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
1164 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
1165 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
1166 (tsearch, tfind, tdelete, twalk): Use it.
1167 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
1168 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
1169 sigpending): Use it.
1170 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
1171 (posix_spawn, posix_spawnp, posix_spawnattr_init,
1172 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
1173 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
1174 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
1175 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
1176 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
1177 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
1178 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
1179 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
1180 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
1182 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
1183 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
1184 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
1185 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
1186 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
1187 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
1188 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
1189 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
1190 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
1191 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
1192 strtoull, unsetenv): Use it.
1193 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
1194 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
1195 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
1196 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
1197 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
1198 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
1199 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
1200 (strcasecmp, strncasecmp): Use it.
1201 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
1202 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
1203 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
1204 rpl_setsockopt): Use it.
1205 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
1206 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
1207 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
1208 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
1209 (gettimeofday): Use it.
1210 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
1212 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
1214 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
1215 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
1216 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
1217 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
1218 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
1219 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
1220 unlinkat, write): Use it.
1221 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
1222 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
1223 * lib/argv-iter.h: Include arg-nonnull.h.
1224 (_ATTRIBUTE_NONNULL_): Remove macro.
1225 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
1226 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
1227 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
1229 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
1230 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
1231 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
1232 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
1233 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
1234 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
1235 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
1236 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
1237 * modules/arpa_inet (Depends-on): Add arg-nonnull.
1238 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
1239 * modules/dirent (Depends-on): Add arg-nonnull.
1240 (Makefile.am): Insert arg-nonnull.h into dirent.h.
1241 * modules/fcntl-h (Depends-on): Add arg-nonnull.
1242 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
1243 * modules/fnmatch (Depends-on): Add arg-nonnull.
1244 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
1245 * modules/getopt-posix (Depends-on): Add arg-nonnull.
1246 (Makefile.am): Insert arg-nonnull.h into getopt.h.
1247 * modules/glob (Depends-on): Add arg-nonnull.
1248 (Makefile.am): Insert arg-nonnull.h into glob.h.
1249 * modules/iconv_open (Depends-on): Add arg-nonnull.
1250 (Makefile.am): Insert arg-nonnull.h into iconv.h.
1251 * modules/inttypes (Depends-on): Add arg-nonnull.
1252 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
1253 * modules/locale (Depends-on): Add arg-nonnull.
1254 (Makefile.am): Insert arg-nonnull.h into locale.h.
1255 * modules/math (Depends-on): Add arg-nonnull.
1256 (Makefile.am): Insert arg-nonnull.h into math.h.
1257 * modules/netdb (Depends-on): Add arg-nonnull.
1258 (Makefile.am): Insert arg-nonnull.h into netdb.h.
1259 * modules/search (Depends-on): Add arg-nonnull.
1260 (Makefile.am): Insert arg-nonnull.h into search.h.
1261 * modules/signal (Depends-on): Add arg-nonnull.
1262 (Makefile.am): Insert arg-nonnull.h into signal.h.
1263 * modules/spawn (Depends-on): Add arg-nonnull.
1264 (Makefile.am): Insert arg-nonnull.h into spawn.h.
1265 * modules/stdio (Depends-on): Add arg-nonnull.
1266 (Makefile.am): Insert arg-nonnull.h into stdio.h.
1267 * modules/stdlib (Depends-on): Add arg-nonnull.
1268 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
1269 * modules/string (Depends-on): Add arg-nonnull.
1270 (Makefile.am): Insert arg-nonnull.h into string.h.
1271 * modules/strings (Depends-on): Add arg-nonnull.
1272 (Makefile.am): Insert arg-nonnull.h into strings.h.
1273 * modules/sys_socket (Depends-on): Add arg-nonnull.
1274 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
1275 * modules/sys_stat (Depends-on): Add arg-nonnull.
1276 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
1277 * modules/sys_time (Depends-on): Add arg-nonnull.
1278 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
1279 * modules/sys_times (Depends-on): Add arg-nonnull.
1280 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
1281 * modules/sys_utsname (Depends-on): Add arg-nonnull.
1282 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
1283 * modules/time (Depends-on): Add arg-nonnull.
1284 (Makefile.am): Insert arg-nonnull.h into time.h.
1285 * modules/unistd (Depends-on): Add arg-nonnull.
1286 (Makefile.am): Insert arg-nonnull.h into unistd.h.
1287 * modules/wchar (Depends-on): Add arg-nonnull.
1288 (Makefile.am): Insert arg-nonnull.h into wchar.h.
1289 * modules/argv-iter (Depends-on): Add arg-nonnull.
1290 * tests/test-canonicalize.c (null_ptr): New function.
1292 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
1294 * tests/test-memmem.c (null_ptr): New function.
1296 Reported by Jim Meyering.
1298 2009-12-10 Bruno Haible <bruno@clisp.org>
1300 Use spaces for indentation, not tabs.
1301 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1302 * m4/*.m4: Untabify.
1303 * build-aux/*.h: Untabify.
1304 * tests/**/*.[hc]: Untabify.
1305 * README: New section "Indent with spaces, not TABs", based on
1306 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
1307 * NEWS: Mention the change.
1309 2009-12-10 Bruno Haible <bruno@clisp.org>
1311 pty test: Fix link error.
1312 * modules/pty-tests (Makefile.am): Add the default LDADD value to
1315 2009-12-07 Simon Josefsson <simon@josefsson.org>
1317 * modules/pty: New file.
1318 * modules/pty-tests: New file.
1319 * m4/pty.m4: New file.
1320 * tests/test-pty.c: New file.
1321 * doc/glibc-headers/pty.texi: Modified.
1322 * doc/glibc-functions/forkpty.texi: Modified.
1323 * doc/glibc-functions/openpty.texi: Modified.
1325 2009-12-10 Bruno Haible <bruno@clisp.org>
1327 Avoid syntax error in C++ mode.
1328 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
1330 2009-12-10 Bruno Haible <bruno@clisp.org>
1332 Use sed with option -e.
1333 * gnulib-tool (func_version, func_emit_copyright_notice,
1334 func_emit_initmacro_end, func_import, func_create_testdir): Pass
1336 * modules/link-warning (Makefile.am): Likewise.
1338 2009-12-10 Jim Meyering <meyering@redhat.com>
1340 mgetgroups: do not write bytes beyond end of malloc'd buffer
1341 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
1342 username, we call getgroups with a one-element-shorter buffer,
1343 but still told it the length was original, max_n_groups.
1345 2009-12-09 Eric Blake <ebb9@byu.net>
1347 cloexec: relax license
1348 * modules/cloexec (Maintainer): Add myself.
1349 (License): Use LGPL, not GPL.
1351 link-warning: optimize generation
1352 * modules/link-warning (Makefile.am): Reduce process usage.
1354 2009-12-09 Bruno Haible <bruno@clisp.org>
1356 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
1357 workaround was added on 2009-11-17.
1359 2009-12-09 Jim Meyering <meyering@redhat.com>
1360 Bruno Haible <bruno@clisp.org>
1362 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
1363 * modules/link-warning (Makefile.am): Make the comment-removing sed
1364 command more robust in the face of bootstrap-prepended comment lines.
1366 2009-12-09 Bruno Haible <bruno@clisp.org>
1368 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
1371 2009-12-09 Simon Josefsson <simon@josefsson.org>
1372 Bruno Haible <bruno@clisp.org>
1374 * build-aux/link-warning.h: Add copyright notice.
1375 * modules/link-warning (Makefile.am): Generate link-warning.h from
1376 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
1377 * NEWS: Mention change in link-warning module.
1378 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
1379 * modules/dirent (Makefile.am): Add dependency to dirent.h.
1380 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
1381 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
1382 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
1383 * modules/math (Makefile.am): Add dependency to math.h.
1384 * modules/search (Makefile.am): Add dependency to search.h.
1385 * modules/signal (Makefile.am): Add dependency to signal.h.
1386 * modules/spawn (Makefile.am): Add dependency to spawn.h.
1387 * modules/stdio (Makefile.am): Add dependency to stdio.h.
1388 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
1389 * modules/string (Makefile.am): Add dependency to string.h.
1390 * modules/strings (Makefile.am): Add dependency to strings.h.
1391 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
1392 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
1393 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
1394 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
1395 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
1396 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
1397 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
1398 * modules/unistd (Makefile.am): Add dependency to unistd.h.
1399 * modules/wchar (Makefile.am): Add dependency to wchar.h.
1401 2009-12-09 Bruno Haible <bruno@clisp.org>
1403 fchdir: Optimize away rpl_fstat when possible.
1404 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
1405 REPLACE_OPEN_DIRECTORY.
1406 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
1408 2009-12-09 Bruno Haible <bruno@clisp.org>
1410 * lib/fchdir.c: Update comment.
1412 2009-12-09 Bruno Haible <bruno@clisp.org>
1414 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
1416 2009-12-08 Eric Blake <ebb9@byu.net>
1418 fchdir: avoid memory leak on re-registration.
1419 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
1421 2009-12-08 Jim Meyering <meyering@redhat.com>
1423 init.sh: avoid Solaris 10 /bin/sh portability problem
1424 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
1426 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
1427 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
1429 tests/init.sh relied on that, accepting a --set-path=DIR argument,
1430 and two tests used that idiom.
1431 * tests/init.sh: Update suggested usage comments.
1432 (path_prepend_): New function, to be used in place
1433 of the --src-path=DIR option.
1434 (setup_): Move PATH-prepending code into path_prepend_.
1435 * tests/test-pread.sh: Adapt to new usage.
1436 * tests/test-xalloc-die.sh: Likewise.
1438 2009-12-08 Simon Josefsson <simon@josefsson.org>
1440 * doc/gnulib.texi (Glibc pty.h): Add.
1441 * doc/glibc-functions/forkpty.texi: Add.
1442 * doc/glibc-functions/openpty.texi: Add.
1443 Suggested by Bruno Haible.
1445 2009-12-08 Eric Blake <ebb9@byu.net>
1447 fchdir: fix logic bugs
1448 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
1449 * tests/test-fchdir.c (main): Enhance test.
1450 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
1453 dup2: fix logic bugs
1454 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
1455 REPLACE_DUP2 to decide when rpl_dup2 is needed.
1456 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
1458 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
1460 2009-12-07 Eric Blake <ebb9@byu.net>
1462 unlink: fix m4 detection
1463 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
1465 unistd-safer: add unit test
1466 * modules/unistd-safer-tests: New file.
1467 * tests/test-dup-safer.c: Likewise.
1468 * tests/test-cloexec.c (setmode): Avoid compiler warning.
1469 * tests/test-dup2.c (setmode): Likewise.
1470 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
1472 cloexec: preserve text vs. binary across dup_cloexec
1473 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
1475 * modules/dup2-tests (Depends-on): Add binary-io.
1476 * modules/cloexec-tests (Depends-on): Likewise.
1477 * tests/test-dup2.c (setmode, is_mode): New helpers.
1478 (main): Add tests that translation mode is preserved.
1479 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
1480 Reported by Bruno Haible.
1482 mgetgroups: reduce duplicate listings
1483 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
1485 * tests/test-chown.h (test_chown): Simplify client.
1486 * tests/test-lchown.h (test_lchown): Likewise.
1488 2009-12-06 Bruno Haible <bruno@clisp.org>
1490 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
1493 2009-12-06 Bruno Haible <bruno@clisp.org>
1495 * lib/progname.c: Include stdio.h, stdlib.h.
1496 (set_program_name): Reject a NULL argument.
1498 2009-12-05 Eric Blake <ebb9@byu.net>
1500 pipe2-safer: new module
1501 * modules/pipe2-safer: New file.
1502 * lib/unistd-safer.h (pipe2_safer): New prototype.
1503 * lib/unistd--.h (pipe2): New wrapper.
1504 * lib/pipe-safer.c (pipe2_safer): New function.
1505 * modules/pipe (Depends-on): Add pipe2-safer.
1506 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
1508 stdlib-safer: preserve cloexec flag for mkostemp[s]
1509 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
1512 unistd-safer: allow preservation of cloexec status via flag
1513 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
1515 * lib/dup-safer.c (dup_safer_flag): New function.
1516 * lib/fd-safer.c (fd_safer_flag): Likewise.
1517 * modules/cloexec (configure.ac): Set witness.
1519 test-dup2: enhance test
1520 * modules/dup2-tests (Depends-on): Add cloexec.
1521 * tests/test-dup2.c (main): Enhance test.
1523 cloexec: add dup_cloexec
1524 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
1525 header and comments.
1526 * lib/cloexec.c (set_cloexec_flag): Add comments.
1527 (dup_cloexec): New function, with mingw implementation borrowed
1529 * lib/w32spawn.h (dup_noinherit): ...here.
1530 * modules/execute (Depends-on): Add cloexec.
1531 * modules/pipe (Depends-on): Likewise.
1532 * modules/cloexec (Depends-on): Add dup2.
1533 * modules/cloexec-tests (Files): New file.
1534 * tests/test-cloexec.c: Likewise.
1536 test-xalloc-die: fix test for mingw
1537 * modules/xalloc-die-tests (Files): Add tests/init.sh.
1538 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
1539 directory and .exe suffix off argv[0] output.
1541 test-fseeko: fix test for mingw
1542 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
1543 than undefining fseek, so test will pass on mingw.
1545 2009-12-05 Bruno Haible <bruno@clisp.org>
1547 * lib/progname.h (set_program_name): Clarify specification.
1548 * lib/progname.c (set_program_name): Likewise.
1549 Reported by Jim Meyering.
1551 2009-12-05 Jim Meyering <meyering@redhat.com>
1553 maint.mk: backslash-escape parens in default regexp
1554 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
1555 backslash-escape the literal parentheses.
1557 maint.mk: news-date-check: use grep -E
1558 * top/maint.mk (today): Define a Make variable, not a...
1559 (news-date-check): ...shell variable.
1560 (news-date-regexp): Use the Make variable.
1561 Use grep's -E option. Change the failing diagnostic to mention
1562 the variable, $(news-date-regexp).
1564 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
1566 maintainer-makefile: allow customization of NEWS entry format
1567 * top/maint.mk (news-date-regexp): New overridable variable.
1568 (news-date-check): Use it.
1570 2009-12-04 Eric Blake <ebb9@byu.net>
1572 mgetgroups: add xgetgroups, and avoid ENOSYS failures
1573 * lib/mgetgroups.h (xgetgroups): New prototype.
1574 * lib/mgetgroups.c (xgetgroups): New wrapper.
1575 (mgetgroups): Handle ENOSYS.
1576 * modules/mgetgroups (Depends-on): Add realloc.
1577 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
1579 mgetgroups: avoid argument promotion issues with -1
1580 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
1582 * tests/test-chown.h (getegid, test_chown): Likewise.
1583 * tests/test-lchown.h (getegid, test_lchown): Likewise.
1585 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
1587 exclude: Fix header file problems.
1588 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
1590 2009-12-01 Jim Meyering <meyering@redhat.com>
1592 fts: fts_open: do not let an empty string cause immediate failure
1593 This is required in support of GNU rm, for which the command
1594 "rm A '' B" must process and remove both A and B, in spite of
1595 the empty string argument.
1596 * lib/fts.c (fts_open): Do not let the presence of an empty string
1597 cause fts_open to fail immediately. Most fts-using tools must be
1598 able to process all arguments, in order, and can be expected to
1599 diagnose such arguments themselves.
1601 2009-11-30 Eric Blake <ebb9@byu.net>
1603 utimens: fix compilation error
1604 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
1605 Declare variable at right scope.
1607 2009-11-29 Jim Meyering <meyering@redhat.com>
1609 bootstrap: handle perl-5.11's changed --version output
1610 * build-aux/bootstrap (get_version): Handle perl separately,
1611 since perl-5.11's --version output is different.
1613 2009-11-28 Jim Meyering <meyering@redhat.com>
1615 userspec: depend on the inttostr module, too
1616 * modules/userspec (Depends-on): Add inttostr.
1618 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
1619 * lib/userspec.c (parse_with_separator): Do not accept a user ID
1620 number of MAXUID when it evaluates to (uid_t) -1.
1621 Likewise for group ID. Reported by Matt McCutchen in
1622 <http://savannah.gnu.org/bugs/?28113>
1624 userspec: reformat to use spaces, not TABs
1625 * lib/userspec.c: Expand TABs to spaces.
1626 Add Emacs' "indent-tabs-mode: nil" hint.
1628 2009-11-27 Eric Blake <ebb9@byu.net>
1630 getopt-gnu: flush out another BSD bug
1631 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
1632 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
1634 * tests/test-getopt.h (test_getopt): End lists with NULL.
1635 * tests/test-getopt_long.h (test_getopt_long): Likewise.
1636 (test_getopt_long_posix): Enhance test.
1637 * modules/getopt-posix-tests (Depends-on): Add stdbool.
1638 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
1640 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1643 2009-11-27 Simon Josefsson <simon@josefsson.org>
1645 * modules/idpriv-droptemp-tests (Notice): Fix text.
1647 2009-11-27 Jim Meyering <meyering@redhat.com>
1649 test-xalloc-die: avoid spurious failure due to libtool argv difference
1650 In a libtool-enabled project, this test would fail due to a difference
1651 in the emitted program name, e.g.,
1652 -test-xalloc-die: memory exhausted
1653 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
1654 Use program to avoid that.
1655 * modules/xalloc-die-tests (Depends-on): Add progname.
1656 * tests/test-xalloc-die.c: Include progname.h".
1657 (program_name): Remove decl.
1658 (main): Call set_program_name.
1659 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
1661 2009-11-26 Richard Jones <rjones@redhat.com>
1663 w32sock: leave win32 error in place.
1664 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
1666 2009-11-26 Eric Blake <ebb9@byu.net>
1668 init.sh: suggest to use skip_ and fail_ functions in comments
1669 * tests/init.sh: Add a sentence.
1671 2009-11-25 Bruno Haible <bruno@clisp.org>
1673 init.sh: add documentation in comments
1674 * tests/init.sh: Add some developer and user documentation.
1676 2009-11-26 Jim Meyering <meyering@redhat.com>
1678 init.sh: accommodate even those who specify bogus srcdir manually
1679 * tests/init.sh: Normally, srcdir is guaranteed by automake and
1680 configure-time tests to be sanitized, so that there is no need to
1681 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
1682 (with no double quotes) suffices. However, since tests may be
1683 invoked manually, and since you may explicitly set srcdir to the
1684 name of a directory containing spaces, do quote its uses here.
1685 * tests/test-pread.sh: Likewise.
1686 Suggested by Bruno Haible.
1688 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
1689 * tests/test-pread.sh: Write no data into the pipe, because
1690 test-pread actually reads none. This avoids a diagnostic,
1691 "bash: echo: write error: Broken pipe", that arises in the unusual
1692 event something is ignoring SIGPIPE, and might be interpreted
1693 as some sort of failure. Reported by Bruno Haible.
1695 2009-11-25 Jim Meyering <meyering@redhat.com>
1697 test-pread: cover failure with ESPIPE and EINVAL
1698 * tests/test-pread.c (main): Test for failure, too.
1699 * tests/test-pread.sh: Invoke with stdin on a pipe.
1700 Suggested by Eric Blake.
1702 pread: improvement and fix
1703 * modules/pread (Depends-on): Depend on lseek, for portability to
1704 e.g., mingw. Suggested by Eric Blake.
1705 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
1707 unistd.in.h: correct declaration of pread
1708 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
1709 Reported by Richard W.M. Jones.
1711 test-pread.sh: distribute the test script
1712 * modules/pread-tests (Files): Include test-pread.sh.
1714 test-pread.sh: clean up
1715 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
1716 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
1717 That is unnecessary, since it's always ".".
1718 Suggestion from Eric Blake.
1720 test-pread.sh: make executable
1721 * tests/test-pread.sh: Set executable bit.
1722 Reported by Eric Blake.
1724 correct typo in test-pread.sh
1725 * tests/test-pread.sh: Add #! line.
1728 * tests/test-pread.c: New file.
1729 * tests/test-pread.sh: Likewise.
1730 * modules/pread-tests: Likewise.
1733 * modules/pread: New file.
1734 * lib/unistd.in.h (pread): Define/declare.
1735 * lib/pread.c (pread): New file.
1736 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
1737 * modules/unistd (Makefile.am): Substitute witnesses.
1738 * doc/posix-functions/pread.texi (pread): Update.
1739 * MODULES.html.sh: Add pread.
1741 2009-11-25 Jim Meyering <meyering@redhat.com>
1743 tests/init.sh: new file to be used via most *.sh tests
1744 * tests/init.sh: New file.
1746 2009-11-25 Eric Blake <ebb9@byu.net>
1748 utimens: work around older Linux failure with symlinks
1749 * lib/utimens.c (lutimensat_works_really): New variable.
1750 (fdutimens, lutimens): Use it to manage kernels that support
1751 nanosecond times on files, but not on symlinks.
1752 Reported by OndÅ™ej VaÅ¡Ãk.
1754 utimes: fix configure grammar
1755 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
1757 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
1759 regex: Fix fastmap for multibyte character ranges.
1760 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
1761 characters when a multibyte character range is included.
1763 2009-11-22 Andy Wingo <wingo@pobox.com>
1765 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
1766 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
1768 2009-11-24 Bruno Haible <bruno@clisp.org>
1770 doc: Most *_l functions exist in MacOS X 10.5.
1771 * doc/posix-functions/duplocale.texi: Update platforms list.
1772 * doc/posix-functions/freelocale.texi: Likewise.
1773 * doc/posix-functions/newlocale.texi: Likewise.
1774 * doc/posix-functions/uselocale.texi: Likewise.
1775 * doc/posix-functions/isalnum_l.texi: Likewise.
1776 * doc/posix-functions/isalpha_l.texi: Likewise.
1777 * doc/posix-functions/isblank_l.texi: Likewise.
1778 * doc/posix-functions/iscntrl_l.texi: Likewise.
1779 * doc/posix-functions/isdigit_l.texi: Likewise.
1780 * doc/posix-functions/isgraph_l.texi: Likewise.
1781 * doc/posix-functions/islower_l.texi: Likewise.
1782 * doc/posix-functions/isprint_l.texi: Likewise.
1783 * doc/posix-functions/ispunct_l.texi: Likewise.
1784 * doc/posix-functions/isspace_l.texi: Likewise.
1785 * doc/posix-functions/isupper_l.texi: Likewise.
1786 * doc/posix-functions/iswalnum_l.texi: Likewise.
1787 * doc/posix-functions/iswalpha_l.texi: Likewise.
1788 * doc/posix-functions/iswblank_l.texi: Likewise.
1789 * doc/posix-functions/iswcntrl_l.texi: Likewise.
1790 * doc/posix-functions/iswctype_l.texi: Likewise.
1791 * doc/posix-functions/iswdigit_l.texi: Likewise.
1792 * doc/posix-functions/iswgraph_l.texi: Likewise.
1793 * doc/posix-functions/iswlower_l.texi: Likewise.
1794 * doc/posix-functions/iswprint_l.texi: Likewise.
1795 * doc/posix-functions/iswpunct_l.texi: Likewise.
1796 * doc/posix-functions/iswspace_l.texi: Likewise.
1797 * doc/posix-functions/iswupper_l.texi: Likewise.
1798 * doc/posix-functions/iswxdigit_l.texi: Likewise.
1799 * doc/posix-functions/isxdigit_l.texi: Likewise.
1800 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
1801 * doc/posix-functions/strcasecmp_l.texi: Likewise.
1802 * doc/posix-functions/strcoll_l.texi: Likewise.
1803 * doc/posix-functions/strfmon_l.texi: Likewise.
1804 * doc/posix-functions/strftime_l.texi: Likewise.
1805 * doc/posix-functions/strncasecmp_l.texi: Likewise.
1806 * doc/posix-functions/strxfrm_l.texi: Likewise.
1807 * doc/posix-functions/tolower_l.texi: Likewise.
1808 * doc/posix-functions/toupper_l.texi: Likewise.
1809 * doc/posix-functions/towctrans_l.texi: Likewise.
1810 * doc/posix-functions/towlower_l.texi: Likewise.
1811 * doc/posix-functions/towupper_l.texi: Likewise.
1812 * doc/posix-functions/wcscoll_l.texi: Likewise.
1813 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
1814 * doc/posix-functions/wctrans_l.texi: Likewise.
1815 * doc/posix-functions/wctype_l.texi: Likewise.
1816 * doc/glibc-functions/strptime_l.texi: Likewise.
1817 * doc/glibc-functions/strtod_l.texi: Likewise.
1818 * doc/glibc-functions/strtof_l.texi: Likewise.
1819 * doc/glibc-functions/strtol_l.texi: Likewise.
1820 * doc/glibc-functions/strtold_l.texi: Likewise.
1821 * doc/glibc-functions/strtoll_l.texi: Likewise.
1822 * doc/glibc-functions/strtoul_l.texi: Likewise.
1823 * doc/glibc-functions/strtoull_l.texi: Likewise.
1824 * doc/glibc-functions/wcsftime_l.texi: Likewise.
1825 * doc/glibc-functions/wcstod_l.texi: Likewise.
1826 * doc/glibc-functions/wcstof_l.texi: Likewise.
1827 * doc/glibc-functions/wcstol_l.texi: Likewise.
1828 * doc/glibc-functions/wcstold_l.texi: Likewise.
1829 * doc/glibc-functions/wcstoll_l.texi: Likewise.
1830 * doc/glibc-functions/wcstoul_l.texi: Likewise.
1831 * doc/glibc-functions/wcstoull_l.texi: Likewise.
1833 2009-11-24 Bruno Haible <bruno@clisp.org>
1835 duplocale: Fix logic bug.
1836 * lib/duplocale.c: Don't include <langinfo.h>.
1837 (_NL_LOCALE_NAME): Remove macro.
1838 (rpl_duplocale): Use setlocale instead of nl_langinfo.
1839 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
1841 2009-11-23 Jim Meyering <meyering@redhat.com>
1843 test-update-copyright: don't hard-code /usr/bin/perl
1844 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
1845 perl to print the current year. Gilles Espinasse reported that
1846 the replaced use of perl was hard-coded as /usr/bin/perl.
1848 2009-11-23 Bruno Haible <bruno@clisp.org>
1850 duplocale: Add support for glibc 2.3.x.
1851 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
1853 2009-11-22 Bruno Haible <bruno@clisp.org>
1855 vasnprintf: Tiny optimization.
1856 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
1859 2009-11-22 Bruno Haible <bruno@clisp.org>
1861 Tests for module 'duplocale'.
1862 * modules/duplocale-tests: New file.
1863 * tests/test-duplocale.c: New file.
1865 New module 'duplocale'.
1866 * m4/duplocale.m4: New file.
1867 * lib/locale.in.h (duplocale): New declaration.
1868 * lib/duplocale.c: New file.
1869 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
1870 gl_LOCALE_H_DEFAULTS): New macros.
1871 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
1872 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
1873 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
1875 * modules/duplocale: New file.
1876 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
1878 2009-11-22 Bruno Haible <bruno@clisp.org>
1880 * modules/locale-tests (configure.ac): Test for newlocale function.
1881 * tests/test-locale.c: When the system has extended locale functions,
1882 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
1884 locale: Make locale_t available when possible.
1885 * lib/locale.in.h: Include <xlocale.h> when it exists.
1886 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
1887 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
1888 * modules/locale (Depends-on): Add extensions.
1889 (Makefile.am): Also substitute HAVE_XLOCALE_H.
1890 * doc/posix-headers/locale.texi: Document the problem with locale_t.
1892 2009-11-22 Bruno Haible <bruno@clisp.org>
1895 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
1897 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
1898 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1899 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1901 2009-11-22 Bruno Haible <bruno@clisp.org>
1903 error: account for the possibility of freopen (stdout).
1904 * lib/error.c: Include <unistd.h>.
1905 (flush_stdout): New function, extracted from error and error_at_line.
1906 Determine stdout's fd dynamically.
1907 (error, error_at_line): Invoke flush_stdout.
1908 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
1909 * modules/error (Depends-on): Add unistd.
1911 2009-11-22 Bruno Haible <bruno@clisp.org>
1913 diffseq: Add comment.
1914 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
1916 2009-11-22 Jim Meyering <meyering@redhat.com>
1918 c-stack: avoid defining an unused static function
1919 * lib/c-stack.c (find_stack_direction): Do not define this function
1920 when it will not be used.
1922 diffseq: avoid spurious gcc warnings
1923 * lib/diffseq.h (IF_LINT2): Define.
1924 (compareseq): Use it to initialize two members of "part".
1925 This avoids two used-uninitialized warnings.
1927 2009-11-21 Jim Meyering <meyering@redhat.com>
1929 c-stack: avoid "ignoring return value of `write'" warning
1930 * lib/c-stack.c: Include "ignore-value.h".
1931 (die): Explicitly ignore each write return value.
1932 * modules/c-stack (Depends-on): Add ignore-value.
1934 2009-11-21 Bruno Haible <bruno@clisp.org>
1936 diffseq: reduce scope of variable 'best'.
1937 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
1938 variable, earlier used for two different purposes.
1940 2009-11-21 Jim Meyering <meyering@redhat.com>
1942 diffseq: remove useless assignment to "best"
1943 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
1944 assignment. At that point "best" is already guaranteed to be zero.
1946 2009-11-20 Eric Blake <ebb9@byu.net>
1948 build: mention ftp redirector in release announcements
1949 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
1950 values that used to come from cfg.mk; mention FTP redirect URL.
1951 * build-aux/announce-gen: Mention the mirror list.
1952 Suggested by Karl Berry.
1954 nanosleep: improve port to mingw
1955 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
1956 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
1957 LIB_NANOSLEEP, but only when needed.
1958 * modules/select (Link): Document LIBSOCKET.
1959 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
1962 nanosleep: work around cygwin bug
1963 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
1964 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
1966 (getnow): Delete, not needed.
1967 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
1969 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
1970 clock-time, gettime.
1971 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
1973 * modules/nanosleep-tests: New test.
1974 * tests/test-nanosleep.c: New file.
1976 sleep: work around cygwin bug
1977 * lib/sleep.c (rpl_sleep): Work around the bug.
1978 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
1979 (gl_PREREQ_SLEEP): Delete unused macro.
1980 * modules/sleep (Depends-on): Add verify.
1981 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
1982 * modules/unistd (Makefile.am): Substitute witness.
1983 * lib/unistd.in.h (sleep): Update prototype.
1984 * doc/posix-functions/sleep.texi (sleep): Document the bug.
1985 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
1986 * modules/sleep-tests (Depends-on): Check for alarm.
1988 2009-11-20 Jim Meyering <meyering@redhat.com>
1990 maint.mk: improve sc_prohibit_magic_number_exit
1991 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
1992 so it does not match uses like System.exit(1).
1993 Add comments showing how to correct all offenders.
1995 2009-11-19 Eric Blake <ebb9@byu.net>
1997 xalloc-die-tests: add missing library
1998 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
2000 test-xvasprintf: silence compiler warnings
2001 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
2002 empty string from gcc.
2004 2009-11-19 Jim Meyering <meyering@redhat.com>
2006 xfreopen: new module, from coreutils
2007 * modules/xfreopen: New module.
2008 * lib/xfreopen.c: New file.
2009 * lib/xfreopen.h: New file.
2010 * MODULES.html.sh (File stream based Input/Output"): Add it.
2012 2009-11-19 Eric Blake <ebb9@byu.net>
2014 manywarnings: depend on warnings
2015 * modules/manywarnings (Depends-on): Add warnings.
2017 build: avoid compiler warnings
2018 * lib/select.c (rpl_select): Delete unused variable.
2019 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
2021 2009-11-18 Eric Blake <ebb9@byu.net>
2023 tests: avoid false negative with --with-packager
2024 * tests/test-version-etc.sh: Discard packager information.
2025 * tests/test-argp-version-etc-1.sh: Likewise.
2026 Reported by Mike Frysinger.
2028 utimens: fix regression on Solaris
2029 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
2030 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
2031 can only change fd timestamps via futimesat. Instead, use an
2032 additional witness macro to avoid BSD bug.
2033 Reported by Jim Meyering.
2035 2009-11-17 Eric Blake <ebb9@byu.net>
2037 usleep: use it to simplify tests
2038 * modules/stat-time-tests (Depends-on): Add usleep.
2039 (configure.ac): Drop usleep check.
2040 * modules/chown-tests (Depends-on, configure.ac): Likewise.
2041 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
2042 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
2043 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
2044 * modules/openat-tests (Depends-on, configure.ac): Likewise.
2045 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
2046 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
2047 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
2049 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
2050 * tests/test-lchown.h (nap): Likewise.
2051 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
2052 * tests/test-stat-time.c (nap): Likewise.
2053 * tests/test-utimens-common.h (nap): Update comments.
2056 * modules/usleep: New file.
2057 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
2058 * lib/usleep.c (usleep): Likewise.
2059 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
2060 * modules/unistd (Makefile.am): Substitute witnesses.
2061 * lib/unistd.in.h (usleep): Add declaration.
2062 * doc/pastposix-functions/usleep.texi (usleep): Document this.
2063 * MODULES.html.sh (Date and time): Likewise.
2064 * modules/usleep-tests (Depends-on): New test.
2065 * tests/test-usleep.c: New file.
2067 chown: work around OpenBSD bug
2068 * lib/chown.c (rpl_chown): Work around the bug.
2069 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
2070 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
2071 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
2072 * modules/chown (Depends-on): Add stdbool.
2073 * modules/lchown (Depends-on): Likewise.
2074 * doc/posix-functions/chown.texi (chown): Document the bug.
2075 * doc/posix-functions/lchown.texi (lchown): Likewise.
2076 * tests/test-lchown.h (test_chown): Relax test.
2078 mkstemp: avoid conflict with C++ keyword template
2079 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
2080 * lib/mkostemp.c (mkostemp): Likewise.
2081 * lib/mkostemps.c (mkostemps): Likewise.
2082 * lib/mkstemp.c (mkstemp): Likewise.
2083 * lib/mkstemps.c (mkstemps): Likewise.
2085 xalloc-die-tests: optimize
2086 * tests/test-xalloc-die.sh: Reduce number of processes.
2088 2009-11-17 Simon Josefsson <simon@josefsson.org>
2090 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
2091 patch from ludo@gnu.org (Ludovic Courtès).
2093 2009-11-17 Jim Meyering <meyering@redhat.com>
2095 version-etc: use proper license string
2096 * modules/version-etc (License): Use LGPL, not LGPLv3+.
2097 * modules/version-etc-fsf: Likewise.
2099 2009-11-17 Simon Josefsson <simon@josefsson.org>
2101 * tests/test-xalloc-die.sh: Add license. Check that nothing is
2102 printed to stdout. Deal with EOL differences.
2104 2009-11-17 Eric Blake <ebb9@byu.net>
2106 unsetenv: work around Solaris bug
2107 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
2108 * lib/unsetenv.c (rpl_unsetenv): Work around it.
2109 Reported by Jim Meyering.
2111 vasnprintf: avoid compiler warnings
2112 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
2114 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
2116 2009-11-17 Simon Josefsson <simon@josefsson.org>
2118 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
2119 settings since xalloc-die is no longer the self test,
2122 2009-11-17 Jim Meyering <meyering@redhat.com>
2124 test-xalloc-die.sh: make the code agree with the commit log
2125 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
2126 at the end, just in case you happen to have a test-xalloc-die
2127 program in some other PATH directory.
2129 test-xalloc-die.sh: fix a portability bug
2130 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
2131 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
2132 Otherwise, argv[0] (as often seen in diagnostics) would be too
2133 system-dependent, sometimes with, and sometimes without the leading "./".
2135 version-etc-fsf: relax license to LGPLv3+
2136 * modules/version-etc-fsf (License): Relax license.
2138 2009-11-16 Eric Blake <ebb9@byu.net>
2140 xalloc-die-tests: avoid printing null pointer
2141 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
2143 * tests/test-xalloc-die.c (program_name): Declare.
2144 * tests/test-xalloc-die.sh (tmpfiles): New file.
2146 setenv, unsetenv: work around various bugs
2147 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
2148 (setenv) [HAVE_SETENV]: Work around bugs.
2149 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
2150 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
2152 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
2153 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
2154 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
2155 * modules/stdlib (Makefile.am): Update substitutions.
2156 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
2157 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
2158 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
2159 * modules/setenv-tests: New test.
2160 * modules/unsetenv-tests: Likewise.
2161 * tests/test-setenv.c: New file.
2162 * tests/test-unsetenv.c: Likewise.
2164 2009-11-16 Jim Meyering <meyering@redhat.com>
2166 version-etc: relax license to LGPLv3+
2167 * modules/version-etc (License): Relax license.
2169 better AC_REQUIRE expanded-before-required-warning avoidance
2170 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
2171 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
2172 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
2173 which is no longer needed.
2175 2009-11-16 Eric Blake <ebb9@byu.net>
2177 test-freading: clean up temporary file
2178 * tests/test-freading.c (main): Remove file on success, and use
2179 ASSERT more liberally.
2180 Reported by Jim Meyering.
2182 2009-11-16 Jim Meyering <meyering@redhat.com>
2184 avoid new AC_REQUIRE expanded-before-required warnings
2185 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
2187 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
2188 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
2190 2009-11-15 Simon Josefsson <simon@josefsson.org>
2192 * tests/test-xalloc-die.c: New file.
2193 * modules/xalloc-die-tests: New file.
2194 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
2195 XFAIL_TESTS so it can be appended by modules.
2197 2009-11-15 Simon Josefsson <simon@josefsson.org>
2199 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
2200 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
2202 2009-11-14 Eric Blake <ebb9@byu.net>
2204 fnmatch: avoid compiler warning
2205 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
2206 to silence compiler warning about mismatch signedness in ?:.
2207 Reported by Robert Millan.
2209 intprops: add double-inclusion guard
2210 * lib/intprops.h: Allow idempotent includes.
2211 Suggested by Bruce Korb.
2213 openat: detect Solaris fchownat bug
2214 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
2215 penalizing glibc chownat when only lchownat is broken.
2216 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
2217 trailing slash bugs.
2218 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
2219 * modules/openat-tests (Files): Include more files.
2220 (Depends-on): Add mgetgroups, sleep, stat-time.
2221 (configure.ac): Add additional checks.
2222 (Makefile.am): Build new test.
2223 * tests/test-fchownat.c: New file.
2225 lchown: detect Solaris and FreeBSD bug
2226 * lib/lchown.c (rpl_lchown): Work around bug.
2227 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
2228 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2229 * modules/unistd (Makefile.am): Populate it.
2230 * lib/unistd.in.h (lchown): Update declaration.
2231 * doc/posix-functions/lchown.texi (lchown): Document the bug.
2232 * modules/lchown-tests: New file.
2233 * tests/test-lchown.h (test_lchown): Likewise.
2234 * tests/test-lchown.c (main): Likewise.
2236 chown: detect Solaris and FreeBSD bug
2237 * lib/chown.c (rpl_chown): Work around bug.
2238 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
2239 (gl_PREREQ_CHOWN): Delete.
2240 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2241 * modules/unistd (Makefile.am): Populate it.
2242 * lib/unistd.in.h (chown): Update declaration.
2243 * lib/lchown.c (chown): Update client.
2244 * modules/lchown (Depends-on): Add lstat.
2245 * doc/posix-functions/chown.texi (chown): Document the bug.
2246 * doc/posix-functions/getgroups.texi (getgroups): Document
2248 * modules/chown-tests: New file.
2249 * tests/test-chown.h (test_chown): Likewise.
2250 * tests/test-chown.c (main): Likewise.
2252 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
2254 gnulib-tool: correctly detect absence of m4 directories
2255 * gnulib-tool: Avoid extra newline on data passed to wc -l.
2257 2009-11-14 Jim Meyering <meyering@redhat.com>
2259 maint.mk: Prohibit inclusion of "xalloc.h" without use.
2260 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
2262 2009-11-14 John W. Eaton <jwe@gnu.org>
2264 strftime.h: wrap funtion declaration in extern "C" block
2265 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
2267 2009-11-13 Eric Blake <ebb9@byu.net>
2269 getgroups: avoid compiler warning
2270 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
2272 getgroups: work around FreeBSD bug
2273 * lib/getgroups.c (rpl_getgroups): Work around the bug.
2274 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
2275 * doc/posix-functions/getgroups.texi (getgroups): Document it.
2276 * tests/test-getgroups.c (main): Fix buffer overrun.
2278 getgroups: avoid compilation failure
2279 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
2280 * modules/getgroups (Depends-on): Add stdint.
2282 2009-11-13 Jim Meyering <meyering@redhat.com>
2284 test-getgroups: avoid compilation failure
2285 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
2287 2009-11-13 Eric Blake <ebb9@byu.net>
2289 mgetgroups: new module, taken from coreutils
2290 * modules/mgetgroups: New file.
2291 * lib/mgetgroups.h: Likewise.
2292 * lib/mgetgroups.c (mgetgroups): Likewise.
2293 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
2294 * MODULES.html.sh (Users and groups): Mention it.
2296 getgroups: don't expose GETGROUPS_T to user
2297 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
2298 an element at a time if GETGROUPS_T is wrong size.
2299 * lib/getugroups.h (getugroups): Change signature.
2300 * lib/unistd.in.h (getgroups): Likewise.
2301 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
2302 signature needs fixing.
2303 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
2305 * modules/group-member (Depends-on): Add getgroups.
2306 * lib/group-member.c (group_info, get_group_info): Use gid_t.
2307 (group_member): Rely on getgroups replacement.
2308 * lib/getugroups.c (getugroups): Use gid_t.
2309 * tests/test-getgroups.c (main): Likewise.
2310 * NEWS: Mention the signature change.
2311 * doc/posix-functions/getgroups.texi (getgroups): Mention the
2312 problem with signature.
2313 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
2314 GETGROUPS_T is still useful for setgroups.
2316 getgroups, getugroups: provide stubs for mingw
2317 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
2318 * lib/getugroups.c (getugroups): Likewise.
2319 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
2320 function. Modernize replacement scheme.
2321 (gl_PREREQ_GETGROUPS): Delete.
2322 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
2323 * modules/getgroups (configure.ac): Declare witness.
2324 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
2325 * modules/unistd (Depends-on): Substitute witness.
2326 * lib/unistd.in.h (getgroups): Declare replacement.
2328 getgroups: avoid calling exit
2329 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
2331 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
2333 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
2334 exiting, in the rare case of malloc failure.
2336 getgroups: fix logic error
2337 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
2338 has more than 20 groups.
2339 * modules/getgroups-tests: New test.
2340 * tests/test-getgroups.c: New file.
2342 2009-11-13 Simon Josefsson <simon@josefsson.org>
2344 * tests/test-base64.c: Improve.
2346 2009-11-13 Simon Josefsson <simon@josefsson.org>
2348 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
2349 Blake <ebb9@byu.net>.
2351 2009-11-13 Simon Josefsson <simon@josefsson.org>
2353 * tests/test-xvasprintf.c: Add %s%s related checks.
2355 2009-11-12 Eric Blake <ebb9@byu.net>
2357 version-etc: match standards.texi style
2358 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
2359 and use <> only for URLs.
2361 2009-11-10 Kamil Dudka <kdudka@redhat.com>
2363 fts: do not fail on a submount during traversal
2364 * lib/fts.c (fts_build): Read the stat info again after opening
2365 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
2366 Original report at http://bugzilla.redhat.com/501848.
2368 2009-11-12 Jim Meyering <meyering@redhat.com>
2370 bootstrap: sync from coreutils
2371 * build-aux/bootstrap (bootstrap_epilogue): New function.
2372 Use git_modules_config in one more place. This make bootstrap's
2373 --gnulib-srcdir option more useful for testing.
2375 bootstrap: generalize autoheader check
2376 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
2379 2009-11-11 Eric Blake <ebb9@byu.net>
2381 mkfifoat: use new modules for Solaris and BSD bugs
2382 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
2383 * lib/mkfifoat.c (mknodat): Split...
2384 * lib/mknodat.c (mknodat): ...into new file.
2385 * modules/mkfifoat (Files): Ship new file.
2386 (Depends-on): Add mkfifo, mknod.
2387 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
2388 (Depends-on): Add symlink.
2389 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
2390 redundant with test_mkfifo.h.
2391 (do_mkfifoat, do_mknodat): New helpers.
2394 * modules/mknod: New file.
2395 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
2396 * lib/mknod.c (mknod): Likewise.
2397 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
2399 * modules/sys_stat (Makefile.am): Substitute them.
2400 * lib/sys_stat.in.h (mknod): Declare replacement.
2401 * MODULES.html.sh (Support for systems lacking POSIX:2008):
2403 * doc/posix-functions/mknod.texi (mknod): Likewise.
2404 * modules/mknod-tests: New test.
2405 * tests/test-mknod.c: Likewise.
2408 * modules/mkfifo: New file.
2409 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
2410 * lib/mkfifo.c (mkfifo): Likewise.
2411 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
2413 * modules/sys_stat (Makefile.am): Substitute them.
2414 * lib/sys_stat.in.h (mkfifo): Declare replacement.
2415 * MODULES.html.sh (Support for systems lacking POSIX:2008):
2417 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
2418 * modules/mkfifo-tests: New test.
2419 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
2420 from test-mkfifoat.c.
2421 * tests/test-mkfifo.c: New file.
2423 readlink: detect FreeBSD bug
2424 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
2426 * doc/posix-functions/readlink.texi (readlink): Document the bug.
2427 * tests/test-readlink.h (test_readlink): Enhance test.
2429 symlink: detect FreeBSD bug
2430 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
2432 * doc/posix-functions/symlink.texi (symlink): Document the bug.
2433 * tests/test-symlink.h (test_symlink): Enhance test.
2435 2009-11-10 Eric Blake <ebb9@byu.net>
2437 link: detect FreeBSD bug
2438 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
2440 * doc/posix-functions/link.texi (link): Document the bug.
2441 * tests/test-link.h (test_link): Enhance test.
2442 * tests/test-linkat.c (main): Update caller.
2444 unlink, remove: detect FreeBSD bug
2445 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
2447 * doc/posix-functions/unlink.texi (unlink): Document the bug.
2448 * doc/posix-functions/remove.texi (remove): Likewise.
2449 * tests/test-unlink.h (test_unlink): Enhance test.
2450 * tests/test-remove.c (main): Likewise.
2452 2009-11-09 Eric Blake <ebb9@byu.net>
2454 rename: detect FreeBSD bug
2455 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
2457 * modules/renameat-tests (Depends-on): Add filenamecat.
2458 * tests/test-rename.h (test_rename): Allow one more errno.
2459 * tests/test-renameat.c (main): Likewise.
2460 * doc/posix-functions/rename.texi (rename): Document the bug.
2462 open: detect FreeBSD bug
2463 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
2465 * doc/posix-functions/open.texi (open): Document the bug.
2466 * doc/posix-functions/utimes.texi (utimes): Likewise.
2467 * tests/test-open.h (test_open): Add parameters, and test symlink
2469 * tests/test-open.c (main): Adjust caller.
2470 * tests/test-fcntl-safer.c (main): Likewise.
2471 * modules/open-tests (Depends-on): Add stdbool, symlink.
2472 * modules/fcntl-safer-tests (Depends-on): Likewise.
2473 * tests/test-openat.c (main): Add test-open tests.
2475 stat: detect FreeBSD bug
2476 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
2478 * doc/posix-functions/stat.texi (stat): Document the bug.
2479 * tests/test-stat.h (test_stat_func): Add argument.
2480 * tests/test-stat.c (main): Adjust caller.
2481 * tests/test-fstatat.c (main): Likewise.
2482 * modules/stat-tests (Depends-on): Add stdbool, symlink.
2483 Reported by Jim Meyering.
2485 2009-11-09 James Youngman <jay@gnu.org>
2487 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
2488 * lib/strftime.c: Correct placement of #include "ignore-value.h".
2490 2009-11-08 Jim Meyering <meyering@redhat.com>
2492 utimens: remove invalid futimesat call
2493 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
2494 It used the file descriptor of the target file as the DIR_FD
2495 parameter and NULL as the file name. That caused failure with
2496 errno == EFAULT on FreeBSD-8.0-rc2
2498 2009-11-07 Eric Blake <ebb9@byu.net>
2500 fflush, freadseek: use fseeko, not fseek
2501 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
2502 (clear_ungetc_buffer): Avoid potential problems on large files.
2503 * lib/freadseek.c (freadseek): Likewise.
2504 * modules/freadseek (Depends-on): Add fseeko.
2505 * modules/fseek (configure.ac): Set a witness.
2506 * tests/test-fflush.c (main): Use fseeko.
2507 * tests/test-fpurge.c (fseek): Disable link warning.
2508 * tests/test-freadable.c (fseek): Likewise.
2509 * tests/test-freading.c (fseek): Likewise.
2510 * tests/test-fseeko.c (fseek): Likewise.
2511 * tests/test-ftell.c (fseek): Likewise.
2512 * tests/test-ftello.c (fseek): Likewise.
2513 * tests/test-fwritable.c (fseek): Likewise.
2514 * tests/test-fwriting.c (fseek): Likewise.
2516 2009-11-06 Simon Josefsson <simon@josefsson.org>
2518 * modules/memchr (Depends-on): Drop getpagesize dependency.
2520 2009-11-06 Simon Josefsson <simon@josefsson.org>
2522 * build-aux/pmccabe2html: Disable execute bit. Suggested by
2523 Reported by Ludovic Courtès.
2524 * build-aux/pmccabe2html: Improve example usage.
2525 * build-aux/pmccabe2html: Drop #! header. Doc fix.
2527 2009-11-06 Jim Meyering <meyering@redhat.com>
2529 do-release-commit-and-tag: New module.
2530 Automate the release-commit and tag process.
2531 * build-aux/do-release-commit-and-tag: New script, from coreutils.
2532 * modules/do-release-commit-and-tag: New file.
2533 * MODULES.html.sh (Support for maintaining and releasing): Add it.
2535 2009-11-06 Simon Josefsson <simon@josefsson.org>
2537 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
2538 because test-select.c uses inet_pton.
2540 2009-11-06 Simon Josefsson <simon@josefsson.org>
2542 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
2543 GETADDRINFO_LIB. Bump serial number.
2544 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
2545 Suggested by Eric Blake <ebb9@byu.net>.
2547 2009-11-05 Eric Blake <ebb9@byu.net>
2549 strtod: detect darwin bug
2550 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
2551 Reported by Leo Davis.
2553 freopen-safer: new module
2554 * modules/freopen-safer: New module.
2555 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
2556 * lib/freopen-safer.c (freopen_safer): New file.
2557 * lib/stdio-safer.h (freopen_safer): New declaration.
2558 * lib/stdio--.h (freopen): New override.
2559 * MODULES.html.sh (File stream based Input/Output): Mention it.
2560 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
2561 freopen-safer module.
2562 * doc/posix-functions/stderr.texi (stderr): Likewise.
2563 * doc/posix-functions/stdin.texi (stdin): Likewise.
2564 * doc/posix-functions/stdout.texi (stdout): Likewise.
2565 * modules/freopen-safer-tests: New test.
2566 * tests/test-reopen-safer.c: New file.
2568 2009-11-05 Jim Meyering <meyering@redhat.com>
2570 maint.mk: Prohibit inclusion of "close-stream.h" without use.
2571 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
2573 2009-11-05 Simon Josefsson <simon@josefsson.org>
2575 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
2577 2009-11-05 Simon Josefsson <simon@josefsson.org>
2579 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
2581 2009-11-05 Simon Josefsson <simon@josefsson.org>
2584 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
2585 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2587 2009-11-05 Simon Josefsson <simon@josefsson.org>
2589 * tests/test-func.c: Also test value of __func__.
2591 2009-11-05 Simon Josefsson <simon@josefsson.org>
2593 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
2594 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
2596 2009-11-05 Bruno Haible <bruno@clisp.org>
2599 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
2600 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2601 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
2603 2009-11-05 Bruno Haible <bruno@clisp.org>
2605 Tests for module 'inet_pton'.
2606 * modules/inet_pton-tests: New file.
2607 * tests/test-inet_pton.c: New file.
2609 2009-11-05 Bruno Haible <bruno@clisp.org>
2611 Tests for module 'inet_ntop'.
2612 * modules/inet_ntop-tests: New file.
2613 * tests/test-inet_ntop.c: New file.
2615 2009-11-04 Eric Blake <ebb9@byu.net>
2617 stdlib-safer: wrap all mkstemp variants
2618 * modules/mkostemp (configure.ac): Set witness.
2619 * modules/mkostemps (configure.ac): Likewise.
2620 * modules/mkstemps (configure.ac): Likewise.
2621 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
2622 (mkstemps_safer): Wrap more functions.
2623 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
2625 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
2626 (mkstemps_safer): Implement the wrappers.
2628 mkstemps, mkostemps: new modules
2629 * modules/mkostemps: New module.
2630 * modules/mkstemps: Likewise.
2631 * lib/mkostemps.c (mkostemps): New file.
2632 * lib/mkstemps.c (mkstemps): Likewise.
2633 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
2634 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
2635 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
2636 * modules/stdlib (Makefile.am): Substitute them.
2637 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
2638 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
2639 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2640 * doc/gnulib.texi (Glibc stdlib.h): Include them.
2641 * MODULES.html.sh (File system functions): Mention them.
2643 tempname: resync from glibc
2644 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
2645 same values for __GT_FILE as glibc. Abort even when assertions
2647 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
2648 match its value otherwise. Allow idempotent inclusion.
2649 * lib/mkdtemp.c (mkdtemp): Adjust caller.
2650 * lib/mkostemp.c (mkostemp): Likewise.
2651 * lib/mkstemp.c (mkstemp): Likewise.
2652 * lib/tmpfile.c (tmpfile): Likewise.
2653 * NEWS: Document this.
2655 utimens: fix use of futimens on older Linux
2656 * lib/utimens.c (fdutimens): Use updated, rather than original,
2657 timespec to avoid bug in older Linux kernel.
2658 Reported by Simon Josefsson.
2660 2009-11-04 Bruno Haible <bruno@clisp.org>
2662 Make num_processors more flexible and consistent.
2663 * lib/nproc.h (enum nproc_query): New type.
2664 (num_processors): Add a 'query' argument.
2665 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
2666 (num_processors): Add a 'query' argument. Test the value of the
2667 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
2668 mingw, count the number of CPUs available for the current process.
2669 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
2670 Check for sched_getaffinity and sched_getaffinity_np.
2671 * modules/nproc (Depends-on): Add c-ctype, extensions.
2672 * NEWS: Mention the change.
2674 2009-11-03 Bruno Haible <bruno@clisp.org>
2676 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
2678 2009-11-03 Jim Meyering <meyering@redhat.com>
2680 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
2681 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
2684 2009-11-02 Eric Blake <ebb9@byu.net>
2686 mktime, timegm: share common declaration
2687 * lib/mktime-internal.h: New file.
2688 * lib/mktime.c: Use it rather than open-coding a declaration.
2689 * lib/timegm.c: Likewise.
2690 * modules/mktime (Files): Ship it.
2691 * modules/timegm (Files): Likewise.
2692 Suggested by Bruno Haible.
2694 test-update-copyright: update test to match script changes
2695 * tests/test-update-copyright.sh: Avoid hard-coding perl
2696 location. Don't update *.bak created by earlier runs.
2698 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
2699 Simon Josefsson <simon@josefsson.org>
2700 Bruno Haible <bruno@clisp.org>
2702 Fix link error on Solaris 8.
2703 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
2704 also in libnsl. Define also INET_PTON_LIB.
2705 * modules/inet_pton (Link): New section.
2707 2009-11-02 Simon Josefsson <simon@josefsson.org>
2708 Bruno Haible <bruno@clisp.org>
2710 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
2711 * modules/inet_ntop (Link): New section.
2712 Reported by Boyan Kasarov <bkasarov@gmail.com>.
2714 2009-11-02 Eric Blake <ebb9@byu.net>
2716 maint: avoid compiler warnings in m4 macros
2717 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
2718 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
2720 2009-11-02 Simon Josefsson <simon@josefsson.org>
2722 * m4/pmccabe2html.m4: Remove file.
2723 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
2724 function. Change maintainer.
2725 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
2726 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
2729 2009-10-31 Eric Blake <ebb9@byu.net>
2731 fseeko: fix m4 regression
2732 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
2733 regression from 2009-10-27.
2734 Reported by Ralf Wildenhues.
2736 2009-10-31 Jim Meyering <meyering@redhat.com>
2738 inttostr: aesthetics and improved (compile-time) safety
2739 Define inttype_is_signed rather than inttype_is_unsigned,
2740 since the sole use is via "#if inttype_is_signed".
2741 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
2742 inttype_is_unsigned.
2743 * lib/offtostr.c (inttype_is_signed): Likewise.
2744 * lib/uinttostr.c (inttype_is_signed): Likewise.
2745 * lib/umaxtostr.c (inttype_is_signed): Likewise.
2746 * lib/inttostr.c (inttostr): Use verify to cross-check the
2747 inttype_is_signed value and the signedness of the actual type.
2748 * modules/inttostr (Depends-on): Add verify.
2750 2009-10-30 Eric Blake <ebb9@byu.net>
2752 build: avoid compiler warnings
2753 * lib/fchmodat.c (lchmod): Mark unused variables.
2754 * lib/getopt.c (_getopt_initialize): Likewise.
2755 * lib/mktime.c (__mktime_internal): Provide prototype.
2756 * lib/inttostr.c (inttostr): Avoid compiler warning even with
2757 older gcc that do not understand #pragma GCC diagnostic.
2758 * lib/uinttostr.c (inttype_is_unsigned): Define.
2759 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
2761 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
2763 stat: fix compilation on AIX
2764 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
2765 only see struct stat64.
2767 2009-10-30 Eric Blake <ebb9@byu.net>
2769 exclude: make more robust
2770 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
2771 rather than masking a coding bug.
2772 Suggested by Bruno Haible.
2774 2009-10-30 Jim Meyering <meyering@redhat.com>
2776 perl scripts: remove #!/usr/bin/perl in favor of more portable...
2777 Rather than putting #!/usr/bin/perl on the first line,
2778 start with a variant of what's recommended by "man perlrun" that
2779 invokes the first "perl" program from your shell's search path.
2780 * build-aux/gitlog-to-changelog: Replace #!... as above.
2781 Add a "Local Variables" perl mode setting.
2782 Prompted by a patch from Ludovic Courtès.
2783 Improved by Eric Blake.
2784 * build-aux/useless-if-before-free: Likewise.
2785 * build-aux/announce-gen: Likewise.
2786 * build-aux/update-copyright: Likewise.
2788 2009-10-29 Eric Blake <ebb9@byu.net>
2790 filenamecat-lgpl: adjust clients
2791 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
2793 * modules/renameat (Depends-on): Likewise.
2795 filenamecat: split into filenamecat-lgpl
2796 * modules/filenamecat-lgpl: New module.
2797 * modules/filenamecat (Files): Move library-safe files into
2799 (Depends-on): Add filenamecat-lgpl.
2800 (configure.ac): Declare witness.
2801 * lib/filenamecat.h (file_name_concat): Only declare when using
2803 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
2805 * lib/filenamecat-lgpl.c: ...into new file.
2806 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
2807 (gl_FILE_NAME_CONCAT): Use it.
2808 * MODULES.html.sh (File system functions): Mention new module.
2810 argp: avoid memory leak
2811 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
2812 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
2813 base_name, since the latter malloc()s and can call exit().
2814 Leak introduced 2006-07-03.
2816 dirname-lgpl: adjust clients that don't need full dirname
2817 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
2818 * modules/filenamecat (Depends-on): Likewise.
2819 * modules/linkat (Depends-on): Likewise.
2820 * modules/mkancesdirs (Depends-on): Likewise.
2821 * modules/mkdir (Depends-on): Likewise.
2822 * modules/openat (Depends-on): Likewise.
2823 * modules/savewd (Depends-on): Likewise.
2824 * modules/rename (Depends-on): Likewise.
2825 (License): Relax license.
2826 * modules/mkdir-tests (Depends-on): Drop progname.
2827 (Makefile.am): Delete unneeded LDADD.
2828 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
2830 dirname: split into dirname-lgpl
2831 * modules/dirname-lgpl: New module.
2832 * modules/dirname (Files): Move library-safe files into
2834 (Depends-on): Add dirname-lgpl.
2835 (configure.ac): Declare witness.
2836 * modules/double-slash-root (License): Relax license.
2837 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
2839 * lib/dirname.c (dir_len, mdir_name): Move...
2840 * lib/dirname-lgpl.c: ...into new file.
2841 * lib/basename.c (last_component, base_len): Move...
2842 * lib/basename-lgpl.c: ...into new file.
2843 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
2844 (gl_DIRNAME): Use it.
2845 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
2847 * modules/dirname-tests (Depends-on): Add progname.
2848 * tests/test-dirname.c (program_name): Delete.
2850 mkdir: make safe for libraries
2851 * modules/mkdir (Depends-on): Drop xalloc.
2852 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
2855 tests: avoid some compiler warnings
2856 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
2858 * tests/test-memchr.c (main): Avoid type mismatch.
2859 * tests/test-arpa_inet.c (main): Avoid unused parameters.
2860 * tests/test-base64.c (main): Likewise.
2861 * tests/test-getdelim.c (main): Likewise.
2862 * tests/test-gethostname.c (main): Likewise.
2863 * tests/test-getline.c (main): Likewise.
2864 * tests/test-netinet_in.c (main): Likewise.
2865 * tests/test-select.c (open_server_socket, main): Likewise.
2866 * tests/test-select-stdin.c (main): Likewise.
2867 * tests/test-sockets.c (main): Likewise.
2868 * tests/test-strsignal.c (main): Likewise.
2869 * tests/test-sys_select.c (main): Likewise.
2870 * tests/test-sys_socket.c (main): Likewise.
2871 * tests/test-u64.c (main): Likewise.
2872 * tests/test-xfprintf-posix.c (main): Likewise.
2873 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
2875 sockets: avoid compiler warning
2876 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
2878 maint: detect usage(1) and other suspicious exits
2879 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
2881 2009-10-29 Jim Meyering <meyering@redhat.com>
2883 timespec: long-to-int truncation could make timespec_cmp malfunction
2884 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
2885 a multiple of 2^32 nanoseconds as no difference.
2887 2009-10-28 Jim Meyering <meyering@redhat.com>
2889 fprintftime: wrap macro code argument in "do {...} while(0)"
2890 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
2891 cpy macro must be a statement that can be followed by a semicolon.
2892 Now that the else clause contains a comment and is hence longer
2893 than one line, I require curly braces. That in turn requires
2894 that we wrap this code block in the standard do...while(0).
2896 fprintftime: remove stray semicolon from previous change
2897 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
2899 fprintftime: avoid a warning about ignored fwrite return value
2900 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
2901 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
2903 * modules/fprintftime (Depends-on): Add ignore-value.
2905 exclude: avoid an unwarranted warning
2906 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
2908 2009-10-27 Eric Blake <ebb9@byu.net>
2910 fseek: avoid compilation failure when fflush is replaced
2911 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
2912 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
2914 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
2915 module is not in use; since REPLACE_FSEEK worked otherwise.
2916 (GNULIB_FTELLO): Likewise for ftell.
2917 Reported by Ian Beckwith and others.
2919 2009-10-27 Bruno Haible <bruno@clisp.org>
2921 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
2922 Reported by Jim Meyering.
2924 2009-10-27 Jim Meyering <jim@meyering.net>
2925 Bruno Haible <bruno@clisp.org>
2927 Avoid warning despite dropping the return value of fwrite.
2928 * lib/unicodeio.c: Include ignore-value.h.
2929 (fwrite_success_callback): Explicitly ignore fwrite's return value.
2930 * modules/unicodeio (Depends-on): Add ignore-value.
2932 2009-10-26 Eric Blake <ebb9@byu.net>
2934 areadlinkat: fix fallback path
2935 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
2938 2009-10-22 Pádraig Brady <P@draigBrady.com>
2940 Use a better IO block size for modern systems
2941 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
2942 * lib/md2.c: Likewise.
2943 * lib/md4.c: Likewise.
2944 * lib/md5.c: Likewise.
2945 * lib/sha1.c: Likewise.
2946 * lib/sha256.c: Likewise.
2947 * lib/sha512.c: Likewise.
2949 2009-10-22 Eric Blake <ebb9@byu.net>
2951 tests: avoid several compiler warnings
2952 * tests/test-getcwd.c (main): Avoid buffer underflow.
2953 * tests/test-getdate.c (main): String literals are not safe with
2954 putenv, so use setenv. Declare unused argument.
2955 * modules/getdate-tests (Depends-on): Add setenv.
2956 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
2957 problems with string literals in char *.
2958 * tests/test-hash.c (main): Avoid shadowing declaration.
2959 (insert_new): Treat string literals as char const *.
2960 * tests/test-getopt.h (test_getopt): Likewise.
2961 (getopt_loop): Alter types to minimize casting elsewhere.
2962 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
2963 (test_getopt_long_posix): Likewise.
2964 (do_getopt_long): Add wrapper to minimize casting.
2965 * tests/test-atexit.c (clear_temp_file): Use void.
2966 * tests/test-areadlink-with-size.c (main): Declare unused
2968 * tests/test-areadlink.c (main): Likewise.
2969 * tests/test-areadlinkat-with-size.c (main): Likewise.
2970 * tests/test-areadlinkat.c (main): Likewise.
2971 * tests/test-canonicalize-lgpl.c (main): Likewise.
2972 * tests/test-canonicalize.c (main): Likewise.
2973 * tests/test-dirent-safer.c (main): Likewise.
2974 * tests/test-dirname.c (main): Likewise.
2975 * tests/test-dup2.c (main): Likewise.
2976 * tests/test-fchdir.c (main): Likewise.
2977 * tests/test-fcntl-h.c (main): Likewise.
2978 * tests/test-fcntl-safer.c (main): Likewise.
2979 * tests/test-fdopendir.c (main): Likewise.
2980 * tests/test-fdutimensat.c (main): Likewise.
2981 * tests/test-fflush.c (main): Likewise.
2982 * tests/test-filenamecat.c (main): Likewise.
2983 * tests/test-filevercmp.c (main): Likewise.
2984 * tests/test-fopen-safer.c (main): Likewise.
2985 * tests/test-fopen.c (main): Likewise.
2986 * tests/test-fpending.c (main): Likewise.
2987 * tests/test-fpurge.c (main): Likewise.
2988 * tests/test-freading.c (main): Likewise.
2989 * tests/test-fstatat.c (main): Likewise.
2990 * tests/test-fsync.c (main): Likewise.
2991 * tests/test-futimens.c (main): Likewise.
2992 * tests/test-getndelim2.c (main): Likewise.
2993 * tests/test-gettimeofday.c (main): Likewise.
2994 * tests/test-getopt.c (main): Likewise.
2995 * tests/test-i-ring.c (main): Likewise.
2996 * tests/test-inttypes.c (main): Likewise.
2997 * tests/test-link.c (main): Likewise.
2998 * tests/test-lstat.c (main): Likewise.
2999 * tests/test-math.c (main): Likewise.
3000 * tests/test-md5.c (main): Likewise.
3001 * tests/test-memchr2.c (main): Likewise.
3002 * tests/test-memrchr.c (main): Likewise.
3003 * tests/test-mkdir.c (main): Likewise.
3004 * tests/test-mkdirat.c (main): Likewise.
3005 * tests/test-mkfifoat.c (main): Likewise.
3006 * tests/test-open.c (main): Likewise.
3007 * tests/test-openat-safer.c (main): Likewise.
3008 * tests/test-openat.c (main): Likewise.
3009 * tests/test-quotearg.c (main): Likewise.
3010 * tests/test-rawmemchr.c (main): Likewise.
3011 * tests/test-readlink.c (main): Likewise.
3012 * tests/test-remove.c (main): Likewise.
3013 * tests/test-rename.c (main): Likewise.
3014 * tests/test-renameat.c (main): Likewise.
3015 * tests/test-rmdir.c (main): Likewise.
3016 * tests/test-sha1.c (main): Likewise.
3017 * tests/test-signal.c (main): Likewise.
3018 * tests/test-sigaction.c (main): Likewise.
3019 * tests/test-stat.c (main): Likewise.
3020 * tests/test-stat-time.c (main): Likewise.
3021 * tests/test-stddef.c (main): Likewise.
3022 * tests/test-stdint.c (main): Likewise.
3023 * tests/test-stdio.c (main): Likewise.
3024 * tests/test-stdlib.c (main): Likewise.
3025 * tests/test-strchrnul.c (main): Likewise.
3026 * tests/test-strerror.c (main): Likewise.
3027 * tests/test-string.c (main): Likewise.
3028 * tests/test-strtod.c (main): Likewise.
3029 * tests/test-strverscmp.c (main): Likewise.
3030 * tests/test-symlink.c (main): Likewise.
3031 * tests/test-symlinkat.c (main): Likewise.
3032 * tests/test-sys_stat.c (main): Likewise.
3033 * tests/test-sys_time.c (main): Likewise.
3034 * tests/test-time.c (main): Likewise.
3035 * tests/test-unistd.c (main): Likewise.
3036 * tests/test-unlink.c (main): Likewise.
3037 * tests/test-unlinkat.c (main): Likewise.
3038 * tests/test-utimens.c (main): Likewise.
3039 * tests/test-utimensat.c (main): Likewise.
3040 * tests/test-version-etc.c (main): Likewise.
3041 * tests/test-wchar.c (main): Likewise.
3042 * tests/test-wctype.c (main): Likewise.
3043 * tests/test-xprintf-posix.c (main): Likewise.
3044 * tests/test-posixtm.c (main): Likewise.
3045 (STREQ): Delete unused macro.
3046 * tests/test-linkat.c (main): Declare unused arguments. Avoid
3048 * tests/test-memchr.c (main): Likewise.
3050 2009-10-21 Eric Blake <ebb9@byu.net>
3052 areadlinkat: avoid failure on older glibc
3053 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
3054 rather than mis-comparing 0 against FUNC_RESULT of char*.
3056 2009-10-21 Bruno Haible <bruno@clisp.org>
3058 * modules/stpncpy (License): Relicense under LGPLv2+.
3059 Reported by David Lutterkort <lutter@redhat.com>.
3061 2009-10-20 Eric Blake <ebb9@byu.net>
3063 utimensat: work around Solaris 9 bug
3064 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
3065 has trailing slash bugs.
3066 * tests/test-lutimens.h (test_lutimens): Enhance test.
3067 * tests/test-utimens.h (test_utimens): Likewise.
3068 * doc/posix-functions/utime.texi (utime): Enhance documentation.
3069 * doc/posix-functions/utimes.texi (utimes): Likewise.
3070 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3071 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
3072 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
3073 * doc/posix-functions/futimens.texi (futimens): Likewise.
3075 fdutimensat: new module
3076 * modules/fdutimensat: New file.
3077 * lib/fdutimensat.c (fdutimensat): Likewise.
3078 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
3079 * MODULES.html.sh (File system functions): Mention module.
3080 * modules/fdutimensat-tests: New test.
3081 * tests/test-fdutimensat.c: Likewise.
3083 doc: regenerate INSTALL
3084 * doc/INSTALL: Reflect recent autoconf update.
3085 * doc/INSTALL.ISO: Likewise.
3086 * doc/INSTALL.UTF-8: Likewise.
3088 2009-10-20 Pádraig Brady <P@draigBrady.com>
3090 acl: warn if ACL support is not detected
3091 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
3093 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
3095 * lib/nproc.h: Add extern "C" block for C++.
3097 2009-10-18 Reuben Thomas <rrt@sc3d.org>
3098 Bruno Haible <bruno@clisp.org>
3100 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
3101 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
3102 * doc/posix-functions/isalpha.texi: Likewise.
3103 * doc/posix-functions/isblank.texi: Likewise.
3104 * doc/posix-functions/iscntrl.texi: Likewise.
3105 * doc/posix-functions/isdigit.texi: Likewise.
3106 * doc/posix-functions/isgraph.texi: Likewise.
3107 * doc/posix-functions/islower.texi: Likewise.
3108 * doc/posix-functions/isprint.texi: Likewise.
3109 * doc/posix-functions/ispunct.texi: Likewise.
3110 * doc/posix-functions/isspace.texi: Likewise.
3111 * doc/posix-functions/isupper.texi: Likewise.
3112 * doc/posix-functions/isxdigit.texi: Likewise.
3114 2009-10-18 Bruno Haible <bruno@clisp.org>
3116 Tests for module 'isblank'.
3117 * modules/isblank-tests: New file.
3118 * tests/test-isblank.c: New file.
3120 New module 'isblank'.
3121 * lib/isblank.c: New file.
3122 * m4/isblank.m4: New file.
3123 * modules/isblank: New file.
3124 * doc/posix-functions/isblank.texi: Mention the new module.
3126 2009-10-18 Bruno Haible <bruno@clisp.org>
3129 * lib/ctype.in.h: New file.
3130 * m4/ctype.m4: New file.
3131 * modules/ctype: New file.
3132 * doc/posix-headers/ctype.texi: Mention the new module.
3134 2009-10-18 Jim Meyering <meyering@redhat.com>
3136 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
3137 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
3138 right after its initialization, rather than farther down.
3139 Keeping these in close proximity makes it easier to ensure
3140 that each such variable is initialized. E.g.,
3143 AC_SUBST([LIB_CLOCK_GETTIME])
3145 This change also increments these serial numbers.
3146 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
3147 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
3148 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3150 2009-10-18 Bruno Haible <bruno@clisp.org>
3152 Don't let environment variables perturb build.
3153 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
3154 (gl_PREREQ_GETHRXTIME): ... not here.
3156 2009-10-18 Bruno Haible <bruno@clisp.org>
3158 Avoid symlink attack in localcharset module.
3159 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
3160 (O_NOFOLLOW): Define fallback.
3161 (get_charset_aliases): Don't open the file if it is a symbolic link.
3162 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
3164 (gl_FCNTL_H): Require it.
3165 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
3166 * modules/localcharset (Files): Add m4/fcntl_h.m4.
3167 Reported by Fergal Glynn <fglynn@veracode.com>.
3169 2009-10-18 Bruno Haible <bruno@clisp.org>
3171 Implement nproc for mingw.
3172 * lib/nproc.c: Include <windows.h>
3173 (num_processors): On native Windows platforms, try GetSystemInfo.
3175 2009-10-18 Bruno Haible <bruno@clisp.org>
3177 Implement nproc for IRIX.
3178 * lib/nproc.c: Include <sys/sysmp.h>.
3179 (num_processors): On IRIX systems, try sysmp.
3180 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
3182 2009-10-18 Bruno Haible <bruno@clisp.org>
3184 Implement nproc for HP-UX.
3185 * lib/nproc.c: Include <sys/pstat.h>
3186 (num_processors): On HP-UX systems, try pstat_getdynamic.
3187 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
3190 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
3191 Bruno Haible <bruno@clisp.org>
3193 Implement nproc for NetBSD, OpenBSD.
3194 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
3195 (ARRAY_SIZE): New macro.
3196 (num_processors): On BSD systems, try sysctl of HW_NCPU.
3197 * m4/nproc.m4: New file.
3198 * modules/nproc (Files): Add m4/nproc.m4.
3199 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
3200 (Makefile.am): Instead, augment lib_SOURCES.
3202 2009-10-18 Bruno Haible <bruno@clisp.org>
3204 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
3205 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
3208 2009-10-16 Eric Blake <ebb9@byu.net>
3210 utimensat: new module
3211 * modules/utimensat: New file.
3212 * lib/utimensat.c (utimensat): Likewise.
3213 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
3214 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
3215 so we can work around Linux bugs.
3216 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
3217 * modules/sys_stat (Makefile.am): Substitute them.
3218 * lib/sys_stat.in.h (utimensat): Declare it.
3219 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3220 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3221 * modules/utimensat-tests: New test.
3222 * tests/test-utimensat.c: Likewise.
3224 utimens: let lutimens work on non-symlinks
3225 * lib/utimens.c (lutimens): Fall back to utimens rather than
3226 failing with ENOSYS, when file is not a symlink.
3227 (utimens): Reduce redirection.
3228 * tests/test-lutimens.h (test_lutimens): Update test to cover
3230 * tests/test-utimens.h (test_utimens): Update test to cover
3232 * tests/test-utimens.c (main): Update caller.
3234 utimens: cache whether utimensat syscall works
3235 * lib/utimens.c (utimensat_works_really): New cache variable.
3236 (fdutimens, lutimens): Use it to avoid failing syscall.
3238 test-stat-time, test-utimens: improve portability
3239 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
3240 ext4 on alpha, and for cygwin.
3241 * tests/test-utimens-common.h: New file.
3242 (nap): Factor delays into single function.
3243 * tests/test-lutimens.h (test_lutimens): Use new header.
3244 * tests/test-futimens.h (test_futimens): Likewise.
3245 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
3246 timestamps to occur from same machine, as was done previously for
3248 * modules/utimens-tests (Files): Ship new file.
3249 * modules/futimens-tests (Files): Likewise.
3250 Reported in part by Jim Meyering.
3252 sys_stat: sort replacement declarations
3253 * lib/sys_stat.in.h: Sort declarations.
3254 * lib/futimens.c (futimens): Fix typo.
3256 2009-10-15 Jim Meyering <meyering@redhat.com>
3258 don't let environment settings perturb build
3259 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
3260 could cause a configure-time and/or build-time malfunction.
3261 Typically, a configure-time function-in-library test is performed
3266 prefix_saved_LIBS=$LIBS
3267 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
3268 [test "$ac_cv_search_FUNC" = "none required" ||
3269 LIB_VAR=$ac_cv_search_FUNC])
3270 LIBS=$prefix_saved_LIBS
3272 However, in each of the files affected by this change, the LIB_VAR=
3273 initialization was omitted. Thus, when set in the environment, its
3274 value would propagate into generated Makefiles when FUNC is not found
3276 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
3277 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
3278 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
3280 2009-10-14 Eric Blake <ebb9@byu.net>
3282 fchdir: avoid infinite recursion in mingw
3283 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
3286 test-stat-time: port to mingw
3287 * tests/test-stat-time.c (force_unlink): Return a value.
3288 (test_ctime) [W32]: Fix compilation error.
3289 (nap): Don't call usleep with too large an argument. Use
3291 * doc/pastposix-functions/usleep.texi (usleep): Document the
3294 2009-10-13 Jim Meyering <meyering@redhat.com>
3296 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
3297 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
3298 * modules/pipe-filter-ii: Likewise.
3299 * modules/sys_socket-tests: Likewise.
3300 * modules/tsearch-tests: Likewise.
3301 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
3302 (check): Depend on it.
3304 2009-10-12 Eric Blake <ebb9@byu.net>
3306 utimens-tests: port to NFS file systems
3307 * tests/test-utimens.h (test_utimens): Refactor utimecmp
3308 comparisons to avoid spurious failures from timestamp drift
3309 between NFS machines.
3311 2009-10-12 Eric Blake <ebb9@byu.net>
3313 stat-time-tests: minor cleanups
3314 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
3315 * tests/test-stat-time.c (nap): Separate assignment from call.
3316 Suggested by Paolo Bonzini and Bruno Haible.
3318 sys_stat: guarantee struct timespec
3319 * lib/sys_stat.in.h (includes): Always include <time.h>
3320 * modules/sys_stat (Depends-on): Add time.
3321 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
3322 mode_t permission values.
3323 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
3324 get at subsecond timestamps.
3326 2009-10-10 Eric Blake <ebb9@byu.net>
3328 futimens: new module
3329 * modules/futimens: New file.
3330 * lib/futimens.c (futimens): Likewise.
3331 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
3332 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
3333 we can work around Linux bugs.
3334 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
3335 * modules/sys_stat (Makefile.am): Substitute them.
3336 * lib/sys_stat.in.h (futimens): Declare it.
3337 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3338 * doc/posix-functions/futimens.texi (futimens): Likewise.
3339 * modules/futimens-tests: New test.
3340 * tests/test-futimens.c: Likewise.
3342 utimens: introduce fdutimens
3343 * lib/utimens.h (fdutimens): New prototype.
3344 * lib/utimens.c (gl_futimens): Move guts...
3345 (fdutimens): ...to new interface.
3346 * tests/test-utimens.c (do_fdutimens): Use it.
3348 utimens: add UTIME_NOW and UTIME_OMIT support
3349 * lib/utimens.c (validate_timespec, update_timespec): New helper
3351 (gl_futimens, lutimens): Use them.
3352 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
3354 (Link): Mention resulting library dependency.
3355 * modules/utimecmp (Link): Likewise.
3356 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
3357 (Makefile.am): Pick up library dependency.
3358 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
3360 * tests/test-sys_stat.c: Test the definitions.
3361 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
3362 * NEWS: Document library dependency.
3364 utimecmp: support symlink timestamps
3365 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
3366 hashing when possible. Use pathconf when available.
3367 (SYSCALL_RESOLUTION): Recognize tighter resolution.
3368 * modules/utimecmp (Depends-on): Add lstat.
3370 utimens: add lutimens interface
3371 * lib/utimens.c (lutimens): New function.
3372 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
3373 * lib/utimens.h (lutimens): Declare new interface.
3374 * tests/test-utimens.c (main): Enhance test.
3375 * tests/test-lutimens.h (test_lutimens): New file.
3376 * modules/utimens-tests (Files): Distribute it.
3377 (Depends-on): Add symlink.
3378 (configure.ac): Check for usleep.
3380 utimens: validate futimens usage
3381 * lib/utimens.c (gl_futimens): Require valid fd up front, using
3382 fewer syscalls on failure later on. Avoid compiler warning on
3384 * modules/utimens (Depends-on): Add dup2.
3387 * modules/utimens-tests: New test.
3388 * tests/test-utimens.h: New file.
3389 * tests/test-futimens.h: Likewise.
3390 * tests/test-utimens.c: Likewise.
3392 doc: mention timestamp portability issues
3393 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
3395 * doc/posix-functions/utime.texi (utime): Likewise.
3396 * doc/posix-functions/utimes.texi (utimes): Likewise.
3397 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
3399 * doc/posix-functions/futimens.texi (futimens): Mention utimens
3401 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3402 Mention weakness with symlink timestamps.
3403 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
3404 to utimensat/futimens instead.
3405 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
3407 test-dup2: enhance test
3408 * tests/test-dup2.c (main): Also check AT_FDCWD.
3410 test-stat-time: avoid more spurious failures
3411 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
3412 xfs; and avoid race if the two timestamps cross quantization edge.
3414 relocatable: prefer 'file system' over 'filesystem'
3415 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
3416 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
3417 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
3418 * doc/relocatable.texi (Enabling Relocatability): Likewise.
3419 * lib/relocatable.c (compute_curr_prefix): Likewise.
3421 2009-10-10 Jim Meyering <meyering@redhat.com>
3423 stat-time-tests: check for the usleep function
3424 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
3426 2009-10-10 Bruno Haible <bruno@clisp.org>
3428 * modules/xnanosleep: Put the Link section after the Include section.
3430 2009-10-09 Eric Blake <ebb9@byu.net>
3432 dup2: work around FreeBSD 6.1 bug
3433 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
3434 * doc/posix-functions/dup2.texi (dup2): Document it.
3435 Reported by Nelson H. F. Beebe and Jim Meyering.
3437 test-stat-time: port to buggy NFS clients
3438 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
3439 (test_ctime): Also skip test if mtime and ctime are skewed.
3441 maint: prefer 'file system' over 'filesystem'
3442 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
3443 * doc/posix-functions/lstat.texi (lstat): Likewise.
3444 * lib/file-has-acl.c (file_has_acl): Likewise.
3445 * lib/fwriteerror.c [TEST]: Likewise.
3446 * tests/test-areadlink.h (test_areadlink): Likewise.
3447 * tests/test-areadlinkat-with-size.c (main): Likewise.
3448 * tests/test-areadlinkat.c (main): Likewise.
3449 * tests/test-canonicalize-lgpl.c (main): Likewise.
3450 * tests/test-canonicalize.c (main): Likewise.
3451 * tests/test-fstatat.c (main): Likewise.
3452 * tests/test-linkat.c (main): Likewise.
3453 * tests/test-lstat.h (test_lstat_func): Likewise.
3454 * tests/test-mkdir.h (test_mkdir): Likewise.
3455 * tests/test-readlink.h (test_readlink): Likewise.
3456 * tests/test-remove.c (main): Likewise.
3457 * tests/test-rename.h (test_rename): Likewise.
3458 * tests/test-renameat.c (main): Likewise.
3459 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3460 * tests/test-symlink.h (test_symlink): Likewise.
3461 * tests/test-symlinkat.c (main): Likewise.
3462 * tests/test-unlink.h (test_unlink_func): Likewise.
3463 * tests/test-unlinkat.c (main): Likewise.
3465 maint: make realtime library usage explicit
3466 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
3467 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
3468 * modules/settime (Link): Likewise.
3469 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
3471 test-stat-time: speed up execution
3472 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
3474 (nap): New helper function.
3475 (prepare_test): Use it to reduce sleep time.
3476 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
3478 * modules/stat-time-tests (configure.ac): Check for usleep.
3480 2009-10-09 Jim Meyering <meyering@redhat.com>
3482 selinux-h: always use getfilecon wrappers
3483 * lib/getfilecon.c: New file.
3484 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
3485 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
3486 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
3487 (fgetfilecon): Provide a stub.
3488 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
3489 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
3490 file unconditionally.
3491 When <selinux/selinux.h> is found, arrange to use wrappers.
3492 * modules/selinux-h (Files): Add getfilecon.c.
3493 (Makefile.am): Substitute include-next-related bits
3494 into the now-always-generated selinux/selinux.h file.
3495 * doc/glibc-functions/lgetfilecon.texi: New file.
3496 * doc/glibc-functions/fgetfilecon.texi: New file.
3497 * doc/glibc-functions/getfilecon.texi: New file.
3498 * doc/glibc-functions/getfilecon-desc.texi: New file.
3499 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
3500 which to pull in the new files.
3501 * MODULES.html.sh (Misc): Add selinux-h.
3503 2009-10-08 Jim Meyering <meyering@redhat.com>
3505 unistd: fix comment typo
3506 * lib/unistd.in.h (euidaccess): Fix a comment typo.
3508 2009-10-08 Eric Blake <ebb9@byu.net>
3510 areadlink: use SIZE_MAX consistently
3511 * modules/areadlink (Depends-on): Add stdint.
3512 * modules/areadlink-with-size (Depends-on): Likewise.
3513 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
3514 gives NULL; drop sys/types, since unistd gives size_t; and add
3515 stdint for SIZE_MAX.
3516 (SIZE_MAX): Rely on headers.
3517 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
3519 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
3520 (SIZE_MAX): Likewise.
3521 (INITIAL_BUF_SIZE): Turn into enum.
3522 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
3524 2009-10-08 Jim Meyering <meyering@redhat.com>
3526 areadlinkat: avoid compilation failure
3527 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
3528 Fix typo in comment.
3530 2009-10-07 Eric Blake <ebb9@byu.net>
3532 areadlinkat-with-size: new module
3533 * modules/areadlinkat-with-size: New module.
3534 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
3535 * lib/areadlink.h (areadlinkat): Declare it.
3536 * MODULES.html.sh (File system functions): Mention it.
3537 * modules/areadlinkat-with-size-tests: New test.
3538 * tests/test-areadlinkat-with-size.c: New file.
3540 xreadlinkat: new module
3541 * modules/xreadlinkat: New module.
3542 * lib/xreadlinkat.c (xreadlinkat): New file.
3543 * lib/xreadlink.h (xreadlinkat): Declare it.
3544 * MODULES.html.sh (File system functions): Mention it.
3546 areadlinkat: new module
3547 * lib/at-func.c (FUNC_FAIL): New define.
3548 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
3549 * modules/areadlinkat: New module.
3550 * lib/linkat.c (areadlinkat): Move...
3551 * lib/areadlinkat.c (areadlinkat): ...to new file.
3552 * lib/areadlink.h (areadlinkat): Declare it.
3553 * modules/linkat (Depends-on): Add areadlinkat.
3554 * MODULES.html.sh (File system functions): Mention it.
3555 * modules/areadlinkat-tests: New test.
3556 * tests/test-areadlinkat.c: New file.
3558 areadlink, areadlink-with-size: add tests
3559 * modules/areadlink-tests: New test.
3560 * modules/areadlink-with-size-tests: Likewise.
3561 * tests/test-areadlink.h: New file.
3562 * tests/test-areadlink.c: Likewise.
3563 * tests/test-areadlink-with-size.c: Likewise.
3565 maint: minor cleanups
3566 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
3567 _UNUSED_PARAMETER_ instead.
3568 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
3569 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
3570 * modules/linkat-tests (Files): Distribute test-link.h.
3572 openat, utimens: whitespace cleanup
3573 * lib/openat.c: Prefer space throughout, rather than mix of 8
3575 * lib/at-func.c: Likewise.
3576 * lib/utimens.c: Likewise.
3578 openat: avoid using wrong fd
3579 * lib/openat.c (openat_permissive): Reject user's fd if saving the
3580 working directory chooses same fd.
3581 * lib/at-func.c (AT_FUNC_NAME): Likewise.
3583 mkdir, mkdirat: fix cygwin 1.5.x bug
3584 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
3585 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
3586 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
3588 (gl_PREREQ_MKDIR): Delete unused macro.
3589 * modules/mkdir (Files): Track file rename.
3590 (configure.ac): Update macro name.
3591 * modules/openat (Depends-on): Add mkdir.
3592 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
3594 mkdir, mkdirat: add tests
3595 * modules/mkdir-tests: New test.
3596 * tests/test-mkdir.h: New file.
3597 * tests/test-mkdir.c: Likewise.
3598 * tests/test-mkdirat.c: Likewise.
3599 * modules/openat-tests (Files): Add new files.
3600 (Makefile.am): Run new test.
3602 2009-10-06 Eric Blake <ebb9@byu.net>
3604 doc: tweak *at function documentation
3605 * doc/posix-functions/faccessat.texi (faccessat): Mention
3606 known issue with replacement.
3607 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
3608 * doc/posix-functions/linkat.texi (linkat): Likewise.
3609 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
3610 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
3611 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3612 * doc/posix-functions/renameat.texi (renameat): Likewise.
3613 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
3615 openat: fix GNU/Hurd bug in unlinkat
3616 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
3618 * doc/posix-functions/unlink.texi (unlink): Document this.
3619 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
3621 fdopendir: fix GNU/Hurd bug
3622 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
3623 allowing non-directory fds.
3624 * lib/fdopendir.c (rpl_fdopendir): Work around it.
3625 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
3626 * modules/dirent (Makefile.am): Substitute it.
3627 * lib/dirent.in.h (fdopendir): Declare replacement.
3628 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
3629 * tests/test-fdopendir.c (main): Test something other than
3630 /dev/null, since on Hurd that behaves like a directory.
3632 test-symlink: port to GNU/Hurd
3633 * tests/test-symlink.h (test_symlink): Relax expected errno.
3635 doc: tweak more cygwin information
3636 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
3637 now compatible with glibc.
3638 * doc/posix-functions/getopt.texi (getopt): Likewise.
3640 getopt-gnu: add another test
3641 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
3642 guarantee behavior relied on by m4.
3643 * tests/test-getopt.c (main): Use it.
3644 * modules/getopt-posix-tests (Depends-on): Add setenv.
3645 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
3647 getopt: fix compilation on darwin
3648 * lib/getopt.in.h (includes): Leave breadcrumbs during system
3650 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
3651 Reported by Ludovic Courtès.
3653 2009-10-06 Bruno Haible <bruno@clisp.org>
3655 * modules/size_max (Description): Discourage its use.
3656 Reported by Simon Josefsson.
3658 2009-10-06 Jim Meyering <meyering@redhat.com>
3660 linkat: avoid compilation failure
3661 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
3663 2009-10-05 Eric Blake <ebb9@byu.net>
3665 linkat: support Linux 2.6.17
3666 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
3667 linkat on Linux, but allow cache variable override.
3668 * lib/linkat.c (rpl_linkat): Define override.
3669 * modules/linkat (Depends-on): Add symlinkat.
3670 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
3671 * modules/unistd (Makefile.am): Substitute it.
3672 * lib/unistd.in.h (linkat): Declare replacement.
3673 Reported by Pádraig Brady.
3675 quotearg: port test to systems with C.UTF-8 locale
3676 * tests/test-quotearg.c (struct result_strings): Add another
3677 member, differentiating between C.ASCII and C.UTF-8 handling.
3678 (compare_strings): Add parameter.
3679 (main): Adjust all callers.
3681 getopt: avoid clash with FreeBSD _getopt_internal
3682 * lib/getopt.in.h (_getopt_internal): Override the name.
3683 * lib/getopt_int.h (includes): Pick up any overrides.
3684 Reported by Reuben Thomas.
3686 hash: allow C89 compilation
3687 * lib/hash.c (check_tuning): Move declaration before statement.
3688 Reported by Reuben Thomas.
3690 2009-10-05 Karl Berry <karl@gnu.org>
3692 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
3694 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
3695 Bruno Haible <bruno@clisp.org>
3697 * lib/uname.c (uname): Use a table-driven algorithm to compute
3698 Windows NT versions.
3700 2009-10-04 Bruno Haible <bruno@clisp.org>
3702 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
3703 program_invocation_short_name.
3704 * modules/progname (configure.ac): Test for presence of
3705 program_invocation_short_name.
3706 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
3708 2009-10-04 Bruno Haible <bruno@clisp.org>
3710 * lib/progname.c (set_program_name): Fix comment.
3711 Reported by Jim Meyering.
3713 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
3714 Bruno Haible <bruno@clisp.org>
3716 * lib/uname.c: Include <string.h>.
3717 (uname): Do only one call to GetVersionEx in the common case.
3719 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
3720 Bruno Haible <bruno@clisp.org>
3722 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
3723 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
3724 (uname): Add support for Windows CE and various non-x86 CPU types.
3726 2009-10-03 Bruno Haible <bruno@clisp.org>
3728 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
3729 invocation to tests/configure.ac.
3730 Reported by Ian Beckwith <ianb@erislabs.net>.
3732 2009-10-02 Eric Blake <ebb9@byu.net>
3734 fchdir: avoid compiler warning
3735 * lib/fchdir.c (canonicalize_file_name)
3736 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
3738 test-open: support mingw errno values
3739 * tests/test-open.h (test_open): Relax test.
3740 * tests/test-fopen.h (test_fopen): Likewise.
3741 * tests/test-openat-safer.c (main): Likewise.
3743 open: fix opening directory on mingw
3744 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
3746 test-open: on GNU/Hurd, /dev/null is a directory
3747 * tests/test-fopen.h (main): Rename...
3748 (test_fopen): ...to this. Use a guaranteed non-directory when
3749 confirming open behavior on trailing slash.
3750 * tests/test-openat-safer.c (main): Likewise.
3751 * tests/test-open.h (main): Likewise....
3752 (test_open): ...to this.
3753 * tests/test-fopen.c (main): Adjust caller.
3754 * tests/test-fopen-safer.c (main): Likewise.
3755 * tests/test-open.c (main): Likewise.
3756 * tests/test-fcntl-safer.c (main): Likewise.
3757 Reported by Samuel Thibault.
3759 rename, fchdir: don't ignore chdir failure
3760 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
3761 * lib/rename.c (rpl_rename) [W32]: Likewise.
3762 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
3763 an empty destination directory if source cannot be renamed,
3764 although there is still possibility for failure.
3765 * doc/posix-functions/rename.texi (rename): Document the race.
3766 Reported by Jim Meyering.
3768 maint: cleanup whitespace in recent commits
3769 * lib/rename.c (rpl_rename): Remove tabs.
3770 * tests/test-link.h (test_link): Likewise.
3771 * lib/fchdir.c (get_name): Likewise.
3772 Reported by Jim Meyering.
3774 2009-10-02 Ben Pfaff <blp@gnu.org>
3776 relocatable-prog-wrapper: Add missing dependency on
3778 * modules/relocatable-prog-wrapper: Add dependency.
3779 Reported by Ian Beckwith <ianb@erislabs.net>.
3781 2009-10-02 Eric Blake <ebb9@byu.net>
3783 renameat: fix Solaris bugs
3784 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
3786 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
3787 * modules/stdio (Makefile.am): Substitute it.
3788 * lib/stdio.in.h (renameat): Declare replacement.
3789 * lib/renameat.c (rpl_renameat): Implement fix.
3791 renameat: new module
3792 * modules/renameat: New file.
3793 * lib/renameat.c (renameat): Likewise.
3794 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
3795 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
3796 * modules/stdio (Makefile.am): Substitute them.
3797 * lib/stdio.in.h (renameat): Declare it.
3798 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
3799 * doc/posix-functions/renameat.texi (renameat): Likewise.
3800 * modules/renameat-tests: New test.
3801 * tests/test-renameat.c: Likewise.
3803 rename: fix mingw bugs
3804 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
3805 directory overwrite bugs.
3807 rename: fix another cygwin 1.5 bug
3808 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
3810 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
3811 unnecessary cygwin workarounds. Also work around bug with moving
3812 full directory onto an empty one.
3813 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
3815 rename-dest-slash: merge into rename module
3816 * modules/rename-dest-slash (Status): Mark obsolete.
3817 (Depends-on): Add rename.
3818 (Files): Let rename do it all.
3819 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
3820 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
3821 * m4/rename-dest-slash.m4: ...so this file can be deleted.
3822 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
3823 * lib/rename.c (rpl_rename): Update comments.
3825 rename: fix cygwin 1.5.x bugs
3826 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
3827 * lib/rename.c (rpl_rename): Work around them.
3828 * modules/rename (Depends-on): Add same-inode.
3830 rename: fix Solaris 10 bug
3831 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3832 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
3835 rename: fix Solaris 9 bug
3836 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
3837 on non-directory. Avoid calling exit.
3838 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
3840 * modules/rename-tests (Depends-on): Drop lstat.
3841 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
3842 (gl_PREREQ_RENAME): Delete unused macro.
3844 rename-dest-slash: fix NetBSD bug
3845 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
3847 * modules/rename-dest-slash (Depends-on): Add same-inode.
3849 rename-tests: new test, exposes several platform bugs
3850 * modules/rename-tests: New file.
3851 * tests/test-rename.h: Likewise.
3852 * tests/test-rename.c: Likewise.
3853 * doc/posix-functions/rename.texi (rename): Improve documentation,
3854 including bugs that will eventually be fixed in gnulib.
3856 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
3858 * lib/uname.c: Include <stdlib.h>
3859 (uname): Assume version info is available.
3861 2009-10-02 Jim Meyering <meyering@redhat.com>
3863 gnu-web-doc-update: correct --help output
3864 * build-aux/gnu-web-doc-update: Make --help output relevant.
3866 gnu-web-doc-update: add standard options
3867 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
3869 gnu-web-doc-update: New module.
3870 Use this script to automatically update the on-line web documentation
3871 for your GNU project at http://www.gnu.org/software/$pkg/manual/
3872 * modules/gnu-web-doc-update: New file, from coreutils.
3873 * build-aux/gnu-web-doc-update: New script.
3875 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
3877 link: LoadLibrary is not needed.
3878 * lib/link.c: Use GetModuleHandle.
3880 2009-10-01 Eric Blake <ebb9@byu.net>
3882 getopt: bump serial number
3883 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
3886 tests: tighten link, rmdir, and remove tests
3887 * tests/test-link.h (includes): No need to use <config.h> here.
3888 Clean up if directory hard link was created, otherwise test for
3890 * tests/test-linkat.c (main): Simplify.
3891 * tests/test-remove.c (main): Enhance test for trailing '.'.
3892 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3894 2009-10-01 Jim Meyering <meyering@redhat.com>
3896 maint.mk: requiring "make major" was annoying, for a "minor" release.
3897 What is intended is "stable", to contrast with alpha and beta,
3898 so require "make stable", not "make major".
3899 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
3900 (get_tool_versions): Likewise.
3901 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
3903 2009-09-30 Ben Pfaff <blp@gnu.org>
3905 Fix broken build of replacement for Windows tmpfile().
3906 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
3907 flags argument added along with the 'mkostemp' module.
3909 2009-09-28 Bruno Haible <bruno@clisp.org>
3911 Avoid identifier clash with POSIX function 'remove' defined as a macro.
3912 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
3914 (gl_list_remove): Update.
3915 * lib/gl_list.c (gl_list_remove): Update.
3916 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
3918 (gl_oset_remove): Update.
3919 * lib/gl_list.c (gl_oset_remove): Update.
3920 Reported by Eric Blake.
3922 2009-09-28 Eric Blake <ebb9@byu.net>
3924 doc: mention yet more cygwin 1.7 status
3925 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
3927 * doc/glibc-functions/execvpe.texi (execvpe): New file.
3928 * doc/gnulib.texi (Glibc unistd.h): Mention it.
3930 argp: fix test failure
3931 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
3932 that are not upper-case. Pass correct range to tolower.
3934 2009-09-27 Jim Meyering <meyering@redhat.com>
3936 test-yesno: work around sparc-dash here-document infelicity
3937 Without this change, the literal \177 byte in a here document
3938 would make dash 0.5.5.1-3 access uninitialized memory.
3939 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
3940 Instead, use a marker, "@", and filter through tr to create the desired
3941 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
3943 2009-09-27 Bruno Haible <bruno@clisp.org>
3945 Disable untested support for new flavours of ACLs on AIX.
3946 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
3948 * lib/set-mode-acl.c (qset_acl): Likewise.
3950 2008-12-07 Bruno Haible <bruno@clisp.org>
3952 Add support for new flavours of ACLs on AIX. (Untested.)
3953 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
3954 (file_has_acl): Add support for newer AIX.
3955 * lib/set-mode-acl.c (qset_acl): Likewise.
3956 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
3957 Rainer Tammer <tammer@tammer.net>.
3959 2009-09-26 Eric Blake <ebb9@byu.net>
3961 argp: fix compilation of getopt
3962 * lib/getopt.in.h (includes): Use different guard than glibc.
3963 Reported by Sergey Poznyakoff.
3965 doc: mention more cygwin 1.7 status
3966 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
3968 * doc/posix-functions/execl.texi (execl): Likewise.
3969 * doc/posix-functions/execle.texi (execle): Likewise.
3970 * doc/posix-functions/execlp.texi (execlp): Likewise.
3971 * doc/posix-functions/execv.texi (execv): Likewise.
3972 * doc/posix-functions/execve.texi (execve): Likewise.
3973 * doc/posix-functions/execvp.texi (execvp): Likewise.
3974 * doc/glibc-functions/canonicalize_file_name.texi
3975 (canonicalize_file_name): Cygwin 1.7 now provides this.
3976 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
3977 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
3978 on AT_SYMLINK_NOFOLLOW.
3980 2009-09-24 Eric Blake <ebb9@byu.net>
3982 test-linkat: make test more robust
3983 * tests/test-linkat.c (main): Avoid collision with EEXIST.
3985 getopt: fix inclusion guards for cygwin
3986 * modules/getopt-posix (Depends-on): Add include-next.
3987 (Makefile.am): Substitute more items in replacement header.
3988 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
3990 * lib/getopt.in.h (includes): Use split inclusion guard, and
3991 prefer <getopt.h> over include <unistd.h> when one is present.
3992 (option): Also override name of 'struct option'.
3994 same-inode: revert prior change; it is not yet ready
3995 * NEWS: Undo mention of this change.
3996 * lib/same-inode.h (same-inode.h): Undo tri-state change.
3997 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
3998 * lib/cycle-check.c (cycle_check): Likewise.
3999 * lib/same.c (same_name): Likewise.
4000 * lib/at-func2.c (at_func2): Likewise.
4002 2009-09-23 Eric Blake <ebb9@byu.net>
4005 * modules/linkat: New file.
4006 * lib/at-func2.c (at_func2): Likewise.
4007 * lib/linkat.c (linkat): Likewise.
4008 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4009 * lib/openat-priv.h (at_func2): Add declaration.
4010 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
4011 * modules/unistd (Makefile.am): Substitute them.
4012 * lib/unistd.in.h (linkat): Declare it.
4013 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4014 * doc/posix-functions/linkat.texi (linkat): Likewise.
4015 * doc/posix-functions/link.texi (link): Tweak wording.
4016 * tests/test-link.c (main): Move guts...
4017 * tests/test-link.h (test_link): ...into new file.
4018 * modules/linkat-tests: New test.
4019 * tests/test-linkat.c: Likewise.
4020 * modules/link-tests (Files): Ship new file.
4021 (Depends-on): Add stdbool.
4023 dirname: add library-safe mdir_name
4024 * lib/dirname.h (mdir_name): New prototype.
4025 * lib/dirname.c (dir_name): Move guts...
4026 (mdir_name): ...to new function that avoids xalloc_die.
4028 fchdir: another mingw fix
4029 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
4030 * lib/fchdir.c (get_name): New helper method; skips canonicalize
4031 on mingw (where it has not yet been ported), and make it optional
4033 (_gl_register_fd): Use it.
4035 same-inode: make SAME_INODE tri-state, to port to mingw
4036 * NEWS: Mention this change.
4037 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
4038 st_ino always being 0.
4039 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
4040 * lib/cycle-check.c (cycle_check): Likewise.
4041 * lib/same.c (same_name): Likewise.
4043 lstat: avoid mingw compilation error
4044 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
4045 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
4047 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
4049 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
4050 the checks for lstat.
4051 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
4053 link: fix test failure on Solaris 9
4054 * lib/link.c (rpl_link): Don't assume link will catch bogus
4055 trailing slash on source.
4057 test-symlinkat: enhance test
4058 * tests/test-readlink.c (main): Move guts...
4059 * tests/test-readlink.h (test_readlink): ...into new file.
4060 * tests/test-symlink.c (main): Move guts...
4061 * tests/test-symlink.h (test_symlink): ...into new file.
4062 * tests/test-symlinkat.c (main): Use new files for further
4064 (do_symlink, do_readlink): New helper functions.
4065 * modules/symlink-tests (Files): Ship new file.
4066 (Depends-on): Add stdbool.
4067 * modules/readlink-tests (Files): Ship new file.
4068 (Depends-on): Add stdbool.
4069 * modules/symlinkat-tests (Files): Use new files.
4071 2009-09-23 Eric Blake <ebb9@byu.net>
4073 readlink: document portability issue with symlink length
4074 * doc/posix-functions/lstat.texi (lstat): Mention that some file
4075 systems have bogus st_size on symlinks, and mention the
4076 areadlink-with-size module.
4077 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
4078 * doc/posix-functions/readlink.texi (readlink): Mention the
4079 areadlink module, and ERANGE failure.
4080 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4081 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
4083 readlink: fix Solaris 9 bug with trailing slash
4084 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
4085 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
4086 * doc/posix-functions/readlink.texi (readlink): Document this.
4087 * modules/readlink-tests: New test.
4088 * tests/test-readlink.c: Likewise.
4090 readlink: fix cygwin 1.5.x bug with return type
4091 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
4092 * lib/unistd.in.h (readlink): Use ssize_t.
4093 * lib/readlink.c (readlink): Likewise.
4094 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4095 * modules/unistd (Makefile.am): Substitute it.
4096 * lib/unistd.in.h (readlink): Declare replacement.
4097 * doc/posix-functions/readlink.texi (readlink): Document this.
4099 symlink: use throughout gnulib
4100 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
4101 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
4102 symlink is not used.
4103 * modules/symlinkat (Depends-on): Add symlink.
4104 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
4105 * modules/canonicalize-tests (Depends-on): Likewise.
4106 * modules/lstat-tests (Depends-on): Likewise.
4107 * modules/openat-tests (Depends-on): Likewise.
4108 * modules/remove-tests (Depends-on): Likewise.
4109 * modules/rmdir-tests (Depends-on): Likewise.
4110 * modules/unlink-tests (Depends-on): Likewise.
4111 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
4112 * tests/test-canonicalize.c (symlink): Likewise.
4113 * tests/test-fstatat.c (symlink): Likewise.
4114 * tests/test-lstat.c (symlink): Likewise.
4115 * tests/test-remove.c (symlink): Likewise.
4116 * tests/test-rmdir.c (symlink): Likewise.
4117 * tests/test-unlink.c (symlink): Likewise.
4118 * tests/test-unlinkat.c (symlink): Likewise.
4120 symlink: new module, for Solaris 9 bug
4121 * modules/symlink: New file.
4122 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
4123 * lib/symlink.c: Likewise.
4124 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
4125 * modules/unistd (Makefile.am): Substitute them.
4126 * lib/unistd.in.h (symlink): Declare replacement.
4127 * MODULES.html.sh (File system functions): Mention it.
4128 * doc/posix-functions/symlink.texi (symlink): Likewise.
4129 * modules/symlink-tests: New test.
4130 * tests/test-symlink.c: Likewise.
4132 2009-09-23 Bruno Haible <bruno@clisp.org>
4134 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
4136 Test case: gnulib-tool --import --with-tests atexit inttypes.
4137 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
4139 2009-09-23 Bruno Haible <bruno@clisp.org>
4141 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
4142 subcommand, not in a subshell.
4144 2009-09-22 Eric Blake <ebb9@byu.net>
4146 unistd: sort replacement declarations
4147 * lib/unistd.in.h: Sort declarations.
4149 open, openat: minor optimization
4150 * lib/open.c (open): If open succeeded, len is non-zero.
4151 * lib/openat.c (rpl_openat): Likewise.
4153 link-follow: ensure correct result
4154 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
4155 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
4156 distinguish between possible failures.
4158 2009-09-21 Eric Blake <ebb9@byu.net>
4160 fts: avoid compiler warning
4161 * lib/fts.c (dirent_inode_sort_may_be_useful)
4162 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
4164 2009-09-19 Bruno Haible <bruno@clisp.org>
4166 * lib/progreloc.c (canonicalize_file_name): New declaration.
4168 2009-09-19 Eric Blake <ebb9@byu.net>
4171 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
4173 openat: fix openat bugs on Solaris 9
4174 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
4175 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
4176 * modules/openat (Depends-on): Add open.
4177 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
4178 * modules/fcntl-h (Makefile.am): Substitute it.
4179 * lib/fcntl.in.h (openat): Declare replacement.
4180 * doc/posix-functions/openat.texi (openat): Document this.
4182 openat: move fstatat and unlinkat into correct files
4183 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
4185 * lib/openat.c (fstatat, unlinkat): Move...
4186 * lib/fstatat.c (fstatat): ...into correct files.
4187 * lib/unlinkat.c (unlinkat): Likewise.
4189 openat: fix unlinkat bugs on Solaris 9
4190 * lib/unlinkat.c (unlinkat): New file.
4191 * modules/openat (Depends-on): Add unlink.
4192 (Files): Distribute it.
4193 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
4194 trailing slash behavior is broken.
4195 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
4196 * modules/unistd (Makefile.am): Substitute it.
4197 * lib/unistd.in.h (unlinkat): Declare replacement.
4198 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
4200 openat: fix fstatat bugs on Solaris 9
4201 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
4203 * doc/posix-functions/fstatat.texi (fstatat): Document this.
4205 test-unlinkat: enhance test, to expose Solaris 9 bug
4206 * tests/test-unlink.c (main): Factor guts...
4207 * tests/test-unlink.h (test_rmdir_func): ...into new file.
4208 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
4209 * tests/test-rmdir.c (main): Adjust caller.
4210 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
4211 (unlinker): New helper function.
4212 (rmdirat): Enhance check.
4213 * modules/rmdir-tests (Depends-on): Add stdbool.
4214 * modules/unlink-tests (Depends-on): Likewise.
4215 (Files): Add test-unlink.h.
4216 * modules/openat-tests (Files): Likewise.
4217 (Depends-on): Add unlinkdir.
4219 test-fstatat: new test, to expose Solaris 9 bugs
4220 * tests/test-stat.c (main): Factor guts...
4221 * tests/test-stat.h (test_stat_func): ...into new file.
4222 * tests/test-lstat.c (main): Factor guts...
4223 * tests/test-lstat.h (test_lstat_func): ...into new file.
4224 * tests/test-fstatat.c: New file.
4225 * modules/stat-tests (Files): Add test-stat.h.
4226 * modules/lstat-tests (Files): Add test-lstat.h.
4227 (Depends-on): Add stdbool.
4228 * modules/openat-tests (Depends-on): Add pathmax.
4229 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
4230 (Makefile.am): Run new test.
4232 remove: new module, for mingw and Solaris 9 bugs
4233 * modules/remove: New file.
4234 * lib/remove.c: Likewise.
4235 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
4236 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
4237 * modules/stdio (Makefile.am): Use them.
4238 * lib/stdio.in.h (remove): Declare replacement.
4239 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4240 * doc/posix-functions/remove.texi (remove): Likewise.
4241 * modules/remove-tests: New test.
4242 * tests/test-remove.c: Likewise.
4244 unlink: new module, for Solaris 9 bug
4245 * modules/unlink: New file.
4246 * lib/unlink.c: Likewise.
4247 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4248 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
4249 * modules/unistd (Makefile.am): Use them.
4250 * lib/unistd.in.h (stat): Declare replacement.
4251 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4252 * doc/posix-functions/unlink.texi (unlink): Likewise.
4253 * modules/unlink-tests: New test.
4254 * tests/test-unlink.c: Likewise.
4256 lstat: fix Solaris 9 bug
4257 * lib/lstat.c (lstat): Also check for trailing slash on
4258 non-symlink, non-directories. Use stat module to simplify logic.
4259 * doc/posix-functions/lstat.texi (lstat): Document it.
4260 * modules/lstat-tests (Depends-on): Add errno, same-inode.
4261 (configure.ac): Check for symlink.
4262 * tests/test-lstat.c (main): Add more tests.
4264 stat: add as dependency to other modules
4265 * modules/chown (Depends-on): Add stat.
4266 * modules/euidaccess (Depends-on): Likewise.
4267 * modules/fchdir (Depends-on): Likewise.
4268 * modules/isdir (Depends-on): Likewise.
4269 * modules/link (Depends-on): Likewise.
4270 * modules/lstat (Depends-on): Likewise.
4271 * modules/mkdir-p (Depends-on): Likewise.
4272 * modules/modechange (Depends-on): Likewise.
4273 * modules/open (Depends-on): Likewise.
4274 * modules/readlink (Depends-on): Likewise.
4275 * modules/same (Depends-on): Likewise.
4277 stat: fix Solaris 9 bug
4278 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
4280 * lib/stat.c (rpl_stat): Work around it.
4281 * doc/posix-functions/stat.texi (stat): Update documentation.
4283 stat: new module, for mingw bug
4284 * modules/stat: New file.
4285 * lib/stat.c: Likewise.
4286 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
4287 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4288 * modules/sys_stat (Makefile.am): Use them.
4289 * lib/sys_stat.in.h (stat): Declare replacement.
4290 * lib/openat.c (fstatat): Deal with lstat and stat being function
4292 * modules/openat (Depends-on): Add inline.
4293 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4294 * doc/posix-functions/stat.texi (stat): Likewise.
4295 * modules/stat-tests: New test.
4296 * tests/test-stat.c: Likewise.
4298 2009-09-19 Jim Meyering <meyering@redhat.com>
4300 syntax-check: detect unnecessary inclusion of canonicalize.h
4301 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
4303 2009-09-19 Eric Blake <ebb9@byu.net>
4305 canonicalize-lgpl: adjust clients to use correct header
4306 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4307 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
4308 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
4309 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
4310 * lib/progreloc.c (includes): Likewise.
4312 2009-09-19 Jim Meyering <meyering@redhat.com>
4314 test-posixtm.c: correct a comment
4315 * tests/test-posixtm.c: Correct first-line comment.
4316 Spotted by Eric Blake.
4318 2009-09-16 Jim Meyering <meyering@redhat.com>
4320 posixtm-tests: make T const-correct; add a test case
4321 * tests/test-posixtm.c (T): Declare const.
4322 Add a test for -(2^31+1).
4323 Remove useless can-succeed-only-in-2002 test.
4325 posixtm-tests: adjust the sole failing test
4326 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
4327 expected output matches what mktime now produces. Cross-checked via
4328 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
4330 posixtm: move #ifdef'd tests into a new module
4331 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
4332 * tests/test-posixtm.c: ... this new file.
4333 * modules/posixtm-tests: New module.
4335 2009-09-19 Eric Blake <ebb9@byu.net>
4337 openat: simplify use of at-func.c
4338 * lib/at-func.c (includes): Include prerequisites here, to
4339 simplify requirements on client files.
4340 * lib/openat-priv.h: Add double-inclusion guard.
4341 * lib/faccessat.c (includes): Simplify.
4342 * lib/fchmodat.c (includes): Likewise.
4343 * lib/fchownat.c (includes): Likewise.
4344 * lib/mkdirat.c (includes): Likewise.
4345 * lib/mkfifoat.c (includes): Likewise.
4346 * lib/symlinkat.c (includes): Likewise.
4348 openat: allow return of fd 0
4349 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
4350 * modules/save-cwd (Depends-on): Replace fcntl-safer with
4352 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
4353 <fcntl.h>; this module does not leak fds.
4354 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
4355 must be allowed to return 0, leaving openat_safer to add the
4357 (openat_permissive): Avoid writing to just-opened fd 2 if
4358 restoring the current directory fails.
4359 * lib/openat-die.c (openat_restore_fail): Add comment.
4360 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
4361 (save_cwd): Guarantee safe fd, but without use of open_safer.
4362 * tests/test-openat.c: New test.
4363 * modules/openat-tests (Files, Makefile.am): Distribute and build
4366 relocatable-prog-wrapper: fix build
4367 * modules/relocatable-prog-wrapper (Files): Update name of
4368 canonicalize m4 file, broken on 2009-09-17.
4369 Reported by emad hajjar <aleppos@hotmail.com>.
4371 2009-09-19 Bruno Haible <bruno@clisp.org>
4373 * lib/safe-alloc.h: Use the standard header with GPL copyright.
4374 * lib/safe-alloc.c: Likewise.
4375 Reported by Ian Beckwith <ianb@erislabs.net>.
4377 2009-09-18 Bruno Haible <bruno@clisp.org>
4379 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
4380 Reported by <erobles@sensacd.com.mx>.
4382 2009-09-17 Eric Blake <ebb9@byu.net>
4384 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
4385 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
4386 slashes when checking if last component is missing.
4387 * tests/test-canonicalize.c (main): Test this.
4389 canonicalize, canonicalize-lgpl: honor // if distinct from /
4390 * modules/canonicalize (Files): Add double-slash-root.m4.
4391 * modules/canonicalize-lgpl (Files): Likewise.
4392 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
4393 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
4394 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
4395 fallback definition.
4396 (canonicalize_filename_mode): Use it to protect //.
4397 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
4398 (__realpath): Likewise.
4399 * tests/test-canonicalize.c (main): Test this.
4400 * tests/test-canonicalize-lgpl.c (main): Likewise.
4401 * modules/canonicalize-tests (Depends-on): Add same-inode.
4402 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
4404 canonicalize-lgpl: fix glibc bug with trailing slash
4405 * m4/canonicalize-lgpl.m4: Move contents...
4406 * m4/canonicalize.m4: ...here.
4407 (gl_CANONICALIZE_LGPL): Factor realpath check...
4408 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
4409 glibc 2.3.5 bug, fixed 2005-04-27.
4410 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
4411 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
4412 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
4413 * modules/canonicalize-lgpl (Files): Manage file rename.
4414 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
4415 * modules/stdlib (Makefile.am): Substitute witness.
4416 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
4418 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
4419 replacement is required.
4420 * lib/canonicalize.c (canonicalize_file_name): Likewise.
4421 * doc/glibc-functions/canonicalize_file_name.texi
4422 (canonicalize_file_name): Document this.
4423 * doc/posix-functions/realpath.texi (realpath): Likewise.
4425 canonicalize-lgpl: reject non-directory with trailing slash
4426 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
4427 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
4428 catches failures in glibc 2.3.5.
4429 * tests/test-canonicalize.c (main): Likewise.
4431 canonicalize-lgpl: use native realpath if it works
4432 * lib/canonicalize-lgpl.c (realpath): Guard with
4433 FUNC_REALPATH_WORKS.
4434 * lib/stdlib.in.h (realpath): Make declaration optional based on
4436 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
4437 native realpath works.
4438 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
4439 * modules/stdlib (Makefile.am): Substitute witness.
4441 canonicalize, canonicalize-lgpl: use <stdlib.h>
4442 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
4443 (Include): Mention <stdlib.h>.
4444 (configure.ac): Mention functions we provide.
4445 * modules/canonicalize (configure.ac): Likewise.
4446 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
4447 realpath if canonicalize_file_name is missing.
4448 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
4449 * modules/stdlib (Makefile.am): Substitute witnesses.
4450 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
4451 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
4452 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
4453 * NEWS: Document this.
4454 * doc/glibc-functions/canonicalize_file_name.texi
4455 (canonicalize_file_name): Likewise.
4456 * doc/posix-functions/realpath.texi (realpath): Likewise.
4457 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
4459 test-canonicalize: consolidate into single C program
4460 * tests/test-canonicalize.sh: Delete; move setup into...
4461 * tests/test-canonicalize.c (main): ...the program, making it
4462 easier to run in debugger. Add some tests.
4463 * modules/canonicalize-tests (Files): Remove unused file.
4464 (Depends-on): Add progname.
4465 (configure.ac, Makefile.am): Simplify.
4467 test-canonicalize-lgpl: consolidate into single C program
4468 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
4469 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
4470 easier to run in debugger. Add some tests.
4471 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
4472 (configure.ac, Makefile.am): Simplify.
4474 canonicalize: avoid resolvepath
4475 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
4477 * lib/canonicalize.c (includes): Simplify.
4478 (canonicalize_file_name): Drop resolvepath implementation.
4479 * modules/canonicalize (Depends-on): Drop filenamecat.
4481 canonicalize: don't lose errno
4482 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
4485 canonicalize: simplify errno handling
4486 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
4489 canonicalize, canonicalize-lgpl: update module dependencies
4490 * modules/canonicalize (Depends-on): Add extensions, lstat,
4492 (Files): Drop pathmax.h.
4493 (configure.ac): Adjust macro name.
4494 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
4495 lstat, stdlib, sys_stat.
4496 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
4497 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
4499 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
4500 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
4501 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
4502 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
4503 declaration, if available.
4504 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
4505 we can rely on the readlink module.
4506 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
4507 (includes): Use <unistd.h> unconditionally.
4509 2009-09-17 Eric Blake <ebb9@byu.net>
4511 maint: make Include sections of modules consistent
4512 * modules/alloca: Use only header name; no need to list #include.
4513 * modules/alloca-opt: Likewise.
4514 * modules/arpa_inet: Likewise.
4515 * modules/canon-host: Likewise.
4516 * modules/configmake: Likewise.
4517 * modules/dirent: Likewise.
4518 * modules/eealloc: Likewise.
4519 * modules/environ: Likewise.
4520 * modules/fchdir: Likewise.
4521 * modules/fcntl: Likewise.
4522 * modules/fcntl-h: Likewise.
4523 * modules/gethrxtime: Likewise.
4524 * modules/gettime: Likewise.
4525 * modules/ignore-value: Likewise.
4526 * modules/inet_ntop: Likewise.
4527 * modules/inet_pton: Likewise.
4528 * modules/inttypes: Likewise.
4529 * modules/isnand-nolibm: Likewise.
4530 * modules/isnanf-nolibm: Likewise.
4531 * modules/mbchar: Likewise.
4532 * modules/mbfile: Likewise.
4533 * modules/mbiter: Likewise.
4534 * modules/mbuiter: Likewise.
4535 * modules/netdb: Likewise.
4536 * modules/netinet_in: Likewise.
4537 * modules/nproc: Likewise.
4538 * modules/pagealign_alloc: Likewise.
4539 * modules/poll: Likewise.
4540 * modules/printf-frexp: Likewise.
4541 * modules/pthread: Likewise.
4542 * modules/putenv: Likewise.
4543 * modules/random_r: Likewise.
4544 * modules/relocatable-prog: Likewise.
4545 * modules/search: Likewise.
4546 * modules/select: Likewise.
4547 * modules/selinux-h: Likewise.
4548 * modules/settime: Likewise.
4549 * modules/signal: Likewise.
4550 * modules/size_max: Likewise.
4551 * modules/socklen: Likewise.
4552 * modules/ssize_t: Likewise.
4553 * modules/stdarg: Likewise.
4554 * modules/stdbool: Likewise.
4555 * modules/stddef: Likewise.
4556 * modules/stdint: Likewise.
4557 * modules/stdio: Likewise.
4558 * modules/stdlib: Likewise.
4559 * modules/string: Likewise.
4560 * modules/strings: Likewise.
4561 * modules/sys_file: Likewise.
4562 * modules/sys_ioctl: Likewise.
4563 * modules/sys_select: Likewise.
4564 * modules/sys_socket: Likewise.
4565 * modules/sys_stat: Likewise.
4566 * modules/sys_time: Likewise.
4567 * modules/sys_times: Likewise.
4568 * modules/sys_utsname: Likewise.
4569 * modules/sys_wait: Likewise.
4570 * modules/sysexits: Likewise.
4571 * modules/time: Likewise.
4572 * modules/times: Likewise.
4573 * modules/tmpfile: Likewise.
4574 * modules/trim: Likewise.
4575 * modules/unistd: Likewise.
4576 * modules/wchar: Likewise.
4577 * modules/wctype: Likewise.
4579 2009-09-17 Bruno Haible <bruno@clisp.org>
4581 Make getdate.y compile on QNX and NetBSD 5 / i386.
4582 * m4/getdate.m4 (gl_GETDATE): Conditionally define
4583 TIME_T_FITS_IN_LONG_INT.
4584 * lib/getdate.y (long_time_t): New type.
4585 (relative_time): Change type of 'seconds' field to long_time_t.
4586 (get_date): Update types of local variables. Check against overflow
4587 during conversion from long_time_t to time_t.
4588 Reported by Matt Kraai <kraai@ftbfs.org>
4589 and Hasso Tepper <hasso@netbsd.org>.
4591 2009-09-17 Bruno Haible <bruno@clisp.org>
4593 * modules/COPYING: Update copyright years.
4594 * modules/README: Likeiwse.
4595 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
4596 Reported by Ian Beckwith <ianb@erislabs.net>.
4598 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
4600 * users.txt: Update references for gnuit package.
4602 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
4604 * m4/getdelim.m4: Fix typo in copyright line.
4606 2009-09-17 Bruno Haible <bruno@clisp.org>
4608 * lib/atoll.c: Use the standard header with GPL copyright.
4609 * lib/argz.in.h: Likewise.
4610 * lib/glob.c: Likewise.
4611 * lib/glob-libc.h: Likewise.
4612 * lib/random_r.c: Likewise.
4613 * lib/siglist.h: Likewise.
4614 * lib/strsignal.c: Likewise.
4615 Reported by Ian Beckwith <ianb@erislabs.net>.
4617 2009-09-17 Eric Blake <ebb9@byu.net>
4619 rmdir: ensure correct dependency order
4620 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
4622 2009-09-17 Bruno Haible <bruno@clisp.org>
4624 Disable assertion that fails on NetBSD 5 / i386.
4625 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
4626 Reported by Sam Steingold <sds@gnu.org>
4627 and Hasso Tepper <hasso@netbsd.org>.
4629 2009-09-16 Eric Blake <ebb9@byu.net>
4631 unlinkdir: port to mingw
4632 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
4633 on which no one can unlink a directory.
4635 stdlib: sort witness names
4636 * modules/stdlib (Makefile.am): Sort replacements.
4637 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
4638 * lib/stdlib.in.h: Likewise.
4640 parse-duration-tests: avoid link failure
4641 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
4643 Reported by Tom G. Christensen.
4645 openat-tests: ensure unlinkat behaves like rmdir
4646 * tests/test-rmdir.c (main): Factor guts...
4647 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
4648 * modules/rmdir-tests (Files): Ship new file.
4649 * modules/openat-tests: New test.
4650 * tests/test-unlinkat.c: Likewise.
4652 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
4653 * modules/rmdir-errno (Status, Notice): Now obsolete.
4655 rmdir: work around cygwin 1.5.x and mingw bugs
4656 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
4657 * lib/rmdir.c (rmdir): Work around it.
4658 * modules/rmdir (Status, Notice): No longer obsolete.
4659 (Files): Add dos.m4.
4660 (Depends-on): Add unistd.
4661 (configure.ac): Set witnesses.
4662 (License): Relax to LGPLv2+.
4663 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
4664 * modules/unistd (Makefile.am): Substitute witnesses.
4665 * lib/unistd.in.h (rmdir): Declare replacement.
4666 * doc/posix-functions/rmdir.texi (rmdir): Document this.
4667 * modules/rmdir-tests: New tests.
4668 * tests/test-rmdir.c: Likewise.
4670 2009-09-15 Eric Blake <ebb9@byu.net>
4672 fchdir: improve use of replacement functions
4673 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
4674 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
4675 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
4677 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
4678 * modules/sys_stat (Makefile.am): Substitute correct witness.
4679 * modules/dirent (Makefile.am): Likewise.
4680 * modules/unistd (Makefile.am): Likewise.
4681 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
4682 * lib/unistd.in.h (dup): Likewise.
4683 * lib/sys_stat.in.h (fstat): Likewise.
4685 maint: ignore gnulib-tool temp files
4686 * .gitignore: Ignore files created during gnulib-tool --test.
4688 2009-09-13 Jim Meyering <meyering@redhat.com>
4690 posixtm: don't reject a time that specify "60" as the number of seconds
4691 * lib/posixtm.c (posixtime): The code to reject invalid dates
4692 would also reject a time specified with the .60 suffix.
4693 But POSIX allows that, in order to accommodate leap seconds.
4695 (main): Adjust tests accordingly.
4696 * modules/posixtm (Depends-on): Add stpcpy.
4698 2009-09-11 Jim Meyering <meyering@redhat.com>
4700 announce-gen: include [$release_type] in emitted Subject:
4701 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
4702 e.g., [stable] in the emitted Subject: line.
4704 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4706 Remove obsolete macros from several modules.
4707 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
4708 obsolete Autoconf macros with their modern counterparts.
4709 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
4710 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
4711 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
4712 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
4713 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
4714 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
4715 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
4716 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
4717 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4718 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
4719 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4720 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4721 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4722 * m4/sockets.m4 (gl_SOCKETS): Likewise.
4723 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
4724 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
4725 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
4726 * m4/time_r.m4 (gl_TIME_R): Likewise.
4727 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
4728 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
4729 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
4731 Fix copyright header in build-aux scripts.
4732 * build-aux/git-version-gen: Fix copyright header to match GPLv3
4734 * build-aux/ncftpput-ftp: Likewise.
4735 * build-aux/update-copyright: Likewise.
4737 2009-09-09 Eric Blake <ebb9@byu.net>
4739 test-link: allow Linux choice of errno
4740 * tests/test-link.c (main): Relax test for alternate error.
4742 strndup: fix improper m4 caching
4743 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
4744 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
4745 (gl_PREREQ_STRNDUP): Delete.
4746 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
4747 * modules/string (Makefile.am): Substitute it.
4748 * lib/string.in.h (strndup): Modernize prototype.
4750 getcwd: port to mingw
4751 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
4752 different from the POSIX assumptions made throughout the getcwd
4753 module; fortunately, the mingw getcwd does not need replacement.
4754 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
4755 * modules/getcwd-tests: New test.
4756 * tests/test-getcwd.c: Likewise.
4758 link: fix platform bugs
4759 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
4760 * lib/link.c (link): Work around them. Fix related mingw bug.
4761 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
4762 * modules/unistd (Makefile.am): Substitute it.
4763 * lib/unistd.in.h (link): Declare replacement.
4764 * doc/posix-functions/link.texi (link): Document this.
4765 * modules/link (Depends-on): Add strdup-posix, sys_stat.
4767 test-link: consolidate into single C program, test more cases
4768 * tests/test-link.sh: Delete.
4769 * tests/test-link.c: Test more error conditions. Exposes bugs on
4770 at least Cygwin and Solaris.
4771 * modules/link-tests (Files): Remove unused file.
4772 (Depends-on): Add errno, sys_stat.
4773 (Makefile.am): Simplify.
4775 2009-09-08 Bruno Haible <bruno@clisp.org>
4777 Work around towlower, towupper bug on mingw.
4778 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
4779 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
4780 * doc/posix-functions/towlower.texi: Mention the mingw bug.
4781 * doc/posix-functions/towupper.texi: Likewise.
4782 Reported by Eric Blake.
4784 2009-09-08 Jim Meyering <meyering@redhat.com>
4786 build: don't try to run autoheader if we don't use it
4787 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
4788 is not used in configure.ac.
4790 2009-09-08 Eric Blake <ebb9@byu.net>
4792 euidaccess: fix compilation error
4793 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
4795 rawmemchr: relax license
4796 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
4798 Reported by Jim Meyering.
4800 mkfifoat: new module
4801 * modules/mkfifoat: New file.
4802 * lib/mkfifoat.c: Likewise.
4803 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
4804 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4805 * modules/sys_stat (Makefile.am): Use them.
4806 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
4807 * MODULES.html.sh (File system functions): Mention module.
4808 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
4809 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
4810 * modules/mkfifoat-tests: New test.
4811 * tests/test-mkfifoat.c: Likewise.
4813 strchrnul: relax license
4814 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
4816 Reported by Jim Meyering.
4818 2009-09-08 Eric Blake <ebb9@byu.net>
4820 fstatat: fix compilation on Solaris
4821 * lib/fstatat.c (includes): Add fcntl.h.
4822 Reported by Pádraig Brady.
4824 2009-09-07 Eric Blake <ebb9@byu.net>
4826 rename: modernize replacement
4827 * modules/rename (Depends-on): Add stdio.
4828 (configure.ac): Declare witness.
4829 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
4830 stdio take care of replacement.
4831 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
4832 * modules/stdio (Makefile.am): Substitute them.
4833 * lib/stdio.in.h (rename): Declare replacement.
4834 * lib/rename.c (includes): Allow cross-compilation to non-windows
4836 * doc/posix-functions/rename.texi (rename): Improve
4839 stdio: sort witness names
4840 * modules/stdio (Makefile.am): Sort replacements.
4841 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4842 * lib/stdio.in.h: Likewise.
4844 getcwd: minor cleanups
4845 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
4846 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
4848 openat: provide more convenience names
4849 * modules/faccessat (configure.ac): Add C witness.
4850 * lib/unistd.in.h (readlinkat): Fix typo.
4851 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
4852 convenience wrappers.
4853 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
4854 wrappers in syntax checks.
4856 2009-09-06 Eric Blake <ebb9@byu.net>
4858 doc: fix comments in recent patches
4859 * lib/faccessat.c: Mention correct function.
4860 * lib/fchmodat.c: Likewise.
4861 * lib/fchownat.c: Likewise.
4862 * lib/symlinkat.c: Likewise.
4863 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
4866 faccessat, symlinkat: continue cleanup of previous patch
4867 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
4868 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
4869 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
4870 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
4871 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
4872 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
4875 2009-09-06 Bruno Haible <bruno@clisp.org>
4877 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
4878 (fstatat): Declare if GNULIB_FSTATAT is set.
4879 (mkdirat): Declare if GNULIB_MKDIRAT is set.
4880 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
4881 (unlinkat): Declare if GNULIB_UNLINKAT is set.
4882 * modules/fcntl-h (Files): Remove m4/openat.m4.
4883 * modules/sys_stat (Files): Remove m4/openat.m4.
4884 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
4885 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
4886 * modules/unistd (Files): Remove m4/openat.m4.
4887 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
4889 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
4890 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
4891 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
4892 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
4893 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
4895 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
4896 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
4897 Don't require gl_OPENAT_DEFAULTS.
4898 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
4899 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
4900 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
4901 (gl_OPENAT_DEFAULTS): Remove macro.
4903 2009-09-06 Bruno Haible <bruno@clisp.org>
4905 * modules/openat (configure.ac): Remove unneeded witness.
4907 2009-09-06 Bruno Haible <bruno@clisp.org>
4909 Set errno to ENOSYS when a function is entirely unsupported.
4910 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
4912 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
4913 * modules/chown (Depends-on): Remove errno.
4915 2009-09-06 Bruno Haible <bruno@clisp.org>
4917 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
4919 2009-09-06 Bruno Haible <bruno@clisp.org>
4921 * lib/sys_stat.in.h: Fix preprocessor command indentation.
4923 2009-09-06 Ben Pfaff <blp@gnu.org>
4924 Bruno Haible <bruno@clisp.org>
4926 Work around a glibc bug in strtok_r.
4927 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
4928 Undefine if UNDEFINE_STRTOK_R is set.
4929 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
4930 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4931 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
4932 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
4933 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
4935 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
4937 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
4940 * lib/exclude.c: Include wctype.h
4942 2009-09-06 Akim Demaille <demaille@gostai.com>
4944 bootstrap: improve error message
4945 * build-aux/bootstrap (find_tool): Upon failure, report the list
4947 Honor the initial value of the envvar.
4949 2009-09-05 Eric Blake <ebb9@byu.net>
4951 symlinkat: new module
4952 * modules/symlinkat: New file.
4953 * lib/symlinkat.c: Likewise.
4954 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
4955 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
4956 * modules/unistd (Makefile.am): Use them.
4957 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
4958 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
4959 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
4960 * MODULES.html.sh (File system functions): Mention module.
4961 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4962 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4963 * modules/symlinkat-tests: New test.
4964 * tests/test-symlinkat.c: Likewise.
4966 test-openat-safer: add more checks
4967 * tests/test-openat-safer.c (main): Check more code paths.
4969 2009-09-05 Jim Meyering <meyering@redhat.com>
4971 syntax-check: detect unnecessary inclusion of openat.h
4972 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
4974 2009-09-05 Bruno Haible <bruno@clisp.org>
4976 Support towlower, towupper.
4977 * doc/posix-functions/towlower.texi: Mention module wctype.
4978 * doc/posix-functions/towupper.texi: Likewise.
4979 * lib/wctype.in.h (towlower, towupper): New functions.
4980 * tests/test-wctype.c: Include stdio.h, stdlib.h.
4981 (ASSERT): New macro.
4983 (main): Test also towlower, towupper. Test WEOF argument.
4984 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4986 2009-09-05 Bruno Haible <bruno@clisp.org>
4988 Fix conversion behaviour when the input is invalid.
4989 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
4990 mark occurring in first pass of indirect conversion.
4991 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
4993 Found by clang's static analyzer.
4995 2009-09-05 Bruno Haible <bruno@clisp.org>
4997 * tests/test-striconveh.c (main): Test indirect conversion on platforms
4998 where direct conversion is possible.
5000 2009-09-04 Eric Blake <ebb9@byu.net>
5002 openat: fail with ENOENT on empty name
5003 * lib/openat-proc.c (openat_proc_name): Special-case the empty
5006 link-follow: fix logic bug in prior patch
5007 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
5008 reversed sense of yes and no in prior patch. Avoid confusing
5009 compilation failure with desired semantics.
5011 link-follow: accomodate mingw and cross-compilation
5012 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
5013 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
5014 cross-compilation results to -1, to make linkat easier to
5015 implement when cross-compiling. Trivially support mingw.
5016 * modules/link-follow (configure.ac): Call new name.
5017 * NEWS: Mention this.
5019 2009-09-03 Eric Blake <ebb9@byu.net>
5021 faccessat: compile replacement
5022 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
5025 fts: fix compilation error
5026 * lib/fts.c (includes): Re-add "openat.h", for
5027 openat_needs_fchdir.
5029 faccessat: new module
5030 * modules/faccessat: New file.
5031 * lib/faccessat.c: Likewise.
5032 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
5033 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5034 * modules/unistd (Makefile.am): Use it.
5035 * lib/unistd.in.h (faccessat): Declare it.
5036 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
5037 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
5038 * MODULES.html.sh (File system functions): Mention it.
5039 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
5040 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5042 euidaccess: prefer POSIX over non-standard implementation
5043 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
5044 * lib/euidaccess.c (euidaccess): Use it if available.
5046 openat: make template easier to use
5047 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
5048 AT_FUNC_F2 to be undefined.
5049 (VALIDATE_FLAG): New macro; use it to reject bad flags.
5050 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
5051 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
5052 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
5053 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
5055 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
5056 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
5057 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
5060 openat: declare in POSIX headers
5061 * NEWS: Mention this.
5062 * modules/openat (configure.ac): Declare witnesses.
5063 (Depends-on): Add fcntl-h, sys_stat, unistd.
5064 (Include): Mention correct headers.
5065 * modules/fcntl-h (Depends-on): Add link-warning.
5066 (Files): Add openat.m4.
5067 (Makefile.am): Substitute witnesses.
5068 * modules/sys_stat (Files, Makefile.am): Likewise.
5069 * modules/unistd (Files, Makefile.am): Likewise.
5070 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
5071 (gl_OPENAT_DEFAULTS): New macro.
5072 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
5073 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
5074 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
5075 (SYS_STAT_H): Remove unused variable.
5076 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
5077 * lib/fcntl--.h (includes): Remove unneeded header.
5078 * lib/openat-safer.c (includes): Likewise.
5079 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
5080 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
5081 appropriate headers.
5082 (__OPENAT_PREFIX): Delete.
5083 * lib/fcntl.in.h (openat): Provide declaration.
5084 (AT_FDCWD): Fix Solaris bug.
5085 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
5086 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
5087 * lib/fchmodat.c (includes): Adjust to find declaration.
5088 * lib/fchownat.c (includes): Likewise.
5089 * lib/mkdirat.c (includes): Likewise.
5090 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
5093 2009-09-02 Eric Blake <ebb9@byu.net>
5095 errno: use consistently
5096 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
5097 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
5098 * lib/canonicalize.c (ELOOP): Likewise.
5099 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
5100 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
5101 * lib/lchown.c (EOPNOTSUPP): Likewise.
5102 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
5103 * lib/savewd.c (ESTALE): Likewise.
5104 * lib/settime.c (ENOSYS): Likewise.
5105 * lib/utimens.c (ENOSYS): Likewise.
5106 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
5107 * lib/chdir-safer.c (ELOOP): Likewise.
5108 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
5109 * modules/c-stack (Depends-on): Add errno.
5110 * modules/canonicalize (Depends-on): Likewise.
5111 * modules/chdir-safer (Depends-on): Likewise.
5112 * modules/fdopendir (Depends-on): Likewise.
5113 * modules/inet_ntop (Depends-on): Likewise.
5114 * modules/inet_pton (Depends-on): Likewise.
5115 * modules/lchown (Depends-on): Likewise.
5116 * modules/openat (Depends-on): Likewise.
5117 * modules/savewd (Depends-on): Likewise.
5118 * modules/settime (Depends-on): Likewise.
5119 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
5121 fts: avoid leaking fds
5122 * modules/fts (Depends-on): Add cloexec.
5123 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
5126 fts: make directory fds more robust
5127 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
5128 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
5130 backupfile, chdir-long, fts, savedir: make safer
5131 * lib/backupfile.c (includes): Use "dirent--.h", since
5132 numbered_backup can write to stderr during readdir.
5133 * lib/savedir.c (includes): Likewise.
5134 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
5135 emulation can write to stderr on failure.
5136 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
5137 * lib/getcwd.c: Document why opendir_safer is unused.
5138 * lib/glob.c: Likewise.
5139 * lib/scandir.c: Likewise.
5140 * lib/openat-proc.c: Likewise, for open_safer.
5141 * modules/backupfile (Depends-on): Add dirent-safer.
5142 * modules/savedir (Depends-on): Likewise.
5143 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
5144 * modules/chdir-long (Depends-on): Add openat-safer.
5146 openat-safer: new module
5147 * modules/openat-safer: New file.
5148 * lib/openat-safer.c: Likewise.
5149 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
5150 * lib/fcntl-safer.h (openat_safer): Declare.
5151 * lib/fcntl--.h (openat): Override.
5152 * MODULES.html.sh (File descriptor based I/O): Mention it.
5153 * lib/openat.h: Add double-inclusion guards.
5154 * lib/openat.c (includes): Only include "fcntl-safer.h", not
5155 "fcntl--.h", so we can implement openat.
5156 * modules/openat-safer-tests: New test.
5157 * tests/test-openat-safer.c: New file.
5159 dirent-safer: new module
5160 * modules/dirent-safer: New file.
5161 * lib/dirent--.h: Likewise.
5162 * lib/dirent-safer.h: Likewise.
5163 * lib/opendir-safer.c: Likewise.
5164 * m4/dirent-safer.m4: Likewise.
5165 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
5166 * modules/dirent-safer-tests: New test.
5167 * tests/test-dirent-safer.c: New file.
5168 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
5170 fdopendir: optimize on mingw
5171 * lib/unistd.in.h (_gl_directory_name): New prototype.
5172 * lib/fchdir.c (_gl_directory_name): Implement it.
5173 (fchdir): Use it to simplify implementation.
5174 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
5175 fchdir, when available, to avoid calling [f]chdir().
5177 fdopendir: split into its own module
5178 * lib/openat.c (fdopendir): Move...
5179 * lib/fdopendir.c: ...into new file.
5180 * modules/fdopendir: New module.
5181 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
5182 * modules/openat (Depends-on): Add fdopendir.
5183 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
5185 * modules/savedir (Depends-on): Only need fdopendir, not full
5187 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
5188 * lib/openat.h (fdopendir): Drop prototype.
5189 * lib/dirent.in.h (fdopendir): Provide prototype.
5190 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
5191 * modules/dirent (Makefile.am): Substitute them.
5192 * MODULES.html.sh (File system functions): Mention it.
5193 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
5194 * modules/fdopendir-tests: New file.
5195 * tests/test-fdopendir.c: Likewise.
5197 fchdir: use more consistent macro convention
5198 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
5199 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
5200 REPLACE_FCHDIR, rather than relying on config.h macros.
5201 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
5202 inside a single make-time REPLACE_FCHDIR block, rather than using
5203 the config.h FCHDIR_REPLACEMENT.
5204 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
5205 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
5206 Manage fstat replacement.
5207 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
5209 * modules/sys_stat (Files): Add m4/unistd_h.m4.
5210 (Makefile.am): Substitute REPLACE_FCHDIR.
5211 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
5213 * lib/dup-safer.c (dup_safer): Likewise.
5214 * lib/dup2.c (rpl_dup2): Likewise.
5215 * lib/dup3.c (rpl_dup3): Likewise.
5216 * lib/open.c (rpl_open): Likewise.
5218 fchdir: simplify error handling, and support dup3
5219 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
5220 stdbool, malloc-posix, realloc-posix.
5221 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
5222 (ensure_dirs_slot): Return false on allocation failure.
5224 (_gl_register_dup): New function.
5225 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
5226 (_gl_register_fd): Close fd on allocation failure.
5227 * lib/fcntl.in.h (_gl_register_fd): Update signature.
5228 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
5230 (rpl_dup2_fchdir): Delete prototype.
5231 * lib/open.c (open): Update caller.
5232 * lib/dup2.c (dup2): Track fchdir metadata.
5233 * lib/dup3.c (dup3): Likewise.
5234 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
5235 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
5237 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5239 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
5240 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
5241 don't pass arguments to AC_OUTPUT.
5243 2009-09-02 Bruno Haible <bruno@clisp.org>
5245 * modules/mkdtemp (License): Relicense under LGPLv2+.
5246 Reported by Paolo Bonzini.
5248 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5250 Replace uses of obsolete autoconf macros in Jim's modules.
5251 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
5252 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
5253 can evoke a warning from autoconf when run with -Wobsolete
5254 enabled. They were declared obsolete for good reasons (see
5255 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
5256 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
5257 should not continue using the deprecated macros.
5258 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
5259 obsolete Autoconf macros with modern counterparts.
5260 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
5261 * m4/dos.m4 (gl_AC_DOS): Likewise.
5262 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
5263 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
5264 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
5265 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
5266 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
5267 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
5268 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
5269 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
5270 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
5272 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
5273 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
5274 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
5275 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
5276 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
5277 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
5279 2009-09-01 Eric Blake <ebb9@byu.net>
5281 fchdir: fix off-by-one bug in previous patch
5282 * lib/fchdir.c (rpl_fstat): Use correct bounds.
5283 (_gl_unregister_fd): Delete useless if.
5285 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
5287 maint.mk: sort the list of syntax-check rules
5288 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
5289 easier to get a sense of progress when the rules are run sequentially
5290 and take a long time.
5292 2009-09-01 Simon Josefsson <simon@josefsson.org>
5294 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
5295 * modules/netinet_in: Likewise.
5296 * modules/sys_file: Likewise.
5297 * modules/sys_ioctl: Likewise.
5298 * modules/sys_select: Likewise.
5299 * modules/sys_socket: Likewise.
5300 * modules/sys_stat: Likewise.
5301 * modules/sys_time: Likewise.
5302 * modules/sys_times: Likewise.
5303 * modules/sys_utsname: Likewise.
5304 * modules/sys_wait: Likewise.
5306 2009-09-01 Jim Meyering <meyering@redhat.com>
5308 fts: help ensure that return values are not ignored
5309 * lib/fts_.h (__GNUC_PREREQ): Define.
5310 (__attribute_warn_unused_result__): Define.
5311 (fts_children, fts_close, fts_open, fts_read): Declare with
5312 __attribute_warn_unused_result__.
5314 fts: fts_close now fails also when closing a dir file descriptor fails
5315 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
5316 and propagate to caller, along with errno.
5318 announce-gen: correct formatting in --help output
5319 * build-aux/announce-gen (usage): Move the one-line description in
5320 --help output "up", to where it belongs, just after Usage:.
5322 2009-08-31 Eric Blake <ebb9@byu.net>
5324 fchdir: port to mingw
5325 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
5326 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
5327 opened, then use a substitute.
5328 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
5330 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
5331 (_gl_register_fd): No need to check stat if open already filters
5333 (fchdir): Fix error condition to match POSIX.
5334 * modules/fchdir (Depends-on): Add sys_stat.
5335 * doc/posix-functions/open.texi (open): Document the limitation.
5336 * modules/fchdir-tests: New file.
5337 * tests/test-fchdir.c: Likewise.
5339 canonicalize: allow cross-testing from cygwin to mingw
5340 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
5341 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
5342 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
5344 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
5345 target does not support symlinks.
5346 * tests/test-canonicalize-lgpl.sh: Likewise.
5348 chown: avoid compilation warning on mingw
5349 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
5350 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
5352 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
5353 * modules/chown (Depends-on): Add errno.
5355 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
5357 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
5360 2009-08-31 Jim Meyering <meyering@redhat.com>
5362 canonicalize: remove useless initialization
5363 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
5364 initialization of local, "end".
5366 2009-08-30 Bruno Haible <bruno@clisp.org>
5368 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
5369 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
5372 2009-08-30 Bruno Haible <bruno@clisp.org>
5374 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
5375 /usr/xpg4/bin/tr when it exists.
5376 * tests/test-pipe-filter-gi1.sh: Likewise.
5378 2009-08-30 Bruno Haible <bruno@clisp.org>
5380 Work around deficient /usr/bin/id program on Solaris.
5381 * tests/test-file-has-acl.sh (ID): New variable.
5382 * tests/test-set-mode-acl.sh (ID): Likewise.
5383 * tests/test-copy-acl.sh (ID): Likewise.
5384 * tests/test-copy-file.sh (ID): Likewise.
5386 2009-08-30 Bruno Haible <bruno@clisp.org>
5388 New module 'xstriconveh'.
5389 * lib/xstriconveh.h: New file.
5390 * lib/xstriconveh.c: New file.
5391 * modules/xstriconveh: New file.
5393 2009-08-30 Bruno Haible <bruno@clisp.org>
5395 Make it easier to use mem_cd_iconveh.
5396 * lib/striconveh.h (iconveh_t): New type.
5397 (iconveh_open, iconveh_close): New declarations.
5398 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
5399 with a single 'const iconveh_t *' argument.
5400 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
5401 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
5402 with a single 'const iconveh_t *' argument.
5403 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
5404 * tests/test-striconveh.c (main): Update.
5405 * NEWS: Mention the change.
5407 2009-08-30 Bruno Haible <bruno@clisp.org>
5409 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
5412 2009-08-30 Bruno Haible <bruno@clisp.org>
5414 Work around iconv_open problem on Solaris.
5415 * lib/iconv_open-solaris.gperf: New file.
5416 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
5417 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
5418 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
5419 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
5420 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
5421 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
5423 2009-08-29 Jim Meyering <meyering@redhat.com>
5425 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
5426 * top/maint.mk (cvs-check): Remove target; it was just an alias
5427 to the better-named vc-diff-check.
5428 (maintainer-distcheck): Remove rule. It was used only from
5429 the (alpha/beta/major) target, and all of its commands but one
5430 were coreutils-specific.
5431 (vc-dist): Remove rule.
5432 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
5433 Run vc-diff-check, not vc-dist.
5434 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
5436 2009-08-27 Bruno Haible <bruno@clisp.org>
5438 * tests/test-bitrotate.c (main): Remove test that uses a shift count
5441 2009-08-27 Bruno Haible <bruno@clisp.org>
5443 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
5445 * doc/func.texi: Document the SunPRO C bug.
5447 2009-08-27 Bruno Haible <bruno@clisp.org>
5449 Fix link error on Solaris.
5450 * tests/test-parse-duration.c (xstrdup): Remove function.
5452 2009-08-26 Pádraig Brady <P@draigbrady.com>
5454 ignore-value: handle pointer types, too
5455 * lib/ignore-value.h (__attribute__): Remove definition.
5456 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
5457 of a more concise and more-often effective "(void) i" statement.
5458 (ignore_ptr): New function to suppress warnings from functions that
5459 return pointers, and to make it explicit that one function doesn't
5462 2009-08-25 Bruno Haible <bruno@clisp.org>
5464 dup2: work around a Linux bug.
5465 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
5466 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
5467 * doc/posix-functions/dup2.texi: Mention the Linux bug.
5468 Reported by Simon Josefsson.
5470 2009-08-25 Jim Meyering <meyering@redhat.com>
5472 libguestfs uses gnulib
5473 * users.txt: Add libguestfs.
5475 2009-08-24 Eric Blake <ebb9@byu.net>
5477 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
5478 * lib/pipe2.c (includes): Add binary-io.h.
5479 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
5481 2009-08-24 Bruno Haible <bruno@clisp.org>
5483 Tolerate declared but missing accept4 syscall.
5484 * lib/accept4.c (accept4): Invoke original accept4 function first, if
5486 * lib/sys_socket.in.h (accept4): If the function is already present,
5488 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
5489 * modules/accept4 (Makefile.am): Compile accept4.c always.
5490 Reported by Paolo Bonzini and Eric Blake.
5492 2009-08-23 Bruno Haible <bruno@clisp.org>
5494 New module 'accept4'.
5495 * lib/sys_socket.in.h (accept4): New declaration.
5496 * lib/accept4.c: New file.
5497 * m4/accept4.m4: New file.
5498 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
5499 GNULIB_ACCEPT4, HAVE_ACCEPT4.
5500 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
5502 * modules/accept4: New file.
5503 * doc/glibc-functions/accept4.texi: Mention the new module.
5505 2009-08-24 Jim Meyering <meyering@redhat.com>
5507 progname: also set global program_invocation_name, when possible
5508 Before this change, a libtool-enabled program that calls glibc's
5509 error function would report the program name as
5510 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
5511 * modules/progname (configure.ac): Check for a declaration of
5512 program_invocation_name.
5513 * lib/progname.c: Include <errno.h>.
5514 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
5515 Set program_invocation_name.
5517 2009-08-23 Bruno Haible <bruno@clisp.org>
5519 * lib/dup3.c: Include <string.h>.
5521 2009-08-23 Bruno Haible <bruno@clisp.org>
5523 * lib/dup3.c (dup3): Test only once whether the system actually exists.
5524 * lib/pipe2.c (pipe2): Likewise.
5525 Suggested by Eric Blake.
5527 2009-08-23 Bruno Haible <bruno@clisp.org>
5529 Tolerate declared but missing dup3 syscall.
5530 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
5531 * lib/unistd.in.h (dup3): If the function is already present,
5533 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
5534 * modules/dup3 (Makefile.am): Compile dup3.c always.
5535 Reported by Paolo Bonzini.
5537 2009-08-23 Bruno Haible <bruno@clisp.org>
5539 Tolerate declared but missing pipe2 syscall.
5540 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
5542 * lib/unistd.in.h (pipe2): If the function is already present,
5544 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
5545 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
5546 Reported by Paolo Bonzini.
5548 2009-08-23 Bruno Haible <bruno@clisp.org>
5550 * lib/pipe2.c (pipe2): Move #ifs inside function.
5552 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
5554 quotearg: document limitations of quote_these_too
5555 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
5556 those limitations are created.
5557 * lib/quotearg.h (set_char_quoting): Document that digits and
5558 letters that are special after backslash are not permitted.
5559 (quotearg_char): Cross-reference set_char_quoting documentation.
5561 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
5563 quotearg: implement custom_quoting_style
5564 * lib/quotearg.c: (struct quoting_options): Add left_quote and
5566 (set_custom_quoting): New public function.
5567 (quotearg_buffer_restyled): Add left_quote and right_quote
5568 arguments, handle them very much like locale quoting, and update
5570 (quotearg_n_custom): New public function.
5571 (quotearg_n_custom_mem): New public function.
5572 (quotearg_custom): New public function.
5573 (quotearg_custom_mem): New public function.
5574 * lib/quotearg.h: Prototype and document new public functions.
5575 (enum quoting_style): For escape_quoting_style and
5576 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
5577 ignored even though they're otherwise like c_quoting_style.
5578 Add custom_quoting_style member and document with comparison to
5579 clocale_quoting_style.
5580 * tests/test-quotearg.c (custom_quotes): New array.
5581 (custom_results): New array.
5582 (main): Extend to test custom quoting.
5584 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
5586 quotearg: fix right quote escaping when it's in quote_these_too
5587 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
5588 quote, be sure to prepend only one backslash.
5589 * tests/test-quotearg.c (use_quote_double_quotes): New function.
5592 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
5594 quotearg-tests: test escaping of embedded locale quotes
5595 * tests/test-quotearg.c (struct result_strings): Add member for
5597 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
5598 (inputs): Add new input.
5599 (results_g): Add expected results.
5600 (flag_results): Likewise.
5601 (locale_results): Likewise.
5602 (compare_strings): Check those.
5604 2009-08-23 Bruno Haible <bruno@clisp.org>
5606 Tests for module 'dup3'.
5607 * modules/dup3-tests: New file.
5608 * tests/test-dup3.c: New file.
5611 * lib/unistd.in.h (dup3): New declaration.
5612 * lib/dup3.c: New file.
5613 * m4/dup3.m4: New file.
5614 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
5616 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
5617 * modules/dup3: New file.
5618 * doc/glibc-functions/dup3.texi: Mention the new module.
5620 2009-08-23 Bruno Haible <bruno@clisp.org>
5622 Tweak the dup2 test.
5623 * tests/test-dup2.c (main): Create the test file empty. Verify that an
5624 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
5625 the test file is still empty. Fix argument order of lseek.
5627 2009-08-23 Bruno Haible <bruno@clisp.org>
5629 Avoid test link errors when the modules getopt-gnu, gettext are used.
5630 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
5631 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5633 2009-08-23 Bruno Haible <bruno@clisp.org>
5635 Fix getdtablesize() on mingw.
5636 * lib/getdtablesize.c (getdtablesize): Implement differently.
5637 * lib/unistd.in.h (getdtablesize): Improve comment.
5639 2009-08-23 Bruno Haible <bruno@clisp.org>
5641 New module 'mkostemp'.
5642 Based on Ulrich Drepper's 2007-08-10 change in glibc.
5643 * lib/stdlib.in.h (mksotemp): New declaration.
5644 * lib/mkostemp.c: New file, from glibc with modifications.
5645 * lib/tempname.h (GT_FILE): Remove outdated comment.
5646 (gen_tempname): Add flags argument.
5647 * lib/tempname.c (__GT_BIGFILE): Remove macro.
5648 (__GT_FILE): Map to 1.
5649 (small_open, large_open): Remove macros.
5650 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
5651 * lib/mkstemp.c (mkstemp): Update.
5652 * lib/mkdtemp.c (mkdtemp): Likewise.
5653 * m4/mkostemp.m4: New file.
5654 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
5656 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
5658 * modules/mkostemp: New file, based on modules/mkstemp.
5659 * doc/glibc-functions/mkostemp.texi: Mention the new module.
5660 * NEWS: Mention the change.
5662 2009-08-23 Bruno Haible <bruno@clisp.org>
5664 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
5665 Reported by Eric Blake.
5667 2009-08-23 Bruno Haible <bruno@clisp.org>
5669 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
5670 Reported by Eric Blake.
5672 2009-08-23 Bruno Haible <bruno@clisp.org>
5674 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
5675 * modules/pipe2 (Depends-on): Likewise.
5677 2009-08-23 Eric Blake <ebb9@byu.net>
5679 fcntl-h: add O_TTY_INIT support
5680 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
5681 * tests/test-fcntl-h.c (o): Test it.
5682 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5684 fcntl-h: rename from fcntl, in preparation for fcntl(2)
5685 * modules/fcntl: Move <fcntl.h> header replacement...
5686 * modules/fcntl-h: ...to new name, so as not to collide with
5687 like-named function.
5688 * tests/test-fcntl.c: Rename...
5689 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
5690 * modules/fcntl-tests: Rename...
5691 * modules/fcntl-h-tests: ...to this. Update test file name.
5692 * modules/chdir-long (Depends-on): Update clients.
5693 * modules/chdir-safer (Depends-on): Likewise.
5694 * modules/fcntl-safer (Depends-on): Likewise.
5695 * modules/fts (Depends-on): Likewise.
5696 * modules/mkancesdirs (Depends-on): Likewise.
5697 * modules/mkdir-p (Depends-on): Likewise.
5698 * modules/open (Depends-on): Likewise.
5699 * modules/savewd (Depends-on): Likewise.
5700 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
5701 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
5703 2009-08-22 Bruno Haible <bruno@clisp.org>
5705 * modules/binary-io (License): Relicense under LGPL.
5706 * modules/pipe2 (License): Likewise.
5708 2009-08-22 Bruno Haible <bruno@clisp.org>
5710 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
5712 * lib/pipe-filter-gi.c (filter_init): Likewise.
5713 Reported by Eric Blake.
5715 2009-08-22 Bruno Haible <bruno@clisp.org>
5717 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
5718 * modules/pipe (Depends-on): Add pipe2.
5720 2009-08-22 Bruno Haible <bruno@clisp.org>
5722 Tests for module 'pipe2'.
5723 * modules/pipe2-tests: New file.
5724 * tests/test-pipe2.c: New file.
5727 * lib/unistd.in.h (pipe2): New declaration.
5728 * lib/pipe2.c: New file.
5729 * m4/pipe2.m4: New file.
5730 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
5732 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
5733 * modules/pipe2: New file.
5734 * doc/glibc-functions/pipe2.texi: Mention the new module.
5736 2009-08-22 Bruno Haible <bruno@clisp.org>
5738 Reference some new glibc functions.
5739 * doc/glibc-functions/accept4.texi: New file.
5740 * doc/glibc-functions/dup3.texi: New file.
5741 * doc/glibc-functions/mkostemp.texi: New file.
5742 * doc/glibc-functions/pipe2.texi: New file.
5743 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
5744 (Glibc sys/socket.h): Refer to accept4.
5745 (Glibc unistd.h): Refer to dup3, pipe2.
5746 Reported by Eric Blake.
5748 2009-08-22 Jim Meyering <meyering@redhat.com>
5749 Bruno Haible <bruno@clisp.org>
5751 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
5752 This makes it so packages using automake-1.11's silent-rules option
5753 can print e.g., a single "GEN configmake.h" line, rather than
5754 the 30+ statements that perform the job. If you want to see the
5755 actual commands, you can still run "make V=1".
5756 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
5757 so that make output is abbreviated when those variables are defined
5759 * modules/argz: Likewise.
5760 * modules/arpa_inet: Likewise.
5761 * modules/byteswap: Likewise.
5762 * modules/configmake: Likewise.
5763 * modules/dirent: Likewise.
5764 * modules/errno: Likewise.
5765 * modules/fcntl: Likewise.
5766 * modules/float: Likewise.
5767 * modules/fnmatch: Likewise.
5768 * modules/getopt-posix: Likewise.
5769 * modules/glob: Likewise.
5770 * modules/iconv_open: Likewise.
5771 * modules/inttypes: Likewise.
5772 * modules/localcharset: Likewise.
5773 * modules/locale: Likewise.
5774 * modules/math: Likewise.
5775 * modules/netdb: Likewise.
5776 * modules/netinet_in: Likewise.
5777 * modules/poll: Likewise.
5778 * modules/posix_spawnp-tests: Likewise.
5779 * modules/sched: Likewise.
5780 * modules/search: Likewise.
5781 * modules/selinux-h: Likewise.
5782 * modules/signal: Likewise.
5783 * modules/spawn: Likewise.
5784 * modules/stdarg: Likewise.
5785 * modules/stdbool: Likewise.
5786 * modules/stddef: Likewise.
5787 * modules/stdint: Likewise.
5788 * modules/stdio: Likewise.
5789 * modules/stdlib: Likewise.
5790 * modules/string: Likewise.
5791 * modules/strings: Likewise.
5792 * modules/sys_file: Likewise.
5793 * modules/sys_ioctl: Likewise.
5794 * modules/sys_select: Likewise.
5795 * modules/sys_socket: Likewise.
5796 * modules/sys_stat: Likewise.
5797 * modules/sys_time: Likewise.
5798 * modules/sys_times: Likewise.
5799 * modules/sys_utsname: Likewise.
5800 * modules/sys_wait: Likewise.
5801 * modules/sysexits: Likewise.
5802 * modules/time: Likewise.
5803 * modules/unistd: Likewise.
5804 * modules/wchar: Likewise.
5805 * modules/wctype: Likewise.
5807 2009-08-22 Jim Meyering <meyering@redhat.com>
5809 announce-gen: detect write failure
5810 * build-aux/announce-gen: Add Coda at end.
5811 Remove equivalent-but-more-verbose block at top.
5813 2009-08-19 Akim Demaille <demaille@gostai.com>
5815 bootstrap: --help to stdout.
5816 * bootstrap (usage): Don't send --help to stderr.
5817 Use a here doc instead of a long string.
5819 2009-08-21 Eric Blake <ebb9@byu.net>
5821 test-popen-safer: split from test-popen
5822 * tests/test-popen.c (main): Move...
5823 * tests/test-popen.h: ...into new file.
5824 * tests/test-popen-safer2.c: New file.
5825 * modules/popen-tests (Files): Add test-popen.h.
5826 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
5827 Suggested by Bruno Haible.
5829 test-fcntl-safer: split from test-open
5830 * tests/test-open.c (main): Move...
5831 * tests/test-open.h: ...into new file.
5832 * tests/test-fcntl-safer.c: New file.
5833 * modules/open-tests (Files): Add test-open.h.
5834 * modules/fcntl-safer-tests: New file.
5835 Suggested by Bruno Haible.
5837 test-fopen-safer: split from test-fopen
5838 * tests/test-fopen.c (main): Move...
5839 * tests/test-fopen.h: ...into new file.
5840 * tests/test-fopen-safer.c: New file.
5841 * modules/fopen-tests (Files): Add test-fopen.h.
5842 * modules/fopen-safer-tests: New file.
5843 Suggested by Bruno Haible.
5845 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
5847 popen-safer: test O_CLOEXEC at run-time.
5848 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
5850 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
5852 fcntl: move more flags to the header
5853 * lib/cloexec.c: Do not define FD_CLOEXEC here.
5854 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
5855 * lib/fcntl.in.h: Do both things here.
5857 2009-08-21 Jim Meyering <meyering@redhat.com>
5859 consistently remove $@-t before redirecting to it
5860 * modules/argz: Remove $@-t and $@ before redirecting to the former.
5861 * modules/alloca-opt: Likewise.
5862 * modules/byteswap: Likewise.
5863 * modules/fnmatch: Likewise.
5864 * modules/getopt-posix: Likewise.
5865 * modules/glob: Likewise.
5866 * modules/poll: Likewise.
5867 * modules/posix_spawnp-tests: Likewise.
5868 * modules/sys_socket: Likewise.
5869 * modules/sysexits: Likewise.
5871 2009-08-21 Eric Blake <ebb9@byu.net>
5873 popen: simplify access to original popen
5874 * lib/popen.c (rpl_popen): No need to worry about popen being a
5876 Reported by Bruno Haible.
5878 2009-08-20 Eric Blake <ebb9@byu.net>
5880 build: avoid some compiler warnings
5881 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
5882 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
5884 (new_exclude_segment, excluded_file_pattern_p)
5885 (excluded_file_name_p): Reduce scope.
5886 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
5887 old-style declaration.
5889 2009-08-20 Simon Josefsson <simon@josefsson.org>
5891 * tests/test-exclude1.sh: Handle Windows EOL.
5892 * tests/test-exclude2.sh: Likewise.
5893 * tests/test-exclude3.sh: Likewise.
5894 * tests/test-exclude4.sh: Likewise.
5895 * tests/test-exclude5.sh: Likewise.
5896 * tests/test-exclude6.sh: Likewise.
5897 * tests/test-exclude7.sh: Likewise.
5899 2009-08-19 Akim Demaille <demaille@gostai.com>
5901 bootstrap: find sha1sum when named gsha1sum.
5902 * bootstrap (find_tool): New.
5906 2009-08-20 Jim Meyering <meyering@redhat.com>
5908 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
5909 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
5910 expression that converts "." in a file name to "\." in the resulting
5911 regexp. Start with a dummy statement, so that prior shell variable
5912 definitions are expanded portably. Reported by Simon Josefsson.
5914 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
5916 Fix polling for writeability of a screen buffer.
5917 * lib/poll.c: Distinguish input and screen buffers for the
5918 Win32 implementation.
5919 * lib/select.c: Likewise.
5921 2009-08-19 Eric Blake <ebb9@byu.net>
5923 popen-safer: prevent popen from clobbering std descriptors
5924 * modules/popen-safer: New file.
5925 * lib/popen-safer.c: Likewise.
5926 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
5927 * lib/stdio--.h (popen): Provide override.
5928 * lib/stdio-safer.h (popen_safer): Provide declaration.
5929 * tests/test-popen.c (includes): Partially test this.
5930 * modules/popen-safer-tests: New file, for more tests.
5931 * tests/test-popen-safer.c: Likewise.
5932 * MODULES.html.sh (file stream based Input/Output): Mention it.
5934 tests: test some of the *-safer modules
5935 * modules/fopen-safer (Depends-on): Add fopen.
5936 * modules/fcntl-safer (Depends-on): Add fcntl.
5937 * modules/stdlib-safer (Depends-on): Add stdlib.
5938 (configure.ac): Set indicator.
5939 * modules/unistd-safer (configure.ac): Likewise.
5940 * modules/tmpfile-safer (configure.ac): Likewise.
5941 (Depends-on): Add tmpfile.
5942 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
5944 * tests/test-fopen.c (includes): Test safer versions when they are
5946 * tests/test-open.c (includes): Likewise.
5948 popen: fix cygwin 1.5 bug when stdin closed
5949 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
5950 * modules/popen: New file.
5951 * modules/popen-tests: Likewise.
5952 * tests/test-popen.c: Likewise.
5953 * m4/popen.m4: Likewise.
5954 * lib/popen.c: Likewise.
5955 * lib/stdio.in.h (popen): New declaration.
5956 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
5957 * modules/stdio (Makefile.am): Likewise.
5958 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
5960 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
5962 maint.mk: give full control over update-copyright exclusions
5963 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
5964 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
5965 (update-copyright): Don't force inclusion of top-level
5966 ChangeLog. Don't force exclusion of all COPYING files, but make
5967 them the default exclusion instead.
5969 2009-08-16 Bruno Haible <bruno@clisp.org>
5971 Fix test failures on Solaris 10.
5972 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
5973 tests when Solaris iconv() is used.
5974 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
5975 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
5976 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
5977 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
5978 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
5980 2009-08-16 Bruno Haible <bruno@clisp.org>
5982 Fix test failures on Solaris 10.
5983 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
5984 'tr' program and pass it as first argument.
5985 * tests/test-pipe-filter-gi1.sh: Likewise.
5986 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
5987 program as first argument.
5988 * tests/test-pipe-filter-gi1.c (main): Likewise.
5990 2009-08-16 Eric Blake <ebb9@byu.net>
5992 fpurge: fix previous commits
5993 * modules/fpurge (Makefile.am): Make replacement conditional,
5994 partially reverting 2007-04-29 change; missed in previous
5996 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
5999 2009-08-16 Bruno Haible <bruno@clisp.org>
6001 Clarify fpurge's effect on the file position.
6002 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
6003 * tests/test-fpurge.c (main): Make a second pass for checking the file
6006 2009-08-16 Bruno Haible <bruno@clisp.org>
6008 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
6009 declaration of fpurge is missing.
6010 * tests/test-fpurge.c (main): Check that the file has not more contents
6011 than expected. Close the file before removing it.
6013 2009-08-15 Eric Blake <ebb9@byu.net>
6015 fpurge: don't wrap working cygwin implementation
6016 * lib/fpurge.c (fpurge): Fix comment typo.
6017 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
6018 1.7 to avoid replacement.
6019 * tests/test-fpurge.c (main): Enhance test.
6021 2009-08-15 Eric Blake <ebb9@byu.net>
6022 and Jim Meyering <meyering@redhat.com>
6024 test-update-copyright: skip if perl is insufficient
6025 * tests/test-update-copyright.sh: Failure to run maintainer tool
6026 should not cause testsuite failure on cygwin 1.5.
6028 2009-08-14 Eric Blake <ebb9@byu.net>
6030 doc: mention more functions added in cygwin 1.7.0
6031 * doc/posix-headers/limits.texi (limits.h): Update for recent
6033 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
6034 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6035 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
6036 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
6037 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
6039 2009-08-14 Eric Blake <ebb9@byu.net>
6041 maint.mk: simplify update-copyright rule
6042 * top/maint.mk (update-copyright-local): Delete, and document how
6043 to do it in cfg.mk instead.
6044 (update-copyright-exclude-regexp): Delete, and document how to do
6045 it in .x-update-copyright instead.
6046 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
6049 2009-08-14 Bruno Haible <bruno@clisp.org>
6051 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
6053 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
6055 maint.mk: support update-copyright-env
6056 * top/maint.mk (update-copyright-env): Define place-holder.
6057 (update-copyright): Expand $(update-copyright-env) before
6058 invoking update-copyright.
6060 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
6062 update-copyright: implement forced reformatting
6063 * build-aux/update-copyright: Implement and document
6064 UPDATE_COPYRIGHT_FORCE.
6065 * tests/test-update-copyright.sh: Test it.
6067 2009-08-14 Eric Blake <ebb9@byu.net>
6068 and Bruno Haible <bruno@clisp.org>
6070 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
6071 * tests/test-locale.c: Revert previous patch related to NULL.
6072 * tests/test-stdio.c: Likewise.
6073 * tests/test-stdlib.c: Likewise.
6074 * tests/test-string.c: Likewise.
6075 * tests/test-unistd.c: Likewise.
6076 * modules/time-tests (Depends-on): Add verify.
6077 * modules/wchar-tests (Depends-on): Likewise.
6078 * tests/test-time.c: Test for NULL compliance.
6079 * tests/test-wchar.c: Likewise.
6080 * modules/locale (Depends-on): Add stddef.
6081 * modules/stdio (Depends-on): Likewise.
6082 * modules/stdlib (Depends-on): Likewise.
6083 * modules/string (Depends-on): Likewise.
6084 * modules/time (Depends-on): Likewise.
6085 * modules/unistd (Depends-on): Likewise.
6086 * modules/wchar (Depends-on): Likewise.
6087 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
6088 * lib/stdlib.in.h (includes): Likewise.
6089 * lib/string.in.h (includes): Likewise.
6090 * lib/time.in.h (includes): Likewise.
6091 * lib/unistd.in.h (includes): Likewise.
6092 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
6094 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6095 * m4/stddef_h.m4: New file.
6096 * modules/stddef: Likewise.
6097 * lib/stddef.in.h: Likewise.
6098 * modules/stddef-tests: Likewise.
6099 * tests/test-stddef.c: Likewise.
6100 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
6101 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
6102 * doc/posix-headers/locale.texi (locale.h): Likewise.
6103 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
6104 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
6105 * doc/posix-headers/string.texi (string.h): Likewise.
6106 * doc/posix-headers/time.texi (time.h): Likewise.
6107 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
6108 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
6110 2009-08-14 Eric Blake <ebb9@byu.net>
6112 doc: improve git diff of texinfo files
6113 * .gitattributes: Add rule for *.texi files, with hint on how to
6115 Copied from m4, and based on a report by Bruno Haible.
6117 2009-08-14 Bruno Haible <bruno@clisp.org>
6119 Disable multithread support by default on Cygwin 1.5.x for real.
6120 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
6122 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
6124 update-copyright: much ado about intervals
6125 * build-aux/update-copyright: Implement and document
6126 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
6127 of copyright year intervals.
6128 Also, document UPDATE_COPYRIGHT_YEAR.
6129 * tests/test-update-copyright.sh: Test it.
6131 update-copyright: convert 2-digit to 4-digit years
6132 * build-aux/update-copyright: Implement and document.
6133 * tests/test-update-copyright.sh: Update.
6135 2009-08-14 Jim Meyering <meyering@redhat.com>
6137 test-exclude: avoid coreutils "make check" failure
6138 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
6139 just as in test-argmatch.c.
6141 2009-08-13 Eric Blake <ebb9@byu.net>
6143 test-dup2: fix bad assumption
6144 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
6145 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
6147 test-version-etc: fix CRLF portability issue
6148 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
6150 * tests/test-argp-version-etc-1.sh: Likewise.
6152 getopt: update client modules
6153 * modules/argp (Depends-on): Use getopt-gnu.
6154 * modules/git-merge-changelog (Depends-on): Likewise.
6155 * modules/long-options (Depends-on): Likewise.
6156 * modules/xstrtol (Depends-on): Likewise.
6158 2009-08-13 Simon Josefsson <simon@josefsson.org>
6160 * tests/test-version-etc.sh: Don't fail on different
6161 project/version. Don't fail on CRLF differences. Rewrite to use
6162 multiple -e instead of multiple sed forks, suggested by Eric Blake
6164 * tests/test-argp-version-etc-1.sh: Likewise.
6166 2009-08-13 Simon Josefsson <simon@josefsson.org>
6168 * tests/test-version-etc.sh: Don't fail on different
6171 2009-08-12 Bruno Haible <bruno@clisp.org>
6173 Tests for modules 'getopt-posix', 'getopt-gnu'.
6174 * modules/getopt-posix-tests: New file.
6175 * tests/test-getopt.c: New file.
6176 * tests/test-getopt.h: New file.
6177 * tests/test-getopt_long.h: New file.
6179 New modules 'getopt-posix', 'getopt-gnu'.
6180 * modules/getopt-gnu: New file, renamed from modules/getopt.
6181 * modules/getopt-posix: New file.
6182 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
6183 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
6184 (gl_GETOPT): Remove macro.
6185 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
6186 Disable the test against BSD systems that declare optreset. Test
6187 against mingw bug. Test against lack of support of optional arguments
6189 * doc/glibc-headers/getopt.texi: Update module name and list of
6191 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
6192 'getopt-gnu' and more portability problems.
6193 * NEWS: Mention the changes.
6195 2009-08-12 Bruno Haible <bruno@clisp.org>
6197 Ensure that optarg etc. get declared by <unistd.h>.
6198 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
6199 AC_USE_SYSTEM_EXTENSIONS.
6200 * modules/getopt (Depends-on): Add 'extensions'.
6202 2009-08-12 Bruno Haible <bruno@clisp.org>
6204 Avoid test link errors.
6205 * modules/pipe-filter-ii-tests (Makefile.am): Define
6206 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
6207 * modules/pipe-filter-gi-tests (Makefile.am): Define
6208 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
6209 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6211 2009-08-12 Bruno Haible <bruno@clisp.org>
6213 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
6214 gl_GETOPT_SUBSTITUTE before.
6215 (gl_GETOPT): Use it.
6216 * m4/argp.m4 (gl_ARGP): Update.
6217 Reported by Sergey Poznyakoff.
6219 * m4/getopt.m4: Reorder macros.
6220 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
6221 (gl_GETOPT_SUBSTITUTE): Remove macro.
6223 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
6225 Minor improvement in gitlog-to-changelog
6227 * build-aux/gitlog-to-changelog: New option `--format' makes
6228 output format string configurable.
6230 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
6232 Optimize exclude: use hash tables for non-wildcard patterns.
6234 * lib/exclude.c: Include hash.h and mbuiter.h
6235 (struct exclude_pattern, exclude_segment): New data types.
6236 (struct exclude): Rewrite.
6237 (fnmatch_pattern_has_wildcards): New function.
6238 (new_exclude_segment, free_exclude_segment): New functions.
6239 (excluded_file_pattern_p, excluded_file_name_p): New functions.
6240 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
6241 * lib/exclude.h (is_fnmatch_pattern): New prototype.
6242 * modules/exclude: Depend on hash and mbuiter.
6244 * modules/exclude-tests: New file.
6245 * tests/test-exclude.c: New file.
6246 * tests/test-exclude1.sh: New file.
6247 * tests/test-exclude2.sh: New file.
6248 * tests/test-exclude3.sh: New file.
6249 * tests/test-exclude4.sh: New file.
6250 * tests/test-exclude5.sh: New file.
6251 * tests/test-exclude6.sh: New file.
6252 * tests/test-exclude7.sh: New file.
6254 2009-08-12 Bruno Haible <bruno@clisp.org>
6256 Ensure that getopt() gets declared by <unistd.h>.
6257 * lib/unistd.in.h: Conditionally include getopt.h.
6258 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
6259 Set GNULIB_UNISTD_H_GETOPT.
6260 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6261 GNULIB_UNISTD_H_GETOPT.
6262 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
6264 2009-08-12 Bruno Haible <bruno@clisp.org>
6267 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
6268 gl_replace_getopt instead of GETOPT_H.
6270 2009-08-12 Bruno Haible <bruno@clisp.org>
6272 * m4/getopt.m4: Add comments.
6274 2009-08-12 Bruno Haible <bruno@clisp.org>
6276 Disable multithread support by default on Cygwin 1.5.x.
6277 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
6278 set gl_use_threads=no if not specified otherwise.
6280 2009-08-11 Bruno Haible <bruno@clisp.org>
6282 Avoid compilation error on NetBSD 5.0.
6283 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
6284 * tests/test-stdio.c: Likewise.
6285 * tests/test-stdlib.c: Likewise.
6286 * tests/test-string.c: Likewise.
6287 * tests/test-unistd.c: Likewise.
6288 Reported by Greg Troxel <gdt@ir.bbn.com>
6289 at <https://savannah.gnu.org/support/?106973>.
6291 2009-08-11 Bruno Haible <bruno@clisp.org>
6293 * modules/dup2-tests (Depends-on): Remove close.
6295 Undo 2009-07-19 commit.
6296 * modules/acl-tests (Depends-on): Remove close.
6297 * modules/binary-io-tests (Depends-on): Likewise.
6298 * modules/closein-tests (Depends-on): Likewise.
6299 * modules/flock-tests (Depends-on): Likewise.
6300 * modules/fsync-tests (Depends-on): Likewise.
6301 * modules/lseek-tests (Depends-on): Likewise.
6302 * modules/pipe-tests (Depends-on): Likewise.
6303 * modules/posix_spawn-tests (Depends-on): Likewise.
6304 * modules/posix_spawnp-tests (Depends-on): Likewise.
6305 * modules/stat-time-tests (Depends-on): Likewise.
6306 * modules/yesno-tests (Depends-on): Likewise.
6308 2009-08-10 Bruno Haible <bruno@clisp.org>
6310 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
6312 2009-08-10 Bruno Haible <bruno@clisp.org>
6315 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
6317 2009-08-10 Bruno Haible <bruno@clisp.org>
6319 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
6320 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
6321 not only the first time.
6322 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
6323 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
6324 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
6325 is 1, not only the the first time.
6327 2009-08-10 Bruno Haible <bruno@clisp.org>
6329 Make it possible to use module 'gethostname' without module 'close'.
6330 * lib/unistd.in.h (close): Evoke a link error only if
6331 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
6332 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6333 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6334 * modules/unistd (Makefile.am): Substitute
6335 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6336 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
6337 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
6338 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6339 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6340 * modules/sys_ioctl (Makefile.am): Substitute
6341 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6342 * modules/socket (configure.ac): On native Windows, set
6343 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
6344 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
6345 Reported by Sam Steingold <sds@gnu.org>.
6347 2009-08-10 Bruno Haible <bruno@clisp.org>
6349 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
6350 * modules/ioctl (configure.ac): Likewise.
6352 2009-08-10 Bruno Haible <bruno@clisp.org>
6354 Avoid collision between gnulib wrapper and libintl wrapper.
6355 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
6356 already defined in intl/printf.c.
6357 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
6358 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
6360 2009-08-09 Bruno Haible <bruno@clisp.org>
6362 Make <sys/select.h> really self-contained, also on Solaris 10.
6363 * lib/sys_select.in.h: Include <string.h>.
6364 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
6366 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
6367 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
6368 Reported by Jim Meyering.
6370 2009-08-09 Bruno Haible <bruno@clisp.org>
6372 Avoid warnings from 'aclocal' that are due to a use of macro name
6373 AM_XGETTEXT_OPTION that is not defined in automake.
6374 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
6376 * modules/error (configure.ac): Likewise.
6377 * modules/propername (configure.ac): Likewise.
6378 * modules/vasprintf (configure.ac): Likewise.
6379 * modules/verror (configure.ac): Likewise.
6380 * modules/xprintf (configure.ac): Likewise.
6381 * modules/xvasprintf (configure.ac): Likewise.
6383 2009-08-08 Bruno Haible <bruno@clisp.org>
6385 Avoid compilation error in C++ mode.
6386 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
6387 Reported by Sam Steingold <sds@gnu.org>.
6389 2009-08-08 Bruno Haible <bruno@clisp.org>
6391 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
6392 for the various Unix platforms.
6393 * doc/posix-headers/limits.texi: Update platforms list regarding
6395 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6397 2009-08-07 Jim Meyering <meyering@redhat.com>
6399 selinux-at: fix typo in a comment
6400 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
6401 Spotted by Paolo Bonzini.
6403 selinux-at: remove redundant m4 code, add documentation
6404 * modules/selinux-at (configure.ac): Remove redundant code.
6405 LIB_SELINUX is already set via the dependent module, selinux-h.
6406 (Include): Add quotes around selinux-at.h.
6407 * lib/selinux-at.h: Add documentation.
6408 Reported by Bruno Haible in
6409 http://marc.info/?l=gnulib-bug&m=124958988300749
6411 2009-08-07 Bruno Haible <bruno@clisp.org>
6413 Avoid link error on MacOS X 10.3 and 10.4.
6414 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
6416 * lib/argp-pv.c (argp_program_version): Likewise.
6417 Reported by Simon Josefsson.
6419 2009-08-07 Simon Josefsson <simon@josefsson.org>
6421 * tests/test-version-etc.sh: Use $EXEEXT.
6423 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
6425 update-copyright: update documentation to point to maint.mk
6426 * build-aux/update-copyright: Here.
6428 2009-08-06 Jim Meyering <meyering@redhat.com>
6430 maint.mk: support update-copyright-local
6431 * top/maint.mk (update-copyright-local): Define place-holder.
6432 (update-copyright): Depend on $(update-copyright-local).
6434 2009-08-06 Jim Meyering <meyering@redhat.com>
6436 selinux-at: new module
6437 Initially written for coreutils, this module will soon be
6438 used by findutils, too.
6439 * MODULES.html.sh [Misc]: Add selinux-at.
6440 * lib/selinux-at.h: New file, from coreutils.
6441 * lib/selinux-at.c: Likewise.
6442 * modules/selinux-at: Likewise.
6443 (License): Change from LGPL to GPL, since it depends
6444 on the GPL'd openat module.
6447 * README: Remove references to cogito.
6448 Remove cvs-repo-updating instructions from 2007.
6449 Don't imply that CVS is better if you have limited disk space.
6451 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6453 update-copyright: support C-style comments
6454 * build-aux/update-copyright: Implement and document.
6455 * tests/test-update-copyright.sh: Test.
6457 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6459 update-copyright: support omitted "(C)"
6460 * build-aux/update-copyright: Implement and document. Also,
6461 allow variable whitespace before "(C)".
6462 * tests/test-update-copyright.sh: Test.
6464 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6466 update-copyright: don't trip on non-FSF copyright statements
6467 * build-aux/update-copyright: Fix so that the first correctly
6468 formatted FSF copyright statement is recognized no matter what
6469 appears before it. Update documentation.
6470 * tests/test-update-copyright.sh: Test that.
6472 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6474 update-copyright: clean up code a little
6475 * build-aux/update-copyright: Append "_re" to the name of any
6476 variable holding a regular expression.
6477 Replace "old" and "new" with "stmt" in variable names.
6478 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
6480 Format code more consistently.
6482 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
6484 update-copyright-tests: improve portability
6485 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
6486 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
6488 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
6490 update-copyright: support @copyright{} and ©
6491 * build-aux/update-copyright: Implement and document.
6492 * tests/test-update-copyright.sh: Test.
6494 2009-08-04 Jim Meyering <meyering@redhat.com>
6496 update-copyright-tests: correctly test EOL=\r\n handling
6497 * tests/test-update-copyright.sh: Put \r at the end of some lines
6498 for the dos-eol tests. Based on a patch by Joel E. Denny.
6500 maint.mk: make update-copyright exclusion list more configurable
6501 * top/maint.mk (update-copyright): Default to excluding COPYING,
6502 but allow an override, in case someone does want to update that file.
6504 maint.mk: don't update copyright date in COPYING
6505 * top/maint.mk (update-copyright): Exclude COPYING.
6507 maint.mk: add a copyright-updating rule
6508 * top/maint.mk (update-copyright): New rule.
6509 Derived from coreutils/Makefile.am.
6511 update-copyright: rename some variables
6512 * build-aux/update-copyright: Rename a few variables for clarity.
6513 Tweak syntax. List Joel E. Denny as coauthor.
6515 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
6517 update-copyright: fix bug for 2-digit last year and add tests
6518 * build-aux/update-copyright: Fix bug.
6519 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
6521 * modules/update-copyright-tests: New
6522 * tests/test-update-copyright.sh: New.
6524 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
6526 update-copyright: handle leading tabs in line prefix
6527 * build-aux/update-copyright: Count leading tabs as 8 spaces
6528 when computing margin. This helps with the formatting of
6529 ChangeLogs, for example.
6530 Fix documentation a little.
6532 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
6534 update-copyright: support EOL=\r\n
6535 * build-aux/update-copyright: Implement that.
6537 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
6539 update-copyright: automatically format copyright statements
6540 * build-aux/update-copyright: Implement that.
6541 Also, be a little more predictable and safer by always failing
6542 when the full copyright format is not perfectly recognized as an
6543 unbroken whole. Discussed at
6544 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
6545 Rewrite documentation.
6547 2009-08-03 Bruno Haible <bruno@clisp.org>
6549 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
6551 2009-08-02 Bruno Haible <bruno@clisp.org>
6553 Tests for module 'uname'.
6554 * modules/uname-tests: New file.
6555 * tests/test-uname.c: New file.
6558 * lib/uname.c: New file.
6559 * m4/uname.m4: New file.
6560 * modules/uname: New file.
6561 * doc/posix-functions/uname.texi: Mention the new module.
6563 2009-08-02 Bruno Haible <bruno@clisp.org>
6565 Tests for module 'sys_utsname'.
6566 * modules/sys_utsname-tests: New file.
6567 * tests/test-sys_utsname.c: New file.
6569 New module 'sys_utsname'.
6570 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
6571 * m4/sys_utsname_h.m4: New file.
6572 * modules/sys_utsname: New file.
6573 * doc/posix-headers/sys_utsname.texi: Mention the new module.
6575 2009-08-02 Bruno Haible <bruno@clisp.org>
6577 Implicitly initialize the sockets library.
6578 * lib/gethostname.c: Include sockets.h.
6579 (rpl_gethostname): Invoke gl_sockets_startup.
6580 * lib/socket.c: Include sockets.h.
6581 (rpl_socket): Invoke gl_sockets_startup.
6582 * modules/gethostname (Depends-on): Add sockets.
6583 * modules/socket (Depends-on): Likewise.
6584 * tests/test-poll.c: Don't include sockets.h.
6585 (main): Don't invoke gl_sockets_startup.
6586 * tests/test-select.c: Don't include sockets.h.
6587 (main): Don't invoke gl_sockets_startup.
6589 2009-08-02 Bruno Haible <bruno@clisp.org>
6591 Allow multiple calls to gl_sockets_startup.
6592 * lib/sockets.c (initialized_sockets_version): New variable.
6593 (gl_sockets_startup): Do nothing if already called for this or a higher
6595 (gl_sockets_cleanup): Reset initialized_sockets_version.
6597 2009-08-03 Simon Josefsson <simon@josefsson.org>
6599 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
6600 different project/version.
6602 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
6603 Bruno Haible <bruno@clisp.org>
6605 Tests for module 'pipe-filter-gi'.
6606 * modules/pipe-filter-gi-tests: New file.
6607 * tests/test-pipe-filter-gi1.sh: New file.
6608 * tests/test-pipe-filter-gi1.c: New file.
6609 * tests/test-pipe-filter-gi2.sh: New file.
6610 * tests/test-pipe-filter-gi2-main.c: New file.
6611 * tests/test-pipe-filter-gi2-child.c: New file.
6613 New module 'pipe-filter-gi'.
6614 * lib/pipe-filter-gi.c: New file.
6615 * modules/pipe-filter-gi: New file.
6617 2009-08-02 Bruno Haible <bruno@clisp.org>
6618 Paolo Bonzini <bonzini@gnu.org>
6620 Tests for module 'pipe-filter-ii'.
6621 * modules/pipe-filter-ii-tests: New file.
6622 * tests/test-pipe-filter-ii1.sh: New file.
6623 * tests/test-pipe-filter-ii1.c: New file.
6624 * tests/test-pipe-filter-ii2.sh: New file.
6625 * tests/test-pipe-filter-ii2-main.c: New file.
6626 * tests/test-pipe-filter-ii2-child.c: New file.
6628 New module 'pipe-filter-ii'.
6629 * lib/pipe-filter.h: New file.
6630 * lib/pipe-filter-ii.c: New file.
6631 * lib/pipe-filter-aux.h: New file.
6632 * modules/pipe-filter-ii: New file.
6634 2009-08-02 Simon Josefsson <simon@josefsson.org>
6636 * lib/gc-libgcrypt.c: Change copyright to FSF.
6637 * lib/gc-gnulib.c: Likewise.
6639 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
6641 * lib/gethostname.c: Include limits.h.
6643 2009-08-02 Simon Josefsson <simon@josefsson.org>
6644 Bruno Haible <bruno@clisp.org>
6646 Ensure HOST_NAME_MAX as part of the gethostname module.
6647 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
6648 define also HOST_NAME_MAX.
6649 * tests/test-gethostname.c: Include <limits.h>.
6650 (main): Check also HOST_NAME_MAX.
6651 * doc/posix-headers/limits.texi: Document the mingw problem.
6653 2009-08-02 Bruno Haible <bruno@clisp.org>
6655 * lib/gethostname.c (gethostname): Fix handling of large len argument.
6658 2009-03-31 Simon Josefsson <simon@josefsson.org>
6660 * lib/gethostname.c: Add Windows wrapper.
6661 * m4/gethostname.m4: Look for gethostname in -lws2_32.
6662 * modules/gethostname: Depend on sys_socket & errno, for also
6663 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
6664 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
6666 2009-07-31 Jim Meyering <meyering@redhat.com>
6668 getloadavg: fix symbol name in comment
6669 * lib/getloadavg.c: Correct a typo I introduced when adding
6670 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
6671 Matt Kraai spotted the problem.
6673 2009-07-29 Matt Kraai <mkraai@beckman.com>
6675 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
6676 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
6677 code also if ! defined N_NAME_POINTER.
6678 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
6679 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
6680 but the n_name member is a 12-byte array.
6682 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
6684 update-copyright: generalize comment handling
6685 * build-aux/update-copyright: Handle copyright statements
6686 within more comment styles.
6688 Report any file with an external copyright holder or parse failure.
6690 2009-07-29 Jim Meyering <meyering@redhat.com>
6692 mktime: correct setting of REPLACE_MKTIME
6693 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
6695 update-copyright: new module
6696 * modules/update-copyright: New file.
6697 * build-aux/update-copyright: New file.
6698 * MODULES.html.sh (maint+release support): Add update-copyright.
6700 2009-07-27 Bruno Haible <bruno@clisp.org>
6702 Fix compilation error when <ctime> is used and mktime is replaced.
6703 * lib/time.in.h (mktime): New declaration.
6704 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
6705 REPLACE_MKTIME instead of defining mktime in config.h.
6706 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
6707 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
6708 Reported by Ross McFarland <rwmcfa1@neces.com>.
6710 2009-07-27 Bruno Haible <bruno@clisp.org>
6712 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
6713 Reported by Matt Kraai <mkraai@beckman.com>.
6715 2009-07-25 Jim Meyering <meyering@redhat.com>
6717 maint.mk: avoid warnings about missing files
6718 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
6719 diagnostic when .prev-version does not exist.
6720 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
6721 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
6723 Suggestions from Simon Josefsson.
6725 2009-07-25 Bruno Haible <bruno@clisp.org>
6727 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
6728 defined as macros. Needed on QNX 6.4.1.
6729 Reported by Matt Kraai <mkraai@beckman.com>.
6731 2009-07-23 Jim Meyering <meyering@redhat.com>
6733 maint.mk: invoke "make dist" with a working value of XZ_OPT
6734 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
6736 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
6738 Make fseeko.c compile on QNX.
6739 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
6741 2009-07-22 Peter Simons <simons@cryp.to>
6743 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
6744 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
6745 * lib/md4.h: Likewise.
6746 * lib/md5.h: Likewise.
6747 * lib/sha1.h: Likewise.
6748 * lib/sha256.h: Likewise.
6749 * lib/sha512.h: Likewise.
6751 tests-sha1: don't assign literal string to 'char *' variable
6752 * tests/test-sha1.c (main): Declare locals with "const" to match
6753 attributes of the right hand side.
6755 2009-07-21 Eric Blake <ebb9@byu.net>
6757 dup2: fix more mingw problems
6758 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
6760 * doc/posix-functions/dup2.texi (dup2): Document the bug.
6761 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
6762 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
6763 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
6766 2009-07-21 Jim Meyering <meyering@redhat.com>
6768 vc-list-files: avoid failure when /bin/sh is dash
6769 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
6770 On some Debian based systems, /bin/sh is a symlink to dash, and running
6771 this command would omit the "/" following each 'tests' prefix:
6772 dash -x build-aux/vc-list-files -C . tests
6773 That is because bash and dash work differently:
6774 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
6778 2009-07-21 Eric Blake <ebb9@byu.net>
6780 dup2-tests: test previous patch
6781 * modules/dup2-tests: New file.
6782 * tests/test-dup2.c: Likewise.
6783 * tests/test-open.c (main): Avoid unspecified behavior.
6784 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
6787 dup2: work around mingw and cygwin 1.5 bug
6788 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
6789 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6790 * modules/unistd (Makefile.am): Substitute it.
6791 * lib/unistd.in.h (dup2): Declare the replacement.
6792 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
6793 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
6794 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
6795 * modules/execute (Depends-on): Add dup2.
6796 * modules/fseterr (Depends-on): Likewise.
6797 * modules/pipe (Depends-on): Likewise.
6798 * modules/posix_spawn-internal (Depends-on): Likewise.
6800 2009-07-21 Bruno Haible <bruno@clisp.org>
6802 * modules/.gitattributes: New file.
6804 2009-07-20 Bruno Haible <bruno@clisp.org>
6806 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
6809 2009-07-20 Eric Blake <ebb9@byu.net>
6811 test-pipe: make a bit more robust.
6812 * tests/test-pipe.c (myerr): Allow error messages regardless of
6813 what we do to stderr.
6814 (test_pipe): Rearrange to avoid deadlock.
6815 (child_main): Try a larger read, to ensure we avoided deadlock.
6816 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
6817 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
6820 2009-07-19 Jim Meyering <meyering@redhat.com>
6822 fts: avoid false-positive cycle-detection
6823 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
6824 for each new command line argument.
6826 2009-07-19 Bruno Haible <bruno@clisp.org>
6828 Fix build error on mingw with the modules sys_select and unistd.
6829 * modules/acl-tests (Depends-on): Add close.
6830 * modules/binary-io-tests (Depends-on): Likewise.
6831 * modules/closein-tests (Depends-on): Likewise.
6832 * modules/flock-tests (Depends-on): Likewise.
6833 * modules/fsync-tests (Depends-on): Likewise.
6834 * modules/lseek-tests (Depends-on): Likewise.
6835 * modules/pipe-tests (Depends-on): Likewise.
6836 * modules/posix_spawn-tests (Depends-on): Likewise.
6837 * modules/posix_spawnp-tests (Depends-on): Likewise.
6838 * modules/stat-time-tests (Depends-on): Likewise.
6839 * modules/yesno-tests (Depends-on): Likewise.
6841 2009-07-19 Bruno Haible <bruno@clisp.org>
6844 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
6845 macros, not at the compiler macros.
6846 * lib/pipe.c: Likewise.
6847 * lib/execute.c: Likewise.
6848 * lib/spawni.c: Likewise.
6850 2009-07-19 Bruno Haible <bruno@clisp.org>
6852 Fix handling of closed stdin/stdout/stderr on mingw.
6853 * lib/w32spawn.h: Include unistd.h.
6854 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
6855 file descriptor with O_NOINHERIT flag.
6856 (fd_safer_noinherit): New function, based on fd-safer.c.
6857 (dup_safer_noinherit): New function, based on dup-safer.c.
6858 (undup_safer_noinherit): New function.
6859 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
6860 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
6861 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
6862 instead of fd_safer.
6863 * tests/test-pipe.c: Include <windows.h>.
6864 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
6866 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
6868 (test_pipe): Pass an extra argument for disambiguation.
6869 (main): Invoke parent_main or child_main.
6871 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
6874 2009-07-18 Eric Blake <ebb9@byu.net>
6876 test-pipe: fix mingw build
6877 * tests/test-pipe.c (main): Avoid fcntl on mingw.
6879 2009-07-18 Bruno Haible <bruno@clisp.org>
6881 * modules/pipe-tests (Makefile.am): Fix typo.
6883 2009-07-18 Eric Blake <ebb9@byu.net>
6885 error: fix mingw build
6886 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
6887 Reported by Bruno Haible.
6889 error: avoid undefined use of stdout
6890 * lib/error.c (error, error_at_line): Check that fd 1 is open
6891 before flushing stdout. Avoids a crash on cygwin when libsigsegv
6892 is handling faults and the close_stdout module wants to report the
6893 detection of closed stdout as an error.
6895 2009-07-17 Eric Blake <ebb9@byu.net>
6897 pipe: be robust in face of closed fds
6898 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
6899 should cause child to misbehave.
6900 * modules/pipe-tests: New module.
6901 * tests/test-pipe.c: New file.
6902 * tests/test-pipe.sh: New file.
6903 Reported by Akim Demaille.
6905 2009-07-14 Bruno Haible <bruno@clisp.org>
6907 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
6908 Reported by anonymous kc.
6910 2009-07-07 Jim Meyering <meyering@redhat.com>
6912 maint.mk: don't look for translatable strings in *.m4 or *.mk
6913 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
6914 when searching for translatable strings.
6916 2009-07-05 Jim Meyering <meyering@redhat.com>
6918 remove superfluous parentheses in STREQ definition
6919 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
6920 * lib/getugroups.c (STREQ): Likewise.
6921 * lib/fnmatch.c (STREQ): Likewise.
6922 Spotted by Bruno Haible.
6924 2009-07-04 Jim Meyering <meyering@redhat.com>
6926 argv-iter: new module
6927 * MODULES.html.sh: Add argv-iter.
6928 * lib/argv-iter.c, lib/argv-iter.h: New files.
6929 * modules/argv-iter: New file.
6930 * modules/argv-iter-tests: New file.
6931 * tests/test-argv-iter.c: Test it.
6933 2009-07-04 Bruno Haible <bruno@clisp.org>
6936 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
6937 contains more exact copies of a given entry than file2, leave the extra
6938 copies unpaired rather than aborting.
6939 Reported by Eric Blake.
6941 2009-07-02 Bruno Haible <bruno@clisp.org>
6943 Speedup git-merge-changelog for git cherry-pick.
6944 * lib/git-merge-changelog.c (struct entries_mapping): New type.
6945 (entries_mapping_get): New function, extracted from compute_mapping.
6946 (entries_mapping_reverse_get): New function.
6947 (compute_mapping): Add a 'full' argument. Return the result in a
6948 'struct entries_mapping'.
6949 (main): Update. Access the mappings through entries_mapping_get.
6950 Reported by Eric Blake.
6952 2009-07-02 Bruno Haible <bruno@clisp.org>
6954 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
6957 2009-07-02 Bruno Haible <bruno@clisp.org>
6959 Speed up approximate search for matching ChangeLog entries.
6960 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
6961 argument. Call fstrcmp_bounded instead of fstrcmp.
6962 (compute_mapping, try_split_merged_entry, main): Update callers.
6964 2009-07-02 Bruno Haible <bruno@clisp.org>
6966 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
6968 2009-06-30 Bruno Haible <bruno@clisp.org>
6970 Reduce the number of uc_is_cased calls.
6971 * lib/unicase.h (casing_suffix_context_t): Add
6972 'first_char_except_ignorable' field.
6973 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
6974 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
6975 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
6977 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
6978 case-ignorable characters.
6979 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
6980 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
6981 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
6982 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
6983 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
6985 2009-06-30 Bruno Haible <bruno@clisp.org>
6987 Tests for module 'unicase/ignorable'.
6988 * modules/unicase/ignorable-tests: New file.
6989 * tests/unicase/test-ignorable.c: New file, generated by
6992 Tests for module 'unicase/cased'.
6993 * modules/unicase/cased-tests: New file.
6994 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
6995 * tests/unicase/test-predicate-part1.h: New file, derived from
6996 tests/unictype/test-predicate-part1.h.
6997 * tests/unicase/test-predicate-part2.h: New file, same as
6998 tests/unictype/test-predicate-part2.h.
7000 Fix evaluation of "Before C" condition of FINAL_SIGMA.
7001 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
7002 (output_casing_properties): New function.
7004 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
7005 * lib/unicase/cased.c: Include unictype/bitmap.h.
7006 (uc_is_cased): Define through a bitmap lookup.
7007 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
7008 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
7009 (uc_is_case_ignorable): Define through a bitmap lookup.
7010 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
7011 lib/unictype/bitmap.h.
7012 (Depends-on): Add inline. Clean up.
7013 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
7014 lib/unictype/bitmap.h.
7015 (Depends-on): Add inline. Clean up.
7016 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
7018 * tests/unicase/test-u16-tolower.c (main): Likewise.
7019 * tests/unicase/test-u32-tolower.c (main): Likewise.
7021 2009-06-30 Bruno Haible <bruno@clisp.org>
7023 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
7024 * lib/unicase/u16-casemap.c: Likewise.
7025 * lib/unicase/u32-casemap.c: Likewise.
7027 2009-06-29 Bruno Haible <bruno@clisp.org>
7029 Define u32_casefold as a wrapper around u32_ct_casefold.
7030 * lib/unicase/u32-casefold.c: Update.
7031 * modules/unicase/u32-casefold (Depends-on): Add
7032 unicase/u32-ct-casefold, unicase/empty-prefix-context,
7033 unicase/empty-suffix-context. Clean up.
7035 Define u16_casefold as a wrapper around u16_ct_casefold.
7036 * lib/unicase/u16-casefold.c: Update.
7037 * modules/unicase/u16-casefold (Depends-on): Add
7038 unicase/u16-ct-casefold, unicase/empty-prefix-context,
7039 unicase/empty-suffix-context. Clean up.
7041 Define u8_casefold as a wrapper around u8_ct_casefold.
7042 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
7043 * lib/unicase/u8-casefold.c: Update.
7044 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
7045 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7047 Define u32_totitle as a wrapper around u32_ct_totitle.
7048 * lib/unicase/u32-totitle.c: Update.
7049 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
7050 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7052 Define u16_totitle as a wrapper around u16_ct_totitle.
7053 * lib/unicase/u16-totitle.c: Update.
7054 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
7055 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7057 Define u8_totitle as a wrapper around u8_ct_totitle.
7058 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
7060 (FUNC): Delegate to U_CT_TOTITLE.
7061 * lib/unicase/u8-totitle.c: Update.
7062 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
7063 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7065 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
7067 * modules/unicase/u32-tolower (Depends-on): Add
7068 unicase/empty-prefix-context, unicase/empty-suffix-context.
7070 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
7072 * modules/unicase/u16-tolower (Depends-on): Add
7073 unicase/empty-prefix-context, unicase/empty-suffix-context.
7075 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
7076 * modules/unicase/u8-tolower (Depends-on): Add
7077 unicase/empty-prefix-context, unicase/empty-suffix-context.
7079 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
7081 * modules/unicase/u32-toupper (Depends-on): Add
7082 unicase/empty-prefix-context, unicase/empty-suffix-context.
7084 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
7086 * modules/unicase/u16-toupper (Depends-on): Add
7087 unicase/empty-prefix-context, unicase/empty-suffix-context.
7089 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
7090 * modules/unicase/u8-toupper (Depends-on): Add
7091 unicase/empty-prefix-context, unicase/empty-suffix-context.
7093 New module 'unicase/u32-ct-casefold'.
7094 * lib/unicase/u32-ct-casefold.c: New file.
7095 * modules/unicase/u32-ct-casefold: New file.
7097 New module 'unicase/u16-ct-casefold'.
7098 * lib/unicase/u16-ct-casefold.c: New file.
7099 * modules/unicase/u16-ct-casefold: New file.
7101 New module 'unicase/u8-ct-casefold'.
7102 * lib/unicase/u8-ct-casefold.c: New file.
7103 * lib/unicase/u-ct-casefold.h: New file, derived from
7104 lib/unicase/u-casefold.h.
7105 * modules/unicase/u8-ct-casefold: New file.
7107 New module 'unicase/u32-ct-totitle'.
7108 * lib/unicase/u32-ct-totitle.c: New file.
7109 * modules/unicase/u32-ct-totitle: New file.
7111 New module 'unicase/u16-ct-totitle'.
7112 * lib/unicase/u16-ct-totitle.c: New file.
7113 * modules/unicase/u16-ct-totitle: New file.
7115 New module 'unicase/u8-ct-totitle'.
7116 * lib/unicase/u8-ct-totitle.c: New file.
7117 * lib/unicase/u-ct-totitle.h: New file, derived from
7118 lib/unicase/u-totitle.h.
7119 * modules/unicase/u8-ct-totitle: New file.
7121 New module 'unicase/u32-ct-tolower'.
7122 * lib/unicase/u32-ct-tolower.c: New file.
7123 * modules/unicase/u32-ct-tolower: New file.
7125 New module 'unicase/u16-ct-tolower'.
7126 * lib/unicase/u16-ct-tolower.c: New file.
7127 * modules/unicase/u16-ct-tolower: New file.
7129 New module 'unicase/u8-ct-tolower'.
7130 * lib/unicase/u8-ct-tolower.c: New file.
7131 * modules/unicase/u8-ct-tolower: New file.
7133 New module 'unicase/u32-ct-toupper'.
7134 * lib/unicase/u32-ct-toupper.c: New file.
7135 * modules/unicase/u32-ct-toupper: New file.
7137 New module 'unicase/u16-ct-toupper'.
7138 * lib/unicase/u16-ct-toupper.c: New file.
7139 * modules/unicase/u16-ct-toupper: New file.
7141 New module 'unicase/u8-ct-toupper'.
7142 * lib/unicase/u8-ct-toupper.c: New file.
7143 * modules/unicase/u8-ct-toupper: New file.
7145 Add context arguments to u*_casemap functions.
7146 * lib/unicase/unicasemap.h: Include unicase.h.
7147 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
7148 suffix_context arguments.
7149 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
7151 (FUNC): Add prefix_context and suffix_context arguments. Use
7152 uc_is_cased and uc_is_case_ignorable.
7153 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
7154 * lib/unicase/u16-casemap.c: Likewise.
7155 * lib/unicase/u32-casemap.c: Likewise.
7156 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
7157 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
7158 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
7159 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
7160 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
7161 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
7163 New module 'unicase/u32-suffix-context'.
7164 * lib/unicase/u32-suffix-context.c: New file.
7165 * modules/unicase/u32-suffix-context: New file.
7167 New module 'unicase/u16-suffix-context'.
7168 * lib/unicase/u16-suffix-context.c: New file.
7169 * modules/unicase/u16-suffix-context: New file.
7171 New module 'unicase/u8-suffix-context'.
7172 * lib/unicase/u8-suffix-context.c: New file.
7173 * lib/unicase/u-suffix-context.h: New file.
7174 * modules/unicase/u8-suffix-context: New file.
7176 New module 'unicase/empty-suffix-context'.
7177 * lib/unicase/empty-suffix-context.c: New file.
7178 * modules/unicase/empty-suffix-context: New file.
7180 New module 'unicase/u32-prefix-context'.
7181 * lib/unicase/u32-prefix-context.c: New file.
7182 * modules/unicase/u32-prefix-context: New file.
7184 New module 'unicase/u16-prefix-context'.
7185 * lib/unicase/u16-prefix-context.c: New file.
7186 * modules/unicase/u16-prefix-context: New file.
7188 New module 'unicase/u8-prefix-context'.
7189 * lib/unicase/u8-prefix-context.c: New file.
7190 * lib/unicase/u-prefix-context.h: New file.
7191 * lib/unicase/context.h: New file.
7192 * modules/unicase/u8-prefix-context: New file.
7194 New module 'unicase/empty-prefix-context'.
7195 * lib/unicase/empty-prefix-context.c: New file.
7196 * modules/unicase/empty-prefix-context: New file.
7198 New module 'unicase/ignorable'.
7199 * lib/unicase/ignorable.c: New file.
7200 * modules/unicase/ignorable: New file.
7202 New module 'unicase/cased'.
7203 * lib/unicase/caseprop.h: New file.
7204 * lib/unicase/cased.c: New file.
7205 * modules/unicase/cased: New file.
7207 New functions for case mapping of substrings.
7208 * lib/unicase.h (casing_prefix_context_t): New type.
7209 (unicase_empty_prefix_context): New variable.
7210 (u8_casing_prefix_context, u16_casing_prefix_context,
7211 u32_casing_prefix_context, u8_casing_prefixes_context,
7212 u16_casing_prefixes_context, u32_casing_prefixes_context): New
7214 (casing_suffix_context_t): New type.
7215 (unicase_empty_suffix_context): New variable.
7216 (u8_casing_suffix_context, u16_casing_suffix_context,
7217 u32_casing_suffix_context, u8_casing_suffixes_context,
7218 u16_casing_suffixes_context, u32_casing_suffixes_context,
7219 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
7220 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
7221 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
7224 2009-06-28 Jim Meyering <meyering@redhat.com>
7226 boostrap: indent only with spaces
7227 * build-aux/bootstrap: Indent only with spaces, never TABs.
7229 bootstrap: split long lines
7230 * build-aux/bootstrap: Keep line length < 80.
7232 bootstrap: sync from coreutils
7233 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
7234 just as autoreconf does. Verify a list of prerequisite
7235 package-name,version-number pairs if defined in bootstrap.conf.
7236 Refer to README-prereq, if prerequisites are not satisfied.
7238 2009-06-27 Eric Blake <ebb9@byu.net>
7240 tests: add test for bogus NULL definition
7241 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
7242 * tests/test-stdlib.c: Likewise.
7243 * tests/test-string.c: Likewise.
7244 * tests/test-locale.c: Likewise.
7245 * tests/test-unistd.c: Likewise.
7246 * modules/stdio-tests (Depends-on): Add verify.
7247 * modules/stdlib-tests (Depends-on): Likewise.
7248 * modules/string-tests (Depends-on): Likewise.
7249 * modules/locale-tests (Depends-on): Likewise.
7250 * modules/unistd-tests (Depends-on): Likewise.
7252 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
7254 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
7255 self-explaining comment.
7256 * m4/selinux-selinux-h: Update serial.
7257 (gl_LIBSELINUX): New macro, adding a warning for missing development
7258 packages to code extracted from...
7259 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
7260 Add warning for missing development packages here, too.
7262 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
7264 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
7266 2009-06-25 Eric Blake <ebb9@byu.net>
7268 version-etc: fix regression
7269 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
7271 (version_etc): Use it, to catch bugs with trailing NULL.
7272 * lib/version-etc.c (version_etc_arn): Delete unused argument.
7273 (version_etc_va): Fix logic bug.
7274 * modules/version-etc-tests: Add test.
7275 * tests/test-version-etc.c: New file.
7276 * tests/test-version-etc.sh: Likewise.
7278 2009-06-25 Sam Steingold <sds@gnu.org>
7280 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
7283 2009-06-25 Eric Blake <ebb9@byu.net>
7285 fpurge: migrate into <stdio.h>
7286 * lib/fpurge.h: Delete...
7287 * lib/stdio.in.h (fpurge): ...and declare here, instead.
7288 * lib/fpurge.c (fpurge): Change declaring header.
7289 * modules/fpurge (Files): Drop deleted file.
7290 (Depends-on): Add stdio.
7291 (configure.ac): Set witness.
7292 * modules/stdio (Makefile.am): Support fpurge macros.
7293 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
7294 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
7295 * lib/fflush.c: Update client.
7296 * tests/test-fpurge.c: Likewise.
7297 * NEWS: Mention the change.
7299 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
7301 * lib/argp-version-etc.c (program_authors): Add const
7303 * lib/version-etc.c: Fix typos in the comments.
7304 * modules/argp-version-etc: Depends on version-etc.
7306 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
7308 argp-version-etc: new module.
7310 * lib/argp-version-etc.c: New file.
7311 * lib/argp-version-etc.h: New file.
7312 * modules/argp-version-etc: New file.
7313 * modules/argp-version-etc-tests: New file.
7314 * tests/test-argp-version-etc.c: New test.
7315 * tests/test-argp-version-etc-1.sh: New test.
7317 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
7319 Provide additional interfaces and documentation for version-etc
7322 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
7324 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
7327 2009-06-24 Bruno Haible <bruno@clisp.org>
7329 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
7330 HAVE_LIB${NAME} macro.
7331 Reported by Sam Steingold <sds@gnu.org>.
7333 2009-06-23 Simon Josefsson <simon@josefsson.org>
7335 * modules/hash-tests (test_hash_LDADD): Link to libintl when
7338 2009-06-21 Bruno Haible <bruno@clisp.org>
7340 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
7342 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
7343 together with LIB${NAME}, LTLIB${NAME}.
7344 Reported by Sam Steingold <sds@gnu.org>.
7346 2009-06-20 Jim Meyering <meyering@redhat.com>
7348 tests: make sc_require_test_exit_idiom more generic
7349 * top/maint.mk (Exit_witness_file): New overridable variable.
7350 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
7351 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
7353 2009-06-19 Jim Meyering <meyering@redhat.com>
7355 hash: reverse order of src/dst parameters in an internal interface
7356 * lib/hash.c (transfer_entries): Reverse order of parameters to
7357 put DST before SRC. Adjust callers.
7359 tests: test-hash: avoid wholesale duplication
7360 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
7361 Instead, use a loop and add a single conditional.
7363 tests: test-hash: allow seed selection via a command line argument
7364 * tests/test-hash.c (get_seed): New function.
7367 2009-06-19 Eric Blake <ebb9@byu.net>
7369 hash: avoid memory leak on allocation failure
7370 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
7371 failure. Factor repeated algorithm...
7372 (transfer_entries): ...into new helper routine.
7373 (hash_delete): React to hash_rehash return value.
7375 hash: reduce memory pressure in hash_rehash no-op case
7376 * lib/hash.c (next_prime): Avoid overflow.
7377 (hash_initialize): Factor bucket size computation...
7378 (compute_bucket_size): ...into new helper function.
7379 (hash_rehash): Use new function and open coding to reduce memory
7380 pressure, and avoid a memory leak in USE_OBSTACK code.
7381 Reported by Jim Meyering.
7383 2009-06-18 Eric Blake <ebb9@byu.net>
7385 hash: make rotation more obvious
7386 * modules/hash (Depends-on): Add bitrotate and stdint.
7387 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
7388 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
7389 (SIZE_MAX): Rely on headers for definition.
7390 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
7391 (raw_hasher): Use rotr_sz.
7392 Suggested by Jim Meyering.
7394 hash: fix memory leak in last patch
7395 * lib/hash.c (hash_rehash): Avoid memory leak.
7397 hash: avoid no-op rehashing
7398 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
7400 hash: provide default callback functions
7401 * lib/hash.c (raw_hasher, raw_comparator): New functions.
7402 (hash_initialize): Use them as defaults.
7403 * tests/test-hash.c (main): Test this.
7405 hash: minor optimization
7406 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
7408 (hash_initialize): Document this promise.
7409 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
7410 * tests/test-hash.c (hash_compare_strings): Test this.
7412 2009-06-18 Bruno Haible <bruno@clisp.org>
7414 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
7415 going to be replaced anyway.
7417 2009-06-18 Bruno Haible <bruno@clisp.org>
7419 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
7421 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
7424 2009-06-18 Eric Blake <ebb9@byu.net>
7426 hash: check for resize before insertion
7427 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
7428 threshold before insertion, so that a pathological hash_rehash
7429 that fills every bucket can still trigger another rehash.
7431 2009-06-18 Jim Meyering <meyering@redhat.com>
7433 hash-tests: add a loop around the small tests
7434 * tests/test-hash.c (main): Repeat small tests with selected
7435 small initial table sizes.
7437 2009-06-17 Eric Blake <ebb9@byu.net>
7439 hash: minor cleanups
7440 * lib/hash.h (hash_entry): Make opaque, by moving...
7441 * lib/hash.c (hash_entry): ...here.
7442 (hash_insert): Clarify restrictions on what can be inserted.
7443 (hash_get_next): Clarify when it is safe to remove an element
7445 (check_tuning): Skip verification when tuning is known safe.
7446 (hash_initialize): Clarify restrictions on tuning.
7448 2009-06-17 Jim Meyering <jim@meyering.net>
7449 and Eric Blake <ebb9@byu.net>
7451 hash-tests: new module
7452 * modules/hash-tests: New file.
7453 * tests/test-hash.c: New file.
7455 2009-06-17 Eric Blake <ebb9@byu.net>
7457 strstr-simple: document new module
7458 * MODULES.html.sh: Document new module.
7460 strstr, strcasestr: replace on platforms with broken memchr
7461 * modules/strstr: Split into...
7462 * modules/strstr-simple: ...new module that does not care about
7463 performance, but does care about glibc bug.
7464 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
7465 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
7466 if platform memchr is broken, per Debian bug 521737.
7467 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
7469 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
7470 * doc/posix-functions/strstr.texi (strstr): Document the fix.
7471 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
7472 * modules/mountlist (Depends-on): Add strstr-simple.
7473 * modules/gen-uni-tables (Depends-on): Likewise.
7474 * modules/argz (Depends-on): Add strstr.
7476 2009-06-17 Bruno Haible <bruno@clisp.org>
7478 * modules/posix_spawn-internal (Depends-on): Add errno.
7480 2009-06-17 Bruno Haible <bruno@clisp.org>
7482 Define missing ESTALE on Interix 3.5.
7483 * lib/errno.in.h (ESTALE): Assign a value if missing.
7484 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
7485 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
7487 * doc/posix-headers/errno.texi: Mention the Interix bug.
7488 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
7490 2009-06-15 Eric Blake <ebb9@byu.net>
7492 memchr, memchr2: add valgrind exception
7493 * lib/memchr.valgrind: New file.
7494 * lib/memchr2.valgrind: New file.
7495 * modules/memchr (Files): Distribute valgrind file.
7496 * modules/memchr2 (Files): Likewise.
7498 docs: memchr is no longer obsolete
7499 * MODULES.html.sh: Move memchr from obsolete to string.h section.
7500 * lib/string.in.h (memchr): Simplify logic.
7502 2009-06-14 Jim Meyering <meyering@redhat.com>
7504 link-follow: fix the "checking..." message to not mention trailing slash
7505 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
7506 never considered trailing slashes.
7508 2009-06-14 Bruno Haible <bruno@clisp.org>
7510 * m4/memchr.m4: Mention also the bug on IA-64.
7511 * doc/posix-functions/memchr.texi: Likewise.
7513 2009-06-12 Eric Blake <ebb9@byu.net>
7515 memchr: detect broken x86_64 and alpha implementations
7516 * modules/memchr-tests (Depends-on): Move mmap detection...
7517 * modules/memchr (Depends-on): ...here.
7518 (configure.ac): Set indicator.
7519 * lib/string.in.h (memchr): Declare replacement.
7520 * modules/string (Makefile.am): Trigger replacement.
7521 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
7522 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
7524 * doc/posix-functions/memchr.texi (memchr): Document the bug.
7525 * modules/getpagesize (License): Relax license.
7527 2009-06-11 Bruno Haible <bruno@clisp.org>
7529 * lib/idpriv.h: Add more references.
7531 2009-06-08 Bruno Haible <bruno@clisp.org>
7533 Tests for module 'idpriv-droptemp'.
7534 * modules/idpriv-droptemp-tests: New file.
7535 * tests/test-idpriv-droptemp.sh: New file.
7536 * tests/test-idpriv-droptemp.su.sh: New file.
7537 * tests/test-idpriv-droptemp.c: New file.
7539 New module 'idpriv-droptemp'.
7540 * lib/idpriv-droptemp.c: New file.
7541 * modules/idpriv-droptemp: New file.
7543 2009-06-08 Bruno Haible <bruno@clisp.org>
7545 Tests for module 'idpriv-drop'.
7546 * modules/idpriv-drop-tests: New file.
7547 * tests/test-idpriv-drop.sh: New file.
7548 * tests/test-idpriv-drop.su.sh: New file.
7549 * tests/test-idpriv-drop.c: New file.
7551 New module 'idpriv-drop'.
7552 * lib/idpriv.h: New file.
7553 * lib-idpriv-drop.c: New file.
7554 * m4/idpriv.m4: New file.
7555 * modules/idpriv-drop: New file.
7557 2009-06-08 Bruno Haible <bruno@clisp.org>
7559 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
7560 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
7561 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
7562 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
7563 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
7564 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
7565 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
7567 2009-06-08 Eric Blake <ebb9@byu.net>
7569 test-strstr: use memory fence, when possible
7570 * tests/test-strstr.c (main): Use memory fence, in order to be
7571 more likely to trigger Debian bug 521737.
7572 * modules/strstr-tests (Files): Pull in additional files.
7574 memchr: no longer obsolete, for wider field testing
7575 * modules/memchr (Status, Notice): Delete, this module is no
7577 * modules/vasnprintf (Depends-on): Add memchr.
7579 2009-06-07 Jim Meyering <meyering@redhat.com>
7581 hash: declare some functions with the warn_unused_result attribute
7582 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
7584 2009-06-07 Bruno Haible <bruno@clisp.org>
7586 * tests/test-alignof.c: Don't test int64_t if it does not exist.
7587 Reported by Eric Blake.
7589 2009-06-06 Eric Blake <ebb9@byu.net>
7591 test-alignof: fix typo with long double
7592 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
7595 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
7597 Escape non-texinfo { and }s.
7598 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
7601 2009-06-04 Jim Meyering <meyering@redhat.com>
7603 gitlog-to-changelog: don't infloop on an empty commit log
7604 * build-aux/gitlog-to-changelog: Warn about an empty log message.
7605 Reported by Boris Petersen <transacid@centerim.org>.
7607 2009-06-03 Mike Frysinger <vapier@gentoo.org>
7609 version-etc: extend for packagers
7610 Add three new configure options, intended for packagers:
7611 --with-packager="packager name"
7612 --with-packager-version="packager-specific version"
7613 --with-packager-bug-reports="packager bug reporting"
7614 An example with coreutils:
7616 --with-packager=Gentoo \
7617 --with-packager-bug-report=http://bugs.gentoo.org/ \
7618 --with-packager-version="patchset 1.6"
7619 $ ./src/ls --version | head -n3
7620 ls (GNU coreutils) 7.1-dirty
7621 Packaged by Gentoo (patchset 1.6)
7622 Copyright (C) 2009 Free Software Foundation, Inc.
7623 Note that the bug reporting info via --help doesn't show up because
7624 coreutils uses its own custom emit_bug_reporting_address() implementation
7625 in src/system.h. If it didn't, it'd look like:
7626 $ ./src/ls --help | tail -n4
7627 Report bugs to <bug-coreutils@gnu.org>.
7628 Report Gentoo bugs to <http://bugs.gentoo.org/>.
7629 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
7630 General help using GNU software: <http://www.gnu.org/gethelp/>.
7631 * lib/version-etc.c: Print new information, if provided.
7632 * m4/version-etc.m4: New file.
7633 * modules/version-etc (Files): Add m4/version-etc.m4.
7634 (configure.ac): Add gl_VERSION_ETC.
7636 2009-05-31 Bruno Haible <bruno@clisp.org>
7638 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
7640 * modules/alignof-tests (Dependencies): Add stdint.
7641 Reported by Eric Blake.
7643 2009-05-31 Bruno Haible <bruno@clisp.org>
7645 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
7646 restriction due to compiler bugs.
7647 Reported by Eric Blake.
7649 2009-05-31 Simon Josefsson <simon@josefsson.org>
7650 Bruno Haible <bruno@clisp.org>
7652 Fix test-alignof failure.
7653 * lib/alignof.h (alignof_slot): New macro.
7654 (alignof_type): New macro, with the same semantics as the previous
7656 (alignof): Alias to alignof_slot.
7657 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
7658 check that the results are usable as constant expressions.
7660 2009-05-31 Bruno Haible <bruno@clisp.org>
7662 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
7663 * tests/test-memchr.c (main): Check that memchr does not read past the
7664 first occurrence of the byte.
7665 * tests/test-strstr.c (main): Update comment.
7666 Suggested by Eric Blake.
7668 2009-05-30 Bruno Haible <bruno@clisp.org>
7670 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
7671 detail how to use dumpbin.
7672 Reported by David Byron <dbyron@dbyron.com>.
7674 2009-06-02 Simon Josefsson <simon@josefsson.org>
7676 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
7678 2009-06-02 Simon Josefsson <simon@josefsson.org>
7680 * m4/manywarnings.m4: Add GCC 4.4 warnings.
7682 2009-05-28 Bruno Haible <bruno@clisp.org>
7684 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
7687 2009-05-28 Simon Josefsson <simon@josefsson.org>
7689 * gnulib-tool (func_import): Transform license on build-aux/ files too.
7691 2009-05-27 Simon Josefsson <simon@josefsson.org>
7693 * gnulib-tool (sed_transform_main_lib_file)
7694 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
7697 2009-05-26 Simon Josefsson <simon@josefsson.org>
7699 * tests/test-strstr.c: Add another self-test.
7700 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
7701 strdup. Suggested by Eric Blake <ebb9@byu.net>.
7703 2009-05-23 Bruno Haible <bruno@clisp.org>
7705 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
7708 2009-05-21 Bruno Haible <bruno@clisp.org>
7710 Simplify use of mode_t varargs.
7711 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
7712 uses 'mode_t' or 'int'.
7713 * lib/openat.c (openat): Likewise.
7714 * lib/open-safer.c (open_safer): Likewise.
7715 * m4/mode_t.m4: New file.
7716 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
7717 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
7718 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
7719 * modules/open (Files): Add m4/mode_t.m4.
7720 * modules/openat (Files): Likewise.
7721 * modules/fcntl-safer (Files): Likewise.
7722 Suggested by Eric Blake.
7724 2009-05-21 Pádraig Brady <P@draigbrady.com>
7726 * doc/glibc-functions/fallocate.texi: New file.
7727 * doc/gnulib.texi: Include it.
7729 2009-05-21 Eric Blake <ebb9@byu.net>
7730 Bruno Haible <bruno@clisp.org>
7732 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
7734 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7736 2009-05-21 Eric Blake <ebb9@byu.net>
7737 Bruno Haible <bruno@clisp.org>
7739 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
7740 include_next. Fix of 2008-11-20 commit.
7741 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
7742 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
7743 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
7745 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
7746 instead of NEXT_MATH_H.
7748 2009-05-21 Bruno Haible <bruno@clisp.org>
7750 Avoid redefinition warnings for SIZE_MAX.
7751 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
7752 Reported by Simon Josefsson.
7754 2009-05-21 Bruno Haible <bruno@clisp.org>
7756 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
7759 2009-05-20 Bruno Haible <bruno@clisp.org>
7761 Make zeroptr.h work on mingw.
7762 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
7764 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
7765 * modules/memchr2-tests (configure.ac): Likewise.
7766 * modules/memcmp-tests (configure.ac): Likewise.
7767 * modules/memmem-tests (configure.ac): Likewise.
7768 * modules/memrchr-tests (configure.ac): Likewise.
7769 Reported by Simon Josefsson.
7771 2009-05-20 Simon Josefsson <simon@josefsson.org>
7773 * tests/test-glob.c: Include string.h for strcmp prototype.
7775 2009-05-20 Simon Josefsson <simon@josefsson.org>
7777 * modules/getdelim (Depends-on): Add explicit stdint, although it
7778 was implicitly already pulled in via realloc-posix.
7779 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
7781 2009-05-20 Simon Josefsson <simon@josefsson.org>
7783 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
7784 G. Christensen" <tgc@jupiterrise.com>.
7785 * m4/sys_socket_h.m4: Check for sa_family_t.
7786 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
7787 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
7788 * tests/test-sys_socket.c: Check that sa_family_t works.
7790 2009-05-18 Eric Blake <ebb9@byu.net>
7792 maint.mk: allow gnulib_dir in VPATH build
7793 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
7795 2009-05-15 Jim Meyering <meyering@redhat.com>
7797 maint.mk: Give gnulib_dir a default definition.
7798 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
7799 Thus, most packages no longer need to specify this variable in cfg.mk
7801 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
7803 rename.m4: fix typos that would make non-mingw cross-configure fail
7804 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
7806 2009-05-13 Eric Blake <ebb9@byu.net>
7808 mmap-anon: avoid out-of-order autoconf expansion
7809 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
7810 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
7811 * modules/memchr-tests (Depends-on): Add extensions.
7812 * modules/memchr2-tests (Depends-on): Add extensions.
7813 * modules/memcmp-tests (Depends-on): Add extensions.
7814 * modules/memmem-tests (Depends-on): Add extensions.
7815 * modules/memrchr-tests (Depends-on): Add extensions.
7817 2009-05-13 Bruno Haible <bruno@clisp.org>
7819 Make some tests ISO C 99 compliant.
7820 * tests/zerosize-ptr.h: New file.
7821 * tests/test-memchr.c: Include zerosize-ptr.h.
7822 (main): Use a zero-size object pointer instead of NULL.
7823 * tests/test-memchr2.c: Include zerosize-ptr.h.
7824 (main): Use a zero-size object pointer instead of NULL.
7825 * tests/test-memcmp.c: Include zerosize-ptr.h.
7826 (main): Use a zero-size object pointer instead of NULL.
7827 * tests/test-memmem.c: Include zerosize-ptr.h.
7828 (main): Use a zero-size object pointer instead of NULL.
7829 * tests/test-memrchr.c: Include zerosize-ptr.h.
7830 (main): Use a zero-size object pointer instead of NULL.
7831 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
7833 (Depends-on): Add getpagesize.
7834 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7835 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
7837 (Depends-on): Add getpagesize.
7838 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7839 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
7841 (Depends-on): Add getpagesize.
7842 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7843 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
7845 (Depends-on): Add getpagesize.
7846 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7847 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
7849 (Depends-on): Add getpagesize.
7850 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
7852 2009-05-12 Bruno Haible <bruno@clisp.org>
7854 Tests for module 'alignof'.
7855 * modules/alignof-tests: New file.
7856 * tests/test-alignof.c: New file.
7858 2009-05-12 Bruno Haible <bruno@clisp.org>
7861 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
7862 vendor compilers that are always correct.
7864 2009-05-12 Bruno Haible <bruno@clisp.org>
7866 Make the MAP_ANONYMOUS detection work on HP-UX 11.
7867 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
7868 not whether its fully works.
7870 2009-05-12 Bruno Haible <bruno@clisp.org>
7872 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
7874 2009-05-12 Jim Meyering <meyering@redhat.com>
7876 * top/maint.mk: Adjust backslash alignment.
7878 2009-05-11 Simon Josefsson <simon@josefsson.org>
7880 * top/maint.mk: Make $(srcdir)/build-aux configurable.
7882 2009-05-11 Eric Blake <ebb9@byu.net>
7884 argp: avoid undefined behavior
7885 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
7888 2009-05-08 Simon Josefsson <simon@josefsson.org>
7890 * tests/test-vc-list-files-git.sh: Do git config of user.email and
7891 user.name to prevent git commit from complaining.
7893 2009-05-10 Bruno Haible <bruno@clisp.org>
7895 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
7896 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
7897 it rewrites every file name only once.
7898 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
7900 2009-05-08 Bruno Haible <bruno@clisp.org>
7902 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
7905 2009-05-08 Simon Josefsson <simon@josefsson.org>
7907 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
7908 sockaddr_storage test.
7910 2009-05-07 Simon Josefsson <simon@josefsson.org>
7912 * modules/sys_socket (Makefile.am): Substitute
7913 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
7914 * m4/sys_socket_h.m4: Check for sockaddr_storage.
7915 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
7916 * tests/test-sys_socket.c: Check sockaddr_storage.
7918 2009-05-08 Bruno Haible <bruno@clisp.org>
7920 New module 'alignof'.
7921 * lib/alignof.h: New file.
7922 * modules/alignof: New file.
7924 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
7925 Bruno Haible <bruno@clisp.org>
7927 Fix test-file-has-acl on FreeBSD.
7928 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
7929 mask is implicitly added.
7930 * tests/test-file-has-acl.c: Include <signal.h>.
7931 (main): Terminate the test after 5 seconds.
7932 * modules/acl-tests (configure.ac): Check for alarm function.
7934 2009-05-04 Bruno Haible <bruno@clisp.org>
7936 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
7937 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
7938 * modules/errno (configure.ac): Drop AC_REQUIRE.
7939 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
7940 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
7942 2009-05-04 Simon Josefsson <simon@josefsson.org>
7944 * modules/glob-tests: New module.
7945 * tests/test-glob.c: Add.
7947 2009-05-04 Simon Josefsson <simon@josefsson.org>
7949 * modules/fnmatch-tests: New module.
7950 * tests/test-fnmatch.c: Add.
7952 2009-05-04 Eric Blake <ebb9@byu.net>
7954 maint: make the new no-submodule-changes rule VPATH-safe
7955 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
7957 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
7958 Bruno Haible <bruno@clisp.org>
7960 acl: Fix infinite loop on FreeBSD.
7961 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
7962 of return value from acl_get_entry.
7963 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
7966 2009-05-03 Bruno Haible <bruno@clisp.org>
7968 * lib/acl-internal.h (acl_entries): Clarify return value.
7969 * lib/acl_entries.c (acl_entries): Likewise.
7971 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
7973 Bug fix in acl module.
7974 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
7976 2009-05-03 Bruno Haible <bruno@clisp.org>
7978 Create gperf-generated file in the source dir, not in the build dir.
7979 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
7980 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
7981 * modules/unicase/locale-language (unicase/locale-languages.h):
7983 * modules/unicase/special-casing (unicase/special-casing-table.h):
7985 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
7986 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
7987 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
7988 Reported by Ralf Wildenhues.
7990 2009-05-03 Bruno Haible <bruno@clisp.org>
7992 * modules/fnmatch (Description, configure.ac): Taken from
7994 * modules/fnmatch-posix: Turn into a symbolic reference to the
7995 'fnmatch' module, and deprecate.
7996 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
7998 2009-05-03 Bruno Haible <bruno@clisp.org>
8000 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
8001 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
8002 Reported by Ralf Wildenhues.
8004 2009-05-04 Simon Josefsson <simon@josefsson.org>
8006 * m4/fnmatch.m4: Fix fnmatch re-define.
8008 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
8010 priv-set: new module and tests; adapt write-any-file
8011 * lib/priv-set.c: New file.
8012 * lib/priv-set.h: New file.
8013 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
8014 * lib/write-any-file.c: Simplify by using priv-set module.
8015 * m4/priv-set.m4: New file.
8016 * modules/priv-set: New file.
8017 * modules/unlinkdir: Add dependency on priv-set module.
8018 * modules/write-any-file: Likewise.
8020 Tests for module 'priv-set'.
8021 * modules/priv-set-tests: New file.
8022 * tests/test-priv-set.c: New file.
8024 2009-05-03 Jim Meyering <meyering@redhat.com>
8025 Bruno Haible <bruno@clisp.org>
8027 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
8028 use the converted UTF-8 variant of the name instead.
8030 2009-05-03 Jim Meyering <meyering@redhat.com>
8032 tests: tighten some getdate tests
8033 * tests/test-getdate.c (main): Tighten tests: require equality,
8034 not just greater than. Set TZ envvar to UTC0.
8036 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
8038 getdate: correctly interpret "next monday" when run on a Monday
8039 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
8040 that e.g., "next tues" (when run on a tuesday) results in a date
8041 that is one week in the future, and not today's date.
8042 I.e., add a week when the wday is the same as the current one.
8043 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
8044 and earlier by Martin Bernreuther and Jan Minář.
8045 * tests/test-getdate.c (main): Check that "next DAY" is always in
8046 the future and that "last DAY" is always in the past.
8048 2009-05-02 Jim Meyering <meyering@redhat.com>
8050 build: ensure that a release build fails when a submodule is unclean
8051 * top/maint.mk (no-submodule-changes): New rule.
8052 (alpha beta major): Depend on it.
8054 2009-05-02 Bruno Haible <bruno@clisp.org>
8056 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
8057 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
8058 shell variable gl_fnmatch_required to detect which variant is
8060 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
8061 gl_FUNC_FNMATCH_POSIX.
8062 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
8063 exclude fnmatch-posix.
8065 2009-05-02 Bruno Haible <bruno@clisp.org>
8067 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
8068 * modules/mbsrtowcs (License): Change to LGPLv2+.
8069 * modules/strnlen1 (License): Likewise.
8070 Reported by Simon Josefsson.
8072 2009-05-02 Bruno Haible <bruno@clisp.org>
8074 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
8076 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
8077 gnulib-tool was called with option --source-base=lib.
8079 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8081 Use automake *-local hooks without commands, for extensibility.
8082 * modules/localcharset (Makefile.am): Rename install-exec-local
8083 rule to install-exec-localcharset, and make it a prerequisite of
8084 install-exec-local. Likewise, rename the uninstall-local rule to
8085 uninstall-localcharset, and make it a prerequisite of the former.
8087 2009-05-01 Bruno Haible <bruno@clisp.org>
8089 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
8090 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
8091 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
8092 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
8093 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
8094 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
8095 m4/locale-zh.m4, m4/codeset.m4.
8097 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
8098 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
8099 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
8102 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
8103 REPLACE_WCRTOMB if mbstate_t must be replaced.
8104 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
8105 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
8107 2009-05-01 Bruno Haible <bruno@clisp.org>
8109 Avoid compiler warnings when redefining macros defined by <libintl.h>.
8110 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
8111 dngettext, dcngettext, textdomain, bindtextdomain,
8112 bind_textdomain_codeset): Undefine before redefining.
8114 2009-04-30 Bruno Haible <bruno@clisp.org>
8116 Fix bug introduced on 2009-04-25.
8117 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
8118 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
8119 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
8121 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
8123 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
8125 Reported by Elbert_Pol <elbert.pol@gmail.com>.
8127 2009-04-28 Bruno Haible <bruno@clisp.org>
8130 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
8131 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
8132 * lib/unicase.h (u*_casexfrm): Likewise.
8133 Reported by Paolo Bonzini.
8135 2009-04-28 Bruno Haible <bruno@clisp.org>
8137 Fix a compilation error.
8138 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
8139 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
8140 Reported by Jim Meyering.
8142 2009-04-27 Bruno Haible <bruno@clisp.org>
8144 New module 'libunistring'.
8145 * modules/libunistring: New file.
8146 * m4/libunistring.m4: New file.
8147 * MODULES.html.sh (Unicode string functions): Add it.
8149 2009-04-27 Eric Blake <ebb9@byu.net>
8151 maint.mk: allow package-specific header to provide <config.h>
8152 * top/maint.mk (sc_require_config_h): New variable.
8153 (sc_require_config_h, sc_require_config_h_first): Use it.
8155 2009-04-27 Simon Josefsson <simon@josefsson.org>
8157 * top/maint.mk (sc_avoid_if_before_free): Except
8158 useless-if-before-free script.
8160 2009-04-27 Eric Blake <ebb9@byu.net>
8162 maintainer-makefile: depend on all required helper scripts
8163 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
8164 useless-if-before-free.
8165 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
8166 version, rather than assuming gnulib checkout is available.
8167 Reported by Simen Josefsson.
8169 2009-04-26 Bruno Haible <bruno@clisp.org>
8171 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
8172 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
8175 2009-04-26 Bruno Haible <bruno@clisp.org>
8177 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
8178 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
8179 AC_LIB_HAVE_LINKFLAGS.
8181 2009-04-26 Bruno Haible <bruno@clisp.org>
8183 Simplify calling convention of u*_conv_from_encoding.
8184 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
8185 u32_conv_from_encoding): Expect a resultbuf argument and return the
8186 result directly as a pointer.
8187 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
8188 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
8189 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
8190 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
8191 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
8192 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
8194 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
8195 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
8196 * lib/vasnprintf.c (VASNPRINTF): Update.
8197 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
8198 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
8199 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
8200 * NEWS: Mention the change.
8202 2009-04-26 Bruno Haible <bruno@clisp.org>
8204 Simplify calling convention of u*_conv_to_encoding.
8205 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
8206 u32_conv_to_encoding): Expect a resultbuf argument and return the
8207 result directly as a pointer.
8208 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8209 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
8210 freeing scaled_offsets if mem_iconveha failed.
8211 * lib/unicase/u-casexfrm.h (FUNC): Update.
8212 * lib/uninorm/u-normxfrm.h (FUNC): Update.
8213 * lib/vasnprintf.c (VASNPRINTF): Update.
8214 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
8215 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
8216 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
8217 * NEWS: Mention the change.
8219 2009-04-26 Bruno Haible <bruno@clisp.org>
8221 Avoid test failures on AIX and OSF/1.
8222 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
8224 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
8225 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
8227 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
8228 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
8229 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
8230 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
8231 * doc/posix-functions/malloc.texi: Document the portability problem
8232 related to malloc(0).
8234 2009-04-26 Bruno Haible <bruno@clisp.org>
8236 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
8237 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
8238 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
8240 2009-04-25 Bruno Haible <bruno@clisp.org>
8242 Avoid link error when creating a namespace clean library.
8243 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
8244 as macro with arguments if already defined as an alias.
8245 * lib/signbitf.c (gl_signbitf): Don't undefine.
8246 * lib/signbitd.c (gl_signbitd): Don't undefine.
8247 * lib/signbitl.c (gl_signbitl): Don't undefine.
8249 2009-04-25 Jim Meyering <meyering@redhat.com>
8251 vc-list-files: fix another quoting bug
8252 * build-aux/vc-list-files: Avoid sed backslash expansion
8253 of pathological directory names.
8255 2009-04-25 Eric Blake <ebb9@byu.net>
8257 vc-list-files: fix shell quoting error
8258 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
8261 2009-04-25 Jim Meyering <meyering@redhat.com>
8263 vc-list-files: restore lost functionality with subdir argument
8264 * build-aux/vc-list-files: When given a non-"." sub-directory
8265 argument, substitute the $dir/ prefix back onto each resulting name.
8266 Otherwise, coreutils' root_tests check would fail.
8268 2009-04-24 Eric Blake <ebb9@byu.net>
8270 vc-list-files: ignore git symlinks
8271 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
8272 than ls-files, to ignore git symlinks.
8274 maint.mk: import improvements from m4
8275 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
8276 (move_if_change): Delete unused macro.
8277 (news-date-check, vc-diff-check): Support VPATH builds.
8278 (announcement): Likewise. Split --bootstrap-tools list...
8279 (boostrap-tools): ...into separate list, which can be overridden
8281 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
8282 requiring dependency on useless-if-before-free module.
8283 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
8284 Support VPATH builds.
8286 2009-04-24 Jim Meyering <meyering@redhat.com>
8288 maint.mk: remove coreutils-specific rules and variables
8289 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
8290 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
8291 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
8293 maint.mk: remove obsolete rule
8294 * top/maint.mk (rel-check): Remove rule.
8295 (WGET, WGETFLAGS): Remove now-unused variables.
8297 2009-04-24 Simon Josefsson <simon@josefsson.org>
8299 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
8302 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
8303 '$(PATH_SEPARATOR)' instead of ':'.
8305 2009-04-24 Simon Josefsson <simon@josefsson.org>
8307 * lib/getopt1.c (main): Use 'const' for static array.
8309 2009-04-24 Simon Josefsson <simon@josefsson.org>
8311 * top/maint.mk: Sync with coreutils.
8312 * NEWS: Explain incompatibilities.
8314 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
8315 Bruno Haible <bruno@clisp.org>
8317 Fix cross-compilation results.
8318 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
8319 statement, as third argument of AC_TRY_RUN.
8320 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
8321 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
8323 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
8324 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
8326 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8327 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
8328 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
8330 2009-04-20 Bruno Haible <bruno@clisp.org>
8332 Avoid test failure on mingw.
8333 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
8335 2009-04-20 Bruno Haible <bruno@clisp.org>
8337 Avoid compilation error on mingw.
8338 * modules/localename-tests (Depends-on): Add locale.
8340 2009-04-19 Bruno Haible <bruno@clisp.org>
8342 Support for building a shared library on Windows platforms.
8343 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
8344 (main): Test the presence of UNINORM_NFC here.
8345 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
8346 (main): Test the presence of UNINORM_NFD here.
8347 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
8348 (main): Test the presence of UNINORM_NFKC here.
8349 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
8350 (main): Test the presence of UNINORM_NFKD here.
8352 2009-04-19 Bruno Haible <bruno@clisp.org>
8354 Avoid a compiler warning.
8355 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
8356 Change type of variable 'sequence'.
8358 2009-04-19 Bruno Haible <bruno@clisp.org>
8360 * modules/configmake (Makefile.am): When the contents of configmake.h
8361 does not change, arrange to preserve its modification time.
8363 2009-04-17 Simon Josefsson <simon@josefsson.org>
8365 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
8368 2009-04-16 Jim Meyering <meyering@redhat.com>
8370 useless-if-before-free: improve conversion code
8371 * build-aux/useless-if-before-free: Adjust code-in-comment to match
8372 "...!= 0" as well as "...!= NULL". emacs has one of the former.
8374 2009-04-14 Bruno Haible <bruno@clisp.org>
8376 * modules/fcntl (Depends-on): Add extensions.
8377 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
8379 2009-04-12 Ben Pfaff <blp@gnu.org>
8381 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
8382 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
8384 2009-03-20 Ben Pfaff <blp@gnu.org>
8386 Make rename replace existing destinations on Windows.
8387 * m4/rename.m4: Add test for Mingw.
8388 * lib/rename.c: Add rename replacement that uses MoveFileEx with
8389 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
8390 * doc/posix-functions/rename.texi: Document.
8392 2009-04-10 Bruno Haible <bruno@clisp.org>
8394 New include file "iconveh.h".
8395 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
8396 * lib/striconveh.h: Include it.
8397 (enum iconv_ilseq_handler): Remove definition.
8398 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
8400 * lib/striconveha.c: Include striconveh.h.
8401 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
8402 * modules/striconveh (Files): Add lib/iconveh.h.
8403 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
8406 2009-04-10 Bruno Haible <bruno@clisp.org>
8408 * lib/uniconv.h: Update comment.
8410 2009-04-10 Bruno Haible <bruno@clisp.org>
8412 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
8414 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
8415 * lib/unistr/u16-mbtouc-aux.c: Likewise.
8416 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
8417 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
8418 "unistring-notinline.h", so that the function gets defined always.
8419 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
8420 * lib/unistr/u8-uctomb.c: Likewise.
8421 * lib/unistr/u16-mbtouc.c: Likewise.
8422 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
8423 * lib/unistr/u16-uctomb.c: Likewise.
8424 * lib/unistr/u32-mbtouc.c: Likewise.
8425 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
8426 * lib/unistr/u32-uctomb.c: Likewise.
8428 2009-04-10 Bruno Haible <bruno@clisp.org>
8430 Mark 'utime' obsolete.
8431 * modules/utime (Status, Notice): New sections.
8432 Suggested by Jim Meyering.
8434 Fix cross-compile guess for utime test.
8435 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
8437 * doc/posix-functions/utime.texi: Give more precisions.
8438 Reported by Jan <ipif@ymail.com>.
8440 2009-04-09 Kamil Dudka <kdudka@redhat.com>
8442 filevercmp: correct today's change
8443 * lib/filevercmp.c: Also handle coreutils' test inputs.
8444 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
8446 Fix regression in 'filevercmp' module. Thanks Sven Joachim
8448 * lib/filevercmp.c: Special handle for "", "." and "..".
8449 * tests/test-filevercmp.c: Enlarge the set suite.
8451 2009-04-07 Jim Meyering <meyering@redhat.com>
8453 useless-if-before-free: show how to remove braced useless free, too
8454 * build-aux/useless-if-before-free: still only in a comment, though.
8456 2009-04-07 Reuben Thomas <rrt@sc3d.org>
8458 maint.mk: import changes to syntax-check macros from coreutils
8459 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
8460 Use them in the relevant macros.
8462 2009-04-06 Bruno Haible <bruno@clisp.org>
8464 Fix unportable use of bit-fields.
8465 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
8466 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
8467 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
8469 2009-04-06 Bruno Haible <bruno@clisp.org>
8471 Avoid test failures on AIX and OSF/1.
8472 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
8473 that malloc(0) = NULL.
8474 * tests/unicase/test-u8-tolower.c (check): Likewise.
8475 * tests/unicase/test-u8-totitle.c (check): Likewise.
8476 * tests/unicase/test-u8-toupper.c (check): Likewise.
8477 * tests/unicase/test-u16-casefold.c (check): Likewise.
8478 * tests/unicase/test-u16-tolower.c (check): Likewise.
8479 * tests/unicase/test-u16-totitle.c (check): Likewise.
8480 * tests/unicase/test-u16-toupper.c (check): Likewise.
8481 * tests/unicase/test-u32-casefold.c (check): Likewise.
8482 * tests/unicase/test-u32-tolower.c (check): Likewise.
8483 * tests/unicase/test-u32-totitle.c (check): Likewise.
8484 * tests/unicase/test-u32-toupper.c (check): Likewise.
8485 * tests/uninorm/test-u8-nfc.c (check): Likewise.
8486 * tests/uninorm/test-u8-nfd.c (check): Likewise.
8487 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
8488 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
8489 * tests/uninorm/test-u16-nfc.c (check): Likewise.
8490 * tests/uninorm/test-u16-nfd.c (check): Likewise.
8491 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
8492 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
8493 * tests/uninorm/test-u32-nfc.c (check): Likewise.
8494 * tests/uninorm/test-u32-nfd.c (check): Likewise.
8495 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
8496 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
8498 2009-04-05 Bruno Haible <bruno@clisp.org>
8500 Work around an autoconf limitation.
8501 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
8502 comment line if it would be longer than 3 KB.
8504 2009-04-05 Bruno Haible <bruno@clisp.org>
8506 Avoid test failure with libiconv-1.13.
8507 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
8508 of the expected test results.
8510 2009-04-05 Bruno Haible <bruno@clisp.org>
8512 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
8513 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
8514 that it should be installed.
8516 2009-04-05 Bruno Haible <bruno@clisp.org>
8518 * gnulib-tool: New option --copy-file.
8519 (func_usage): Document it.
8520 (func_dest_tmpfilename): Moved out of func_import.
8521 (func_add_file, func_update_file): New functions, extracted from
8523 (func_import): Update.
8525 2009-04-05 Karl Berry <karl@gnu.org>
8527 * README: prominently mention gnulib-tool.
8528 Rearrange sections so getting the code is near the top.
8530 2009-04-05 Bruno Haible <bruno@clisp.org>
8532 * lib/unicase.h: Mention u*_cmp2.
8533 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
8534 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
8535 * lib/unicase/ulc-casecmp.c: Likewise.
8536 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
8537 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
8538 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
8540 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
8541 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
8543 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
8546 * lib/uninorm.h: Mention u*_cmp2.
8547 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
8548 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
8549 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
8550 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
8551 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
8553 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
8555 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
8558 New module 'unistr/u32-cmp2'.
8559 * lib/unistr/u32-cmp2.c: New file.
8560 * modules/unistr/u32-cmp2: New file.
8562 New module 'unistr/u16-cmp2'.
8563 * lib/unistr/u16-cmp2.c: New file.
8564 * modules/unistr/u16-cmp2: New file.
8566 New module 'unistr/u8-cmp2'.
8567 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
8568 * lib/unistr/u8-cmp2.c: New file.
8569 * lib/unistr/u-cmp2.h: New file.
8570 * modules/unistr/u8-cmp2: New file.
8572 2009-04-05 Bruno Haible <bruno@clisp.org>
8574 * lib/unictype.h (uc_property_is_valid): New macro.
8575 * tests/unictype/test-pr_byname.c (main): Use it.
8577 * lib/unistr.h: Doc fixes.
8578 * lib/uniconv.h: Doc fixes.
8579 * lib/unictype.h: Doc fixes.
8581 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
8583 Port coreutils 7.2 to Solaris 8.
8585 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
8586 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
8587 for Solaris 8. This is a bit of a hack, as it means it's the
8588 caller's responsibility to add -lnsl if needed, but most likely it
8589 won't be needed since only getaddrinfo uses this and getaddrinfo
8590 isn't needed on Solaris 8.
8592 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
8593 problem to Solaris 8 encountered with coreutils 7.2, which
8594 resulted in a message "fnmatch.c:292: warning: passing argument 4
8595 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
8596 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
8598 2009-04-03 Simon Josefsson <simon@josefsson.org>
8600 * m4/ld-version-script.m4: Add FIXME comment.
8602 2009-04-02 Simon Josefsson <simon@josefsson.org>
8604 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
8607 2009-04-02 Bruno Haible <bruno@clisp.org>
8609 * Makefile (info, html, dvi, pdf): Combine the rules.
8610 Suggested by Jim Meyering.
8612 2009-04-01 Bruno Haible <bruno@clisp.org>
8614 * Makefile (info, html, dvi, pdf): New targets.
8615 Reported by Reuben Thomas <rrt@sc3d.org>.
8617 2009-04-01 Bruno Haible <bruno@clisp.org>
8619 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
8620 can be put into PATH.
8621 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
8623 2009-04-01 Bruno Haible <bruno@clisp.org>
8625 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
8627 2009-04-01 Bruno Haible <bruno@clisp.org>
8629 Rename module 'visibility'.
8630 * modules/lib-symbol-visibility: Renamed from modules/visibility.
8631 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
8632 * doc/gnulib.texi: Update.
8633 * MODULES.html.sh (Misc): Update.
8634 * NEWS: Mention the change.
8636 2009-04-01 Simon Josefsson <simon@josefsson.org>
8638 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
8639 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
8640 Eric Blake <ebb9@byu.net> for review.
8641 * MODULES.html.sh: Add lib-msvc-compat.
8642 * doc/gnulib.texi: Link to new section.
8643 * m4/ld-output-def.m4: New file.
8644 * doc/ld-output-def.texi: New file.
8646 2009-04-01 Simon Josefsson <simon@josefsson.org>
8648 Rename ld-version-script to lib-symbol-versions. Suggested by
8649 Bruno Haible <bruno@clisp.org>.
8650 * modules/ld-version-script: Renamed to lib-symbol-versions.
8651 * doc/ld-version-script.texi: Fix module name.
8652 * MODULES.html.sh: Add lib-symbol-versions.
8654 2009-03-31 Simon Josefsson <simon@josefsson.org>
8656 * modules/u64-tests: New file.
8657 * tests/test-u64.c: New file.
8659 2009-03-04 Simon Josefsson <simon@josefsson.org>
8661 * MODULES.html.sh: Mention u64.
8662 * modules/u64: New module.
8663 * modules/crypto/sha512: Depend on u64 module instead of providing
8666 2009-03-27 Eric Blake <ebb9@byu.net>
8668 test-strerror: make debugging EAI_SYSTEM easier
8669 * modules/getaddrinfo-tests (Depends-on): Add strerror.
8670 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
8671 failure was EAI_SYSTEM.
8673 2009-03-25 Bruno Haible <bruno@clisp.org>
8675 Fix a problem with --enable-relocatable on Solaris 7.
8676 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
8679 2009-03-25 Eric Blake <ebb9@byu.net>
8681 test-sockets: avoid gcc warning
8682 * tests/test-sockets.c (main): Silence compiler warning.
8684 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
8686 New modules nproc, pthread, contributed by Glen Lenker.
8688 * MODULES.html.sh: Add pthread, nproc.
8689 * lib/nproc.c: New file.
8690 * lib/nproc.h: New file.
8691 * lib/pthread.in.h: New file.
8692 * m4/pthread.m4: New file.
8693 * modules/nproc: New file.
8694 * modules/pthread: New file.
8696 2009-03-24 Simon Josefsson <simon@josefsson.org>
8698 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
8701 2009-03-24 Kamil Dudka <kdudka@redhat.com>
8703 filevercmp: handle simple~ and numbered.~3~ backup suffixes
8704 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
8705 * tests/test-filevercmp.c: Add tests for backup suffixes.
8707 2009-03-24 Simon Josefsson <simon@josefsson.org>
8709 * modules/stdlib (Depends-on): Add stdint, needed when defining
8710 struct random_data on, for example, HP-UX 10.20. Reported by
8711 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8713 2009-03-24 Simon Josefsson <simon@josefsson.org>
8715 * lib/readline.c (readline): Call fflush on stdout after printing
8718 2009-03-20 Bruno Haible <bruno@clisp.org>
8720 Remove dependency from 'close' module to -lws2_32 on native Windows.
8721 * lib/close-hook.h: New file.
8722 * lib/close-hook.c: New file.
8723 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
8725 (_gl_close_fd_maybe_socket): Remove function.
8726 (rpl_close): Invoke execute_all_close_hooks instead of
8727 _gl_close_fd_maybe_socket.
8728 * lib/sockets.c: Include close-hook.h, w32sock.h.
8729 (close_fd_maybe_socket): New function, essentially from lib/close.c.
8730 (close_sockets_hook): New variable.
8731 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
8732 (gl_sockets_cleanup): Unregister it.
8733 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
8734 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
8735 * modules/close-hook: New file.
8736 * modules/close (Files): Remove lib/w32sock.h.
8737 (Depends-on): Add close-hook.
8738 (Link): Remove section.
8739 * modules/sockets (Files): Add lib/w32sock.h.
8740 (Depends-on): Add close-hook.
8741 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
8743 * NEWS: Mention that LIB_CLOSE is gone.
8745 2009-03-23 Eric Blake <ebb9@byu.net>
8747 signal-tests: test previous patch
8748 * tests/test-signal.c: New file.
8749 * modules/signal-tests: Likewise.
8751 signal.h: always support 'volatile sig_atomic_t'
8752 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
8753 (gl_SIGNAL_H_DEFAULTS): Add a default.
8754 * modules/signal (Makefile.am): Substitute if needed.
8755 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
8756 users can blindly add volatile.
8757 * doc/posix-headers/signal.texi (signal.h): Document it.
8758 Reported by Matthew Woehlke.
8760 2009-03-23 Jim Meyering <meyering@redhat.com>
8762 pathmax: PATH_MAX: use pathconf only when available
8763 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
8764 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
8765 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
8766 This avoids a link failure in a PSP cross-compilation environment
8767 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
8769 * lib/vasnprintf.c (divide): Fix typo in comment.
8771 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8773 * gnulib-tool (func_filter_filelist): Fix comment.
8775 2009-03-20 Bruno Haible <bruno@clisp.org>
8777 Make sockets.h self-contained.
8778 * lib/sockets.c: Include sockets.h first.
8779 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
8781 2009-03-19 Eric Blake <ebb9@byu.net>
8783 doc: mention more functions added in cygwin 1.7.0
8784 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
8786 * doc/posix-functions/log2f.texi: Likewise.
8788 2009-03-19 Jim Meyering <meyering@redhat.com>
8790 fsusage: avoid syntax error due to statement-before-declaration
8791 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
8792 after all declarations. Reported by Matthew Woehlke in
8793 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
8795 2009-03-18 Eric Blake <ebb9@byu.net>
8797 build-aux/compile: sync from automake
8798 * build-aux/compile: New file, from automake.
8799 * config/srclist.txt: Mention build-aux/compile.
8801 2009-03-17 Bruno Haible <bruno@clisp.org>
8803 * lib/git-merge-changelog.c: Fix typo in comment.
8804 Reported by Reuben Thomas <rrt@sc3d.org>.
8806 2009-03-17 Reuben Thomas <rrt@sc3d.org>
8808 * m4/regex.m4: update and improve help for
8809 --without-included-regex.
8811 2009-03-17 Simon Josefsson <simon@josefsson.org>
8813 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
8814 failure on missing include files.
8816 2009-03-17 Eric Blake <ebb9@byu.net>
8818 doc: mention more functions added in cygwin 1.7.0
8819 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
8821 * doc/posix-functions/fwscanf.texi: Likewise.
8822 * doc/posix-functions/swprintf.texi: Likewise.
8823 * doc/posix-functions/swscanf.texi: Likewise.
8824 * doc/posix-functions/vfwprintf.texi: Likewise.
8825 * doc/posix-functions/vfwscanf.texi: Likewise.
8826 * doc/posix-functions/vswprintf.texi: Likewise.
8827 * doc/posix-functions/vswscanf.texi: Likewise.
8828 * doc/posix-functions/vwprintf.texi: Likewise.
8829 * doc/posix-functions/vwscanf.texi: Likewise.
8830 * doc/posix-functions/wcscasecmp.texi: Likewise.
8831 * doc/posix-functions/wcsdup.texi: Likewise.
8832 * doc/posix-functions/wcsftime.texi: Likewise.
8833 * doc/posix-functions/wcsncasecmp.texi: Likewise.
8834 * doc/posix-functions/wprintf.texi: Likewise.
8835 * doc/posix-functions/wscanf.texi: Likewise.
8836 * doc/glibc-functions/gethostbyname2.texi: Likewise.
8838 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8840 maint.mk: really add $(AM_MAKEFLAGS)
8841 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
8842 was inadvertently omitted in the last commit.
8843 Spotted by Bruno Haible.
8845 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
8846 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
8847 $(AM_MAKEFLAGS)' rather than plain `make'.
8849 gnulib-tool: execute $MAKE not make
8850 * gnulib-tool: Default $MAKE to 'make'.
8851 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
8852 than make. Initialize $MAKE in the do-autobuild script.
8854 gnulib-tool: use $MAKE not make in generated files
8855 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
8856 make, in generated files. Initialize $MAKE in the do-autobuild
8859 * top/GNUmakefile (_have-git-version-gen): Fix typo.
8861 GNUmakefile: disable parallelism only for multiple, recursive targets
8862 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
8863 additions in the Makefile.
8864 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
8866 (.NOTPARALLEL): Only disable parallel builds if multiple targets
8867 are listed on the command line and at least one of them is
8868 listed in $(ALL_RECURSIVE_TARGETS).
8870 2009-03-14 Bruno Haible <bruno@clisp.org>
8872 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
8873 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
8874 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
8875 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
8876 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
8877 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
8878 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
8880 * modules/unistr/u8-strchr (Depends-on): Likewise.
8881 * modules/unistr/u8-strrchr (Depends-on): Likewise.
8882 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
8884 * modules/unistr/u16-strchr (Depends-on): Likewise.
8885 * modules/unistr/u16-strrchr (Depends-on): Likewise.
8887 2009-03-12 Bruno Haible <bruno@clisp.org>
8889 Work around select() bug on Interix 3.5.
8890 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
8891 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
8892 * m4/select.m4: New file.
8893 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
8894 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
8895 * modules/select (Files): Add m4/select.m4.
8896 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
8897 * modules/nanosleep (Depends-on): Add select.
8898 * modules/poll (Depends-on): Likewise.
8899 * doc/posix-functions/select.texi: Mention the Interix bug.
8900 Reported by Markus Duft <mduft@gentoo.org>.
8902 * lib/select.c: Renamed from lib/winsock-select.c.
8903 * modules/select (Files): Add lib/select.c, remove
8904 lib/winsock-select.c.
8905 (configure.ac): Update.
8907 2009-03-12 Jim Meyering <meyering@redhat.com>
8909 avoid gcc warnings about unused macro definitions
8910 * lib/readtokens.c (STREQ): Remove unused definition.
8911 * lib/xmalloc.c (SIZE_MAX): Likewise.
8912 * lib/openat-die.c (N_): Likewise.
8913 * lib/mountlist.c (SIZE_MAX): Remove definition.
8914 Instead, include <stdint.h>.
8915 * lib/readutmp.c: Likewise.
8916 * modules/readutmp (Depends-on): Add stdint.
8917 * modules/mountlist (Depends-on): Add stdint.
8918 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
8920 2009-03-10 Bruno Haible <bruno@clisp.org>
8922 Tests for module 'mbmemcasecoll'.
8923 * modules/mbmemcasecoll-tests: New file.
8924 * tests/test-mbmemcasecoll1.sh: New file.
8925 * tests/test-mbmemcasecoll2.sh: New file.
8926 * tests/test-mbmemcasecoll3.sh: New file.
8927 * tests/test-mbmemcasecoll.c: New file.
8929 New module 'mbmemcasecoll'.
8930 * lib/mbmemcasecoll.h: New file.
8931 * lib/mbmemcasecoll.c: New file.
8932 * modules/mbmemcasecoll: New file.
8934 * tests/test-mbmemcasecmp.h: New file, extracted from
8935 tests/test-mbmemcasecmp.c.
8936 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
8937 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
8939 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
8941 2009-03-09 Bruno Haible <bruno@clisp.org>
8943 Tests for module 'mbmemcasecmp'.
8944 * modules/mbmemcasecmp-tests: New file.
8945 * tests/test-mbmemcasecmp1.sh: New file.
8946 * tests/test-mbmemcasecmp2.sh: New file.
8947 * tests/test-mbmemcasecmp3.sh: New file.
8948 * tests/test-mbmemcasecmp.c: New file.
8950 New module 'mbmemcasecmp'.
8951 * lib/mbmemcasecmp.h: New file.
8952 * lib/mbmemcasecmp.c: New file.
8953 * modules/mbmemcasecmp: New file.
8955 2009-03-09 Bruno Haible <bruno@clisp.org>
8957 Tests for module 'unicase/ulc-casecoll'.
8958 * modules/unicase/ulc-casecoll-tests: New file.
8959 * tests/unicase/test-ulc-casecoll1.sh: New file.
8960 * tests/unicase/test-ulc-casecoll2.sh: New file.
8961 * tests/unicase/test-ulc-casecoll.c: New file.
8963 New module 'unicase/ulc-casecoll'.
8964 * lib/unicase.h (ulc_casecoll): New declaration.
8965 * lib/unicase/ulc-casecoll.c: New file.
8966 * modules/unicase/ulc-casecoll: New file.
8968 New module 'unicase/ulc-casexfrm'.
8969 * lib/unicase.h (ulc_casexfrm): New declaration.
8970 * lib/unicase/ulc-casexfrm.c: New file.
8971 * modules/unicase/ulc-casexfrm: New file.
8973 2009-03-09 Bruno Haible <bruno@clisp.org>
8975 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
8978 * m4/mbscasecmp.m4: Remove file.
8979 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
8980 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
8982 * m4/mbscasestr.m4: Remove file.
8983 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
8984 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
8986 * m4/mbschr.m4: Remove file.
8987 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
8988 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
8990 * m4/mbscspn.m4: Remove file.
8991 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
8992 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
8994 * m4/mbslen.m4: Remove file.
8995 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
8996 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
8998 * m4/mbsncasecmp.m4: Remove file.
8999 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
9000 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
9002 * m4/mbsnlen.m4: Remove file.
9003 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
9004 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
9006 * m4/mbspbrk.m4: Remove file.
9007 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
9008 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
9010 * m4/mbspcasecmp.m4: Remove file.
9011 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
9012 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
9014 * m4/mbsrchr.m4: Remove file.
9015 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
9016 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
9018 * m4/mbssep.m4: Remove file.
9019 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
9020 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
9022 * m4/mbsspn.m4: Remove file.
9023 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
9024 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
9026 * m4/mbsstr.m4: Remove file.
9027 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
9028 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
9030 * m4/mbstok_r.m4: Remove file.
9031 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
9032 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
9034 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
9036 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
9037 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
9039 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
9041 2009-03-08 Bruno Haible <bruno@clisp.org>
9043 Tests for module 'unicase/ulc-casecmp'.
9044 * modules/unicase/ulc-casecmp-tests: New file.
9045 * tests/unicase/test-ulc-casecmp1.sh: New file.
9046 * tests/unicase/test-ulc-casecmp2.sh: New file.
9047 * tests/unicase/test-ulc-casecmp.c: New file.
9049 New module 'unicase/ulc-casecmp'.
9050 * lib/unicase.h (ulc_casecmp): New declaration.
9051 * lib/unicase/ulc-casecmp.c: New file.
9052 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
9054 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
9055 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
9056 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
9057 * modules/unicase/ulc-casecmp: New file.
9059 Tests for module 'unicase/u32-is-cased'.
9060 * modules/unicase/u32-is-cased-tests: New file.
9061 * tests/unicase/test-u32-is-cased.c: New file.
9063 Tests for module 'unicase/u16-is-cased'.
9064 * modules/unicase/u16-is-cased-tests: New file.
9065 * tests/unicase/test-u16-is-cased.c: New file.
9067 Tests for module 'unicase/u8-is-cased'.
9068 * modules/unicase/u8-is-cased-tests: New file.
9069 * tests/unicase/test-u8-is-cased.c: New file.
9070 * tests/unicase/test-is-cased.h: New file.
9072 New module 'unicase/u32-is-cased'.
9073 * lib/unicase/u32-is-cased.c: New file.
9074 * modules/unicase/u32-is-cased: New file.
9076 New module 'unicase/u16-is-cased'.
9077 * lib/unicase/u16-is-cased.c: New file.
9078 * modules/unicase/u16-is-cased: New file.
9080 New module 'unicase/u8-is-cased'.
9081 * lib/unicase/u8-is-cased.c: New file.
9082 * lib/unicase/u-is-cased.h: New file.
9083 * modules/unicase/u8-is-cased: New file.
9085 Tests for module 'unicase/u32-is-casefolded'.
9086 * modules/unicase/u32-is-casefolded-tests: New file.
9087 * tests/unicase/test-u32-is-casefolded.c: New file.
9089 Tests for module 'unicase/u16-is-casefolded'.
9090 * modules/unicase/u16-is-casefolded-tests: New file.
9091 * tests/unicase/test-u16-is-casefolded.c: New file.
9093 Tests for module 'unicase/u8-is-casefolded'.
9094 * modules/unicase/u8-is-casefolded-tests: New file.
9095 * tests/unicase/test-u8-is-casefolded.c: New file.
9096 * tests/unicase/test-is-casefolded.h: New file.
9098 New module 'unicase/u32-is-casefolded'.
9099 * lib/unicase/u32-is-casefolded.c: New file.
9100 * modules/unicase/u32-is-casefolded: New file.
9102 New module 'unicase/u16-is-casefolded'.
9103 * lib/unicase/u16-is-casefolded.c: New file.
9104 * modules/unicase/u16-is-casefolded: New file.
9106 New module 'unicase/u8-is-casefolded'.
9107 * lib/unicase/u8-is-casefolded.c: New file.
9108 * modules/unicase/u8-is-casefolded: New file.
9110 Tests for module 'unicase/u32-is-titlecase'.
9111 * modules/unicase/u32-is-titlecase-tests: New file.
9112 * tests/unicase/test-u32-is-titlecase.c: New file.
9114 Tests for module 'unicase/u16-is-titlecase'.
9115 * modules/unicase/u16-is-titlecase-tests: New file.
9116 * tests/unicase/test-u16-is-titlecase.c: New file.
9118 Tests for module 'unicase/u8-is-titlecase'.
9119 * modules/unicase/u8-is-titlecase-tests: New file.
9120 * tests/unicase/test-u8-is-titlecase.c: New file.
9121 * tests/unicase/test-is-titlecase.h: New file.
9123 New module 'unicase/u32-is-titlecase'.
9124 * lib/unicase/u32-is-titlecase.c: New file.
9125 * modules/unicase/u32-is-titlecase: New file.
9127 New module 'unicase/u16-is-titlecase'.
9128 * lib/unicase/u16-is-titlecase.c: New file.
9129 * modules/unicase/u16-is-titlecase: New file.
9131 New module 'unicase/u8-is-titlecase'.
9132 * lib/unicase/u8-is-titlecase.c: New file.
9133 * modules/unicase/u8-is-titlecase: New file.
9135 Tests for module 'unicase/u32-is-lowercase'.
9136 * modules/unicase/u32-is-lowercase-tests: New file.
9137 * tests/unicase/test-u32-is-lowercase.c: New file.
9139 Tests for module 'unicase/u16-is-lowercase'.
9140 * modules/unicase/u16-is-lowercase-tests: New file.
9141 * tests/unicase/test-u16-is-lowercase.c: New file.
9143 Tests for module 'unicase/u8-is-lowercase'.
9144 * modules/unicase/u8-is-lowercase-tests: New file.
9145 * tests/unicase/test-u8-is-lowercase.c: New file.
9146 * tests/unicase/test-is-lowercase.h: New file.
9148 New module 'unicase/u32-is-lowercase'.
9149 * lib/unicase/u32-is-lowercase.c: New file.
9150 * modules/unicase/u32-is-lowercase: New file.
9152 New module 'unicase/u16-is-lowercase'.
9153 * lib/unicase/u16-is-lowercase.c: New file.
9154 * modules/unicase/u16-is-lowercase: New file.
9156 New module 'unicase/u8-is-lowercase'.
9157 * lib/unicase/u8-is-lowercase.c: New file.
9158 * modules/unicase/u8-is-lowercase: New file.
9160 Tests for module 'unicase/u32-is-uppercase'.
9161 * modules/unicase/u32-is-uppercase-tests: New file.
9162 * tests/unicase/test-u32-is-uppercase.c: New file.
9164 Tests for module 'unicase/u16-is-uppercase'.
9165 * modules/unicase/u16-is-uppercase-tests: New file.
9166 * tests/unicase/test-u16-is-uppercase.c: New file.
9168 Tests for module 'unicase/u8-is-uppercase'.
9169 * modules/unicase/u8-is-uppercase-tests: New file.
9170 * tests/unicase/test-u8-is-uppercase.c: New file.
9171 * tests/unicase/test-is-uppercase.h: New file.
9173 New module 'unicase/u32-is-uppercase'.
9174 * lib/unicase/u32-is-uppercase.c: New file.
9175 * modules/unicase/u32-is-uppercase: New file.
9177 New module 'unicase/u16-is-uppercase'.
9178 * lib/unicase/u16-is-uppercase.c: New file.
9179 * modules/unicase/u16-is-uppercase: New file.
9181 New module 'unicase/u8-is-uppercase'.
9182 * lib/unicase/u8-is-uppercase.c: New file.
9183 * modules/unicase/u8-is-uppercase: New file.
9185 New module 'unicase/u32-is-invariant'.
9186 * lib/unicase/u32-is-invariant.c: New file.
9187 * modules/unicase/u32-is-invariant: New file.
9189 New module 'unicase/u16-is-invariant'.
9190 * lib/unicase/u16-is-invariant.c: New file.
9191 * modules/unicase/u16-is-invariant: New file.
9193 New module 'unicase/u8-is-invariant'.
9194 * lib/unicase/u8-is-invariant.c: New file.
9195 * lib/unicase/invariant.h: New file.
9196 * lib/unicase/u-is-invariant.h: New file.
9197 * modules/unicase/u8-is-invariant: New file.
9199 Tests for module 'unicase/u32-casecoll'.
9200 * modules/unicase/u32-casecoll-tests: New file.
9201 * tests/unicase/test-u32-casecoll.c: New file.
9203 Tests for module 'unicase/u16-casecoll'.
9204 * modules/unicase/u16-casecoll-tests: New file.
9205 * tests/unicase/test-u16-casecoll.c: New file.
9207 Tests for module 'unicase/u8-casecoll'.
9208 * modules/unicase/u8-casecoll-tests: New file.
9209 * tests/unicase/test-u8-casecoll.c: New file.
9211 New module 'unicase/u32-casecoll'.
9212 * lib/unicase/u32-casecoll.c: New file.
9213 * modules/unicase/u32-casecoll: New file.
9215 New module 'unicase/u16-casecoll'.
9216 * lib/unicase/u16-casecoll.c: New file.
9217 * modules/unicase/u16-casecoll: New file.
9219 New module 'unicase/u8-casecoll'.
9220 * lib/unicase/u8-casecoll.c: New file.
9221 * lib/unicase/u-casecoll.h: New file.
9222 * modules/unicase/u8-casecoll: New file.
9224 New module 'unicase/u32-casexfrm'.
9225 * lib/unicase/u32-casexfrm.c: New file.
9226 * modules/unicase/u32-casexfrm: New file.
9228 New module 'unicase/u16-casexfrm'.
9229 * lib/unicase/u16-casexfrm.c: New file.
9230 * modules/unicase/u16-casexfrm: New file.
9232 New module 'unicase/u8-casexfrm'.
9233 * lib/unicase/u8-casexfrm.c: New file.
9234 * lib/unicase/u-casexfrm.h: New file.
9235 * modules/unicase/u8-casexfrm: New file.
9237 Tests for module 'unicase/u32-casecmp'.
9238 * modules/unicase/u32-casecmp-tests: New file.
9239 * tests/unicase/test-u32-casecmp.c: New file.
9241 Tests for module 'unicase/u16-casecmp'.
9242 * modules/unicase/u16-casecmp-tests: New file.
9243 * tests/unicase/test-u16-casecmp.c: New file.
9245 Tests for module 'unicase/u8-casecmp'.
9246 * modules/unicase/u8-casecmp-tests: New file.
9247 * tests/unicase/test-u8-casecmp.c: New file.
9248 * tests/unicase/test-casecmp.h: New file.
9250 New module 'unicase/u32-casecmp'.
9251 * lib/unicase/u32-casecmp.c: New file.
9252 * modules/unicase/u32-casecmp: New file.
9254 New module 'unicase/u16-casecmp'.
9255 * lib/unicase/u16-casecmp.c: New file.
9256 * modules/unicase/u16-casecmp: New file.
9258 New module 'unicase/u8-casecmp'.
9259 * lib/unicase/u8-casecmp.c: New file.
9260 * lib/unicase/u-casecmp.h: New file.
9261 * modules/unicase/u8-casecmp: New file.
9263 Tests for module 'unicase/u32-casefold'.
9264 * modules/unicase/u32-casefold-tests: New file.
9265 * tests/unicase/test-u32-casefold.c: New file.
9267 Tests for module 'unicase/u16-casefold'.
9268 * modules/unicase/u16-casefold-tests: New file.
9269 * tests/unicase/test-u16-casefold.c: New file.
9271 Tests for module 'unicase/u8-casefold'.
9272 * modules/unicase/u8-casefold-tests: New file.
9273 * tests/unicase/test-u8-casefold.c: New file.
9275 New module 'unicase/u32-casefold'.
9276 * lib/unicase/u32-casefold.c: New file.
9277 * modules/unicase/u32-casefold: New file.
9279 New module 'unicase/u16-casefold'.
9280 * lib/unicase/u16-casefold.c: New file.
9281 * modules/unicase/u16-casefold: New file.
9283 New module 'unicase/u8-casefold'.
9284 * lib/unicase/u8-casefold.c: New file.
9285 * lib/unicase/u-casefold.h: New file.
9286 * modules/unicase/u8-casefold: New file.
9288 New module 'unicase/tocasefold'.
9289 * lib/unicase/casefold.h: New file.
9290 * lib/unicase/tocasefold.c: New file.
9291 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
9292 * modules/unicase/tocasefold: New file.
9294 Tests for module 'unicase/u32-totitle'.
9295 * modules/unicase/u32-totitle-tests: New file.
9296 * tests/unicase/test-u32-totitle.c: New file.
9298 Tests for module 'unicase/u16-totitle'.
9299 * modules/unicase/u16-totitle-tests: New file.
9300 * tests/unicase/test-u16-totitle.c: New file.
9302 Tests for module 'unicase/u8-totitle'.
9303 * modules/unicase/u8-totitle-tests: New file.
9304 * tests/unicase/test-u8-totitle.c: New file.
9306 New module 'unicase/u32-totitle'.
9307 * lib/unicase/u32-totitle.c: New file.
9308 * modules/unicase/u32-totitle: New file.
9310 New module 'unicase/u16-totitle'.
9311 * lib/unicase/u16-totitle.c: New file.
9312 * modules/unicase/u16-totitle: New file.
9314 New module 'unicase/u8-totitle'.
9315 * lib/unicase/u8-totitle.c: New file.
9316 * lib/unicase/u-totitle.h: New file.
9317 * modules/unicase/u8-totitle: New file.
9319 Tests for module 'unicase/u32-tolower'.
9320 * modules/unicase/u32-tolower-tests: New file.
9321 * tests/unicase/test-u32-tolower.c: New file.
9323 Tests for module 'unicase/u16-tolower'.
9324 * modules/unicase/u16-tolower-tests: New file.
9325 * tests/unicase/test-u16-tolower.c: New file.
9327 Tests for module 'unicase/u8-tolower'.
9328 * modules/unicase/u8-tolower-tests: New file.
9329 * tests/unicase/test-u8-tolower.c: New file.
9331 New module 'unicase/u32-tolower'.
9332 * lib/unicase/u32-tolower.c: New file.
9333 * modules/unicase/u32-tolower: New file.
9335 New module 'unicase/u16-tolower'.
9336 * lib/unicase/u16-tolower.c: New file.
9337 * modules/unicase/u16-tolower: New file.
9339 New module 'unicase/u8-tolower'.
9340 * lib/unicase/u8-tolower.c: New file.
9341 * modules/unicase/u8-tolower: New file.
9343 Tests for module 'unicase/u32-toupper'.
9344 * modules/unicase/u32-toupper-tests: New file.
9345 * tests/unicase/test-u32-toupper.c: New file.
9347 Tests for module 'unicase/u16-toupper'.
9348 * modules/unicase/u16-toupper-tests: New file.
9349 * tests/unicase/test-u16-toupper.c: New file.
9351 Tests for module 'unicase/u8-toupper'.
9352 * modules/unicase/u8-toupper-tests: New file.
9353 * tests/unicase/test-u8-toupper.c: New file.
9355 New module 'unicase/u32-toupper'.
9356 * lib/unicase/u32-toupper.c: New file.
9357 * modules/unicase/u32-toupper: New file.
9359 New module 'unicase/u16-toupper'.
9360 * lib/unicase/u16-toupper.c: New file.
9361 * modules/unicase/u16-toupper: New file.
9363 New module 'unicase/u8-toupper'.
9364 * lib/unicase/u8-toupper.c: New file.
9365 * modules/unicase/u8-toupper: New file.
9367 New module 'unicase/u32-casemap'.
9368 * lib/unicase/u32-casemap.c: New file.
9369 * modules/unicase/u32-casemap: New file.
9371 New module 'unicase/u16-casemap'.
9372 * lib/unicase/u16-casemap.c: New file.
9373 * modules/unicase/u16-casemap: New file.
9375 New module 'unicase/u8-casemap'.
9376 * lib/unicase/unicasemap.h: New file.
9377 * lib/unicase/u8-casemap.c: New file.
9378 * lib/unicase/u-casemap.h: New file.
9379 * modules/unicase/u8-casemap: New file.
9381 New module 'unicase/special-casing'.
9382 * lib/unicase/special-casing.h: New file.
9383 * lib/unicase/special-casing.c: New file.
9384 * lib/unicase/special-casing-table.gperf: New file, generated by
9386 * modules/unicase/special-casing: New file.
9388 Tests for module 'unicase/locale-language'.
9389 * modules/unicase/locale-language-tests: New file.
9390 * tests/unicase/test-locale-language.sh: New file.
9391 * tests/unicase/test-locale-language.c: New file.
9393 New module 'unicase/locale-language'.
9394 * lib/unicase/locale-language.c: New file.
9395 * lib/unicase/locale-languages.gperf: New file.
9396 * modules/unicase/locale-language: New file.
9398 Generate more tables for case conversion and case folding.
9399 * lib/gen-uni-tables.c (SCC_*): New enum items.
9400 (struct special_casing_rule): New type.
9401 (casing_rules, num_casing_rules, allocated_casing_rules): New
9403 (add_casing_rule, fill_casing_rules): New functions.
9404 (struct casefold_rule): New type.
9405 (casefolding_rules, num_casefolding_rules,
9406 allocated_casefolding_rules): New variables.
9407 (fill_casefolding_rules): New function.
9408 (unicode_casefold): New variable.
9409 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
9410 sort_casing_rules, output_casing_rules): New functions.
9411 (main): Accept to more arguments: SpecialCasing.txt and
9412 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
9413 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
9414 Output mapping for casefolding.
9416 * lib/unicase.h: Include stdbool.h, uninorm.h.
9417 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
9418 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
9419 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
9421 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
9423 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
9424 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
9426 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
9427 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
9428 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
9429 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
9431 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
9433 2009-03-08 Bruno Haible <bruno@clisp.org>
9435 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
9436 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
9437 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
9438 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
9440 2009-03-07 Bruno Haible <bruno@clisp.org>
9442 Adjust u*_normcmp, u*_normcoll API.
9443 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
9444 u16_normcoll, u32_normcoll): Change failure conventions.
9445 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
9446 errno and return -1.
9447 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
9449 2009-03-07 Bruno Haible <bruno@clisp.org>
9451 Tests for module 'uninorm/u32-normcoll'.
9452 * modules/uninorm/u32-normcoll-tests: New file.
9453 * tests/uninorm/test-u32-normcoll.c: New file.
9455 Tests for module 'uninorm/u16-normcoll'.
9456 * modules/uninorm/u16-normcoll-tests: New file.
9457 * tests/uninorm/test-u16-normcoll.c: New file.
9459 Tests for module 'uninorm/u8-normcoll'.
9460 * modules/uninorm/u8-normcoll-tests: New file.
9461 * tests/uninorm/test-u8-normcoll.c: New file.
9463 2009-03-07 Bruno Haible <bruno@clisp.org>
9465 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
9466 tests/uninorm/test-u32-normcmp.c.
9467 * tests/uninorm/test-u32-normcmp.c: Include it.
9468 (test_nonascii): New function, extracted from main. Add some more
9470 (main): Invoke test_ascii and test_nonascii.
9471 * modules/uninorm/u32-normcmp-tests (Files): Add
9472 tests/uninorm/test-u32-normcmp.h.
9473 (Depends-on): Remove uninorm/u32-normcmp.
9475 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
9476 tests/uninorm/test-u16-normcmp.c.
9477 * tests/uninorm/test-u16-normcmp.c: Include it.
9478 (test_nonascii): New function, extracted from main. Add some more
9480 (main): Invoke test_ascii and test_nonascii.
9481 * modules/uninorm/u16-normcmp-tests (Files): Add
9482 tests/uninorm/test-u16-normcmp.h.
9483 (Depends-on): Remove uninorm/u16-normcmp.
9485 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
9486 tests/uninorm/test-u8-normcmp.c.
9487 * tests/uninorm/test-u8-normcmp.c: Include it.
9488 (test_nonascii): New function, extracted from main. Add some more
9490 (main): Invoke test_ascii and test_nonascii.
9491 * modules/uninorm/u8-normcmp-tests (Files): Add
9492 tests/uninorm/test-u8-normcmp.h.
9493 (Depends-on): Remove uninorm/u8-normcmp.
9495 2009-03-07 Bruno Haible <bruno@clisp.org>
9497 New module 'uninorm/u32-normcoll'.
9498 * lib/uninorm/u32-normcoll.c: New file.
9499 * modules/uninorm/u32-normcoll: New file.
9501 New module 'uninorm/u16-normcoll'.
9502 * lib/uninorm/u16-normcoll.c: New file.
9503 * modules/uninorm/u16-normcoll: New file.
9505 New module 'uninorm/u8-normcoll'.
9506 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
9508 * lib/uninorm/u8-normcoll.c: New file.
9509 * lib/uninorm/u-normcoll.h: New file.
9510 * modules/uninorm/u8-normcoll: New file.
9512 New module 'uninorm/u32-normxfrm'.
9513 * lib/uninorm/u32-normxfrm.c: New file.
9514 * modules/uninorm/u32-normxfrm: New file.
9516 New module 'uninorm/u16-normxfrm'.
9517 * lib/uninorm/u16-normxfrm.c: New file.
9518 * modules/uninorm/u16-normxfrm: New file.
9520 New module 'uninorm/u8-normxfrm'.
9521 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
9523 * lib/uninorm/u8-normxfrm.c: New file.
9524 * lib/uninorm/u-normxfrm.h: New file.
9525 * modules/uninorm/u8-normxfrm: New file.
9527 2009-03-07 Bruno Haible <bruno@clisp.org>
9529 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
9530 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
9531 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
9533 2009-03-07 Bruno Haible <bruno@clisp.org>
9535 New module 'memxfrm'.
9536 * lib/memxfrm.h: New file.
9537 * lib/memxfrm.c: New file.
9538 * modules/memxfrm: New file.
9540 2009-03-07 Bruno Haible <bruno@clisp.org>
9542 New module 'memcmp2'.
9543 * lib/memcmp2.h: New file.
9544 * lib/memcmp2.c: New file.
9545 * modules/memcmp2: New file.
9547 2009-03-07 Bruno Haible <bruno@clisp.org>
9549 Tests for module 'uninorm/decomposing-form'.
9550 * modules/uninorm/decomposing-form-tests: New file.
9551 * tests/uninorm/test-decomposing-form.c: New file.
9553 New module 'uninorm/decomposing-form'.
9554 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
9555 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
9556 Add 'decomposing_variant' field.
9557 * lib/uninorm/decomposing-form.c: New file.
9558 * lib/uninorm/nfc.c (uninorm_nfc): Update.
9559 * lib/uninorm/nfd.c (uninorm_nfd): Update.
9560 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
9561 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
9562 * modules/uninorm/decomposing-form: New file.
9563 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
9564 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
9566 2009-03-07 Bruno Haible <bruno@clisp.org>
9568 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
9571 2009-03-06 Bruno Haible <bruno@clisp.org>
9573 Tests for module 'uninorm/u32-normcmp'.
9574 * tests/uninorm/test-u32-normcmp.c: New file.
9575 * modules/uninorm/u32-normcmp-tests: New file.
9577 Tests for module 'uninorm/u16-normcmp'.
9578 * tests/uninorm/test-u16-normcmp.c: New file.
9579 * modules/uninorm/u16-normcmp-tests: New file.
9581 Tests for module 'uninorm/u8-normcmp'.
9582 * tests/uninorm/test-u8-normcmp.c: New file.
9583 * modules/uninorm/u8-normcmp-tests: New file.
9585 New module 'uninorm/u32-normcmp'.
9586 * lib/uninorm/u32-normcmp.c: New file.
9587 * modules/uninorm/u32-normcmp: New file.
9589 New module 'uninorm/u16-normcmp'.
9590 * lib/uninorm/u16-normcmp.c: New file.
9591 * modules/uninorm/u16-normcmp: New file.
9593 New module 'uninorm/u8-normcmp'.
9594 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
9596 * lib/uninorm/u8-normcmp.c: New file.
9597 * lib/uninorm/u-normcmp.h: New file.
9598 * modules/uninorm/u8-normcmp: New file.
9600 2009-03-06 Bruno Haible <bruno@clisp.org>
9602 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
9603 Reported by Eric Blake.
9605 2009-03-06 Eric Blake <ebb9@byu.net>
9606 Bruno Haible <bruno@clisp.org>
9608 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
9609 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
9611 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
9612 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
9614 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
9616 2009-03-06 Eric Blake <ebb9@byu.net>
9618 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
9619 to avoid compiler warnings.
9620 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
9622 2009-03-05 Bruno Haible <bruno@clisp.org>
9624 * tests/test-ftell.c (main): Disable test beyond end of file on
9626 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
9628 2009-03-05 Kamil Dudka <kdudka@redhat.com>
9630 * lib/filevercmp.c: Move hidden files up in ordering.
9631 * tests/test-filevercmp.c: Add tests for hidden files.
9633 2009-03-04 Bruno Haible <bruno@clisp.org>
9635 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
9636 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
9638 Reported by Simon Josefsson.
9640 2009-03-03 Bruno Haible <bruno@clisp.org>
9642 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
9643 Reported by Simon Josefsson.
9645 * doc/ld-version-script.texi: Update node reference.
9647 2009-03-03 Bruno Haible <bruno@clisp.org>
9649 * modules/visibility (License): Change to 'unlimited'.
9650 Suggested by Simon Josefsson.
9652 2009-03-03 Jim Meyering <meyering@redhat.com>
9654 unlinkdir: cannot_unlink_dir may modify process state
9655 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
9656 it's neither thread-safe nor appropriate for use in a library.
9658 2009-03-03 Eric Blake <ebb9@byu.net>
9660 test-closein: silence test under Darwin
9661 * tests/test-closein.sh: Ignore stderr from cat, since we don't
9662 care if it dies from EPIPE or EBADF.
9664 2009-03-03 Bruno Haible <bruno@clisp.org>
9666 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
9668 * doc/visibility.texi: Fix @node and @section.
9670 2009-03-03 Simon Josefsson <simon@josefsson.org>
9672 * doc/gnulib.texi: Link to sections for ld version script and
9674 * doc/visibility.texi: Add @node and @section.
9675 * modules/ld-version-script: New module.
9676 * m4/ld-version-script.m4: New file.
9677 * doc/ld-version-script.texi: New file.
9679 2009-03-02 David Lutterkort <lutter@redhat.com>
9681 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
9682 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9684 2009-03-02 Bruno Haible <bruno@clisp.org>
9686 * doc/visibility.texi: Mention libtool's -export-symbols option.
9688 2009-03-02 Jim Meyering <meyering@redhat.com>
9690 announce-gen: new option: --no-print-checksums
9691 * build-aux/announce-gen (usage): Describe it.
9692 (print_checksums): Print a newline here, not in the [*] footnote.
9695 2009-03-01 Bruno Haible <bruno@clisp.org>
9697 Use socklen_t in the native Windows replacements prototypes.
9698 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
9700 * lib/getsockopt.c (rpl_getsockopt): Likewise.
9701 * lib/setsockopt.c (rpl_setsockopt): Likewise.
9702 * modules/getsockopt (Depends-on): Add socklen.
9703 * modules/setsockopt (Depends-on): Add socklen.
9705 2009-03-01 Bruno Haible <bruno@clisp.org>
9707 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
9710 2009-03-01 Eric Blake <ebb9@byu.net>
9711 Bruno Haible <bruno@clisp.org>
9713 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
9715 * lib/wait-process.c (wait_subprocess): Omit error message about
9716 deadly signal sent to the child of termsigp != NULL.
9718 2009-03-01 Eric Blake <ebb9@byu.net>
9720 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
9722 2009-03-01 Bruno Haible <bruno@clisp.org>
9724 Avoid a gcc warning.
9725 * tests/test-sched.c (b): Make global.
9726 Reported by Eric Blake.
9728 2009-01-19 Martin Lambers <marlam@marlam.de>
9730 Provide POSIX semantics for socket timeout options on W32.
9731 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
9732 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
9733 * modules/setsockopt: Depend on sys_time module for struct timeval.
9734 * modules/getsockopt: Depend on sys_time module for struct timeval.
9736 2009-03-01 Simon Josefsson <simon@josefsson.org>
9738 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
9739 __USE_GNU, for consistency with netdb.in.h.
9740 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9742 2009-03-01 Bruno Haible <bruno@clisp.org>
9744 More support for FreeMiNT.
9745 * lib/fseeko.c (rpl_fseeko): Complete last commit.
9746 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9748 2009-03-01 Bruno Haible <bruno@clisp.org>
9750 More support for FreeMiNT.
9751 * lib/fpurge.c (fpurge): Correct last commit.
9752 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9754 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9756 Fix unportable awk script in vc-list-files.
9757 * build-aux/vc-list-files: In the replacement awk script, use
9758 substr with a second argument of 1, not zero.
9759 Report by Simon Josefsson.
9761 2009-02-28 Bruno Haible <bruno@clisp.org>
9763 More support for FreeMiNT.
9764 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
9766 * lib/fwriting.c (fwriting): Likewise.
9767 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
9769 2009-02-28 Bruno Haible <bruno@clisp.org>
9771 * tests/test-freadseek.c (main): Disable test beyond end of file on
9773 * tests/test-ftello.c (main): Likewise.
9774 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
9776 2009-02-28 Bruno Haible <bruno@clisp.org>
9778 Add tentative support for FreeMiNT.
9779 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
9780 * lib/fpurge.c (fpurge): Likewise.
9781 * lib/freadable.c (freadable): Likewise.
9782 * lib/freading.c (freading): Likewise.
9783 * lib/freadptr.c (freadptr): Likewise.
9784 * lib/freadseek.c (freadptrinc): Likewise.
9785 * lib/fseeko.c (rpl_fseeko): Likewise.
9786 * lib/fseterr.c (fseterr): Likewise.
9787 * lib/fwritable.c (fwritable): Likewise.
9788 * lib/fwriting.c (fwriting): Likewise.
9789 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
9791 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9793 2009-02-28 Bruno Haible <bruno@clisp.org>
9795 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
9797 Reported by Jim Meyering.
9799 2009-02-28 Bruno Haible <bruno@clisp.org>
9801 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
9802 Mention the results of these tests on various platforms.
9803 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
9805 * doc/posix-functions/printf.texi: Likewise.
9806 * doc/posix-functions/snprintf.texi: Likewise.
9807 * doc/posix-functions/sprintf.texi: Likewise.
9808 * doc/posix-functions/vfprintf.texi: Likewise.
9809 * doc/posix-functions/vprintf.texi: Likewise.
9810 * doc/posix-functions/vsnprintf.texi: Likewise.
9811 * doc/posix-functions/vsprintf.texi: Likewise.
9812 * doc/glibc-functions/obstack_printf.texi: Likewise.
9813 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9815 2009-02-28 Bruno Haible <bruno@clisp.org>
9817 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
9818 Reported by Loïc Minier <lool@dooz.org>.
9820 2009-02-27 Bruno Haible <bruno@clisp.org>
9822 * gnulib-tool (func_import): Make the sed expression used to create the
9823 sed script for updating the .gitignore file POSIX compliant.
9824 Reported by Eric Blake.
9826 2009-02-27 Bruno Haible <bruno@clisp.org>
9828 * gnulib-tool (sed): Don't alias as "sed --posix".
9829 Reported by Eric Blake.
9831 2009-02-27 Bruno Haible <bruno@clisp.org>
9833 Avoid test link errors.
9834 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
9835 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
9836 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
9837 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
9838 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9840 2009-02-27 Bruno Haible <bruno@clisp.org>
9842 Avoid spurious "(cached)" in configure output.
9843 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
9844 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
9845 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
9846 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
9847 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
9848 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
9849 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
9850 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
9851 Reported by Eric Blake.
9853 2009-02-27 Eric Blake <ebb9@byu.net>
9855 printf: fix regression in previous patch
9856 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
9858 2009-02-27 Bruno Haible <bruno@clisp.org>
9860 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
9862 * lib/stdint.in.h: Likewise.
9863 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
9865 2009-02-27 Eric Blake <ebb9@byu.net>
9867 doc: mention more functions added in cygwin 1.7.0
9868 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
9870 * doc/posix-functions/open_wmemstream.texi: Likewise.
9871 * doc/posix-functions/wcsnlen.texi: Likewise.
9872 * doc/posix-functions/wcsnrtombs.texi: Likewise.
9873 * doc/posix-functions/wcstod.texi: Likewise.
9874 * doc/posix-functions/wcstof.texi: Likewise.
9875 * doc/posix-functions/wcstoimax.texi: Likewise.
9876 * doc/posix-functions/wcstok.texi: Likewise.
9877 * doc/posix-functions/wcstoumax.texi: Likewise.
9879 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
9880 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
9881 * doc/posix-functions/fprintf.texi: Update.
9882 * doc/posix-functions/printf.texi: Update.
9883 * doc/posix-functions/snprintf.texi: Update.
9884 * doc/posix-functions/sprintf.texi: Update.
9885 * doc/posix-functions/vfprintf.texi: Update.
9886 * doc/posix-functions/vprintf.texi: Update.
9887 * doc/posix-functions/vsnprintf.texi: Update.
9888 * doc/posix-functions/vsprintf.texi: Update.
9889 * doc/glibc-functions/obstack_printf.texi: Update.
9890 * doc/glibc-functions/obstack_vprintf.texi: Update.
9892 2009-02-26 Eric Blake <ebb9@byu.net>
9894 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
9895 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
9896 compilation bug by using runtime conversion.
9897 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9898 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
9899 * modules/ceill-tests (Files): Use nan.h.
9900 * modules/floorl-tests (Files): Likewise.
9901 * modules/frexpl-tests (Files): Likewise.
9902 * modules/isnanl-tests (Files): Likewise.
9903 * modules/ldexpl-tests (Files): Likewise.
9904 * modules/roundl-tests (Files): Likewise.
9905 * modules/truncl-tests (Files): Likewise.
9906 * tests/test-ceill.c (main): Use a working NaN.
9907 * tests/test-floorl.c (main): Likewise.
9908 * tests/test-frexpl.c (main): Likewise.
9909 * tests/test-isnan.c (test_long_double): Likewise.
9910 * tests/test-isnanl.h (main): Likewise.
9911 * tests/test-ldexpl.h (main): Likewise.
9912 * tests/test-roundl.h (main): Likewise.
9913 * tests/test-truncl.h (main): Likewise.
9914 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
9916 2009-02-26 Eric Blake <ebb9@byu.net>
9917 Bruno Haible <bruno@clisp.org>
9919 Work around a *printf bug with %ls on Solaris.
9920 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
9921 precision is specified, sprintf stops converting the wide string
9922 argument when the number of bytes that have been produced by this
9923 conversion equals or exceeds the precision.
9924 * doc/posix-functions/fprintf.texi: Update.
9925 * doc/posix-functions/printf.texi: Update.
9926 * doc/posix-functions/snprintf.texi: Update.
9927 * doc/posix-functions/sprintf.texi: Update.
9928 * doc/posix-functions/vfprintf.texi: Update.
9929 * doc/posix-functions/vprintf.texi: Update.
9930 * doc/posix-functions/vsnprintf.texi: Update.
9931 * doc/posix-functions/vsprintf.texi: Update.
9932 * doc/glibc-functions/obstack_printf.texi: Update.
9933 * doc/glibc-functions/obstack_vprintf.texi: Update.
9935 2009-02-26 Eric Blake <ebb9@byu.net>
9937 stdlib: favor compiler check of random.h
9938 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
9939 to avoid an ObjC random.h installed by Swarm.
9941 2009-02-26 Bruno Haible <bruno@clisp.org>
9943 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
9944 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
9945 Reported by Gary V. Vaughan <gary@gnu.org>.
9947 2009-02-26 Bruno Haible <bruno@clisp.org>
9949 Fix *printf behaviour regarding the %ls directive.
9950 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
9951 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
9952 NEED_PRINTF_DIRECTIVE_LS.
9953 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
9954 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
9955 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
9956 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
9957 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
9958 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
9959 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
9960 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
9961 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
9962 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
9963 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
9964 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
9965 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
9966 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
9967 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
9968 * doc/posix-functions/fprintf.texi: Update.
9969 * doc/posix-functions/printf.texi: Update.
9970 * doc/posix-functions/snprintf.texi: Update.
9971 * doc/posix-functions/sprintf.texi: Update.
9972 * doc/posix-functions/vfprintf.texi: Update.
9973 * doc/posix-functions/vprintf.texi: Update.
9974 * doc/posix-functions/vsnprintf.texi: Update.
9975 * doc/posix-functions/vsprintf.texi: Update.
9976 * doc/glibc-functions/obstack_printf.texi: Update.
9977 * doc/glibc-functions/obstack_vprintf.texi: Update.
9978 Reported by Eric Blake.
9980 2009-02-25 Bruno Haible <bruno@clisp.org>
9982 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
9984 Reported by Gary V. Vaughan <gary@gnu.org>.
9986 2009-02-25 Bruno Haible <bruno@clisp.org>
9988 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
9989 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
9990 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
9991 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
9992 Reported by Gary V. Vaughan <gary@gnu.org>.
9994 2009-02-25 Bruno Haible <bruno@clisp.org>
9996 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
9997 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
9998 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
9999 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
10000 Reported by Gary V. Vaughan <gary@gnu.org>.
10002 2009-02-25 Eric Blake <ebb9@byu.net>
10004 tests: skip fseek/ftell tests if ungetc is broken
10005 * m4/ungetc.m4: New file.
10006 * modules/fseek-tests: Split test, so ungetc dependency is
10007 separate from rest of test.
10008 * modules/fseeko-tests: Likewise.
10009 * modules/ftell-tests: Likewise.
10010 * modules/ftello-tests: Likewise.
10011 * tests/test-fseek.c (main): Isolate ungetc dependency.
10012 * tests/test-fseeko.c (main): Likewise.
10013 * tests/test-ftell.c (main): Likewise.
10014 * tests/test-ftello.c (main): Likewise.
10015 * tests/test-fseek2.sh: New file.
10016 * tests/test-fseeko2.sh: Likewise.
10017 * tests/test-ftell2.sh: Likewise.
10018 * tests/test-ftello2.sh: Likewise.
10020 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
10022 test-getaddrinfo: fix usage of skip return code 77
10023 * tests/test-gettaddrinfo.c: Return skip code 77 only
10024 for first occurance of skip (4x77 is not 77)
10026 2009-02-25 Gary V. Vaughan <gary@gnu.org>
10028 strtod: avoid C99 decl-after-statement
10029 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
10031 2009-02-24 Eric Blake <ebb9@byu.net>
10033 strtod: detect HP-UX 11.31 bug
10034 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
10035 Reported by Gary V. Vaughan.
10037 2009-02-23 Bruno Haible <bruno@clisp.org>
10039 Fix invalid read past end of memory block.
10040 * lib/vasnprintf.c (DCHAR_SET): Define.
10041 (local_wcslen): Define only when needed.
10042 (local_strnlen, local_wcsnlen): New functions.
10043 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
10044 directives that involve a conversion ourselves.
10045 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
10046 wcsnlen, mbrtowc, wcrtomb.
10047 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
10048 * tests/test-vasprintf-posix.c (test_function): Likewise.
10049 * tests/test-snprintf-posix.h (test_function): Likewise.
10050 * tests/test-sprintf-posix.h (test_function): Likewise.
10051 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10053 2009-02-22 Bruno Haible <bruno@clisp.org>
10055 Implement new clarified decomposition of Hangul syllables.
10056 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
10057 of type LTV, return only a pairwise decomposition.
10058 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
10060 * tests/uninorm/test-decomposition.c (main): Updated expected result.
10061 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
10062 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
10064 2009-02-22 Bruno Haible <bruno@clisp.org>
10066 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
10067 zero-length results and shrink excess allocated memory.
10068 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
10069 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
10070 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
10071 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
10072 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
10073 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
10074 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
10075 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
10076 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
10077 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
10078 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
10079 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
10081 2009-02-21 Bruno Haible <bruno@clisp.org>
10083 * doc/gnulib.texi: Include safe-alloc.texi earlier.
10084 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
10085 spaces after a period. Put a space between a macro name and its
10086 argument list. Trivial rewordings.
10087 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
10088 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
10089 (main): Return 0 explicitly.
10091 2009-02-21 Bruno Haible <bruno@clisp.org>
10093 Tests for module 'uninorm/filter'.
10094 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
10095 * modules/uninorm/filter-tests: New file.
10097 New module 'uninorm/filter'.
10098 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
10099 uninorm_filter_flush, uninorm_filter_free): New declarations.
10100 * lib/uninorm/uninorm-filter.c: New file.
10101 * modules/uninorm/filter: New file.
10103 2009-02-21 Bruno Haible <bruno@clisp.org>
10105 Tests for module 'uninorm/nfkc'.
10106 * tests/uninorm/test-nfkc.c: New file.
10107 * tests/uninorm/test-u8-nfkc.c: New file.
10108 * tests/uninorm/test-u16-nfkc.c: New file.
10109 * tests/uninorm/test-u32-nfkc.c: New file.
10110 * tests/uninorm/test-u32-nfkc-big.sh: New file.
10111 * tests/uninorm/test-u32-nfkc-big.c: New file.
10112 * modules/uninorm/nfkc-tests: New file.
10114 New module 'uninorm/nfkc'.
10115 * lib/uninorm/nfkc.c: New file.
10116 * modules/uninorm/nfkc: New file.
10118 Tests for module 'uninorm/nfkd'.
10119 * tests/uninorm/test-nfkd.c: New file.
10120 * tests/uninorm/test-u8-nfkd.c: New file.
10121 * tests/uninorm/test-u16-nfkd.c: New file.
10122 * tests/uninorm/test-u32-nfkd.c: New file.
10123 * tests/uninorm/test-u32-nfkd-big.sh: New file.
10124 * tests/uninorm/test-u32-nfkd-big.c: New file.
10125 * modules/uninorm/nfkd-tests: New file.
10127 New module 'uninorm/nfkd'.
10128 * lib/uninorm/nfkd.c: New file.
10129 * modules/uninorm/nfkd: New file.
10131 Tests for module 'uninorm/nfc'.
10132 * tests/uninorm/test-nfc.c: New file.
10133 * tests/uninorm/test-u8-nfc.c: New file.
10134 * tests/uninorm/test-u16-nfc.c: New file.
10135 * tests/uninorm/test-u32-nfc.c: New file.
10136 * tests/uninorm/test-u32-nfc-big.sh: New file.
10137 * tests/uninorm/test-u32-nfc-big.c: New file.
10138 * modules/uninorm/nfc-tests: New file.
10140 New module 'uninorm/nfc'.
10141 * lib/uninorm/nfc.c: New file.
10142 * modules/uninorm/nfc: New file.
10144 Tests for module 'uninorm/nfd'.
10145 * tests/uninorm/test-nfd.c: New file.
10146 * tests/uninorm/test-u8-nfd.c: New file.
10147 * tests/uninorm/test-u16-nfd.c: New file.
10148 * tests/uninorm/test-u32-nfd.c: New file.
10149 * tests/uninorm/test-u32-nfd-big.sh: New file.
10150 * tests/uninorm/test-u32-nfd-big.c: New file.
10151 * tests/uninorm/test-u32-normalize-big.h: New file.
10152 * tests/uninorm/test-u32-normalize-big.c: New file.
10153 * tests/uninorm/NormalizationTest.txt: New file, created from
10154 Unicode 5.1.0 NormalizationTest.txt.
10155 * modules/uninorm/nfd-tests: New file.
10157 New module 'uninorm/nfd'.
10158 * lib/uninorm/nfd.c: New file.
10159 * modules/uninorm/nfd: New file.
10161 New module 'uninorm/u32-normalize'.
10162 * lib/uninorm/u32-normalize.c: New file.
10163 * modules/uninorm/u32-normalize: New file.
10165 New module 'uninorm/u16-normalize'.
10166 * lib/uninorm/u16-normalize.c: New file.
10167 * modules/uninorm/u16-normalize: New file.
10169 New module 'uninorm/u8-normalize'.
10170 * lib/uninorm/u8-normalize.c: New file.
10171 * lib/uninorm/normalize-internal.h: New file.
10172 * lib/uninorm/u-normalize-internal.h: New file.
10173 * modules/uninorm/u8-normalize: New file.
10175 New module 'uninorm/decompose-internal'.
10176 * lib/uninorm/decompose-internal.c: New file.
10177 * modules/uninorm/decompose-internal: New file.
10179 Tests for module 'uninorm/composition'.
10180 * tests/uninorm/test-composition.c: New file.
10181 * modules/uninorm/composition-tests: New file.
10183 New module 'uninorm/composition'.
10184 * lib/uninorm/composition.c: New file.
10185 * lib/uninorm/composition-table.gperf: New file, generated by
10187 * modules/uninorm/composition: New file.
10189 Tests for module 'uninorm/compat-decomposition'.
10190 * tests/uninorm/test-compat-decomposition.c: New file.
10191 * modules/uninorm/compat-decomposition-tests: New file.
10193 New module 'uninorm/compat-decomposition'.
10194 * lib/uninorm/decompose-internal.h: New file.
10195 * lib/uninorm/compat-decomposition.c: New file.
10196 * modules/uninorm/compat-decomposition: New file.
10198 Tests for module 'uninorm/canonical-decomposition'.
10199 * tests/uninorm/test-canonical-decomposition.c: New file.
10200 * modules/uninorm/canonical-decomposition-tests: New file.
10202 New module 'uninorm/canonical-decomposition'.
10203 * lib/uninorm/canonical-decomposition.c: New file.
10204 * modules/uninorm/canonical-decomposition: New file.
10206 Tests for module 'uninorm/decomposition'.
10207 * tests/uninorm/test-decomposition.c: New file.
10208 * modules/uninorm/decomposition-tests: New file.
10210 New module 'uninorm/decomposition'.
10211 * lib/uninorm/decomposition.c: New file.
10212 * modules/uninorm/decomposition: New file.
10214 New module 'uninorm/decomposition-table'.
10215 * lib/uninorm/decomposition-table.h: New file.
10216 * lib/uninorm/decomposition-table.c: New file.
10217 * lib/uninorm/decomposition-table1.h: New file, generated by
10219 * lib/uninorm/decomposition-table2.h: New file, generated by
10221 * modules/uninorm/decomposition-table: New file.
10223 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
10224 (UC_DECOMP_*): New enumeration items.
10225 (get_decomposition): New function.
10226 (struct decomp_table): New type.
10227 (output_decomposition, output_decomposition_tables): New functions.
10228 (unicode_composition_exclusions): New variable.
10229 (fill_composition_exclusions, debug_output_composition_tables): New
10231 (main): Accept one more argument. Invoke fill_composition_exclusions.
10232 Output decomposition and composition tables.
10234 New module 'uninorm/base'.
10235 * lib/uninorm.h: New file.
10236 * lib/unictype.h: Update comment.
10237 * modules/uninorm/base: New file.
10239 2009-02-21 David Lutterkort <lutter@redhat.com>
10241 Tests for module 'safe-alloc'.
10242 * tests/test-safe-alloc.c: New file.
10243 * modules/safe-alloc-tests: New file.
10245 New module 'safe-alloc'.
10246 * lib/safe-alloc.h: New file.
10247 * lib/safe-alloc.c: New file.
10248 * m4/safe-alloc.m4: New file.
10249 * modules/safe-alloc: New file.
10250 * doc/safe-alloc.texi: New file.
10251 * doc/gnulib.texi: Include it.
10252 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
10255 2009-02-18 Bruno Haible <bruno@clisp.org>
10257 Fix link error on non-glibc systems.
10258 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
10260 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10262 2009-02-18 Jim Meyering <meyering@redhat.com>
10264 fts: avoid used-uninitialized error due to recent change
10265 * lib/fts.c (fts_read): Guard uses of the new member,
10266 parent->fts_n_dirs_remaining, since it's not relevant for
10267 the parent of a directory specified on the command-line.
10269 2009-02-17 James Youngman <jay@gnu.org>
10270 Bruno Haible <bruno@clisp.org>
10272 * m4/include_next.m4: Reformulate comment.
10274 2009-02-16 Jim Meyering <meyering@redhat.com>
10276 fts: add #if guards so that the fts_lgpl module still builds
10277 * lib/fts.c: Guard just-added hash-table-using parts with
10278 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
10279 Reported by Simon Josefsson.
10281 2009-02-15 Bruno Haible <bruno@clisp.org>
10283 * modules/array-mergesort-tests: New file.
10284 * tests/test-array-mergesort.c: New file.
10286 New module 'array-mergesort'.
10287 * modules/array-mergesort: New file.
10288 * lib/array-mergesort.h: New file.
10290 2009-02-15 Bruno Haible <bruno@clisp.org>
10292 Fix 2009-02-07 commit.
10293 * lib/gen-uni-tables.c (output_predicate, output_category,
10294 output_combclass, output_bidi_category, output_decimal_digit,
10295 output_digit, output_numeric, output_mirror, output_scripts,
10296 output_ident_category, output_simple_mapping): Fix format directives.
10297 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
10299 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
10301 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
10302 fixes are available from IBM.
10304 2009-02-13 Jim Meyering <meyering@redhat.com>
10306 fts: arrange not to stat non-directories in more cases
10307 This makes GNU find (when it doesn't need to stat each file)
10308 *much* more efficient at traversing reiserfs file systems.
10309 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
10310 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
10311 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
10312 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
10313 (leaf_optimization_applies): New function.
10314 (LCO_hash, LCO_compare): New helper functions.
10315 (link_count_optimize_ok): New function.
10316 (fts_stat): Initialize new member (if dir).
10317 (fts_read): Decrement parent's fts_n_dirs_remaining count if
10318 we've just stat'ed a directory. Skip the stat call when possible.
10320 Note this AFS-related exchange:
10321 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
10322 and note find's pioctl call in find/fstype.c.
10323 But that is necessary only if you want to enable the
10324 optimization for AFS, and for now, I don't.
10326 fts: move a function definition "up" (no semantic change)
10327 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
10328 "up" to precede upcoming use of a related function.
10330 2009-02-11 Jim Meyering <meyering@redhat.com>
10332 fts: correct internal computation of nlinks (optimization-related)
10333 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
10334 whether the current entry is a directory, so don't test it.
10336 2009-02-10 Bruno Haible <bruno@clisp.org>
10338 Tests for module 'uniwbrk/ulc-wordbreaks'.
10339 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
10340 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
10341 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
10343 Tests for module 'uniwbrk/u32-wordbreaks'.
10344 * modules/uniwbrk/u32-wordbreaks-tests: New file.
10345 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
10347 Tests for module 'uniwbrk/u16-wordbreaks'.
10348 * modules/uniwbrk/u16-wordbreaks-tests: New file.
10349 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
10351 Tests for module 'uniwbrk/u8-wordbreaks'.
10352 * modules/uniwbrk/u8-wordbreaks-tests: New file.
10353 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
10355 2009-02-10 Bruno Haible <bruno@clisp.org>
10357 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
10359 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
10360 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
10361 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
10363 2009-02-10 Simon Josefsson <simon@josefsson.org>
10365 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
10366 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
10368 2009-02-10 Bruno Haible <bruno@clisp.org>
10370 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
10371 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
10372 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
10373 * lib/unilbrk/u8-possible-linebreaks.c: Update.
10374 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
10375 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
10377 2009-02-09 Simon Josefsson <simon@josefsson.org>
10379 * lib/sockets.h (gl_fd_to_handle): New function.
10381 * tests/test-sockets.c: Call gl_fd_to_handle.
10383 2009-02-09 Bruno Haible <bruno@clisp.org>
10385 * doc/havelib.texi: Document the conventions on bi-arch systems.
10387 2009-02-08 Bruno Haible <bruno@clisp.org>
10389 Document the AC_LIB_LINKFLAGS macro.
10390 * doc/havelib.texi: New file, mostly written on 2005-05-24.
10391 * doc/gnulib.texi: Include it.
10393 2009-02-08 Bruno Haible <bruno@clisp.org>
10395 Fix wrong order of sections, compared to TOC.
10396 * doc/gnulib.texi: Include relocatable-maint.texi after the
10397 "Regular expressions" node, not before.
10399 2009-02-08 Bruno Haible <bruno@clisp.org>
10401 Tests for module 'unicase/totitle'.
10402 * modules/unicase/totitle-tests: New file.
10404 Tests for module 'unicase/tolower'.
10405 * modules/unicase/tolower-tests: New file.
10407 Tests for module 'unicase/toupper'.
10408 * modules/unicase/toupper-tests: New file.
10409 * tests/unicase/test-mapping-part1.h: New file.
10410 * tests/unicase/test-mapping-part2.h: New file.
10412 New module 'unicase/totitle'.
10413 * modules/unicase/totitle: New file.
10414 * lib/unicase/totitle.c: New file.
10416 New module 'unicase/tolower'.
10417 * modules/unicase/tolower: New file.
10418 * lib/unicase/tolower.c: New file.
10420 New module 'unicase/toupper'.
10421 * modules/unicase/toupper: New file.
10422 * lib/unicase/toupper.c: New file.
10423 * lib/unicase/simple-mapping.h: New file.
10425 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
10426 (mapping_table): New structure.
10427 (output_simple_mapping): New function.
10428 (main): Invoke output_simple_mapping_test and output_simple_mapping.
10429 * modules/gen-uni-tables (Description): Update.
10430 * lib/unicase/toupper.h: New file, automatically generated by
10432 * lib/unicase/tolower.h: New file, automatically generated by
10434 * lib/unicase/totitle.h: New file, automatically generated by
10436 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
10438 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
10440 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
10443 New module 'unicase/base'.
10444 * modules/unicase/base: New file.
10445 * lib/unicase.h: New file.
10447 2009-02-08 Bruno Haible <bruno@clisp.org>
10449 New module 'uniwbrk/ulc-wordbreaks'.
10450 * modules/uniwbrk/ulc-wordbreaks: New file.
10451 * lib/uniwbrk/ulc-wordbreaks.c: New file.
10453 New module 'uniwbrk/u32-wordbreaks'.
10454 * modules/uniwbrk/u32-wordbreaks: New file.
10455 * lib/uniwbrk/u32-wordbreaks.c: New file.
10457 New module 'uniwbrk/u16-wordbreaks'.
10458 * modules/uniwbrk/u16-wordbreaks: New file.
10459 * lib/uniwbrk/u16-wordbreaks.c: New file.
10461 New module 'uniwbrk/u8-wordbreaks'.
10462 * modules/uniwbrk/u8-wordbreaks: New file.
10463 * lib/uniwbrk/u8-wordbreaks.c: New file.
10464 * lib/uniwbrk/u-wordbreaks.h: New file.
10466 New module 'uniwbrk/table'.
10467 * modules/uniwbrk/table: New file.
10468 * lib/uniwbrk/wbrktable.h: New file.
10469 * lib/uniwbrk/wbrktable.c: New file.
10471 New module 'uniwbrk/wordbreak-property'.
10472 * modules/uniwbrk/wordbreak-property: New file.
10473 * lib/uniwbrk/wordbreak-property.c: New file.
10475 * lib/gen-uni-tables.c (WBP_*): New enum items.
10476 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
10477 (unicode_org_wbp): New variable.
10478 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
10480 (wbp_table): New structure.
10481 (output_wbp, output_wbrk_tables): New functions.
10482 (main): Accept additional argument. Invoke fill_org_wbp,
10483 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
10484 output_wbrk_tables.
10485 * modules/gen-uni-tables (Description): Update.
10486 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
10489 New module 'uniwbrk/base'.
10490 * modules/uniwbrk/base: New file.
10491 * lib/uniwbrk.h: New file.
10493 2009-02-08 Bruno Haible <bruno@clisp.org>
10495 Update to Unicode 5.1.0.
10496 * lib/gen-uni-tables.c (is_property_alphabetic): Include
10498 (is_property_default_ignorable_code_point): Don't include characters
10499 of category Cc or Cs and not-a-characters.
10500 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
10501 U+0D79, U+109E, U+109F, U+A60C.
10502 * lib/unictype/bidi_of.h: Regenerated.
10503 * lib/unictype/blocks.h: Regenerated.
10504 * lib/unictype/categ_C.h: Regenerated.
10505 * lib/unictype/categ_Cf.h: Regenerated.
10506 * lib/unictype/categ_Cn.h: Regenerated.
10507 * lib/unictype/categ_L.h: Regenerated.
10508 * lib/unictype/categ_Ll.h: Regenerated.
10509 * lib/unictype/categ_Lm.h: Regenerated.
10510 * lib/unictype/categ_Lo.h: Regenerated.
10511 * lib/unictype/categ_Lu.h: Regenerated.
10512 * lib/unictype/categ_M.h: Regenerated.
10513 * lib/unictype/categ_Mc.h: Regenerated.
10514 * lib/unictype/categ_Me.h: Regenerated.
10515 * lib/unictype/categ_Mn.h: Regenerated.
10516 * lib/unictype/categ_N.h: Regenerated.
10517 * lib/unictype/categ_Nd.h: Regenerated.
10518 * lib/unictype/categ_Nl.h: Regenerated.
10519 * lib/unictype/categ_No.h: Regenerated.
10520 * lib/unictype/categ_P.h: Regenerated.
10521 * lib/unictype/categ_Pd.h: Regenerated.
10522 * lib/unictype/categ_Pe.h: Regenerated.
10523 * lib/unictype/categ_Pf.h: Regenerated.
10524 * lib/unictype/categ_Pi.h: Regenerated.
10525 * lib/unictype/categ_Po.h: Regenerated.
10526 * lib/unictype/categ_Ps.h: Regenerated.
10527 * lib/unictype/categ_S.h: Regenerated.
10528 * lib/unictype/categ_Sk.h: Regenerated.
10529 * lib/unictype/categ_Sm.h: Regenerated.
10530 * lib/unictype/categ_So.h: Regenerated.
10531 * lib/unictype/categ_of.h: Regenerated.
10532 * lib/unictype/combining.h: Regenerated.
10533 * lib/unictype/ctype_alnum.h: Regenerated.
10534 * lib/unictype/ctype_alpha.h: Regenerated.
10535 * lib/unictype/ctype_graph.h: Regenerated.
10536 * lib/unictype/ctype_lower.h: Regenerated.
10537 * lib/unictype/ctype_print.h: Regenerated.
10538 * lib/unictype/ctype_punct.h: Regenerated.
10539 * lib/unictype/ctype_upper.h: Regenerated.
10540 * lib/unictype/decdigit.h: Regenerated.
10541 * lib/unictype/digit.h: Regenerated.
10542 * lib/unictype/mirror.h: Regenerated.
10543 * lib/unictype/numeric.h: Regenerated.
10544 * lib/unictype/pr_alphabetic.h: Regenerated.
10545 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
10546 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
10547 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
10548 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
10549 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
10550 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
10551 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
10552 * lib/unictype/pr_combining.h: Regenerated.
10553 * lib/unictype/pr_dash.h: Regenerated.
10554 * lib/unictype/pr_decimal_digit.h: Regenerated.
10555 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
10556 * lib/unictype/pr_deprecated.h: Regenerated.
10557 * lib/unictype/pr_diacritic.h: Regenerated.
10558 * lib/unictype/pr_extender.h: Regenerated.
10559 * lib/unictype/pr_format_control.h: Regenerated.
10560 * lib/unictype/pr_grapheme_base.h: Regenerated.
10561 * lib/unictype/pr_grapheme_extend.h: Regenerated.
10562 * lib/unictype/pr_grapheme_link.h: Regenerated.
10563 * lib/unictype/pr_id_continue.h: Regenerated.
10564 * lib/unictype/pr_id_start.h: Regenerated.
10565 * lib/unictype/pr_ideographic.h: Regenerated.
10566 * lib/unictype/pr_ignorable_control.h: Regenerated.
10567 * lib/unictype/pr_lowercase.h: Regenerated.
10568 * lib/unictype/pr_math.h: Regenerated.
10569 * lib/unictype/pr_numeric.h: Regenerated.
10570 * lib/unictype/pr_other_alphabetic.h: Regenerated.
10571 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
10572 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
10573 * lib/unictype/pr_other_id_continue.h: Regenerated.
10574 * lib/unictype/pr_other_lowercase.h: Regenerated.
10575 * lib/unictype/pr_other_math.h: Regenerated.
10576 * lib/unictype/pr_punctuation.h: Regenerated.
10577 * lib/unictype/pr_sentence_terminal.h: Regenerated.
10578 * lib/unictype/pr_soft_dotted.h: Regenerated.
10579 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
10580 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
10581 * lib/unictype/pr_unified_ideograph.h: Regenerated.
10582 * lib/unictype/pr_uppercase.h: Regenerated.
10583 * lib/unictype/pr_xid_continue.h: Regenerated.
10584 * lib/unictype/pr_xid_start.h: Regenerated.
10585 * lib/unictype/pr_zero_width.h: Regenerated.
10586 * lib/unictype/scripts.h: Regenerated.
10587 * lib/unictype/scripts_byname.gperf: Regenerated.
10588 * lib/unictype/sy_java_ident.h: Regenerated.
10589 * lib/unilbrk/lbrkprop1.h: Regenerated.
10590 * lib/unilbrk/lbrkprop2.h: Regenerated.
10591 * tests/unictype/test-categ_C.c: Regenerated.
10592 * tests/unictype/test-categ_Cf.c: Regenerated.
10593 * tests/unictype/test-categ_Cn.c: Regenerated.
10594 * tests/unictype/test-categ_L.c: Regenerated.
10595 * tests/unictype/test-categ_Ll.c: Regenerated.
10596 * tests/unictype/test-categ_Lm.c: Regenerated.
10597 * tests/unictype/test-categ_Lo.c: Regenerated.
10598 * tests/unictype/test-categ_Lu.c: Regenerated.
10599 * tests/unictype/test-categ_M.c: Regenerated.
10600 * tests/unictype/test-categ_Mc.c: Regenerated.
10601 * tests/unictype/test-categ_Me.c: Regenerated.
10602 * tests/unictype/test-categ_Mn.c: Regenerated.
10603 * tests/unictype/test-categ_N.c: Regenerated.
10604 * tests/unictype/test-categ_Nd.c: Regenerated.
10605 * tests/unictype/test-categ_Nl.c: Regenerated.
10606 * tests/unictype/test-categ_No.c: Regenerated.
10607 * tests/unictype/test-categ_P.c: Regenerated.
10608 * tests/unictype/test-categ_Pd.c: Regenerated.
10609 * tests/unictype/test-categ_Pe.c: Regenerated.
10610 * tests/unictype/test-categ_Pf.c: Regenerated.
10611 * tests/unictype/test-categ_Pi.c: Regenerated.
10612 * tests/unictype/test-categ_Po.c: Regenerated.
10613 * tests/unictype/test-categ_Ps.c: Regenerated.
10614 * tests/unictype/test-categ_S.c: Regenerated.
10615 * tests/unictype/test-categ_Sk.c: Regenerated.
10616 * tests/unictype/test-categ_Sm.c: Regenerated.
10617 * tests/unictype/test-categ_So.c: Regenerated.
10618 * tests/unictype/test-ctype_alnum.c: Regenerated.
10619 * tests/unictype/test-ctype_alpha.c: Regenerated.
10620 * tests/unictype/test-ctype_graph.c: Regenerated.
10621 * tests/unictype/test-ctype_lower.c: Regenerated.
10622 * tests/unictype/test-ctype_print.c: Regenerated.
10623 * tests/unictype/test-ctype_punct.c: Regenerated.
10624 * tests/unictype/test-ctype_upper.c: Regenerated.
10625 * tests/unictype/test-decdigit.h: Regenerated.
10626 * tests/unictype/test-digit.h: Regenerated.
10627 * tests/unictype/test-numeric.h: Regenerated.
10628 * tests/unictype/test-pr_alphabetic.c: Regenerated.
10629 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
10630 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
10631 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
10632 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
10633 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
10634 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
10635 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
10636 * tests/unictype/test-pr_combining.c: Regenerated.
10637 * tests/unictype/test-pr_dash.c: Regenerated.
10638 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
10639 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
10640 * tests/unictype/test-pr_deprecated.c: Regenerated.
10641 * tests/unictype/test-pr_diacritic.c: Regenerated.
10642 * tests/unictype/test-pr_extender.c: Regenerated.
10643 * tests/unictype/test-pr_format_control.c: Regenerated.
10644 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
10645 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
10646 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
10647 * tests/unictype/test-pr_id_continue.c: Regenerated.
10648 * tests/unictype/test-pr_id_start.c: Regenerated.
10649 * tests/unictype/test-pr_ideographic.c: Regenerated.
10650 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
10651 * tests/unictype/test-pr_lowercase.c: Regenerated.
10652 * tests/unictype/test-pr_math.c: Regenerated.
10653 * tests/unictype/test-pr_numeric.c: Regenerated.
10654 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
10655 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
10657 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
10658 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
10659 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
10660 * tests/unictype/test-pr_other_math.c: Regenerated.
10661 * tests/unictype/test-pr_punctuation.c: Regenerated.
10662 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
10663 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
10664 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
10665 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
10666 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
10667 * tests/unictype/test-pr_uppercase.c: Regenerated.
10668 * tests/unictype/test-pr_xid_continue.c: Regenerated.
10669 * tests/unictype/test-pr_xid_start.c: Regenerated.
10670 * tests/unictype/test-pr_zero_width.c: Regenerated.
10672 Update to Unicode 5.1.0.
10673 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
10674 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
10675 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
10676 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
10677 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
10678 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
10679 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
10680 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
10681 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
10682 (nonspacing_table_ind): Update.
10683 * tests/uniwidth/test-uc_width2.sh: Update expected result.
10685 Update to Unicode 5.1.0.
10686 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
10688 * lib/uniname/uniname.c (unicode_character_name,
10689 unicode_name_character): Add the range 0x1Fxxx to the code transform.
10690 * lib/uniname/uninames.h: Regenerated.
10691 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
10693 2009-02-07 Bruno Haible <bruno@clisp.org>
10695 Merge gen-ctype and gen-lbrk into a single program.
10696 * lib/gen-uni-tables.c: New file, incorporating
10697 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
10698 Add directory prefixes to the names of the generated files.
10699 * lib/unictype/gen-ctype.c: Remove file.
10700 * lib/unilbrk/gen-lbrk.c: Remove file.
10701 * modules/gen-uni-tables: New file.
10702 * modules/unictype/gen-ctype: Remove file.
10703 * modules/unilbrk/gen-lbrk: Remove file.
10705 2009-02-07 Bruno Haible <bruno@clisp.org>
10707 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
10709 New module 'unistr/u32-strcoll'.
10710 * modules/unistr/u32-strcoll: New file.
10711 * lib/unistr/u32-strcoll.c: New file.
10713 New module 'unistr/u16-strcoll'.
10714 * modules/unistr/u16-strcoll: New file.
10715 * lib/unistr/u16-strcoll.c: New file.
10717 New module 'unistr/u8-strcoll'.
10718 * modules/unistr/u8-strcoll: New file.
10719 * lib/unistr/u8-strcoll.c: New file.
10720 * lib/unistr/u-strcoll.h: New file.
10722 2009-02-07 Bruno Haible <bruno@clisp.org>
10724 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
10725 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10726 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
10727 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
10728 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
10729 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
10731 2009-02-07 Bruno Haible <bruno@clisp.org>
10734 * lib/unictype/gen-ctype.c (output_predicate, output_category,
10735 output_combclass, output_bidi_category, output_decimal_digit,
10736 output_digit, output_numeric, output_mirror, output_scripts,
10737 output_ident_category): Use proper width specifier in format strings.
10739 2009-02-07 Bruno Haible <bruno@clisp.org>
10741 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
10744 2009-02-07 Jim Meyering <meyering@redhat.com>
10746 regex: avoid compilation failure with upcoming gcc-4.4
10747 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
10748 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
10749 "... error: integer overflow in preprocessor expression".
10751 2009-02-05 Ben Pfaff <blp@gnu.org>
10753 Fix link errors on Windows when close module is used.
10754 * modules/close: Add $(LIB_CLOSE) to Link section.
10755 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
10756 $(LIB_CLOSE) on Windows.
10758 2009-02-05 Jim Meyering <meyering@redhat.com>
10760 still avoid unused-parameter warnings, but do it cleanly
10761 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
10762 (get_fs_usage): Cast to void instead.
10763 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
10764 (dev_from_mount_options, read_file_system_list): Cast to void.
10765 Prompted by Bruno Haible.
10767 2009-02-04 Jim Meyering <meyering@redhat.com>
10769 fsusage.c: correct copyright year
10770 * lib/fsusage.c: Reflect year in which the change is pushed into
10772 avoid misc. warnings
10773 * lib/fsusage.c (UNUSED_PARAM): Define.
10774 (get_fs_usage): Mark parameter "disk" as unused.
10775 * lib/getugroups.c (getgrent): Use "void" in prototype.
10776 * lib/mountlist.c: Mark unused parameters.
10777 (read_file_system_list): Declare a local with "const".
10778 * lib/nanosleep.c (getnow): Declare static.
10779 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
10781 dirfd: set errno upon failure
10782 * lib/dirfd.c: Include <errno.h>.
10783 Set errno to ENOTSUP when returning -1.
10784 * modules/dirfd (Depends-on): Add errno.
10785 Suggested by John Kodis <kodis@comcast.net>.
10787 2009-02-01 Bruno Haible <bruno@clisp.org>
10789 Don't assume sizeof (long) >= sizeof (void *).
10790 * lib/memcmp.c: Include stdint.h.
10791 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
10792 srcp2 to 'const byte *'.
10793 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
10794 types to uintptr_t.
10795 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
10796 * modules/memcmp (Depends-on): Add stdint.
10797 Reported by Ozkan Sezer <sezeroz@gmail.com>.
10799 2009-01-30 Eric Blake <ebb9@byu.net>
10801 fix more require-before-expand issues
10802 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
10803 expand, AC_PROG_AWK.
10804 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
10806 2009-01-28 Eric Blake <ebb9@byu.net>
10808 version-etc: use consistent URL formatting
10809 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
10810 Improve formatting. Use fputs for string without %.
10812 2009-01-28 Jim Meyering <meyering@redhat.com>
10814 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
10815 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
10816 "underquoted definition of NAME" from autoconf-2.59.
10818 2009-01-28 Bruno Haible <bruno@clisp.org>
10820 * doc/gnulib.texi: Add "Obsolete modules" to index.
10822 2009-01-28 Jim Meyering <meyering@redhat.com>
10824 useless-if-before-free: recognize more variants
10825 * build-aux/useless-if-before-free: Also recognize e.g.,
10826 if (NULL != p) free (p);
10828 2009-01-27 Mark McLoughlin <markmc@redhat.com>
10830 test-getaddrinfo: skip (don't fail) this test when there's no network
10831 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
10832 on the presumption that it means you lack network access.
10834 2009-01-26 Jim Meyering <meyering@redhat.com>
10836 fflush: avoid warnings on modern systems
10837 * lib/fflush.c (rpl_fflush): Move declarations of locals,
10838 pos and result, into scopes where they're used.
10840 2009-01-26 Eric Blake <ebb9@byu.net>
10842 Silence warning reintroduced by recent extensions patch.
10843 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
10844 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
10847 Backport improved autoconf semantics of AC_DEFUN_ONCE.
10848 * m4/00gnulib.m4: New file.
10849 * gnulib-tool (func_get_filelist): Always use it.
10850 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
10851 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
10853 2009-01-25 Bruno Haible <bruno@clisp.org>
10855 Make test-quotearg work on MacOS X and AIX.
10856 * tests/test-quotearg.sh: New file.
10857 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
10858 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
10859 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
10860 include <libintl.h>.
10861 (fake_locale): Remove variable.
10862 (gettext, dgettext, dcgettext): Remove functions.
10863 (main): Instead of setting a fake locale, set a real locale. Call
10864 textdomain and bindtextdomain.
10865 * modules/quotearg-tests (Files): Add the new files.
10866 (Depends-on): Add gettext, setenv, unsetenv.
10867 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
10868 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
10869 Augment TESTS_ENVIRONMENT.
10871 2009-01-25 Bruno Haible <bruno@clisp.org>
10873 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
10874 fr_FR.ISO8859-1 locale on MacOS X.
10875 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
10876 ja_JP.eucJP locale on MacOS X.
10877 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
10878 zh_CN.GB18030 locale on MacOS X.
10880 2009-01-25 Bruno Haible <bruno@clisp.org>
10882 Avoid link errors on MacOS X 10.3.
10883 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
10884 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
10886 2009-01-25 Bruno Haible <bruno@clisp.org>
10888 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10889 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
10890 * modules/pipe (Files): Remove m4/posix_spawn.m4.
10891 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10892 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
10893 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10894 posix_spawnattr_init, posix_spawnattr_setsigmask,
10895 posix_spawnattr_setflags, posix_spawnattr_destroy.
10897 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
10898 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
10899 * modules/execute (Files): Remove m4/posix_spawn.m4.
10900 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
10901 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
10902 posix_spawnattr_init, posix_spawnattr_setsigmask,
10903 posix_spawnattr_setflags, posix_spawnattr_destroy.
10905 2009-01-25 Bruno Haible <bruno@clisp.org>
10907 * lib/glthread/threadlib.c: Include <stdlib.h>.
10909 2009-01-25 Bruno Haible <bruno@clisp.org>
10911 * lib/glthread/threadlib.c (dummy): New declaration.
10913 2009-01-25 Bruno Haible <bruno@clisp.org>
10915 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
10916 multibyte characters also for the GB18030 encoding. Don't crash when
10917 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
10919 2009-01-25 Bruno Haible <bruno@clisp.org>
10921 Avoid redefining 'struct random_data' on OSF/1 5.1.
10922 * lib/stdlib.in.h: Include <random.h> if it exists.
10923 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
10924 HAVE_RANDOM_H. Include <random.h> when testing whether
10925 'struct random_data' exists.
10926 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
10928 2009-01-25 Bruno Haible <bruno@clisp.org>
10930 Don't install charset.alias on MacOS X >= 10.3.
10931 * lib/localcharset.c (DARWIN7): New macro.
10932 (get_charset_aliases): Hardcode the result for Darwin7.
10933 * modules/localcharset (install-exec-local): Don't install
10934 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
10936 2009-01-25 Bruno Haible <bruno@clisp.org>
10938 Don't install charset.alias on mingw and Cygwin.
10939 * modules/localcharset (install-exec-local): Don't install
10940 charset.alias on mingw and Cygwin, if the file does not yet exist.
10941 The result for these platforms is hardcoded in localcharset.c.
10943 2009-01-25 Bruno Haible <bruno@clisp.org>
10945 Make it possible again to use AC_GNU_SOURCE together with gnulib.
10946 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
10947 before requiring AC_USE_SYSTEM_EXTENSIONS.
10949 2009-01-25 Jim Meyering <meyering@redhat.com>
10951 c-strtod: avoid warnings
10952 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
10953 "assignment discards qualifiers from pointer target type" warnings.
10955 2009-01-24 Bruno Haible <bruno@clisp.org>
10957 Add support for non-UTF-8 locales on MacOS X.
10958 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
10959 canonical encodings. For Darwin 7 and newer, don't map traditional
10960 encodings to UTF-8.
10961 Reported by Vincent Lefevre <vincent@vinc17.org>
10962 at <http://savannah.gnu.org/bugs/?25235>.
10964 2009-01-24 Bruno Haible <bruno@clisp.org>
10966 * doc/gnulib.texi (Obsolete modules): New section.
10967 Reported by Mike Frysinger <vapier@gentoo.org>.
10969 2009-01-24 Bruno Haible <bruno@clisp.org>
10971 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
10974 2009-01-24 Bruno Haible <bruno@clisp.org>
10976 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
10977 Reported by Eric Blake.
10979 2009-01-24 Bruno Haible <bruno@clisp.org>
10981 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
10982 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
10983 Reported by Gary V. Vaughan <gary@gnu.org>.
10985 2009-01-24 Bruno Haible <bruno@clisp.org>
10987 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
10989 2009-01-23 Bruno Haible <bruno@clisp.org>
10991 Make c-strtod, c-strtold usable in libraries.
10992 * lib/c-strtod.c: Include string.h instead of xalloc.h.
10993 (C_STRTOD): Call strdup instead of xstrdup.
10994 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
10995 * modules/c-strtold (Depends-on): Likewise.
10996 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
10997 * NEWS: Mention the change.
10998 Reported by Michael Gold <mgold@ncf.ca>.
11000 2009-01-23 Jim Meyering <meyering@redhat.com>
11002 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
11003 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
11004 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
11006 2009-01-23 Simon Josefsson <simon@josefsson.org>
11008 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
11010 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
11011 * modules/version-etc (Description): Update.
11013 2009-01-22 Bruno Haible <bruno@clisp.org>
11015 Cache the C locale object.
11016 * lib/c-strtod.c (c_locale_cache): New variable.
11017 (c_locale): New function.
11018 (C_STRTOD): Use it, and don't call freelocale.
11019 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
11020 Suggested by Paolo Bonzini.
11022 2009-01-21 Bruno Haible <bruno@clisp.org>
11024 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
11025 conditions other than overflow.
11027 2009-01-21 Bruno Haible <bruno@clisp.org>
11029 * lib/c-strtod.c: Include errno.h.
11030 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
11031 value from STRTOD_L and STRTOD.
11033 2009-01-21 Bruno Haible <bruno@clisp.org>
11034 and Jim Meyering <meyering@redhat.com>
11036 nanosleep: skip configure test (fail it) for apple universal builds
11037 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
11038 universal builds, assume that nanosleep does not work.
11039 * modules/nanosleep (Depends-on): Add multiarch.
11041 mktime: skip configure test (fail it) for apple universal builds
11042 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
11043 universal builds, assume that mktime does not work.
11044 * modules/mktime (Depends-on): Add multiarch.
11046 2009-01-21 Eric Blake <ebb9@byu.net>
11048 multiarch: avoid expand-before-require warning
11049 * modules/multiarch (configure.ac): Require, rather than expand,
11051 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
11052 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
11053 enforce that all clients require it. Partial reversion of
11056 error: avoid expand-before-require warning
11057 * modules/errno (configure.ac): Require, rather than expand,
11059 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
11060 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
11061 enforce that all clients require it.
11063 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
11064 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
11065 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
11066 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
11068 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
11071 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
11073 regex: do not depend on obsolete modules.
11074 * modules/regex: Remove memcmp and memmove.
11076 2009-01-20 Bruno Haible <bruno@clisp.org>
11078 Make the 'link' module link on Windows NT 4.
11079 * lib/link.c (_WIN32_WINNT): Don't define.
11080 (CreateHardLinkFuncType): New type.
11081 (CreateHardLinkFunc, initialized): New variables.
11082 (initialize): New function.
11083 (link): Invoke CreateHardLink indirectly through the function pointer.
11085 2009-01-20 Bruno Haible <bruno@clisp.org>
11087 Fix compilation failure on mingw.
11088 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
11090 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
11092 * doc/c-strtod.texi: Mention a couple of restrictions.
11094 2009-01-20 Jim Meyering <meyering@redhat.com>
11096 gettimeofday: move more declarations out of functions
11097 * lib/gettimeofday.c: Move extern declarations of tzset and
11098 gmtime out of containing functions. Prompted by Bruno Haible.
11100 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
11102 regex: do not depend on obsolete modules.
11103 * modules/regex: Remove memcmp and memmove.
11105 2009-01-19 Bruno Haible <bruno@clisp.org>
11107 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
11108 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
11109 gl_BIGENDIAN, not AC_C_BIGENDIAN.
11110 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
11111 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
11113 2009-01-19 Bruno Haible <bruno@clisp.org>
11115 * tests/test-link.c: Include <errno.h>.
11116 (main): Exit with code 77 when a hard link cannot be created due to
11118 * tests/test-link.sh: Skip test when a hard link cannot be created due
11119 to the file system.
11120 Suggested by Eric Blake.
11122 2009-01-19 Martin Lambers <marlam@marlam.de>
11124 * modules/link-tests: New file.
11125 * tests/test-link.sh: New file.
11126 * tests/test-link.c: New file.
11128 2009-01-19 Eric Blake <ebb9@byu.net>
11130 doc: mention another function added in cygwin 1.7.0
11131 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
11132 Another new function in cygwin 1.7.
11134 2009-01-19 Bruno Haible <bruno@clisp.org>
11136 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
11137 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
11138 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
11139 gl_BIGENDIAN, not AC_C_BIGENDIAN.
11140 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
11141 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
11142 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
11143 * m4/md4.m4 (gl_MD4): Likewise.
11144 * m4/md5.m4 (gl_MD5): Likewise.
11145 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
11146 * m4/sha1.m4 (gl_SHA1): Likewise.
11147 * m4/sha256.m4 (gl_SHA256): Likewise.
11148 * m4/sha512.m4 (gl_SHA512): Likewise.
11150 2009-01-19 Bruno Haible <bruno@clisp.org>
11152 * modules/uniname/uniname-tests (Depends-on): Add progname.
11153 * tests/uniname/test-uninames.c: Include progname.h.
11154 (main): Call set_program_name.
11156 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
11157 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
11158 (main): Call set_program_name.
11160 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
11161 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
11162 (main): Call set_program_name.
11164 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
11165 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
11166 (main): Call set_program_name.
11168 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
11169 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
11170 (main): Call set_program_name.
11172 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
11173 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
11174 (main): Call set_program_name.
11176 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
11177 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
11178 (main): Call set_program_name.
11180 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
11181 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
11182 (main): Call set_program_name.
11184 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
11185 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
11186 (main): Call set_program_name.
11188 2009-01-19 Eric Blake <ebb9@byu.net>
11190 test-unistd: test previous patch
11191 * tests/test-unistd.c: Test *_FILENO macros.
11193 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
11194 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
11195 Guarantee a definition.
11196 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
11197 * modules/unistd-safer (Depends-on): Add dependency on unistd.
11198 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
11199 * lib/dup-safer.c (STDERR_FILENO): Likewise.
11200 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
11202 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
11203 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
11204 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
11206 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
11207 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
11208 (STDERR_FILENO): Likewise.
11209 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
11210 (STDERR_FILENO): Likewise.
11211 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
11212 (STDERR_FILENO): Likewise.
11213 Reported by Elbert Pol.
11215 2009-01-19 Eric Blake <ebb9@byu.net>
11217 doc: mention more functions added in cygwin 1.7.0
11218 * doc/posix-functions/abort.texi (abort): Update wording related
11220 * doc/posix-functions/daylight.texi (daylight): Likewise.
11221 * doc/posix-functions/optarg.texi (optarg): Likewise.
11222 * doc/posix-functions/optarg.texi (opterr): Likewise.
11223 * doc/posix-functions/optarg.texi (optind): Likewise.
11224 * doc/posix-functions/optarg.texi (optopt): Likewise.
11225 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
11226 worked in 1.5.x, and was withdrawn in 1.7.
11227 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11228 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
11230 * doc/posix-functions/perror.texi (perror): Likewise.
11231 * doc/posix-functions/printf.texi (printf): Likewise.
11232 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
11233 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
11234 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11235 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11236 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11237 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
11238 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
11240 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
11242 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
11244 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
11245 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
11247 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
11248 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
11249 * doc/posix-functions/confstr.texi (confstr): Likewise.
11250 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
11251 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
11252 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
11253 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
11254 * doc/posix-functions/fputws.texi (fputws): Likewise.
11255 * doc/posix-functions/fwide.texi (fwide): Likewise.
11256 * doc/posix-functions/getwc.texi (getwc): Likewise.
11257 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
11258 * doc/posix-functions/putwc.texi (putwc): Likewise.
11259 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11260 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
11261 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
11262 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11263 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
11264 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
11265 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
11266 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
11267 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
11268 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
11269 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
11271 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
11273 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
11274 * lib/ioctl.c: Include <sys/ioctl.h>.
11276 2009-01-19 Simon Josefsson <simon@josefsson.org>
11278 * modules/getdate-tests (Depends-on): Add progname.
11279 * tests/test-getdate.c: Use progname module, to avoid link errors
11280 on non-glibc systems.
11282 2009-01-18 Simon Josefsson <simon@josefsson.org>
11284 * modules/filenamecat-tests (Depends-on): Add progname.
11285 * modules/fstrcmp-tests (Depends-on): Likewise.
11287 * tests/test-filenamecat.c: Use progname module, to avoid link
11288 errors on non-glibc systems.
11289 * tests/test-fstrcmp.c: Likewise.
11291 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
11293 gettimeofday: avoid warning: nested extern declaration of 'localtime'
11294 * lib/gettimeofday.c: Move extern declaration out of function.
11296 2009-01-18 Bruno Haible <bruno@clisp.org>
11298 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
11299 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
11300 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
11302 2009-01-18 Bruno Haible <bruno@clisp.org>
11304 * lib/strftime.c (MEMPCPY): Remove unused macro.
11305 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
11307 2009-01-18 Martin Lambers <marlam@marlam.de>
11310 * lib/unistd.in.h (link): New declaration.
11311 * lib/link.c: New file.
11312 * m4/link.m4: New file.
11313 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
11315 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
11316 * modules/link: New file.
11317 * doc/posix-functions/link.texi: Mention the new module.
11319 2009-01-18 Bruno Haible <bruno@clisp.org>
11321 * tests/test-avltree_list.c (main): Call set_program_name.
11322 * tests/test-avltree_oset.c (main): Likewise.
11323 * tests/test-obstack-printf.c: Include progname.h.
11324 (main): Call set_program_name.
11325 * tests/test-quotearg.c: Include progname.h.
11326 (main): Call set_program_name.
11327 * tests/test-xmemdup0.c: Include progname.h.
11328 (main): Call set_program_name.
11330 2009-01-18 Bruno Haible <bruno@clisp.org>
11332 New module 'alphasort'.
11333 * lib/dirent.in.h (alphasort): New declaration.
11334 * lib/alphasort.c: New file, from glibc with modifications.
11335 * m4/alphasort.m4: New file.
11336 * modules/alphasort: New file.
11337 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
11339 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
11341 * doc/posix-functions/alphasort.texi: Mention the new module and the
11342 portability problems.
11344 2009-01-18 Bruno Haible <bruno@clisp.org>
11346 New module 'scandir'.
11347 * lib/dirent.in.h (scandir): New declaration.
11348 * lib/scandir.c: New file, from glibc with modifications.
11349 * m4/scandir.m4: New file.
11350 * modules/scandir: New file.
11351 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
11353 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
11355 * doc/posix-functions/scandir.texi: Mention the new module and the
11356 portability problems.
11358 2009-01-17 Bruno Haible <bruno@clisp.org>
11360 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
11361 Update documentation.
11362 (func_remove_suffix): Escape all dots in the suffix. Update
11364 (func_filter_filelist): Update documentation.
11365 Reported by Ralf Wildenhues.
11367 2009-01-17 Bruno Haible <bruno@clisp.org>
11369 * modules/dprintf-posix-tests: New file.
11370 * tests/test-dprintf-posix.sh: New file.
11371 * tests/test-dprintf-posix.c: New file.
11373 New modules 'dprintf', 'dprintf-posix'.
11374 * lib/stdio.in.h (dprintf): New declaration.
11375 * lib/dprintf.c: New file.
11376 * m4/dprintf.m4: New file.
11377 * m4/dprintf-posix.m4: New file.
11378 * modules/dprintf: New file.
11379 * modules/dprintf-posix: New file.
11380 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
11381 HAVE_DPRINTF, REPLACE_DPRINTF.
11382 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
11383 HAVE_DPRINTF, REPLACE_DPRINTF.
11384 * doc/posix-functions/dprintf.texi: Mention the new modules.
11386 2009-01-17 Bruno Haible <bruno@clisp.org>
11388 * modules/vdprintf-posix-tests: New file.
11389 * tests/test-vdprintf-posix.sh: New file.
11390 * tests/test-vdprintf-posix.c: New file.
11392 New modules 'vdprintf', 'vdprintf-posix'.
11393 * lib/stdio.in.h (vdprintf): New declaration.
11394 * lib/vdprintf.c: New file.
11395 * m4/vdprintf.m4: New file.
11396 * m4/vdprintf-posix.m4: New file.
11397 * modules/vdprintf: New file.
11398 * modules/vdprintf-posix: New file.
11399 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
11400 HAVE_VDPRINTF, REPLACE_VDPRINTF.
11401 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
11402 HAVE_VDPRINTF, REPLACE_VDPRINTF.
11403 * doc/posix-functions/vdprintf.texi: Mention the new modules.
11405 2009-01-17 Bruno Haible <bruno@clisp.org>
11407 Fix replacement of fopen on mingw.
11408 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
11411 2009-01-17 Bruno Haible <bruno@clisp.org>
11413 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
11414 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
11416 2009-01-17 Bruno Haible <bruno@clisp.org>
11418 Avoid test-fflush2.sh failure on mingw.
11419 * tests/test-fflush2.c: Include binary-io.h.
11420 (main): Put standard input into binary mode.
11421 * modules/fflush-tests (Depends-on): Add binary-io.
11423 2009-01-17 Bruno Haible <bruno@clisp.org>
11425 * lib/wchar.in.h: In another particular situation, include only the
11426 system's <wchar.h> file.
11427 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
11428 Reported by Albert Chin-A-Young <china@thewrittenword.com>
11429 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
11431 2009-01-17 Bruno Haible <bruno@clisp.org>
11433 Support for stripping executables in --enable-relocatable.
11434 * build-aux/install-reloc: Expect one more argument, or an environment
11435 variable RELOC_STRIP_PROG. If set, strip the destination program and
11437 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
11439 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
11440 to set RELOCATABLE_STRIP.
11441 * NEWS: Mention the new Makefile requirement.
11443 2009-01-17 Bruno Haible <bruno@clisp.org>
11445 * build-aux/install-reloc: Remove debugging information left over by
11446 C compiler on MacOS X.
11448 2009-01-17 Bruno Haible <bruno@clisp.org>
11450 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
11451 * lib/progreloc.c (find_executable): Fix type of pointer passed to
11452 _NSGetExecutablePath.
11454 2009-01-16 Jim Meyering <meyering@redhat.com>
11456 strerror: avoid warnings about discarding "const"
11457 * lib/strerror.c (rpl_strerror): Instead of returning a const
11458 string from each and every "case", use a variable, and add a single
11459 cast after the switch.
11461 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
11463 * lib/arpa_inet.in.h: Add extern "C" block for C++.
11465 2009-01-16 Bruno Haible <bruno@clisp.org>
11467 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
11468 array initializer syntax that also works in C++ mode.
11469 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11471 2009-01-16 Jim Meyering <meyering@redhat.com>
11473 poll: suppress a warning
11474 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
11475 to ignore "...unsigned expression < 0 is always false" warnings.
11477 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
11479 poll: remove declarations of unused variables
11480 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
11481 sockbuf and optlen.
11483 2009-01-15 Bruno Haible <bruno@clisp.org>
11485 Make fflush-after-ungetc POSIX compliant on BSD systems.
11486 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
11487 (clear_ungetc_buffer): Implement also for other systems.
11488 (rpl_fflush): On glibc systems, invoke
11489 clear_ungetc_buffer_preserving_position. Otherwise, invoke
11490 clear_ungetc_buffer after fetching the stream's position, not before.
11492 2009-01-15 Bruno Haible <bruno@clisp.org>
11494 Make fflush-after-ungetc POSIX compliant on glibc systems.
11495 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
11497 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
11498 (rpl_fflush): On glibc systems, simply call the system's fflush
11499 function after clearing the ungetc buffer.
11500 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
11501 Instead, lseek only to the end of file, then use the system's fseeko
11502 for the rest. On glibc systems, reset the EOF indicator bit.
11504 2009-01-15 Jim Meyering <meyering@redhat.com>
11506 openmp.m4: revert quote-adding change, for portability to older autoconf
11507 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
11508 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
11509 Simon Josefsson noticed the problem when using autoconf-2.61.
11511 2009-01-15 Bruno Haible <bruno@clisp.org>
11513 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
11514 * tests/test-fflush2.c (ASSERT): Always fail.
11515 (main): Add two tests for fflush() after ungetc(), taking into account
11516 the Austin Group's clarification.
11517 Suggested by Eric Blake.
11519 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
11521 mktime.m4: remove K&R-style function prototypes
11522 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
11523 for the Sun C++ compiler.
11525 2009-01-14 Bruno Haible <bruno@clisp.org>
11527 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
11528 while including <wchar.h>.
11529 * lib/wchar.in.h: In two particular situations on HP-UX, include only
11530 the system's <wchar.h> file.
11531 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11533 2009-01-14 Bruno Haible <bruno@clisp.org>
11535 * m4/csharp.m4: Don't mention gettext on the serial number line.
11536 * m4/csharpexec.m4: Likewise.
11537 * m4/eaccess.m4: Likewise.
11538 * m4/javaexec.m4: Likewise.
11539 * m4/sig_atomic_t.m4: Likewise.
11540 * m4/tmpdir.m4: Likewise.
11541 * m4/intldir.m4: Bump gettext version.
11542 * m4/lib-ld.m4: Likewise.
11544 2009-01-14 Bruno Haible <bruno@clisp.org>
11546 * lib/progname.c (set_program_name): Add more comments.
11547 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
11549 2009-01-14 Simon Josefsson <simon@josefsson.org>
11551 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
11552 were sys/stat.h does not define it.
11554 2009-01-14 Jim Meyering <meyering@redhat.com>
11556 many *.m4 files: improve m4 quoting
11557 99% of this change was performed by running the following commands:
11558 git ls-files | grep '\.m4$' | xargs perl -pi \
11559 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
11560 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
11561 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
11562 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
11563 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
11564 The remainder were to add Copyright dates, increment serial numbers,
11565 undo some changes in comments, exclude m4/intl.m4, and add quotes
11566 around the "1" in ",1" where the unusual spacing prohibited the
11567 above regexps from doing the job. For more details, see
11568 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
11569 * m4/acl.m4: Modified.
11570 * m4/afs.m4: Likewise.
11571 * m4/alloca.m4: Likewise.
11572 * m4/argp.m4: Likewise.
11573 * m4/argz.m4: Likewise.
11574 * m4/atexit.m4: Likewise.
11575 * m4/bison-i18n.m4: Likewise.
11576 * m4/bison.m4: Likewise.
11577 * m4/byteswap.m4: Likewise.
11578 * m4/c-stack.m4: Likewise.
11579 * m4/c-strtod.m4: Likewise.
11580 * m4/calloc.m4: Likewise.
11581 * m4/canonicalize-lgpl.m4: Likewise.
11582 * m4/chown.m4: Likewise.
11583 * m4/clock_time.m4: Likewise.
11584 * m4/codeset.m4: Likewise.
11585 * m4/copy-file.m4: Likewise.
11586 * m4/csharp.m4: Likewise.
11587 * m4/csharpcomp.m4: Likewise.
11588 * m4/csharpexec.m4: Likewise.
11589 * m4/d-ino.m4: Likewise.
11590 * m4/d-type.m4: Likewise.
11591 * m4/dirfd.m4: Likewise.
11592 * m4/double-slash-root.m4: Likewise.
11593 * m4/eaccess.m4: Likewise.
11594 * m4/eealloc.m4: Likewise.
11595 * m4/environ.m4: Likewise.
11596 * m4/errno_h.m4: Likewise.
11597 * m4/euidaccess.m4: Likewise.
11598 * m4/execute.m4: Likewise.
11599 * m4/fatal-signal.m4: Likewise.
11600 * m4/fchdir.m4: Likewise.
11601 * m4/fcntl_h.m4: Likewise.
11602 * m4/fileblocks.m4: Likewise.
11603 * m4/filenamecat.m4: Likewise.
11604 * m4/findprog.m4: Likewise.
11605 * m4/flexmember.m4: Likewise.
11606 * m4/fnmatch.m4: Likewise.
11607 * m4/fopen.m4: Likewise.
11608 * m4/fpending.m4: Likewise.
11609 * m4/fprintf-posix.m4: Likewise.
11610 * m4/free.m4: Likewise.
11611 * m4/frexp.m4: Likewise.
11612 * m4/frexpl.m4: Likewise.
11613 * m4/fsusage.m4: Likewise.
11614 * m4/ftruncate.m4: Likewise.
11615 * m4/gc-camellia.m4: Likewise.
11616 * m4/gc-random.m4: Likewise.
11617 * m4/gc.m4: Likewise.
11618 * m4/getaddrinfo.m4: Likewise.
11619 * m4/getcwd-abort-bug.m4: Likewise.
11620 * m4/getcwd-path-max.m4: Likewise.
11621 * m4/getdate.m4: Likewise.
11622 * m4/getdomainname.m4: Likewise.
11623 * m4/getgroups.m4: Likewise.
11624 * m4/gethostname.m4: Likewise.
11625 * m4/gethrxtime.m4: Likewise.
11626 * m4/getline.m4: Likewise.
11627 * m4/getloadavg.m4: Likewise.
11628 * m4/getndelim2.m4: Likewise.
11629 * m4/getpass.m4: Likewise.
11630 * m4/gettext.m4: Likewise.
11631 * m4/gettime.m4: Likewise.
11632 * m4/gettimeofday.m4: Likewise.
11633 * m4/gnulib-common.m4: Likewise.
11634 * m4/group-member.m4: Likewise.
11635 * m4/host-os.m4: Likewise.
11636 * m4/iconv.m4: Likewise.
11637 * m4/iconv_open.m4: Likewise.
11638 * m4/inet_ntop.m4: Likewise.
11639 * m4/inet_pton.m4: Likewise.
11640 * m4/inline.m4: Likewise.
11641 * m4/intldir.m4: Likewise.
11642 * m4/intlmacosx.m4: Likewise.
11643 * m4/intmax.m4: Likewise.
11644 * m4/intmax_t.m4: Likewise.
11645 * m4/inttypes.m4: Likewise.
11646 * m4/inttypes_h.m4: Likewise.
11647 * m4/inttypes-pri.m4: Likewise.
11648 * m4/isapipe.m4: Likewise.
11649 * m4/isnand.m4: Likewise.
11650 * m4/isnanf.m4: Likewise.
11651 * m4/isnanl.m4: Likewise.
11652 * m4/javacomp.m4: Likewise.
11653 * m4/javaexec.m4: Likewise.
11654 * m4/jm-winsz1.m4: Likewise.
11655 * m4/jm-winsz2.m4: Likewise.
11656 * m4/lchown.m4: Likewise.
11657 * m4/lcmessage.m4: Likewise.
11658 * m4/ldexpl.m4: Likewise.
11659 * m4/lib-ld.m4: Likewise.
11660 * m4/lib-link.m4: Likewise.
11661 * m4/libsigsegv.m4: Likewise.
11662 * m4/link-follow.m4: Likewise.
11663 * m4/localcharset.m4: Likewise.
11664 * m4/locale-fr.m4: Likewise.
11665 * m4/locale-ja.m4: Likewise.
11666 * m4/locale-tr.m4: Likewise.
11667 * m4/locale-zh.m4: Likewise.
11668 * m4/lock.m4: Likewise.
11669 * m4/longlong.m4: Likewise.
11670 * m4/ls-mntd-fs.m4: Likewise.
11671 * m4/lstat.m4: Likewise.
11672 * m4/malloc.m4: Likewise.
11673 * m4/mathl.m4: Likewise.
11674 * m4/mbrtowc.m4: Likewise.
11675 * m4/mbstate_t.m4: Likewise.
11676 * m4/mbswidth.m4: Likewise.
11677 * m4/memchr.m4: Likewise.
11678 * m4/memcmp.m4: Likewise.
11679 * m4/memcpy.m4: Likewise.
11680 * m4/memmem.m4: Likewise.
11681 * m4/memmove.m4: Likewise.
11682 * m4/mempcpy.m4: Likewise.
11683 * m4/memrchr.m4: Likewise.
11684 * m4/memset.m4: Likewise.
11685 * m4/minmax.m4: Likewise.
11686 * m4/mkdir-slash.m4: Likewise.
11687 * m4/mkdtemp.m4: Likewise.
11688 * m4/mktime.m4: Likewise.
11689 * m4/mmap-anon.m4: Likewise.
11690 * m4/mountlist.m4: Likewise.
11691 * m4/nanosleep.m4: Likewise.
11692 * m4/nls.m4: Likewise.
11693 * m4/nocrash.m4: Likewise.
11694 * m4/open.m4: Likewise.
11695 * m4/openat.m4: Likewise.
11696 * m4/openmp.m4: Likewise.
11697 * m4/pathmax.m4: Likewise.
11698 * m4/perl.m4: Likewise.
11699 * m4/physmem.m4: Likewise.
11700 * m4/pipe.m4: Likewise.
11701 * m4/po.m4: Likewise.
11702 * m4/poll.m4: Likewise.
11703 * m4/posixtm.m4: Likewise.
11704 * m4/posixver.m4: Likewise.
11705 * m4/printf-frexp.m4: Likewise.
11706 * m4/printf-frexpl.m4: Likewise.
11707 * m4/printf-posix.m4: Likewise.
11708 * m4/printf-posix-rpl.m4: Likewise.
11709 * m4/printf.m4: Likewise.
11710 * m4/progtest.m4: Likewise.
11711 * m4/putenv.m4: Likewise.
11712 * m4/readline.m4: Likewise.
11713 * m4/readlink.m4: Likewise.
11714 * m4/readutmp.m4: Likewise.
11715 * m4/realloc.m4: Likewise.
11716 * m4/regex.m4: Likewise.
11717 * m4/relocatable.m4: Likewise.
11718 * m4/relocatable-lib.m4: Likewise.
11719 * m4/rename-dest-slash.m4: Likewise.
11720 * m4/rename.m4: Likewise.
11721 * m4/rmdir-errno.m4: Likewise.
11722 * m4/rmdir.m4: Likewise.
11723 * m4/roundf.m4: Likewise.
11724 * m4/roundl.m4: Likewise.
11725 * m4/rpmatch.m4: Likewise.
11726 * m4/save-cwd.m4: Likewise.
11727 * m4/selinux-selinux-h.m4: Likewise.
11728 * m4/setenv.m4: Likewise.
11729 * m4/settime.m4: Likewise.
11730 * m4/sig2str.m4: Likewise.
11731 * m4/sig_atomic_t.m4: Likewise.
11732 * m4/signalblocking.m4: Likewise.
11733 * m4/signbit.m4: Likewise.
11734 * m4/sigpipe.m4: Likewise.
11735 * m4/sockets.m4: Likewise.
11736 * m4/sockpfaf.m4: Likewise.
11737 * m4/st_dm_mode.m4: Likewise.
11738 * m4/stat-time.m4: Likewise.
11739 * m4/stdbool.m4: Likewise.
11740 * m4/stdint.m4: Likewise.
11741 * m4/stdint_h.m4: Likewise.
11742 * m4/stpcpy.m4: Likewise.
11743 * m4/stpncpy.m4: Likewise.
11744 * m4/strcase.m4: Likewise.
11745 * m4/strchrnul.m4: Likewise.
11746 * m4/strcspn.m4: Likewise.
11747 * m4/strdup.m4: Likewise.
11748 * m4/strftime.m4: Likewise.
11749 * m4/strndup.m4: Likewise.
11750 * m4/strnlen.m4: Likewise.
11751 * m4/strpbrk.m4: Likewise.
11752 * m4/strptime.m4: Likewise.
11753 * m4/strsep.m4: Likewise.
11754 * m4/strtod.m4: Likewise.
11755 * m4/strtoimax.m4: Likewise.
11756 * m4/strtok_r.m4: Likewise.
11757 * m4/strtol.m4: Likewise.
11758 * m4/strtoll.m4: Likewise.
11759 * m4/strtoul.m4: Likewise.
11760 * m4/strtoull.m4: Likewise.
11761 * m4/strtoumax.m4: Likewise.
11762 * m4/strverscmp.m4: Likewise.
11763 * m4/threadlib.m4: Likewise.
11764 * m4/timegm.m4: Likewise.
11765 * m4/tm_gmtoff.m4: Likewise.
11766 * m4/tmpdir.m4: Likewise.
11767 * m4/tmpfile.m4: Likewise.
11768 * m4/tzset.m4: Likewise.
11769 * m4/uintmax_t.m4: Likewise.
11770 * m4/unlinkdir.m4: Likewise.
11771 * m4/unlocked-io.m4: Likewise.
11772 * m4/uptime.m4: Likewise.
11773 * m4/userspec.m4: Likewise.
11774 * m4/utimbuf.m4: Likewise.
11775 * m4/utime.m4: Likewise.
11776 * m4/utimes-null.m4: Likewise.
11777 * m4/utimes.m4: Likewise.
11778 * m4/vararrays.m4: Likewise.
11779 * m4/vasnprintf.m4: Likewise.
11780 * m4/vfprintf-posix.m4: Likewise.
11781 * m4/vprintf-posix.m4: Likewise.
11782 * m4/wait-process.m4: Likewise.
11783 * m4/wchar_t.m4: Likewise.
11784 * m4/wint_t.m4: Likewise.
11785 * m4/write-any-file.m4: Likewise.
11786 * m4/yield.m4: Likewise.
11788 2009-01-13 Bruno Haible <bruno@clisp.org>
11790 Avoid test-copy-file.sh failures when ACL support insufficient.
11791 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
11793 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
11794 Reported by Jim Meyering.
11796 2009-01-13 Bruno Haible <bruno@clisp.org>
11798 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
11799 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
11800 * modules/unistdio/u8-printf-parse (Files): Likewise.
11801 * modules/unistdio/u32-printf-parse (Files): Likewise.
11802 * modules/unistdio/ulc-printf-parse (Files): Likewise.
11804 2009-01-13 Simon Josefsson <simon@josefsson.org>
11806 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
11807 and m4/inttypes_h.m4 too.
11809 2009-01-12 Eric Blake <ebb9@byu.net>
11811 tests: IRIX 6.2 cc can't compile -0.0 into .data
11812 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
11813 rather than at compile-time.
11814 * tests/test-floorl.c (minus_zero): Likewise.
11815 * tests/test-frexpl.c (minus_zero): Likewise.
11816 * tests/test-isnan.c (minus_zerol): Likewise.
11817 * tests/test-isnanl.h (minus_zero): Likewise.
11818 * tests/test-ldexpl.c (minus_zero): Likewise.
11819 * tests/test-roundl.c (minus_zero): Likewise.
11820 * tests/test-signbit.c (minus_zerol): Likewise.
11821 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
11822 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
11823 * tests/test-truncl.c (minus_zero): Likewise.
11824 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
11825 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
11826 Reported by Tom G. Christensen and Nelson H. F. Beebe.
11828 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
11830 regex: fix glibc bug 9697
11831 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
11834 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
11836 regex: fix glibc bug 697
11837 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
11838 being NULL also if there are no backreferences.
11840 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
11842 regex: merge glibc changes
11843 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
11844 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
11845 re_string_skip_chars, re_string_reconstruct): Likewise.
11846 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
11848 2009-01-07 Jim Meyering <meyering@redhat.com>
11850 poll: filter through cppi
11851 * lib/poll.c: Indent cpp directives to reflect nesting.
11853 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
11855 poll: don't return uninitialized
11856 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
11858 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
11860 avoid compile failure on AIX 6.1
11861 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
11862 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
11864 2009-01-04 Jim Meyering <meyering@redhat.com>
11866 remove duplicate inclusion of <stdio.h>
11867 * tests/test-fprintf-posix.c: Likewise.
11868 * tests/test-printf-posix.c: Likewise.
11869 * tests/test-snprintf-posix.c: Likewise.
11870 * tests/test-sprintf-posix.c: Likewise.
11871 * tests/test-vasprintf-posix.c: Likewise.
11872 * tests/test-vfprintf-posix.c: Likewise.
11873 * tests/test-vprintf-posix.c: Likewise.
11874 * tests/test-vsnprintf-posix.c: Likewise.
11875 * tests/test-vsprintf-posix.c: Likewise.
11877 2009-01-03 Jim Meyering <meyering@redhat.com>
11879 gnulib-tool: fix sed-based filtering
11880 * gnulib-tool (func_filter_filelist): Remove extra backslash
11881 in sed_fff_filter definition.
11883 2009-01-02 Jim Meyering <meyering@redhat.com>
11885 strftime: avoid compilation failure on Solaris 2.6
11886 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
11887 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
11888 Don't #define mbrlen or mbsinit, since now they're guaranteed to
11889 be available. Reported by Tom G. Christensen. Details in
11890 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
11892 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11893 Bruno Haible <bruno@clisp.org>
11895 Speed up gnulib-tool by doing more string processing through shell
11897 * gnulib-tool (fast_func_append): New variable.
11898 (func_remove_prefix, func_remove_suffix): New functions.
11899 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
11900 (func_filter_filelist): New function.
11901 (func_get_dependencies): Use func_remove_suffix instead of sed.
11902 (func_get_automake_snippet): Use func_filter_filelist instead of a
11903 subshell and sed invocation.
11905 2009-01-01 Bruno Haible <bruno@clisp.org>
11907 Fix a security bug.
11908 * gnulib-tool (func_import, import, update): Don't allow the characters
11909 '"', '$', '`', '\' in macro arguments that become part of commands that
11912 2009-01-01 Bruno Haible <bruno@clisp.org>
11914 * gnulib-tool (func_reset_sigpipe): Add more comments.
11916 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11918 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
11919 func_emit_tests_Makefile_am, func_import): Abort loops early if we
11920 already know the answer.
11922 2009-01-01 Jim Meyering <meyering@redhat.com>
11924 * lib/version-etc.c (version_etc_va): Update copyright year.
11926 2008-12-30 Bruno Haible <bruno@clisp.org>
11928 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
11929 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
11930 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
11932 2008-12-29 Eric Blake <ebb9@byu.net>
11934 multiarch: avoid autoconf AC_REQUIRE bug
11935 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
11936 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
11938 Reported by Bruno Haible, and analyzed in
11939 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
11941 2008-12-29 Bruno Haible <bruno@clisp.org>
11943 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
11944 files in subdirectories correctly.
11945 Reported by Ralf Wildenhues.
11947 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11949 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
11950 rather than 'join FILE -', for Solaris join.
11952 2008-12-29 Bruno Haible <bruno@clisp.org>
11954 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
11956 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
11957 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
11958 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
11959 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
11960 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
11961 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
11962 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
11963 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
11964 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
11965 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
11966 * m4/nls.m4 (AM_NLS): Likewise.
11967 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
11968 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
11969 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
11970 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
11971 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
11972 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
11973 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
11974 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
11975 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
11976 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
11977 * m4/xsize.m4 (gl_XSIZE): Likewise.
11978 Suggested by Jim Meyering.
11980 2008-11-17 Bruce Korb <bkorb@gnu.org>
11982 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
11983 * lib/parse-duration.c: use a switch instead of cascading if's.
11985 2008-12-29 Eric Blake <ebb9@byu.net>
11987 wchar.h: supply WEOF on Irix 5.3
11988 * lib/wchar.in.h (wint_t): Also supply WEOF.
11989 * lib/wctype.in.h (wint_t): Likewise.
11990 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
11991 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
11992 Reported by Tom G. Christensen.
11994 2008-12-26 Bruno Haible <bruno@clisp.org>
11996 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
11999 2008-12-26 Bruno Haible <bruno@clisp.org>
12001 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
12003 2008-12-26 Bruno Haible <bruno@clisp.org>
12005 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
12006 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
12007 not __STDC_CONSTANT_MACROS.
12008 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
12010 2008-12-25 Bruno Haible <bruno@clisp.org>
12012 Add support for universal builds to vasnprintf.
12013 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
12014 universal builds, guess no.
12015 * modules/vasnprintf-posix (Depends-on): Add multiarch.
12016 * modules/vasprintf-posix (Depends-on): Likewise.
12017 * modules/fprintf-posix (Depends-on): Likewise.
12018 * modules/vfprintf-posix (Depends-on): Likewise.
12019 * modules/snprintf-posix (Depends-on): Likewise.
12020 * modules/vsnprintf-posix (Depends-on): Likewise.
12021 * modules/sprintf-posix (Depends-on): Likewise.
12022 * modules/vsprintf-posix (Depends-on): Likewise.
12023 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12024 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12025 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12026 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12027 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12028 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12029 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12031 Add support for universal builds to <inttypes.h>.
12032 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
12033 _SCNu64_PREFIX): In Apple
12034 universal builds, define directly, using _LP64.
12035 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
12036 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
12037 * modules/inttypes (Depends-on): Add multiarch.
12038 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
12040 Add support for universal builds to <stdint.h>.
12041 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
12042 universal builds, define directly, using _LP64.
12043 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
12044 Apple universal builds, don't test for the size and suffix of ptrdiff_t
12046 * modules/stdint (Depends-on): Add multiarch.
12047 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
12049 New module 'multiarch'.
12050 * modules/multiarch: New file.
12051 * m4/multiarch.m4: New file.
12053 2008-12-25 Bruno Haible <bruno@clisp.org>
12055 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
12057 2008-12-25 Bruno Haible <bruno@clisp.org>
12059 * modules/btowc (License): Relicense under LGPLv2+.
12060 * modules/mbsinit (License): Likewise.
12061 * modules/mbrtowc (License): Likewise.
12062 * modules/wcrtomb (License): Likewise.
12063 * modules/streq (License): Likewise.
12064 Reported by David Lutterkort <lutter@redhat.com>.
12066 2008-12-23 Bruno Haible <bruno@clisp.org>
12068 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
12070 2008-12-23 Bruno Haible <bruno@clisp.org>
12072 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
12073 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
12074 GETADDRINFO_LIB, not in LIBS.
12075 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
12076 * modules/canon-host (Link): Likewise.
12077 * NEWS: Mention the change.
12078 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
12081 2008-12-22 Bruno Haible <bruno@clisp.org>
12083 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
12084 * doc/posix-functions/iswalpha_l.texi: Likewise.
12085 * doc/posix-functions/iswblank_l.texi: Likewise.
12086 * doc/posix-functions/iswcntrl_l.texi: Likewise.
12087 * doc/posix-functions/iswctype_l.texi: Likewise.
12088 * doc/posix-functions/iswdigit_l.texi: Likewise.
12089 * doc/posix-functions/iswgraph_l.texi: Likewise.
12090 * doc/posix-functions/iswlower_l.texi: Likewise.
12091 * doc/posix-functions/iswprint_l.texi: Likewise.
12092 * doc/posix-functions/iswpunct_l.texi: Likewise.
12093 * doc/posix-functions/iswspace_l.texi: Likewise.
12094 * doc/posix-functions/iswupper_l.texi: Likewise.
12095 * doc/posix-functions/iswxdigit_l.texi: Likewise.
12096 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
12097 * doc/posix-functions/open_wmemstream.texi: Likewise.
12098 * doc/posix-functions/swscanf.texi: Likewise.
12099 * doc/posix-functions/towctrans_l.texi: Likewise.
12100 * doc/posix-functions/towlower.texi: Likewise.
12101 * doc/posix-functions/towlower_l.texi: Likewise.
12102 * doc/posix-functions/towupper.texi: Likewise.
12103 * doc/posix-functions/towupper_l.texi: Likewise.
12104 * doc/posix-functions/vfwprintf.texi: Likewise.
12105 * doc/posix-functions/vfwscanf.texi: Likewise.
12106 * doc/posix-functions/vswscanf.texi: Likewise.
12107 * doc/posix-functions/vwprintf.texi: Likewise.
12108 * doc/posix-functions/vwscanf.texi: Likewise.
12109 * doc/posix-functions/wcpcpy.texi: Likewise.
12110 * doc/posix-functions/wcpncpy.texi: Likewise.
12111 * doc/posix-functions/wcscasecmp.texi: Likewise.
12112 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
12113 * doc/posix-functions/wcscoll_l.texi: Likewise.
12114 * doc/posix-functions/wcsdup.texi: Likewise.
12115 * doc/posix-functions/wcsncasecmp.texi: Likewise.
12116 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
12117 * doc/posix-functions/wcsnlen.texi: Likewise.
12118 * doc/posix-functions/wcsnrtombs.texi: Likewise.
12119 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
12120 * doc/posix-functions/wctrans_l.texi: Likewise.
12121 * doc/posix-functions/wctype_l.texi: Likewise.
12122 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
12123 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
12124 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
12125 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
12126 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
12127 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
12128 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
12129 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
12130 * doc/glibc-functions/wcschrnul.texi: Likewise.
12131 * doc/glibc-functions/wcsftime_l.texi: Likewise.
12132 * doc/glibc-functions/wcstod_l.texi: Likewise.
12133 * doc/glibc-functions/wcstof_l.texi: Likewise.
12134 * doc/glibc-functions/wcstol_l.texi: Likewise.
12135 * doc/glibc-functions/wcstold_l.texi: Likewise.
12136 * doc/glibc-functions/wcstoll_l.texi: Likewise.
12137 * doc/glibc-functions/wcstoq.texi: Likewise.
12138 * doc/glibc-functions/wcstoul_l.texi: Likewise.
12139 * doc/glibc-functions/wcstoull_l.texi: Likewise.
12140 * doc/glibc-functions/wcstouq.texi: Likewise.
12141 * doc/glibc-functions/wmempcpy.texi: Likewise.
12143 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
12144 Eric Blake <ebb9@byu.net>
12145 Paolo Bonzini <bonzini@gnu.org>
12146 Bruno Haible <bruno@clisp.org>
12148 Make c-stack work on Haiku.
12149 * lib/c-stack.c (SA_ONSTACK): Define fallback.
12150 (c_stack_action): Use SA_ONSTACK flag.
12152 2008-12-22 Bruno Haible <bruno@clisp.org>
12154 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
12156 2008-12-22 Bruno Haible <bruno@clisp.org>
12158 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
12159 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
12161 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
12163 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
12164 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
12165 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
12166 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
12168 2008-12-22 Bruno Haible <bruno@clisp.org>
12170 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
12173 2008-12-22 Eric Blake <ebb9@byu.net>
12175 Avoid gcc warnings on cygwin.
12176 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
12177 Avoid unused variable.
12178 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
12181 2008-12-22 Bruno Haible <bruno@clisp.org>
12183 Remove HAVE_MBRTOWC conditionals.
12184 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
12185 (mbscasecmp): Assume mbrtowc function.
12186 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
12187 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
12188 * lib/mbschr.c: Include mbuiter.h unconditionally.
12189 (mbschr): Assume mbrtowc function.
12190 * lib/mbscspn.c: Include mbuiter.h unconditionally.
12191 (mbscspn): Assume mbrtowc function.
12192 * lib/mbslen.c: Include mbuiter.h unconditionally.
12193 (mbslen): Assume mbrtowc function.
12194 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
12195 (mbsncasecmp): Assume mbrtowc function.
12196 * lib/mbsnlen.c: Include mbiter.h unconditionally.
12197 (mbsnlen): Assume mbrtowc function.
12198 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
12199 (mbspbrk): Assume mbrtowc function.
12200 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
12201 (mbspcasecmp): Assume mbrtowc function.
12202 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
12203 (mbsrchr): Assume mbrtowc function.
12204 * lib/mbssep.c: Include mbuiter.h unconditionally.
12205 (mbssep): Assume mbrtowc function.
12206 * lib/mbsspn.c: Include mbuiter.h unconditionally.
12207 (mbsspn): Assume mbrtowc function.
12208 * lib/mbsstr.c: Include mbuiter.h unconditionally.
12209 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
12210 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
12211 (mbstok_r): Assume mbrtowc function.
12212 * lib/propername.c: Include mbuiter.h unconditionally.
12213 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
12214 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
12215 (trim2): Assume mbrtowc function.
12216 * lib/mbswidth.c (mbsinit): Remove fallback definition.
12217 (mbsnwidth): Assume mbrtowc function.
12218 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
12219 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
12220 fallback definitions.
12221 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
12223 2008-12-22 Bruno Haible <bruno@clisp.org>
12225 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
12227 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
12229 * modules/regex: Request emulations for the mb*/wc* functions we need.
12230 * m4/regex.m4: Don't look for those functions here.
12231 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
12233 2008-12-22 Bruno Haible <bruno@clisp.org>
12235 * modules/fnmatch (Depends-on): Remove duplicated dependency.
12237 2008-12-21 Bruno Haible <bruno@clisp.org>
12239 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
12240 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
12241 (Include): Remove conditionalization.
12242 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
12243 (Include): Remove conditionalization.
12244 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
12245 (Include): Remove conditionalization.
12246 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
12247 * m4/mbfile.m4 (gl_MBFILE): Likewise.
12248 * NEWS: Mention the change.
12249 Reported by Alan Hourihane <alanh@fairlite.co.uk>
12250 via Sergey Poznyakoff <gray@gnu.org.ua>.
12252 2008-12-21 Bruno Haible <bruno@clisp.org>
12254 * MODULES.html.sh (Extended multibyte and wide character utilities
12255 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
12256 wcrtomb, wcsrtombs.
12257 (Support for systems lacking POSIX:2008): Add accept, bind, close,
12258 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
12259 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
12260 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
12262 2008-12-21 Bruno Haible <bruno@clisp.org>
12264 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
12266 2008-12-21 Bruno Haible <bruno@clisp.org>
12268 * modules/wcsnrtombs-tests: New file.
12269 * tests/test-wcsnrtombs1.sh: New file.
12270 * tests/test-wcsnrtombs2.sh: New file.
12271 * tests/test-wcsnrtombs3.sh: New file.
12272 * tests/test-wcsnrtombs4.sh: New file.
12273 * tests/test-wcsnrtombs.c: New file.
12275 New module 'wcsnrtombs'.
12276 * lib/wchar.in.h (wcsnrtombs): New declaration.
12277 * lib/wcsnrtombs.c: New file.
12278 * lib/wcsrtombs-state.c: New file.
12279 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
12280 (internal_state): Remove variable.
12281 * m4/wcsnrtombs.m4: New file.
12282 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
12284 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
12286 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
12288 * modules/wcsnrtombs: New file.
12289 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
12290 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
12292 2008-12-21 Bruno Haible <bruno@clisp.org>
12294 * modules/wcsrtombs-tests: New file.
12295 * tests/test-wcsrtombs1.sh: New file.
12296 * tests/test-wcsrtombs2.sh: New file.
12297 * tests/test-wcsrtombs3.sh: New file.
12298 * tests/test-wcsrtombs4.sh: New file.
12299 * tests/test-wcsrtombs.c: New file.
12301 New module 'wcsrtombs'.
12302 * lib/wchar.in.h (wcsrtombs): New declaration.
12303 * lib/wcsrtombs.c: New file.
12304 * m4/wcsrtombs.m4: New file.
12305 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
12306 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
12307 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
12308 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
12309 * modules/wcsrtombs: New file.
12310 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
12313 2008-12-21 Bruno Haible <bruno@clisp.org>
12315 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
12316 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
12317 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
12318 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
12320 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
12321 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
12322 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12323 m4/locale-zh.m4, m4/codeset.m4.
12324 * doc/posix-functions/wcrtomb.texi: Document the bug.
12326 2008-12-21 Bruno Haible <bruno@clisp.org>
12328 Work around a btowc() bug on IRIX 6.5.
12329 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
12330 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
12331 REPLACE_WTOBC if not.
12332 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
12333 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
12334 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
12336 2008-12-21 Bruno Haible <bruno@clisp.org>
12338 * modules/wcrtomb-tests: New file.
12339 * tests/test-wcrtomb.sh: New file.
12340 * tests/test-wcrtomb.c: New file.
12342 New module 'wcrtomb'.
12343 * lib/wchar.in.h (wcrtomb): New declaration.
12344 * lib/wcrtomb.c: New file.
12345 * m4/wcrtomb.m4: New file.
12346 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
12348 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
12350 * modules/wcrtomb: New file.
12351 * doc/posix-functions/wcrtomb.texi: Mention the new module.
12353 2008-12-21 Bruno Haible <bruno@clisp.org>
12355 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
12356 * modules/mbsrtowcs (Files): Likewise.
12357 * modules/wctob (Files): Likewise.
12358 * modules/c-strcase-tests (Files): Likewise.
12359 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
12360 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
12361 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
12362 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
12363 * modules/vasnprintf-posix-tests (Files): Likewise.
12365 2008-12-21 William Pursell <bill.pursell@gmail.com>
12367 gitlog-to-changelog: pass all command-line arguments to git-log
12368 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
12369 it is sometimes convenient to filter the commits in various ways.
12370 gitlog-to-changelog only allows --since to specify a start date,
12371 but git-log itself supports many other filtering mechanisms.
12372 At the moment, I want to filter by branch name. Rather than
12373 adding a --branch option to gitlog-to-changelog, it seems more
12374 flexible to simply pass all options directly to git-log and let
12375 git do the work. Notice that this effectively makes --since a
12376 redundant option for gitlog-to-changelog, but removing it would
12377 require current usage to change since calls would then require
12378 an additional '--'.
12380 2008-12-21 Bruno Haible <bruno@clisp.org>
12382 * modules/mbsnrtowcs-tests: New file.
12383 * tests/test-mbsnrtowcs1.sh: New file.
12384 * tests/test-mbsnrtowcs2.sh: New file.
12385 * tests/test-mbsnrtowcs3.sh: New file.
12386 * tests/test-mbsnrtowcs4.sh: New file.
12387 * tests/test-mbsnrtowcs.c: New file.
12389 New module 'mbsnrtowcs'.
12390 * lib/wchar.in.h (mbsnrtowcs): New declaration.
12391 * lib/mbsnrtowcs.c: New file.
12392 * lib/mbsrtowcs-state.c: New file.
12393 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
12394 (internal_state): Remove variable.
12395 * m4/mbsnrtowcs.m4: New file.
12396 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
12398 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
12399 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
12400 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
12401 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
12402 * modules/mbsnrtowcs: New file.
12403 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
12404 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
12405 portability problem.
12407 2008-12-21 Bruno Haible <bruno@clisp.org>
12409 Work around mbsrtowcs bug.
12410 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
12411 (gl_FUNC_MBSRTOWCS): Invoke it.
12412 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12414 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
12416 2008-12-21 Bruno Haible <bruno@clisp.org>
12418 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
12420 2008-12-21 Bruno Haible <bruno@clisp.org>
12422 Update doc for AIX.
12423 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
12424 16-bit wchar_t type.
12425 * doc/posix-functions/btowc.texi: Likewise.
12426 * doc/posix-functions/fgetwc.texi: Likewise.
12427 * doc/posix-functions/fgetws.texi: Likewise.
12428 * doc/posix-functions/fputwc.texi: Likewise.
12429 * doc/posix-functions/fputws.texi: Likewise.
12430 * doc/posix-functions/fwide.texi: Likewise.
12431 * doc/posix-functions/fwprintf.texi: Likewise.
12432 * doc/posix-functions/fwscanf.texi: Likewise.
12433 * doc/posix-functions/getwchar.texi: Likewise.
12434 * doc/posix-functions/getwc.texi: Likewise.
12435 * doc/posix-functions/iswalnum.texi: Likewise.
12436 * doc/posix-functions/iswalpha.texi: Likewise.
12437 * doc/posix-functions/iswblank.texi: Likewise.
12438 * doc/posix-functions/iswcntrl.texi: Likewise.
12439 * doc/posix-functions/iswctype.texi: Likewise.
12440 * doc/posix-functions/iswdigit.texi: Likewise.
12441 * doc/posix-functions/iswgraph.texi: Likewise.
12442 * doc/posix-functions/iswlower.texi: Likewise.
12443 * doc/posix-functions/iswprint.texi: Likewise.
12444 * doc/posix-functions/iswpunct.texi: Likewise.
12445 * doc/posix-functions/iswspace.texi: Likewise.
12446 * doc/posix-functions/iswupper.texi: Likewise.
12447 * doc/posix-functions/iswxdigit.texi: Likewise.
12448 * doc/posix-functions/mbrtowc.texi: Likewise.
12449 * doc/posix-functions/mbsrtowcs.texi: Likewise.
12450 * doc/posix-functions/mbstowcs.texi: Likewise.
12451 * doc/posix-functions/mbtowc.texi: Likewise.
12452 * doc/posix-functions/putwchar.texi: Likewise.
12453 * doc/posix-functions/putwc.texi: Likewise.
12454 * doc/posix-functions/swprintf.texi: Likewise.
12455 * doc/posix-functions/tolower.texi: Likewise.
12456 * doc/posix-functions/toupper.texi: Likewise.
12457 * doc/posix-functions/towctrans.texi: Likewise.
12458 * doc/posix-functions/ungetwc.texi: Likewise.
12459 * doc/posix-functions/vswprintf.texi: Likewise.
12460 * doc/posix-functions/wcrtomb.texi: Likewise.
12461 * doc/posix-functions/wcscat.texi: Likewise.
12462 * doc/posix-functions/wcschr.texi: Likewise.
12463 * doc/posix-functions/wcscmp.texi: Likewise.
12464 * doc/posix-functions/wcscoll.texi: Likewise.
12465 * doc/posix-functions/wcscpy.texi: Likewise.
12466 * doc/posix-functions/wcscspn.texi: Likewise.
12467 * doc/posix-functions/wcsftime.texi: Likewise.
12468 * doc/posix-functions/wcslen.texi: Likewise.
12469 * doc/posix-functions/wcsncat.texi: Likewise.
12470 * doc/posix-functions/wcsncmp.texi: Likewise.
12471 * doc/posix-functions/wcsncpy.texi: Likewise.
12472 * doc/posix-functions/wcspbrk.texi: Likewise.
12473 * doc/posix-functions/wcsrchr.texi: Likewise.
12474 * doc/posix-functions/wcsrtombs.texi: Likewise.
12475 * doc/posix-functions/wcsspn.texi: Likewise.
12476 * doc/posix-functions/wcsstr.texi: Likewise.
12477 * doc/posix-functions/wcstod.texi: Likewise.
12478 * doc/posix-functions/wcstof.texi: Likewise.
12479 * doc/posix-functions/wcstoimax.texi: Likewise.
12480 * doc/posix-functions/wcstok.texi: Likewise.
12481 * doc/posix-functions/wcstold.texi: Likewise.
12482 * doc/posix-functions/wcstoll.texi: Likewise.
12483 * doc/posix-functions/wcstol.texi: Likewise.
12484 * doc/posix-functions/wcstombs.texi: Likewise.
12485 * doc/posix-functions/wcstoull.texi: Likewise.
12486 * doc/posix-functions/wcstoul.texi: Likewise.
12487 * doc/posix-functions/wcstoumax.texi: Likewise.
12488 * doc/posix-functions/wcswidth.texi: Likewise.
12489 * doc/posix-functions/wcsxfrm.texi: Likewise.
12490 * doc/posix-functions/wctob.texi: Likewise.
12491 * doc/posix-functions/wctomb.texi: Likewise.
12492 * doc/posix-functions/wctrans.texi: Likewise.
12493 * doc/posix-functions/wctype.texi: Likewise.
12494 * doc/posix-functions/wcwidth.texi: Likewise.
12495 * doc/posix-functions/wmemchr.texi: Likewise.
12496 * doc/posix-functions/wmemcmp.texi: Likewise.
12497 * doc/posix-functions/wmemcpy.texi: Likewise.
12498 * doc/posix-functions/wmemmove.texi: Likewise.
12499 * doc/posix-functions/wmemset.texi: Likewise.
12500 * doc/posix-functions/wprintf.texi: Likewise.
12501 * doc/posix-functions/wscanf.texi: Likewise.
12503 2008-12-21 Bruno Haible <bruno@clisp.org>
12505 Update doc for HP-UX 11.11.
12506 * doc/posix-functions/btowc.texi: Clarify that the function is missing
12507 in HP-UX version 11.00, not in all versions of HP-UX 11.
12508 * doc/posix-functions/fwide.texi: Likewise.
12509 * doc/posix-functions/fwprintf.texi: Likewise.
12510 * doc/posix-functions/fwscanf.texi: Likewise.
12511 * doc/posix-functions/inet_ntop.texi: Likewise.
12512 * doc/posix-functions/inet_pton.texi: Likewise.
12513 * doc/posix-functions/mbrlen.texi: Likewise.
12514 * doc/posix-functions/mbrtowc.texi: Likewise.
12515 * doc/posix-functions/mbsinit.texi: Likewise.
12516 * doc/posix-functions/mbsrtowcs.texi: Likewise.
12517 * doc/posix-functions/swprintf.texi: Likewise.
12518 * doc/posix-functions/swscanf.texi: Likewise.
12519 * doc/posix-functions/towctrans.texi: Likewise.
12520 * doc/posix-functions/vfwprintf.texi: Likewise.
12521 * doc/posix-functions/vswprintf.texi: Likewise.
12522 * doc/posix-functions/vwprintf.texi: Likewise.
12523 * doc/posix-functions/wcrtomb.texi: Likewise.
12524 * doc/posix-functions/wcsrtombs.texi: Likewise.
12525 * doc/posix-functions/wcsstr.texi: Likewise.
12526 * doc/posix-functions/wctob.texi: Likewise.
12527 * doc/posix-functions/wctrans.texi: Likewise.
12528 * doc/posix-functions/wmemchr.texi: Likewise.
12529 * doc/posix-functions/wmemcmp.texi: Likewise.
12530 * doc/posix-functions/wmemcpy.texi: Likewise.
12531 * doc/posix-functions/wmemmove.texi: Likewise.
12532 * doc/posix-functions/wmemset.texi: Likewise.
12533 * doc/posix-functions/wprintf.texi: Likewise.
12534 * doc/posix-functions/wscanf.texi: Likewise.
12536 2008-12-21 Bruno Haible <bruno@clisp.org>
12538 Work around a portability problem.
12539 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
12540 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
12542 2008-12-20 Bruno Haible <bruno@clisp.org>
12544 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
12545 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
12546 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
12547 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
12548 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
12550 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
12551 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
12553 (GNULIB_defined_mbstate_t): New macro.
12554 (mbsinit): Redefine if REPLACE_MBSINIT is set.
12555 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
12556 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
12557 reuses the system's mbrtowc function but works around the bugs.
12558 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
12559 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
12561 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
12562 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
12563 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
12564 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
12565 REPLACE_MBSINIT if mbsinit needs to be overridden.
12566 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
12567 REPLACE_MBSINIT, REPLACE_MBRTOWC.
12568 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
12569 REPLACE_MBSINIT, REPLACE_MBRTOWC.
12570 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
12572 (Depends): Add mbsinit.
12573 * modules/mbsinit (Depends): Add mbrtowc.
12574 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
12576 2008-12-20 Bruno Haible <bruno@clisp.org>
12578 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
12579 so that there are no conversion errors on AIX.
12580 * tests/test-mbsrtowcs.c (main): LIkewise.
12582 2008-12-20 Bruno Haible <bruno@clisp.org>
12584 Work around wctob bug on Solaris <= 9.
12585 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
12586 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
12587 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
12588 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
12589 * modules/wctob (Files): Add m4/locale-fr.m4.
12590 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
12592 2008-12-20 Bruno Haible <bruno@clisp.org>
12594 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
12596 * tests/test-select-in.sh: Likewise.
12597 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12599 2008-12-20 Bruno Haible <bruno@clisp.org>
12601 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
12602 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
12605 2008-12-20 Bruno Haible <bruno@clisp.org>
12607 Ensure mbstate_t is defined on HP-UX 11.11.
12608 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
12609 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
12610 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
12611 AC_USE_SYSTEM_EXTENSIONS.
12612 * modules/fnmatch (Depends-on): Add extensions.
12613 * modules/mbrlen (Depends-on): Likewise.
12614 * modules/mbrtowc (Depends-on): Likewise.
12615 * modules/mbsinit (Depends-on): Likewise.
12616 * modules/mbsrtowcs (Depends-on): Likewise.
12617 * modules/mbswidth (Depends-on): Likewise.
12618 * modules/quotearg (Depends-on): Likewise.
12619 * modules/strftime (Depends-on): Likewise.
12621 2008-12-20 Bruno Haible <bruno@clisp.org>
12623 Ensure wctob is declared on IRIX 6.5.
12624 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
12625 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
12626 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
12627 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
12629 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
12631 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
12633 2008-12-19 Bruno Haible <bruno@clisp.org>
12635 * modules/mbsrtowcs-tests: New file.
12636 * tests/test-mbsrtowcs1.sh: New file.
12637 * tests/test-mbsrtowcs2.sh: New file.
12638 * tests/test-mbsrtowcs3.sh: New file.
12639 * tests/test-mbsrtowcs4.sh: New file.
12640 * tests/test-mbsrtowcs.c: New file.
12642 New module 'mbsrtowcs'.
12643 * lib/wchar.in.h (mbsrtowcs): New declaration.
12644 * lib/mbsrtowcs.c: New file.
12645 * m4/mbsrtowcs.m4: New file.
12646 * modules/mbsrtowcs: New file.
12647 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
12649 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
12651 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
12653 2008-12-19 Bruno Haible <bruno@clisp.org>
12655 New module 'mbrlen'.
12656 * lib/wchar.in.h (mbrlen): New declaration.
12657 * lib/mbrlen.c: New file.
12658 * m4/mbrlen.m4: New file.
12659 * modules/mbrlen: New file.
12660 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
12662 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
12664 * doc/posix-functions/mbrlen.texi: Document the new module.
12666 2008-12-19 Bruno Haible <bruno@clisp.org>
12668 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
12669 * modules/mbrtowc (Depends-on): Add verify.
12670 Suggested by Paul Eggert.
12672 2008-12-18 Bruno Haible <bruno@clisp.org>
12674 * modules/mbsinit-tests: New file.
12675 * tests/test-mbsinit.sh: New file.
12676 * tests/test-mbsinit.c: New file.
12678 2008-12-18 Bruno Haible <bruno@clisp.org>
12680 * modules/mbrtowc-tests: New file.
12681 * tests/test-mbrtowc1.sh: New file.
12682 * tests/test-mbrtowc2.sh: New file.
12683 * tests/test-mbrtowc3.sh: New file.
12684 * tests/test-mbrtowc4.sh: New file.
12685 * tests/test-mbrtowc.c: New file.
12687 New module 'mbrtowc'.
12688 * lib/wchar.in.h (mbstate_t): Override when the system does not have
12689 mbsinit and mbrtowc.
12690 (mbrtowc): New declaration.
12691 * lib/mbrtowc.c: New file.
12692 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
12693 * modules/mbrtowc: New file.
12694 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
12696 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
12698 * doc/posix-functions/mbrtowc.texi: Document the new module.
12700 2008-12-18 Bruno Haible <bruno@clisp.org>
12702 New module 'wctob'.
12703 * lib/wchar.in.h (wctob): New declaration.
12704 * lib/wctob.c: New file.
12705 * m4/wctob.m4: New file.
12706 * modules/wctob: New file.
12707 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
12709 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
12710 * doc/posix-functions/wctob.texi: Document the new module.
12712 2008-12-18 Bruno Haible <bruno@clisp.org>
12714 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
12715 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
12717 2008-12-18 Simon Josefsson <simon@josefsson.org>
12719 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
12720 G. Christensen" <tgc@jupiterrise.com>.
12722 * lib/flock.c: Need to include errno.h. Reported by "Tom
12723 G. Christensen" <tgc@jupiterrise.com>.
12725 * lib/flock.c: Need to include string.h. Reported by "Tom
12726 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
12729 2008-12-18 Bruno Haible <bruno@clisp.org>
12731 * m4/locale-ja.m4: New file, from GNU gettext.
12733 2008-12-17 Bruno Haible <bruno@clisp.org>
12735 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
12736 Suggested by Eric Blake.
12738 2008-12-17 Bruno Haible <bruno@clisp.org>
12740 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
12742 2008-12-17 Bruno Haible <bruno@clisp.org>
12744 * lib/mbsinit.c: Include verify.h. Verify an assumption.
12745 * modules/mbsinit (Depends-on): Add verify.
12746 Suggested by Paul Eggert.
12748 2008-12-17 Bruno Haible <bruno@clisp.org>
12750 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
12751 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
12753 * m4/mbiter.m4 (gl_MBITER): LIkewise.
12754 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
12755 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
12756 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
12757 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
12758 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
12759 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
12760 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
12761 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
12762 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
12763 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
12764 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
12765 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
12766 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
12767 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
12768 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
12769 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
12770 * modules/trim (configure.ac): Likewise.
12772 2008-12-17 Bruno Haible <bruno@clisp.org>
12774 * modules/btowc-tests: New file.
12775 * tests/test-btowc1.sh: New file.
12776 * tests/test-btowc2.sh: New file.
12777 * tests/test-btowc.c: New file.
12779 New module 'btowc'.
12780 * lib/wchar.in.h (btowc): New declaration.
12781 * lib/btowc.c: New file.
12782 * m4/btowc.m4: New file.
12783 * modules/btowc: New file.
12784 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
12786 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
12787 * doc/posix-functions/btowc.texi: Document the new module.
12789 2008-12-17 Bruno Haible <bruno@clisp.org>
12791 New module 'mbsinit'.
12792 * lib/wchar.in.h (mbsinit): New declaration.
12793 * lib/mbsinit.c: New file.
12794 * m4/mbsinit.m4: New file.
12795 * modules/mbsinit: New file.
12796 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
12798 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
12800 * doc/posix-functions/mbsinit.texi: Document the new module.
12802 2008-12-16 Bruno Haible <bruno@clisp.org>
12804 * lib/unistd.in.h: Add comment.
12805 * tests/test-environ.c: Don't include <stdlib.h>.
12807 2008-12-16 Bruno Haible <bruno@clisp.org>
12809 * lib/parse-duration.h (parse_duration): Document return value
12811 * lib/parse-duration.c: Include specification header first. Add
12814 (parse_year_month_day, parse_hour_minute_second): Move side effects
12815 outside of strchr call.
12816 (parse_non_iso8601): Move side effects outside of isspace call.
12817 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
12820 2008-12-16 Bruno Haible <bruno@clisp.org>
12822 * tests/test-parse-duration.sh: Produce no output when the test
12825 2008-12-16 Bruno Haible <bruno@clisp.org>
12827 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
12830 2008-12-15 Bruno Haible <bruno@clisp.org>
12832 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
12833 * doc/glibc-functions/flistxattr.texi: Likewise.
12834 * doc/glibc-functions/fopencookie.texi: Likewise.
12835 * doc/glibc-functions/fremovexattr.texi: Likewise.
12836 * doc/glibc-functions/fsetxattr.texi: Likewise.
12837 * doc/glibc-functions/getxattr.texi: Likewise.
12838 * doc/glibc-functions/lgetxattr.texi: Likewise.
12839 * doc/glibc-functions/listxattr.texi: Likewise.
12840 * doc/glibc-functions/llistxattr.texi: Likewise.
12841 * doc/glibc-functions/lremovexattr.texi: Likewise.
12842 * doc/glibc-functions/lsetxattr.texi: Likewise.
12843 * doc/glibc-functions/removexattr.texi: Likewise.
12844 * doc/glibc-functions/setxattr.texi: Likewise.
12845 * doc/posix-functions/open_memstream.texi: Likewise.
12847 2008-12-15 Eric Blake <ebb9@byu.net>
12849 Update doc for cygwin 1.7.
12850 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
12852 * doc/posix-functions/fchmodat.texi: Likewise.
12853 * doc/posix-functions/fchownat.texi: Likewise.
12854 * doc/posix-functions/fdopendir.texi: Likewise.
12855 * doc/posix-functions/fmemopen.texi: Likewise.
12856 * doc/posix-functions/freeaddrinfo.texi: Likewise.
12857 * doc/posix-functions/fstatat.texi: Likewise.
12858 * doc/posix-functions/futimens.texi: Likewise.
12859 * doc/posix-functions/gai_strerror.texi: Likewise.
12860 * doc/posix-functions/getaddrinfo.texi: Likewise.
12861 * doc/posix-functions/getnameinfo.texi: Likewise.
12862 * doc/posix-functions/if_freenameindex.texi: Likewise.
12863 * doc/posix-functions/if_indextoname.texi: Likewise.
12864 * doc/posix-functions/if_nameindex.texi: Likewise.
12865 * doc/posix-functions/if_nametoindex.texi: Likewise.
12866 * doc/posix-functions/insque.texi: Likewise.
12867 * doc/posix-functions/linkat.texi: Likewise.
12868 * doc/posix-functions/llrint.texi: Likewise.
12869 * doc/posix-functions/llrintf.texi: Likewise.
12870 * doc/posix-functions/llrintl.texi: Likewise.
12871 * doc/posix-functions/lockf.texi: Likewise.
12872 * doc/posix-functions/lrintl.texi: Likewise.
12873 * doc/posix-functions/mkdirat.texi: Likewise.
12874 * doc/posix-functions/mkfifoat.texi: Likewise.
12875 * doc/posix-functions/mknodat.texi: Likewise.
12876 * doc/posix-functions/mq_close.texi: Likewise.
12877 * doc/posix-functions/mq_getattr.texi: Likewise.
12878 * doc/posix-functions/mq_notify.texi: Likewise.
12879 * doc/posix-functions/mq_open.texi: Likewise.
12880 * doc/posix-functions/mq_receive.texi: Likewise.
12881 * doc/posix-functions/mq_send.texi: Likewise.
12882 * doc/posix-functions/mq_setattr.texi: Likewise.
12883 * doc/posix-functions/mq_timedreceive.texi: Likewise.
12884 * doc/posix-functions/mq_timedsend.texi: Likewise.
12885 * doc/posix-functions/mq_unlink.texi: Likewise.
12886 * doc/posix-functions/open_memstream.texi: Likewise.
12887 * doc/posix-functions/openat.texi: Likewise.
12888 * doc/posix-functions/posix_fadvise.texi: Likewise.
12889 * doc/posix-functions/posix_fallocate.texi: Likewise.
12890 * doc/posix-functions/posix_madvise.texi: Likewise.
12891 * doc/posix-functions/posix_memalign.texi: Likewise.
12892 * doc/posix-functions/posix_openpt.texi: Likewise.
12893 * doc/posix-functions/readlinkat.texi: Likewise.
12894 * doc/posix-functions/remque.texi: Likewise.
12895 * doc/posix-functions/renameat.texi: Likewise.
12896 * doc/posix-functions/rintl.texi: Likewise.
12897 * doc/posix-functions/sem_unlink.texi: Likewise.
12898 * doc/posix-functions/shm_open.texi: Likewise.
12899 * doc/posix-functions/shm_unlink.texi: Likewise.
12900 * doc/posix-functions/signgam.texi: Likewise.
12901 * doc/posix-functions/sigset.texi: Likewise.
12902 * doc/posix-functions/stpcpy.texi: Likewise.
12903 * doc/posix-functions/stpncpy.texi: Likewise.
12904 * doc/posix-functions/strerror.texi: Likewise.
12905 * doc/posix-functions/strtod.texi: Likewise.
12906 * doc/posix-functions/symlinkat.texi: Likewise.
12907 * doc/posix-functions/unlinkat.texi: Likewise.
12908 * doc/posix-functions/utimensat.texi: Likewise.
12909 * doc/glibc-functions/bindresvport.texi: Likewise.
12910 * doc/glibc-functions/dn_expand.texi: Likewise.
12911 * doc/glibc-functions/exp10.texi: Likewise.
12912 * doc/glibc-functions/exp10f.texi: Likewise.
12913 * doc/glibc-functions/fgetxattr.texi: Likewise.
12914 * doc/glibc-functions/flistxattr.texi: Likewise.
12915 * doc/glibc-functions/fopencookie.texi: Likewise.
12916 * doc/glibc-functions/freeifaddrs.texi: Likewise.
12917 * doc/glibc-functions/fremovexattr.texi: Likewise.
12918 * doc/glibc-functions/fsetxattr.texi: Likewise.
12919 * doc/glibc-functions/getifaddrs.texi: Likewise.
12920 * doc/glibc-functions/getxattr.texi: Likewise.
12921 * doc/glibc-functions/lgetxattr.texi: Likewise.
12922 * doc/glibc-functions/listxattr.texi: Likewise.
12923 * doc/glibc-functions/llistxattr.texi: Likewise.
12924 * doc/glibc-functions/lremovexattr.texi: Likewise.
12925 * doc/glibc-functions/lsetxattr.texi: Likewise.
12926 * doc/glibc-functions/pow10.texi: Likewise.
12927 * doc/glibc-functions/pow10f.texi: Likewise.
12928 * doc/glibc-functions/rcmd_af.texi: Likewise.
12929 * doc/glibc-functions/removexattr.texi: Likewise.
12930 * doc/glibc-functions/res_init.texi: Likewise.
12931 * doc/glibc-functions/res_mkquery.texi: Likewise.
12932 * doc/glibc-functions/res_query.texi: Likewise.
12933 * doc/glibc-functions/res_querydomain.texi: Likewise.
12934 * doc/glibc-functions/res_send.texi: Likewise.
12935 * doc/glibc-functions/rresvport_af.texi: Likewise.
12936 * doc/glibc-functions/setxattr.texi: Likewise.
12937 * doc/glibc-functions/strcasestr.texi: Likewise.
12939 2008-12-15 Bruno Haible <bruno@clisp.org>
12941 Fix compilation error on OSF/1 4.0.
12942 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
12943 <sys/time.h>, simply delegate to the system header.
12944 Reported by Daniel Richard G. <oss@teragram.com>.
12946 2008-12-15 Bruno Haible <bruno@clisp.org>
12948 * doc/posix-functions/openat.texi: Mention the 'openat' module.
12949 * doc/posix-functions/fchmodat.texi: Likewise.
12950 * doc/posix-functions/fchownat.texi: Likewise.
12951 * doc/posix-functions/fdopendir.texi: Likewise.
12952 * doc/posix-functions/fstatat.texi: Likewise.
12953 * doc/posix-functions/mkdirat.texi: Likewise.
12954 * doc/posix-functions/unlinkat.texi: Likewise.
12956 2008-12-14 Bruno Haible <bruno@clisp.org>
12958 Update doc for POSIX:2008.
12959 * doc/posix-functions/faccessat.texi: New file.
12960 * doc/posix-functions/fchmodat.texi: New file.
12961 * doc/posix-functions/fchownat.texi: New file.
12962 * doc/posix-functions/fdopendir.texi: New file.
12963 * doc/posix-functions/fstatat.texi: New file.
12964 * doc/posix-functions/futimens.texi: New file.
12965 * doc/posix-functions/linkat.texi: New file.
12966 * doc/posix-functions/mkdirat.texi: New file.
12967 * doc/posix-functions/mkfifoat.texi: New file.
12968 * doc/posix-functions/mknodat.texi: New file.
12969 * doc/posix-functions/open_wmemstream.texi: New file.
12970 * doc/posix-functions/openat.texi: New file.
12971 * doc/posix-functions/psiginfo.texi: New file.
12972 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
12973 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
12974 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
12975 * doc/posix-functions/readlinkat.texi: New file.
12976 * doc/posix-functions/renameat.texi: New file.
12977 * doc/posix-functions/strerror_l.texi: New file.
12978 * doc/posix-functions/symlinkat.texi: New file.
12979 * doc/posix-functions/unlinkat.texi: New file.
12980 * doc/posix-functions/utimensat.texi: New file.
12981 * doc/gnulib.texi (Function Substitutes): Add these subsections.
12983 2008-12-14 Bruno Haible <bruno@clisp.org>
12985 Update doc for POSIX:2008.
12986 * doc/posix-functions/alphasort.texi: Renamed from
12987 doc/glibc-functions/alphasort.texi.
12988 * doc/posix-functions/dirfd.texi: Renamed from
12989 doc/glibc-functions/dirfd.texi.
12990 * doc/posix-functions/dprintf.texi: Renamed from
12991 doc/glibc-functions/dprintf.texi.
12992 * doc/posix-functions/duplocale.texi: Renamed from
12993 doc/glibc-functions/duplocale.texi.
12994 * doc/posix-functions/fexecve.texi: Renamed from
12995 doc/glibc-functions/fexecve.texi.
12996 * doc/posix-functions/fmemopen.texi: Renamed from
12997 doc/glibc-functions/fmemopen.texi.
12998 * doc/posix-functions/freelocale.texi: Renamed from
12999 doc/glibc-functions/freelocale.texi.
13000 * doc/posix-functions/getdate_err.texi: Renamed from
13001 doc/glibc-functions/getdate_err.texi.
13002 * doc/posix-functions/isalnum_l.texi: Renamed from
13003 doc/glibc-functions/isalnum_l.texi.
13004 * doc/posix-functions/isalpha_l.texi: Renamed from
13005 doc/glibc-functions/isalpha_l.texi.
13006 * doc/posix-functions/isblank_l.texi: Renamed from
13007 doc/glibc-functions/isblank_l.texi.
13008 * doc/posix-functions/iscntrl_l.texi: Renamed from
13009 doc/glibc-functions/iscntrl_l.texi.
13010 * doc/posix-functions/isdigit_l.texi: Renamed from
13011 doc/glibc-functions/isdigit_l.texi.
13012 * doc/posix-functions/isgraph_l.texi: Renamed from
13013 doc/glibc-functions/isgraph_l.texi.
13014 * doc/posix-functions/islower_l.texi: Renamed from
13015 doc/glibc-functions/islower_l.texi.
13016 * doc/posix-functions/isprint_l.texi: Renamed from
13017 doc/glibc-functions/isprint_l.texi.
13018 * doc/posix-functions/ispunct_l.texi: Renamed from
13019 doc/glibc-functions/ispunct_l.texi.
13020 * doc/posix-functions/isspace_l.texi: Renamed from
13021 doc/glibc-functions/isspace_l.texi.
13022 * doc/posix-functions/isupper_l.texi: Renamed from
13023 doc/glibc-functions/isupper_l.texi.
13024 * doc/posix-functions/iswalnum_l.texi: Renamed from
13025 doc/glibc-functions/iswalnum_l.texi.
13026 * doc/posix-functions/iswalpha_l.texi: Renamed from
13027 doc/glibc-functions/iswalpha_l.texi.
13028 * doc/posix-functions/iswblank_l.texi: Renamed from
13029 doc/glibc-functions/iswblank_l.texi.
13030 * doc/posix-functions/iswcntrl_l.texi: Renamed from
13031 doc/glibc-functions/iswcntrl_l.texi.
13032 * doc/posix-functions/iswctype_l.texi: Renamed from
13033 doc/glibc-functions/iswctype_l.texi.
13034 * doc/posix-functions/iswdigit_l.texi: Renamed from
13035 doc/glibc-functions/iswdigit_l.texi.
13036 * doc/posix-functions/iswgraph_l.texi: Renamed from
13037 doc/glibc-functions/iswgraph_l.texi.
13038 * doc/posix-functions/iswlower_l.texi: Renamed from
13039 doc/glibc-functions/iswlower_l.texi.
13040 * doc/posix-functions/iswprint_l.texi: Renamed from
13041 doc/glibc-functions/iswprint_l.texi.
13042 * doc/posix-functions/iswpunct_l.texi: Renamed from
13043 doc/glibc-functions/iswpunct_l.texi.
13044 * doc/posix-functions/iswspace_l.texi: Renamed from
13045 doc/glibc-functions/iswspace_l.texi.
13046 * doc/posix-functions/iswupper_l.texi: Renamed from
13047 doc/glibc-functions/iswupper_l.texi.
13048 * doc/posix-functions/iswxdigit_l.texi: Renamed from
13049 doc/glibc-functions/iswxdigit_l.texi.
13050 * doc/posix-functions/isxdigit_l.texi: Renamed from
13051 doc/glibc-functions/isxdigit_l.texi.
13052 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
13053 doc/glibc-functions/mbsnrtowcs.texi.
13054 * doc/posix-functions/mkdtemp.texi: Renamed from
13055 doc/glibc-functions/mkdtemp.texi.
13056 * doc/posix-functions/newlocale.texi: Renamed from
13057 doc/glibc-functions/newlocale.texi.
13058 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
13059 doc/glibc-functions/nl_langinfo_l.texi.
13060 * doc/posix-functions/open_memstream.texi: Renamed from
13061 doc/glibc-functions/open_memstream.texi.
13062 * doc/posix-functions/opterr.texi: Renamed from
13063 doc/glibc-functions/opterr.texi.
13064 * doc/posix-functions/optind.texi: Renamed from
13065 doc/glibc-functions/optind.texi.
13066 * doc/posix-functions/optopt.texi: Renamed from
13067 doc/glibc-functions/optopt.texi.
13068 * doc/posix-functions/psignal.texi: Renamed from
13069 doc/glibc-functions/psignal.texi.
13070 * doc/posix-functions/scandir.texi: Renamed from
13071 doc/glibc-functions/scandir.texi.
13072 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
13073 doc/glibc-functions/sched_get_priority_min.texi.
13074 * doc/posix-functions/signgam.texi: Renamed from
13075 doc/glibc-functions/signgam.texi.
13076 * doc/posix-functions/stpcpy.texi: Renamed from
13077 doc/glibc-functions/stpcpy.texi.
13078 * doc/posix-functions/stpncpy.texi: Renamed from
13079 doc/glibc-functions/stpncpy.texi.
13080 * doc/posix-functions/strcasecmp_l.texi: Renamed from
13081 doc/glibc-functions/strcasecmp_l.texi.
13082 * doc/posix-functions/strcoll_l.texi: Renamed from
13083 doc/glibc-functions/strcoll_l.texi.
13084 * doc/posix-functions/strfmon_l.texi: Renamed from
13085 doc/glibc-functions/strfmon_l.texi.
13086 * doc/posix-functions/strftime_l.texi: Renamed from
13087 doc/glibc-functions/strftime_l.texi.
13088 * doc/posix-functions/strncasecmp_l.texi: Renamed from
13089 doc/glibc-functions/strncasecmp_l.texi.
13090 * doc/posix-functions/strndup.texi: Renamed from
13091 doc/glibc-functions/strndup.texi.
13092 * doc/posix-functions/strnlen.texi: Renamed from
13093 doc/glibc-functions/strnlen.texi.
13094 * doc/posix-functions/strsignal.texi: Renamed from
13095 doc/glibc-functions/strsignal.texi.
13096 * doc/posix-functions/strxfrm_l.texi: Renamed from
13097 doc/glibc-functions/strxfrm_l.texi.
13098 * doc/posix-functions/timer_gettime.texi: Renamed from
13099 doc/glibc-functions/timer_gettime.texi.
13100 * doc/posix-functions/tolower_l.texi: Renamed from
13101 doc/glibc-functions/tolower_l.texi.
13102 * doc/posix-functions/toupper_l.texi: Renamed from
13103 doc/glibc-functions/toupper_l.texi.
13104 * doc/posix-functions/towctrans_l.texi: Renamed from
13105 doc/glibc-functions/towctrans_l.texi.
13106 * doc/posix-functions/towlower_l.texi: Renamed from
13107 doc/glibc-functions/towlower_l.texi.
13108 * doc/posix-functions/towupper_l.texi: Renamed from
13109 doc/glibc-functions/towupper_l.texi.
13110 * doc/posix-functions/uselocale.texi: Renamed from
13111 doc/glibc-functions/uselocale.texi.
13112 * doc/posix-functions/vdprintf.texi: Renamed from
13113 doc/glibc-functions/vdprintf.texi.
13114 * doc/posix-functions/wcpcpy.texi:
13115 Renamed from doc/glibc-functions/wcpcpy.texi.
13116 * doc/posix-functions/wcpncpy.texi: Renamed from
13117 doc/glibc-functions/wcpncpy.texi.
13118 * doc/posix-functions/wcscasecmp.texi: Renamed from
13119 doc/glibc-functions/wcscasecmp.texi.
13120 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
13121 doc/glibc-functions/wcscasecmp_l.texi.
13122 * doc/posix-functions/wcscoll_l.texi: Renamed from
13123 doc/glibc-functions/wcscoll_l.texi.
13124 * doc/posix-functions/wcsdup.texi: Renamed from
13125 doc/glibc-functions/wcsdup.texi.
13126 * doc/posix-functions/wcsncasecmp.texi: Renamed from
13127 doc/glibc-functions/wcsncasecmp.texi.
13128 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
13129 doc/glibc-functions/wcsncasecmp_l.texi.
13130 * doc/posix-functions/wcsnlen.texi: Renamed from
13131 doc/glibc-functions/wcsnlen.texi.
13132 * doc/posix-functions/wcsnrtombs.texi: Renamed from
13133 doc/glibc-functions/wcsnrtombs.texi.
13134 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
13135 doc/glibc-functions/wcsxfrm_l.texi.
13136 * doc/posix-functions/wctrans_l.texi: Renamed from
13137 doc/glibc-functions/wctrans_l.texi.
13138 * doc/posix-functions/wctype_l.texi: Renamed from
13139 doc/glibc-functions/wctype_l.texi.
13140 * doc/gnulib.texi (Function Substitutes): Add these subsections.
13141 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
13142 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
13143 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
13145 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
13148 2008-12-14 Bruno Haible <bruno@clisp.org>
13150 Update doc for POSIX:2008.
13151 * doc/posix-functions/*.texi: Update URL of POSIX specification.
13153 2008-12-14 Bruno Haible <bruno@clisp.org>
13155 Update doc for POSIX:2008.
13156 * doc/pastposix-functions/bcmp.texi: Renamed from
13157 doc/posix-functions/bcmp.texi.
13158 * doc/pastposix-functions/bcopy.texi: Renamed from
13159 doc/posix-functions/bcopy.texi.
13160 * doc/pastposix-functions/bsd_signal.texi: Renamed from
13161 doc/posix-functions/bsd_signal.texi.
13162 * doc/pastposix-functions/bzero.texi: Renamed from
13163 doc/posix-functions/bzero.texi.
13164 * doc/pastposix-functions/ecvt.texi: Renamed from
13165 doc/posix-functions/ecvt.texi.
13166 * doc/pastposix-functions/fcvt.texi: Renamed from
13167 doc/posix-functions/fcvt.texi.
13168 * doc/pastposix-functions/ftime.texi: Renamed from
13169 doc/posix-functions/ftime.texi.
13170 * doc/pastposix-functions/gcvt.texi: Renamed from
13171 doc/posix-functions/gcvt.texi.
13172 * doc/pastposix-functions/getcontext.texi: Renamed from
13173 doc/posix-functions/getcontext.texi.
13174 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
13175 doc/posix-functions/gethostbyaddr.texi.
13176 * doc/pastposix-functions/gethostbyname.texi: Renamed from
13177 doc/posix-functions/gethostbyname.texi.
13178 * doc/pastposix-functions/getwd.texi: Renamed from
13179 doc/posix-functions/getwd.texi.
13180 * doc/pastposix-functions/h_errno.texi: Renamed from
13181 doc/posix-functions/h_errno.texi.
13182 * doc/pastposix-functions/index.texi: Renamed from
13183 doc/posix-functions/index.texi.
13184 * doc/pastposix-functions/makecontext.texi: Renamed from
13185 doc/posix-functions/makecontext.texi.
13186 * doc/pastposix-functions/mktemp.texi: Renamed from
13187 doc/posix-functions/mktemp.texi.
13188 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
13189 doc/posix-functions/pthread_attr_getstackaddr.texi.
13190 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
13191 doc/posix-functions/pthread_attr_setstackaddr.texi.
13192 * doc/pastposix-functions/rindex.texi: Renamed from
13193 doc/posix-functions/rindex.texi.
13194 * doc/pastposix-functions/scalb.texi: Renamed from
13195 doc/posix-functions/scalb.texi.
13196 * doc/pastposix-functions/setcontext.texi: Renamed from
13197 doc/posix-functions/setcontext.texi.
13198 * doc/pastposix-functions/swapcontext.texi: Renamed from
13199 doc/posix-functions/swapcontext.texi.
13200 * doc/pastposix-functions/ualarm.texi: Renamed from
13201 doc/posix-functions/ualarm.texi.
13202 * doc/pastposix-functions/usleep.texi: Renamed from
13203 doc/posix-functions/usleep.texi.
13204 * doc/pastposix-functions/vfork.texi: Renamed from
13205 doc/posix-functions/vfork.texi.
13206 * doc/pastposix-functions/wcswcs.texi: Renamed from
13207 doc/posix-functions/wcswcs.texi.
13208 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
13209 (Function Substitutes): Update.
13211 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13213 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
13216 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13217 Bruno Haible <bruno@clisp.org>
13219 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
13221 2008-12-13 Bruno Haible <bruno@clisp.org>
13223 * modules/strtoull (Depends-on): Remove unistd.
13225 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13227 * modules/strtoull (Depends-on): Add stdlib.
13229 2008-12-11 Simon Josefsson <simon@josefsson.org>
13231 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
13233 2008-12-10 Jim Meyering <meyering@redhat.com>
13235 gl_ASSERT: don't say assertions are disabled when they're not
13236 * m4/assert.m4 (gl_ASSERT): Do not make configure report
13237 "checking whether to enable assertions... no", when they are in
13238 fact enabled. This is solely a bug in the output of configure.
13239 In spite of saying "no", NDEBUG was not defined in that case.
13240 Also, as noted by Eric Blake, leave assertions enabled upon
13241 --enable-assert=INVALID.
13243 2008-12-10 Bruno Haible <bruno@clisp.org>
13245 Change MODULES.html to refer to POSIX:2008 where possible.
13246 * MODULES.html.sh (POSIX2008_URL): New variable.
13247 (posix_headers): Remove sys/timeb, ucontext.
13248 (posix2001_headers): New variable.
13249 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
13250 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
13251 index, makecontext, mktemp, pthread_attr_getstackaddr,
13252 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
13253 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
13254 (posix2001_functions): New variable.
13255 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
13258 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13260 add missing include to parse-duration.c
13261 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
13262 * modules/parse-duration (Depends-on): Add xalloc.
13264 fix sed script reading maint.mk
13265 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
13266 (syntax-check-rules): Use it.
13268 2008-12-09 Bruno Haible <bruno@clisp.org>
13270 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
13271 MacOS X 10.4/PowerPC.
13272 Reported by Simon Josefsson.
13274 2008-12-08 Jim Meyering <meyering@redhat.com>
13276 work around mingw's lack of some S_IF definitions
13277 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
13278 Reported by Simon Josefsson.
13280 2008-12-08 Bruno Haible <bruno@clisp.org>
13282 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
13283 applied to variables. Needed on MacOS X 10.4/PowerPC.
13284 Reported by Simon Josefsson.
13286 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
13287 and Eric Blake <ebb9@byu.net>
13289 assert: honor --enable-assert
13290 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
13291 order to honor --enable-assert, rather than treating it as a
13292 synonym for --disable-assert.
13294 2008-12-08 Jim Meyering <meyering@redhat.com>
13296 * lib/posixtm.c: Remove now-useless declaration of mktime.
13298 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
13300 2008-12-07 Bruno Haible <bruno@clisp.org>
13302 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
13303 test_once): Mark functions as static.
13304 * tests/test-tls.c (test_tls): Likewise.
13306 2008-12-07 Bruno Haible <bruno@clisp.org>
13308 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
13309 iconv_register_autodetect.
13311 2008-12-07 Jim Meyering <meyering@redhat.com>
13313 posixtm.c: avoid a warning
13314 * lib/posixtm.c (posixtime): Don't initialize tm0.
13315 It's no longer needed to placate gcc4's -Wuninitialized,
13316 and the attempt to placate would elicit a new warning.
13318 unicodeio.c: mark unused parameters
13319 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
13320 (fallback_failure_callback): Likewise.
13322 2008-12-07 Bruno Haible <bruno@clisp.org>
13324 * gnulib-tool (func_create_testdir): When building the tests
13325 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
13326 Reported by Simon Josefsson.
13328 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13330 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
13332 2008-12-06 Bruno Haible <bruno@clisp.org>
13334 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
13335 Suggested by Eric Blake.
13337 2008-12-06 Bruno Haible <bruno@clisp.org>
13339 Fix a c-stack test failure on MacOS X.
13340 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
13341 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
13342 handler for SIGBUS as well.
13343 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
13344 install a signal handler for SIGBUS as well.
13345 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
13347 2008-12-06 Bruno Haible <bruno@clisp.org>
13349 Advocacy documentation.
13350 * doc/gnulib-intro.texi (Benefits): New section.
13351 * doc/gnulib.texi: Update.
13353 2008-12-06 Bruno Haible <bruno@clisp.org>
13355 Document the 'manywarnings' module.
13356 * doc/manywarnings.texi: New file.
13357 * doc/gnulib.texi: Include it.
13359 2008-12-05 Eric Blake <ebb9@byu.net>
13361 tests: silence some gcc warnings
13362 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
13363 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
13366 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13367 Bruno Haible <bruno@clisp.org>
13369 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
13371 2008-11-29 Jim Meyering <meyering@redhat.com>
13373 unicodeio.c: mark unused parameters
13374 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
13375 (fallback_failure_callback): Likewise.
13378 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
13379 (set_stat_type): Return S_IF*-valued "type" directly.
13380 Prompted by James Youngman's spotting a related bug.
13381 Confirmed by further testing through find.
13383 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
13384 * lib/fts.c (D_TYPE): Define.
13385 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
13386 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
13387 (s_ifmt_shift_bits): New function.
13388 (set_stat_type): New function.
13389 (fts_build): When not calling fts_stat, call set_stat_type
13390 to propagate dirent.d_type info to fts_read caller.
13391 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
13392 fts_statp->st_mode type information may be valid.
13394 2008-11-28 Simon Josefsson <simon@josefsson.org>
13396 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
13397 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
13400 2008-11-20 Bruno Haible <bruno@clisp.org>
13402 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
13403 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
13405 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
13406 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
13407 * modules/math (Makefile.am): Substitute
13408 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
13409 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13411 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
13412 Bruno Haible <bruno@clisp.org>
13414 * lib/stdint.in.h: Define all type macros so that their expansion is
13415 a single typedef'ed token. Fixes a compilation failure in Boost which
13416 does "using ::int8_t;".
13418 2008-11-18 Simon Josefsson <simon@josefsson.org>
13420 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
13421 gl_MANYWARN_ALL_GCC.
13422 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
13423 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
13424 * modules/manywarnings: New file.
13425 * MODULES.html.sh: Mention manywarnings module.
13427 2008-11-18 Bruno Haible <bruno@clisp.org>
13429 * doc/gnulib-tool.texi (Unit tests): New section.
13431 2008-11-18 Simon Josefsson <simon@josefsson.org>
13433 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
13434 paths like 'lib/po/foo.po'.
13436 2008-11-17 Simon Josefsson <simon@josefsson.org>
13438 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
13439 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
13441 2008-11-17 Simon Josefsson <simon@josefsson.org>
13443 * m4/warnings.m4: Use CPPFLAGS to really check whether the
13446 2008-11-17 Simon Josefsson <simon@josefsson.org>
13448 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
13450 2008-11-17 Bruce Korb <bkorb@gnu.org>
13452 * modules/parse-duration-tests: New file.
13453 * tests/test-parse-duration.sh: New file.
13454 * tests/test-parse-duration.c: New file.
13456 New module 'parse-duration'.
13457 * lib/parse-duration.h: New file.
13458 * lib/parse-duration.c: New file.
13459 * modules/parse-duration: New file.
13461 2008-11-17 Bruno Haible <bruno@clisp.org>
13463 * tests/test-select-out.sh: Comment out the first pipe test.
13464 Reported by Simon Josefsson.
13466 2008-11-17 Bruno Haible <bruno@clisp.org>
13468 * modules/getaddrinfo (Depends-on): Add servent, hostent.
13469 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
13472 2008-11-17 Bruno Haible <bruno@clisp.org>
13474 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
13475 -lnetwork and -lnet. Needed for Haiku and BeOS.
13477 2008-11-16 Bruno Haible <bruno@clisp.org>
13479 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
13481 2008-11-16 Bruno Haible <bruno@clisp.org>
13483 Avoid test failure on Haiku.
13484 * tests/test-fsync.c: Include <errno.h>.
13485 (main): Don't require that fsync (0) fails.
13487 2008-11-15 Bruno Haible <bruno@clisp.org>
13489 New module 'hostent'.
13490 * modules/hostent: New file.
13491 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
13493 2008-11-15 Bruno Haible <bruno@clisp.org>
13495 New module 'servent'.
13496 * modules/servent: New file.
13497 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
13499 2008-11-15 Bruno Haible <bruno@clisp.org>
13501 Avoid generating same test program with two different rules.
13502 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
13503 test-frexp to test-frexp-nolibm.
13504 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
13505 test-frexpl to test-frexpl-nolibm.
13507 2008-11-15 Bruno Haible <bruno@clisp.org>
13509 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
13512 2008-11-15 Bruno Haible <bruno@clisp.org>
13514 * lib/netdb.in.h: Activate the definitions also when the system's
13515 <netdb.h> has 'struct addrinfo'.
13516 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
13517 EAI_OVERFLOW or AI_NUMERICSERV.
13518 * doc/posix-headers/netdb.texi: Document the problem.
13520 2008-11-15 Bruno Haible <bruno@clisp.org>
13522 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
13524 Make the 'sched' module work on platforms where <sched.h> exists but
13525 is incomplete (such as Haiku).
13526 * lib/sched.in.h; Include the system's <sched.h> if it exists.
13527 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
13528 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
13529 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
13530 HAVE_STRUCT_SCHED_PARAM.
13531 * modules/sched (Depends-on): Add include_next.
13532 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
13533 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
13534 * doc/posix-headers/sched.texi: Document the issue.
13536 2008-11-13 Jim Meyering <meyering@redhat.com>
13538 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
13539 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
13540 test would fail due to the difference in the Report bugs to ...
13541 line. The expected address is empty, "<>", while the actual
13542 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
13544 2008-11-12 Bruno Haible <bruno@clisp.org>
13546 lstat: don't compile lstat.c on systems lacking lstat
13547 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
13548 which don't have lstat; this is handled by lib/sys_stat.in.h already.
13549 Reported by Daniel P. Berrange via Jim Meyering.
13551 2008-11-12 Jim Meyering <meyering@redhat.com>
13553 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
13555 2008-11-12 Simon Josefsson <simon@josefsson.org>
13557 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
13560 2008-11-12 Bruno Haible <bruno@clisp.org>
13562 * lib/unicodeio.c: Include unistr.h.
13563 (utf8_wctomb): Remove function.
13564 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
13566 2008-11-12 Simon Josefsson <simon@josefsson.org>
13568 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
13569 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
13571 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
13573 2008-11-12 Simon Josefsson <simon@josefsson.org>
13575 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
13576 * doc/gnulib.texi: Add section for warnings.
13578 2008-11-11 Bruno Haible <bruno@clisp.org>
13580 * lib/sockets.h: Add a comment.
13582 2008-11-11 Karl Berry <karl@gnu.org>
13584 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
13586 2008-11-11 Eric Blake <ebb9@byu.net>
13588 fdl.texi: avoid git symlinks
13589 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
13591 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13593 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
13595 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13597 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
13598 (gl_WARN_ADD): Substitute $2 if literal.
13600 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13602 * m4/warning.m4: Remove.
13604 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
13606 * m4/warnings.m4: Almost complete rewrite. :-)
13608 2008-11-10 Simon Josefsson <simon@josefsson.org>
13610 * modules/warnings: New module.
13611 * m4/warnings.m4: New file.
13612 * MODULES.html.sh: Mention warnings module.
13613 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
13614 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13616 2008-11-10 Eric Blake <ebb9@byu.net>
13618 fdl.texi: make a symlink to the latest version
13619 * doc/standards.texi: Revert today's earlier change.
13620 * doc/fdl-1.2.texi: Rename from old fdl.texi...
13621 * doc/fdl.texi: ...and replace this with a symlink to the newer
13624 2008-11-10 Bruno Haible <bruno@clisp.org>
13626 * tests/test-select-fd.c (main): Accept the result file name as fourth
13628 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
13629 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
13631 2008-11-10 Bruno Haible <bruno@clisp.org>
13633 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
13634 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
13635 as autoconf-substituted macros.
13636 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
13637 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
13638 gl_NETDB_H_DEFAULTS. Set these variables.
13639 * modules/netdb (Makefile.am): Substitute these variables.
13641 2008-11-10 Eric Blake <ebb9@byu.net>
13643 standards.texi: include correct file for FDL 1.3
13644 * doc/standards.texi (GNU Free Documentation License): Change
13645 include file to pull in FDL 1.3, not 1.2.
13647 fdl.texi: revert accidental change to license
13648 * doc/fdl.texi: This is FDL 1.2, not 1.3.
13650 2008-11-10 Bruno Haible <bruno@clisp.org>
13652 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
13653 cross-compiling guesses also when the native compile gives no result.
13655 2008-11-10 Bruno Haible <bruno@clisp.org>
13657 * lib/spawni.c (__spawni): Force variable into the stack.
13659 2008-11-10 Bruno Haible <bruno@clisp.org>
13661 Add support for Haiku.
13662 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
13663 glibc and BeOS, but also on Haiku.
13664 * lib/fpurge.c (fpurge): Likewise.
13665 * lib/freadable.c (freadable): Likewise.
13666 * lib/freadahead.c (freadahead): Likewise.
13667 * lib/freading.c (freading): Likewise.
13668 * lib/freadptr.c (freadptr): Likewise.
13669 * lib/freadseek.c (freadptrinc): Likewise.
13670 * lib/fseeko.c (rpl_fseeko): Likewise.
13671 * lib/fseterr.c (fseterr): Likewise.
13672 * lib/fwritable.c (fwritable): Likewise.
13673 * lib/fwriting.c (fwriting): Likewise.
13674 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
13676 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
13678 * lib/config.charset: Treat Haiku like BeOS.
13680 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
13682 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
13683 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
13685 2008-11-08 Bruno Haible <bruno@clisp.org>
13687 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
13690 2008-11-08 Bruno Haible <bruno@clisp.org>
13692 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
13694 2008-11-08 Bruno Haible <bruno@clisp.org>
13696 * tests/test-select-fd.c: New file.
13697 * tests/test-select-in.sh: New file.
13698 * tests/test-select-out.sh: New file.
13699 * tests/test-select-stdin.c: New file.
13700 * modules/select-tests (Files): Add the new files.
13701 (Depends-on): Add gettimeofday.
13702 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
13703 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
13704 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
13706 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
13707 Bruno Haible <bruno@clisp.org>
13709 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
13711 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
13713 * build-aux/pmccabe2html: Added support for C++ source files.
13715 2008-11-05 Ben Pfaff <blp@gnu.org>
13717 Fix lib/close.c build on Windows.
13718 * modules/close (Files): Add lib/w32sock.h.
13720 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
13722 Accept Bison's NEWS format.
13723 * build-aux/announce-gen (print_news_deltas): Tweak
13726 2008-11-04 Bruno Haible <bruno@clisp.org>
13728 * modules/random_r (Maintainer): Add glibc.
13730 2008-11-04 Simon Josefsson <simon@josefsson.org>
13732 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
13733 by karl@freefriends.org (Karl Berry).
13734 * doc/alloca.texi: Likewise.
13735 * doc/c-ctype.texi: Likewise.
13736 * doc/c-strcase.texi: Likewise.
13737 * doc/c-strcaseeq.texi: Likewise.
13738 * doc/c-strcasestr.texi: Likewise.
13739 * doc/c-strstr.texi: Likewise.
13740 * doc/c-strtod.texi: Likewise.
13741 * doc/c-strtold.texi: Likewise.
13742 * doc/ctime.texi: Likewise.
13743 * doc/error.texi: Likewise.
13744 * doc/fdl.texi: Likewise.
13745 * doc/gcd.texi: Likewise.
13746 * doc/getdate.texi: Likewise.
13747 * doc/gnulib-intro.texi: Likewise.
13748 * doc/gnulib-tool.texi: Likewise.
13749 * doc/gnulib.texi: Likewise.
13750 * doc/inet_ntoa.texi: Likewise.
13751 * doc/maintain.texi: Likewise.
13752 * doc/make-stds.texi: Likewise.
13753 * doc/quote.texi: Likewise.
13754 * doc/regexprops-generic.texi: Likewise.
13755 * doc/standards.texi: Likewise.
13756 * doc/verify.texi: Likewise.
13757 * doc/visibility.texi: Likewise.
13758 * doc/gnulib.texi (GNU Free Documentation License): Include
13759 fdl-1.3.texi instead of fdl.texi.
13761 2008-11-04 Simon Josefsson <simon@josefsson.org>
13763 * doc/fdl-1.3.texi: New file, from
13764 <http://www.gnu.org/licenses/fdl-1.3.texi>.
13765 * modules/fdl-1.3: Add.
13766 * MODULES.html.sh: Add fdl-1.3.
13768 2008-11-03 Bruno Haible <bruno@clisp.org>
13770 Make determination of absolute name of header file work with AIX xlc.
13771 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
13772 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
13774 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
13775 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13777 2008-11-03 Simon Josefsson <simon@josefsson.org>
13779 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
13780 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
13783 2008-11-02 Bruno Haible <bruno@clisp.org>
13785 Mark 'strpbrk' obsolete.
13786 * modules/strpbrk (Status, Notice): New sections.
13787 * modules/strtok_r (Depends-on): Add strpbrk.
13789 2008-11-02 Bruno Haible <bruno@clisp.org>
13791 Mark 'strdup' obsolete.
13792 * modules/strdup (Status, Notice): New sections.
13793 * modules/findprog (Depends-on): Add strdup.
13794 * modules/getaddrinfo (Depends-on): Likewise.
13795 * modules/localename (Depends-on): Likewise.
13796 * modules/relocatable-lib (Depends-on): Likewise.
13797 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
13798 * modules/relocatable-prog (Depends-on): Likewise.
13799 * modules/trim (Depends-on): Likewise.
13800 * modules/unictype/gen-ctype (Depends-on): Likewise.
13801 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13803 2008-11-02 Bruno Haible <bruno@clisp.org>
13805 Mark 'strcspn' obsolete.
13806 * modules/strcspn (Status, Notice): New sections.
13808 2008-11-02 Bruno Haible <bruno@clisp.org>
13810 Mark 'rmdir' obsolete.
13811 * modules/rmdir (Status, Notice): New sections.
13812 * modules/clean-temp (Depends-on): Add rmdir.
13813 * modules/openat (Depends-on): Likewise.
13815 2008-11-02 Bruno Haible <bruno@clisp.org>
13817 Mark 'raise' obsolete.
13818 * modules/raise (Status, Notice): New sections.
13819 (Include): Specify <signal.h>.
13820 * modules/stdio (Depends-on): Add raise.
13821 * modules/write (Depends-on): Likewise.
13823 2008-11-02 Bruno Haible <bruno@clisp.org>
13825 Mark 'memset' obsolete.
13826 * modules/memset (Status, Notice): New sections.
13828 2008-11-02 Bruno Haible <bruno@clisp.org>
13830 Mark 'memmove' obsolete.
13831 * modules/memmove (Status, Notice): New sections.
13832 * modules/argp (Depends-on): Add memmove.
13833 * modules/argz (Depends-on): Likewise.
13834 * modules/canonicalize (Depends-on): Likewise.
13835 * modules/canonicalize-lgpl (Depends-on): Likewise.
13836 * modules/fts (Depends-on): Likewise.
13837 * modules/getcwd (Depends-on): Likewise.
13838 * modules/human (Depends-on): Likewise.
13839 * modules/regex (Depends-on): Likewise.
13840 * modules/striconveh (Depends-on): Likewise.
13841 * modules/trim (Depends-on): Likewise.
13842 * modules/unistr/u8-move (Depends-on): Likewise.
13843 * modules/unistr/u16-move (Depends-on): Likewise.
13844 * modules/unistr/u32-move (Depends-on): Likewise.
13846 2008-11-02 Bruno Haible <bruno@clisp.org>
13848 Mark 'memcpy' obsolete.
13849 * modules/memcpy (Status, Notice): New sections.
13851 2008-11-02 Bruno Haible <bruno@clisp.org>
13853 Mark 'memcmp' obsolete.
13854 * modules/memcmp (Status, Notice): New sections.
13855 * modules/argmatch (Depends-on): Add memchr.
13856 * modules/backupfile (Depends-on): Likewise.
13857 * modules/c-strcasestr (Depends-on): Likewise.
13858 * modules/crypto/des (Depends-on): Likewise.
13859 * modules/csharpcomp (Depends-on): Likewise.
13860 * modules/fnmatch (Depends-on): Likewise.
13861 * modules/git-merge-changelog (Depends-on): Likewise.
13862 * modules/isnand (Depends-on): Likewise.
13863 * modules/isnand-nolibm (Depends-on): Likewise.
13864 * modules/isnanf (Depends-on): Likewise.
13865 * modules/isnanf-nolibm (Depends-on): Likewise.
13866 * modules/isnanl (Depends-on): Likewise.
13867 * modules/isnanl-nolibm (Depends-on): Likewise.
13868 * modules/mbchar (Depends-on): Likewise.
13869 * modules/memcoll (Depends-on): Likewise.
13870 * modules/quotearg (Depends-on): Likewise.
13871 * modules/regex (Depends-on): Likewise.
13872 * modules/relocatable-prog (Depends-on): Likewise.
13873 * modules/same (Depends-on): Likewise.
13874 * modules/signbit (Depends-on): Likewise.
13875 * modules/strcasestr-simple (Depends-on): Likewise.
13876 * modules/unictype/gen-ctype (Depends-on): Likewise.
13877 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
13878 * modules/uniname/uniname (Depends-on): Likewise.
13879 * modules/unistr/u8-cmp (Depends-on): Likewise.
13881 2008-11-02 Bruno Haible <bruno@clisp.org>
13883 Mark 'memchr' obsolete.
13884 * modules/memchr (Status, Notice): New sections.
13885 * modules/argp (Depends-on): Add memchr.
13886 * modules/base64 (Depends-on): Likewise.
13887 * modules/c-strcasestr (Depends-on): Likewise.
13888 * modules/chdir-long (Depends-on): Likewise.
13889 * modules/fnmatch (Depends-on): Likewise.
13890 * modules/getsubopt (Depends-on): Likewise.
13891 * modules/git-merge-changelog (Depends-on): Likewise.
13892 * modules/glob (Depends-on): Likewise.
13893 * modules/strcasestr-simple (Depends-on): Likewise.
13894 * modules/strnlen (Depends-on): Likewise.
13896 2008-11-02 Bruno Haible <bruno@clisp.org>
13898 Mark 'atexit' obsolete.
13899 * modules/atexit (Status, Notice): New sections.
13900 * modules/chdir-long (Depends-on): Add atexit.
13901 * modules/wait-process (Depends-on): Likewise.
13903 2008-11-02 Bruno Haible <bruno@clisp.org>
13905 * gnulib-tool: New option --with-obsolete.
13906 (func_usage): Document it.
13907 (func_modules_transitive_closure): Drop obsolete dependencies if
13908 incobsolete is not true.
13909 (func_import): Read and save the incobsolete variable to the cache.
13911 2008-11-02 Bruno Haible <bruno@clisp.org>
13913 * modules/TEMPLATE-EXTENDED: New field 'Status'.
13914 * gnulib-tool: New option --extract-status.
13915 (func_usage): Document it.
13916 (sed_extract_prog): Recognize it.
13917 (func_get_status): New function.
13919 2008-10-30 Simon Josefsson <simon@josefsson.org>
13921 * modules/sockets (License): Change from LGPL to LGPLv2+.
13923 2008-10-28 Simon Josefsson <simon@josefsson.org>
13925 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
13927 2008-10-28 Simon Josefsson <simon@josefsson.org>
13929 * MODULES.html.sh (Support for systems lacking POSIX:2001):
13930 Mention times and sys_times.
13931 * modules/sys_times, modules/sys_times-tests: New modules.
13932 * modules/times, modules/times-tests: Likewise
13933 * m4/sys_times_h.m4: New file.
13934 * lib/sys_times.in.h: Likewise
13935 * lib/times.c: Likewise.
13936 * tests/test-sys_times.c: Likewise.
13937 * tests/test-times.c: Likewise.
13938 * doc/posix-headers/sys_times.texi: Update.
13939 * doc/posix-functions/times.texi: Update.
13941 2008-10-28 Jim Meyering <meyering@redhat.com>
13943 * modules/tempname (Depends-on): Add lstat.
13945 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
13947 2008-10-28 Simon Josefsson <simon@josefsson.org>
13949 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
13950 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
13951 using idiom used elsewhere in gnulib.
13953 2008-10-27 Jim Meyering <meyering@redhat.com>
13955 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
13957 2008-10-27 Simon Josefsson <simon@josefsson.org>
13959 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
13960 TESTS_ENVIRONMENT, for shell scripts that needs to call built
13962 * tests/test-argp-2.sh: Use $EXEEXT when needed.
13964 2008-10-27 Simon Josefsson <simon@josefsson.org>
13966 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
13968 2008-10-27 Bruno Haible <bruno@clisp.org>
13970 * tests/test-lstat.c: Include <stdio.h>.
13972 2008-10-27 Simon Josefsson <simon@josefsson.org>
13974 * modules/lstat-tests: New module.
13975 * tests/test-lstat.c: New file.
13977 2008-10-26 Jim Meyering <meyering@redhat.com>
13979 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
13981 2008-10-26 Simon Josefsson <simon@josefsson.org>
13982 Bruno Haible <bruno@clisp.org>
13984 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
13985 * modules/configmake (Include): Add a note that the include must come
13986 after all system headers.
13987 * lib/javaversion.c: Include configmake.h after all other includes.
13989 2008-10-26 Bruno Haible <bruno@clisp.org>
13991 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
13992 HAVE_STRUCT_RANDOM_DATA to 1.
13993 (gl_STDLIB_H): Simplify.
13995 2008-10-26 Simon Josefsson <simon@josefsson.org>
13997 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
13998 substitute HAVE_STRUCT_RANDOM_DATA.
13999 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
14001 * modules/stdlib (Makefile.am): Substitute
14002 HAVE_STRUCT_RANDOM_DATA.
14004 2008-10-26 Simon Josefsson <simon@josefsson.org>
14006 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
14007 * doc/gnulib-intro.texi (Copyright): Likewise.
14009 2008-10-26 Simon Josefsson <simon@josefsson.org>
14011 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
14014 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
14015 Bruno Haible <bruno@clisp.org>
14017 * lib/unistd.in.h: Include <winsock2.h>.
14018 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
14019 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
14020 Provide dummy declarations.
14021 (gethostname): Override.
14022 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
14023 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
14024 gl_PREREQ_SYS_H_WINSOCK2.
14025 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
14026 * doc/posix-functions/gethostname.texi: More details.
14028 2008-10-25 Bruno Haible <bruno@clisp.org>
14030 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
14031 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
14032 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
14034 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
14036 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
14037 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
14038 gl_UNISTD_H_DEFAULTS.
14040 2008-10-25 Eric Blake <ebb9@byu.net>
14042 signbit: avoid spurious compiler failure
14043 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
14044 declarations inside function.
14046 2008-10-24 Simon Josefsson <simon@josefsson.org>
14047 Bruno Haible <bruno@clisp.org>
14049 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
14050 * modules/random_r (Depends-on): Add stdint.
14052 2008-10-24 Bruno Haible <bruno@clisp.org>
14054 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
14056 * modules/strerror (License): Likewise.
14058 2008-10-24 Jim Meyering <meyering@redhat.com>
14060 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
14061 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
14063 2008-10-24 Eric Blake <ebb9@byu.net>
14065 getgroups: fix compilation when getgroups is available
14066 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
14067 but with <config.h> override of getgroups disabled.
14069 2008-10-24 Simon Josefsson <simon@josefsson.org>
14071 * doc/gnulib.texi (Header files): Add note about C++ problems.
14072 Explained by Bruno Haible <bruno@clisp.org>.
14074 2008-10-23 Bruno Haible <bruno@clisp.org>
14076 Define a dummy SA_NODEFER macro on Interix.
14077 * lib/signal.in.h (SA_NODEFER): Define fallback.
14078 Reported by Aleksey Cheusov <cheusov@tut.by> via
14079 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
14081 2008-10-23 Bruno Haible <bruno@clisp.org>
14083 * modules/freadahead (License): Change to LGPLv2+.
14084 Suggested by Simon Josefsson.
14086 2008-10-23 Jim Meyering <meyering@redhat.com>
14088 random_r: new module
14089 * modules/random_r: New file.
14090 * m4/random_r.m4: New file.
14091 * lib/random_r.c: New file, from glibc.
14092 * modules/random_r-tests: New file.
14093 * tests/test-random_r.c: New file.
14094 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
14096 (RAND_MAX): Define.
14097 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
14098 * modules/stdlib: Substitute them, too.
14099 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
14100 * doc/glibc-functions/initstate_r.texi: Mention the new module.
14101 * doc/glibc-functions/random_r.texi: Likewise.
14102 * doc/glibc-functions/setstate_r.texi: Likewise.
14103 * doc/glibc-functions/srandom_r.texi: Likewise.
14104 * config/srclist.txt: Mention it.
14106 2008-10-23 David Lutterkort <lutter@redhat.com>
14108 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
14111 2008-10-23 Jim Meyering <meyering@redhat.com>
14113 selinux-h: mark parameters of stub functions as intentionally unused
14114 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
14115 * lib/se-context.in.h: Likewise.
14117 2008-10-22 Simon Josefsson <simon@josefsson.org>
14119 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
14121 2008-10-22 Simon Josefsson <simon@josefsson.org>
14123 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
14125 2008-10-22 Eric Blake <ebb9@byu.net>
14127 glthread/thread: avoid compiler warning
14128 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
14129 Add unreachable abort to silence compiler.
14131 2008-10-22 Eric Blake <ebb9@byu.net>
14133 netdb: also supply struct addrinfo for cygwin 1.5.x
14134 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
14136 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
14138 * doc/posix-headers/netdb.texi (netdb.h): Document this.
14140 2008-10-22 Bruno Haible <bruno@clisp.org>
14142 * users.txt: Update entry about pspp.
14144 2008-10-21 Bruno Haible <bruno@clisp.org>
14147 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
14148 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
14151 * lib/ioctl.c (ioctl): Don't undefine.
14152 * lib/socket.c (socket): Don't undefine.
14154 Remove unused module indicator macros.
14155 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
14156 GNULIB_$1 as a C macro.
14158 * doc/posix-functions/close.texi: Undo last change.
14159 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
14162 2008-10-21 Bruno Haible <bruno@clisp.org>
14164 Add gethostname() declaration to <unistd.h>.
14165 * lib/unistd.in.h (gethostname): New declaration.
14166 * lib/gethostname.c: Include <unistd.h>.
14167 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
14168 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
14169 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
14170 and HAVE_GETHOSTNAME.
14171 * modules/gethostname (Depends-on): Add unistd.
14172 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14173 (Include): Specify <unistd.h>.
14174 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
14176 * tests/test-gethostname.c: Include <unistd.h> first.
14178 2008-10-21 Bruno Haible <bruno@clisp.org>
14180 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
14181 * modules/select-tests (Depends-on): Likewise.
14182 Reported by Simon Josefsson.
14184 2008-10-21 Simon Josefsson <simon@josefsson.org>
14186 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
14187 * lib/accept.c: New file, based on winsock.c.
14188 * lib/bind.c: New file, based on winsock.c.
14189 * lib/connect.c: New file, based on winsock.c.
14190 * lib/getpeername.c: New file, based on winsock.c.
14191 * lib/getsockname.c: New file, based on winsock.c.
14192 * lib/getsockopt.c: New file, based on winsock.c.
14193 * lib/ioctl.c: New file, based on winsock.c.
14194 * lib/listen.c: New file, based on winsock.c.
14195 * lib/recv.c: New file, based on winsock.c.
14196 * lib/recvfrom.c: New file, based on winsock.c.
14197 * lib/send.c: New file, based on winsock.c.
14198 * lib/sendto.c: New file, based on winsock.c.
14199 * lib/setsockopt.c: New file, based on winsock.c.
14200 * lib/shutdown.c: New file, based on winsock.c.
14201 * lib/socket.c: New file, based on winsock.c.
14202 * lib/w32sock.h: New file, based on winsock.c.
14203 * lib/winsock.c: Remove file.
14204 * modules/accept: Likewise.
14205 * modules/bind: Likewise.
14206 * modules/connect: Likewise.
14207 * modules/getpeername: Likewise.
14208 * modules/getsockname: Likewise.
14209 * modules/getsockopt: Likewise.
14210 * modules/ioctl: Likewise.
14211 * modules/listen: Likewise.
14212 * modules/recv: Likewise.
14213 * modules/recvfrom: Likewise.
14214 * modules/send: Likewise.
14215 * modules/sendto: Likewise.
14216 * modules/setsockopt: Likewise.
14217 * modules/shutdown: Likewise.
14218 * modules/socket: Use socket.c instead of winsock.c.
14219 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
14220 * doc/posix-functions/accept.texi: Doc fix.
14221 * doc/posix-functions/bind.texi: Doc fix.
14222 * doc/posix-functions/close.texi: Doc fix.
14223 * doc/posix-functions/connect.texi: Doc fix.
14224 * doc/posix-functions/getpeername.texi: Doc fix.
14225 * doc/posix-functions/getsockname.texi: Doc fix.
14226 * doc/posix-functions/getsockopt.texi: Doc fix.
14227 * doc/posix-functions/ioctl.texi: Doc fix.
14228 * doc/posix-functions/listen.texi: Doc fix.
14229 * doc/posix-functions/recv.texi: Doc fix.
14230 * doc/posix-functions/recvfrom.texi: Doc fix.
14231 * doc/posix-functions/send.texi: Doc fix.
14232 * doc/posix-functions/sendto.texi: Doc fix.
14233 * doc/posix-functions/setsockopt.texi: Doc fix.
14234 * doc/posix-functions/shutdown.texi: Doc fix.
14235 * doc/posix-functions/socket.texi: Doc fix.
14237 2008-10-20 Bruno Haible <bruno@clisp.org>
14239 Take into account the role of SIGABRT_COMPAT on Windows 2008.
14240 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
14241 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
14242 as an alias for SIGABRT.
14243 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
14244 (sigaction): Map it to SIGABRT.
14245 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
14247 2008-10-20 Bruno Haible <bruno@clisp.org>
14249 * lib/fts.c: Don't include lstat.h.
14250 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
14252 Move the lstat() declaration to <sys/stat.h>.
14253 * lib/lstat.h: Remove file.
14254 * lib/sys_stat.in.h: Add special invocation convention.
14255 (lstat): New declaration.
14256 * lib/lstat.c (orig_lstat): New function.
14257 (rpl_lstat): Use orig_lstat instead of lstat.
14258 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
14259 AC_C_INLINE. Set REPLACE_LSTAT.
14260 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
14262 * modules/lstat (Files): Remove lib/lstat.h.
14263 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
14264 (Include): Specify <sys/stat.h> instead of lstat.h.
14265 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
14267 * NEWS: Mention the change.
14269 2008-10-20 Bruno Haible <bruno@clisp.org>
14271 * modules/posix_spawn-tests: New file.
14272 * tests/test-posix_spawn3.c: New file.
14274 2008-10-20 Bruno Haible <bruno@clisp.org>
14276 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
14277 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
14278 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
14279 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
14280 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
14282 2008-10-20 Bruno Haible <bruno@clisp.org>
14284 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
14285 of posix_spawn on AIX 5.3.
14287 2008-10-20 Bruno Haible <bruno@clisp.org>
14289 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
14291 2008-10-20 Bruno Haible <bruno@clisp.org>
14293 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
14294 of AC_LANG_PROGRAM.
14296 2008-10-20 Simon Josefsson <simon@josefsson.org>
14298 * lib/netdb.in.h: Don't define GNU specific constants until they
14299 are supported or needed. Reported by Bruno Haible
14302 2008-10-20 Simon Josefsson <simon@josefsson.org>
14304 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
14306 2008-10-20 Simon Josefsson <simon@josefsson.org>
14308 * lib/getaddrinfo.h: Remove file.
14309 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
14310 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
14311 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
14312 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
14313 * modules/netdb: Substitute GNULIB_GETADDRINFO.
14314 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
14315 * tests/test-getaddrinfo.c: Likewise.
14316 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
14317 * NEWS: Mention change.
14319 2008-10-19 Bruno Haible <bruno@clisp.org>
14321 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
14323 2008-10-19 Bruno Haible <bruno@clisp.org>
14325 * lib/wait-process.c: Include simply <sys/wait.h>.
14326 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
14327 WIFSTOPPED): Remove fallback definitions.
14328 * modules/wait-process (Depends-on): Add sys_wait.
14330 New module 'sys_wait'.
14331 * modules/sys_wait: New file.
14332 * lib/sys_wait.in.h: New file, partially copied from
14333 lib/wait-process.c.
14334 * m4/sys_wait_h.m4: New file.
14335 * doc/posix-headers/sys_wait.texi: Mention the new module.
14337 2008-10-19 Bruno Haible <bruno@clisp.org>
14339 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
14341 2008-10-19 Bruno Haible <bruno@clisp.org>
14343 Assume that waitpid() fills an 'int' status, not a 'union wait'.
14344 * lib/wait-process.c (WAIT_T): Remove type.
14345 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
14346 (wait_subprocess): Update.
14348 2008-10-19 Bruno Haible <bruno@clisp.org>
14350 New module 'atoll'.
14351 * modules/atoll: New file.
14352 * lib/stdlib.in.h (atoll): New declaration.
14353 * lib/atoll.c: New file, from glibc with modifications.
14354 * m4/atoll.m4: New file.
14355 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
14357 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
14358 * doc/posix-functions/atoll.texi: Mention the new module.
14360 2008-10-19 Bruno Haible <bruno@clisp.org>
14362 Add strtoull() declaration to <stdlib.h>.
14363 * lib/stdlib.in.h (strtoull): New declaration.
14364 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
14366 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
14368 * modules/strtoull (Depends-on): Add stdlib.
14369 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14370 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
14373 2008-10-19 Bruno Haible <bruno@clisp.org>
14375 Add strtoll() declaration to <stdlib.h>.
14376 * lib/stdlib.in.h (strtoll): New declaration.
14377 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
14379 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
14381 * modules/strtoll (Depends-on): Add stdlib.
14382 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14383 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
14385 2008-10-19 Bruno Haible <bruno@clisp.org>
14387 * modules/bcopy (Depends-on): Add strings.
14388 (Include): Specify <strings.h>.
14390 2008-10-19 Bruno Haible <bruno@clisp.org>
14392 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
14394 2008-10-19 Bruno Haible <bruno@clisp.org>
14396 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
14397 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
14400 2008-10-19 Bruno Haible <bruno@clisp.org>
14402 * lib/atanl.c: Don't include isnanl.h.
14403 * lib/cosl.c: Likewise.
14404 * lib/ldexpl.c: Likewise.
14405 * lib/logl.c: Likewise.
14406 * lib/sinl.c: Likewise.
14407 * lib/sqrtl.c: Likewise.
14408 * lib/tanl.c: Likewise.
14410 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
14411 * lib/isnanf.h: Remove file.
14412 * lib/isnand.h: Remove file.
14413 * lib/isnanl.h: Remove file.
14414 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
14415 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
14417 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
14418 HAVE_ISNANF, don't define it as a C macro.
14419 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
14420 HAVE_ISNAND, don't define it as a C macro.
14421 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
14422 HAVE_ISNANL, don't define it as a C macro.
14423 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
14425 * modules/isnanf (Files): Remove lib/isnanf.h.
14426 (Depends-on): Add math.
14427 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14428 (Include): Specify <math.h> instead of isnanf.h.
14429 * modules/isnand (Files): Remove lib/isnand.h.
14430 (Depends-on): Add math.
14431 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14432 (Include): Specify <math.h> instead of isnand.h.
14433 * modules/isnanl (Files): Remove lib/isnanl.h.
14434 (Depends-on): Add math.
14435 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14436 (Include): Specify <math.h> instead of isnanl.h.
14437 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
14439 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
14440 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
14441 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
14442 * NEWS: Mention the change.
14444 2008-10-18 Bruno Haible <bruno@clisp.org>
14446 Add getusershell(), setusershell(), endusershell() declarations to
14448 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
14450 * lib/getusershell.c: Include unistd.h.
14451 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
14452 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
14454 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
14455 and HAVE_GETUSERSHELL.
14456 * modules/getusershell (Depends-on): Add unistd, extensions.
14457 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14458 (Include): Specify <unistd.h>.
14459 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
14462 2008-10-18 Bruno Haible <bruno@clisp.org>
14464 Add a getloadavg() declaration to <stdlib.h>.
14465 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
14466 getloadavg declaration.
14467 (getloadavg): New declaration.
14468 * lib/getloadavg.c: Include <stdlib.h> first.
14469 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
14470 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
14471 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
14472 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
14473 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
14474 * modules/getloadavg (Depends-on): Add stdlib, extensions.
14475 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
14476 (Include): Specify <stdlib.h>.
14477 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
14478 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
14480 2008-10-18 Bruno Haible <bruno@clisp.org>
14482 * lib/dirchownmod.c: Don't include lchmod.h.
14484 Move the lchmod() declaration to <sys/stat.h>.
14485 * lib/lchmod.h: Remove file.
14486 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
14487 (lchmod): New declaration, moved here from lib/lchown.h.
14488 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
14489 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
14490 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
14492 * modules/lchmod (Files): Remove lib/lchmod.h.
14493 (Depends-on): Add sys_stat, extensions.
14494 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
14495 (Include): Specify <sys/stat.h> instead of lchmod.h.
14496 * modules/sys_stat (Depends-on): Add link-warning.
14497 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
14498 definition of GL_LINK_WARNING.
14499 * NEWS: Mention the change.
14501 2008-10-18 Bruno Haible <bruno@clisp.org>
14503 * lib/fchdir.c: Don't include dirfd.h.
14504 * lib/fts.c: Likewise.
14505 * lib/getcwd.c: Likewise.
14506 * lib/glob.c: Likewise.
14508 Move the dirfd() declaration to <dirent.h>.
14509 * lib/dirfd.h: Remove file.
14510 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
14511 (dirfd): New declaration.
14512 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
14513 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
14514 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
14516 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
14518 * modules/dirfd (Files): Remove lib/dirfd.h.
14519 (Depends-on): Add dirent, extensions.
14520 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
14521 (Include): Specify <dirent.h> instead of dirfd.h.
14522 * modules/dirent (Depends-on): Add link-warning.
14523 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
14524 definition of GL_LINK_WARNING.
14525 * NEWS: Mention the change.
14527 2008-10-18 Bruno Haible <bruno@clisp.org>
14529 Move the euidaccess() declaration to <unistd.h>.
14530 * lib/euidaccess.h: Remove file.
14531 * lib/unistd.in.h (euidaccess): New declaration.
14532 * lib/euidaccess.c: Don't include euidaccess.h.
14533 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
14534 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
14535 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
14536 and HAVE_EUIDACCESS.
14537 * modules/euidaccess (Files): Remove lib/euidaccess.h.
14538 (Depends-on): Add unistd.
14539 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14540 (Include): Specify <unistd.h> instead of euidaccess.h.
14541 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
14543 * NEWS: Mention the change.
14545 2008-10-18 Bruno Haible <bruno@clisp.org>
14547 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
14549 Move the getdomainname() declaration to <unistd.h>.
14550 * lib/getdomainname.h: Remove file.
14551 * lib/unistd.in.h (getdomainname): New declaration.
14552 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
14553 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14554 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
14555 HAVE_GETDOMAINNAME.
14556 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14557 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
14558 * modules/getdomainname (Files): Remove lib/getdomainname.h.
14559 (Depends-on): Add unistd, extensions.
14560 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
14561 (Includes): Specify <unistd.h> instead of getdomainname.h.
14562 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
14563 HAVE_GETDOMAINNAME.
14564 * NEWS: Mention the change.
14566 2008-10-18 Bruno Haible <bruno@clisp.org>
14568 * modules/dirent: New file.
14569 * m4/dirent_h.m4: New file.
14570 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
14571 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
14572 * modules/fchdir (Files): Remove lib/dirent.in.h.
14573 (Depends-on): Add dirent.
14574 (Makefile.am): Move rules to modules/dirent.
14575 * doc/posix-headers/dirent.texi: Mention the new module.
14577 2008-10-18 Bruno Haible <bruno@clisp.org>
14579 Avoid -Wunused-parameter warnings in public gnulib header files.
14580 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
14582 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
14584 2008-10-18 Bruno Haible <bruno@clisp.org>
14586 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
14587 * doc/glibc-functions/error.texi: Mention the module 'error'.
14588 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
14589 * doc/glibc-functions/getdomainname.texi: Mention the module
14591 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
14592 * doc/glibc-functions/getpagesize.texi: Mention the module
14594 * doc/glibc-functions/getusershell.texi: Mention the module
14596 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
14597 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
14598 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
14599 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
14600 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
14601 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
14602 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
14603 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
14604 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
14605 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
14606 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
14607 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
14608 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
14609 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
14611 2008-10-17 Bruno Haible <bruno@clisp.org>
14613 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
14614 HP-UX and IRIX, use -0.0L.
14615 * tests/test-ceill.c (minus_zero): Likewise.
14616 * tests/test-floorl.c (minus_zero): Likewise.
14617 * tests/test-frexpl.c (minus_zero): Likewise.
14618 * tests/test-isnan.c (minus_zerol): Likewise.
14619 * tests/test-isnanl.h (minus_zero): Likewise.
14620 * tests/test-ldexpl.c (minus_zero): Likewise.
14621 * tests/test-roundl.c (minus_zero): Likewise.
14622 * tests/test-signbit.c (minus_zerol): Likewise.
14623 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
14624 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
14625 * tests/test-truncl.c (minus_zero): Likewise.
14626 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
14627 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
14628 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
14629 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
14631 2008-10-17 Bruno Haible <bruno@clisp.org>
14633 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
14634 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
14635 that it gets activated only for gcc >= 3.0.
14636 * lib/dirent.in.h: Likewise.
14637 * lib/errno.in.h: Likewise.
14638 * lib/fcntl.in.h: Likewise.
14639 * lib/float.in.h: Likewise.
14640 * lib/iconv.in.h: Likewise.
14641 * lib/inttypes.in.h: Likewise.
14642 * lib/locale.in.h: Likewise.
14643 * lib/math.in.h: Likewise.
14644 * lib/netdb.in.h: Likewise.
14645 * lib/netinet_in.in.h: Likewise.
14646 * lib/search.in.h: Likewise.
14647 * lib/signal.in.h: Likewise.
14648 * lib/spawn.in.h: Likewise.
14649 * lib/stdarg.in.h: Likewise.
14650 * lib/stdint.in.h: Likewise.
14651 * lib/stdio.in.h: Likewise.
14652 * lib/stdlib.in.h: Likewise.
14653 * lib/string.in.h: Likewise.
14654 * lib/strings.in.h: Likewise.
14655 * lib/sys_file.in.h: Likewise.
14656 * lib/sys_ioctl.in.h: Likewise.
14657 * lib/sys_select.in.h: Likewise.
14658 * lib/sys_socket.in.h: Likewise.
14659 * lib/sys_stat.in.h: Likewise.
14660 * lib/sys_time.in.h: Likewise.
14661 * lib/sysexits.in.h: Likewise.
14662 * lib/time.in.h: Likewise.
14663 * lib/unistd.in.h: Likewise.
14664 * lib/wchar.in.h: Likewise.
14665 * lib/wctype.in.h: Likewise.
14666 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
14668 2008-10-17 Jim Meyering <meyering@redhat.com>
14670 ignore-value: don't depend on inline module
14671 * modules/ignore-value (Depends-on): Remove 'inline'.
14672 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
14673 Suggestion from Bruno Haible.
14675 2008-10-17 Bruno Haible <bruno@clisp.org>
14677 New implementation of condition variables for Win32.
14678 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
14679 (gl_linked_waitqueue_t): New type.
14680 (gl_cond_t): Use it.
14681 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
14682 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14683 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
14684 (glthread_cond_init_func, glthread_cond_wait_func,
14685 glthread_cond_timedwait_func, glthread_cond_signal_func,
14686 glthread_cond_broadcast_func, glthread_cond_destroy_func):
14687 Reimplemented on the basis of gl_linked_waitqueue_t.
14688 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
14690 (gl_rwlock_t): Update.
14691 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
14693 2008-10-17 Simon Josefsson <simon@josefsson.org>
14695 * modules/recvfrom (Depends-on): Add dependency on getpeername.
14696 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14698 2008-10-17 Jim Meyering <meyering@redhat.com>
14700 ignore-value: new module
14701 * modules/ignore-value: New file.
14702 * lib/ignore-value.h: New file.
14703 * MODULES.html.sh (Compiler warning management): New section,
14704 just for this module. More to come.
14706 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
14708 open-safer.c: avoid 'signed and unsigned in conditional...' warning
14709 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
14710 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
14712 2008-10-16 Jim Meyering <meyering@redhat.com>
14714 openat-die.c: avoid 'no previous prototype' warning
14715 * lib/openat-die.c: Include "openat.h".
14716 Reported by Reuben Thomas <rrt@sc3d.org>.
14718 2008-10-16 Simon Josefsson <simon@josefsson.org>
14720 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
14721 * lib/netdb.in.h: Fix typo.
14722 Reported by Bruno Haible <bruno@clisp.org>
14724 * lib/netdb.in.h: Include sys/socket.h for platforms without
14725 netdb.h, to get structures like hostent on MinGW.
14726 * modules/netdb (Depends-on): Add sys_socket.
14728 2008-10-15 Simon Josefsson <simon@josefsson.org>
14730 * modules/netdb, modules/netdb-tests: New file.
14731 * m4/netdb_h.m4: New file.
14732 * lib/netdb.in.h: Add, currently just an empty file pending
14734 * tests/test-netdb.c: New file.
14735 * doc/posix-headers/netdb.texi: Mention that we replace it if
14737 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14740 2008-10-15 Simon Josefsson <simon@josefsson.org>
14742 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
14745 2008-10-13 Bruno Haible <bruno@clisp.org>
14747 * lib/glthread/cond.c (glthread_cond_wait_func,
14748 glthread_cond_timedwait_func): Add a comment.
14750 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
14752 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
14753 * tests/test-select.c: Likewise,
14755 2008-10-13 Bruno Haible <bruno@clisp.org>
14757 * lib/glthread/cond.c (glthread_cond_wait_func,
14758 glthread_cond_timedwait_func): Fix variable name.
14759 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14761 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
14763 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
14764 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
14765 struct sockaddr.sa_len.
14766 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
14768 2008-10-13 Simon Josefsson <simon@josefsson.org>
14770 * build-aux/pmccabe2html: Add css and css_url parameters.
14772 2008-10-12 Bruno Haible <bruno@clisp.org>
14774 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
14776 Reported by Rainer Tammer <tammer@tammer.net>.
14778 2008-10-12 Bruno Haible <bruno@clisp.org>
14780 Use msvcrt aware primitives for creation/termination of Win32 threads.
14781 * lib/glthread/thread.c: Include <process.h>.
14782 (glthread_create_func): Use _beginthreadex instead of CreateThread.
14783 (wrapper_func): Update signature.
14784 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
14786 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
14787 Bruno Haible <bruno@clisp.org>
14789 Provide a Win32 implementation of the 'cond' module.
14790 * lib/glthread/cond.h [USE_WIN32]: New implementation.
14791 * lib/glthread/cond.c (glthread_cond_init_func,
14792 glthread_cond_wait_func, glthread_cond_timedwait_func,
14793 glthread_cond_signal_func, glthread_cond_broadcast_func,
14794 glthread_cond_destroy_func) [USE_WIN32]: New functions.
14795 * modules/cond (Dependencies): Add gettimeofday.
14797 2008-10-11 Bruno Haible <bruno@clisp.org>
14799 Make sleep work on older versions of mingw.
14800 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
14801 only whether it exists.
14802 * doc/posix-functions/sleep.texi: Mention the problem with older
14805 2008-10-11 Bruno Haible <bruno@clisp.org>
14807 New module 'shutdown'.
14808 * modules/shutdown: New file.
14809 * lib/sys_socket.in.h (shutdown): New declaration.
14810 * lib/winsock.c (shutdown): New function.
14811 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14813 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
14814 * doc/posix-functions/shutdown.texi: Document the new module.
14816 2008-10-11 Jim Meyering <meyering@redhat.com>
14818 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
14820 2008-10-11 Bruno Haible <bruno@clisp.org>
14822 New module 'fclose'.
14823 * modules/fclose: New file.
14824 * lib/stdio.in.h (fclose): New declaration.
14825 * lib/fclose.c: New file.
14826 * m4/fclose.m4: New file.
14827 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
14829 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
14830 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
14832 * modules/close (Depends-on): fclose.
14833 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
14835 2008-10-11 Bruno Haible <bruno@clisp.org>
14837 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
14838 set errno and don't call _close.
14840 2008-10-10 Bruno Haible <bruno@clisp.org>
14842 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
14843 ACL, not afterwards. Fixes test failure on Cygwin.
14845 2008-10-09 Ben Pfaff <blp@gnu.org>
14847 * build-aux/announce-gen: Fix gnulib version related part of usage
14848 message. Die with a useful error message if no tarballs are
14851 2008-10-10 Jim Meyering <meyering@redhat.com>
14853 bootstrap: use git's --depth=N option only if it's supported
14854 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
14855 recognize the --depth option. Reported by Pádraig Brady.
14857 2008-10-09 Bruno Haible <bruno@clisp.org>
14859 New module 'ioctl'.
14860 * modules/ioctl: New file.
14861 * lib/sys_socket.in.h (ioctl): Remove declaration.
14862 * lib/winsock.c: Include <sys/ioctl.h>.
14863 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
14864 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
14865 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
14866 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
14867 * doc/posix-functions/ioctl.texi: Mention the new module.
14869 2008-10-09 Bruno Haible <bruno@clisp.org>
14871 New module 'sys_ioctl'.
14872 * lib/sys_ioctl.in.h: New file.
14873 * m4/sys_ioctl_h.m4: New file.
14874 * modules/sys_ioctl: New file.
14875 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
14877 2008-10-09 Bruno Haible <bruno@clisp.org>
14879 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
14880 * lib/winsock.c: Include <stdarg.h>.
14881 (rpl_ioctl): Change to second argument 'int' and then varargs.
14883 2008-10-09 Bruno Haible <bruno@clisp.org>
14885 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
14886 when the sys_socket module is present and the system has <winsock2.h>.
14888 2008-10-09 Bruno Haible <bruno@clisp.org>
14890 * doc/posix-functions/close.texi: Mention module 'close' instead of
14891 module 'sys_socket'.
14893 2008-10-09 Bruno Haible <bruno@clisp.org>
14895 * doc/glibc-headers/sys_ioctl.texi: New file.
14896 * doc/gnulib.texi: Include it.
14898 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14899 Bruno Haible <bruno@clisp.org>
14901 Combine the two replacements of 'close'.
14902 * lib/sys_socket.in.h (close): Define to a reminder to include
14904 (_gl_close_fd_maybe_socket): New declaration.
14905 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
14906 * lib/winsock.c (close): Remove undefinition.
14907 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
14908 needed for the gnulib module 'close'.
14909 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
14910 define to an error symbol or to a warning, if suitable.
14911 * lib/close.c: Include <sys/socket.h>.
14912 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
14913 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
14914 UNISTD_H_HAVE_WINSOCK2_H.
14915 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
14916 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14917 UNISTD_H_HAVE_WINSOCK2_H.
14918 * modules/sys_socket (Files): Add m4/unistd_h.m4.
14919 (configure.ac): Set a module indicator.
14920 (Makefile.am): Substitute GNULIB_CLOSE.
14921 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
14922 * modules/poll-tests (Depends-on): Add close.
14923 * modules/select-tests (Depends-on): Likewise.
14925 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14926 Bruno Haible <bruno@clisp.org>
14928 New module 'close'.
14929 * modules/close: New file.
14930 * lib/unistd.in.h (close): Move declaration out of the
14931 FCHDIR_REPLACEMENT scope.
14932 (_gl_unregister_fd): New declaration.
14933 * lib/close.c: New file.
14934 * lib/fchdir.c (rpl_close): Remove function.
14935 * m4/close.m4: New file.
14936 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14938 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
14940 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
14942 * modules/fchdir (Depends-on): Add close.
14944 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14945 Bruno Haible <bruno@clisp.org>
14947 * lib/fcntl.in.h (open): Simplify conditionals.
14948 (_gl_register_fd): New declaration.
14949 * lib/fchdir.c (rpl_open): Remove function.
14950 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
14952 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
14953 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
14956 2008-10-09 Jim Meyering <meyering@redhat.com>
14958 GNUmakefile: use the more name-space-friendly "_version"
14959 * top/GNUmakefile (_dummy): Update.
14960 (_version): Rename from "version".
14962 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14963 Bruno Haible <bruno@clisp.org>
14965 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
14967 (_gl_register_fd): New function, extracted from rpl_open.
14968 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
14969 (rpl_open, rpl_opendir): Use _gl_register_fd.
14971 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
14973 Fix organization of 'open' replacement.
14974 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
14975 (gl_FUNC_OPEN): Use it.
14976 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
14978 2008-10-08 Bruno Haible <bruno@clisp.org>
14980 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
14982 2008-10-08 Simon Josefsson <simon@josefsson.org>
14984 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
14985 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
14988 2008-10-08 Eric Blake <ebb9@byu.net>
14990 GNUmakefile: add 'make version' target
14991 * top/GNUmakefile (_curr-ver): Split version update rules...
14992 (version): ...into a target.
14994 2008-10-07 Bruno Haible <bruno@clisp.org>
14996 Use a more portable replacement expression for -0.0L.
14997 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
14998 instead of -0.0L. Fix m4 quotation.
15000 * tests/test-signbit.c: Include <float.h>.
15001 (minus_zero): New variable.
15002 (test_signbitl): Use minus_zero instead of -zero.
15003 * modules/signbit-tests (Depends-on): Add float.
15005 * tests/test-ceill.c: Include <float.h>.
15006 (zero): Remove variable.
15007 (minus_zero): New variable.
15008 (main): Use minus_zero instead of -zero.
15009 * modules/ceill-tests (Depends-on): Add float.
15011 * tests/test-floorl.c: Include <float.h>.
15012 (zero): Remove variable.
15013 (minus_zero): New variable.
15014 (main): Use minus_zero instead of -zero.
15015 * modules/floorl-tests (Depends-on): Add float.
15017 * tests/test-roundl.c: Include <float.h>.
15018 (zero): Remove variable.
15019 (minus_zero): New variable.
15020 (main): Use minus_zero instead of -zero.
15021 * modules/roundl-tests (Depends-on): Add float.
15023 * tests/test-truncl.c: Include <float.h>.
15024 (zero): Remove variable.
15025 (minus_zero): New variable.
15026 (main): Use minus_zero instead of -zero.
15027 * modules/truncl-tests (Depends-on): Add float.
15029 * tests/test-frexpl.c (zero): Remove variable.
15030 (minus_zero): New variable.
15031 (main): Use minus_zero instead of -zero.
15032 * modules/frexpl-tests (Depends-on): Add float.
15034 * tests/test-isnan.c (zerol): Remove variable.
15035 (minus_zerol): New variable.
15036 (test_long_double): Use minus_zerol instead of -zerol.
15037 * modules/isnan-tests (Depends-on): Add float.
15039 * tests/test-isnanl.h (zero): Remove variable.
15040 (minus_zero): New variable.
15041 (main): Use minus_zero instead of -zero.
15042 * modules/isnanl-nolibm-tests (Depends-on): Add float.
15043 * modules/isnanl-tests (Depends-on): Add float.
15045 * tests/test-ldexpl.c (zero): Remove variable.
15046 (minus_zero): New variable.
15047 (main): Use minus_zero instead of -zero.
15048 * modules/ldexpl-tests (Depends-on): Add float.
15050 * tests/test-snprintf-posix.h (zerol): Remove variable.
15051 (minus_zerol): New variable.
15052 (test_function): Use minus_zerol instead of -zerol.
15053 * modules/snprintf-posix-tests (Depends-on): Add float.
15054 * modules/vsnprintf-posix-tests (Depends-on): Add float.
15056 * tests/test-sprintf-posix.h (zerol): Remove variable.
15057 (minus_zerol): New variable.
15058 (test_function): Use minus_zerol instead of -zerol.
15059 * modules/sprintf-posix-tests (Depends-on): Add float.
15060 * modules/vsprintf-posix-tests (Depends-on): Add float.
15062 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
15063 (minus_zerol): New variable.
15064 (test_function): Use minus_zerol instead of -zerol.
15065 * modules/vasnprintf-posix-tests (Depends-on): Add float.
15067 * tests/test-vasprintf-posix.c (zerol): Remove variable.
15068 (minus_zerol): New variable.
15069 (test_function): Use minus_zerol instead of -zerol.
15070 * modules/vasprintf-posix-tests (Depends-on): Add float.
15072 2008-10-07 Simon Josefsson <simon@josefsson.org>
15074 * MODULES.html.sh (Support for building documentation): Mention
15075 pmccabe2html. Sort entries.
15077 Add pmccabe2html module, from gnupdf.
15078 * build-aux/pmccabe.css: New file.
15079 * build-aux/pmccabe2html: New file.
15080 * m4/pmccabe2html.m4: New file.
15081 * modules/pmccabe2html: New file.
15083 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
15086 * MODULES.html.sh: Add to list of modules.
15087 * lib/flock.c: flock implementation for Windows and Unix systems
15089 * doc/glibc-functions/flock.texi: Update documentation.
15090 * lib/sys_file.in.h: <sys/file.h> header file.
15091 * m4/flock.m4: M4 macros.
15092 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
15093 * modules/flock: flock module.
15094 * modules/flock-tests: flock tests module.
15095 * modules/sys_file: sys/file.h module.
15096 * tests/test-flock.c: test suite for flock.
15098 2008-10-06 Jim Meyering <meyering@redhat.com>
15100 bootstrap: check for LT_INIT more portably still ;-)
15101 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
15102 Spotted by Bruno Haible.
15104 2008-10-06 Eric Blake <ebb9@byu.net>
15106 test-signbit: avoid tripping Irix cc bug on -0.0L
15107 * tests/test-signbit.c (minus_zerol): Delete, and replace with
15108 '-zerol'. This may break on HP-UX/hppa, but at least makes the
15109 entire testsuite consistent and avoids an Irix 6.2 bug.
15111 2008-10-05 Bruno Haible <bruno@clisp.org>
15112 Jim Meyering <jim@meyering.net>
15114 Add an option for ignoring EPIPE during close_stdout.
15115 * lib/closeout.h: Include <stdbool.h>.
15116 (close_stdout_set_ignore_EPIPE): New declaration.
15117 * lib/closeout.c: Include <stdbool.h>.
15118 (ignore_EPIPE): New variable.
15119 (close_stdout_set_ignore_EPIPE): New function.
15120 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
15121 * lib/close-stream.c (close_stream): Mention the possible EPIPE
15123 * modules/closeout (Depends-on): Add stdbool.
15125 2008-10-05 Bruno Haible <bruno@clisp.org>
15127 * modules/accept: New file.
15128 * modules/bind: New file.
15129 * modules/connect: New file.
15130 * modules/getpeername: New file.
15131 * modules/getsockname: New file.
15132 * modules/getsockopt: New file.
15133 * modules/listen: New file.
15134 * modules/recv: New file.
15135 * modules/recvfrom: New file.
15136 * modules/send: New file.
15137 * modules/sendto: New file.
15138 * modules/setsockopt: New file.
15139 * modules/socket: New file.
15140 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
15141 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15142 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
15143 the particular module is requested. Add a link warning when the
15144 particular module is not requested.
15145 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
15146 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
15147 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
15148 the particular module is requested.
15149 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
15150 gl_SYS_SOCKET_H_DEFAULTS): New macros.
15151 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
15152 * modules/sys_socket (Depends-on): Add link-warning.
15153 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
15154 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
15155 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
15156 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
15158 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
15159 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
15160 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
15161 * doc/posix-functions/getpeername.texi: Mention the new module
15163 * doc/posix-functions/getsockname.texi: Mention the new module
15165 * doc/posix-functions/getsockopt.texi: Mention the new module
15167 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
15168 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
15169 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
15170 * doc/posix-functions/send.texi: Mention the new module 'send'.
15171 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
15172 * doc/posix-functions/setsockopt.texi: Mention the new module
15174 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
15175 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
15176 listen, connect, accept.
15177 * modules/select-tests (Depends-on): Likewise.
15179 2008-10-05 Bruno Haible <bruno@clisp.org>
15181 * lib/winsock.c (strerror): Remove unused #undef.
15182 (rpl_close): Remove unused local variable.
15184 * modules/sys_socket (Depends-on); Add errno.
15186 2008-10-05 Bruno Haible <bruno@clisp.org>
15188 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
15189 (select): Add a link warning when the 'select' module is not used.
15190 * modules/sys_select (Depends-on): Add link-warning.
15191 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
15192 Suggested by Paolo Bonzini.
15194 2008-10-05 Jim Meyering <meyering@redhat.com>
15196 bootstrap: check for LT_INIT more portably
15197 * build-aux/bootstrap: Avoid using grep -E, since it's not
15198 portable enough. Suggestion from Bruno Haible.
15200 2008-10-05 Bruno Haible <bruno@clisp.org>
15202 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
15203 as being fixed by gnulib.
15205 2008-10-05 Bruno Haible <bruno@clisp.org>
15207 * modules/select-tests: New file, mostly copied from
15208 modules/sys_select-tests.
15209 * tests/test-select.c: New file, mostly copied from
15210 tests/test-sys_select.c.
15211 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
15212 * modules/sys_select-tests (Depends-on): Remove all dependencies.
15213 (Makefile.am): Remove test_sys_select_LDADD.
15215 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
15216 to an undefined symbol, for an error message.
15217 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
15218 (gl_SYS_SELECT_H_DEFAULTS): New macro.
15219 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
15220 winsock-select.c here.
15221 * modules/sys_select (Files): Remove lib/winsock-select.c.
15222 (Depends-on): Remove alloca.
15223 (Makefile.am): Substitute GNULIB_SELECT.
15224 * modules/select: New file.
15225 * doc/posix-functions/select.texi: Update.
15227 2008-10-05 Bruno Haible <bruno@clisp.org>
15229 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
15230 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
15231 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
15232 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
15234 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
15235 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
15237 2008-10-05 Bruno Haible <bruno@clisp.org>
15239 * modules/getdtablesize-tests: New file.
15240 * tests/test-getdtablesize.c: New file.
15242 New module 'getdtablesize'.
15243 * lib/unistd.in.h (getdtablesize): New declaration.
15244 * lib/getdtablesize.c: New file.
15245 * m4/getdtablesize.m4: New file.
15246 * modules/getdtablesize: New file.
15247 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15248 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
15249 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
15250 HAVE_GETDTABLESIZE.
15251 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
15253 2008-10-05 Bruno Haible <bruno@clisp.org>
15255 * modules/sched (Makefile.am): Fix typo.
15256 Reported by Simon Josefsson.
15258 2008-10-05 Jim Meyering <meyering@redhat.com>
15260 bootstrap: check for LT_INIT, too
15261 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
15262 are deprecated. Suggestion from Ralf Wildenhues.
15264 2008-10-05 Bruno Haible <bruno@clisp.org>
15266 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
15267 overriding them by ours.
15268 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
15270 2008-10-05 Jim Meyering <meyering@redhat.com>
15272 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
15273 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
15274 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
15276 2008-10-04 Bruno Haible <bruno@clisp.org>
15278 * modules/dup2 (License): Change to LGPLv2+.
15279 * modules/sleep (License): Likewise.
15280 * modules/perror (License): Likewise.
15281 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
15283 * modules/signal (License): Likewise.
15284 * modules/sigprocmask (License): Likewise.
15285 * modules/raise (License): Change to LGPLv2+, with approval by Jim
15288 2008-10-04 Bruno Haible <bruno@clisp.org>
15290 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
15291 Reported by Rainer Tammer <tammer@tammer.net>.
15293 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
15294 Bruno Haible <bruno@clisp.org>
15296 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
15297 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
15298 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
15300 2008-10-03 Kamil Dudka <kdudka@redhat.com>
15302 filevercmp: new module
15303 * lib/filevercmp.h: New function filevercmp comparing version strings.
15304 * lib/filevercmp.c: Implementation of filevercmp function.
15305 * modules/filevercmp: Module metadata.
15306 * tests/test-filevercmp.c: Unit test for new module.
15307 * modules/filevercmp-tests: Unit test metadata.
15308 * MODULES.html.sh: Add filevercmp module.
15310 2008-10-03 Bruno Haible <bruno@clisp.org>
15312 * lib/c-ctype.h: Add comment.
15313 Reported by Jim Meyering.
15315 2008-10-02 Bruno Haible <bruno@clisp.org>
15317 * modules/posix_spawn-internal (Depends-on): Add 'open'.
15319 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
15321 * build-aux/bootstrap: Allow renaming bootstrap, and change the
15322 name of bootstrap.conf accordingly.
15324 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
15326 * build-aux/bootstrap: Install git-merge-changelog configuration
15327 items into .gitconfig if needed.
15329 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
15331 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
15332 git repository, and initialize/update it accordingly.
15334 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
15336 * modules/fsync-tests: New file.
15337 * tests/test-fsync.c: New file.
15339 New module 'fsync'.
15340 * lib/fsync.c: New file.
15341 * m4/fsync.m4: New file.
15342 * modules/fsync: New file.
15343 * lib/unistd.in.h (fsync): New declaration.
15344 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
15345 GNULIB_FSYNC and HAVE_FSYNC.
15346 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
15347 * MODULES.html.sh (posix_functions): Add fsync.
15348 * doc/posix-functions/fsync.texi: Mention the new module.
15350 2008-10-02 Jim Meyering <meyering@redhat.com>
15352 fts.c: sync with similar code from coreutils' remove.c
15353 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
15354 Guard also with "#if defined __linux__", since for now at least,
15355 this code is Linux-kernel-specific.
15357 2008-10-02 Jim Meyering <meyering@redhat.com>
15360 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
15361 Include <sys/vfs.h>, not <sys/statfs.h>.
15363 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
15364 Include <sys/vfs.h>, not <sys/statfs.h>.
15366 2008-10-01 Bruno Haible <bruno@clisp.org>
15368 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
15369 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
15370 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
15371 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
15372 * doc/posix-functions/posix_spawnp.texi: Likewise.
15373 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
15374 whether posix_spawn actually works.
15375 * m4/pipe.m4 (gl_PIPE): Likewise.
15376 * modules/execute (Files): Add m4/posix_spawn.m4.
15377 * modules/pipe (Files): Add m4/posix_spawn.m4.
15378 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
15380 2008-10-01 Jim Meyering <meyering@redhat.com>
15382 remove trailing spaces
15384 * lib/poll.c (poll): Likewise.
15385 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
15386 * lib/winsock.c (rpl_close): Likewise.
15387 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
15388 * modules/yield: Likewise.
15389 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
15390 * tests/test-sys_select.c (connect_to_socket): Likewise.
15392 fts.c: adjust a new interface to be more generally useful
15393 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
15394 (fts_build): Adjust caller.
15396 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15398 * modules/cond-tests: New file.
15399 * tests/test-cond.c: New file.
15401 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15402 Bruno Haible <bruno@clisp.org>
15404 * modules/cond (Dependencies): Add errno, time.
15405 * lib/glthread/cond.h: Include <time.h>.
15406 (gl_cond_define, gl_cond_define_initialized): Use the same definition
15409 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15410 Bruno Haible <bruno@clisp.org>
15412 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
15414 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15415 Bruno Haible <bruno@clisp.org>
15417 * modules/tls-tests (Depends-on): Add thread, yield.
15418 (configure.ac): Remove all checks.
15419 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
15420 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
15421 gl_thread_self): Remove definitions. Include glthread/thread.h and
15422 glthread/yield.h instead.
15423 (test_tls): Pass an additional NULL argument to gl_thread_join.
15425 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15426 Bruno Haible <bruno@clisp.org>
15428 * modules/lock-tests (Depends-on): Add thread, yield.
15429 (configure.ac): Remove all checks.
15430 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
15431 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
15432 gl_thread_self): Remove definitions. Include glthread/thread.h and
15433 glthread/yield.h instead.
15434 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
15435 additional NULL argument to gl_thread_join.
15437 2008-09-30 Bruno Haible <bruno@clisp.org>
15439 Fix the Win32 implementation of the 'thread' module.
15440 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
15442 (gl_thread_self): Invoke gl_thread_self_func.
15443 (gl_thread_self_func): New declaration.
15444 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
15445 (do_init_self_key, init_self_key): New functions.
15446 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
15447 Remove some fields.
15448 (running_threads, running_lock): Remove variables.
15449 (get_current_thread_handle): New function.
15450 (gl_thread_self_func, wrapper_func, glthread_create_func,
15451 glthread_join_func, gl_thread_exit_func): Largely rewritten and
15454 2008-09-30 Bruno Haible <bruno@clisp.org>
15456 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
15459 2008-09-30 Jim Meyering <meyering@redhat.com>
15461 fts.m4: correct the test for statfs.f_type
15462 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
15463 when checking for statfs.f_type.
15465 2008-09-15 Simon Josefsson <simon@josefsson.org>
15467 tests: avoid some compiler warnings
15468 * tests/test-memchr.c (main): Pass NULL indirectly.
15469 * tests/test-getdate.c (main): Remove unused variable 'ret'.
15471 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
15473 getdate.y: disallow countable dayshifts like "4 yesterday ago"
15474 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
15475 exactly specified dayshifts.
15476 (dayshift): New rule.
15477 (rel): Add dayshift.
15478 (relative_time_table) [tomorrow, yesterday, today, now]:
15479 Use tDAY_SHIFT in place of tDAY_UNIT.
15480 * tests/test-getdate.c: Add tests for now-disallowed countable
15481 dayshifts, e.g., "4 yesterday ago".
15483 2008-09-29 Bruno Haible <bruno@clisp.org>
15485 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
15486 * tests/test-posix_spawn1.in.sh: Renamed from
15487 tests/test-posix_spawn.in.sh.
15488 * tests/test-posix_spawn2.c: New file.
15489 * tests/test-posix_spawn2.in.sh: New file.
15490 * modules/posix_spawnp-tests (Files): Update.
15491 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
15493 2008-09-29 Bruno Haible <bruno@clisp.org>
15495 Propagate effects of putenv/setenv/unsetenv to child processes.
15496 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
15497 * lib/pipe.c (create_pipe): Likewise.
15499 2008-09-29 Bruno Haible <bruno@clisp.org>
15501 Enable use of shell scripts as executables in mingw.
15502 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
15503 run the program as a shell script.
15504 * lib/pipe.c (create_pipe): Likewise.
15505 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
15508 2008-09-29 Eric Blake <ebb9@byu.net>
15510 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
15512 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
15514 * doc/posix-functions/accept.texi: Update mingw problems.
15515 * doc/posix-functions/bind.texi: Update mingw problems.
15516 * doc/posix-functions/close.texi: Update mingw problems.
15517 * doc/posix-functions/connect.texi: Update mingw problems.
15518 * doc/posix-functions/getpeername.texi: Update mingw problems.
15519 * doc/posix-functions/getsockname.texi: Update mingw problems.
15520 * doc/posix-functions/getsockopt.texi: Update mingw problems.
15521 * doc/posix-functions/ioctl.texi: Update mingw problems.
15522 * doc/posix-functions/listen.texi: Update mingw problems.
15523 * doc/posix-functions/recv.texi: Update mingw problems.
15524 * doc/posix-functions/recvfrom.texi: Update mingw problems.
15525 * doc/posix-functions/select.texi: Update mingw problems.
15526 * doc/posix-functions/send.texi: Update mingw problems.
15527 * doc/posix-functions/sendto.texi: Update mingw problems.
15528 * doc/posix-functions/setsockopt.texi: Update mingw problems.
15529 * doc/posix-functions/socket.texi: Update mingw problems.
15531 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
15532 Bruno Haible <bruno@clisp.org>
15534 * lib/sys_select.in.h: Include sys/time.h.
15535 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
15536 * modules/sys_select: Depend on sys_time.
15537 * tests/test-sys_select.c: Test that sys/select.h defines struct
15540 2008-09-29 Bruno Haible <bruno@clisp.org>
15542 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
15543 * lib/sys_select.in.h: Likewise.
15545 2008-09-29 Bruno Haible <bruno@clisp.org>
15547 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
15549 2008-09-29 Bruno Haible <bruno@clisp.org>
15551 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
15552 Set LIBSOCKET instead of augmenting LIBS.
15553 * modules/sockets (Link): New section.
15554 * modules/sockets-tests (test_sockets_LDADD): New variable.
15555 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
15556 * modules/poll-tests (test_poll_LDADD): New variable.
15557 * NEWS: Document the change.
15559 2008-09-29 Bruno Haible <bruno@clisp.org>
15561 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
15562 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
15563 ARPA_INET_H directly.
15564 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15566 2008-09-28 Bruno Haible <bruno@clisp.org>
15568 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
15569 from gl_HEADER_SYS_SOCKET.
15570 (gl_HEADER_SYS_SOCKET): Invoke it.
15571 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15573 2008-09-28 Bruno Haible <bruno@clisp.org>
15575 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
15576 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
15577 Needed on OSF/1 4.0.
15579 2008-09-28 Bruno Haible <bruno@clisp.org>
15581 Override open more carefully.
15582 * lib/open.c (orig_open): New function.
15583 (rpl_open): Use orig_open instead of open.
15584 * lib/fcntl.in.h: Add special invocation convention.
15585 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
15586 (gl_FUNC_OPEN): Invoke it.
15588 Override freopen more carefully.
15589 * lib/freopen.c (orig_freopen): New function.
15590 (rpl_freopen): Use orig_freopen instead of freopen.
15591 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
15592 (gl_FUNC_FREOPEN): Invoke it.
15594 Override fopen more carefully.
15595 * lib/fopen.c (orig_fopen): New function.
15596 (rpl_fopen): Use orig_fopen instead of fopen.
15597 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
15598 (gl_FUNC_FOPEN): Invoke it.
15599 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
15601 2008-09-28 Bruno Haible <bruno@clisp.org>
15603 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
15606 2008-09-28 Bruno Haible <bruno@clisp.org>
15608 * tests/test-sigaction.c (handler, main): Disable the check whether
15609 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
15610 glibc systems with LinuxThreads.
15612 2008-09-28 Bruno Haible <bruno@clisp.org>
15614 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
15616 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
15618 * lib/fcntl.in.h (open): Likewise.
15619 Reported by Rainer Tammer <tammer@tammer.net>.
15621 2008-09-28 Bruno Haible <bruno@clisp.org>
15623 * modules/posix_spawnp-tests: New file.
15624 * tests/test-posix_spawn.c: New file.
15625 * tests/test-posix_spawn.in.sh: New file.
15627 New module 'posix_spawnp'.
15628 * modules/posix_spawnp: New file.
15629 * lib/spawnp.c: New file, from GNU libc with modifications.
15630 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
15632 New module 'posix_spawn'.
15633 * modules/posix_spawn: New file.
15634 * lib/spawn.c: New file, from GNU libc with modifications.
15635 * doc/posix-functions/posix_spawn.texi: Mention the new module.
15637 New module 'posix_spawnattr_destroy'.
15638 * modules/posix_spawnattr_destroy: New file.
15639 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
15640 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
15643 New module 'posix_spawnattr_setsigmask'.
15644 * modules/posix_spawnattr_setsigmask: New file.
15645 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
15647 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
15650 New module 'posix_spawnattr_getsigmask'.
15651 * modules/posix_spawnattr_getsigmask: New file.
15652 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
15654 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
15657 New module 'posix_spawnattr_setsigdefault'.
15658 * modules/posix_spawnattr_setsigdefault: New file.
15659 * lib/spawnattr_setdefault.c: New file, from GNU libc with
15661 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
15664 New module 'posix_spawnattr_getsigdefault'.
15665 * modules/posix_spawnattr_getsigdefault: New file.
15666 * lib/spawnattr_getdefault.c: New file, from GNU libc with
15668 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
15671 New module 'posix_spawnattr_setschedpolicy'.
15672 * modules/posix_spawnattr_setschedpolicy: New file.
15673 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
15675 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
15678 New module 'posix_spawnattr_getschedpolicy'.
15679 * modules/posix_spawnattr_getschedpolicy: New file.
15680 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
15682 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
15685 New module 'posix_spawnattr_setschedparam'.
15686 * modules/posix_spawnattr_setschedparam: New file.
15687 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
15689 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
15692 New module 'posix_spawnattr_getschedparam'.
15693 * modules/posix_spawnattr_getschedparam: New file.
15694 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
15696 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
15699 New module 'posix_spawnattr_setpgroup'.
15700 * modules/posix_spawnattr_setpgroup: New file.
15701 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
15703 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
15706 New module 'posix_spawnattr_getpgroup'.
15707 * modules/posix_spawnattr_getpgroup: New file.
15708 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
15710 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
15713 New module 'posix_spawnattr_setflags'.
15714 * modules/posix_spawnattr_setflags: New file.
15715 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
15716 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
15719 New module 'posix_spawnattr_getflags'.
15720 * modules/posix_spawnattr_getflags: New file.
15721 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
15722 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
15725 New module 'posix_spawnattr_init'.
15726 * modules/posix_spawnattr_init: New file.
15727 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
15728 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
15731 New module 'posix_spawn_file_actions_destroy'.
15732 * modules/posix_spawn_file_actions_destroy: New file.
15733 * lib/spawn_faction_destroy.c: New file, from GNU libc with
15735 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
15738 New module 'posix_spawn_file_actions_addopen'.
15739 * modules/posix_spawn_file_actions_addopen: New file.
15740 * lib/spawn_faction_addopen.c: New file, from GNU libc with
15742 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
15745 New module 'posix_spawn_file_actions_adddup2'.
15746 * modules/posix_spawn_file_actions_adddup2: New file.
15747 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
15749 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
15752 New module 'posix_spawn_file_actions_addclose'.
15753 * modules/posix_spawn_file_actions_addclose: New file.
15754 * lib/spawn_faction_addclose.c: New file, from GNU libc with
15756 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15759 New module 'posix_spawn_file_actions_init'.
15760 * modules/posix_spawn_file_actions_init: New file.
15761 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
15762 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
15765 New module 'posix_spawn-internal'.
15766 * modules/posix_spawn-internal: New file.
15767 * lib/spawn_int.h: New file, from GNU libc with modifications.
15768 * lib/spawni.c: New file, from GNU libc with modifications.
15769 * m4/posix_spawn.m4: New file.
15771 New module 'spawn'.
15772 * modules/spawn: New file.
15773 * lib/spawn.in.h: New file, from GNU libc with modifications.
15774 * m4/spawn_h.m4: New file.
15775 * doc/posix-headers/spawn.texi: Mention the new module.
15777 2008-09-28 Bruno Haible <bruno@clisp.org>
15779 * modules/sched-tests: New file.
15780 * tests/test-sched.c: New file.
15782 New module 'sched'.
15783 * modules/sched: New file.
15784 * lib/sched.in.h: New file.
15785 * m4/sched_h.m4: New file.
15786 * doc/posix-headers/sched.texi: Mention the new module.
15788 2008-09-27 Eric Blake <ebb9@byu.net>
15790 Fix previous patch, and tweak references to $0.
15791 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
15792 (func_version, func_gnulib_dir): Don't call this program
15794 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
15795 with using $0 in function.
15796 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
15797 (func_fatal_error): Reuse the name the user invoked us with.
15799 2008-09-27 Bruno Haible <bruno@clisp.org>
15801 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
15802 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
15803 (gl_ICONV_H): Not here.
15804 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
15805 instead of assigning ICONV_H directly.
15807 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
15808 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
15811 2008-09-27 Bruno Haible <bruno@clisp.org>
15813 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
15814 * modules/arpa_inet (Depends-on): Add link-warning.
15815 (Makefile.am): Insert the definition of GL_LINK-WARNING.
15816 * modules/unistd (Makefile.am): Likewise.
15818 2008-09-26 Bruno Haible <bruno@clisp.org>
15820 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
15822 (func_version): Essentially copied from gnulib-tool.
15823 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
15824 func_readlink): Copied from gnulib-tool.
15826 2008-09-26 Bruno Haible <bruno@clisp.org>
15828 * gnulib-tool (func_version): Change directory to $gnulib_dir before
15829 invoking git-version-gen.
15831 2008-09-26 Bruno Haible <bruno@clisp.org>
15833 * posix-modules: Update to directory names changed on 2008-01-19.
15834 Remove commas in output before splitting into words. No more need to
15835 avoid 'ftruncate' since 2007-02-19.
15837 2008-09-26 Bruno Haible <bruno@clisp.org>
15839 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
15841 2008-09-26 Bruno Haible <bruno@clisp.org>
15843 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
15844 * modules/fwriteerror (Depends-on): Add errno.
15846 2008-09-26 Bruno Haible <bruno@clisp.org>
15848 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
15849 * tests/test-vc-list-files-cvs.sh: Likewise.
15851 2008-09-26 Bruno Haible <bruno@clisp.org>
15853 * doc/posix-headers/sys_resource.texi: Reorder items.
15855 2008-09-26 Jim Meyering <meyering@redhat.com>
15857 fts: tweak inode comparison function
15858 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
15859 inode numbers, as documented.
15861 fts: sort dirent entries on inode number before traversing
15862 This avoids a quadratic, seek-related performance penalty when
15863 operating on a directory containing many entries (measurable at 10k;
15864 3.5 hours at 2 million entries with a cold cache) on certain types
15865 of file systems, including ext3 and ext4, but not tmpfs.
15866 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
15867 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
15868 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
15869 (fs_handles_readdir_ordered_dirents_efficiently): New function.
15870 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
15871 (fts_build): Set the stat.st_ino member from D_INO.
15872 If it is likely to be useful, sort dirent entries on inode number.
15874 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
15875 and the struct statfs.f_type member.
15876 * modules/fts (Depends-on): Add d-ino.
15878 2008-09-26 Bruno Haible <bruno@clisp.org>
15880 * modules/sigpipe-die (Depends-on): Add sigpipe.
15882 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
15883 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
15884 and GNULIB_STDIO_H_SIGPIPE are set.
15885 * lib/stdio-write.c: New file.
15886 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
15887 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15888 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15889 REPLACE_STDIO_WRITE_FUNCS.
15890 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
15891 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15892 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15893 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15894 * modules/stdio (Files): Add lib/stdio-write.c.
15895 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
15896 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
15897 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
15898 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
15899 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
15900 REPLACE_FPRINTF_POSIX.
15901 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
15902 REPLACE_PRINTF_POSIX.
15903 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
15904 REPLACE_VFPRINTF_POSIX.
15905 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
15906 REPLACE_VPRINTF_POSIX.
15907 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
15909 * doc/posix-functions/fputc.texi: Likewise.
15910 * doc/posix-functions/fputs.texi: Likewise.
15911 * doc/posix-functions/fwrite.texi: Likewise.
15912 * doc/posix-functions/printf.texi: Likewise.
15913 * doc/posix-functions/putc.texi: Likewise.
15914 * doc/posix-functions/putchar.texi: Likewise.
15915 * doc/posix-functions/puts.texi: Likewise.
15916 * doc/posix-functions/vfprintf.texi: Likewise.
15917 * doc/posix-functions/vprintf.texi: Likewise.
15919 * modules/safe-write (Depends-on): Add write.
15921 * modules/sigpipe-tests: New file.
15922 * tests/test-sigpipe.c: New file.
15923 * tests/test-sigpipe.sh: New file.
15925 * modules/write: New file.
15926 * lib/unistd.in.h: Include <sys/types.h>.
15927 (write): New declaration.
15928 * lib/write.c: New file.
15929 * m4/write.m4: New file.
15930 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15931 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
15932 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
15933 GNULIB_WRITE, REPLACE_WRITE.
15934 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
15935 and the SIGPIPE issue.
15937 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
15938 (raise): New declaration.
15939 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
15940 (ext_signal): New function.
15941 (rpl_raise): New function.
15942 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15943 GNULIB_SIGNAL_H_SIGPIPE.
15944 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
15945 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
15947 * modules/sigpipe: New file.
15948 * m4/sigpipe.m4: New file.
15950 2008-09-25 Derek Price <derek@ximbiot.com>
15951 Bruno Haible <bruno@clisp.org>
15953 * gnulib-tool (func_import): Report all license incompatibilities, not
15954 just the first one.
15956 2008-09-25 Bruno Haible <bruno@clisp.org>
15958 * gnulib-tool (func_import): When computing the edits, consider not
15959 only the Makefile.ams that exist but also those that will be generated.
15961 2008-09-25 Simon Josefsson <simon@josefsson.org>
15963 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
15964 fixes gnulib-tool --test warning about duplicate dependency.
15966 2008-09-25 Bruno Haible <bruno@clisp.org>
15968 * gnulib-tool: Don't ask the user to perform edits in the generated
15970 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
15971 apply to the Makefile.am being generated.
15972 (func_emit_tests_Makefile_am): Execute edits that apply to the
15973 Makefile.am being generated.
15974 (func_import): Setup list of Makefile.am edits before emitting the
15975 Makefile.ams, not at the end.
15976 (func_create_testdir): Update.
15977 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15979 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
15981 * gnulib-tool (func_import): Store the --tests-base option in the
15982 comment in gnulib-cache.m4.
15984 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
15986 * NEWS: Document increased portability that sys_select now provides.
15988 * lib/sys_select.in.h: Install select wrapper.
15989 * lib/sys_socket.in.h: Use more descriptive name when there is no
15991 * lib/winsock-select.c: New.
15992 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
15993 Require gl_HEADER_SYS_SOCKET.
15994 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
15995 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
15996 * tests/test-sys_select.c: Add functional tests.
15998 2008-09-24 Eric Blake <ebb9@byu.net>
16000 open, fopen: close fd leak in last patch
16001 * lib/open.c (rpl_open): Close fd before returning error.
16002 * lib/fopen.c (rpl_fopen): Close fd before returning error.
16003 * doc/posix-functions/open.texi (open): Document that Irix also
16005 * doc/posix-functions/fopen.texi (fopen): Likewise.
16006 Reported by Paolo Bonzini.
16008 2008-09-24 Bruno Haible <bruno@clisp.org>
16010 Ensure that a filename ending in a slash cannot be used to access a
16012 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
16013 to check whether it's really a directory.
16014 * lib/fopen.c: Include fcntl.h, unistd.h.
16015 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
16017 * modules/fopen (Depends-on): Add unistd.
16018 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
16019 * tests/test-fopen.c (main): Likewise.
16020 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
16021 * doc/posix-functions/fopen.texi: Likewise.
16022 Reported by Eric Blake.
16024 2008-09-23 Eric Blake <ebb9@byu.net>
16026 c-stack: avoid compiler optimizations when provoking overflow
16027 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
16028 recursion harder to optimize, to ensure a stack overflow occurs.
16029 * tests/test-c-stack.c (recurse): Likewise.
16030 Borrowed from libsigsegv.
16032 c-stack: work around Irix sigaltstack bug
16033 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
16034 whether sigaltstack uses wrong end of stack_t (copied in part from
16036 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
16037 Irix bug, without requiring an over-allocation.
16038 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
16041 fopen: document mingw bug on directories
16042 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
16043 not allowing a stream visiting a directory, even though reading
16044 from such a stream is not portable.
16046 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
16048 * lib/poll.c: Rewrite.
16049 * modules/poll: Depend on alloca.
16051 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
16053 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
16054 instead define prototypes for a full set of wrappers. Ensure
16055 that Cygwin does not use the compatibility code, which is only
16057 * lib/winsock.c: New.
16058 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
16059 * modules/sys_socket: Add lib/winsock.c.
16061 * modules/poll-tests: Add errno and perror.
16062 * tests/test-poll.c: Use ioctl, not ioctlsocket.
16064 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
16066 * tests/test-poll.c: Downgrade minimum needed Winsock version.
16068 2008-09-23 Bruno Haible <bruno@clisp.org>
16070 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
16071 * doc/glibc-functions/*: Likewise.
16073 2008-09-23 Simon Josefsson <simon@josefsson.org>
16075 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
16078 2008-09-22 Eric Blake <ebb9@byu.net>
16079 Bruno Haible <bruno@clisp.org>
16081 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
16082 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
16083 supply %A but mishandle pseudo-NaN.
16084 Reported by Simon Josefsson.
16086 2008-09-21 Bruno Haible <bruno@clisp.org>
16088 * tests/test-lock.c (main): Tweak skip message.
16089 * tests/test-tls.c (main): Likewise.
16091 2008-09-21 Bruno Haible <bruno@clisp.org>
16093 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
16094 whether 'struct sigaction' has sa_sigaction here...
16095 (gl_PREREQ_SIG_HANDLER_H): ... not here.
16096 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
16098 2008-09-21 Bruno Haible <bruno@clisp.org>
16100 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
16102 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
16103 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
16105 (Support for obsolete systems lacking POSIX:2001): New section.
16106 (String handling <string.h>): Move strdup to the new section.
16107 Suggested by Simon Josefsson and Paolo Bonzini.
16109 2008-09-21 Bruno Haible <bruno@clisp.org>
16111 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
16112 exponents in %e and %g results on 'long double'. Needed for mingw's
16113 improved *printf functions.
16114 * tests/test-vasprintf-posix.c (test_function): Likewise.
16115 * tests/test-snprintf-posix.h (test_function): Likewise.
16116 * tests/test-sprintf-posix.h (test_function): Likewise.
16117 Reported by Eric Blake.
16119 2008-09-21 Bruno Haible <bruno@clisp.org>
16121 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
16122 * tests/test-sprintf-posix.h (test_function): Likewise.
16124 2008-09-21 Bruno Haible <bruno@clisp.org>
16126 * modules/getpass (Depends-on): Add strdup-posix.
16128 New module 'strdup-posix'.
16129 * modules/strdup-posix: New file.
16130 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
16131 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
16132 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16134 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
16135 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
16136 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16139 * modules/strdup (Depends-on): Remove malloc-posix.
16141 2008-09-20 Bruno Haible <bruno@clisp.org>
16143 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
16146 2008-09-20 Bruno Haible <bruno@clisp.org>
16148 Ensure that wint_t gets defined on IRIX 5.3.
16149 * lib/wchar.in.h (wint_t): Define if not defined by the system.
16150 * lib/wctype.in.h (wint_t): Likewise.
16151 (__wctype_wint_t): Remove type.
16152 (isw*): Use wint_t instead of __wctype_wint_t.
16153 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
16154 * modules/wchar (Files): Add m4/wint_t.m4.
16155 (Makefile.am): Substitute HAVE_WINT_T.
16156 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
16157 * tests/test-wctype.c: Check that wint_t is defined.
16158 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
16159 * doc/posix-headers/wctype.texi: Likewise.
16160 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16162 2008-09-18 Bruno Haible <bruno@clisp.org>
16164 * gnulib-tool (func_exit): Update comment.
16166 2008-09-18 Simon Josefsson <simon@josefsson.org>
16168 * modules/getaddrinfo (Depends-on): Remove strdup, this module
16169 assumes strdup exists and does not depend on strdup to return
16170 ENOMEM on out of memory conditions.
16172 2008-09-18 Bruno Haible <bruno@clisp.org>
16174 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
16175 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
16176 digits for the exponent.
16178 2008-09-18 Jim Meyering <meyering@redhat.com>
16179 Bruno Haible <bruno@clisp.org>
16181 * lib/vasnprintf.c (decimal_point_char): Define also if
16182 NEED_PRINTF_INFINITE_LONG_DOUBLE.
16184 2008-09-16 Bruno Haible <bruno@clisp.org>
16185 and Eric Blake <ebb9@byu.net>
16187 vasnprintf: support Irix 5.3
16188 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
16189 that mishandle long double infinity.
16190 Reported by Tom G. Christensen.
16192 2008-09-16 Bruno Haible <bruno@clisp.org>
16194 * doc/glibc-functions/scandir.texi: Mention the function is missing on
16196 * doc/glibc-functions/alphasort.texi: Likewise.
16197 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
16199 2008-09-16 Jim Meyering <meyering@redhat.com>
16201 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
16202 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
16203 a umask modification leak out of a subshell. Otherwise, the
16204 opensolaris /bin/sh would be accepted and thus cause unwarranted
16205 failures in the coreutils test suite.
16207 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
16209 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
16212 2008-09-16 Jim Meyering <meyering@redhat.com>
16214 avoid spurious test failure when library is built without ACL support
16215 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
16216 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
16217 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
16218 * tests/test-copy-acl.sh: Likewise.
16220 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16222 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
16223 based on character occurrence counts.
16225 2008-09-15 Eric Blake <ebb9@byu.net>
16227 tests: avoid some compiler warnings
16228 * tests/test-memchr.c (main): Pass NULL indirectly.
16229 * tests/test-closein.c (main): Avoid unused variable.
16231 2008-09-15 Bruno Haible <bruno@clisp.org>
16233 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
16234 are missing on OpenBSD 4.0 individually.
16235 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16237 2008-09-15 Bruno Haible <bruno@clisp.org>
16239 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
16240 * doc/posix-functions/strerror.texi: Mention also Cygwin.
16241 * doc/posix-functions/perror.texi: Likewise.
16242 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
16244 Reported by Eric Blake.
16246 * lib/errno.in.h: Use replacement values >= 2000.
16247 Reported by Eric Blake.
16249 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16251 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
16252 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
16254 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
16255 compareseq was aborted.
16257 2008-09-14 Bruno Haible <bruno@clisp.org>
16259 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
16261 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
16262 (fstrcmp_bounded): Simplify result computation accordingly.
16264 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16266 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
16267 (fstrcmp): Define in terms of fstrcmp_bounded.
16268 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
16269 lower_bound argument.
16270 Return quickly if the result is certainly < lower_bound.
16271 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
16273 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16275 * lib/diffseq.h (EARLY_ABORT): New macro.
16276 (compareseq): Change return type to bool. Return true when EARLY_ABORT
16279 2008-09-14 Bruno Haible <bruno@clisp.org>
16281 * modules/perror-tests: New file.
16282 * tests/test-perror.sh: New file.
16283 * tests/test-perror.c: New file.
16285 New module 'perror'.
16286 * lib/stdio.in.h (perror): New declaration.
16287 * lib/perror.c: New file.
16288 * m4/perror.m4: New file.
16289 * modules/perror: New file.
16290 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
16291 * doc/posix-functions/perror.texi: Mention the perror module.
16292 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
16294 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
16297 2008-09-14 Bruno Haible <bruno@clisp.org>
16299 * modules/stdio (Makefile.am): Reorder to match the order in
16301 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16303 2008-09-13 Bruno Haible <bruno@clisp.org>
16305 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
16307 2008-09-13 Bruno Haible <bruno@clisp.org>
16309 Extend strerror to cover the added errno values.
16310 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
16311 (rpl_strerror): Provide error messages for the added errno values and
16312 for the WSA* values.
16313 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
16314 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
16316 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
16317 * modules/strerror (Depends-on): Add errno.
16318 * doc/posix-functions/strerror.texi: Document the change.
16319 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
16322 2008-09-13 Bruno Haible <bruno@clisp.org>
16324 * modules/EOVERFLOW: Remove file.
16325 * m4/eoverflow.m4: Remove file.
16326 * modules/EOVERFLOW-tests: Remove file.
16327 * tests/test-EOVERFLOW.c: Remove file.
16328 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
16329 * modules/ftell (Depends-on): Likewise.
16330 * modules/getdelim (Depends-on): Likewise.
16331 * modules/getugroups (Depends-on): Likewise.
16332 * modules/poll (Depends-on): Likewise.
16333 * modules/snprintf (Depends-on): Likewise.
16334 * modules/sprintf-posix (Depends-on): Likewise.
16335 * modules/vasnprintf (Depends-on): Likewise.
16336 * modules/vasprintf (Depends-on): Likewise.
16337 * modules/vfprintf-posix (Depends-on): Likewise.
16338 * modules/vsnprintf (Depends-on): Likewise.
16339 * modules/vsprintf-posix (Depends-on): Likewise.
16340 * modules/xvasprintf (Depends-on): Likewise.
16341 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16342 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
16343 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
16344 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
16345 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16346 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
16347 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
16348 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
16349 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16350 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
16351 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
16352 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
16353 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16354 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
16355 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
16356 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
16357 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16358 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
16359 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
16360 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
16361 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16362 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
16363 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
16364 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
16365 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
16366 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16367 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
16368 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
16369 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
16370 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
16371 * MODULES.html.sh: Remove EOVERFLOW.
16372 * NEWS: Mention the change.
16374 2008-09-13 Bruno Haible <bruno@clisp.org>
16376 * modules/errno-tests: New file.
16377 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
16379 * lib/errno.in.h: New file.
16380 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
16381 * modules/errno: New file.
16382 * doc/posix-headers/errno.texi: Update documentation.
16383 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
16385 2008-09-13 Bruno Haible <bruno@clisp.org>
16387 * tests/test-poll.c: Use #if for native Windows, rather than testing
16390 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16391 Bruno Haible <bruno@clisp.org>
16393 * lib/glob.c: Don't include <pwd.h> on native Windows.
16394 (WINDOWS32): New macro.
16395 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
16397 2008-09-13 Bruno Haible <bruno@clisp.org>
16399 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
16400 (ETIMEDOUT): Remove macro.
16401 (glthread_cond_timedwait_multithreaded): New declaration.
16402 (glthread_cond_timedwait): Use it.
16403 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
16404 (glthread_cond_timedwait_multithreaded): New function.
16406 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
16408 * modules/poll-tests: Do not check for io.h.
16409 * tests/test-poll.c: Check for __MSVCRT__ instead.
16411 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
16413 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
16414 * modules/poll-tests: Add inet_pton, stdbool, sockets.
16415 * tests/test-poll.c: Use them. Use _pipe on Windows.
16417 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
16419 * modules/poll-tests: New.
16420 * tests/test-poll.c: New.
16422 2008-09-12 Eric Blake <ebb9@byu.net>
16424 frexp: test for NetBSD failure on -0.0
16425 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
16426 not all, bugs from NetBSD 3.0 have been fixed.
16427 * doc/posix-functions/frexp.texi (frexp): Document bug.
16428 Reported by Thomas Klausner.
16430 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
16431 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
16433 Reported by Jonathan C. Patschke <jp@centtech.com>.
16435 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16437 * lib/glthread/cond.h: Use dummy implementation also if
16440 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16442 * modules/fnmatch-posix (License): Change to LGPLv2+.
16443 * modules/fnmatch-gnu (License): Likewise.
16445 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16447 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
16449 2008-09-11 Jim Meyering <meyering@redhat.com>
16451 * users.txt: Add gtk-vnc.
16453 2008-09-08 Simon Josefsson <simon@josefsson.org>
16455 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
16458 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
16459 required for 16-bit and 8-bit rotates.
16460 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
16461 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
16462 UINT8_MAX instead of hard-coded constants.
16463 Suggested by Paul Eggert.
16465 2008-09-07 Bruno Haible <bruno@clisp.org>
16467 * tests/test-striconveh.c (main): Check behaviour when converting from
16470 Make striconveh work better with stateful encodings.
16471 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
16472 that iconv does not increment the inptr when returning -1/EINVAL.
16474 2008-09-07 Bruno Haible <bruno@clisp.org>
16476 * build-aux/config.rpath: Update according to libtool-2.2.6.
16477 * build-aux/config.libpath: Likewise.
16479 2008-09-06 Bruno Haible <bruno@clisp.org>
16481 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
16482 * lib/freadptr.c (freadptr): Likewise.
16483 * lib/freadseek.c (freadptrinc): Likewise.
16484 Reported by Simon Josefsson.
16486 2008-09-06 Bruno Haible <bruno@clisp.org>
16488 * modules/freadptr (License): Change to LGPLv2+.
16489 * modules/freadseek (License): Likewise.
16490 Suggested by Eric Blake.
16492 * modules/memchr2 (License): Change to LGPLv2+.
16493 Approved by Eric Blake.
16495 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16496 Bruno Haible <bruno@clisp.org>
16498 Make gnulib-tool work with native 'sed' on AIX.
16499 * gnulib-tool (sed_noop): New variable.
16500 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
16501 func_add_or_update, func_create_testdir): Use it to initialize sed
16503 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16505 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
16506 Bruno Haible <bruno@clisp.org>
16508 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
16509 also works after #include directives.
16511 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
16513 getdate.y: reject an out-of-range timezone value
16514 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
16515 the range [-24...+24]. When specified with only one or two digits,
16516 * tests/test-getdate.c: Tests for the fix.
16517 * doc/getdate.texi: Document this change.
16519 2008-09-03 Bruno Haible <bruno@clisp.org>
16521 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
16523 2008-09-02 Simon Josefsson <simon@josefsson.org>
16525 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
16526 <bruce.korb@gmail.com> with ideas from Ben Pfaff
16527 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
16528 Blake <ebb9@byu.net>.
16530 * tests/test-bitrotate.c: Add more test vectors.
16532 2008-09-02 Eric Blake <ebb9@byu.net>
16534 vasnprintf-posix: handle large precision via %.*d
16535 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
16536 when handling it ourselves.
16537 * tests/test-vasnprintf-posix.c (test_function): Add test.
16538 * tests/test-snprintf-posix.h (test_function): Likewise.
16539 * tests/test-sprintf-posix.h (test_function): Likewise.
16540 * tests/test-vasprintf-posix.c (test_function): Likewise.
16541 Reported by Alain Guibert.
16543 2008-09-01 Eric Blake <ebb9@byu.net>
16545 c-stack: make configure-time check more robust
16546 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
16547 successful sigaction call.
16548 Reported by Tom G. Christensen.
16550 2008-09-01 Bruno Haible <bruno@clisp.org>
16552 New module 'findprog-lgpl'.
16553 * modules/findprog-lgpl: New file.
16554 * lib/findprog-lgpl.c: New file.
16555 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
16556 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
16557 to decide whether to use strdup or xstrdup, concatenated_filename or
16558 xconcatenated_filename.
16560 2008-09-01 Bruno Haible <bruno@clisp.org>
16562 Split module 'concat-filename' into 'concat-filename' (LGPL) and
16563 'xconcat-filename' (GPL).
16564 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
16565 (License): Change to LGPLv2+.
16566 * modules/xconcat-filename: New file.
16567 * lib/concat-filename.h (concatenated_filename): Change specification.
16568 (xconcatenated_filename): New declaration.
16569 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
16570 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
16572 * lib/xconcat-filename.c: New file.
16573 * NEWS: Mention the change.
16574 * lib/findprog.c: Include concat-filename.h, not filename.h.
16575 (find_in_path): Use xconcatenated_filename instead of
16576 concatenated_filename.
16577 * lib/javacomp.c: Include concat-filename.h, not filename.h.
16578 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
16579 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
16580 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
16581 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
16582 instead of concatenated_filename.
16583 * lib/javaexec.c: Include concat-filename.h, not filename.h.
16584 (execute_java_class): Use xconcatenated_filename instead of
16585 concatenated_filename.
16586 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
16587 * modules/javacomp (Depends-on): Likewise.
16588 * modules/javaexec (Depends-on): Likewise.
16590 2008-09-01 Bruno Haible <bruno@clisp.org>
16592 Split module 'filename' into 'filename' and 'concat-filename'.
16593 * modules/filename: Keep only lib/filename.h.
16594 (License): Change to LGPLv2+.
16595 * modules/concat-filename: New file, extracted from modules/filename.
16596 * lib/filename.h (concatenated_filename): Remove declaration.
16597 * lib/concat-filename.h: New file, extracted from lib/filename.h.
16598 * lib/concat-filename.c: Include concat-filename.h.
16599 * NEWS: Mention the change.
16601 2008-09-01 Simon Josefsson <simon@josefsson.org>
16603 * lib/bitrotate.h (rotl8, rotr8): Add.
16605 * modules/bitrotate (configure.ac): Need
16606 AC_REQUIRE([AC_C_INLINE]).
16607 (Description): Mention stdint.h. Reported by Bruno Haible
16610 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
16611 Paolo Bonzini <bonzini@gnu.org>.
16613 2008-08-31 Bruno Haible <bruno@clisp.org>
16615 Assume Solaris specific bi-arch conventions on Solaris systems.
16616 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
16617 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
16618 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
16619 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
16620 like acl_libdirstem.
16621 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
16623 * NEWS: Mention the change.
16624 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
16626 2008-08-31 Jim Meyering <meyering@redhat.com>
16628 * lib/strftime.h: Add comments describing the two added arguments.
16630 remove duplicate #include directives
16631 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
16632 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
16634 2008-08-31 Bruno Haible <bruno@clisp.org>
16636 New module 'sigpipe-die'.
16637 * modules/sigpipe-die: New file.
16638 * lib/sigpipe-die.h: New file.
16639 * lib/sigpipe-die.c: New file.
16640 * MODULES.html.sh (Signal handling): Add sigpipe-die.
16642 2008-08-31 Bruno Haible <bruno@clisp.org>
16644 Don't override previously installed signal handlers.
16645 * lib/fatal-signal.c (saved_sigactions): New variable.
16646 (uninstall_handlers): Reset the signal to the saved handler, not
16647 to SIG_DFL (except when ignored).
16648 (install_handlers): Save the previous handlers.
16650 2008-08-30 Bruno Haible <bruno@clisp.org>
16652 * gnulib-tool (func_reset_sigpipe): New function.
16653 (func_get_automake_snippet, func_modules_transitive_closure,
16654 func_import): Invoke it before a join command that reads from stdin,
16655 to avoid "echo: write error: Broken pipe" error messages on stderr.
16656 Reported by Sam Steingold <sds@gnu.org>.
16658 2008-08-30 Bruno Haible <bruno@clisp.org>
16660 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
16661 Code copied from m4/open.m4.
16662 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
16663 access and the filename ends in a slash. Code copied from lib/open.c.
16664 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
16665 * tests/test-fopen.c (main): Check against bug with trailing slash.
16667 2008-08-29 Bruno Haible <bruno@clisp.org>
16669 Avoid some "gcc -pedantic" warnings.
16670 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
16671 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
16672 * lib/dirent.in.h: Likewise.
16673 * lib/fcntl.in.h: Likewise.
16674 * lib/float.in.h: Likewise.
16675 * lib/iconv.in.h: Likewise.
16676 * lib/inttypes.in.h: Likewise.
16677 * lib/locale.in.h: Likewise.
16678 * lib/math.in.h: Likewise.
16679 * lib/netinet_in.in.h: Likewise.
16680 * lib/search.in.h: Likewise.
16681 * lib/signal.in.h: Likewise.
16682 * lib/stdarg.in.h: Likewise.
16683 * lib/stdint.in.h: Likewise.
16684 * lib/stdio.in.h: Likewise.
16685 * lib/stdlib.in.h: Likewise.
16686 * lib/string.in.h: Likewise.
16687 * lib/strings.in.h: Likewise.
16688 * lib/sys_select.in.h: Likewise.
16689 * lib/sys_socket.in.h: Likewise.
16690 * lib/sys_stat.in.h: Likewise.
16691 * lib/sys_time.in.h: Likewise.
16692 * lib/sysexits.in.h: Likewise.
16693 * lib/time.in.h: Likewise.
16694 * lib/unistd.in.h: Likewise.
16695 * lib/wchar.in.h: Likewise.
16696 * lib/wctype.in.h: Likewise.
16697 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
16698 * modules/fchdir (Makefile.am): Likewise.
16699 * modules/fcntl (Makefile.am): Likewise.
16700 * modules/float (Makefile.am): Likewise.
16701 * modules/iconv_open (Makefile.am): Likewise.
16702 * modules/inttypes (Makefile.am): Likewise.
16703 * modules/locale (Makefile.am): Likewise.
16704 * modules/math (Makefile.am): Likewise.
16705 * modules/netinet_in (Makefile.am): Likewise.
16706 * modules/search (Makefile.am): Likewise.
16707 * modules/signal (Makefile.am): Likewise.
16708 * modules/stdarg (Makefile.am): Likewise.
16709 * modules/stdint (Makefile.am): Likewise.
16710 * modules/stdio (Makefile.am): Likewise.
16711 * modules/stdlib (Makefile.am): Likewise.
16712 * modules/string (Makefile.am): Likewise.
16713 * modules/strings (Makefile.am): Likewise.
16714 * modules/sys_select (Makefile.am): Likewise.
16715 * modules/sys_socket (Makefile.am): Likewise.
16716 * modules/sys_stat (Makefile.am): Likewise.
16717 * modules/sys_time (Makefile.am): Likewise.
16718 * modules/sysexits (Makefile.am): Likewise.
16719 * modules/time (Makefile.am): Likewise.
16720 * modules/unistd (Makefile.am): Likewise.
16721 * modules/wchar (Makefile.am): Likewise.
16722 * modules/wctype (Makefile.am): Likewise.
16723 Reported by Reuben Thomas <rrt@sc3d.org>.
16725 2008-08-29 Bruno Haible <bruno@clisp.org>
16727 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
16730 2008-08-29 Simon Josefsson <simon@josefsson.org>
16732 * MODULES.html.sh (Misc): Add bitrotate.
16734 * modules/bitrotate: New file.
16736 * lib/bitrotate.h: New file.
16738 * modules/bitrotate-tests: New file.
16740 * tests/test-bitrotate.c: New file.
16742 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
16743 on the bitrotate module.
16745 * lib/arctwo.c: Use new bitrotate module.
16747 2008-08-29 Jim Meyering <meyering@redhat.com>
16749 bootstrap: merge changes from coreutils
16750 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
16751 of copied files. Remove a kludge, now that this is fixed.
16752 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
16753 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
16754 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
16756 2008-08-29 Bruno Haible <bruno@clisp.org>
16758 * MODULES.html.sh: Remove --cvs-urls option.
16760 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
16762 maint.mk: adjust to file name change
16763 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
16765 2008-08-28 Jim Meyering <meyering@redhat.com>
16767 * modules/getndelim2 (License): Relicense to LGPLv2+.
16768 Approved by Richard Stallman for the version of 1995, and by
16769 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
16771 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
16773 * lib/getdelim.c (flockfile, funlockfile): Make all of them
16774 dummy if one is not available. Do not touch them if
16775 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
16776 (getc_maybe_unlocked): New.
16777 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
16779 2008-08-26 Eric Blake <ebb9@byu.net>
16781 doc/INSTALL: resync from autoconf
16782 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
16783 (INSTALL_PRELUDE): Delete; this is done more efficiently by
16785 * install.texi [!autoconf]: ...here. Resync from autoconf.
16786 * INSTALL: Regenerate.
16787 * INSTALL.ISO: New file.
16788 * INSTALL.UTF-8: Likewise.
16790 2008-08-26 Jim Meyering <meyering@redhat.com>
16792 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
16793 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
16794 these definitions conditional, so that they may be overridden, too.
16796 2008-08-26 Bruno Haible <bruno@clisp.org>
16798 Generate INSTALL file variants with prettier quotes.
16799 * doc/Makefile (INSTALL_PRELUDE): New macro.
16801 (INSTALL.ISO, INSTALL.UTF-8): New rules.
16803 2008-08-26 Bruno Haible <bruno@clisp.org>
16805 Run makeinfo in an English locale.
16806 * doc/Makefile (MAKEINFO): New variable.
16808 2008-08-26 Bruno Haible <bruno@clisp.org>
16810 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
16811 Suggested by Eric Blake.
16813 2008-08-25 Bruno Haible <bruno@clisp.org>
16815 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
16817 2008-08-25 Eric Blake <ebb9@byu.net>
16819 c-stack: test that stack overflow can be caught
16820 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
16821 that platform allows handling stack overflow; at least OS/2 EMX
16822 has sigaltstack, but crashes before transferring control to
16823 handler on stack overflow.
16824 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
16825 check for HAVE_STACK_OVERFLOW_HANDLING.
16826 Reported by Elbert Pol.
16828 2008-08-25 Bruno Haible <bruno@clisp.org>
16830 * doc/posix-functions/strftime.texi: Fix description of strftime
16833 2008-08-24 Bruno Haible <bruno@clisp.org>
16835 * tests/uniwidth/test-uc_width2.c: New file.
16836 * tests/uniwidth/test-uc_width2.sh: New file.
16837 * modules/uniwidth/width-tests (Files): Add the new files.
16838 (TESTS): Add uniwidth/test-uc_width2.sh.
16839 (TESTS_ENVIRONMENT): New variable.
16840 (check_PROGRAMS): Add test-uc_width2.
16841 (test_uc_width2_SOURCES): New variable.
16843 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
16844 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
16846 Reported by Alexander V. Lukyanov <lav@netis.ru>.
16848 2008-08-22 Eric Blake <ebb9@byu.net>
16850 test-lock, test-tls: mention why a test is skipped
16851 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
16853 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
16855 count-one-bits: relax license
16856 * modules/count-one-bits (License): Relicense to LGPLv2+.
16857 Suggested by Ludovic Courtès, approved by Ben Pfaff.
16859 2008-08-22 Andreas Schwab <schwab@suse.de>
16861 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
16862 Remove spurious space in assignment.
16864 2008-08-21 Simon Josefsson <simon@josefsson.org>
16866 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
16867 Paul Eggert <eggert@CS.UCLA.EDU>.
16869 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
16871 * modules/gettext: Add m4/threadlib.m4.
16873 2008-08-19 Eric Blake <ebb9@byu.net>
16875 test-c-stack: fix compilation failure on FreeBSD 5.0
16876 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
16877 headers before <sys/resource.h>.
16878 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
16880 Reported by Nelson H. F. Beebe.
16882 strverscmp: migrate from "strverscmp.h" to <string.h>
16883 * modules/string (Makefile.am): Add new hooks.
16884 * modules/strverscmp (Files): Remove strverscmp.h.
16885 (Depends-on): Add string.
16886 (configure.ac): Add indicator.
16887 (Include): Mention new header.
16888 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
16890 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
16892 * lib/strverscmp.h: Delete.
16893 * lib/string.in.h (strverscmp): Provide declaration, when needed.
16894 * tests/test-strverscmp.c (includes): Adjust client.
16895 * lib/check-version.c (includes): Likewise.
16896 * NEWS: Document the change.
16898 strverscmp: add unit test
16899 * modules/strverscmp-tests: New file.
16900 * tests/test-strverscmp.c: Likewise.
16902 2008-08-19 Simon Josefsson <simon@josefsson.org>
16904 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
16905 regarding Windows crypto stuff, from Mono.
16907 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
16909 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
16910 if present, for intel RND. Return error on failures.
16912 2008-08-18 Ben Pfaff <blp@gnu.org>
16914 gitlog-to-changelog: give better diagnostic for failed pipe-open
16915 * build-aux/gitlog-to-changelog: Improve error message: suggest
16916 that the version of Git may be too old.
16918 2008-08-18 Simon Josefsson <simon@josefsson.org>
16920 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
16921 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
16923 2008-08-18 Bruno Haible <bruno@clisp.org>
16925 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
16928 2008-08-18 Bruno Haible <bruno@clisp.org>
16930 * lib/glthread/threadlib.c: Include <pthread.h>.
16932 2008-08-18 Bruno Haible <bruno@clisp.org>
16934 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
16935 glthread_recursive_lock_* macros.
16936 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
16939 2008-08-18 Bruno Haible <bruno@clisp.org>
16941 * lib/glthread/thread.c: Avoid forcing a context switch right after
16944 2008-08-17 Bruno Haible <bruno@clisp.org>
16946 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
16947 * lib/glthread/thread.h: Provide Win32 specific implementation.
16948 * modules/thread (Files): Add lib/glthread/thread.c.
16949 (Depends-on): Add lock.
16950 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
16952 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16954 New module 'yield'.
16955 * modules/yield: New file.
16956 * lib/glthread/yield.h: New file.
16957 * m4/yield.m4: New file.
16958 * MODULES.html.sh (Multithreading): Add yield.
16960 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16962 New module 'thread'.
16963 * modules/thread: New file.
16964 * lib/glthread/thread.h: New file.
16965 * m4/thread.m4: New file.
16966 * MODULES.html.sh (Multithreading): Add thread.
16968 2008-08-17 Bruno Haible <bruno@clisp.org>
16970 * lib/glthread/lock.h: Include <stdlib.h> always.
16971 * lib/glthread/tls.h: Likewise.
16972 * lib/glthread/cond.h: Likewise.
16974 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16977 * modules/cond: New file.
16978 * lib/glthread/cond.h: New file.
16979 * lib/glthread/cond.c: New file.
16980 * m4/cond.m4: New file.
16981 * MODULES.html.sh (Multithreading): Add cond.
16983 2008-08-16 Eric Blake <ebb9@byu.net>
16985 c-stack: fix regression on Irix 5.3 from 2008-06-21
16986 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
16988 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
16989 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
16990 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
16991 * modules/signal (Makefile.am): Use the value.
16992 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
16993 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
16994 * doc/posix-headers/signal.texi (signal.h): Document this
16996 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
16997 Reported by Tom G. Christensen.
16999 2008-08-17 Bruno Haible <bruno@clisp.org>
17001 New module 'threadlib'.
17002 * modules/threadlib: New file.
17003 * lib/glthread/threadlib.c: New file, extracted from
17004 lib/glthread/lock.c.
17005 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
17007 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
17008 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
17009 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
17011 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
17012 (gl_DISABLE_THREADS): Remove macro.
17013 * modules/lock (Files): Remove build-aux/config.rpath.
17014 (Depends-on): Remove havelib. Add threadlib.
17015 (configure.ac-early): Remove section.
17016 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
17017 * modules/tls (Depends-on): Remove lock. Add threadlib.
17018 (Link): New section, copied from threadlib.
17019 * MODULES.html.sh (Multithreading): Add threadlib.
17021 2008-08-14 Bruno Haible <bruno@clisp.org>
17023 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
17024 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
17025 glthread_rwlock_unlock, glthread_rwlock_destroy,
17026 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
17027 glthread_recursive_lock_destroy): Define as macros always.
17028 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
17029 glthread_lock_lock.
17030 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
17031 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
17032 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
17033 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
17034 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
17035 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
17036 (glthread_recursive_lock_lock_func): Renamed from
17037 glthread_recursive_lock_lock.
17038 (glthread_recursive_lock_unlock_func): Renamed from
17039 glthread_recursive_lock_unlock.
17040 (glthread_recursive_lock_destroy_func): Renamed from
17041 glthread_recursive_lock_destroy.
17043 2008-08-14 Bruno Haible <bruno@clisp.org>
17045 * lib/glthread/lock.h: Renamed from lib/lock.h.
17046 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
17047 * lib/glthread/tls.h: Renamed from lib/tls.h.
17048 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
17049 * lib/fstrcmp.c: Update includes.
17050 * lib/strsignal.c: Update includes.
17051 * modules/lock (Files, Makefile.am): Update.
17052 (Include): Change to "glthread/lock.h".
17053 * modules/tls (Files, Makefile.am): Update.
17054 (Include): Change to "glthread/tls.h".
17055 * tests/test-lock.c: Update includes.
17056 * tests/test-tls.c: Update includes.
17057 * NEWS: Mention the renamed header files.
17059 2008-08-11 Jim Meyering <meyering@redhat.com>
17061 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
17063 2008-08-11 Eric Blake <ebb9@byu.net>
17065 test-c-stack: avoid C99-ism
17066 * tests/test-c-stack.c (main): Fix whitespace, move declaration
17068 Reported by Alain Guibert.
17070 2008-08-10 Jim Meyering <meyering@redhat.com>
17072 ensure that return value of uinttostr et al are not ignored
17073 * lib/inttostr.h (__GNUC_PREREQ): Define.
17074 (__attribute_warn_unused_result__): Define.
17075 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
17077 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
17079 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
17080 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
17082 2008-08-07 Jim Meyering <meyering@redhat.com>
17084 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
17086 * modules/mkstemp (License): Relicense under LGPLv2+.
17087 * modules/tempname (License): Likewise.
17089 2008-08-06 Bruno Haible <bruno@clisp.org>
17091 * lib/poll.c (poll): Further micro-optimization.
17093 2008-08-06 Jim Meyering <meyering@redhat.com>
17095 inet_pton.c: use locale-independent tolower
17096 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
17097 (inet_pton6): Use c_tolower rather than tolower.
17098 * modules/inet_pton (Depends-on): Add c-ctype.
17100 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
17102 * lib/poll.c (poll): Avoid division when timeout is 0, cache
17103 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
17105 2008-08-06 Jim Meyering <meyering@redhat.com>
17107 * modules/inet_pton (License): Relicense under LGPLv2+.
17109 2008-08-03 Bruno Haible <bruno@clisp.org>
17111 Additional non-aborting API for lock and tls.
17112 * lib/lock.h: Include <errno.h>.
17113 (glthread_lock_init): New macro/function.
17114 (gl_lock_init): Define as wrapper around glthread_lock_init.
17115 (glthread_lock_lock): New macro/function.
17116 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
17117 (glthread_lock_unlock): New macro/function.
17118 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
17119 (glthread_lock_destroy): New macro/function.
17120 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
17121 (glthread_rwlock_init): New macro/function.
17122 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
17123 (glthread_rwlock_rdlock): New macro/function.
17124 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
17125 (glthread_rwlock_wrlock): New macro/function.
17126 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
17127 (glthread_rwlock_unlock): New macro/function.
17128 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
17129 (glthread_rwlock_destroy): New macro/function.
17130 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
17131 (glthread_recursive_lock_init): New macro/function.
17132 (gl_recursive_lock_init): Define as wrapper around
17133 glthread_recursive_lock_init.
17134 (glthread_recursive_lock_lock): New macro/function.
17135 (gl_recursive_lock_lock): Define as wrapper around
17136 glthread_recursive_lock_lock.
17137 (glthread_recursive_lock_unlock): New macro/function.
17138 (gl_recursive_lock_unlock): Define as wrapper around
17139 glthread_recursive_lock_unlock.
17140 (glthread_recursive_lock_destroy): New macro/function.
17141 (gl_recursive_lock_destroy): Define as wrapper around
17142 glthread_recursive_lock_destroy.
17143 (glthread_once): New macro/function.
17144 (gl_once): Define as wrapper around glthread_once.
17145 Update function declarations.
17146 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
17147 glthread_rwlock_init. Return error code.
17148 (glthread_rwlock_rdlock_multithreaded): Renamed from
17149 glthread_rwlock_rdlock. Return error code.
17150 (glthread_rwlock_wrlock_multithreaded): Renamed from
17151 glthread_rwlock_wrlock. Return error code.
17152 (glthread_rwlock_unlock_multithreaded): Renamed from
17153 glthread_rwlock_unlock. Return error code.
17154 (glthread_rwlock_destroy_multithreaded): Renamed from
17155 glthread_rwlock_destroy. Return error code.
17156 (glthread_recursive_lock_init_multithreaded): Renamed from
17157 glthread_recursive_lock_init. Return error code.
17158 (glthread_recursive_lock_lock_multithreaded): Renamed from
17159 glthread_recursive_lock_lock. Return error code.
17160 (glthread_recursive_lock_unlock_multithreaded): Renamed from
17161 glthread_recursive_lock_unlock. Return error code.
17162 (glthread_recursive_lock_destroy_multithreaded): Renamed from
17163 glthread_recursive_lock_destroy. Return error code.
17164 (glthread_once_call): Make static.
17165 (glthread_once_multithreaded): Renamed from glthread_once.
17166 * lib/tls.h: Include <errno.h>.
17167 (glthread_tls_key_init): New macro/function.
17168 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
17169 (glthread_tls_set): New macro/function.
17170 (gl_tls_set): Define as wrapper around glthread_tls_set.
17171 (glthread_tls_key_destroy): New macro/function.
17172 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
17173 Update function declarations.
17174 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
17176 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
17178 2008-08-04 Eric Blake <ebb9@byu.net>
17180 gnumakefile: use space, not TAB, outside of targets
17181 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
17183 2008-08-02 Jim Meyering <meyering@redhat.com>
17185 getdate.y: avoid locale-dependent date parsing failure
17186 In Turkish locales, getdate would fail to recognize keywords
17187 containing a lowercase "i". The solution is not to rely on
17188 locale-sensitive case-conversion.
17189 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
17190 (lookup_word): Use c_toupper in place of toupper.
17191 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
17192 Reported by Vefa Bicakci <bicave@superonline.com> in
17193 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
17194 * modules/getdate (Depends-on): Add c-ctype.
17196 2008-08-02 Bruno Haible <bruno@clisp.org>
17198 * gnulib-tool (func_import): When updating or creating a .gitignore
17199 file, prepend each added line with a slash, and ignore leading slashes
17200 from the existing lines.
17201 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
17203 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17205 Portability fix for GNU make 3.79.1.
17206 * top/GNUmakefile: Avoid 'else COND', which older GNU make
17207 versions do not understand.
17209 2008-08-01 Bruno Haible <bruno@clisp.org>
17211 Work around bug of HP-UX 10.20 cc with -0.0 literal.
17212 * tests/test-isnanf.h (zero): New variable.
17213 (main): Avoid literal -0.0f.
17214 * tests/test-isnand.h (zero): New variable.
17215 (main): Avoid literal -0.0.
17216 * tests/test-isnanl.h (zero): New variable.
17217 (main): Avoid literal -0.0L.
17218 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
17219 (test_float, test_double, test_long_double): Avoid literals -0.0f,
17221 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
17222 (test_signbitd): Avoid literal -0.0.
17223 (test_signbitl): Avoid literal -0.0L.
17224 * tests/test-ceilf1.c (zero): New variable.
17225 (main): Avoid literal -0.0f.
17226 * tests/test-ceill.c (zero): New variable.
17227 (main): Avoid literal -0.0L.
17228 * tests/test-floorf1.c (zero): New variable.
17229 (main): Avoid literal -0.0f.
17230 * tests/test-floorl.c (zero): New variable.
17231 (main): Avoid literal -0.0L.
17232 * tests/test-roundf1.c (zero): New variable.
17233 (main): Avoid literal -0.0f.
17234 * tests/test-round1.c (zero): New variable.
17235 (main): Avoid literal -0.0.
17236 * tests/test-roundl.c (zero): New variable.
17237 (main): Avoid literal -0.0L.
17238 * tests/test-truncf1.c (zero): New variable.
17239 (main): Avoid literal -0.0f.
17240 * tests/test-trunc1.c (zero): New variable.
17241 (main): Avoid literal -0.0.
17242 * tests/test-truncl.c (zero): New variable.
17243 (main): Avoid literal -0.0L.
17244 * tests/test-frexp.c (zero): New variable.
17245 (main): Avoid literal -0.0.
17246 * tests/test-frexpl.c (zero): New variable.
17247 (main): Avoid literal -0.0L.
17248 * tests/test-ldexpl.c (zero): New variable.
17249 (main): Avoid literal -0.0L.
17250 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
17251 (zerod, zerol): New variables.
17252 (test_function): Avoid literals -0.0, -0.0L.
17253 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
17254 (zerod, zerol): New variables.
17255 (test_function): Avoid literals -0.0, -0.0L.
17256 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
17257 (zerod, zerol): New variables.
17258 (test_function): Avoid literals -0.0, -0.0L.
17259 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
17260 (zerod, zerol): New variables.
17261 (test_function): Avoid literals -0.0, -0.0L.
17262 * tests/test-strtod.c (zero): New variable.
17263 (main): Avoid literal -0.0.
17264 Reported by Jonathan C. Patschke <jp@centtech.com>.
17266 2008-07-31 Jim Meyering <meyering@redhat.com>
17268 sha256.h: correct definition of SHA224_DIGEST_SIZE
17269 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
17270 Reported by Paulie Pena IV <paulie4@gmail.com>.
17271 Define as 224 / 8, rather than as a literal.
17272 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
17273 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
17274 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
17276 2008-07-31 Bruno Haible <bruno@clisp.org>
17278 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
17279 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
17280 Reported by Jonathan Patschke <jp@centtech.com>.
17282 2008-07-31 Bruno Haible <bruno@clisp.org>
17284 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
17285 Reported by Paolo Bonzini <bonzini@gnu.org>.
17287 2008-07-30 Eric Blake <ebb9@byu.net>
17289 test-strtod: allow compilation without -lm
17290 * tests/test-strtod.c (main): Avoid link dependence on fabs.
17291 Reported by Dennis Clarke <blastwave@gmail.com>.
17293 2008-07-28 Jim Meyering <meyering@redhat.com>
17295 bootstrap: work also when there are no .po files in po/
17296 * build-aux/bootstrap (update_po_files): Complete the change
17297 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
17299 2008-07-27 Jim Meyering <meyering@redhat.com>
17301 * users.txt: Add zile.
17303 2008-07-26 Ben Pfaff <blp@gnu.org>
17305 Add missing dependencies on new m4/exponent[fdl].m4 files.
17306 * modules/isnanf-nolibm: Add m4/exponentf.m4.
17307 * modules/isnand-nolibm: Add m4/exponentd.m4.
17308 * modules/isnanl-nolibm: Add m4/exponentl.m4.
17309 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
17310 m4/isnan[fdl].m4, because the macros actually used moved.
17311 Reported by Jim Meyering.
17313 2008-07-14 Ben Pfaff <blp@gnu.org>
17316 * lib/isinf.c: New file.
17317 * lib/math.in.h: Define isinf macro if we have decided to replace
17319 * m4/isinf.m4: New file.
17320 * m4/math_h.m4: Initialize and substitute variables for isinf
17322 * modules/isinf: New file.
17323 * modules/isinf-tests: New file.
17324 * modules/math: Add substitutions for new module.
17325 * tests/test-isinf.c: New file.
17326 * doc/posix-functions/isinf.texi: Mention new module.
17327 * MODULES.html.sh: Mention new module.
17329 2008-07-14 Ben Pfaff <blp@gnu.org>
17331 Factor out some macros for use by additional modules.
17332 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
17334 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
17336 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
17338 * m4/exponentf.m4: New file.
17339 * m4/exponentd.m4: New file.
17340 * m4/exponentl.m4: New file.
17341 * modules/isnanf: Use new file m4/exponentf.m4.
17342 * modules/isnand: Use new file m4/exponentd.m4.
17343 * modules/isnanl: Use new file m4/exponentl.m4.
17345 2008-07-23 Ulrich Drepper <drepper@redhat.com>
17347 mktime.c: normalize tp->tm_isdst value to -1/0/1.
17348 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
17349 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
17350 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
17352 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
17353 readlink on platforms without PATH_MAX.
17355 2008-07-21 Eric Blake <ebb9@byu.net>
17357 Warn, not fail, on stale version.
17358 * top/GNUmakefile (_curr-ver): Tone down previous patch.
17360 Don't allow installation with stale devel version number.
17361 * top/GNUmakefile (_is-install-target): New macro.
17362 (_curr-ver): Forbid installation with stale version number.
17364 2008-07-20 Bruno Haible <bruno@clisp.org>
17366 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
17368 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
17370 2008-07-20 Bruno Haible <bruno@clisp.org>
17372 * lib/c-stack.h (c_stack_action): Add documentation.
17373 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
17375 2008-07-20 Bruno Haible <bruno@clisp.org>
17377 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
17378 * modules/readlink (License): Likewise.
17380 2008-07-17 Eric Blake <ebb9@byu.net>
17382 * modules/c-stack (Link): Fix typo.
17384 Make c-stack use libsigsegv, when available.
17385 * modules/c-stack (Depends-on): Add libsigsegv.
17386 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
17388 * lib/c-stack.c (SIGSTKSZ): Define fallback.
17389 (segv_handler, overflow_handler, c_stack_action)
17390 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
17391 implementation when libsigsegv is available, but only when using
17392 the library is necessary.
17393 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
17394 comment, explaining why XSI check fails on Linux.
17395 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
17396 * tests/test-c-stack2.sh: Tweak skip message.
17397 * NEWS: Document new link-time requirements.
17399 2008-07-16 Eric Blake <ebb9@byu.net>
17401 c-stack: Expose false positives when not using libsigsegv.
17402 * modules/c-stack-tests (Files): Expand test.
17403 * tests/test-c-stack.c (main): Add means to conditionally trigger
17404 non-overflow SIGSEGV.
17405 * tests/test-c-stack2.sh: New file.
17407 2008-07-14 Bruno Haible <bruno@clisp.org>
17409 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
17410 Reported by Eric Blake.
17412 2008-07-14 Sam Steingold <sds@gnu.org>
17413 Bruno Haible <bruno@clisp.org>
17415 New module libsigsegv.
17416 * modules/libsigsegv: New file.
17417 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
17419 * MODULES.html.sh (Signal handling): New section.
17421 2008-07-14 Bruno Haible <bruno@clisp.org>
17423 * modules/unictype/ctype-* (Description): Add the word "function".
17424 Improves the resulting doc in MODULES.html.
17426 2008-07-12 Ben Pfaff <blp@gnu.org>
17428 Add longlong module.
17429 * modules/longlong: New file.
17431 2008-07-12 Bruno Haible <bruno@clisp.org>
17433 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
17436 2008-07-10 Ben Pfaff <blp@gnu.org>
17439 * doc/posix-functions/isnan.texi: Mention new module.
17440 * lib/math.in.h: Define isnan macro if we have decided to replace
17442 * m4/isnan.m4: New file.
17443 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
17444 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
17446 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
17448 * m4/math_h.m4: Initialize and substitute variables for isnan
17450 * modules/isnan: New file.
17451 * modules/isnan-tests: New file.
17452 * modules/math: Add substitutions for new module.
17453 * tests/test-isnan.c: New file.
17454 * MODULES.html.sh: Mention new module.
17456 2008-07-10 Ben Pfaff <blp@gnu.org>
17459 * lib/isnanf.m4: New file.
17460 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
17461 (gl_HAVE_ISNANF_IN_LIBM): New macro.
17462 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
17463 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
17464 * modules/isnanf: New file.
17465 * modules/isnanf-tests: New file.
17466 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
17468 * tests/test-isnanf-nolibm.c: factored most of its contents into
17469 new file tests/test-isnanf.h.
17470 * tests/test-isnanf.h: New file.
17471 * tests/test-isnanf.c: New file.
17472 * MODULES.html.sh: Mention new module.
17473 * doc/glibc-functions/isnanf.texi: Mention new module.
17475 2008-07-10 Ben Pfaff <blp@gnu.org>
17478 * lib/isnand.h: New file.
17479 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
17480 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
17481 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
17482 functionality also.
17483 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
17484 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
17485 (gl_HAVE_ISNAND_IN_LIBM): New macro.
17486 * modules/isnand: New file.
17487 * modules/isnand-tests: New file.
17488 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
17490 * tests/test-isnand-nolibm.c: factored most of its contents into
17491 new file tests/test-isnand.h.
17492 * tests/test-isnand.h: New file.
17493 * tests/test-isnand.c: New file.
17494 * MODULES.html.sh: Mention new module.
17496 2008-07-10 Ben Pfaff <blp@gnu.org>
17498 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
17499 * lib/isnand.h: Rename lib/isnand-nolibm.h.
17500 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
17501 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
17502 * modules/isnanf-nolibm: Update references to renamed files.
17503 * modules/isnand-nolibm: Likewise.
17504 * modules/isnanf-nolibm-tests: Likewise.
17505 * modules/isnand-nolibm-tests: Likewise.
17506 * lib/frexp.c: Likewise.
17507 * lib/isfinite.c: Likewise.
17508 * lib/signbitd.c: Likewise.
17509 * lib/signbitf.c: Likewise.
17510 * lib/vasnprintf.c: Likewise.
17511 * tests/test-ceilf1.c: Likewise.
17512 * tests/test-ceilf2.c: Likewise.
17513 * tests/test-floorf1.c: Likewise.
17514 * tests/test-floorf2.c: Likewise.
17515 * tests/test-frexp.c: Likewise.
17516 * tests/test-round1.c: Likewise.
17517 * tests/test-round2.c: Likewise.
17518 * tests/test-roundf1.c: Likewise.
17519 * tests/test-strtod.c: Likewise.
17520 * tests/test-trunc1.c: Likewise.
17521 * tests/test-trunc2.c: Likewise.
17522 * tests/test-truncf1.c: Likewise.
17523 * tests/test-truncf2.c: Likewise.
17524 * NEWS: Mention the renamed header files.
17526 2008-07-11 Jim Meyering <meyering@redhat.com>
17528 vc-list-files: make the last-resort awk code more portable
17529 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
17530 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
17531 does not support it.
17533 2008-07-10 Eric Blake <ebb9@byu.net>
17535 Work with tar's bootstrap.
17536 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
17537 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
17540 2008-07-09 Jim Meyering <meyering@redhat.com>
17542 posix-shell.m4: fix typo that made this test malfunction
17543 * m4/posix-shell.m4: Remove capitalization in variable name.
17545 2008-07-08 Bruno Haible <bruno@clisp.org>
17547 * m4/onceonly.m4: Update comments.
17548 Reported by Ben Pfaff <blp@cs.stanford.edu>.
17550 2008-07-04 Jim Meyering <meyering@redhat.com>
17552 * users.txt: Add vc-dwim.
17553 (bison, coreutils): Use the gitweb URL.
17555 2008-07-03 Jim Meyering <meyering@redhat.com>
17557 * users.txt: Add libffcall. From Sam Steingold.
17559 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17561 getdate.y: do not ignore TZ with relative day, month or year offset
17562 * lib/getdate.y (get_date): Move the tz-handling block to follow the
17563 relative-date-handling, since otherwise, the latter would clobber the
17564 sole output (an updated Start value) of the tz-handling block.
17565 * tests/test-getdate.c: Tests for the fix
17567 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17569 Recognize 'foo_LIBRARIES += libgnu.a'.
17570 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
17571 makefile snippet has already specified an installation location,
17574 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17576 getdate.y: factor out common actions
17577 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
17578 Use them in place of open-coded actions.
17580 2008-07-01 Simon Josefsson <simon@josefsson.org>
17582 Add self-test for getdate module.
17583 * modules/getdate-tests: New file.
17584 * tests/test-getdate.c: New file.
17586 2008-06-29 Bruno Haible <bruno@clisp.org>
17588 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
17590 Reported by Sylvain Beucler <beuc@beuc.net>.
17592 2008-06-29 Bruno Haible <bruno@clisp.org>
17594 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
17595 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
17597 2008-06-29 Bruno Haible <bruno@clisp.org>
17599 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
17601 Reported by Sylvain Beucler <beuc@beuc.net>.
17603 2008-06-26 Jim Meyering <meyering@redhat.com>
17605 make several modules depend on the "open" module
17606 This provides slightly increased consistency when opening-for-write
17607 the name of a non-directory spelled with a trailing slash.
17608 * modules/chdir-safer: Likewise.
17609 * modules/chown: Likewise.
17610 * modules/clean-temp: Likewise.
17611 * modules/copy-file: Likewise.
17612 * modules/fchdir: Likewise.
17613 * modules/fcntl-safer: Likewise.
17614 * modules/pipe: Likewise.
17615 * modules/utime: Likewise.
17616 Prompted by Eric Blake and Bruno Haible.
17618 2008-06-24 Andreas Schwab <schwab@suse.de>
17620 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
17621 literals can be used as initializers for global variables.
17623 2008-06-23 Eric Blake <ebb9@byu.net>
17625 Make gnulib-cache.m4 easier to diff.
17626 * gnulib-tool (func_import): Allow newlines when reading cached
17627 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
17629 2008-06-23 Bruno Haible <bruno@clisp.org>
17631 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
17632 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
17633 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
17634 m4/signalblocking.m4.
17635 (gl_PREREQ_SIGACTION): Don't invoke it.
17636 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
17637 gl_PREREQ_SIG_HANDLER_H.
17638 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17639 Don't check for sigaction here.
17641 2008-06-23 Bruno Haible <bruno@clisp.org>
17643 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
17644 (install_handlers): Don't set the SA_RESETHAND flag.
17646 2008-06-23 Bruno Haible <bruno@clisp.org>
17648 * m4/sigaction.m4: Comment fixes.
17649 * lib/signal.in.h: Likewise.
17651 2008-06-23 Eric Blake <ebb9@byu.net>
17654 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
17656 Avoid SA_ namespace.
17657 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
17658 Reported by Ralf Wildenhues.
17660 Avoid test failure due to SA_RESTORER.
17661 * tests/test-sigaction.c (SA_MASK): New macro.
17662 (main): Avoid failing due to extension flags being set.
17663 Reported by Jim Meyering.
17665 Revert use of sig-handler.h in sigprocmask.c.
17666 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
17667 it requires the existence of struct sigaction.
17668 * lib/sigprocmask.c (handler_t): Restore typedef.
17669 (rpl_signal, old_handlers): Use local type.
17671 2008-06-22 Bruno Haible <bruno@clisp.org>
17673 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
17675 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17677 2008-06-22 Bruno Haible <bruno@clisp.org>
17679 * doc/posix-functions/siginterrupt.texi: Move note.
17681 * lib/signal.in.h (SA_RESTART): New macro.
17682 * lib/sigaction.c: Update comment.
17684 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
17686 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
17687 (gl_PREREQ_SIGPROCMASK): Invoke it.
17688 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
17690 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
17692 * lib/sigprocmask.c: Update a comment.
17694 2008-06-21 Eric Blake <ebb9@byu.net>
17696 Use sigaction module rather than signal().
17697 * modules/c-stack (Depends-on): Add sigaction.
17698 * modules/fatal-signal (Depends-on): Likewise.
17699 * modules/nanosleep (Depends-on): Likewise.
17700 * modules/sigprocmask (Files): Add sig-handler.h.
17701 * modules/sigaction (Files): Likewise.
17702 * lib/sig-handler.h (get_handler): New file, suggested by Paul
17704 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
17705 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
17706 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
17707 (init_fatal_signals): Likewise.
17708 * lib/nanosleep.c (rpl_nanosleep): Likewise.
17709 (siginterrupt): Delete fallback.
17710 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
17712 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
17715 New module sigaction, for mingw.
17716 * modules/sigaction: New module...
17717 * modules/sigaction-tests: ...and its test.
17718 * m4/sigaction.m4: New file.
17719 * lib/sigaction.c: Likewise.
17720 * tests/test-sigaction.c: Likewise.
17721 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
17722 * modules/signal (Makefile.am): Likewise.
17723 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
17725 * doc/posix-headers/signal.texi (signal.h): Mention provided
17727 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
17728 that sigaction is preferable.
17729 * doc/posix-functions/sigaction.texi (sigaction): Mention new
17731 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17734 Improve robustness of sigprocmask by overriding signal.
17735 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
17737 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
17738 (SIGKILL, SIGSTOP): Provide fallbacks.
17739 (rpl_signal): Implement.
17740 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
17741 signal can be called inside handlers.
17743 Fix nanosleep module on mingw.
17744 * modules/nanosleep (Depends-on): Add sys_select.
17745 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
17747 Fix licensing of sigprocmask.
17748 * modules/raise (License): Relicense as LGPL.
17750 2008-06-21 Bruno Haible <bruno@clisp.org>
17752 * lib/propername.c (proper_name_utf8): Don't use the transliterated
17753 result if it contains question marks.
17754 Reported by Michael Geng <linux@michaelgeng.de>.
17756 2008-06-19 Bruno Haible <bruno@clisp.org>
17759 * doc/gnulib.texi: Include updated-stamp.texi.
17760 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
17761 (updated-stamp.texi): New rule.
17762 (gnulib.info): Depend on it.
17763 * doc/.gitignore: Add updated-stamp.texi.
17764 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
17766 2008-06-19 Bruno Haible <bruno@clisp.org>
17768 * doc/Makefile (gnulib.info): Update and simplify dependencies.
17769 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17771 2008-06-19 Eric Blake <ebb9@byu.net>
17773 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
17774 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
17775 Reported by Stepan Kasal.
17777 2008-06-18 Bruno Haible <bruno@clisp.org>
17779 * lib/fatal-signal.c (init_fatal_signals): Add comment.
17780 Reported by Eric Blake.
17782 2008-06-18 Eric Blake <ebb9@byu.net>
17784 Work around cygwin 1.5.25 strsignal bug.
17785 * tests/test-strsignal.c: Allow for const char *.
17786 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
17788 2008-06-18 Simon Josefsson <simon@josefsson.org>
17790 * users.txt: Update URL to article and add author/date
17793 2008-06-17 Bruno Haible <bruno@clisp.org>
17795 New macro gl_DISABLE_THREADS.
17796 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
17797 if the user did not pass --enable-threads or --disable-threads option.
17798 (gl_DISABLE_THREADS): New macro.
17799 Reported by Eric Blake <ebb9@byu.net>.
17801 2008-06-17 Bruno Haible <bruno@clisp.org>
17803 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
17804 when the macro ignores it.
17805 Based on a patch by Eric Blake <ebb9@byu.net>.
17807 2008-06-17 Bruno Haible <bruno@clisp.org>
17809 * modules/tls (License): Change to LGPLv2+.
17810 Reported by Eric Blake.
17812 2008-06-17 Eric Blake <ebb9@byu.net>
17814 Simplify c-stack prerequisites.
17815 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
17816 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
17817 no longer requires <ucontext.h> to exist. Optimize setrlimit
17819 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
17822 Move c-stack test into testsuite.
17823 * modules/c-stack-tests: New file.
17824 * lib/c-stack.c [DEBUG]: Move test program...
17825 * tests/test-c-stack.c: ...into this new file. Skip rather than
17826 fail test if sigaltstack is lacking.
17827 * tests/test-c-stack.sh: New driver file.
17829 2008-06-16 Eric Blake <ebb9@byu.net>
17831 Use raise module consistently.
17832 * modules/fatal-signal (Depends-on): Add raise.
17833 * modules/sigprocmask (Depends-on): Likewise.
17834 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
17835 * lib/sigprocmask.c (sigprocmask): Likewise.
17836 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
17837 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
17839 Fix compliance bug in sigpending.
17840 * lib/sigprocmask.c (sigpending): Return pending array via
17841 parameter, not return value.
17843 2008-06-14 Eric Blake <ebb9@byu.net>
17845 Improve obstack-printf test code.
17846 * tests/test-obstack-printf.c (test_function): Fix comment, and
17847 simplify usage of obstack_* in macros. Add a test for coverage.
17848 Reported by Bruno Haible.
17850 2008-06-14 Bruno Haible <bruno@clisp.org>
17852 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
17853 array size as a constant, not as a const variable.
17854 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
17855 AC_USE_SYSTEM_EXTENSIONS.
17856 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
17857 Test whether the obstack_printf function actually exists.
17858 * modules/obstack-printf (Depends-on): Add extensions.
17859 (Include): Remove obstack.h.
17860 * modules/obstack-printf-posix (Depends-on): Add extensions.
17861 (Include): Remove obstack.h.
17863 2008-06-13 Eric Blake <ebb9@byu.net>
17865 Add obstack-printf and obstack-printf-posix modules.
17866 * modules/obstack-printf: New file.
17867 * modules/obstack-printf-posix: Likewise.
17868 * MODULES.html.sh (Misc): Mention them.
17869 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
17871 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
17873 * modules/stdio (Makefile.am): Accomodate new modules.
17874 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17875 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
17877 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
17879 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
17880 (gl_REPLACE_OBSTACK_PRINTF): New macros
17881 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
17882 * tests/test-obstack-printf.c: New file.
17883 * modules/obstack-printf-tests: Likewise.
17884 * modules/obstack-printf-posix-tests: Likewise.
17886 2008-06-11 Bruno Haible <bruno@clisp.org>
17888 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
17889 * lib/open.c: Include errno.h.
17890 (open): Fail when attempting to write to a file that has a trailing
17892 * tests/test-open.c (main): Test against trailing slash bug.
17893 * doc/posix-functions/open.texi: Mention the trailing slash bug.
17895 2008-06-10 Bruno Haible <bruno@clisp.org>
17897 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
17898 for $? to work inside the trap command, with various /bin/sh-s.
17899 * tests/test-vc-list-files-cvs.sh: Likewise.
17901 2008-06-10 Bruno Haible <bruno@clisp.org>
17903 * lib/acl-internal.h: Don't include gettext.h here.
17904 * lib/set-mode-acl.c: Include gettext.h here.
17905 * lib/copy-acl.c: Likewise.
17907 2008-06-10 Bruno Haible <bruno@clisp.org>
17909 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
17910 * lib/wait-process.c (wait_subprocess): Likewise.
17911 * lib/execute.h (execute): Add termsigp argument.
17912 * lib/execute.c (execute): Likewise.
17913 * lib/csharpcomp.c (compile_csharp_using_pnet,
17914 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
17915 * lib/csharpexec.c (execute_csharp_using_pnet,
17916 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
17917 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
17918 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
17919 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
17920 is_jikes_present): Update.
17921 * lib/javaexec.c (execute_java_class): Update.
17922 * lib/javaversion.c (execute_and_read_line): Update.
17923 * NEWS: Document the changes.
17924 Reported by Eric Blake.
17926 2008-06-10 Eric Blake <ebb9@byu.net>
17928 Add missing include.
17929 * tests/test-strstr.c (includes): Add <signal.h>.
17930 * tests/test-strcasestr.c (includes): Likewise.
17931 * tests/test-memmem.c (includes): Likewise.
17933 2008-06-10 Bruno Haible <bruno@clisp.org>
17935 * lib/wait-process.c (wait_subprocess): Add an assertion.
17937 2008-06-10 Bruno Haible <bruno@clisp.org>
17939 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
17941 2008-06-10 Bruno Haible <bruno@clisp.org>
17943 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
17945 * tests/test-strcasestr.c (main): Likewise.
17946 * tests/test-strstr.c (main): Likewise.
17948 2008-06-09 Bruno Haible <bruno@clisp.org>
17950 Work around the Solaris 10 ACE ACLs ABI change.
17951 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
17952 declare if ACL_NO_TRIVIAL is present.
17953 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
17954 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
17955 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
17956 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
17957 define if ACL_NO_TRIVIAL is present.
17958 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
17959 and use the current ABI.
17960 (file_has_acl): Use same #if condition as elsewhere.
17961 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
17962 in use, and use the current ABI.
17963 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
17964 Reported by Jim Meyering.
17966 2008-06-09 Eric Blake <ebb9@byu.net>
17968 Work around environments that (stupidly) ignore SIGALRM.
17969 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
17970 before using alarm().
17971 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17972 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17973 Reported by Ian Beckwith <ianb@erislabs.net>.
17975 Produce autobuild blurb earlier in log.
17976 * modules/autobuild (configure.ac-early): Move AB_INIT here.
17978 2008-06-09 Jim Meyering <meyering@redhat.com>
17979 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17981 utimens.c: correct kernel bug work-around
17982 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
17983 failure, not success, and the kernel bug we're trying to work
17984 around affects not just the utimensat call, but also the fallback
17986 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
17988 [HAVE_FUTIMENS]: Use the same work-around, here.
17990 2008-06-09 Jim Meyering <meyering@redhat.com>
17992 add more guards around definition of ACE_-related code
17993 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
17994 ALLOW and ACE_OWNER are also defined.
17996 2008-06-08 Bruno Haible <bruno@clisp.org>
17998 * lib/acl-internal.h: Add me as co-author.
17999 * lib/file-has-acl.c: Likewise.
18000 * lib/set-mode-acl.c: Likewise.
18001 * lib/copy-acl.c: Likewise.
18003 2008-06-08 Bruno Haible <bruno@clisp.org>
18005 Add support for AIX ACLs.
18006 * lib/acl-internal.h (acl_nontrivial): New declaration.
18007 * lib/file-has-acl.c (acl_nontrivial): New function.
18008 (file_has_acl): Add implementation using AIX 4 ACL API.
18009 * lib/set-mode-acl.c (qset_acl): Likewise.
18010 * lib/copy-acl.c (qcopy_acl): Likewise.
18012 2008-06-08 Bruno Haible <bruno@clisp.org>
18014 Add support for HP-UX ACLs.
18015 * lib/acl-internal.h (acl_nontrivial): New declaration.
18016 * lib/file-has-acl.c (acl_nontrivial): New function.
18017 (file_has_acl): Add implementation using HP-UX 11 ACL API.
18018 * lib/set-mode-acl.c (qset_acl): Likewise.
18019 * lib/copy-acl.c (qcopy_acl): Likewise.
18021 2008-06-08 Bruno Haible <bruno@clisp.org>
18023 Add support for Cygwin ACLs.
18024 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
18025 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
18026 the chmod_or_fchmod call.
18027 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
18029 2008-06-08 Bruno Haible <bruno@clisp.org>
18031 Fix bug with setuid modes in Solaris 10+ code.
18032 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
18033 succeeded, when the mode contains some special bits.
18035 2008-06-08 Bruno Haible <bruno@clisp.org>
18037 Add support for Solaris 7..10 ACLs.
18038 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
18040 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
18042 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
18043 * lib/set-mode-acl.c (qset_acl): Likewise.
18044 * lib/copy-acl.c (qcopy_acl): Likewise.
18046 2008-06-08 Bruno Haible <bruno@clisp.org>
18048 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
18050 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
18051 (acl_access_nontrivial): Remove MacOS X case.
18052 (file_has_acl): Use acl_extended_nontrivial.
18053 * lib/copy-acl.c (qcopy_acl): Likewise.
18055 2008-06-08 Bruno Haible <bruno@clisp.org>
18057 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
18059 2008-06-08 Jim Meyering <meyering@redhat.com>
18061 * modules/acl (Maintainer): Add Bruno Haible.
18063 2008-06-07 Bruno Haible <bruno@clisp.org>
18065 Improve support for Tru64 ACLs.
18066 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
18069 2008-06-07 Bruno Haible <bruno@clisp.org>
18071 Add support for MacOS X ACLs.
18072 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
18073 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
18074 * lib/set-mode-acl.c (qset_acl): Likewise.
18075 * lib/copy-acl.c (qcopy_acl): Likewise.
18077 2008-06-07 Bruno Haible <bruno@clisp.org>
18079 Fix memory leak introduced on 2008-05-22.
18080 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
18083 2008-06-07 Bruno Haible <bruno@clisp.org>
18085 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
18086 to construct an empty ACL.
18088 2008-06-07 Bruno Haible <bruno@clisp.org>
18090 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
18092 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
18094 2008-06-07 Bruno Haible <bruno@clisp.org>
18096 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
18097 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
18099 2008-06-07 Bruno Haible <bruno@clisp.org>
18101 * doc/posix-functions/_setjmp.texi: Explain the use of this function
18102 regardless of POSIX.
18103 * doc/posix-functions/_longjmp.texi: Likewise.
18104 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
18105 SystemV platform in this case.
18107 2008-06-06 Eric Blake <ebb9@byu.net>
18109 Document abort() bugs.
18110 * doc/posix-functions/abort.texi (abort): Mention anomalies.
18112 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
18113 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
18115 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
18116 siglongjmp, but only as a macro.
18117 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
18119 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
18121 Tweak documentation to cover cygwin argz bugs.
18122 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
18123 argz bug fix; no code change needed since no cygwin releases
18124 occurred between the last fix and the bug being tested.
18125 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
18126 module and recently fixed cygwin bugs.
18127 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
18128 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
18129 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
18130 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
18131 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
18133 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
18134 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
18135 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
18136 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
18137 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
18138 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
18141 Avoid gcc warning on cygwin.
18142 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
18143 !ACL_NO_TRIVIAL]: Avoid unused variable.
18145 2008-06-05 Eric Blake <ebb9@byu.net>
18147 Be tolerant of UNKNOWN version in gnulib-tool test dir.
18148 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
18149 git-version-gen fails to come up with a version.
18150 Reported by Simon Josefsson.
18152 2008-06-05 Jim Meyering <meyering@redhat.com>
18153 Paul Eggert <eggert@cs.ucla.edu>
18155 utimens.c: work around a probable Linux kernel bug
18156 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
18157 appears to be a kernel bug that causes utimensat to return 280
18158 instead of 0, indicating success.
18160 2008-06-04 Bruno Haible <bruno@clisp.org>
18162 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
18165 2008-06-04 Bruno Haible <bruno@clisp.org>
18167 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
18168 * lib/file-has-acl.c (acl_access_nontrivial): New function.
18169 (file_has_acl): Use it. Save errno afterwards.
18170 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
18172 2008-06-03 Bruno Haible <bruno@clisp.org>
18174 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
18175 draft code. Simplify #ifs.
18176 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
18177 Put Solaris code after POSIX-draft code. Fix comments regarding
18178 Solaris 10, HP-UX. Mention Cygwin.
18179 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
18181 2008-06-03 Eric Blake <ebb9@byu.net>
18183 Provide fallback for older kernels.
18184 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
18185 Provide runtime fallback if kernel lacks support.
18186 Reported by Mike Frysinger.
18188 2008-06-02 Bruno Haible <bruno@clisp.org>
18190 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
18193 2008-06-02 Bruno Haible <bruno@clisp.org>
18195 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
18196 * lib/copy-acl.c (qcopy_acl): Update comment.
18198 2008-06-02 Bruno Haible <bruno@clisp.org>
18200 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
18203 2008-06-02 Bruno Haible <bruno@clisp.org>
18205 * tests/test-file-has-acl.sh: Use different code for Cygwin.
18206 * tests/test-set-mode-acl.sh: Likewise.
18207 * tests/test-copy-acl.sh: Likewise.
18208 * tests/test-copy-file.sh: Likewise.
18210 2008-06-02 Bruno Haible <bruno@clisp.org>
18212 * tests/test-file-has-acl.sh: Remove unused code.
18214 2008-06-01 Bruno Haible <bruno@clisp.org>
18216 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
18217 (copy_acl): Just a wrapper around qcopy_acl that emits the error
18219 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
18221 2008-06-01 Bruno Haible <bruno@clisp.org>
18223 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
18224 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
18225 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
18227 * modules/acl-tests (configure.ac): Remove tests now contained in
18230 2008-06-02 Jim Meyering <meyering@redhat.com>
18232 announce-gen: use a better key-server host name
18233 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
18234 it may be more consistently reliable. Suggested by Werner Koch
18235 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
18237 2008-06-01 Bruno Haible <bruno@clisp.org>
18239 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
18240 Reported by Voroskoi Andras <voroskoi@gmail.com>.
18242 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
18244 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
18246 2008-06-01 Bruno Haible <bruno@clisp.org>
18249 * tests/test-file-has-acl.sh: New file.
18250 * tests/test-file-has-acl.c: New file.
18251 * tests/test-set-mode-acl.sh: New file.
18252 * tests/test-set-mode-acl.c: New file.
18253 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
18254 * tests/test-copy-acl.c: New file.
18255 * modules/acl-tests: New file, based on modules/copy-file-tests.
18256 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
18257 (Depends-on): Add acl-tests.
18258 (configure.ac): Remove checks.
18259 (Makefile.am): Don't create test-sameacls program here any more.
18261 2008-06-01 Bruno Haible <bruno@clisp.org>
18263 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
18264 * tests/test-sameacls.c: Include progname.h.
18265 (main): Invoke set_program_name. Portability fixes for MacOS X,
18268 2008-06-01 Bruno Haible <bruno@clisp.org>
18270 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
18272 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
18274 2008-06-01 Bruno Haible <bruno@clisp.org>
18276 * modules/rpmatch (Depends-on): Add strdup.
18278 2008-06-01 Bruno Haible <bruno@clisp.org>
18280 * lib/pipe.c: Include unistd-safer.h.
18281 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
18282 * modules/pipe (Depends-on): Add unistd-safer.
18284 2008-05-30 Simon Josefsson <simon@josefsson.org>
18286 * modules/autobuild (configure.ac): Call AB_INIT.
18288 2008-05-30 Simon Josefsson <simon@josefsson.org>
18290 * tests/test-getaddrinfo.c: Don't print debug messages by default.
18291 Suggested by Bruno Haible <bruno@clisp.org>.
18293 2008-05-30 Simon Josefsson <simon@josefsson.org>
18295 * tests/test-base64.c: Cast size_t to unsigned long when invoking
18296 printf. Use %lu instead of %d. Reported by Bruno Haible
18299 2008-05-29 Eric Blake <ebb9@byu.net>
18301 Prefer new POSIX 200x interfaces over futimesat.
18302 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
18303 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
18305 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
18307 2008-05-28 Bruno Haible <bruno@clisp.org>
18309 * modules/stpcpy (License): Change to LGPLv2+.
18310 Requested by David Lutterkort <dlutter@redhat.com>.
18312 2008-05-27 Bruno Haible <bruno@clisp.org>
18314 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
18316 Reported by Jose E. Marchesi <jemarch@gnu.org>.
18318 2008-05-27 Bruno Haible <bruno@clisp.org>
18320 * modules/iconv_open (Link): New section, from module 'iconv'.
18321 * modules/striconv (Link): Likewise.
18322 * modules/striconveh (Link): Likewise.
18323 * modules/xstriconv (Link): Likewise.
18324 * modules/unicodeio (Link): Likewise.
18325 * modules/propername (Link): Likewise.
18326 Reported by Jim Meyering.
18328 2008-05-26 Jim Meyering <meyering@redhat.com>
18330 sha256: do not artificially restrict buffer length to be < 2^32
18331 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
18332 uint32_t to size_t.
18333 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
18336 avoid unaligned access errors, e.g., on sparc
18337 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
18338 direct access through a possibly-unaligned uint64* pointer.
18339 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
18340 direct access through a possibly-unaligned uint32* pointer.
18341 Prompted by this patch from Tom "spot" Callaway:
18342 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
18344 sha512.c: fix typo in comment
18345 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
18347 2008-05-25 Bruno Haible <bruno@clisp.org>
18349 * lib/set-mode-acl.c: Renamed from lib/acl.c.
18350 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
18351 (Makefile.am): Update lib_SOURCES.
18353 2008-05-25 Bruno Haible <bruno@clisp.org>
18355 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
18357 2008-05-25 Jim Meyering <meyering@redhat.com>
18359 useless-if-before-free: freed expr may have white-space differences
18360 * build-aux/useless-if-before-free: Recognize cases in which the
18361 freed expression differs from the tested one in embedded white
18362 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
18363 $1 was used, so we can't make any regexp shy. Improved tests now
18366 useless-if-before-free: accept white space in the expression.
18367 * build-aux/useless-if-before-free: For now, any white space
18368 in the expression must be identical in the free argument.
18370 useless-if-before-free: efficiency tweak
18371 * build-aux/useless-if-before-free: Make the expression-matching
18373 Make the *outer* regexp shy, not the expr-matching one.
18375 update code-in-comment to accept cast of free arg
18376 * build-aux/useless-if-before-free: Update regexp.
18378 2008-05-25 Bruno Haible <bruno@clisp.org>
18380 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
18381 * modules/copy-file-tests (Files, Makefile.am): Update.
18382 * tests/test-copy-file.c (func_test_copy): Update.
18384 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
18386 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
18388 2008-05-23 Bruno Haible <bruno@clisp.org>
18390 Improve support for ACLs on OSF/1.
18391 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
18392 Remove fallback for unknown flavors of ACLs.
18394 2008-05-22 Bruno Haible <bruno@clisp.org>
18396 Add support for ACLs on OSF/1.
18397 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
18399 (acl_free_text): New macro fallback.
18400 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
18402 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
18403 acl_free_text function. Require AC_C_INLINE.
18405 2008-05-22 Bruno Haible <bruno@clisp.org>
18407 Make copy_acl work on MacOS X 10.5.
18408 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
18409 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
18410 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
18411 If MODE_INSIDE_ACL, don't assume that every system has the same text
18412 representation for ACLs as FreeBSD.
18413 * lib/copy-acl.c (copy_acl): Add support for platforms with
18415 * lib/file-has-acl.c (file_has_acl): Likewise.
18416 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
18417 FreeBSD, MacOS X, or IRIX, respectively.
18419 2008-05-22 Bruno Haible <bruno@clisp.org>
18421 * lib/acl.h: Don't include <sys/acl.h>.
18422 (GETACLCNT): Move fallback to lib/acl-internal.h.
18423 * lib/acl-internal.h: Include <sys/acl.h> here.
18424 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
18426 2008-05-22 Bruno Haible <bruno@clisp.org>
18428 Split off copy_acl function to separate file.
18429 * lib/copy-acl.c: New file, extracted from lib/acl.c.
18430 * lib/acl.c (copy_acl): Moved function to separate file.
18431 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
18432 * modules/acl (Files): Add lib/copy-acl.c.
18433 (Makefiles.am): Augment lib_SOURCES.
18435 2008-05-22 Bruno Haible <bruno@clisp.org>
18437 * modules/copy-file-tests: New file.
18438 * tests/test-copy-file.sh: New file.
18439 * tests/test-copy-file.c: New file.
18440 * tests/test-copy-file-sameacls.c: New file.
18442 2008-05-22 Eric Blake <ebb9@byu.net>
18445 * tests/test-memcmp.c (main): Pass NULL indirectly.
18447 2008-05-21 Bruno Haible <bruno@clisp.org>
18449 Add reference doc about ACLs.
18450 * doc/acl-resources.txt: New file.
18451 * doc/acl-cygwin.txt: New file.
18453 2008-05-21 Bruno Haible <bruno@clisp.org>
18455 Avoid one more warning from gcc.
18456 * lib/vasnprintf.c (IF_LINT): Update comments.
18457 (VASNPRINTF): Use it also for the 'prefix' array initializer.
18459 2008-05-21 Jim Meyering <meyering@redhat.com>
18461 avoid a warning from gcc
18462 * lib/vasnprintf.c (IF_LINT): Define.
18463 (scale10_round_decimal_long_double):
18464 Use it to avoid a "may be used uninitialized" warning.
18465 (scale10_round_decimal_double): Likewise.
18467 2008-05-21 Simon Josefsson <simon@josefsson.org>
18469 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
18472 2008-05-20 Bruno Haible <bruno@clisp.org>
18474 * tests/test-memcmp.c (main): Test also the sign of the result. Test
18475 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
18477 2008-05-20 Simon Josefsson <simon@josefsson.org>
18479 * modules/memcmp-tests: New file.
18480 * tests/test-memcmp.c: New file.
18482 2008-05-19 Bruno Haible <bruno@clisp.org>
18484 * modules/propername (Notice, configure.ac): Put quoted "..." into
18486 * lib/propername.h: Update comments accordingly.
18487 Reported by Eric Blake.
18489 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
18491 * modules/getpass-gnu (Depends-on): Add fseeko.
18493 2008-05-19 Simon Josefsson <simon@josefsson.org>
18495 * modules/base64-tests: New file.
18497 2008-05-19 Bo Borgerson <gigabo@gmail.com>
18499 * lib/base64.c (base64_decode_ctx): If a decode context structure
18500 was passed in use it to ignore newlines. If a context structure
18501 was _not_ passed in, continue to treat newlines as garbage (this
18502 is the historical behavior). Formerly base64_decode.
18503 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
18504 takes a decode context structure.
18505 * lib/base64.h (base64_decode): Macro for four-argument calls.
18506 (base64_decode_alloc): Likewise.
18507 * lib/base64.c (base64_decode_ctx): If a decode context structure
18508 was passed in use it to ignore newlines. If a context structure
18509 was _not_ passed in, continue to treat newlines as garbage (this
18510 is the historical behavior). Formerly base64_decode.
18511 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
18512 takes a decode context structure.
18513 * lib/base64.h (base64_decode): Macro for four-argument calls.
18514 (base64_decode_alloc): Likewise.
18516 2008-05-19 Jim Meyering <meyering@redhat.com>
18518 avoid a warning from gcc
18519 * lib/trim.c (IF_LINT): Define.
18520 (trim2): Use it to avoid a "may be used uninitialized" warning.
18523 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
18525 2008-05-19 Bruno Haible <bruno@clisp.org>
18527 * doc/glibc-functions/getpass.texi: Document limits of other
18530 2008-05-19 Simon Josefsson <simon@josefsson.org>
18531 Bruno Haible <bruno@clisp.org>
18533 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
18535 2008-05-18 Bruno Haible <bruno@clisp.org>
18537 * modules/propername: New file, from GNU gettext.
18538 * lib/propername.h: New file, from GNU gettext.
18539 * lib/propername.c: New file, from GNU gettext.
18540 * MODULES.html.sh (Internationalization functions): Add propername.
18542 2008-05-16 Jim Meyering <meyering@redhat.com>
18543 Bruno Haible <bruno@clisp.org>
18545 Avoid some warnings from "gcc -Wshadow".
18546 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
18548 2008-05-15 Eric Blake <ebb9@byu.net>
18550 Extend previous patch to cygwin 1.7.0.
18551 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
18552 fast implementation in cygwin >= 1.7.0.
18553 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18554 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18556 2008-05-15 Bruno Haible <bruno@clisp.org>
18558 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
18559 implementation in glibc >= 2.9.
18560 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
18561 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18563 2008-05-15 Bruno Haible <bruno@clisp.org>
18565 * MODULES.html.sh (Internationalization functions): Remove linebreak.
18566 (Unicode string functions): Add unilbrk/*.
18567 Reported by Karl Berry.
18569 2008-05-15 Eric Blake <ebb9@byu.net>
18571 Fix violation of <stdbool.h> replacement in regex.
18572 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
18573 * lib/regexec.c (re_search_internal): Likewise.
18574 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
18576 2008-05-15 Jim Meyering <meyering@redhat.com>
18578 avoid distracting test output when git or cvs is not found
18579 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
18580 * tests/test-vc-list-files-git.sh: Likewise.
18582 2008-05-15 Eric Blake <ebb9@byu.net>
18584 Glibc finally accepted the memmem speedup code, bugzilla #5514.
18585 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
18587 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18588 * doc/posix-functions/strstr.texi (strstr): Likewise.
18589 * lib/str-two-way.h (MAX): Sychronize with glibc.
18591 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
18593 * lib/regcomp.c (optimize_utf8): Add a note on why we test
18595 (calc_first): Initialize constraint field.
18596 (duplicate_node_closure): Use it instead of special casing ANCHORS.
18598 (duplicate_node): Merge constraint field for all node types.
18599 (calc_eclosure_iter): Look at constraint field for all node types.
18600 * lib/regex_internal.c (create_cd_newstate): Don't look at
18603 2008-05-14 Bruno Haible <bruno@clisp.org>
18605 Help GCC to do better code generation.
18606 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
18607 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
18608 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
18609 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
18610 Declare with attribute 'malloc' if supported.
18612 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
18614 use "echo STR|wc -c" rather than unportable "expr length STR"
18615 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
18616 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
18618 2008-05-14 Jim Meyering <meyering@redhat.com>
18620 use dd ibs=$n count=1 ... rather than less-portable head -c$n
18621 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
18622 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
18623 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
18626 2008-05-14 Eric Blake <ebb9@byu.net>
18628 Avoid quadratic growth in gl_LIBSOURCES.
18629 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
18630 Suggested by Bruno Haible.
18633 * modules/xmemdup0-tests: New file.
18634 * tests/test-xmemdup0.c: Likewise.
18636 2008-05-13 Eric Blake <ebb9@byu.net>
18638 Split xmemdup0 into its own module.
18639 * modules/xmemdup0: New file.
18640 * lib/xmemdup0.h: Likewise.
18641 * lib/xmemdup0.c: Likewise.
18642 * MODULES.html.sh (Memory management functions): Add xmemdup0.
18643 * lib/xalloc.h (xmemdup0): Remove.
18644 * lib/xmalloc.c (xmemdup0): Likewise.
18646 2008-05-13 Eric Blake <ebb9@byu.net>
18647 Bruno Haible <bruno@clisp.org>
18649 Reduce number of forks required during autoconf.
18650 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
18651 and gl_LIBSOURCES_DIR.
18652 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
18653 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
18654 m4_syscmd per file.
18655 <m4_foreach_w>: Move...
18656 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
18658 2008-05-13 Eric Blake <ebb9@byu.net>
18660 * gnulib-tool: Fix various comment typos.
18662 2008-05-12 Bruno Haible <bruno@clisp.org>
18664 Tailor the linebreaking algorithm.
18665 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
18667 2008-05-12 Bruno Haible <bruno@clisp.org>
18669 Update to Unicode 5.0.0.
18670 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18671 LBP_JV, LBP_JT. Redistribute values.
18672 (unilbrk_table): Change size.
18673 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
18674 Unicode TR#14 rev. 22.
18675 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
18676 LBP_JV, LBP_JT. Redistribute values.
18677 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
18678 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
18680 * lib/unilbrk/lbrkprop1.h: Regenerated.
18681 * lib/unilbrk/lbrkprop2.h: Regenerated.
18682 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
18683 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
18684 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
18686 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
18688 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
18690 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18691 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18692 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18693 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
18694 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
18695 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
18697 2008-05-11 Bruno Haible <bruno@clisp.org>
18699 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
18701 2008-05-11 Bruno Haible <bruno@clisp.org>
18703 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
18704 * modules/unilbrk/gen-lbrk: New file.
18706 2008-05-11 Bruno Haible <bruno@clisp.org>
18708 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
18709 * m4/sha512.m4 (gl_SHA512): Likewise.
18711 2008-05-11 Jim Meyering <meyering@redhat.com>
18713 New modules: crypto/sha256, crypto/sha512 (from coreutils)
18714 * modules/crypto/sha256: New file.
18715 * modules/crypto/sha512: Likewise.
18716 * lib/sha256.c: Likewise.
18717 * lib/sha256.h: Likewise.
18718 * lib/sha512.c: Likewise.
18719 * lib/sha512.h: Likewise.
18720 * lib/u64.h: Likewise.
18721 * m4/sha256.m4: Likewise.
18722 * m4/sha512.m4: Likewise.
18723 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
18725 2008-05-10 Bruno Haible <bruno@clisp.org>
18727 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
18728 (Input/Output <stdio.h>): Add xprintf.
18729 (Signal handling <signal.h>): Add strsignal.
18730 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
18731 (Core language properties): Add func.
18732 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
18733 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
18735 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
18736 (Input/output): New section.
18737 (File system functions): Add openat-die, stat-macros.
18738 (Networking functions): Add sockets.
18739 (Unicode string functions): Add unictype/*.
18740 (Support for building libraries and executables): Add gperf.
18741 (Support for building documentation): Add agpl-3.0.
18742 (Misc): Add nocrash.
18744 2008-05-10 Bruno Haible <bruno@clisp.org>
18746 * modules/unictype/gen-ctype: New file.
18748 2008-05-10 Jim Meyering <meyering@redhat.com>
18750 Make chdir-safer.c more efficient on a system with no symlinks.
18751 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
18752 also if ELOOP is zero. Suggested by Bruno Haible.
18754 Make chdir-safer.c slightly safer.
18755 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
18756 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
18758 Avoid compile failure on systems without ELOOP (like mingw).
18759 * lib/chdir-safer.c (ELOOP): Define if not already defined.
18760 Reported by Bruno Haible.
18762 2008-05-10 Bruno Haible <bruno@clisp.org>
18764 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
18765 (is_utf8_encoding): Use a case-insensitive comparison.
18766 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
18769 2008-05-10 Bruno Haible <bruno@clisp.org>
18771 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
18772 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
18773 * lib/unilbrk/ulc-common.h (iconv_string_length,
18774 iconv_string_keeping_offsets): Remove declarations.
18775 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
18776 Don't include <iconv.h>, streq.h, xsize.h.
18777 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
18779 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
18780 <iconv.h>, streq.h, xsize.h.
18781 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
18783 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
18784 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
18785 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
18786 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
18788 2008-05-10 Bruno Haible <bruno@clisp.org>
18790 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
18791 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
18793 * modules/unilbrk/u32-width-linebreaks-tests: New file.
18794 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
18796 * modules/unilbrk/u16-width-linebreaks-tests: New file.
18797 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
18799 * modules/unilbrk/u8-width-linebreaks-tests: New file.
18800 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
18802 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
18803 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
18805 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
18806 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
18808 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
18809 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
18811 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
18812 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
18814 2008-05-10 Bruno Haible <bruno@clisp.org>
18816 Split up 'linebreak' module.
18817 * lib/unilbrk.h: New file, based on lib/linebreak.h.
18818 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
18819 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
18821 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
18822 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
18823 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
18825 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
18827 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
18829 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
18830 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
18831 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
18833 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
18835 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
18837 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
18839 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
18841 * modules/unilbrk/base: New file.
18842 * modules/unilbrk/tables: New file.
18843 * modules/unilbrk/u8-possible-linebreaks: New file.
18844 * modules/unilbrk/u16-possible-linebreaks: New file.
18845 * modules/unilbrk/u32-possible-linebreaks: New file.
18846 * modules/unilbrk/ulc-common: New file.
18847 * modules/unilbrk/ulc-possible-linebreaks: New file.
18848 * modules/unilbrk/u8-width-linebreaks: New file.
18849 * modules/unilbrk/u16-width-linebreaks: New file.
18850 * modules/unilbrk/u32-width-linebreaks: New file.
18851 * modules/unilbrk/ulc-width-linebreaks: New file.
18852 * lib/linebreak.h: Remove file.
18853 * lib/linebreak.c: Remove file.
18854 * m4/linebreak.m4: Remove file.
18855 * modules/linebreak: Remove file.
18856 * NEWS: Mention the changes.
18858 2008-05-09 Eric Blake <ebb9@byu.net>
18861 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
18863 * lib/xmalloc.c (xmemdup0): New C implementation.
18865 2008-05-08 Bruno Haible <bruno@clisp.org>
18867 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
18869 2008-05-07 Eric Blake <ebb9@byu.net>
18871 Support cross-compilation of <wctype.h>.
18872 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
18875 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
18877 * build-aux/vc-list-files: Add support for bzr.
18879 2008-05-03 Jim Meyering <meyering@redhat.com>
18881 avoid failed assertion with tight malloc
18882 * tests/test-getndelim2.c: Correct an off-by-one assertion.
18884 2008-05-03 Simon Josefsson <simon@josefsson.org>
18886 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
18887 are needed from arpa/inet.h.
18888 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
18889 Reported by Bruno Haible.
18891 2008-05-02 Jim Meyering <meyering@redhat.com>
18893 avoid compilation error on FreeBSD 6
18894 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
18896 2008-05-01 Jim Meyering <meyering@redhat.com>
18898 useless-if-before-free: correct --help's exit status description
18899 * build-aux/useless-if-before-free (usage): Like grep, exit 0
18900 for one or more matches, etc. Reported by Bruno Haible.
18902 vc-list-files: make the stand-alone gnulib test work
18903 * modules/vc-list-files-tests (configure.ac):
18904 Define and AC_SUBST abs_aux_dir.
18905 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
18906 $(abs_top_srcdir) to each script and having each of them
18907 duplicate the work of setting PATH, set PATH here, using
18908 the new variable, abs_aux_dir instead.
18909 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
18910 * tests/test-vc-list-files-git.sh: Likewise.
18911 Reported by Bruno Haible.
18913 2008-05-01 Bruno Haible <bruno@clisp.org>
18915 * lib/getndelim2.c (getndelim2): Fix newsize computation during
18916 reallocation. Rename 'done' to 'found_delimiter'.
18918 2008-05-01 Jim Meyering <meyering@redhat.com>
18920 vc-list-files: accommodate /bin/sh like the one from Solaris 10
18921 * build-aux/vc-list-files: Use `...`, not $(...).
18923 2008-04-30 Jim Meyering <meyering@redhat.com>
18925 add tests for vc-list-files
18926 * modules/vc-list-files-tests: New module.
18927 * tests/test-vc-list-files-cvs.sh: New file.
18928 * tests/test-vc-list-files-git.sh: New file.
18930 avoid a warning from gcc
18931 * lib/getndelim2.c (IF_LINT): Define.
18932 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
18934 vc-list-files: work properly with build-aux/cvsu, too
18935 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
18936 to all cvs-based clauses.
18938 vc-list-files: work properly in the CVS+awk case, too
18939 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
18941 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
18942 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
18943 take more than one file argument, so . Add quotes, just in case $dir
18944 ever contains a shell meta-character. Prompted by Soren Hansen in
18945 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
18947 2008-04-29 Eric Blake <ebb9@byu.net>
18949 Optimize getndelim2 to use block operations when possible.
18950 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
18951 freadseek, and memchr2.
18952 * lib/getndelim2.c (getndelim2): Use them for block reads.
18954 2008-04-29 Bruno Haible <bruno@clisp.org>
18956 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
18957 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
18958 * modules/inet_ntop (Depends-on): Add extensions.
18959 * modules/inet_pton (Depends-on): Likewise.
18960 Reported by Simon Josefsson.
18962 2008-04-29 Jim Meyering <meyering@redhat.com>
18964 When the is more than one match in a block, match all of them.
18965 * build-aux/useless-if-before-free: Iterate through each block
18966 until there are no more matches.
18968 Fix broken useless-if-before-free script.
18969 * build-aux/useless-if-before-free: Fix typo: missing "?" after
18970 the expression to match cast of argument to free-like function.
18972 2008-04-29 Eric Blake <ebb9@byu.net>
18975 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
18977 2008-04-29 Jim Meyering <meyering@redhat.com>
18979 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
18980 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
18981 by gnulib to exist and to declare e.g., inet_ntop.
18982 Don't include "inet_ntop.h", now removed.
18984 * m4/arpa_inet_h.m4: Remove trailing blanks.
18986 2008-04-29 Eric Blake <ebb9@byu.net>
18988 Silence valgrind on safe reads beyond potential array bounds.
18989 * lib/rawmemchr.valgrind: New file.
18990 * lib/strchrnul.valgrind: Likewise.
18991 * modules/rawmemchr (Files): Distribute new file.
18992 * modules/strchrnul (Files): Likewise.
18993 Suggested by Bruno Haible.
18995 2008-04-29 Bruno Haible <bruno@clisp.org>
18997 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
18998 (inet_ntop, inet_pton): Change portability warning's wording.
18999 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
19000 Invoke gl_CHECK_NEXT_HEADERS.
19001 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
19002 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
19004 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19005 * modules/arpa_inet (Description): No longer only for systems that
19007 (Depends-on): Add include_next.
19008 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
19011 2008-04-29 Jim Meyering <meyering@redhat.com>
19013 * modules/mkdir (License): Re-license as LGPLv2+.
19015 2008-04-29 Bruno Haible <bruno@clisp.org>
19017 * modules/rawmemchr (Maintainer): Set to Eric.
19018 * modules/strchrnul (Maintainer): Likewise.
19020 2008-04-29 Simon Josefsson <simon@josefsson.org>
19022 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
19023 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
19025 * modules/arpa_inet (arpa/inet.h): Use them.
19027 2008-04-28 Eric Blake <ebb9@byu.net>
19030 * modules/getndelim2-tests: New file.
19031 * tests/test-getndelim2.c: Likewise.
19032 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
19034 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
19036 * MODULES.html.sh: Document new module.
19038 2008-04-20 Bruno Haible <bruno@clisp.org>
19040 * lib/c-stack.c (die): Use raise.
19041 * modules/c-stack (Depends-on): Add raise.
19043 2008-04-28 Bruno Haible <bruno@clisp.org>
19045 Expect rpmatch to be declared.
19046 * lib/yesno.c (rpmatch): Remove declaration.
19049 * lib/stdlib.in.h (rpmatch): New declaration.
19050 * lib/rpmatch.c: Include <stdlib.h> first.
19051 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
19052 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
19053 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
19055 * modules/rpmatch (Depends-on): Add stdlib, extensions.
19056 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19057 (Include): Set to <stdlib.h>.
19058 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
19060 * NEWS: Document the change.
19062 2008-04-28 Bruno Haible <bruno@clisp.org>
19064 Change rpmatch to use nl_langinfo when appropriate.
19065 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
19067 (localized_pattern): New function/macro.
19068 (try): Remove match, nomatch arguments. Copy the pattern into safe
19069 memory before caching it.
19070 (rpmatch): Use localized_pattern. Add translator comments.
19071 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
19072 Suggested by Eric Blake.
19073 * modules/rpmatch (Depends-on): Add stdbool.
19075 2008-04-28 Eric Blake <ebb9@byu.net>
19077 Add rawmemchr module, matching glibc.
19078 * modules/string (Makefile.am): New indicator.
19079 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
19080 * lib/string.in.h (rawmemchr): Declare when appropriate.
19081 * modules/rawmemchr: New file.
19082 * m4/rawmemchr.m4: Likewise.
19083 * lib/rawmemchr.c: Likewise.
19084 * modules/rawmemchr-tests: Likewise.
19085 * tests/test-rawmemchr.c: Likewise.
19086 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
19088 * modules/strchrnul (Depends-on): Add rawmemchr.
19089 * lib/strchrnul.c (strchrnul): Optimize a corner case.
19091 Whitespace cleanup.
19092 * tests/test-strchrnul.c: Reindent.
19093 * lib/strchrnul.c: Likewise.
19095 Optimize and test strchrnul.
19096 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
19097 * modules/strchrnul-tests: New file.
19098 * tests/test-strchrnul.c: Likewise.
19100 Remove intprops dependency.
19101 * modules/memchr (Depends-on): Remove intprops.
19102 * modules/memrchr (Depends-on): Likewise.
19103 * modules/memchr2 (Depends-on): Likewise.
19104 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
19105 * lib/memrchr.c (__memrchr): Likewise.
19106 * lib/memrchr2.c (memchr2): Likewise.
19107 Reported by Simon Josefsson.
19109 2008-04-28 Simon Josefsson <simon@josefsson.org>
19111 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
19112 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19114 2008-04-28 Simon Josefsson <simon@josefsson.org>
19116 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
19118 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
19120 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
19122 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
19124 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
19126 * m4/inet_pton.m4: Don't check for header files.
19128 * m4/inet_ntop.m4: Don't check for header files.
19130 2008-04-28 Simon Josefsson <simon@josefsson.org>
19132 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
19133 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
19134 trigger for cygwin).
19135 Reported by Bruno Haible <bruno@clisp.org>.
19137 2008-04-28 Bruno Haible <bruno@clisp.org>
19139 * doc/posix-functions/strdup.texi: Mention mingw problem.
19141 2008-04-27 Bruno Haible <bruno@clisp.org>
19143 * modules/stat-time-tests (Depends-on): Add sleep.
19144 * tests/test-stat-time.c (force_unlink): New function.
19146 (test_mtime): Remove the ctime related tests.
19147 (test_ctime): New function, containing the ctime related tests.
19148 (main): Call test_ctime, except on native Windows platforms.
19150 2008-04-27 Bruno Haible <bruno@clisp.org>
19152 * lib/rpmatch.c (rpmatch): Add some comments.
19153 Reported by James Youngman <jay@gnu.org>.
19155 2008-04-27 Bruno Haible <bruno@clisp.org>
19157 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
19160 2008-04-27 Bruno Haible <bruno@clisp.org>
19162 Make test-yesno.sh work on mingw.
19163 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
19164 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
19165 (main): Set stdin to binary mode.
19166 * modules/yesno-tests (Depends-on): Add binary-io.
19168 2008-04-27 Bruno Haible <bruno@clisp.org>
19170 Fix 'isfinite' on x86, x86_64, ia64 platforms.
19171 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
19172 argument that lie outside the IEEE 854 domain.
19173 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
19174 (gl_ISFINITE): Use it.
19175 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
19177 2008-04-27 Bruno Haible <bruno@clisp.org>
19179 Allow local renaming in config.h.
19180 * lib/memrchr.c (memrchr): Don't undefine outside libc.
19182 2008-04-27 Bruno Haible <bruno@clisp.org>
19184 * lib/memchr.c (__memchr): Change type of 'i'.
19185 * lib/memchr2.c (memchr2): Likewise.
19187 2008-04-26 Eric Blake <ebb9@byu.net>
19188 and Bruno Haible <bruno@clisp.org>
19190 Optimize and test memrchr.
19191 * modules/memrchr (Depends-on): Add intprops.
19192 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
19193 * modules/memrchr-tests: New file.
19194 * tests/test-memrchr.c: New file.
19196 2008-04-26 Bruno Haible <bruno@clisp.org>
19198 Add tentative support for DragonFly BSD.
19199 * lib/stdio-impl.h: Add macros for DragonFly BSD.
19200 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
19202 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
19203 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
19204 * lib/fpurge.c (fpurge): Likewise.
19205 * lib/freadable.c (freaadable): Likewise.
19206 * lib/freadahead.c (freadahead): Likewise.
19207 * lib/freading.c (freading): Likewise.
19208 * lib/freadptr.c (freadptr): Likewise.
19209 * lib/freadseek.c (freadptrinc): Likewise.
19210 * lib/fseeko.c (fseeko): Likewise.
19211 * lib/fseterr.c (fseterr): Likewise.
19212 * lib/fwritable.c (fwritable): Likewise.
19213 * lib/fwriting.c (fwriting): Likewise.
19215 2008-04-26 Bruno Haible <bruno@clisp.org>
19217 * lib/stdio-impl.h: New file.
19218 * lib/fbufmode.c: Include stdio-impl.h.
19219 (fbufmode): Use fp_, remove redundant #defines.
19220 * lib/fflush.c: Include stdio-impl.h.
19221 (clear_ungetc_buffer): Remove redundant #defines.
19222 * lib/fpurge.c: Include stdio-impl.h.
19223 (fpurge): Remove redundant #defines.
19224 * lib/freadable.c: Include stdio-impl.h.
19225 (freadable): Remove redundant #defines.
19226 * lib/freadahead.c: Include stdio-impl.h.
19227 (freadahead): Remove redundant #defines.
19228 * lib/freading.c: Include stdio-impl.h.
19229 (freading): Remove redundant #defines.
19230 * lib/freadptr.c: Include stdio-impl.h.
19231 (freadptr): Remove redundant #defines.
19232 * lib/freadseek.c: Include stdio-impl.h.
19233 (freadptrinc): Remove redundant #defines.
19234 * lib/fseeko.c: Include stdio-impl.h.
19235 (rpl_fseeko): Remove redundant #defines.
19236 * lib/fseterr.c: Include stdio-impl.h.
19237 (fseterr): Remove redundant #defines.
19238 * lib/fwritable.c: Include stdio-impl.h.
19239 (fwritable: Remove redundant #defines.
19240 * lib/fwriting.c: Include stdio-impl.h.
19241 (fwriting): Remove redundant #defines.
19242 * modules/fbufmode (Files): Add lib/stdio-impl.h.
19243 * modules/fflush (Files): Likewise.
19244 * modules/fpurge (Files): Likewise.
19245 * modules/freadable (Files): Likewise.
19246 * modules/freadahead (Files): Likewise.
19247 * modules/freading (Files): Likewise.
19248 * modules/freadptr (Files): Likewise.
19249 * modules/freadseek (Files): Likewise.
19250 * modules/fseeko (Files): Likewise.
19251 * modules/fseterr (Files): Likewise.
19252 * modules/fwritable (Files): Likewise.
19253 * modules/fwriting (Files): Likewise.
19255 2008-04-26 Bruno Haible <bruno@clisp.org>
19257 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
19258 restore_seek_optimization, update_fpos_cache): New functions, extracted
19260 (rpl_fflush): Use them.
19261 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
19262 (gl_REPLACE_FFLUSH): Use it.
19264 2008-04-26 Bruno Haible <bruno@clisp.org>
19266 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
19268 * tests/test-xstrtoimax.sh: Likewise.
19269 * tests/test-xstrtoumax.sh: Likewise.
19270 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19272 2008-04-26 Bruno Haible <bruno@clisp.org>
19274 * modules/memchr-tests: New file.
19275 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
19277 2008-04-26 Eric Blake <ebb9@byu.net>
19278 Bruno Haible <bruno@clisp.org>
19280 * lib/memchr.c: Include intprops.h.
19281 (__memchr): Optimize parallel detection of matching bytes. Rename local
19282 variables. Add explanatory comments.
19284 2008-04-26 Bruno Haible <bruno@clisp.org>
19286 Fix module 'memchr', broken since 2000-10-28.
19287 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
19289 2008-04-26 Bruno Haible <bruno@clisp.org>
19291 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
19294 2008-04-25 Eric Blake <ebb9@byu.net>
19296 Use native fstatat on cygwin 1.7.0.
19297 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
19300 2008-04-23 Eric Blake <ebb9@byu.net>
19302 Improve memchr2 performance.
19303 * lib/memchr2.c (memchr2): Further optimize parallel detection of
19305 * modules/memchr2 (Depends-on): Use intprops.h.
19307 2008-04-23 Simon Josefsson <simon@josefsson.org>
19309 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
19310 an inline function instead of a CPP macro. Patch by Ben Pfaff
19311 <blp@cs.stanford.edu>.
19313 2008-04-23 Simon Josefsson <simon@josefsson.org>
19315 * lib/arpa_inet.in.h: New file.
19317 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
19318 (Makefile.am): Sed in substitute header file.
19320 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
19321 gl_ARPA_INET_MODULE_INDICATOR. Use them.
19323 * modules/inet_ntop (configure.ac): Use
19324 gl_ARPA_INET_MODULE_INDICATOR.
19326 * modules/inet_pton (configure.ac): Use
19327 gl_ARPA_INET_MODULE_INDICATOR.
19329 2008-04-22 Jim Meyering <meyering@redhat.com>
19331 * modules/verify (License): Re-license as LGPLv2+.
19333 2008-04-22 Simon Josefsson <simon@josefsson.org>
19335 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
19336 parameter to void* as per POSIX standard (MinGW uses char*).
19338 2008-04-21 Bruno Haible <bruno@clisp.org>
19340 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19341 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
19342 Define to replacements if REPLACE_ISWCNTRL is 1.
19343 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
19344 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
19345 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
19346 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
19348 * doc/posix-functions/iswalpha.texi: Likewise.
19349 * doc/posix-functions/iswblank.texi: Likewise.
19350 * doc/posix-functions/iswcntrl.texi: Likewise.
19351 * doc/posix-functions/iswdigit.texi: Likewise.
19352 * doc/posix-functions/iswgraph.texi: Likewise.
19353 * doc/posix-functions/iswlower.texi: Likewise.
19354 * doc/posix-functions/iswprint.texi: Likewise.
19355 * doc/posix-functions/iswpunct.texi: Likewise.
19356 * doc/posix-functions/iswspace.texi: Likewise.
19357 * doc/posix-functions/iswupper.texi: Likewise.
19358 * doc/posix-functions/iswxdigit.texi: Likewise.
19359 Reported by Alain Guibert.
19361 2008-04-21 Bruno Haible <bruno@clisp.org>
19363 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
19364 Patch by Alain Guibert.
19366 2008-04-21 Bruno Haible <bruno@clisp.org>
19368 Fix test failures on mingw.
19369 * tests/test-xstrtol.c (print_no_progname): New function.
19370 (main): Install it in error_print_progname hook.
19371 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
19372 * tests/test-xstrtoimax.sh: Likewise.
19373 * tests/test-xstrtoumax.sh: Likewise.
19375 2008-04-21 Bruno Haible <bruno@clisp.org>
19377 Fix test failure on mingw.
19378 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
19380 2008-04-21 Bruno Haible <bruno@clisp.org>
19382 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
19383 Actually assign a value.
19385 2008-04-20 Bruno Haible <bruno@clisp.org>
19387 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
19389 * lib/canonicalize.c (canonicalize_file_name): Elide if the
19390 'canonicalize-lgpl' module is also used.
19391 * lib/canonicalize-lgpl.c: Undo last change.
19392 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
19394 2008-04-20 Bruno Haible <bruno@clisp.org>
19396 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
19397 config.h. Provide _mkdir based fallback for mingw.
19398 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
19399 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
19400 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
19401 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
19402 rather than defining mkdir in config.h.
19403 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
19404 (gl_SYS_STAT_H_DEFAULTS): New macro.
19405 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
19406 HAVE_IO_H any more.
19407 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
19408 HAVE_DECL_MKDIR and HAVE_IO_H.
19410 2008-04-20 Bruno Haible <bruno@clisp.org>
19412 * lib/isapipe.c: Port to native Windows platforms.
19414 2008-04-20 Bruno Haible <bruno@clisp.org>
19416 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
19418 2008-04-21 Eric Blake <ebb9@byu.net>
19420 Work around preprocessors that don't handle UINTMAX_MAX.
19421 * lib/memchr2.c (memchr2): Avoid embedded #if.
19422 Reported by Alain Guibert, fix suggested by Bruno Haible.
19424 2008-04-21 Simon Josefsson <simon@josefsson.org>
19426 * doc/posix-functions/strftime.texi (strftime): Explain better
19427 Windows incompatibility. Suggested by Micah Cowan
19428 <micah@cowan.name>.
19430 2008-04-20 Bruno Haible <bruno@clisp.org>
19432 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
19435 2008-04-20 Bruno Haible <bruno@clisp.org>
19437 Fix test failure on platforms with non-GNU iconv.
19438 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
19439 (U_TO_U8): Use it, rather than u16_to_u8.
19440 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
19441 units at the end of the input string.
19442 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
19444 2008-04-20 Bruno Haible <bruno@clisp.org>
19446 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
19447 when the resulting length is 0.
19448 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
19450 2008-04-20 Bruno Haible <bruno@clisp.org>
19452 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
19454 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
19456 2008-04-20 Bruno Haible <bruno@clisp.org>
19458 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
19459 * modules/tsearch-tests (configure.ac): Test for initstate function.
19461 2008-04-20 Bruno Haible <bruno@clisp.org>
19463 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
19464 for nlink_t if missing.
19465 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
19467 2008-04-19 Bruno Haible <bruno@clisp.org>
19469 Work around snprintf bug on Linux libc5.
19470 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
19471 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
19473 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19474 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
19476 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
19477 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
19478 * modules/snprintf (Files): Add m4/printf.m4.
19479 * modules/vsnprintf (Files): Likewise.
19480 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
19481 * doc/posix-functions/vsnprintf.texi: Likewise.
19483 2008-04-19 Bruno Haible <bruno@clisp.org>
19485 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
19486 from 0.0058 to less than 10^-7.
19488 2008-04-19 Bruno Haible <bruno@clisp.org>
19490 Fix rounding when a precision is given.
19491 * lib/vasnprintf.c (is_borderline): New function.
19492 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
19494 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
19496 * tests/test-vasprintf-posix.c (test_function): Likewise.
19497 * tests/test-snprintf-posix.h (test_function): Likewise.
19498 * tests/test-sprintf-posix.h (test_function): Likewise.
19499 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
19500 * tests/test-printf-posix.h (test_function): Likewise.
19501 * tests/test-printf-posix.output: Update.
19502 Reported by John Darrington <john@darrington.wattle.id.au> via
19503 Ben Pfaff <blp@cs.stanford.edu>.
19505 2008-04-18 Simon Josefsson <simon@josefsson.org>
19507 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
19508 Suggested by Bruno Haible <bruno@clisp.org>.
19510 2008-04-17 Bruno Haible <bruno@clisp.org>
19512 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
19513 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
19515 Patch by Bruce Merry <bmerry@gmail.com>.
19517 2008-04-17 Simon Josefsson <simon@josefsson.org>
19519 * doc/posix-functions/strftime.texi (strftime): Mention that %e
19520 doesn't work under Windows.
19522 2008-04-16 Bruno Haible <bruno@clisp.org>
19524 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
19526 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
19527 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
19528 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
19529 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
19530 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
19531 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
19532 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
19534 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
19535 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
19536 Northern Sotho, Uighur.
19538 2008-04-16 Bruno Haible <bruno@clisp.org>
19540 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
19541 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
19542 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
19543 Reported by Daniel Bergström <daniel@octocode.com>.
19545 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
19546 Bruno Haible <bruno@clisp.org>
19548 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
19550 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
19551 New functions, mostly extracted from gl_locale_name_default.
19552 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
19554 2008-04-16 Eric Blake <ebb9@byu.net>
19556 Adjust strtod detection to catch glibc 2.7 bug.
19557 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
19558 Reported by John Gatewood Ham.
19560 2008-04-16 Bruno Haible <bruno@clisp.org>
19562 Add tentative support for Linux libc5.
19563 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
19564 * lib/fpurge.c (fpurge): Likewise.
19565 * lib/freadable.c (freadable): Likewise.
19566 * lib/freadahead.c (freadahead): Likewise.
19567 * lib/freading.c (freading): Likewise.
19568 * lib/freadptr.c (freadptr): Likewise.
19569 * lib/freadseek.c (freadptrinc): Likewise.
19570 * lib/fseeko.c (rpl_fseeko): Likewise.
19571 * lib/fseterr.c (fseterr): Likewise.
19572 * lib/fwritable.c (fwritable): Likewise.
19573 * lib/fwriting.c (fwriting): Likewise.
19574 Reported by Alain Guibert <alguibert+bts@free.fr>.
19576 2008-04-15 Bruno Haible <bruno@clisp.org>
19578 * modules/mathl (configure.ac): Define module indicator.
19580 2008-04-15 Bruno Haible <bruno@clisp.org>
19582 * lib/logl.c (logl): Remove unused variables.
19584 2008-04-15 Bruno Haible <bruno@clisp.org>
19586 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
19589 2008-04-15 Bruno Haible <bruno@clisp.org>
19591 * lib/trim.c (trim2): Fix argument of isspace() macro.
19593 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
19595 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
19597 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
19599 2008-04-14 Bruno Haible <bruno@clisp.org>
19601 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
19602 AC_LANG_PROGRAM argument.
19603 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
19604 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
19605 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
19606 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
19607 * m4/math_h.m4 (gl_MATH_H): Likewise.
19608 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19609 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
19610 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
19611 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
19612 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
19613 * m4/regex.m4 (gl_REGEX): Likewise.
19614 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
19615 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
19616 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19617 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
19618 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19619 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19620 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19621 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
19623 2008-04-14 Jim Meyering <meyering@redhat.com>
19625 test-strtod: fix typos: s/abs/fabs/
19626 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
19628 2008-04-13 Bruno Haible <bruno@clisp.org>
19630 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
19631 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
19632 module is also used and while not building the reloc-wrapper.
19634 2008-04-13 Bruno Haible <bruno@clisp.org>
19636 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
19638 2008-04-13 Bruno Haible <bruno@clisp.org>
19640 Fix AIX compilation failure introduced on 2008-04-02.
19641 * tests/test-frexp.c (exp): Undefine before redefining.
19642 * tests/test-frexpl.c (exp): Likewise.
19644 2008-04-13 Bruno Haible <bruno@clisp.org>
19646 Work around a HP-UX stdio bug.
19647 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
19648 * tests/test-ftello.c (main): Likewise.
19649 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
19650 * doc/posix-functions/ftello.texi: Likewise.
19652 2008-04-13 Bruno Haible <bruno@clisp.org>
19654 Make test-signbit pass on HP-UX/hppa.
19655 * tests/test-signbit.c (minus_zerol): New variable.
19656 (test_signbitl): Use it.
19658 2008-04-13 Bruno Haible <bruno@clisp.org>
19660 Make truncl work on OSF/1 4.0.
19661 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
19662 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19663 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
19664 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
19666 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
19668 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
19670 2008-04-13 Bruno Haible <bruno@clisp.org>
19672 * lib/unictype.h: Remove trailing comma from enumeration definitions.
19674 2008-04-13 Bruno Haible <bruno@clisp.org>
19676 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
19677 expression, so as to avoid HP-UX 11 cc compiler bug.
19679 2008-04-13 Bruno Haible <bruno@clisp.org>
19681 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
19683 2008-04-13 Bruno Haible <bruno@clisp.org>
19685 * lib/git-merge-changelog.c: Remove empty declaration outside of
19688 2008-04-13 Bruno Haible <bruno@clisp.org>
19690 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
19692 2008-04-13 Bruno Haible <bruno@clisp.org>
19694 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
19695 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
19696 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
19697 also if it exists but lacks definitions of the SHUT_* macros.
19698 * modules/sys_socket (Description): Update.
19699 Reported by Elbert Pol <e.pol@chello.nl>.
19701 2008-04-13 Bruno Haible <bruno@clisp.org>
19703 * lib/localcharset.c (OS2): Don't redefine if already defined.
19704 Reported by Elbert Pol <e.pol@chello.nl>.
19706 2008-04-13 Bruno Haible <bruno@clisp.org>
19708 * lib/binary-io.h [__EMX__]: Include <io.h>.
19709 Reported by Elbert Pol <e.pol@chello.nl>.
19711 2008-04-12 Bruno Haible <bruno@clisp.org>
19713 * lib/fpucw.h: Enable the definitions also for x86_64.
19714 Needed for NetBSD/x86_64.
19715 Reported by Thomas Klausner <tk@giga.or.at>.
19717 2008-04-12 Bruno Haible <bruno@clisp.org>
19719 * tests/test-strtod.c: Include isnand.h.
19720 (main): Use isnand instead of isnan.
19721 Reported by Jim Meyering.
19723 2008-04-12 Bruno Haible <bruno@clisp.org>
19725 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
19726 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
19728 2008-04-12 Jim Meyering <meyering@redhat.com>
19730 * m4/math_h.m4 (gl_MATH_H): Fix typos.
19732 2008-04-12 Bruno Haible <bruno@clisp.org>
19734 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
19735 Reported by Elbert Pol <e.pol@chello.nl>.
19737 2008-04-12 Eric Blake <ebb9@byu.net>
19739 Work around Solaris 10 math.h bug.
19740 * m4/math_h.m4 (gl_MATH_H): Check for bug.
19741 (gl_MATH_H_DEFAULTS): Set up default.
19742 * modules/math (Makefile.am): Replace new indicators.
19743 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
19744 * tests/test-math.c (main): Test this.
19745 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
19746 * doc/posix-headers/math.texi (math.h): Mention bug.
19747 Reported by Nelson H. F. Beebe and Jim Meyering.
19749 2008-04-11 Bruno Haible <bruno@clisp.org>
19751 Adapt to future versions of Apple GCC.
19752 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
19753 Reported by Peter O'Gorman <peter@pogma.com>.
19755 2008-04-11 Bruno Haible <bruno@clisp.org>
19757 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
19759 2008-04-11 Bruno Haible <bruno@clisp.org>
19761 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
19763 * modules/getaddrinfo-tests (Makefile.am): Define
19764 test_getaddrinfo_LDADD.
19766 2008-04-11 Bruno Haible <bruno@clisp.org>
19768 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
19769 (init): Fix syntax error.
19770 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
19773 2008-04-11 Bruno Haible <bruno@clisp.org>
19775 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
19776 * modules/glob (Depends-on): Add stdbool.
19778 2008-04-11 Bruno Haible <bruno@clisp.org>
19780 * lib/trim.c: Include <string.h>.
19782 2008-04-11 Eric Blake <ebb9@byu.net>
19784 Avoid compile failure on OS/2.
19785 * lib/regex_internal.h (internal_function): Disable optimization
19786 on OS/2 (__EMX__), where it caused compiler error.
19787 Reported by Elbert Pol.
19789 2008-04-11 Bruno Haible <bruno@clisp.org>
19791 Flush the standard error stream before aborting. Needed on mingw.
19792 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
19793 * tests/test-array_list.c (ASSERT): Likewise.
19794 * tests/test-array_oset.c (ASSERT): Likewise.
19795 * tests/test-avltree_list.c (ASSERT): Likewise.
19796 * tests/test-avltree_oset.c (ASSERT): Likewise.
19797 * tests/test-avltreehash_list.c (ASSERT): Likewise.
19798 * tests/test-binary-io.c (ASSERT): Likewise.
19799 * tests/test-byteswap.c (ASSERT): Likewise.
19800 * tests/test-c-ctype.c (ASSERT): Likewise.
19801 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
19802 * tests/test-c-strcasestr.c (ASSERT): Likewise.
19803 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
19804 * tests/test-c-strstr.c (ASSERT): Likewise.
19805 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
19806 * tests/test-canonicalize.c (ASSERT): Likewise.
19807 * tests/test-carray_list.c (ASSERT): Likewise.
19808 * tests/test-ceilf1.c (ASSERT): Likewise.
19809 * tests/test-ceilf2.c (ASSERT): Likewise.
19810 * tests/test-ceill.c (ASSERT): Likewise.
19811 * tests/test-count-one-bits.c (ASSERT): Likewise.
19812 * tests/test-fbufmode.c (ASSERT): Likewise.
19813 * tests/test-fflush2.c (ASSERT): Likewise.
19814 * tests/test-floorf1.c (ASSERT): Likewise.
19815 * tests/test-floorf2.c (ASSERT): Likewise.
19816 * tests/test-floorl.c (ASSERT): Likewise.
19817 * tests/test-fopen.c (ASSERT): Likewise.
19818 * tests/test-fpending.c (ASSERT): Likewise.
19819 * tests/test-fprintf-posix.c (ASSERT): Likewise.
19820 * tests/test-fpurge.c (ASSERT): Likewise.
19821 * tests/test-freadable.c (ASSERT): Likewise.
19822 * tests/test-freadahead.c (ASSERT): Likewise.
19823 * tests/test-freading.c (ASSERT): Likewise.
19824 * tests/test-freadptr.c (ASSERT): Likewise.
19825 * tests/test-freadptr2.c (ASSERT): Likewise.
19826 * tests/test-freadseek.c (ASSERT): Likewise.
19827 * tests/test-freopen.c (ASSERT): Likewise.
19828 * tests/test-frexp.c (ASSERT): Likewise.
19829 * tests/test-frexpl.c (ASSERT): Likewise.
19830 * tests/test-fseek.c (ASSERT): Likewise.
19831 * tests/test-fseeko.c (ASSERT): Likewise.
19832 * tests/test-fstrcmp.c (ASSERT): Likewise.
19833 * tests/test-ftell.c (ASSERT): Likewise.
19834 * tests/test-ftello.c (ASSERT): Likewise.
19835 * tests/test-func.c (ASSERT): Likewise.
19836 * tests/test-fwritable.c (ASSERT): Likewise.
19837 * tests/test-fwriting.c (ASSERT): Likewise.
19838 * tests/test-getdelim.c (ASSERT): Likewise.
19839 * tests/test-getline.c (ASSERT): Likewise.
19840 * tests/test-i-ring.c (ASSERT): Likewise.
19841 * tests/test-iconv-utf.c (ASSERT): Likewise.
19842 * tests/test-iconv.c (ASSERT): Likewise.
19843 * tests/test-isfinite.c (ASSERT): Likewise.
19844 * tests/test-isnand.c (ASSERT): Likewise.
19845 * tests/test-isnanf.c (ASSERT): Likewise.
19846 * tests/test-isnanl.h (ASSERT): Likewise.
19847 * tests/test-ldexpl.c (ASSERT): Likewise.
19848 * tests/test-linked_list.c (ASSERT): Likewise.
19849 * tests/test-linkedhash_list.c (ASSERT): Likewise.
19850 * tests/test-localename.c (ASSERT): Likewise.
19851 * tests/test-lseek.c (ASSERT): Likewise.
19852 * tests/test-mbscasecmp.c (ASSERT): Likewise.
19853 * tests/test-mbscasestr1.c (ASSERT): Likewise.
19854 * tests/test-mbscasestr2.c (ASSERT): Likewise.
19855 * tests/test-mbscasestr3.c (ASSERT): Likewise.
19856 * tests/test-mbscasestr4.c (ASSERT): Likewise.
19857 * tests/test-mbschr.c (ASSERT): Likewise.
19858 * tests/test-mbscspn.c (ASSERT): Likewise.
19859 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
19860 * tests/test-mbspbrk.c (ASSERT): Likewise.
19861 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
19862 * tests/test-mbsrchr.c (ASSERT): Likewise.
19863 * tests/test-mbsspn.c (ASSERT): Likewise.
19864 * tests/test-mbsstr1.c (ASSERT): Likewise.
19865 * tests/test-mbsstr2.c (ASSERT): Likewise.
19866 * tests/test-mbsstr3.c (ASSERT): Likewise.
19867 * tests/test-memchr2.c (ASSERT): Likewise.
19868 * tests/test-memmem.c (ASSERT): Likewise.
19869 * tests/test-open.c (ASSERT): Likewise.
19870 * tests/test-printf-frexp.c (ASSERT): Likewise.
19871 * tests/test-printf-frexpl.c (ASSERT): Likewise.
19872 * tests/test-printf-posix.c (ASSERT): Likewise.
19873 * tests/test-quotearg.c (ASSERT): Likewise.
19874 * tests/test-rbtree_list.c (ASSERT): Likewise.
19875 * tests/test-rbtree_oset.c (ASSERT): Likewise.
19876 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
19877 * tests/test-round1.c (ASSERT): Likewise.
19878 * tests/test-roundf1.c (ASSERT): Likewise.
19879 * tests/test-roundl.c (ASSERT): Likewise.
19880 * tests/test-signbit.c (ASSERT): Likewise.
19881 * tests/test-sleep.c (ASSERT): Likewise.
19882 * tests/test-snprintf-posix.c (ASSERT): Likewise.
19883 * tests/test-snprintf.c (ASSERT): Likewise.
19884 * tests/test-sprintf-posix.c (ASSERT): Likewise.
19885 * tests/test-stat-time.c (ASSERT): Likewise.
19886 * tests/test-strcasestr.c (ASSERT): Likewise.
19887 * tests/test-strerror.c (ASSERT): Likewise.
19888 * tests/test-striconv.c (ASSERT): Likewise.
19889 * tests/test-striconveh.c (ASSERT): Likewise.
19890 * tests/test-striconveha.c (ASSERT): Likewise.
19891 * tests/test-strsignal.c (ASSERT): Likewise.
19892 * tests/test-strstr.c (ASSERT): Likewise.
19893 * tests/test-strtod.c (ASSERT): Likewise.
19894 * tests/test-trunc1.c (ASSERT): Likewise.
19895 * tests/test-trunc2.c (ASSERT): Likewise.
19896 * tests/test-truncf1.c (ASSERT): Likewise.
19897 * tests/test-truncf2.c (ASSERT): Likewise.
19898 * tests/test-truncl.c (ASSERT): Likewise.
19899 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
19900 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
19901 * tests/test-vasnprintf.c (ASSERT): Likewise.
19902 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
19903 * tests/test-vasprintf.c (ASSERT): Likewise.
19904 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
19905 * tests/test-vprintf-posix.c (ASSERT): Likewise.
19906 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
19907 * tests/test-vsnprintf.c (ASSERT): Likewise.
19908 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
19909 * tests/test-wcwidth.c (ASSERT): Likewise.
19910 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
19911 * tests/test-xprintf-posix.c (ASSERT): Likewise.
19912 * tests/test-xvasprintf.c (ASSERT): Likewise.
19913 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
19914 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
19915 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
19916 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
19917 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
19918 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
19919 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
19920 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
19921 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
19922 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
19923 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
19924 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
19925 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
19926 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
19927 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
19928 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
19929 * tests/unictype/test-block_list.c (ASSERT): Likewise.
19930 * tests/unictype/test-block_of.c (ASSERT): Likewise.
19931 * tests/unictype/test-block_test.c (ASSERT): Likewise.
19932 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
19933 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
19934 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
19935 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
19936 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
19937 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
19938 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
19939 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
19940 * tests/unictype/test-combining.c (ASSERT): Likewise.
19941 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
19942 * tests/unictype/test-digit.c (ASSERT): Likewise.
19943 * tests/unictype/test-mirror.c (ASSERT): Likewise.
19944 * tests/unictype/test-numeric.c (ASSERT): Likewise.
19945 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
19946 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
19947 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
19948 * tests/unictype/test-scripts.c (ASSERT): Likewise.
19949 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
19950 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
19951 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
19952 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
19953 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
19954 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
19955 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
19956 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
19957 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
19958 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
19959 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
19960 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
19961 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
19962 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
19963 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
19964 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
19965 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
19966 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
19967 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
19968 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
19969 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
19970 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
19971 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
19972 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
19973 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
19974 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
19975 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
19976 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
19977 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
19978 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
19979 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
19980 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
19981 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
19982 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
19983 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
19984 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
19985 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
19986 Reported by Eric Blake.
19988 2008-04-11 Bruno Haible <bruno@clisp.org>
19990 * lib/wchar.in.h: Tweak comment.
19992 2008-04-11 Bruno Haible <bruno@clisp.org>
19994 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
19995 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
19997 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
19999 2008-04-11 Bruno Haible <bruno@clisp.org>
20001 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
20003 2008-04-11 Simon Josefsson <simon@josefsson.org>
20005 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
20006 of attempting to use non-existing /dev/*random. Based on patch
20007 from Adam Strzelecki <ono@java.pl> in
20008 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
20010 2008-04-08 Bruno Haible <bruno@clisp.org>
20012 Add tentative support for emx+gcc.
20013 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
20014 * lib/fpurge.c (fpurge): Likewise.
20015 * lib/freadable.c (freadable): Likewise.
20016 * lib/freadahead.c (freadahead): Likewise.
20017 * lib/freading.c (freading): Likewise.
20018 * lib/freadptr.c (freadptr): Likewise.
20019 * lib/freadseek.c (freadptrinc): Likewise.
20020 * lib/fseeko.c (rpl_fseeko): Likewise.
20021 * lib/fseterr.c (fseterr): Likewise.
20022 * lib/fwritable.c (fwritable): Likewise.
20023 * lib/fwriting.c (fwriting): Likewise.
20024 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
20026 2008-04-09 Eric Blake <ebb9@byu.net>
20028 Avoid some autoconf warnings.
20029 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
20030 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
20031 * m4/afs.m4 (gl_AFS): Likewise.
20032 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
20033 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
20034 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20035 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
20036 (gl_INTEGER_TYPE_SUFFIX): Likewise.
20037 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
20038 (AC_CHECK_DECLS_ONCE): Likewise.
20040 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
20041 gnulib-tool requires autoconf 2.59 or better.
20042 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
20044 2008-04-08 Eric Blake <ebb9@byu.net>
20046 Use 'git describe --match' if present (added in git 1.5.5).
20047 * build-aux/git-version-gen: Limit result to tags that match 'v*'
20050 2008-04-08 Bruno Haible <bruno@clisp.org>
20052 Add tentative support for OpenServer.
20053 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
20055 * lib/fpurge.c (fpurge): Likewise.
20056 * lib/freadable.c (freadable): Likewise.
20057 * lib/freadahead.c (freadahead): Likewise.
20058 * lib/freading.c (freading): Likewise.
20059 * lib/freadptr.c (freadptr): Likewise.
20060 * lib/freadseek.c (freadptrinc): Likewise.
20061 * lib/fseeko.c (rpl_fseeko): Likewise.
20062 * lib/fseterr.c (fseterr): Likewise.
20063 * lib/fwritable.c (fwritable): Likewise.
20064 * lib/fwriting.c (fwriting): Likewise.
20065 Reported by Roger Cornelius <rac@tenzing.org> and
20066 Brian K. White <brian@aljex.com>.
20068 2008-04-06 Jim Meyering <meyering@redhat.com>
20070 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
20072 2008-04-06 Bruno Haible <bruno@clisp.org>
20074 Avoid possible error with non-ASCII bytes in UTF-8 locales.
20075 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
20076 * tests/test-printf-posix.sh: Likewise.
20077 * tests/test-vfprintf-posix.sh: Likewise.
20078 * tests/test-vprintf-posix.sh: Likewise.
20079 * tests/test-xprintf-posix.sh: Likewise.
20081 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20083 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
20084 hide error from 'ls', needed on OS/2.
20085 Report by Elbert Pol <elbert.pol@gmail.com>.
20087 2008-04-04 Eric Blake <ebb9@byu.net>
20089 Make test-fseeko.c failures meaningful.
20090 * tests/test-fseeko.c: Print line number on failure.
20091 * tests/test-fseek.c: Likewise.
20092 Reported by Nelson H. F. Beebe.
20094 Improve strtod bug detection check.
20095 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
20096 required for Solaris 10.
20097 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
20099 2008-04-04 Bruno Haible <bruno@clisp.org>
20101 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
20104 2008-04-03 Eric Blake <ebb9@byu.net>
20106 Ensure sane .version contents.
20107 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
20109 * build-aux/git-version-gen: Improve documentation.
20111 Make GNU make output nicer.
20112 * top/GNUmakefile [!_have-Makefile]: Add dependency on
20113 MAKECMDGOALS to enforce message for all command line targets. Set
20114 srcdir for use in maint.mk.
20116 Another maintainer tweak.
20117 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
20118 a target that regenerates version.
20120 2008-04-03 Jim Meyering <meyering@redhat.com>
20122 vc-list-files: don't cause coreutils "make po-check" failure
20123 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
20125 2008-04-03 Eric Blake <ebb9@byu.net>
20127 Allow VPATH usage of vc-list-files.
20128 * build-aux/vc-list-files (scriptversion): Add timestamp.
20129 (options): Add --help, --version, -C.
20130 (CVS): Support installed cvsu.
20132 2008-04-02 Bruno Haible <bruno@clisp.org>
20134 Avoid some "statement with no effect" warnings from gcc.
20135 * tests/test-wctype.c (main): Explicitly ignore unused values.
20136 Reported by Jim Meyering.
20138 2008-04-02 Jim Meyering <meyering@redhat.com>
20140 Avoid some warnings from "gcc -Wshadow".
20141 * tests/test-frexp.c (exp): Define to a different identifier.
20142 * tests/test-frexpl.c (exp): Likewise.
20144 2008-04-03 Jim Meyering <meyering@redhat.com>
20146 bootstrap: remove dangling *.[ch] symlinks from lib
20147 * build-aux/bootstrap [dangling symlink removal]: Move find's
20148 -depth option to precede all others, to avoid a warning.
20149 Remove *.[ch] files too, and from "$source_base" (usually lib/).
20151 2008-04-02 Bruno Haible <bruno@clisp.org>
20153 Avoid some warnings from "gcc -Wshadow".
20154 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
20155 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
20156 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
20157 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
20158 Reported by Jim Meyering.
20160 2008-04-01 Bruno Haible <bruno@clisp.org>
20162 Fix test to work on IRIX 6.5 with cc.
20163 * tests/test-math.c (numeric_equal): New function.
20166 2008-04-01 Bruno Haible <bruno@clisp.org>
20168 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
20170 2008-04-01 Bruno Haible <bruno@clisp.org>
20172 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
20173 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
20174 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
20175 (Depends-on): Remove math.
20177 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
20178 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
20179 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
20180 (Depends-on): Remove math.
20182 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
20183 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
20184 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
20185 (Depends-on): Remove math.
20186 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
20187 (Depends-on): Remove math.
20189 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
20190 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
20191 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
20192 (Depends-on): Remove math.
20193 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
20194 (Depends-on): Remove math.
20196 * tests/test-round1.c: Include nan.h.
20197 (main): Use NaNd instead of NAN.
20198 * modules/round-tests (Files): Add tests/nan.h.
20200 * tests/test-trunc1.c: Include nan.h.
20201 (main): Use NaNd instead of NAN.
20202 * modules/trunc-tests (Files): Add tests/nan.h.
20204 * tests/test-roundf1.c: Include nan.h.
20205 (main): Use NaNf instead of NAN.
20206 * modules/roundf-tests (Files): Add tests/nan.h.
20208 * tests/test-truncf1.c: Include nan.h.
20209 (main): Use NaNf instead of NAN.
20210 * modules/truncf-tests (Files): Add tests/nan.h.
20212 * tests/test-ceilf1.c: Include nan.h.
20213 (main): Use NaNf instead of NAN.
20214 * modules/ceilf-tests (Files): Add tests/nan.h.
20216 * tests/test-floorf1.c: Include nan.h.
20217 (main): Use NaNf instead of NAN.
20218 * modules/floorf-tests (Files): Add tests/nan.h.
20220 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
20221 (main): Use NaNf instead of NAN.
20222 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
20224 * tests/test-isnand.c: Include nan.h instead of <math.h>.
20225 (main): Use NaNd instead of NAN.
20226 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
20228 * tests/test-frexp.c: Include nan.h.
20229 (main): Use NaNd instead of NAN.
20230 * modules/frexp-tests (Files): Add tests/nan.h.
20232 * lib/isnan.c: Don't include <math.h>.
20233 (FUNC): Don't use NAN macro.
20234 * modules/isnand-nolibm (Depends-on): Remove math.
20235 * modules/isnanf-nolibm (Depends-on): Remove math.
20236 * modules/isnanl (Depends-on): Remove math.
20237 * modules/isnanl-nolibm (Depends-on): Remove math.
20239 * tests/nan.h: New file.
20241 2008-04-01 Eric Blake <ebb9@byu.net>
20244 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
20245 values to be the right type.
20247 For now, cater to gnulib strtod inaccuracies.
20248 * tests/test-strtod.c (main): Allow 1-ulp error on expected
20249 fractional results. While not as nice from a QoI perspective, it
20250 is a quicker patch than correctly implementing decimal to binary
20253 2008-03-31 Eric Blake <ebb9@byu.net>
20255 Guarantee a definition of NAN.
20256 * lib/math.in.h (NAN): Define if missing.
20257 * tests/test-math.c (main): Test it.
20258 * doc/posix-headers/math.texi (math.h): Document this.
20259 * lib/isnan.c (rpl_isnand): Use it.
20260 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
20261 * tests/test-floorf1.c (NaN): Likewise.
20262 * tests/test-frexp.c (NaN): Likewise.
20263 * tests/test-isnand.c (NaN): Likewise.
20264 * tests/test-isnanf.c (NaN): Likewise.
20265 * tests/test-round1.c (NaN): Likewise.
20266 * tests/test-roundf1.c (NaN): Likewise.
20267 * tests/test-snprintf-posix.h (NaN): Likewise.
20268 * tests/test-sprintf-posix.h (NaN): Likewise.
20269 * tests/test-trunc1.c (NaN): Likewise.
20270 * tests/test-truncf1.c (NaN): Likewise.
20271 * tests/test-vasnprintf-posix.c (NaN): Likewise.
20272 * tests/test-vasprintf-posix.c (NaN): Likewise.
20273 * modules/isnand-nolibm (Depends-on): Add math.
20274 * modules/isnanf-nolibm (Depends-on): Likewise.
20275 * modules/isnanl (Depends-on): Likewise.
20276 * modules/isnanl-nolibm (Depends-on): Likewise.
20277 * modules/snprintf-posix-tests (Depends-on): Likewise.
20278 * modules/sprintf-posix-tests (Depends-on): Likewise.
20279 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
20280 * modules/vsprintf-posix-tests (Depends-on): Likewise.
20281 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
20282 * modules/vasprintf-posix-tests (Depends-on): Likewise.
20284 2008-03-31 Bruno Haible <bruno@clisp.org>
20286 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
20287 * doc/posix-functions/strtod.texi: Likewise.
20289 2008-03-31 Bruno Haible <bruno@clisp.org>
20291 * tests/test-strtod.c (main): Don't use C99 syntax.
20293 2008-03-31 Bruno Haible <bruno@clisp.org>
20295 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
20296 Reported by Eric Blake.
20298 2008-03-31 Jim Meyering <meyering@redhat.com>
20300 Don't compare actual signbit return values.
20301 * tests/test-strtod.c (main): Rather, compare only their
20302 zero/non-zero nature.
20304 2008-03-31 Eric Blake <ebb9@byu.net>
20306 More strtod documentation.
20307 * doc/posix-functions/strtod.texi (strtod): Interpret more test
20308 failures as distinct bugs.
20310 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
20312 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
20313 Problem reported by Erik Benada in
20314 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
20316 2008-03-30 Bruno Haible <bruno@clisp.org>
20318 * tests/test-strtod.c: Add comments about which assertion fails on which
20320 * doc/posix-functions/strtod.texi: Add info about many more platforms.
20322 2008-03-30 Eric Blake <ebb9@byu.net>
20324 Test signbit behavior on zeros.
20325 * tests/test-signbit.c (test_signbitf): Add tests for zero.
20326 (test_signbitd, test_signbitl): Likewise.
20328 More strtod touchups.
20329 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
20330 sign of negative underflow, for now. Use .5, not .1.
20331 * doc/posix-functions/strtod.texi (strtod): Mention these
20333 Reported by Jim Meyering.
20335 2008-03-30 Bruno Haible <bruno@clisp.org>
20337 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
20338 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
20340 2008-03-30 Bruno Haible <bruno@clisp.org>
20342 Avoid failure when attempting to return empty iconv results on some
20344 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
20345 allocation, don't report ENOMEM when the resulting string is empty.
20347 2008-03-30 Bruno Haible <bruno@clisp.org>
20349 Fix buffer overrun.
20350 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
20351 Don't consider the width for tmp_length. Check count against tmp_length
20352 before doing the padding. Ensure enough allocation during padding.
20354 2008-03-30 Eric Blake <ebb9@byu.net>
20357 * lib/strtod.c (strtod): Avoid compiler warnings.
20358 Reported by Jim Meyering.
20360 2008-03-30 Bruno Haible <bruno@clisp.org>
20362 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
20363 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
20364 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
20365 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
20366 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
20367 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
20368 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
20369 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
20371 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
20372 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
20373 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
20374 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
20375 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
20376 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
20377 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
20378 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
20380 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
20381 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
20382 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
20383 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
20384 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
20385 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
20386 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
20387 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
20389 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
20390 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
20392 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
20393 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
20395 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
20396 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
20398 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
20399 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
20400 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
20402 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
20403 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
20404 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
20406 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
20407 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
20408 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
20410 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
20411 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
20412 * modules/vasprintf (Depends-on): Add EOVERFLOW.
20414 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
20415 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
20416 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
20417 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
20418 (Depends-on): Add EOVERFLOW.
20419 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
20420 (Depends-on): Add EOVERFLOW.
20421 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
20422 (Depends-on): Add EOVERFLOW.
20423 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
20424 (Depends-on): Add EOVERFLOW.
20425 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
20426 (Depends-on): Add EOVERFLOW.
20427 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
20428 (Depends-on): Add EOVERFLOW.
20429 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
20430 (Depends-on): Add EOVERFLOW.
20431 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
20432 (Depends-on): Add EOVERFLOW.
20434 * lib/sprintf.c (EOVERFLOW): Remove fallback.
20435 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
20436 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
20438 * lib/snprintf.c (EOVERFLOW): Remove fallback.
20439 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
20440 * modules/snprintf (Depends-on): Add EOVERFLOW.
20442 * lib/poll.c (EOVERFLOW): Remove fallback.
20443 * modules/poll (Depends-on): Add EOVERFLOW.
20445 * lib/getugroups.c (EOVERFLOW): Remove fallback.
20446 * modules/getugroups (Depends-on): Add EOVERFLOW.
20448 * lib/getdelim.c (EOVERFLOW): Remove fallback.
20449 * modules/getdelim (Depends-on): Add EOVERFLOW.
20451 * lib/ftell.c (EOVERFLOW): Remove fallback.
20452 * modules/ftell (Depends-on): Add EOVERFLOW.
20454 * lib/fprintf.c (EOVERFLOW): Remove fallback.
20455 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
20456 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
20458 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
20460 * modules/EOVERFLOW-tests: New file.
20461 * tests/test-EOVERFLOW.c: New file.
20463 * modules/EOVERFLOW: New file.
20464 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
20466 2008-03-30 Bruno Haible <bruno@clisp.org>
20468 Fix bug introduced on 2007-06-10.
20469 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
20470 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
20472 2008-03-30 Bruno Haible <bruno@clisp.org>
20474 Improve freadseek's efficiency after ungetc.
20475 * lib/freadseek.c: Include freadahead.h.
20476 (freadptrinc): New function, extracted from freadseek.
20477 (freadseek): Use it in a loop. Use freadahead to determine the number
20478 of loop iterations.
20479 * modules/freadseek (Depends-on): Add freadahead.
20480 (configure.ac): Require AC_C_INLINE.
20482 2008-03-30 Bruno Haible <bruno@clisp.org>
20484 * lib/freadseek.c (freadseek): Don't ignore the return value of
20487 2008-03-29 Eric Blake <ebb9@byu.net>
20489 Add hex float support.
20490 * modules/strtod (Depends-on): Add c-ctype.
20491 (Link): Mention POW_LIB.
20492 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
20493 whitespace between 'e' and exponent.
20494 * tests/test-strtod.c (main): Enable hex float tests.
20495 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
20498 Document various strtod bugs, with some fixes.
20499 * doc/posix-functions/strtod.texi (strtod): Document bugs with
20500 "-0x", "inf", "nan", and hex constants.
20501 * doc/posix-functions/atof.texi (atof): Likewise.
20502 * modules/stdlib (Makefile.am): Support strtod.
20503 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
20504 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
20505 detect additional strtod bugs.
20506 * lib/stdlib.in.h (rpl_strtod): Add declarations.
20507 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
20508 bool where appropriate. Parse 'inf' and 'nan'.
20509 * tests/test-strtod.c: New file.
20510 * modules/strtod (Depends-on): Add stdbool, stdlib.
20511 (configure.ac): Turn on module indicator.
20512 * modules/strtod-tests: New module.
20514 2008-03-29 Eric Blake <ebb9@byu.net>
20516 Fix ftell on mingw.
20517 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
20518 * modules/ftell-tests (Depends-on): Add binary-io.
20519 * modules/ftello-tests (Depends-on): Likewise.
20520 * tests/test-ftell.c (main): Enhance test to cover behavior after
20521 ungetc. Enforce binary mode.
20522 * tests/test-ftello.c (main): Likewise.
20524 Pass test-freadseek on cygwin.
20525 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
20526 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
20529 * tests/test-fflush2.c (main): Fix typo.
20531 2008-03-29 Bruno Haible <bruno@clisp.org>
20533 * tests/test-fflush2.c (main): Temporarily disable the contents of
20535 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
20536 Reported by Eric Blake.
20538 2008-03-28 Simon Josefsson <simon@josefsson.org>
20540 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
20541 (GC_SHA224_DIGEST_SIZE): Add.
20543 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
20544 (gc_hash_digest_length): Likewise.
20545 (gc_hash_buffer): Likewise.
20547 2008-03-25 Bruno Haible <bruno@clisp.org>
20549 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
20550 detail which gettext release to use.
20551 Reported by Simon Josefsson.
20553 2008-03-26 Jim Meyering <meyering@redhat.com>
20555 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
20556 * modules/gnumakefile (clean-GNUmakefile): Also, use
20557 test ... && ... || : syntax rather than if-then ... fi.
20559 gnumakefile: Don't double-quote-expand $(VPATH) value.
20560 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
20562 2008-03-24 Eric Blake <ebb9@byu.net>
20564 Alter GNUmakefile to install into top directory.
20565 * modules/maintainer-makefile: Split, and add dependency...
20566 * modules/gnumakefile: to this new module.
20567 * build-aux/GNUmakefile: Move...
20568 * top/GNUmakefile: ...here.
20569 * build-aux/maint.mk: Move...
20570 * top/maint.mk: ...here.
20571 * MODULES.html.sh (Support for maintaining...): Document new
20574 2008-03-23 Bruno Haible <bruno@clisp.org>
20576 * gnulib-tool: New options --vc-files, --no-vc-files.
20577 (func_usage): Document them.
20578 (vc_files): New variable.
20579 (func_import): Consider vc_files.
20580 (func_create_testdir): Set vc_files to empty.
20581 Suggested by Jim Meyering and Karl Berry.
20583 2008-03-23 Bruno Haible <bruno@clisp.org>
20585 Fix regex compilation error on HP-UX 11.
20586 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
20587 * modules/regex (Files): Add m4/mbstate_t.m4.
20588 Reported by Ton Voon <ton.voon@altinity.com>.
20590 2008-03-23 Bruno Haible <bruno@clisp.org>
20592 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
20594 2008-03-23 Eric Blake <ebb9@byu.net>
20595 Bruno Haible <bruno@clisp.org>
20597 Install files from top/ in the destination directory.
20598 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
20599 augmentation also for the files from top/.
20600 (func_import, func_create_testdir): Rewrite file names:
20601 top/filename -> filename.
20603 2008-03-23 Bruno Haible <bruno@clisp.org>
20605 Tweak "gnulib --version" output.
20606 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
20608 2008-03-23 Bruno Haible <bruno@clisp.org>
20610 Tweak "gnulib --version" output.
20611 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
20612 rather than contents of ChangeLog, when possible.
20614 2008-03-21 Eric Blake <ebb9@byu.net>
20616 More --version tweaks.
20617 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
20618 date of last ChangeLog entry.
20620 2008-03-21 Jim Meyering <meyering@redhat.com>
20622 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
20624 2008-03-20 Eric Blake <ebb9@byu.net>
20627 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
20629 2008-03-20 Simon Josefsson <simon@josefsson.org>
20631 * build-aux/GNUmakefile: Make git-version-gen optional. Add
20632 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
20634 2008-03-20 Eric Blake <ebb9@byu.net>
20636 Sync GNUmakefile with coreutils.
20637 * build-aux/GNUmakefile (have-Makefile): Rename...
20638 (_have-Makefile): ...to this, for namespace consideration.
20639 (GNUmakefile.cfg): Include, if present.
20640 (_autoreconf): Define a default.
20641 (_is-dist-target): New rule for rebuilds to pick up intra-release
20643 (maint-cfg.mk): Rename...
20644 (cfg.mk): ...to this.
20646 2008-03-18 Jim Meyering <meyering@redhat.com>
20648 New script and module: mktempd
20649 * MODULES.html.sh (maint+release support): Add mktempd.
20650 * build-aux/mktempd: New file.
20651 * modules/mktempd: New file.
20653 2008-03-15 Jim Meyering <meyering@redhat.com>
20656 * lib/sha1.c, lib/md5.c: 63 != ~63.
20657 Reported by Andreas Schwab.
20659 sha1.c, md5.c: Hoist a redundant expression.
20660 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
20661 "ctx->buflen" only once, before calling *_process_block.
20662 * lib/md5.c (md5_process_bytes): Likewise.
20664 2008-03-14 Eric Blake <ebb9@byu.net>
20666 Bump copyright year in files generated by gnulib-tool.
20667 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
20668 gnulib-tool, rather than hard-coding it.
20670 Fix 'gnulib-tool --version' output to work with git.
20671 * gnulib-tool (func_gnulib_dir): New function, extracted from...
20672 (startup): ...here.
20673 (func_version): Use it to invoke git-version-gen, rather than
20674 relying on CVS keyword expansion. Modernize wording.
20675 (cvsdatestamp, last_checkin_date, version): Kill unused
20678 2008-03-12 Jim Meyering <meyering@redhat.com>
20680 Recognize optional cast of the argument to free.
20681 * build-aux/useless-if-before-free: Update regexps.
20683 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
20685 2008-03-11 Bruno Haible <bruno@clisp.org>
20687 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
20688 by a single package.
20689 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
20690 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
20691 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
20692 Reported by Sam Steingold <sds@gnu.org>.
20694 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
20696 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
20699 2008-03-11 Bruno Haible <bruno@clisp.org>
20701 Avoid conflicts between local macro definitions.
20702 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
20703 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
20705 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
20706 Bruno Haible <bruno@clisp.org>
20708 Make va_copy work with some version of xlc on AIX 5.1.
20709 * lib/stdarg.in.h: New file.
20710 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
20711 On AIX, use a <stdarg.h> file substitute.
20712 * modules/stdarg (Files): Add lib/stdarg.in.h.
20713 (Depends-on): Add include_next.
20714 (Makefile.am): Build a stdarg.h substitute if requested.
20715 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
20717 2008-03-10 Bruno Haible <bruno@clisp.org>
20719 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
20720 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20721 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20723 2008-03-10 Bruno Haible <bruno@clisp.org>
20725 * modules/stdlib (Depends-on): Add include_next, remove
20728 2008-03-09 Bruno Haible <bruno@clisp.org>
20730 * lib/freadahead.h (freadahead): Document more precisely.
20731 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
20732 the sum of both buffer sizes.
20733 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
20734 * NEWS: Document the change.
20736 2008-03-09 Bruno Haible <bruno@clisp.org>
20738 Extend freadptr to return also the buffer size.
20739 * lib/freadptr.h (freadptr): Add sizep argument.
20740 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
20741 (freadptr): Add sizep argument. Determine buffer size like freadahead
20743 * tests/test-freadptr.c: Don't include freadahead.h.
20744 (main): Adapt for new calling convention of freadptr.
20745 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
20746 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
20747 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
20748 tests/test-freadptr2.sh.
20749 (Depends): Remove freadahead.
20750 (TESTS): Add test-freadptr2.sh.
20751 (check_PROGRAMS): Add test-freadptr2.
20753 2008-03-09 Bruno Haible <bruno@clisp.org>
20755 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
20756 Report and solution by Simon Josefsson.
20758 2008-03-06 Bruno Haible <bruno@clisp.org>
20760 Make fflush after ungetc work on BSD platforms.
20761 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
20762 * tests/test-fflush2.c: New file.
20763 * tests/test-fflush2.sh: New file.
20764 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
20765 tests/test-fflush2.c.
20766 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
20767 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
20769 2008-03-06 Eric Blake <ebb9@byu.net>
20771 Likewise for ftello.
20772 * modules/ftello (Dependencies): Add extensions.
20773 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
20775 2008-03-06 Bruno Haible <bruno@clisp.org>
20777 * modules/fseeko (Dependencies): Add extensions.
20778 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
20779 Needed on glibc systems.
20781 2008-03-06 Bruno Haible <bruno@clisp.org>
20783 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
20785 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20787 2008-03-06 Bruno Haible <bruno@clisp.org>
20789 * users.txt: Add libgnupdf.
20791 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
20793 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
20794 (Header File Substitutes, Function Substitutes,
20795 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
20796 (Build robot for gnulib): Fix typo.
20798 2008-03-06 Bruno Haible <bruno@clisp.org>
20800 * doc/gnulib-tool.texi (VCS Issues): Small updates.
20801 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
20803 2008-03-06 Bruno Haible <bruno@clisp.org>
20805 * doc/func.texi: New file, extracted from doc/gnulib.texi.
20806 * doc/gnulib.texi: Include it.
20808 2008-03-06 Simon Josefsson <simon@josefsson.org>
20810 * modules/func (License): Change license to unlimited; there was
20811 no LGPL parts in the module anyway.
20813 2008-03-06 Simon Josefsson <simon@josefsson.org>
20815 * modules/__func__: Renamed to modules/func.
20816 * modules/__func__-tests: Renamed to modules/func-tests.
20817 * tests/test-__func__.c: Renamed to tests/test-func.c.
20818 * m4/__func__.m4: Renamed to m4/func.m4.
20819 * doc/gnulib.texi (__func__): Section renamed to func.
20820 Suggested by Eric Blake <ebb9@byu.net>.
20822 2008-03-06 Simon Josefsson <simon@josefsson.org>
20824 * doc/gnulib.texi (__func__): Use C99 terminology when talking
20825 about __func__. Make example self-contained. Suggested by Eric
20826 Blake <ebb9@byu.net>.
20828 * tests/test-__func__.c (main): Avoid extraneous () around __func.
20829 Suggested by Eric Blake <ebb9@byu.net>.
20831 2008-03-06 Simon Josefsson <simon@josefsson.org>
20833 * modules/__func__: New file.
20834 * modules/__func__-tests: New file.
20835 * tests/test-__func__.c: New file.
20836 * m4/__func__.m4: New file.
20837 * doc/gnulib.texi (__func__): Document __func__ module.
20839 2008-03-05 Simon Josefsson <simon@josefsson.org>
20841 * modules/byteswap (License): Re-license as LGPLv2+.
20843 2008-03-05 Simon Josefsson <simon@josefsson.org>
20845 * doc/Makefile: Add pdf target.
20847 2008-03-05 Simon Josefsson <simon@josefsson.org>
20849 * modules/inline (License): Use 'unlimited', since there are only
20850 *.m4 files in this module.
20852 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
20853 Bruno Haible <bruno@clisp.org>
20855 Add support for HP C 7.1 on OpenVMS 8.3.
20856 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
20858 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
20860 Update VMS specifics.
20861 * lib/getopt.c [VMS]: Remove include of unixlib.h.
20863 2008-03-02 Jim Meyering <meyering@redhat.com>
20865 Remove the last dependency on the "free" module.
20866 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
20867 Reported by Bob Proulx.
20869 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
20871 Remove useless "if" tests before free. Deprecate "free" module.
20872 * doc/posix-functions/free.texi: Mention that this
20873 module is no longer useful.
20874 * modules/free (Notice): Say this module is obsolete.
20875 * modules/readutmp (Depends-on): Remove free.
20876 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
20877 * lib/putenv.c (putenv): Likewise.
20878 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
20879 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
20880 * tests/test-c-strcasestr.c (main): Likewise.
20881 * tests/test-c-strstr.c (main): Likewise.
20882 * tests/test-mbscasestr1.c (main): Likewise.
20883 * tests/test-mbscasestr2.c (main): Likewise.
20884 * tests/test-mbsstr1.c (main): Likewise.
20885 * tests/test-mbsstr2.c (main): Likewise.
20886 * tests/test-memmem.c (main): Likewise.
20887 * tests/test-strcasestr.c (main): Likewise.
20888 * tests/test-striconv.c (main): Likewise.
20889 * tests/test-striconveh.c (main): Likewise.
20890 * tests/test-striconveha.c (main): Likewise.
20891 * tests/test-strstr.c (main): Likewise.
20893 * build-aux/git-version-gen: Adjust a comment and the Usage string.
20895 bootstrap: sync from coreutils again
20896 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
20898 2008-03-01 Jim Meyering <meyering@redhat.com>
20900 bootstrap: sync from coreutils
20901 * build-aux/bootstrap (update_po_files): Copy a .po file into place
20902 also when the target doesn't exist.
20904 2008-03-01 Eric Blake <ebb9@byu.net>
20906 Fix bugs in last patch.
20907 * lib/memchr2.c (memchr2): Fix typo.
20908 * tests/test-memchr2.c: Test previous bug, and don't use GNU
20910 Reported by Bruce Korb.
20912 New module 'memchr2'.
20913 * modules/memchr2: New file.
20914 * modules/memchr2-tests: Likewise.
20915 * lib/memchr2.h: Likewise.
20916 * lib/memchr2.c: Likewise, based on memchr.c.
20917 * tests/test-memchr2.c: New test.
20918 * MODULES.html.sh (String handling): Add memchr2.
20920 2008-02-29 Bruno Haible <bruno@clisp.org>
20922 * modules/freadseek-tests: New file.
20923 * tests/test-freadseek.sh: New file.
20924 * tests/test-freadseek.c: New file.
20926 New module 'freadseek'.
20927 * modules/freadseek: New file.
20928 * lib/freadseek.h: New file.
20929 * lib/freadseek.c: New file.
20930 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
20932 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
20934 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
20937 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
20938 program_invocation_name and program_invocation_short_name are
20941 2008-02-28 Bruno Haible <bruno@clisp.org>
20943 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
20944 * tests/test-freadptr.sh: Also test non-seekable stdin.
20946 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
20948 * build-aux/bootstrap (source_base, m4_base)
20949 (doc_base, tests_base): New variables.
20950 (gnulib_tool_options): Do not hardcode base directories, use
20951 the above variables instead.
20953 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
20955 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
20957 2008-02-28 Bruno Haible <bruno@clisp.org>
20959 * modules/freadptr-tests: New file.
20960 * tests/test-freadptr.sh: New file.
20961 * tests/test-freadptr.c: New file.
20963 New module 'freadptr'.
20964 * modules/freadptr: New file.
20965 * lib/freadptr.h: New file.
20966 * lib/freadptr.c: New file.
20967 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
20969 2008-02-26 Karl Berry <karl@freefriends.org>
20972 * libltdl/argz.c (argz_add, argz_count): New functions.
20973 * libltdl/argz.in.h: Declare them.
20974 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
20976 2008-02-22 Bruno Haible <bruno@clisp.org>
20978 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
20979 is a pointer type. Needed for HP-UX 10.
20980 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
20981 * doc/posix-functions/gmtime_r.texi: Likewise.
20982 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
20984 2008-02-24 Bruno Haible <bruno@clisp.org>
20986 * modules/environ-tests: New file.
20987 * tests/test-environ.c: New file.
20989 New module 'environ'.
20990 * modules/environ: New file.
20991 * lib/unistd.in.h (environ): New declaration.
20992 * m4/environ.m4: New file.
20993 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
20995 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
20997 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
20999 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
21000 wrong claim that 'environ' is missing on some systems.
21001 * modules/execute (Depends-on): Add environ.
21002 * lib/execute.c (environ): Remove fallback declaration.
21003 * modules/pipe (Depends-on): Add environ.
21004 * lib/pipe.c (environ): Remove fallback declaration.
21005 * modules/setenv (Depends-on): Add environ.
21006 * lib/setenv.c (environ): Remove fallback declaration.
21007 * modules/unsetenv (Depends-on): Add environ.
21008 * lib/unsetenv.c (environ): Remove fallback declaration.
21009 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
21011 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
21012 (gl_PREREQ_UNSETENV): Likewise.
21014 2008-02-24 Bruno Haible <bruno@clisp.org>
21016 * doc/posix-functions/environ.texi: Document the MacOS X problem.
21018 2008-02-20 Bob Proulx <bob@proulx.com>
21020 Enable use of older two part flavor 'git describe'.
21021 * build-aux/git-version-gen: If using the older two part flavor of
21022 git version then recreate the third part now present in the
21023 newer three part flavor of git describe.
21025 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
21027 * lib/fts.c (fts_build): Typo correction to comment.
21029 2008-02-17 Bruno Haible <bruno@clisp.org>
21031 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
21032 generating no-op conflicts.
21034 2008-02-17 Bruno Haible <bruno@clisp.org>
21037 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
21038 result_entries, rather than an index-based loop.
21040 2008-02-17 Bruno Haible <bruno@clisp.org>
21043 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
21045 (entry_create): New function.
21046 (entry_hashcode): Use the cached hashcode if possible.
21047 (read_changelog_file, try_split_merged_entry): Use entry_create.
21049 2008-02-17 Bruno Haible <bruno@clisp.org>
21051 Speed up from O(n^2) to O(n) for long ChangeLog files.
21052 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
21053 (read_changelog_file): Change implementation of entries_reversed list
21055 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
21057 2008-02-17 Bruno Haible <bruno@clisp.org>
21059 New option --split-merged-entry.
21060 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
21061 (find_paragraph_end, try_split_merged_entry): New functions.
21062 (long_options): Add option --split-merged-entry.
21063 (usage): Document option --split-merged-entry.
21064 (main): Implement option --split-merged-entry.
21065 Reported by Eric Blake.
21067 2008-02-17 Bruno Haible <bruno@clisp.org>
21069 * lib/git-merge-changelog.c: Include c-strstr.h.
21070 (main): Support the "git pull --rebase" situation.
21071 * modules/git-merge-changelog (Depends-on): Add c-strstr.
21072 Reported by Eric Blake.
21074 2008-02-16 Eric Blake <ebb9@byu.net>
21076 Avoid doubling \ in common case of "c-maybe" quoting style.
21077 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
21078 eliding outer quotes.
21079 * lib/quotearg.h: Document this.
21080 * tests/test-quotearg.c (result_strings, inputs, results_g)
21081 (flag_results, locale_results): Test it by adding a new string to
21083 (compare_strings): Test new string.
21085 2008-02-13 Eric Blake <ebb9@byu.net>
21087 Avoid trigraph quoting in default output.
21088 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
21089 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
21090 unless explicitly requested.
21091 * tests/test-quotearg.c (flag_results, main): Add additional tests.
21093 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
21095 Don't rely on signed integer overflowing to negative value.
21096 * lib/getugroups.c (getugroups): Include <limits.h>.
21097 Instead, compare against INT_MAX, and increment only if the test passes.
21099 2008-02-13 Jim Meyering <meyering@redhat.com>
21100 and Eric Blake <ebb9@byu.net>
21102 Avoid shadowing warning and compile errors on Linux.
21103 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
21104 forwarding macros on Linux.
21105 (dcgettext): Define a stub, for Linux.
21106 (results_g, main): Avoid warnings.
21108 2008-02-12 Eric Blake <ebb9@byu.net>
21110 Silence warning in last patch.
21111 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
21113 Quotearg part 4: add tests, fix c-maybe colon quoting.
21114 * lib/quotearg.h: Improve documentation.
21115 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
21116 escapes when adding outer quotes. When quoting trigraphs, use
21117 valid C notation. When quoting NUL, omit extra characters if next
21118 character is not digit. Alter prototype.
21119 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
21121 * modules/quotearg-tests: New module.
21122 * tests/test-quotearg.c: New test.
21124 2008-02-07 Eric Blake <ebb9@byu.net>
21126 Quotearg part 3: add flag to control outer quote elision.
21127 * lib/quotearg.h (c_maybe_quoting_style): New style.
21128 (enum quoting_flags): Better documentation of flags.
21129 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
21131 (quotearg_buffer_restyled): Handle new flag to elide outer
21134 Quotearg part 2: add flag that can control NUL elision.
21135 * lib/quotearg.h (set_quoting_flags): New prototype.
21136 * lib/quotearg.c (struct quoting_options): Add flag field.
21137 (set_quoting_flags): New function.
21138 (quotearg_buffer_restyled): Add flags parameter.
21139 (quotearg_alloc_mem): Set the flag if length cannot be returned.
21140 (quotearg_n_options): Set the flag, since length cannot be
21142 (quoting_options_from_style): Default flags correctly.
21144 Quotearg part 1: more wrappers, restore quotearg_char state.
21145 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
21146 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
21147 (quotearg_colon_mem): New wrappers.
21148 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
21149 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
21151 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
21152 (quotearg_colon_mem): New functions.
21154 2008-02-11 Bruno Haible <bruno@clisp.org>
21156 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
21157 library in the current directory: it does not work with parallel make.
21158 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21160 2008-02-11 Bruno Haible <bruno@clisp.org>
21162 * .gitattributes: New file.
21164 2008-02-11 Jim Meyering <meyering@redhat.com>
21166 useless-if-before-free: Fix reversed exit values.
21167 * build-aux/useless-if-before-free: Use correct values
21168 for EXIT_MATCH and EXIT_NO_MATCH.
21170 * build-aux/useless-if-before-free: Close stdout carefully.
21172 2008-02-10 Bruno Haible <bruno@clisp.org>
21174 New module 'git-merge-changelog'.
21175 * modules/git-merge-changelog: New file.
21176 * lib/git-merge-changelog.c: New file.
21178 2008-02-10 Jim Meyering <meyering@redhat.com>
21180 useless-if-before-free: New option: --list (-l).
21182 useless-if-before-free: Don't exit immediately upon open failure.
21183 * build-aux/useless-if-before-free: Exit 2 for errors.
21184 Upon failure to open a file, don't exit immediately.
21185 Rather, just warn and continue with any remaining files.
21187 2008-02-10 Bruno Haible <bruno@clisp.org>
21189 New abstract list operation 'node_set_value'.
21190 * lib/gl_list.h (gl_list_node_set_value): New function.
21191 (struct gl_list_implementation): New field node_set_value.
21192 * lib/gl_list.c (gl_list_node_set_value): New function.
21193 * lib/gl_array_list.c (gl_array_node_set_value): New function.
21194 (gl_array_list_implementation): Update.
21195 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
21196 (gl_carray_list_implementation): Update.
21197 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
21198 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
21199 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
21200 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
21201 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
21202 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
21203 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
21205 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
21206 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
21207 (gl_sublist_list_implementation): Update.
21209 2008-02-10 Bruno Haible <bruno@clisp.org>
21211 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
21212 Needed when ELEMENT is #defined to 'some_type *'.
21214 2008-02-10 Jim Meyering <meyering@redhat.com>
21216 New script and module: useless-if-before-free
21217 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
21218 * build-aux/useless-if-before-free: New file.
21219 * modules/useless-if-before-free: New file.
21221 * build-aux/gitlog-to-changelog: Use committer date, not author date.
21223 xstrtol_error: Fix typo.
21224 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
21225 s/exit_failure/exit_status/.
21227 2008-02-09 Jim Meyering <meyering@redhat.com>
21229 New script and module: gitlog-to-changelog
21230 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
21231 * modules/gitlog-to-changelog: New file.
21232 * build-aux/gitlog-to-changelog: New file.
21234 2008-02-08 Jim Meyering <meyering@redhat.com>
21236 Avoid two "parameter unused" warnings.
21237 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
21240 Use "git COMMAND", not "git-COMMAND".
21241 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
21242 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
21243 * build-aux/git-version-gen: Use "git status", not "git-status".
21245 2008-02-07 Bruno Haible <bruno@clisp.org>
21247 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
21248 Avoids a crash on Windows Vista.
21249 Reported by Adam Strzelecki <ono@java.pl> via
21250 Simon Josefsson <simon@josefsson.org>.
21252 2008-02-06 Bruno Haible <bruno@clisp.org>
21254 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
21255 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
21256 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
21257 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
21258 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
21259 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21260 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
21261 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
21262 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21263 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21264 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21265 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21266 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21267 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21268 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21269 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
21271 * tests/test-snprintf-posix.h (test_function): Likewise.
21272 * tests/test-sprintf-posix.h (test_function): Likewise.
21273 * tests/test-vasprintf-posix.c (test_function): Likewise.
21274 * doc/posix-functions/fprintf.texi: Update.
21275 * doc/posix-functions/printf.texi: Update.
21276 * doc/posix-functions/snprintf.texi: Update.
21277 * doc/posix-functions/sprintf.texi: Update.
21278 * doc/posix-functions/vfprintf.texi: Update.
21279 * doc/posix-functions/vprintf.texi: Update.
21280 * doc/posix-functions/vsnprintf.texi: Update.
21281 * doc/posix-functions/vsprintf.texi: Update.
21282 Reported by Peter Fales <psfales@alcatel-lucent.com>.
21284 2008-02-06 Bruno Haible <bruno@clisp.org>
21286 Fix bug introduced on 2008-01-26.
21287 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
21289 2008-02-06 Bruno Haible <bruno@clisp.org>
21291 Fix bug introduced on 2007-06-10.
21292 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
21293 !NEED_PRINTF_FLAG_ZERO.
21295 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
21297 getloadavg: use libperfstat on AIX5
21298 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
21300 2008-02-03 Bruno Haible <bruno@clisp.org>
21302 * lib/diffseq.h: Add comments about required #includes.
21303 Reported by Michael Biggs <gnulib@doubleplum.net>.
21305 2008-02-01 Bruno Haible <bruno@clisp.org>
21307 * users.txt: Add gnuit.
21309 2008-01-31 Bruno Haible <bruno@clisp.org>
21311 * lib/md4.c (set_uint32): Mark as inline.
21312 * lib/md5.c (set_uint32): Likewise.
21313 * lib/sha1.c (set_uint32): Likewise.
21314 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
21315 * m4/md5.m4 (gl_MD5): Likewise.
21316 * m4/sha1.m4 (gl_SHA1): Likewise.
21318 2008-01-31 Jim Meyering <meyering@redhat.com>
21320 Use "sizeof VAR", rather than a literal "4".
21321 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
21322 * lib/md4.c (md4_read_ctx): Likewise.
21323 * lib/sha1.c (sha1_read_ctx): Likewise.
21325 2008-01-31 Simon Josefsson <simon@josefsson.org>
21327 * tests/test-sha1.c: New file, based on test-md5.c.
21329 * modules/crypto/sha1-tests: New file.
21331 2008-01-31 Simon Josefsson <simon@josefsson.org>
21333 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
21335 2008-01-31 Jim Meyering <meyering@redhat.com>
21337 Prefer "sizeof v" over the equivalent "4".
21338 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
21339 * lib/md5.c (set_uint32): Likewise.
21340 * lib/sha1.c (set_uint32): Likewise.
21342 2008-01-31 Simon Josefsson <simon@josefsson.org>
21344 * lib/sha1.c (set_uint32): Mark function as static.
21346 2008-01-31 Simon Josefsson <simon@josefsson.org>
21348 md2: clarify comments to say that alignment is not required.
21349 * lib/md2.h: Remove warning about alignment in comment.
21350 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
21351 never been required.
21353 2008-01-31 Simon Josefsson <simon@josefsson.org>
21355 md4: adapt alignment constraint fix from sha1.
21356 * lib/md4.c (set_uint32): New function, from sha1.c
21357 (md4_read_ctx): Use it.
21358 (md4_finish_ctx): Doc fix.
21359 * lib/md4.h: Doc fix.
21361 2008-01-31 Simon Josefsson <simon@josefsson.org>
21363 md5: adapt alignment constraint fix from sha1.
21364 * lib/md5.c (set_uint32): New function, from sha1.c
21365 (md5_read_ctx): Use it.
21366 (md5_finish_ctx): Doc fix.
21367 * lib/md5.h: Doc fix.
21369 2008-01-30 Peter Palfrader <weasel@debian.org>
21371 sha1: remove the result buffer alignment constraint
21372 * lib/sha1.c (set_uint32): New function.
21373 (sha1_read_ctx): Rewrite to remove the result buffer alignment
21375 (sha1_finish_ctx): Remove comment warning about alignment constraint.
21376 * lib/sha1.h: Likewise.
21378 2008-01-30 Andreas Schwab <schwab@suse.de>
21379 Bruno Haible <bruno@clisp.org>
21381 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
21382 correct definition of LDBL_MIN_EXP.
21384 2008-01-30 Karl Berry <karl@gnu.org>
21386 * config/srclist-update: try to preserve x bit on updates.
21387 * config/srclistvars.sh: update for karl.
21389 2008-01-29 Jim Meyering <meyering@redhat.com>
21391 vasnprintf.c: Avoid warning about unused label
21392 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
21393 "overflow" label definition and associated code with the
21394 same cpp condition that guards the sole use of that label.
21396 2008-01-26 Bruno Haible <bruno@clisp.org>
21398 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
21399 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
21400 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
21401 * lib/isnanl-nolibm.h (isnanl): Likewise.
21402 Reported by Paul Eggert <eggert@cs.ucla.edu>.
21404 2008-01-26 Bruno Haible <bruno@clisp.org>
21406 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
21407 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
21409 2008-01-26 Bruno Haible <bruno@clisp.org>
21411 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
21412 GCC >= 4.0 built-in.
21413 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
21415 2008-01-26 Bruno Haible <bruno@clisp.org>
21417 Rename isnan, applicable to 'double' only, to isnand.
21418 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
21419 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
21420 (configure.ac): Update.
21421 (Include): Replace "isnan.h" with "isnand.h".
21422 * m4/isnand.m4: Renamed from m4/isnan.m4.
21423 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
21424 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
21425 instead of isnan.c.
21426 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
21427 instead of HAVE_ISNAN_IN_LIBC.
21428 (isnand): Renamed from isnan.
21429 * lib/isnand.c: New file.
21430 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
21431 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
21432 (Makefile.am): Update.
21433 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
21434 Include isnand.h instead of isnan.h.
21435 (main): Test isnand instead of isnan.
21436 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
21438 * modules/frexp (Depends-on): Likewise.
21439 * modules/frexp-tests (Depends-on): Likewise.
21440 * modules/frexp-nolibm (Depends-on): Likewise.
21441 * modules/frexp-nolibm-tests (Depends-on): Likewise.
21442 * modules/isfinite (Depends-on): Likewise.
21443 * modules/round-tests (Depends-on): Likewise.
21444 * modules/signbit (Depends-on): Likewise.
21445 * modules/signbit-tests (Depends-on): Likewise.
21446 * modules/snprintf-posix (Depends-on): Likewise.
21447 * modules/sprintf-posix (Depends-on): Likewise.
21448 * modules/trunc-tests (Depends-on): Likewise.
21449 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21450 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21451 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21452 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21453 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21454 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21455 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21456 * modules/vasnprintf-posix (Depends-on): Likewise.
21457 * modules/vasprintf-posix (Depends-on): Likewise.
21458 * modules/vfprintf-posix (Depends-on): Likewise.
21459 * modules/vsnprintf-posix (Depends-on): Likewise.
21460 * modules/vsprintf-posix (Depends-on): Likewise.
21461 * lib/frexp.c: Include isnand.h instead of isnan.h.
21462 (ISNAN): Set to isnand instead of isnan.
21463 * lib/isfinite.c: Include isnand.h instead of isnan.h.
21464 (gl_isfinited): Use isnand instead of isnan.
21465 * lib/signbitd.c: Include isnand.h instead of isnan.h.
21466 (gl_signbitd): Use isnand instead of isnan.
21467 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
21468 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
21469 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
21470 (main): Use isnand instead of isnan.
21471 * tests/test-round1.c: Include isnand.h.
21472 (main): Use isnand instead of isnan.
21473 * tests/test-round2.c: Include isnand.h instead of isnan.h.
21474 (ISNAN): Set to isnand instead of isnan.
21475 * tests/test-trunc1.c: Include isnand.h.
21476 (main): Use isnand instead of isnan.
21477 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
21478 (equal): Use isnand instead of isnan.
21479 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
21481 * NEWS: Mention the change.
21483 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
21484 Bruno Haible <bruno@clisp.org>
21486 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
21487 the GCC builtins for signbits are present and set
21488 REPLACE_SIGNBIT_USING_GCC if so.
21489 * lib/math.in.h (signbit): Define using GCC builtins if
21490 REPLACE_SIGNBIT_USING_GCC is set.
21491 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
21492 REPLACE_SIGNBIT_USING_GCC.
21493 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
21495 2008-01-25 Jim Meyering <meyering@redhat.com>
21497 Prefer <config.h> over "config.h". See autoconf doc for explanation.
21498 * lib/poll.c: Include <config.h>, not "config.h".
21499 * tests/test-getaddrinfo.c: Likewise.
21501 2008-01-25 Simon Josefsson <simon@josefsson.org>
21503 * modules/sockets-tests: New file.
21505 2008-01-24 Simon Josefsson <simon@josefsson.org>
21507 * modules/sockets: New module, can be used to call WSA_Startup and
21508 WSA_Cleanup when needed.
21510 * lib/sockets.h, lib/sockets.c: New files.
21512 * m4/sockets.m4: New file.
21514 * tests/test-sockets.c: New file.
21516 2008-01-19 Bruno Haible <bruno@clisp.org>
21518 * doc/posix-headers: Renamed from doc/headers.
21519 * doc/posix-functions: Renamed from doc/functions.
21520 * doc/gnulib.texi: Update.
21522 2008-01-19 Bruno Haible <bruno@clisp.org>
21524 * doc/glibc-functions/strcasestr.texi: Include contents of
21525 doc/functions/strcasestr.texi, fixing the list of platforms.
21526 * doc/functions/strcasestr.texi: Remove file.
21528 2008-01-19 Bruno Haible <bruno@clisp.org>
21530 * doc/glibc-functions/memmem.texi: Include contents of
21531 doc/functions/memmem.texi.
21532 * doc/functions/memmem.texi: Remove file.
21534 2008-01-18 Bruno Haible <bruno@clisp.org>
21536 * doc/glibc-functions/*.texi: New files.
21537 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
21538 to use the new files.
21540 2008-01-17 Bruno Haible <bruno@clisp.org>
21542 * tests/test-gethostname.c (main): Fix printf statement.
21544 2008-01-17 Simon Josefsson <simon@josefsson.org>
21546 * modules/gethostname-tests: New file.
21548 * tests/test-gethostname.c: New file.
21550 2008-01-17 Simon Josefsson <simon@josefsson.org>
21552 * lib/gethostname.c: Include string.h unconditionally, strncpy is
21553 used by the UNAME case. Reported by Bruno Haible
21556 2008-01-17 Eric Blake <ebb9@byu.net>
21558 Convert c-strcasestr to be more efficient.
21559 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
21560 (Depends-on): Add c-strcase, remove malloca, strnlen.
21561 * tests/test-c-strcasestr.c (main): Enhance test.
21562 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
21564 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
21566 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
21567 Use it in creating po/Makevars.
21569 2008-01-15 Simon Josefsson <simon@josefsson.org>
21571 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
21572 Applications that requires it should initialize libgcrypt
21575 2008-01-16 Simon Josefsson <simon@josefsson.org>
21577 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
21579 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
21581 Fix problem with getdate on mingw32 reported by Simon Josefsson
21582 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
21583 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
21584 tzname", when deciding whether to declare tzname.
21585 * lib/strftime.c (tzname): Likewise.
21587 2008-01-15 Bruno Haible <bruno@clisp.org>
21589 Work around a MacOS X 10.5 bug in frexpl().
21590 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
21591 * doc/functions/frexpl.texi: Document the bug.
21592 Reported by Elias Pipping <pipping@gentoo.org>.
21594 2008-01-14 Eric Blake <ebb9@byu.net>
21596 Touch up previous patch.
21597 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
21598 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
21600 Convert strcasestr module to use Two-Way algorithm.
21601 * modules/strcasestr-simple: New module, based on the old
21602 strcasestr, but with Two-Way rather than KMP.
21603 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
21604 * lib/string.in.h (rpl_strcasestr): Declare.
21605 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
21607 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
21608 * modules/string (Makefile.am): Support strcasestr.
21609 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21610 * modules/strcasestr-tests (Depends-on): Check for alarm.
21611 * tests/test-strcasestr.c: Augment test.
21612 * lib/str-two-way.h: Clean up stray macro.
21613 * NEWS: Document new module.
21614 * MODULES.html.sh (string handling): Likewise.
21615 * doc/functions/strcasestr.texi: New file.
21616 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
21617 here, since it is not a POSIX function.
21619 2008-01-14 Colin Watson <cjwatson@debian.org>
21620 Bruno Haible <bruno@clisp.org>
21622 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
21623 works fine; if not, set REPLACE_STRSIGNAL.
21624 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
21625 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21627 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
21628 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
21629 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
21631 2008-01-14 Bruno Haible <bruno@clisp.org>
21633 * modules/strsignal (Include): Change to <string.h>.
21635 2008-01-14 Colin Watson <cjwatson@debian.org>
21637 * modules/argp (Notice): Add a notice recommending to change
21639 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
21641 2008-01-13 Colin Watson <cjwatson@debian.org>
21643 * modules/strsignal-tests: New file.
21644 * tests/test-strsignal.c: New file.
21646 * lib/strsignal.c: New file, from glibc with modifications.
21647 * lib/siglist.h: New file, from glibc with modifications.
21648 * lib/string.in.h (strsignal): New declaration.
21649 * m4/strsignal.m4: New file.
21650 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21651 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
21652 * modules/strsignal: New file.
21653 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
21654 HAVE_DECL_STRSIGNAL.
21656 2008-01-13 Bruno Haible <bruno@clisp.org>
21658 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
21659 locale encoding is not ASCII. Needed for OpenBSD 4.0.
21660 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21661 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21663 2008-01-13 Bruno Haible <bruno@clisp.org>
21665 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
21666 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
21667 * lib/argp.h (__attribute__): Likewise.
21668 * lib/c-stack.c (__attribute__): Likewise.
21669 * lib/error.h (__attribute__): Likewise.
21670 * lib/fts.c (__attribute__): Likewise.
21671 * lib/openat.h (__attribute__): Likewise.
21672 * lib/stdio.in.h (__attribute__): Likewise.
21673 * lib/string.in.h (__attribute__): Likewise.
21674 * lib/utimens.c (__attribute__): Likewise.
21675 * lib/vasnprintf.h (__attribute__): Likewise.
21676 * lib/xalloc.h (__attribute__): Likewise.
21677 * lib/xprintf.h (__attribute__): Likewise.
21678 * lib/xstrtol.h (__attribute__): Likewise.
21679 * lib/xvasprintf.h (__attribute__): Likewise.
21681 2008-01-12 Bruno Haible <bruno@clisp.org>
21683 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
21684 * doc/glibc-headers/a.out.texi: New file.
21685 * doc/glibc-headers/aliases.texi: New file.
21686 * doc/glibc-headers/alloca.texi: New file.
21687 * doc/glibc-headers/ar.texi: New file.
21688 * doc/glibc-headers/argp.texi: New file.
21689 * doc/glibc-headers/argz.texi: New file.
21690 * doc/glibc-headers/byteswap.texi: New file.
21691 * doc/glibc-headers/crypt.texi: New file.
21692 * doc/glibc-headers/endian.texi: New file.
21693 * doc/glibc-headers/envz.texi: New file.
21694 * doc/glibc-headers/err.texi: New file.
21695 * doc/glibc-headers/error.texi: New file.
21696 * doc/glibc-headers/execinfo.texi: New file.
21697 * doc/glibc-headers/fpu_control.texi: New file.
21698 * doc/glibc-headers/fstab.texi: New file.
21699 * doc/glibc-headers/fts.texi: New file.
21700 * doc/glibc-headers/getopt.texi: New file.
21701 * doc/glibc-headers/ieee754.texi: New file.
21702 * doc/glibc-headers/ifaddrs.texi: New file.
21703 * doc/glibc-headers/libintl.texi: New file.
21704 * doc/glibc-headers/mcheck.texi: New file.
21705 * doc/glibc-headers/mntent.texi: New file.
21706 * doc/glibc-headers/obstack.texi: New file.
21707 * doc/glibc-headers/paths.texi: New file.
21708 * doc/glibc-headers/printf.texi: New file.
21709 * doc/glibc-headers/pty.texi: New file.
21710 * doc/glibc-headers/resolv.texi: New file.
21711 * doc/glibc-headers/shadow.texi: New file.
21712 * doc/glibc-headers/sysexits.texi: New file.
21713 * doc/glibc-headers/ttyent.texi: New file.
21715 2008-01-12 Jim Meyering <meyering@redhat.com>
21717 announce-gen: emit Gnulib's git-based version string.
21718 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
21719 New option --gnulib-version=V, where V is expected to be
21720 the output of running git describe in the gnulib directory.
21721 (get_tool_versions): Request feedback on xdelta. I suspect it's
21722 not useful, and plan to stop publishing an xdelta file with each
21725 * build-aux/announce-gen: Also check for lzma-compressed files.
21727 2008-01-11 Bruno Haible <bruno@clisp.org>
21729 * tests/test-memmem.c (main): Increase maximum allowed time.
21730 * tests/test-strstr.c (main): Likewise.
21732 2008-01-11 Bruno Haible <bruno@clisp.org>
21734 * doc/functions/memmem.texi: Add more precisions about platforms.
21735 * doc/functions/strstr.texi: Likewise.
21737 2008-01-10 Eric Blake <ebb9@byu.net>
21739 * m4/strstr.m4: Delete cruft from copy-n-paste.
21740 Reported by Bruno Haible.
21742 2008-01-10 Bruno Haible <bruno@clisp.org>
21744 Make c-strstr rely on strstr.
21745 * lib/c-strstr.c: Don't include str-kmp.h.
21746 (c_strstr): Define in terms of strstr.
21747 * modules/c-strstr (Files): Remove lib/str-kmp.h.
21748 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
21750 2008-01-10 Bruno Haible <bruno@clisp.org>
21752 * doc/gnulib.texi (String Functions in C Locale): New section.
21753 * doc/c-ctype.texi: New file.
21754 * doc/c-strcase.texi: New file.
21755 * doc/c-strcaseeq.texi: New file.
21756 * doc/c-strcasestr.texi: New file.
21757 * doc/c-strstr.texi: New file.
21758 * doc/c-strtod.texi: New file.
21759 * doc/c-strtold.texi: New file.
21761 2008-01-10 Eric Blake <ebb9@byu.net>
21763 * lib/relocatable.h: Fix a comment.
21765 2008-01-10 Eric Blake <ebb9@byu.net>
21767 Share two-way algorithm.
21768 * lib/str-two-way.h: New file, merged from...
21769 * lib/memmem.c: ...here...
21770 * lib/strstr.c: ...and here.
21771 * modules/memmem (Files): Use it.
21772 * modules/strstr (Files): Likewise.
21774 Avoid quadratic strstr implementations.
21775 * lib/strstr.c: New file.
21776 * m4/strstr.m4: Likewise.
21777 * modules/strstr: Likewise.
21778 * modules/strstr-tests: Likewise.
21779 * tests/test-strstr.c: Likewise.
21780 * lib/string.in.h (rpl_strstr): Declare.
21781 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
21782 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
21783 * modules/string (Makefile.am): Likewise.
21784 * MODULES.html.sh (string handling): Mention new module.
21785 * doc/functions/strstr.texi (strstr): Document the bug.
21787 2008-01-10 Bruno Haible <bruno@clisp.org>
21789 * lib/relocatable.h (relocate): State whether result is freshly
21791 * lib/relocatable.c (relocate): Return a freshly allocated string
21792 instead of a pointer to a privately held string.
21793 Reported by Sylvain Beucler <beuc@gnu.org>.
21795 2008-01-10 Colin Watson <cjwatson@debian.org>
21797 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
21798 s/S_ISNLK/S_ISLNK/.
21800 2008-01-09 Bruno Haible <bruno@clisp.org>
21802 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
21804 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
21805 if it's only a guess.
21806 * modules/memmem: Simplify by depending on memmem-simple.
21808 2008-01-09 Bruno Haible <bruno@clisp.org>
21810 Work around OpenBSD 4.0 tdelete() bug.
21811 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
21812 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
21813 macros and don't redefine the enum values.
21814 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
21815 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
21816 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
21818 2008-01-09 Bruno Haible <bruno@clisp.org>
21820 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
21821 (main): Don't perform the tests if setlocale did not install a UTF-8
21822 locale. Needed on OpenBSD 4.0.
21823 * modules/wcwidth-tests (Depends-on): Add localcharset.
21825 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
21827 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
21828 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
21829 * NEWS: announce this.
21830 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
21832 2008-01-09 Simon Josefsson <simon@josefsson.org>
21833 and Eric Blake <ebb9@byu.net>
21835 Add memmem-simple module.
21836 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
21837 (gl_FUNC_MEMMEM): Separate performance from presence checks.
21838 * modules/memmem-simple: New file.
21839 * modules/memmem (Description): Tweak.
21840 * MODULES.html.sh (string handling): Mention new module.
21841 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
21842 addressed by memmem-simple.
21843 * NEWS: Document the difference.
21845 2008-01-09 Eric Blake <ebb9@byu.net>
21847 Give gcc some memmem optimization hints.
21848 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
21849 (strcasestr): Declare as pure.
21850 * modules/memmem (Maintainer): Claim my implementation.
21852 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21854 Support AIX 6.1 and higher.
21855 * build-aux/config.libpath: Likewise.
21856 * build-aux/config.rpath: Likewise.
21858 2008-01-08 Jim Meyering <meyering@redhat.com>
21859 Bruno Haible <bruno@clisp.org>
21861 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
21862 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
21863 Reported by Peter Fales in
21864 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
21866 2008-01-08 Bruno Haible <bruno@clisp.org>
21868 * modules/unictype/category-of (Depends-on): Add
21869 unictype/category-none.
21870 * modules/unictype/category-and-tests (Depends-on): Add
21871 unictype/category-{L,N,Lu,Nd}.
21872 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
21873 * modules/unictype/category-or-tests (Depends-on): Add
21874 unictype/category-{L,N}.
21875 * modules/unictype/category-name-tests (Depends-on): Add
21876 unictype/category-{Z,Nl}.
21877 Reported by Simon Josefsson.
21879 2008-01-08 Bruno Haible <bruno@clisp.org>
21881 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
21883 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
21884 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
21885 Reported by Peter Miller <millerp@canb.auug.org.au>.
21887 2008-01-08 Eric Blake <ebb9@byu.net>
21889 Rewrite memmem to guarantee linear complexity without malloc.
21890 * lib/memmem.c (memmem): Use Two-Way rather than
21891 Knuth-Morris-Pratt, to allow O(1) space usage.
21892 (critical_factorization, two_way_short_needle)
21893 (two_way_long_needle): New functions.
21894 (knuth_morris_pratt): Delete.
21895 * modules/memmem (Depends-on): No longer need malloca or stdbool.
21897 * tests/test-memmem.c (main): Add tests for periodic needle and
21898 sublinear performance.
21899 * doc/functions/memmem.texi (memmem): Document other deficiencies
21900 in cygwin and older glibc.
21902 2008-01-08 Bruno Haible <bruno@clisp.org>
21904 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
21907 2008-01-08 Mike Frysinger <vapier@gentoo.org>
21909 Add a configure time option: --disable-acl.
21910 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
21911 AC_ARG_ENABLE(acl).
21913 2008-01-06 Simon Josefsson <simon@josefsson.org>
21915 * tests/test-localename.c: Don't include obsolete "setenv.h".
21917 * modules/localename-tests (Depends-on): Need unsetenv.
21919 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21921 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
21923 2008-01-06 Colin Watson <cjwatson@debian.org>
21925 * users.txt: Add man-db.
21927 2008-01-07 Bruno Haible <bruno@clisp.org>
21929 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
21930 previous section name.
21932 2008-01-07 Bruno Haible <bruno@clisp.org>
21934 * lib/progname.c (set_program_name): Don't strip off a leading
21935 "lt-" prefix outside a .libs directory.
21936 Suggested by Paul Eggert.
21938 2008-01-01 Sylvain Beucler <beuc@gnu.org>
21939 Bruno Haible <bruno@clisp.org>
21941 Improve memory cleanup in 'relocatable' module.
21942 * lib/relocatable.h (compute_curr_prefix): Change return type to
21944 * lib/relocatable.c (compute_curr_prefix): Change return type to
21945 'char *'. Free curr_installdir after use.
21946 (relocate): Free curr_prefix_better after use.
21947 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
21949 2008-01-01 Bruno Haible <bruno@clisp.org>
21951 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
21952 failure on older glibc systems.
21953 Reported by Peter Fales <psfales@alcatel-lucent.com>.
21955 2008-01-05 Eric Blake <ebb9@byu.net>
21957 Avoid quadratic system memmem.
21958 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
21959 Reported by Ralf Wildenhues.
21961 Fix memmem test for mingw.
21962 * modules/memmem-tests (configure.ac): Check for alarm.
21963 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
21965 * doc/functions/memmem.texi: New file.
21966 * doc/gnulib.texi (Function Substitutes): Add memmem.
21967 Reported by Bruno Haible.
21969 2008-01-04 Bruno Haible <bruno@clisp.org>
21971 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
21972 Require gl_HEADER_STRINGS_H_DEFAULTS, not
21973 gl_HEADER_STRING_H_DEFAULTS.
21975 2008-01-04 Eric Blake <ebb9@byu.net>
21977 Shorten duration of memmem test.
21978 * tests/test-memmem.c (main): Use alarm to declare failure if test
21979 is taking too long.
21980 Reported by Ralf Wildenhues.
21982 2007-12-21 Simon Josefsson <simon@josefsson.org>
21984 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
21985 string, needed by strerror.
21987 2008-01-03 Colin Watson <cjwatson@debian.org>
21988 Bruno Haible <bruno@clisp.org>
21990 * doc/gnulib-tool.texi (Localization): New section.
21992 2008-01-02 Bruno Haible <bruno@clisp.org>
21994 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
21995 variables to 'unsigned char *' type.
21996 Reported by Paul Eggert.
21998 2008-01-02 Jim Meyering <jim@meyering.net>
22000 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
22002 2007-12-31 Jim Meyering <jim@meyering.net>
22004 Avoid use of private FTS type name.
22005 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
22007 2007-12-30 Karl Berry <karl@gnu.org>
22009 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
22010 work around defect in Texinfo and/or the standalone Info browser.
22012 2007-12-30 Bruno Haible <bruno@clisp.org>
22014 Unify 5 copies of the KMP code.
22015 * lib/str-kmp.h: New file.
22016 * lib/c-strcasestr.c: Include str-kmp.h.
22017 (knuth_morris_pratt): Remove function.
22018 (c_strcasestr): Update.
22019 * lib/c-strstr.c: Include str-kmp.h.
22020 (knuth_morris_pratt): Remove function.
22021 (c_strcasestr): Update.
22022 * lib/mbscasestr.c: Include str-kmp.h.
22023 (knuth_morris_pratt_unibyte): Remove function.
22024 * lib/mbsstr.c: Include str-kmp.h.
22025 (knuth_morris_pratt_unibyte): Remove function.
22026 * lib/strcasestr.c: Include str-kmp.h.
22027 (knuth_morris_pratt): Remove function.
22028 (strcasestr): Update.
22029 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
22030 * modules/c-strstr (Files): Likewise.
22031 * modules/mbscasestr (Files): Likewise.
22032 * modules/mbsstr (Files): Likewise.
22033 * modules/strcasestr (Files): Likewise.
22034 Suggested by Paul Eggert.
22036 2007-12-30 Bruno Haible <bruno@clisp.org>
22038 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
22041 2007-12-30 Bruno Haible <bruno@clisp.org>
22043 * lib/xmalloca.h: Include xalloc.h.
22044 (xnmalloca): New macro.
22046 2007-12-30 Bruno Haible <bruno@clisp.org>
22048 * lib/malloca.h (nmalloca): New macro.
22049 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
22050 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
22051 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
22052 knuth_morris_pratt_multibyte): Likewise.
22053 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
22054 knuth_morris_pratt_multibyte): Likewise.
22055 * lib/memmem.c (knuth_morris_pratt): Likewise.
22056 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
22058 2007-12-25 Bruno Haible <bruno@clisp.org>
22060 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
22061 * lib/glob.c: Don't include openat.h.
22062 (link_exists2_p): Add back the code that deals with the
22063 !GLOB_ALTDIRFUNC case.
22064 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
22065 let it do the filename concatenation.
22066 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
22067 * modules/glob (Depends-on): Remove openat.
22069 2007-12-31 Bruno Haible <bruno@clisp.org>
22071 * modules/dirfd (License): Change to LGPLv2+.
22072 Approved by Jim Meyering.
22074 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
22076 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
22077 when multiplying M by sizeof (size_t).
22079 2007-12-10 Martin Lambers <marlam@marlam.de>
22081 Override getpagesize on mingw.
22082 * lib/getpagesize.c: New file.
22083 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
22084 * modules/getpagesize (Files): Add lib/getpagesize.c.
22085 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
22086 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22087 REPLACE_GETPAGESIZE.
22088 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
22090 2007-12-25 Bruno Haible <bruno@clisp.org>
22092 * modules/localcharset (Notice): New field.
22093 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
22094 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
22096 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
22097 Bruno Haible <bruno@clisp.org>
22099 Avoid using the syntax symbol() in formatted documentation.
22100 * MODULES.html.sh (func_module): When replacing symbol() with a
22101 hyperlink, remove the parentheses. Show an error if some remain.
22102 Recognize and render the '...' syntax.
22103 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
22104 Rework. Add paragraph about GCC's inlining.
22105 * doc/alloca.texi: Likewise.
22106 * doc/error.texi: Remove parentheses from symbol reference.
22107 * doc/gnulib-intro.texi: Likewise.
22108 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
22109 * modules/fnmatch (Description): Reword to say "the ... function".
22110 * modules/full-read (Description): Likewise.
22111 * modules/full-write (Description): Likewise.
22112 * modules/safe-read (Description): Likewise.
22113 * modules/safe-write (Description): Likewise.
22114 * modules/strchrnul (Description): Likewise.
22115 * modules/trim (Description): Likewise.
22116 * modules/error (Description): Remove parentheses from symbol
22118 * modules/verror (Description): Likewise.
22119 Reported by Karl Berry.
22121 2007-12-25 Bruno Haible <bruno@clisp.org>
22123 Fixup after 2007-10-16 commit.
22124 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
22126 2007-12-24 Bruno Haible <bruno@clisp.org>
22128 Make --enable-relocatable work with DESTDIR.
22129 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
22130 to compute installdir from destprog.
22131 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
22132 also set the RELOC_DESTDIR variable.
22133 Reported by Левашев Иван <octagram@bluebottle.com>.
22135 2007-12-24 Bruno Haible <bruno@clisp.org>
22137 Fix link error due to xalloc_die().
22138 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
22140 * lib/relocwrapper.c: Update comments.
22141 * build-aux/install-reloc: Remove xreadlink.c from file list.
22142 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
22144 Reported by Левашев Иван <octagram@bluebottle.com>.
22146 2007-12-24 Bruno Haible <bruno@clisp.org>
22148 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
22149 * lib/setenv.h: Remove file.
22150 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
22152 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
22153 (Depends-on): Add stdlib.
22154 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
22156 (Include): Replace setenv.h with <stdlib.h>.
22157 * modules/unsetenv: New file.
22158 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
22159 * lib/unsetenv.c: Include <stdlib.h> first.
22160 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
22161 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
22162 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
22163 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
22164 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
22165 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
22166 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
22167 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
22168 * doc/functions/unsetenv.texi: Update.
22169 * modules/xsetenv (Depends-on): Add unsetenv.
22170 * modules/getdate (Depends-on): Likewise.
22171 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
22172 * lib/xsetenv.c: Don't include setenv.h.
22173 * lib/getdate.y: Likewise.
22174 * lib/relocwrapper.c: Likewise.
22175 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
22176 (Depends-on): Add stdlib.
22177 * NEWS: Mention the changes.
22178 Reported by Левашев Иван <octagram@bluebottle.com>.
22180 2007-12-23 Bruno Haible <bruno@clisp.org>
22182 * lib/memmem.c (memmem): Use lowercase variable names. Tab
22185 2007-12-23 Bruno Haible <bruno@clisp.org>
22187 * lib/c-strcasestr.c: Add more comments.
22188 * lib/c-strstr.c: Likewise.
22189 * lib/mbscasestr.c: Likewise.
22190 * lib/mbsstr.c: Likewise.
22191 * lib/strcasestr.c: Likewise.
22192 * lib/memmem.c: Likewise.
22194 2007-12-23 Bruno Haible <bruno@clisp.org>
22196 * tests/test-memmem.c: Include <string.h> first.
22198 2007-12-22 Bruno Haible <bruno@clisp.org>
22200 * gnulib-tool (func_create_testdir): Change $auxdir while generating
22201 the contents of $testsbase.
22202 Reported by Ralf Wildenhues.
22204 2007-12-22 Bruno Haible <bruno@clisp.org>
22206 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
22207 two variables local_ldadd_before, local_ldadd_last.
22209 2007-12-20 Eric Blake <ebb9@byu.net>
22211 Work around circular library issue when cross-compiling.
22212 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
22213 that progname.o does not need to pull in rpl_memcmp.
22215 2007-12-19 Eric Blake <ebb9@byu.net>
22217 Fix memmem to avoid O(n^2) worst-case complexity.
22218 * lib/memmem.c (knuth_morris_pratt): New function.
22219 (memmem): Use it if first few naive iterations fail.
22220 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
22221 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
22222 * modules/memchr (License): Likewise.
22223 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
22225 * tests/test-memmem.c: Rewrite, borrowing ideas from
22226 test-mbsstr1.c; the old version wouldn't even compile!
22227 * modules/memmem-tests: New file.
22228 * lib/string.in.h (rpl_memmem): Add declaration.
22229 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
22230 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
22233 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
22235 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
22236 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
22237 before any system include files, and undef after them all. This
22238 should fix a problem on VMS reported by John E. Malmberg in
22239 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
22241 2007-12-17 Eric Blake <ebb9@byu.net>
22243 Revert addition of verify, for BSD/OS.
22244 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
22245 can't handle large files, for the sake of obsolete platforms.
22246 * modules/fseeko (Depends-on): Remove verify.
22247 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
22248 * doc/functions/ftello.texi (ftello): Likewise.
22249 * doc/functions/fgetpos.texi (fgetpos): Likewise.
22250 Reported by Larry Jones.
22252 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
22254 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
22255 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
22257 2007-12-17 Jim Meyering <meyering@redhat.com>
22259 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
22260 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
22261 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
22262 * modules/getcwd (Depends-on): Add openat.
22263 Reported by Petr Salinger.
22265 2007-12-17 Bruno Haible <bruno@clisp.org>
22267 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
22268 avoid a segmentation fault of the configure test on x86_64 systems.
22270 2007-12-15 Jim Meyering <meyering@redhat.com>
22272 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
22274 2007-12-13 Eric Blake <ebb9@byu.net>
22276 Another fseek test.
22277 * tests/test-fseek.c (main): Also test ungetc handling.
22278 * tests/test-fseeko.c (main): Likewise.
22279 * modules/fseeko (Depends-on): Add verify.
22280 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
22282 Reported by Larry Jones.
22284 Fix fseeko on mingw.
22285 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
22288 Beef up fseek tests.
22289 * tests/test-fseek.c (main): Also test eof handling.
22290 * tests/test-fseeko.c (main): Likewise.
22291 Reported by Larry Jones.
22293 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
22295 Fix fseeko on BSD-based platforms.
22296 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
22299 2007-12-12 Eric Blake <ebb9@byu.net>
22301 Allow circular dependency of separate libtests.a
22302 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
22305 2007-12-11 Eric Blake <ebb9@byu.net>
22307 Fix bug with -0.0L in previous patch.
22308 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
22309 * tests/test-isnan.c (main): Also test on zeroes.
22310 * tests/test-isnanf.c (main): Likewise.
22311 * tests/test-isnanl.h (main): Likewise.
22313 Detect pseudo-denormals on x86 even when cross-compiling.
22314 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
22315 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
22316 invalid bit patterns that happen to satisfy ==.
22318 Avoid link failures with separate libtests.a.
22319 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
22320 last, to satisfy circular dependencies.
22322 2007-12-11 Eric Blake <ebb9@byu.net>
22323 and Bruno Haible <bruno@clisp.org>
22325 Fix OpenBSD 4.0 <float.h> handling of long double.
22326 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
22327 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
22328 * doc/headers/float.texi (float.h): Document OpenBSD bug.
22330 2007-12-11 Jim Meyering <meyering@redhat.com>
22332 * users.txt: Add libvirt.
22334 Support versions of autoconf prior to 2.59c.
22335 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
22336 if it is not already defined.
22338 2007-12-09 Bruno Haible <bruno@clisp.org>
22340 Let 'gnulib-tool --import' collect sources needed for the tests in
22341 tests/ rather than in lib/.
22342 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
22343 argument. If true, add rules to generate libtests.a, and put libtests.a
22344 into $(LDADD). Consider source files in subdirectories and set
22346 (func_emit_initmacro_start, func_emit_initmacro_end,
22347 func_emit_initmacro_done): Pass all arguments explicitly.
22348 (func_import): Determine two module lists main_modules,
22349 testsrelated_modules. Determine use_libtests. Determine two variables
22350 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
22351 instead of just sed_transform_lib_file. Determine two variables
22352 main_files and testsrelated_files. Compute 'files' as the union of
22353 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
22354 func_add_or_update. In the generated gnulib-comp.m4, collect the
22355 object files for tests/ in different variables than those for lib/.
22356 Substitute LIBTESTS_LIBDEPS.
22357 (func_create_testdir): Combine the uses_subdirs results from
22358 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
22360 2007-12-09 Bruno Haible <bruno@clisp.org>
22362 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
22363 the build-aux directory.
22365 2007-12-09 Bruno Haible <bruno@clisp.org>
22367 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
22368 introduced on 2006-09-09.
22370 2007-12-07 Jim Meyering <meyering@redhat.com>
22372 Let these macros work also with autoconf-2.59.
22373 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
22374 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
22375 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22377 2007-12-06 Jim Meyering <meyering@redhat.com>
22379 Avoid a configure-time syntax error in gl_FUNC_ACL.
22380 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
22381 function in each branch, before testing the cache variable.
22383 2007-12-04 Eric Blake <ebb9@byu.net>
22385 Make scripts executable.
22386 * build-aux/config.guess: Add execute permissions.
22387 * build-aux/config.sub: Likewise.
22388 * build-aux/gendocs.sh: Likewise.
22390 Fix frexp on mingw.
22391 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
22393 * doc/functions/frexp.texi (frexp): Document the bug.
22395 Make cygwin fseeko check more reliable.
22396 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
22397 version numbers, rather than unrelated feature check.
22398 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
22399 * doc/functions/ftello.texi (ftello): Likewise.
22400 Reported by Bruno Haible.
22402 * m4/strerror.m4: Bump version number.
22404 2007-12-03 Bruno Haible <bruno@clisp.org>
22406 * doc/functions/mprotect.texi: Mention the mingw problem.
22408 2007-12-03 Eric Blake <ebb9@byu.net>
22410 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
22411 REPLACE_STRERROR is initialized before this macro.
22413 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
22415 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
22416 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
22417 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
22418 put -lsec in even for programs other than 'ls'. This fixes a problem
22419 for gettext reported by Bruno Haible in
22420 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
22421 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
22422 Add support for Solaris 10. This isn't efficient, but should get the
22425 2007-12-03 James Youngman <jay@gnu.org>
22427 * doc/regexprops-generic.texi: change "an close-group" to "a
22428 close-group" and "illegal" to "not allowed".
22430 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22432 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
22433 pr_byname.h. Needed for the rare case when the maintainer has done
22434 "make maintainer-clean" in the source directory and then attempts a
22435 build outside the source directory.
22436 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
22439 2007-12-02 Martin Lambers <marlam@marlam.de>
22440 Bruno Haible <bruno@clisp.org>
22442 * lib/getpagesize.h: Remove file.
22443 * lib/unistd.in.h: Include declaration of getpagesize here.
22444 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
22445 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
22447 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
22448 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
22449 * modules/getpagesize (Files): Remove lib/getpagesize.h.
22450 (Depends-on): Add unistd.
22451 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
22452 (Include): Use <unistd.h> instead of getpagesize.h.
22453 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
22454 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
22455 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
22456 gl_GETPAGESIZE invocation, already handled by module dependency.
22457 * lib/pagealign_alloc.c: Don't include getpagesize.h.
22459 2007-12-02 Bruno Haible <bruno@clisp.org>
22461 * modules/strings-tests: New file.
22462 * tests/test-strings.c: New file.
22464 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
22465 * lib/strings.in.h: New file.
22466 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
22467 * m4/strings_h.m4: New file.
22468 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
22469 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
22470 * modules/strings: New file.
22471 * modules/string (Makefile.am): Update.
22472 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
22473 Reported by Karl Berry.
22475 2007-12-01 Eric Blake <ebb9@byu.net>
22477 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
22478 accomodate fix in cygwin 1.5.25.
22480 2007-12-01 Jim Meyering <meyering@redhat.com>
22482 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
22483 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
22484 that would inhibit utf8-optimization of a regexp containing line-
22485 or buffer-anchors, e.g., `^', `$'.
22487 2007-11-30 Bruno Haible <bruno@clisp.org>
22489 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
22490 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
22491 glthread_recursive_lock_init.
22492 * lib/lock.c (glthread_recursive_lock_init)
22493 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
22494 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
22496 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
22498 New function qset_acl, like set_acl but with syscall semantics.
22499 * lib/acl.h (qset_acl): New decl.
22500 * lib/acl.c (qset_acl): New function.
22501 (set_acl): Use new function. Use more-consistent diagnostics.
22503 2007-11-28 Jim Meyering <meyering@redhat.com>
22505 * modules/physmem (License): Change from GPL to LGPLv2+.
22507 2007-11-26 Bruno Haible <bruno@clisp.org>
22509 * lib/vasnprintf.c (decode_long_double): Don't abort if the
22510 'long double' type has excess precision.
22511 Reported by Jim Meyering in
22512 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
22514 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22516 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
22517 Sync from <http://gnu.org/licenses>.
22518 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
22519 with license text from same location.
22520 * doc/maintain.texi, doc/standards.texi: Sync from
22521 <http://savannah.gnu.org/projects/gnustandards>.
22523 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22524 and Jim Meyering <meyering@redhat.com>
22526 Adjust getdate' grammar to accept a slightly more regular language.
22527 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
22528 Before, the former was rejected.
22529 * lib/getdate.y (digits_to_date_time): New function, factored
22531 (number): ...here. Just call digits_to_date_time.
22532 (hybrid): New non-terminal to handle an <unsigned number,
22533 signed relative offset> sequence consistently.
22535 2007-11-18 Jim Meyering <meyering@redhat.com>
22537 Pull my changes from coreutils:
22538 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
22539 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
22540 use of $gnulib_tool_option_extras, so that it's separated from the
22541 preceding argument.
22543 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
22544 * build-aux/bootstrap (cp_mark_as_generated): Create any required
22545 parent destination directories before copying a file into place.
22547 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
22549 bootstrap: work also with 4-argument variant of AC_INIT
22550 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
22552 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
22554 Port test-getaddrinfo to Solaris.
22555 Problem reported by Bruno Haible in
22556 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
22557 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
22558 explanation of setting 'hints'.
22559 Don't reject an implementation merely because it returns EAI_SERVICE.
22560 (EAI_SERVICE): Define to 0 if not defined.
22562 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
22564 The license of gnu-make and posix-shell is now "GPLed build tool".
22565 * modules/gnu-make (License): Likewise.
22566 * modules/posix-shell (License): Likewise.
22568 New module posix-shell, for determining a POSIX shell
22569 or perhaps something that is close enough to a POSIX shell.
22570 * m4/posix-shell.m4: New file.
22571 * modules/posix-shell: New file.
22573 * MODULES.html.sh: Mention new module.
22575 New module gnu-make, for determining whether we're using GNU Make.
22576 * m4/gnu-make.m4: New file.
22577 * modules/gnu-make: New file.
22578 * MODULES.html.sh: Mention new module.
22580 2007-11-14 Jim Meyering <meyering@redhat.com>
22582 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
22583 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
22584 use this macro to create a function _definition_.
22585 Remove useless "#undef ARGMATCH_DIE".
22587 2007-11-14 Bruno Haible <bruno@clisp.org>
22589 * lib/config.charset: Update for OpenBSD 4.1.
22590 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
22592 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
22594 Document 64-bit #if problems in stdint.texi.
22595 * doc/headers/stdint.texi (stdint.h): Mention problems with
22596 64-bit-#if, and how to work around them.
22598 Don't insist on 'long long int' support in the preprocessor. It
22599 breaks too many things. For example, PRIdMAX still uses a 'long
22600 long int' format with the latest Sun compiler, even though
22601 HAVE_LONG_LONG_INT isn't defined due to that compiler's
22602 preprocessor problem. This causes the latest coreutils to dump
22603 core on Solaris 10 sparc with the Sun C compiler.
22604 Instead, fix the 2007-10-16 problem in a different way, by evaluating
22605 the troublesome expressions at configure-time, not at #if-time.
22606 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
22608 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
22609 compile-time C checks, done at 'configure'-time.
22610 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
22611 * modules/inttypes (Makefile): Substitute the new symbols that
22612 gl_INTTYPES_H now generates.
22613 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
22615 2007-11-12 Bruno Haible <bruno@clisp.org>
22617 Tests for Unicode character classification functions.
22619 * modules/unictype/bidicategory-byname-tests: New file.
22620 * modules/unictype/bidicategory-name-tests: New file.
22621 * modules/unictype/bidicategory-of-tests: New file.
22622 * modules/unictype/bidicategory-test-tests: New file.
22623 * modules/unictype/block-list-tests: New file.
22624 * modules/unictype/block-of-tests: New file.
22625 * modules/unictype/block-test-tests: New file.
22626 * modules/unictype/category-C-tests: New file.
22627 * modules/unictype/category-Cc-tests: New file.
22628 * modules/unictype/category-Cf-tests: New file.
22629 * modules/unictype/category-Cn-tests: New file.
22630 * modules/unictype/category-Co-tests: New file.
22631 * modules/unictype/category-Cs-tests: New file.
22632 * modules/unictype/category-L-tests: New file.
22633 * modules/unictype/category-Ll-tests: New file.
22634 * modules/unictype/category-Lm-tests: New file.
22635 * modules/unictype/category-Lo-tests: New file.
22636 * modules/unictype/category-Lt-tests: New file.
22637 * modules/unictype/category-Lu-tests: New file.
22638 * modules/unictype/category-M-tests: New file.
22639 * modules/unictype/category-Mc-tests: New file.
22640 * modules/unictype/category-Me-tests: New file.
22641 * modules/unictype/category-Mn-tests: New file.
22642 * modules/unictype/category-N-tests: New file.
22643 * modules/unictype/category-Nd-tests: New file.
22644 * modules/unictype/category-Nl-tests: New file.
22645 * modules/unictype/category-No-tests: New file.
22646 * modules/unictype/category-P-tests: New file.
22647 * modules/unictype/category-Pc-tests: New file.
22648 * modules/unictype/category-Pd-tests: New file.
22649 * modules/unictype/category-Pe-tests: New file.
22650 * modules/unictype/category-Pf-tests: New file.
22651 * modules/unictype/category-Pi-tests: New file.
22652 * modules/unictype/category-Po-tests: New file.
22653 * modules/unictype/category-Ps-tests: New file.
22654 * modules/unictype/category-S-tests: New file.
22655 * modules/unictype/category-Sc-tests: New file.
22656 * modules/unictype/category-Sk-tests: New file.
22657 * modules/unictype/category-Sm-tests: New file.
22658 * modules/unictype/category-So-tests: New file.
22659 * modules/unictype/category-Z-tests: New file.
22660 * modules/unictype/category-Zl-tests: New file.
22661 * modules/unictype/category-Zp-tests: New file.
22662 * modules/unictype/category-Zs-tests: New file.
22663 * modules/unictype/category-and-not-tests: New file.
22664 * modules/unictype/category-and-tests: New file.
22665 * modules/unictype/category-byname-tests: New file.
22666 * modules/unictype/category-name-tests: New file.
22667 * modules/unictype/category-none-tests: New file.
22668 * modules/unictype/category-of-tests: New file.
22669 * modules/unictype/category-or-tests: New file.
22670 * modules/unictype/category-test-withtable-tests: New file.
22671 * modules/unictype/combining-class-tests: New file.
22672 * modules/unictype/ctype-alnum-tests: New file.
22673 * modules/unictype/ctype-alpha-tests: New file.
22674 * modules/unictype/ctype-blank-tests: New file.
22675 * modules/unictype/ctype-cntrl-tests: New file.
22676 * modules/unictype/ctype-digit-tests: New file.
22677 * modules/unictype/ctype-graph-tests: New file.
22678 * modules/unictype/ctype-lower-tests: New file.
22679 * modules/unictype/ctype-print-tests: New file.
22680 * modules/unictype/ctype-punct-tests: New file.
22681 * modules/unictype/ctype-space-tests: New file.
22682 * modules/unictype/ctype-upper-tests: New file.
22683 * modules/unictype/ctype-xdigit-tests: New file.
22684 * modules/unictype/decimal-digit-tests: New file.
22685 * modules/unictype/digit-tests: New file.
22686 * modules/unictype/mirror-tests: New file.
22687 * modules/unictype/numeric-tests: New file.
22688 * modules/unictype/property-alphabetic-tests: New file.
22689 * modules/unictype/property-ascii-hex-digit-tests: New file.
22690 * modules/unictype/property-bidi-arabic-digit-tests: New file.
22691 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
22692 * modules/unictype/property-bidi-block-separator-tests: New file.
22693 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
22694 * modules/unictype/property-bidi-common-separator-tests: New file.
22695 * modules/unictype/property-bidi-control-tests: New file.
22696 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
22697 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
22698 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
22699 * modules/unictype/property-bidi-european-digit-tests: New file.
22700 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
22701 * modules/unictype/property-bidi-left-to-right-tests: New file.
22702 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
22703 * modules/unictype/property-bidi-other-neutral-tests: New file.
22704 * modules/unictype/property-bidi-pdf-tests: New file.
22705 * modules/unictype/property-bidi-segment-separator-tests: New file.
22706 * modules/unictype/property-bidi-whitespace-tests: New file.
22707 * modules/unictype/property-byname-tests: New file.
22708 * modules/unictype/property-combining-tests: New file.
22709 * modules/unictype/property-composite-tests: New file.
22710 * modules/unictype/property-currency-symbol-tests: New file.
22711 * modules/unictype/property-dash-tests: New file.
22712 * modules/unictype/property-decimal-digit-tests: New file.
22713 * modules/unictype/property-default-ignorable-code-point-tests: New file.
22714 * modules/unictype/property-deprecated-tests: New file.
22715 * modules/unictype/property-diacritic-tests: New file.
22716 * modules/unictype/property-extender-tests: New file.
22717 * modules/unictype/property-format-control-tests: New file.
22718 * modules/unictype/property-grapheme-base-tests: New file.
22719 * modules/unictype/property-grapheme-extend-tests: New file.
22720 * modules/unictype/property-grapheme-link-tests: New file.
22721 * modules/unictype/property-hex-digit-tests: New file.
22722 * modules/unictype/property-hyphen-tests: New file.
22723 * modules/unictype/property-id-continue-tests: New file.
22724 * modules/unictype/property-id-start-tests: New file.
22725 * modules/unictype/property-ideographic-tests: New file.
22726 * modules/unictype/property-ids-binary-operator-tests: New file.
22727 * modules/unictype/property-ids-trinary-operator-tests: New file.
22728 * modules/unictype/property-ignorable-control-tests: New file.
22729 * modules/unictype/property-iso-control-tests: New file.
22730 * modules/unictype/property-join-control-tests: New file.
22731 * modules/unictype/property-left-of-pair-tests: New file.
22732 * modules/unictype/property-line-separator-tests: New file.
22733 * modules/unictype/property-logical-order-exception-tests: New file.
22734 * modules/unictype/property-lowercase-tests: New file.
22735 * modules/unictype/property-math-tests: New file.
22736 * modules/unictype/property-non-break-tests: New file.
22737 * modules/unictype/property-not-a-character-tests: New file.
22738 * modules/unictype/property-numeric-tests: New file.
22739 * modules/unictype/property-other-alphabetic-tests: New file.
22740 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
22741 * modules/unictype/property-other-grapheme-extend-tests: New file.
22742 * modules/unictype/property-other-id-continue-tests: New file.
22743 * modules/unictype/property-other-id-start-tests: New file.
22744 * modules/unictype/property-other-lowercase-tests: New file.
22745 * modules/unictype/property-other-math-tests: New file.
22746 * modules/unictype/property-other-uppercase-tests: New file.
22747 * modules/unictype/property-paired-punctuation-tests: New file.
22748 * modules/unictype/property-paragraph-separator-tests: New file.
22749 * modules/unictype/property-pattern-syntax-tests: New file.
22750 * modules/unictype/property-pattern-white-space-tests: New file.
22751 * modules/unictype/property-private-use-tests: New file.
22752 * modules/unictype/property-punctuation-tests: New file.
22753 * modules/unictype/property-quotation-mark-tests: New file.
22754 * modules/unictype/property-radical-tests: New file.
22755 * modules/unictype/property-sentence-terminal-tests: New file.
22756 * modules/unictype/property-soft-dotted-tests: New file.
22757 * modules/unictype/property-space-tests: New file.
22758 * modules/unictype/property-terminal-punctuation-tests: New file.
22759 * modules/unictype/property-test-tests: New file.
22760 * modules/unictype/property-titlecase-tests: New file.
22761 * modules/unictype/property-unassigned-code-value-tests: New file.
22762 * modules/unictype/property-unified-ideograph-tests: New file.
22763 * modules/unictype/property-uppercase-tests: New file.
22764 * modules/unictype/property-variation-selector-tests: New file.
22765 * modules/unictype/property-white-space-tests: New file.
22766 * modules/unictype/property-xid-continue-tests: New file.
22767 * modules/unictype/property-xid-start-tests: New file.
22768 * modules/unictype/property-zero-width-tests: New file.
22769 * modules/unictype/scripts-tests: New file.
22770 * modules/unictype/syntax-c-ident-tests: New file.
22771 * modules/unictype/syntax-c-whitespace-tests: New file.
22772 * modules/unictype/syntax-java-ident-tests: New file.
22773 * modules/unictype/syntax-java-whitespace-tests: New file.
22774 * tests/unictype/test-bidi_byname.c: New file.
22775 * tests/unictype/test-bidi_name.c: New file.
22776 * tests/unictype/test-bidi_of.c: New file.
22777 * tests/unictype/test-bidi_test.c: New file.
22778 * tests/unictype/test-block_list.c: New file.
22779 * tests/unictype/test-block_of.c: New file.
22780 * tests/unictype/test-block_test.c: New file.
22781 * tests/unictype/test-categ_and.c: New file.
22782 * tests/unictype/test-categ_and_not.c: New file.
22783 * tests/unictype/test-categ_byname.c: New file.
22784 * tests/unictype/test-categ_name.c: New file.
22785 * tests/unictype/test-categ_none.c: New file.
22786 * tests/unictype/test-categ_of.c: New file.
22787 * tests/unictype/test-categ_or.c: New file.
22788 * tests/unictype/test-categ_test_withtable.c: New file.
22789 * tests/unictype/test-combining.c: New file.
22790 * tests/unictype/test-decdigit.c: New file.
22791 * tests/unictype/test-digit.c: New file.
22792 * tests/unictype/test-mirror.c: New file.
22793 * tests/unictype/test-numeric.c: New file.
22794 * tests/unictype/test-pr_byname.c: New file.
22795 * tests/unictype/test-pr_test.c: New file.
22796 * tests/unictype/test-predicate-part1.h: New file.
22797 * tests/unictype/test-predicate-part2.h: New file.
22798 * tests/unictype/test-scripts.c: New file.
22799 * tests/unictype/test-sy_c_ident.c: New file.
22800 * tests/unictype/test-sy_java_ident.c: New file.
22802 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
22804 * tests/unictype/test-categ_Cc.c: Likewise.
22805 * tests/unictype/test-categ_Cf.c: Likewise.
22806 * tests/unictype/test-categ_Cn.c: Likewise.
22807 * tests/unictype/test-categ_Co.c: Likewise.
22808 * tests/unictype/test-categ_Cs.c: Likewise.
22809 * tests/unictype/test-categ_L.c: Likewise.
22810 * tests/unictype/test-categ_Ll.c: Likewise.
22811 * tests/unictype/test-categ_Lm.c: Likewise.
22812 * tests/unictype/test-categ_Lo.c: Likewise.
22813 * tests/unictype/test-categ_Lt.c: Likewise.
22814 * tests/unictype/test-categ_Lu.c: Likewise.
22815 * tests/unictype/test-categ_M.c: Likewise.
22816 * tests/unictype/test-categ_Mc.c: Likewise.
22817 * tests/unictype/test-categ_Me.c: Likewise.
22818 * tests/unictype/test-categ_Mn.c: Likewise.
22819 * tests/unictype/test-categ_N.c: Likewise.
22820 * tests/unictype/test-categ_Nd.c: Likewise.
22821 * tests/unictype/test-categ_Nl.c: Likewise.
22822 * tests/unictype/test-categ_No.c: Likewise.
22823 * tests/unictype/test-categ_P.c: Likewise.
22824 * tests/unictype/test-categ_Pc.c: Likewise.
22825 * tests/unictype/test-categ_Pd.c: Likewise.
22826 * tests/unictype/test-categ_Pe.c: Likewise.
22827 * tests/unictype/test-categ_Pf.c: Likewise.
22828 * tests/unictype/test-categ_Pi.c: Likewise.
22829 * tests/unictype/test-categ_Po.c: Likewise.
22830 * tests/unictype/test-categ_Ps.c: Likewise.
22831 * tests/unictype/test-categ_S.c: Likewise.
22832 * tests/unictype/test-categ_Sc.c: Likewise.
22833 * tests/unictype/test-categ_Sk.c: Likewise.
22834 * tests/unictype/test-categ_Sm.c: Likewise.
22835 * tests/unictype/test-categ_So.c: Likewise.
22836 * tests/unictype/test-categ_Z.c: Likewise.
22837 * tests/unictype/test-categ_Zl.c: Likewise.
22838 * tests/unictype/test-categ_Zp.c: Likewise.
22839 * tests/unictype/test-categ_Zs.c: Likewise.
22840 * tests/unictype/test-ctype_alnum.c: Likewise.
22841 * tests/unictype/test-ctype_alpha.c: Likewise.
22842 * tests/unictype/test-ctype_blank.c: Likewise.
22843 * tests/unictype/test-ctype_cntrl.c: Likewise.
22844 * tests/unictype/test-ctype_digit.c: Likewise.
22845 * tests/unictype/test-ctype_graph.c: Likewise.
22846 * tests/unictype/test-ctype_lower.c: Likewise.
22847 * tests/unictype/test-ctype_print.c: Likewise.
22848 * tests/unictype/test-ctype_punct.c: Likewise.
22849 * tests/unictype/test-ctype_space.c: Likewise.
22850 * tests/unictype/test-ctype_upper.c: Likewise.
22851 * tests/unictype/test-ctype_xdigit.c: Likewise.
22852 * tests/unictype/test-decdigit.h: Likewise.
22853 * tests/unictype/test-digit.h: Likewise.
22854 * tests/unictype/test-numeric.h: Likewise.
22855 * tests/unictype/test-pr_alphabetic.c: Likewise.
22856 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
22857 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
22858 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
22859 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
22860 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
22861 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
22862 * tests/unictype/test-pr_bidi_control.c: Likewise.
22863 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
22864 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
22865 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
22866 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
22867 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
22868 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
22869 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
22870 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
22871 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
22872 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
22873 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
22874 * tests/unictype/test-pr_combining.c: Likewise.
22875 * tests/unictype/test-pr_composite.c: Likewise.
22876 * tests/unictype/test-pr_currency_symbol.c: Likewise.
22877 * tests/unictype/test-pr_dash.c: Likewise.
22878 * tests/unictype/test-pr_decimal_digit.c: Likewise.
22879 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
22880 * tests/unictype/test-pr_deprecated.c: Likewise.
22881 * tests/unictype/test-pr_diacritic.c: Likewise.
22882 * tests/unictype/test-pr_extender.c: Likewise.
22883 * tests/unictype/test-pr_format_control.c: Likewise.
22884 * tests/unictype/test-pr_grapheme_base.c: Likewise.
22885 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
22886 * tests/unictype/test-pr_grapheme_link.c: Likewise.
22887 * tests/unictype/test-pr_hex_digit.c: Likewise.
22888 * tests/unictype/test-pr_hyphen.c: Likewise.
22889 * tests/unictype/test-pr_id_continue.c: Likewise.
22890 * tests/unictype/test-pr_id_start.c: Likewise.
22891 * tests/unictype/test-pr_ideographic.c: Likewise.
22892 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
22893 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
22894 * tests/unictype/test-pr_ignorable_control.c: Likewise.
22895 * tests/unictype/test-pr_iso_control.c: Likewise.
22896 * tests/unictype/test-pr_join_control.c: Likewise.
22897 * tests/unictype/test-pr_left_of_pair.c: Likewise.
22898 * tests/unictype/test-pr_line_separator.c: Likewise.
22899 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
22900 * tests/unictype/test-pr_lowercase.c: Likewise.
22901 * tests/unictype/test-pr_math.c: Likewise.
22902 * tests/unictype/test-pr_non_break.c: Likewise.
22903 * tests/unictype/test-pr_not_a_character.c: Likewise.
22904 * tests/unictype/test-pr_numeric.c: Likewise.
22905 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
22906 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
22907 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
22908 * tests/unictype/test-pr_other_id_continue.c: Likewise.
22909 * tests/unictype/test-pr_other_id_start.c: Likewise.
22910 * tests/unictype/test-pr_other_lowercase.c: Likewise.
22911 * tests/unictype/test-pr_other_math.c: Likewise.
22912 * tests/unictype/test-pr_other_uppercase.c: Likewise.
22913 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
22914 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
22915 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
22916 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
22917 * tests/unictype/test-pr_private_use.c: Likewise.
22918 * tests/unictype/test-pr_punctuation.c: Likewise.
22919 * tests/unictype/test-pr_quotation_mark.c: Likewise.
22920 * tests/unictype/test-pr_radical.c: Likewise.
22921 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
22922 * tests/unictype/test-pr_soft_dotted.c: Likewise.
22923 * tests/unictype/test-pr_space.c: Likewise.
22924 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
22925 * tests/unictype/test-pr_titlecase.c: Likewise.
22926 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
22927 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
22928 * tests/unictype/test-pr_uppercase.c: Likewise.
22929 * tests/unictype/test-pr_variation_selector.c: Likewise.
22930 * tests/unictype/test-pr_white_space.c: Likewise.
22931 * tests/unictype/test-pr_xid_continue.c: Likewise.
22932 * tests/unictype/test-pr_xid_start.c: Likewise.
22933 * tests/unictype/test-pr_zero_width.c: Likewise.
22934 * tests/unictype/test-sy_c_whitespace.c: Likewise.
22935 * tests/unictype/test-sy_java_whitespace.c: Likewise.
22937 2007-11-12 Bruno Haible <bruno@clisp.org>
22939 Unicode character classification functions.
22940 * lib/unictype.h: New file.
22941 * modules/unictype/base: New file.
22942 * modules/unictype/category-L: New file.
22943 * modules/unictype/category-Lu: New file.
22944 * modules/unictype/category-Ll: New file.
22945 * modules/unictype/category-Lt: New file.
22946 * modules/unictype/category-Lm: New file.
22947 * modules/unictype/category-Lo: New file.
22948 * modules/unictype/category-M: New file.
22949 * modules/unictype/category-Mn: New file.
22950 * modules/unictype/category-Mc: New file.
22951 * modules/unictype/category-Me: New file.
22952 * modules/unictype/category-N: New file.
22953 * modules/unictype/category-Nd: New file.
22954 * modules/unictype/category-Nl: New file.
22955 * modules/unictype/category-No: New file.
22956 * modules/unictype/category-P: New file.
22957 * modules/unictype/category-Pc: New file.
22958 * modules/unictype/category-Pd: New file.
22959 * modules/unictype/category-Ps: New file.
22960 * modules/unictype/category-Pe: New file.
22961 * modules/unictype/category-Pi: New file.
22962 * modules/unictype/category-Pf: New file.
22963 * modules/unictype/category-Po: New file.
22964 * modules/unictype/category-S: New file.
22965 * modules/unictype/category-Sm: New file.
22966 * modules/unictype/category-Sc: New file.
22967 * modules/unictype/category-Sk: New file.
22968 * modules/unictype/category-So: New file.
22969 * modules/unictype/category-Z: New file.
22970 * modules/unictype/category-Zs: New file.
22971 * modules/unictype/category-Zl: New file.
22972 * modules/unictype/category-Zp: New file.
22973 * modules/unictype/category-C: New file.
22974 * modules/unictype/category-Cc: New file.
22975 * modules/unictype/category-Cf: New file.
22976 * modules/unictype/category-Cs: New file.
22977 * modules/unictype/category-Co: New file.
22978 * modules/unictype/category-Cn: New file.
22979 * modules/unictype/category-or: New file.
22980 * modules/unictype/category-of: New file.
22981 * modules/unictype/category-test: New file.
22982 * modules/unictype/category-test-withtable: New file.
22983 * modules/unictype/category-byname: New file.
22984 * modules/unictype/category-none: New file.
22985 * modules/unictype/category-and: New file.
22986 * modules/unictype/category-and-not: New file.
22987 * modules/unictype/category-name: New file.
22988 * modules/unictype/combining-class: New file.
22989 * modules/unictype/category-all: New file.
22990 * modules/unictype/bidicategory-all: New file.
22991 * modules/unictype/bidicategory-byname: New file.
22992 * modules/unictype/bidicategory-name: New file.
22993 * modules/unictype/bidicategory-of: New file.
22994 * modules/unictype/bidicategory-test: New file.
22995 * modules/unictype/decimal-digit: New file.
22996 * modules/unictype/digit: New file.
22997 * modules/unictype/numeric: New file.
22998 * modules/unictype/mirror: New file.
22999 * modules/unictype/property-white-space: New file.
23000 * modules/unictype/property-alphabetic: New file.
23001 * modules/unictype/property-other-alphabetic: New file.
23002 * modules/unictype/property-not-a-character: New file.
23003 * modules/unictype/property-default-ignorable-code-point: New file.
23004 * modules/unictype/property-other-default-ignorable-code-point: New
23006 * modules/unictype/property-deprecated: New file.
23007 * modules/unictype/property-logical-order-exception: New file.
23008 * modules/unictype/property-variation-selector: New file.
23009 * modules/unictype/property-private-use: New file.
23010 * modules/unictype/property-unassigned-code-value: New file.
23011 * modules/unictype/property-uppercase: New file.
23012 * modules/unictype/property-other-uppercase: New file.
23013 * modules/unictype/property-lowercase: New file.
23014 * modules/unictype/property-other-lowercase: New file.
23015 * modules/unictype/property-titlecase: New file.
23016 * modules/unictype/property-soft-dotted: New file.
23017 * modules/unictype/property-id-start: New file.
23018 * modules/unictype/property-other-id-start: New file.
23019 * modules/unictype/property-id-continue: New file.
23020 * modules/unictype/property-other-id-continue: New file.
23021 * modules/unictype/property-xid-start: New file.
23022 * modules/unictype/property-xid-continue: New file.
23023 * modules/unictype/property-pattern-white-space: New file.
23024 * modules/unictype/property-pattern-syntax: New file.
23025 * modules/unictype/property-join-control: New file.
23026 * modules/unictype/property-grapheme-base: New file.
23027 * modules/unictype/property-grapheme-extend: New file.
23028 * modules/unictype/property-other-grapheme-extend: New file.
23029 * modules/unictype/property-grapheme-link: New file.
23030 * modules/unictype/property-bidi-control: New file.
23031 * modules/unictype/property-bidi-left-to-right: New file.
23032 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
23033 * modules/unictype/property-bidi-arabic-right-to-left: New file.
23034 * modules/unictype/property-bidi-european-digit: New file.
23035 * modules/unictype/property-bidi-eur-num-separator: New file.
23036 * modules/unictype/property-bidi-eur-num-terminator: New file.
23037 * modules/unictype/property-bidi-arabic-digit: New file.
23038 * modules/unictype/property-bidi-common-separator: New file.
23039 * modules/unictype/property-bidi-block-separator: New file.
23040 * modules/unictype/property-bidi-segment-separator: New file.
23041 * modules/unictype/property-bidi-whitespace: New file.
23042 * modules/unictype/property-bidi-non-spacing-mark: New file.
23043 * modules/unictype/property-bidi-boundary-neutral: New file.
23044 * modules/unictype/property-bidi-pdf: New file.
23045 * modules/unictype/property-bidi-embedding-or-override: New file.
23046 * modules/unictype/property-bidi-other-neutral: New file.
23047 * modules/unictype/property-hex-digit: New file.
23048 * modules/unictype/property-ascii-hex-digit: New file.
23049 * modules/unictype/property-ideographic: New file.
23050 * modules/unictype/property-unified-ideograph: New file.
23051 * modules/unictype/property-radical: New file.
23052 * modules/unictype/property-ids-binary-operator: New file.
23053 * modules/unictype/property-ids-trinary-operator: New file.
23054 * modules/unictype/property-zero-width: New file.
23055 * modules/unictype/property-space: New file.
23056 * modules/unictype/property-non-break: New file.
23057 * modules/unictype/property-iso-control: New file.
23058 * modules/unictype/property-format-control: New file.
23059 * modules/unictype/property-dash: New file.
23060 * modules/unictype/property-hyphen: New file.
23061 * modules/unictype/property-punctuation: New file.
23062 * modules/unictype/property-line-separator: New file.
23063 * modules/unictype/property-paragraph-separator: New file.
23064 * modules/unictype/property-quotation-mark: New file.
23065 * modules/unictype/property-sentence-terminal: New file.
23066 * modules/unictype/property-terminal-punctuation: New file.
23067 * modules/unictype/property-currency-symbol: New file.
23068 * modules/unictype/property-math: New file.
23069 * modules/unictype/property-other-math: New file.
23070 * modules/unictype/property-paired-punctuation: New file.
23071 * modules/unictype/property-left-of-pair: New file.
23072 * modules/unictype/property-combining: New file.
23073 * modules/unictype/property-composite: New file.
23074 * modules/unictype/property-decimal-digit: New file.
23075 * modules/unictype/property-numeric: New file.
23076 * modules/unictype/property-diacritic: New file.
23077 * modules/unictype/property-extender: New file.
23078 * modules/unictype/property-ignorable-control: New file.
23079 * modules/unictype/property-test: New file.
23080 * modules/unictype/property-byname: New file.
23081 * modules/unictype/property-all: New file.
23082 * modules/unictype/scripts: New file.
23083 * modules/unictype/scripts-all: New file.
23084 * modules/unictype/block-of: New file.
23085 * modules/unictype/block-test: New file.
23086 * modules/unictype/block-list: New file.
23087 * modules/unictype/block-all: New file.
23088 * modules/unictype/syntax-c-whitespace: New file.
23089 * modules/unictype/syntax-java-whitespace: New file.
23090 * modules/unictype/syntax-c-ident: New file.
23091 * modules/unictype/syntax-java-ident: New file.
23092 * modules/unictype/ctype-alnum: New file.
23093 * modules/unictype/ctype-alpha: New file.
23094 * modules/unictype/ctype-cntrl: New file.
23095 * modules/unictype/ctype-digit: New file.
23096 * modules/unictype/ctype-graph: New file.
23097 * modules/unictype/ctype-lower: New file.
23098 * modules/unictype/ctype-print: New file.
23099 * modules/unictype/ctype-punct: New file.
23100 * modules/unictype/ctype-space: New file.
23101 * modules/unictype/ctype-upper: New file.
23102 * modules/unictype/ctype-xdigit: New file.
23103 * modules/unictype/ctype-blank: New file.
23104 * lib/unictype/bidi_byname.c: New file.
23105 * lib/unictype/bidi_name.c: New file.
23106 * lib/unictype/bidi_of.c: New file.
23107 * lib/unictype/bidi_test.c: New file.
23108 * lib/unictype/bitmap.h: New file.
23109 * lib/unictype/block_test.c: New file.
23110 * lib/unictype/blocks.c: New file.
23111 * lib/unictype/categ_C.c: New file.
23112 * lib/unictype/categ_Cc.c: New file.
23113 * lib/unictype/categ_Cf.c: New file.
23114 * lib/unictype/categ_Cn.c: New file.
23115 * lib/unictype/categ_Co.c: New file.
23116 * lib/unictype/categ_Cs.c: New file.
23117 * lib/unictype/categ_L.c: New file.
23118 * lib/unictype/categ_Ll.c: New file.
23119 * lib/unictype/categ_Lm.c: New file.
23120 * lib/unictype/categ_Lo.c: New file.
23121 * lib/unictype/categ_Lt.c: New file.
23122 * lib/unictype/categ_Lu.c: New file.
23123 * lib/unictype/categ_M.c: New file.
23124 * lib/unictype/categ_Mc.c: New file.
23125 * lib/unictype/categ_Me.c: New file.
23126 * lib/unictype/categ_Mn.c: New file.
23127 * lib/unictype/categ_N.c: New file.
23128 * lib/unictype/categ_Nd.c: New file.
23129 * lib/unictype/categ_Nl.c: New file.
23130 * lib/unictype/categ_No.c: New file.
23131 * lib/unictype/categ_P.c: New file.
23132 * lib/unictype/categ_Pc.c: New file.
23133 * lib/unictype/categ_Pd.c: New file.
23134 * lib/unictype/categ_Pe.c: New file.
23135 * lib/unictype/categ_Pf.c: New file.
23136 * lib/unictype/categ_Pi.c: New file.
23137 * lib/unictype/categ_Po.c: New file.
23138 * lib/unictype/categ_Ps.c: New file.
23139 * lib/unictype/categ_S.c: New file.
23140 * lib/unictype/categ_Sc.c: New file.
23141 * lib/unictype/categ_Sk.c: New file.
23142 * lib/unictype/categ_Sm.c: New file.
23143 * lib/unictype/categ_So.c: New file.
23144 * lib/unictype/categ_Z.c: New file.
23145 * lib/unictype/categ_Zl.c: New file.
23146 * lib/unictype/categ_Zp.c: New file.
23147 * lib/unictype/categ_Zs.c: New file.
23148 * lib/unictype/categ_and.c: New file.
23149 * lib/unictype/categ_and_not.c: New file.
23150 * lib/unictype/categ_byname.c: New file.
23151 * lib/unictype/categ_name.c: New file.
23152 * lib/unictype/categ_none.c: New file.
23153 * lib/unictype/categ_of.c: New file.
23154 * lib/unictype/categ_or.c: New file.
23155 * lib/unictype/categ_test.c: New file.
23156 * lib/unictype/combining.c: New file.
23157 * lib/unictype/ctype_alnum.c: New file.
23158 * lib/unictype/ctype_alpha.c: New file.
23159 * lib/unictype/ctype_blank.c: New file.
23160 * lib/unictype/ctype_cntrl.c: New file.
23161 * lib/unictype/ctype_digit.c: New file.
23162 * lib/unictype/ctype_graph.c: New file.
23163 * lib/unictype/ctype_lower.c: New file.
23164 * lib/unictype/ctype_print.c: New file.
23165 * lib/unictype/ctype_punct.c: New file.
23166 * lib/unictype/ctype_space.c: New file.
23167 * lib/unictype/ctype_upper.c: New file.
23168 * lib/unictype/ctype_xdigit.c: New file.
23169 * lib/unictype/decdigit.c: New file.
23170 * lib/unictype/digit.c: New file.
23171 * lib/unictype/identsyntaxmap.h: New file.
23172 * lib/unictype/mirror.c: New file.
23173 * lib/unictype/numeric.c: New file.
23174 * lib/unictype/pr_alphabetic.c: New file.
23175 * lib/unictype/pr_ascii_hex_digit.c: New file.
23176 * lib/unictype/pr_bidi_arabic_digit.c: New file.
23177 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
23178 * lib/unictype/pr_bidi_block_separator.c: New file.
23179 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
23180 * lib/unictype/pr_bidi_common_separator.c: New file.
23181 * lib/unictype/pr_bidi_control.c: New file.
23182 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
23183 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
23184 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
23185 * lib/unictype/pr_bidi_european_digit.c: New file.
23186 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
23187 * lib/unictype/pr_bidi_left_to_right.c: New file.
23188 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
23189 * lib/unictype/pr_bidi_other_neutral.c: New file.
23190 * lib/unictype/pr_bidi_pdf.c: New file.
23191 * lib/unictype/pr_bidi_segment_separator.c: New file.
23192 * lib/unictype/pr_bidi_whitespace.c: New file.
23193 * lib/unictype/pr_byname.c: New file.
23194 * lib/unictype/pr_byname.gperf: New file.
23195 * lib/unictype/pr_combining.c: New file.
23196 * lib/unictype/pr_composite.c: New file.
23197 * lib/unictype/pr_currency_symbol.c: New file.
23198 * lib/unictype/pr_dash.c: New file.
23199 * lib/unictype/pr_decimal_digit.c: New file.
23200 * lib/unictype/pr_default_ignorable_code_point.c: New file.
23201 * lib/unictype/pr_deprecated.c: New file.
23202 * lib/unictype/pr_diacritic.c: New file.
23203 * lib/unictype/pr_extender.c: New file.
23204 * lib/unictype/pr_format_control.c: New file.
23205 * lib/unictype/pr_grapheme_base.c: New file.
23206 * lib/unictype/pr_grapheme_extend.c: New file.
23207 * lib/unictype/pr_grapheme_link.c: New file.
23208 * lib/unictype/pr_hex_digit.c: New file.
23209 * lib/unictype/pr_hyphen.c: New file.
23210 * lib/unictype/pr_id_continue.c: New file.
23211 * lib/unictype/pr_id_start.c: New file.
23212 * lib/unictype/pr_ideographic.c: New file.
23213 * lib/unictype/pr_ids_binary_operator.c: New file.
23214 * lib/unictype/pr_ids_trinary_operator.c: New file.
23215 * lib/unictype/pr_ignorable_control.c: New file.
23216 * lib/unictype/pr_iso_control.c: New file.
23217 * lib/unictype/pr_join_control.c: New file.
23218 * lib/unictype/pr_left_of_pair.c: New file.
23219 * lib/unictype/pr_line_separator.c: New file.
23220 * lib/unictype/pr_logical_order_exception.c: New file.
23221 * lib/unictype/pr_lowercase.c: New file.
23222 * lib/unictype/pr_math.c: New file.
23223 * lib/unictype/pr_non_break.c: New file.
23224 * lib/unictype/pr_not_a_character.c: New file.
23225 * lib/unictype/pr_numeric.c: New file.
23226 * lib/unictype/pr_other_alphabetic.c: New file.
23227 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
23228 * lib/unictype/pr_other_grapheme_extend.c: New file.
23229 * lib/unictype/pr_other_id_continue.c: New file.
23230 * lib/unictype/pr_other_id_start.c: New file.
23231 * lib/unictype/pr_other_lowercase.c: New file.
23232 * lib/unictype/pr_other_math.c: New file.
23233 * lib/unictype/pr_other_uppercase.c: New file.
23234 * lib/unictype/pr_paired_punctuation.c: New file.
23235 * lib/unictype/pr_paragraph_separator.c: New file.
23236 * lib/unictype/pr_pattern_syntax.c: New file.
23237 * lib/unictype/pr_pattern_white_space.c: New file.
23238 * lib/unictype/pr_private_use.c: New file.
23239 * lib/unictype/pr_punctuation.c: New file.
23240 * lib/unictype/pr_quotation_mark.c: New file.
23241 * lib/unictype/pr_radical.c: New file.
23242 * lib/unictype/pr_sentence_terminal.c: New file.
23243 * lib/unictype/pr_soft_dotted.c: New file.
23244 * lib/unictype/pr_space.c: New file.
23245 * lib/unictype/pr_terminal_punctuation.c: New file.
23246 * lib/unictype/pr_test.c: New file.
23247 * lib/unictype/pr_titlecase.c: New file.
23248 * lib/unictype/pr_unassigned_code_value.c: New file.
23249 * lib/unictype/pr_unified_ideograph.c: New file.
23250 * lib/unictype/pr_uppercase.c: New file.
23251 * lib/unictype/pr_variation_selector.c: New file.
23252 * lib/unictype/pr_white_space.c: New file.
23253 * lib/unictype/pr_xid_continue.c: New file.
23254 * lib/unictype/pr_xid_start.c: New file.
23255 * lib/unictype/pr_zero_width.c: New file.
23256 * lib/unictype/scripts.c: New file.
23257 * lib/unictype/sy_c_ident.c: New file.
23258 * lib/unictype/sy_c_whitespace.c: New file.
23259 * lib/unictype/sy_java_ident.c: New file.
23260 * lib/unictype/sy_java_whitespace.c: New file.
23262 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
23264 * lib/unictype/blocks.h: Likewise.
23265 * lib/unictype/categ_C.h: Likewise.
23266 * lib/unictype/categ_Cc.h: Likewise.
23267 * lib/unictype/categ_Cf.h: Likewise.
23268 * lib/unictype/categ_Cn.h: Likewise.
23269 * lib/unictype/categ_Co.h: Likewise.
23270 * lib/unictype/categ_Cs.h: Likewise.
23271 * lib/unictype/categ_L.h: Likewise.
23272 * lib/unictype/categ_Ll.h: Likewise.
23273 * lib/unictype/categ_Lm.h: Likewise.
23274 * lib/unictype/categ_Lo.h: Likewise.
23275 * lib/unictype/categ_Lt.h: Likewise.
23276 * lib/unictype/categ_Lu.h: Likewise.
23277 * lib/unictype/categ_M.h: Likewise.
23278 * lib/unictype/categ_Mc.h: Likewise.
23279 * lib/unictype/categ_Me.h: Likewise.
23280 * lib/unictype/categ_Mn.h: Likewise.
23281 * lib/unictype/categ_N.h: Likewise.
23282 * lib/unictype/categ_Nd.h: Likewise.
23283 * lib/unictype/categ_Nl.h: Likewise.
23284 * lib/unictype/categ_No.h: Likewise.
23285 * lib/unictype/categ_P.h: Likewise.
23286 * lib/unictype/categ_Pc.h: Likewise.
23287 * lib/unictype/categ_Pd.h: Likewise.
23288 * lib/unictype/categ_Pe.h: Likewise.
23289 * lib/unictype/categ_Pf.h: Likewise.
23290 * lib/unictype/categ_Pi.h: Likewise.
23291 * lib/unictype/categ_Po.h: Likewise.
23292 * lib/unictype/categ_Ps.h: Likewise.
23293 * lib/unictype/categ_S.h: Likewise.
23294 * lib/unictype/categ_Sc.h: Likewise.
23295 * lib/unictype/categ_Sk.h: Likewise.
23296 * lib/unictype/categ_Sm.h: Likewise.
23297 * lib/unictype/categ_So.h: Likewise.
23298 * lib/unictype/categ_Z.h: Likewise.
23299 * lib/unictype/categ_Zl.h: Likewise.
23300 * lib/unictype/categ_Zp.h: Likewise.
23301 * lib/unictype/categ_Zs.h: Likewise.
23302 * lib/unictype/categ_of.h: Likewise.
23303 * lib/unictype/combining.h: Likewise.
23304 * lib/unictype/ctype_alnum.h: Likewise.
23305 * lib/unictype/ctype_alpha.h: Likewise.
23306 * lib/unictype/ctype_blank.h: Likewise.
23307 * lib/unictype/ctype_cntrl.h: Likewise.
23308 * lib/unictype/ctype_digit.h: Likewise.
23309 * lib/unictype/ctype_graph.h: Likewise.
23310 * lib/unictype/ctype_lower.h: Likewise.
23311 * lib/unictype/ctype_print.h: Likewise.
23312 * lib/unictype/ctype_punct.h: Likewise.
23313 * lib/unictype/ctype_space.h: Likewise.
23314 * lib/unictype/ctype_upper.h: Likewise.
23315 * lib/unictype/ctype_xdigit.h: Likewise.
23316 * lib/unictype/decdigit.h: Likewise.
23317 * lib/unictype/digit.h: Likewise.
23318 * lib/unictype/mirror.h: Likewise.
23319 * lib/unictype/numeric.h: Likewise.
23320 * lib/unictype/pr_alphabetic.h: Likewise.
23321 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23322 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23323 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23324 * lib/unictype/pr_bidi_block_separator.h: Likewise.
23325 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23326 * lib/unictype/pr_bidi_common_separator.h: Likewise.
23327 * lib/unictype/pr_bidi_control.h: Likewise.
23328 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23329 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23330 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23331 * lib/unictype/pr_bidi_european_digit.h: Likewise.
23332 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23333 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23334 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23335 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23336 * lib/unictype/pr_bidi_pdf.h: Likewise.
23337 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23338 * lib/unictype/pr_bidi_whitespace.h: Likewise.
23339 * lib/unictype/pr_combining.h: Likewise.
23340 * lib/unictype/pr_composite.h: Likewise.
23341 * lib/unictype/pr_currency_symbol.h: Likewise.
23342 * lib/unictype/pr_dash.h: Likewise.
23343 * lib/unictype/pr_decimal_digit.h: Likewise.
23344 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23345 * lib/unictype/pr_deprecated.h: Likewise.
23346 * lib/unictype/pr_diacritic.h: Likewise.
23347 * lib/unictype/pr_extender.h: Likewise.
23348 * lib/unictype/pr_format_control.h: Likewise.
23349 * lib/unictype/pr_grapheme_base.h: Likewise.
23350 * lib/unictype/pr_grapheme_extend.h: Likewise.
23351 * lib/unictype/pr_grapheme_link.h: Likewise.
23352 * lib/unictype/pr_hex_digit.h: Likewise.
23353 * lib/unictype/pr_hyphen.h: Likewise.
23354 * lib/unictype/pr_id_continue.h: Likewise.
23355 * lib/unictype/pr_id_start.h: Likewise.
23356 * lib/unictype/pr_ideographic.h: Likewise.
23357 * lib/unictype/pr_ids_binary_operator.h: Likewise.
23358 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23359 * lib/unictype/pr_ignorable_control.h: Likewise.
23360 * lib/unictype/pr_iso_control.h: Likewise.
23361 * lib/unictype/pr_join_control.h: Likewise.
23362 * lib/unictype/pr_left_of_pair.h: Likewise.
23363 * lib/unictype/pr_line_separator.h: Likewise.
23364 * lib/unictype/pr_logical_order_exception.h: Likewise.
23365 * lib/unictype/pr_lowercase.h: Likewise.
23366 * lib/unictype/pr_math.h: Likewise.
23367 * lib/unictype/pr_non_break.h: Likewise.
23368 * lib/unictype/pr_not_a_character.h: Likewise.
23369 * lib/unictype/pr_numeric.h: Likewise.
23370 * lib/unictype/pr_other_alphabetic.h: Likewise.
23371 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23372 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23373 * lib/unictype/pr_other_id_continue.h: Likewise.
23374 * lib/unictype/pr_other_id_start.h: Likewise.
23375 * lib/unictype/pr_other_lowercase.h: Likewise.
23376 * lib/unictype/pr_other_math.h: Likewise.
23377 * lib/unictype/pr_other_uppercase.h: Likewise.
23378 * lib/unictype/pr_paired_punctuation.h: Likewise.
23379 * lib/unictype/pr_paragraph_separator.h: Likewise.
23380 * lib/unictype/pr_pattern_syntax.h: Likewise.
23381 * lib/unictype/pr_pattern_white_space.h: Likewise.
23382 * lib/unictype/pr_private_use.h: Likewise.
23383 * lib/unictype/pr_punctuation.h: Likewise.
23384 * lib/unictype/pr_quotation_mark.h: Likewise.
23385 * lib/unictype/pr_radical.h: Likewise.
23386 * lib/unictype/pr_sentence_terminal.h: Likewise.
23387 * lib/unictype/pr_soft_dotted.h: Likewise.
23388 * lib/unictype/pr_space.h: Likewise.
23389 * lib/unictype/pr_terminal_punctuation.h: Likewise.
23390 * lib/unictype/pr_titlecase.h: Likewise.
23391 * lib/unictype/pr_unassigned_code_value.h: Likewise.
23392 * lib/unictype/pr_unified_ideograph.h: Likewise.
23393 * lib/unictype/pr_uppercase.h: Likewise.
23394 * lib/unictype/pr_variation_selector.h: Likewise.
23395 * lib/unictype/pr_white_space.h: Likewise.
23396 * lib/unictype/pr_xid_continue.h: Likewise.
23397 * lib/unictype/pr_xid_start.h: Likewise.
23398 * lib/unictype/pr_zero_width.h: Likewise.
23399 * lib/unictype/scripts.h: Likewise.
23400 * lib/unictype/scripts_byname.gperf: Likewise.
23401 * lib/unictype/sy_c_ident.h: Likewise.
23402 * lib/unictype/sy_c_whitespace.h: Likewise.
23403 * lib/unictype/sy_java_ident.h: Likewise.
23404 * lib/unictype/sy_java_whitespace.h: Likewise.
23406 * lib/unictype/Makefile: New file.
23407 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
23409 * lib/unictype/3level.h: New file, copied from glibc.
23410 * lib/unictype/3levelbit.h: New file.
23412 2007-11-11 Bruno Haible <bruno@clisp.org>
23414 * modules/gperf: New file.
23415 * modules/iconv_open (Depends-on): Add it.
23416 (Makefile.am): Remove the GPERF definition.
23418 2007-11-11 Bruno Haible <bruno@clisp.org>
23420 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
23421 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
23423 2007-11-11 Bruno Haible <bruno@clisp.org>
23425 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
23426 (usage): Remove function.
23428 2007-11-11 Bruno Haible <bruno@clisp.org>
23430 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
23431 gl_FUNC_CEILF_LIBS.
23432 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
23434 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
23435 gl_FUNC_CEILL_LIBS.
23436 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
23437 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
23438 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
23440 2007-11-11 Bruno Haible <bruno@clisp.org>
23442 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
23443 roundf were declared but do not exist on functions.
23444 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
23445 roundl were declared but do not exist on functions.
23446 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
23447 HAVE_FLOORL_AND_CEILL, respectively.
23448 Needed for Sun C on Solaris 10.
23450 2007-11-11 Bruno Haible <bruno@clisp.org>
23452 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
23453 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
23454 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
23455 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
23456 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
23457 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
23458 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
23460 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
23461 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
23462 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
23463 of HAVE_DECL_ROUND*.
23464 * modules/math (Makefile.am): Update.
23466 2007-11-10 Bruno Haible <bruno@clisp.org>
23468 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
23469 ptrdiff_t as m4/intl.m4.
23471 2007-11-10 Jim Meyering <meyering@redhat.com>
23473 Avoid link failure for the argmatch test.
23474 * tests/test-argmatch.c (usage): Define function to avoid a link
23475 failure: argmatch_die requires a usage function.
23477 2007-11-09 Bruno Haible <bruno@clisp.org>
23479 * doc/functions/snprintf.texi: Mention BeOS deficiency.
23480 * doc/functions/vsnprintf.texi: Likewise.
23481 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
23482 with a size argument < 2.
23484 2007-11-09 Bruno Haible <bruno@clisp.org>
23486 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
23487 buffer. Fixes an inefficiency introduced on 2007-11-03.
23489 2007-11-09 Bruno Haible <bruno@clisp.org>
23491 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
23492 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
23494 2007-11-08 Jim Meyering <meyering@redhat.com>
23496 Change cache variable name prefix "jm_" to "gl_" everywhere.
23497 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
23498 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
23499 * m4/uptime.m4: s/gl_/jm_/
23501 2007-11-07 Bruno Haible <bruno@clisp.org>
23503 Update to GNU gettext 0.17.
23504 * m4/intl.m4: Update to GNU gettext 0.17.
23505 * m4/po.m4: Likewise.
23506 * modules/gettext (Files): Remove m4/ulonglong.m4.
23507 (configure.ac): Require gettext infrastructure from version 0.17.
23509 2007-11-06 Bruno Haible <bruno@clisp.org>
23511 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
23512 symbolic values are not defined in a public header.
23513 * lib/freadable.c (freadable) [QNX]: Likewise.
23514 * lib/freadahead.c (freadahead) [QNX]: Likewise.
23515 * lib/freading.c (freading) [QNX]: Likewise.
23516 * lib/fseterr.c (fseterr) [QNX]: Likewise.
23517 * lib/fwritable.c (fwritable) [QNX]: Likewise.
23518 * lib/fwriting.c (fwriting) [QNX]: Likewise.
23519 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
23520 Reported by Alain Magloire.
23522 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
23524 2007-11-05 Bruno Haible <bruno@clisp.org>
23526 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
23527 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
23528 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
23529 Reported by Eric Blake.
23531 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23532 Bruno Haible <bruno@clisp.org>
23534 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
23535 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
23536 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
23537 (malloc): Undefine also before including <stdlib.h>.
23538 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
23539 Needed on OSF/1 4.0.
23541 2007-11-05 Jim Meyering <meyering@redhat.com>
23543 git-version-gen: sync from coreutils.
23544 * build-aux/git-version-gen: Add comments.
23545 Change the first '-' to '.' in the snapshot version string,
23546 e.g., 6.9-377-08144 -> 6.9.377-08144
23547 Remove first parameter.
23548 Don't declare a version "-dirty" merely because a time
23551 2007-11-04 Bruno Haible <bruno@clisp.org>
23553 * lib/lock.h: Protect all macro definitions containing an 'if'
23554 statement through a "do { ... } while (0)".
23555 * lib/tls.h: Likewise.
23557 2007-11-04 Bruno Haible <bruno@clisp.org>
23559 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
23561 2007-11-04 Bruno Haible <bruno@clisp.org>
23563 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
23564 * modules/fprintf-posix (Depends-on): Add nocrash.
23565 * modules/snprintf-posix (Depends-on): Likewise.
23566 * modules/sprintf-posix (Depends-on): Likewise.
23567 * modules/vasnprintf-posix (Depends-on): Likewise.
23568 * modules/vasprintf-posix (Depends-on): Likewise.
23569 * modules/vfprintf-posix (Depends-on): Likewise.
23570 * modules/vsnprintf-posix (Depends-on): Likewise.
23571 * modules/vsprintf-posix (Depends-on): Likewise.
23572 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23573 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23574 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23575 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23576 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23577 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23578 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23580 2007-11-04 Bruno Haible <bruno@clisp.org>
23582 * modules/nocrash: New file.
23583 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
23584 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
23586 2007-11-04 Bruno Haible <bruno@clisp.org>
23588 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
23589 precision handling.
23590 * tests/test-vasprintf-posix.c (test_function): Likewise.
23591 * tests/test-snprintf-posix.h (test_function): Likewise.
23592 * tests/test-sprintf-posix.h (test_function): Likewise.
23594 Fix *printf behaviour for large precisions on mingw and BeOS.
23595 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
23596 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
23597 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
23598 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23599 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23600 gl_PRINTF_PRECISION and test its result. Invoke
23601 gl_PREREQ_VASNPRINTF_PRECISION.
23602 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23603 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23604 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23605 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23606 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23607 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23608 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23609 * doc/functions/fprintf.texi: Update.
23610 * doc/functions/printf.texi: Update.
23611 * doc/functions/snprintf.texi: Update.
23612 * doc/functions/sprintf.texi: Update.
23613 * doc/functions/vfprintf.texi: Update.
23614 * doc/functions/vprintf.texi: Update.
23615 * doc/functions/vsnprintf.texi: Update.
23616 * doc/functions/vsprintf.texi: Update.
23618 2007-11-04 Bruno Haible <bruno@clisp.org>
23620 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
23622 2007-11-04 Bruno Haible <bruno@clisp.org>
23624 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
23625 Reported by Sylvain Beucler <beuc@gnu.org>.
23627 2007-11-03 Bruno Haible <bruno@clisp.org>
23629 * tests/test-fprintf-posix2.sh: New file.
23630 * tests/test-fprintf-posix2.c: New file.
23631 * modules/fprintf-posix-tests (Files): Add them.
23632 (TESTS): Add test-fprintf-posix2.sh.
23633 (configure.ac): Check for getrlimit and setrlimit.
23634 (check_PROGRAMS): Add test-fprintf-posix2.
23636 * tests/test-printf-posix2.sh: New file.
23637 * tests/test-printf-posix2.c: New file.
23638 * modules/printf-posix-tests (Files): Add them.
23639 (TESTS): Add test-printf-posix2.sh.
23640 (configure.ac): Check for getrlimit and setrlimit.
23641 (check_PROGRAMS): Add test-printf-posix2.
23643 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
23644 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
23645 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
23646 (decode_double): New function, copied from decode_long_double.
23647 (scale10_round_decimal_decoded): New function, extracted from
23648 scale10_round_decimal_long_double.
23649 (scale10_round_decimal_long_double): Use it.
23650 (scale10_round_decimal_double): New function.
23651 (floorlog10): New function.
23652 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
23653 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
23654 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23655 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23656 gl_PRINTF_ENOMEM and test its result. Invoke
23657 gl_PREREQ_VASNPRINTF_ENOMEM.
23658 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23659 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23660 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23661 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23662 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23663 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23664 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23665 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
23666 * modules/snprintf-posix (Depends-on): Likewise.
23667 * modules/sprintf-posix (Depends-on): Likewise.
23668 * modules/vasnprintf-posix (Depends-on): Likewise.
23669 * modules/vasprintf-posix (Depends-on): Likewise.
23670 * modules/vfprintf-posix (Depends-on): Likewise.
23671 * modules/vsnprintf-posix (Depends-on): Likewise.
23672 * modules/vsprintf-posix (Depends-on): Likewise.
23673 * doc/functions/fprintf.texi: Update.
23674 * doc/functions/printf.texi: Update.
23675 * doc/functions/snprintf.texi: Update.
23676 * doc/functions/sprintf.texi: Update.
23677 * doc/functions/vfprintf.texi: Update.
23678 * doc/functions/vprintf.texi: Update.
23679 * doc/functions/vsnprintf.texi: Update.
23680 * doc/functions/vsprintf.texi: Update.
23682 2007-11-03 Bruno Haible <bruno@clisp.org>
23684 * modules/frexp-nolibm-tests: New file.
23686 * modules/frexp-nolibm: New file.
23687 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
23689 2007-11-03 Bruno Haible <bruno@clisp.org>
23691 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
23692 value is C99 compliant.
23693 Needed for OSF/1 5.1.
23695 2007-11-03 Bruno Haible <bruno@clisp.org>
23697 Fix out-of-memory handling of vasnprintf.
23698 * lib/printf-parse.c: Include <errno.h>.
23699 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
23700 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
23703 2007-11-02 Eric Blake <ebb9@byu.net>
23705 Fix tests on cygwin.
23706 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
23708 2007-11-01 Bruno Haible <bruno@clisp.org>
23710 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
23712 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
23713 needed for POSIX compatibility.
23715 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
23717 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
23718 for compatibility with GNU.
23720 2007-11-01 Bruno Haible <bruno@clisp.org>
23722 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
23723 (putenv): Renamed from rpl_putenv. Change argument type from
23724 'const char *' to 'char *'.
23725 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
23726 of defining putenv in config.h, just set REPLACE_PUTENV.
23727 * modules/putenv (Depends-on): Add stdlib.
23728 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23729 (Include): Use <stdlib.h>.
23730 * lib/stdlib.in.h (putenv): New declaration.
23731 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
23733 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
23735 Needed for MacOS X 10.5.0.
23736 Reported by Peter O'Gorman <peter@pogma.com>.
23738 2007-11-01 Jim Meyering <meyering@redhat.com>
23740 Treat an empty date string exactly like "0".
23741 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
23742 if the remaining date string (to be parsed) is empty, use "0".
23743 Reported by Mischa Molhoek and discussed in this thread:
23744 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
23746 2007-10-31 Bruno Haible <bruno@clisp.org>
23748 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
23749 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
23750 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
23751 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
23752 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
23753 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
23755 2007-10-31 Bruno Haible <bruno@clisp.org>
23757 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
23758 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
23759 (AC_TYPE_LONG_LONG_INT): Use it.
23760 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
23762 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
23764 * modules/stdint (Files): Remove m4/ulonglong.m4.
23765 * modules/strtoull (Files): Use m4/longlong.m4 instead of
23767 * modules/strtoumax (Files): Likewise.
23769 2007-10-30 Bruno Haible <bruno@clisp.org>
23771 * modules/xvasprintf-posix: New file.
23772 Suggested by Eric Blake.
23774 2007-10-30 Bruno Haible <bruno@clisp.org>
23776 * modules/xprintf-posix-tests: New file.
23777 * tests/test-xprintf-posix.sh: New file.
23778 * tests/test-xprintf-posix.c: New file.
23779 * tests/test-xfprintf-posix.c: New file.
23781 * modules/xprintf-posix: New file.
23783 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23785 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
23786 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
23787 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
23789 2007-10-29 Bruno Haible <bruno@clisp.org>
23791 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
23792 contain the special marker '_cv_'.
23793 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23794 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23795 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23796 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
23797 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23798 Reported by Ralf Wildenhues.
23800 2007-10-29 Bruno Haible <bruno@clisp.org>
23802 * gnulib-tool (func_import): When --lgpl is not specified, set
23803 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
23805 Reported by Simon Josefsson.
23807 2007-10-28 Bruno Haible <bruno@clisp.org>
23809 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
23810 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
23811 HAVE_DECL_ISFINITE.
23812 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23813 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
23814 HAVE_DECL_ISFINITE.
23816 2007-10-28 Bruno Haible <bruno@clisp.org>
23818 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
23819 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
23821 2007-10-28 Bruno Haible <bruno@clisp.org>
23823 Fix link errors with Sun C 5.0 on Solaris 10.
23824 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
23825 function is declared but not present in the compiler's libm.
23826 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
23827 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
23828 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
23829 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
23830 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
23831 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
23832 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
23833 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
23834 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
23835 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
23836 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
23839 2007-10-28 Bruno Haible <bruno@clisp.org>
23841 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
23842 gl_FUNC_FLOORL. Cache the result.
23843 (gl_FUNC_FLOORL): Use it.
23844 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
23845 gl_FUNC_CEILL. Cache the result.
23846 (gl_FUNC_CEILL): Use it.
23848 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
23849 gl_FUNC_FLOOR. Cache the result.
23850 (gl_FUNC_FLOOR): Use it.
23851 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
23852 gl_FUNC_CEIL. Cache the result.
23853 (gl_FUNC_CEIL): Use it.
23855 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
23856 gl_FUNC_FLOORF. Cache the result.
23857 (gl_FUNC_FLOORF): Use it.
23858 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
23859 gl_FUNC_CEILF. Cache the result.
23860 (gl_FUNC_CEILF): Use it.
23862 2007-10-28 Bruno Haible <bruno@clisp.org>
23864 * gnulib-tool: Allow specifying the LGPL version number through
23865 --lgpl=2 or --lgpl=3.
23866 (func_usage): Document --lgpl with argument.
23867 Handle --lgpl=... arguments.
23868 (func_import): Recognize also gl_LGPL calls with an argument. When
23869 --lgpl=2 is used and the module's license is just LGPL, report an
23870 error. Set sed_transform_lib_file according to the lgpl variable. In
23871 the generated files, use --lgpl or gl_LGPL invocations with argument,
23873 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
23875 * doc/gnulib-tool.texi (Modified imports): Update explanation of
23878 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23879 Bruno Haible <bruno@clisp.org>
23881 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
23882 (u16_uctomb_aux): Likewise.
23883 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
23885 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
23887 2007-10-28 Bruno Haible <bruno@clisp.org>
23889 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
23890 Invoke AM_GETTEXT_OPTION if it exists.
23891 * modules/vasprintf: Likewise.
23892 * modules/verror: Likewise.
23893 * modules/xprintf: Likewise.
23894 * modules/xvasprintf: Likewise.
23896 2007-10-27 Ben Pfaff <blp@gnu.org>
23898 * lib/math.in.h: Define isfinite macro and prototypes for
23899 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
23901 * m4/math_h.m4: New substitutions for isfinite module.
23902 * lib/isfinite.c: New file.
23903 * m4/isfinite.m4: New file.
23904 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
23905 * modules/isfinite: New file.
23906 * modules/isfinite-tests: New file.
23907 * tests/tests-isfinite.c: New file.
23908 * doc/functions/isfinite.texi: Mention isfinite module.
23909 * MODULES.html.sh: Mention new module.
23911 2007-10-27 Ben Pfaff <blp@gnu.org>
23913 Ralf Wildenhues reported that Tru64 4.0D declares the round
23914 functions but does not have definitions.
23915 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
23916 cannot be found in any library, set the output variable to
23917 "missing" instead of "".
23918 * m4/round.m4: Also use our substitute if we cannot find round in
23919 any library, even if it is declared.
23920 * m4/roundf.m4: Likewise for roundf.
23921 * m4/roundl.m4: Likewise for roundl.
23922 * lib/math.in.h: Undefine roundf, round, roundl before defining
23923 their replacements, to allow for hypothetical systems where these
23924 may be defined as macros but not available in libraries.
23926 2007-10-27 Bruno Haible <bruno@clisp.org>
23928 * doc/gnulib.texi: Invoke @firstparagraphindent.
23929 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
23931 (Source changes): New section.
23933 2007-10-26 Bruno Haible <bruno@clisp.org>
23935 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
23936 borrowed from autoconf.
23938 2007-10-26 Bruno Haible <bruno@clisp.org>
23940 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
23941 strerror returned the empty string. Needed on HP-UX 11.00.
23943 2007-10-24 Micah Cowan <micah@cowan.name>
23945 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
23946 * build-aux/bootstrap: Remove support for now-unnecessary option,
23947 --cvs-user, and envvars CVS_USER, CVS_RSH.
23949 2007-10-24 Jim Meyering <meyering@redhat.com>
23951 Avoid diagnostics from sha1sum when there is no cached checksum.
23952 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
23953 if the po.s1 file hasn't been created yet.
23955 * build-aux/bootstrap: Sync from coreutils:
23956 2007-10-24 Jim Meyering <meyering@redhat.com>
23957 Get gnulib from the git repository, not from an obsolete cvs one.
23958 * build-aux/bootstrap: Suggestion from Micah Cowan.
23959 2007-10-04 Jim Meyering <jim@meyering.net>
23960 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
23961 (update_po_files): Work also when there are no .po files in po/.
23963 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
23965 * README: Append ".git" to git and cg examples.
23966 Problem reported by Benoit Sigoure.
23968 2007-10-23 Micah Cowan <micah@cowan.name>
23970 * users.txt: Add wget.
23972 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23974 Fix linking of some unistdio tests on FreeBSD.
23975 * modules/unistdio/u16-vsnprintf-tests
23976 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
23977 * modules/unistdio/u16-vsprintf-tests
23978 (test_u16_vsnprintf1_LDADD): Likewise.
23979 * modules/unistdio/u32-vsnprintf-tests
23980 (test_u32_vsnprintf1_LDADD): Likewise.
23981 * modules/unistdio/u32-vsprintf-tests
23982 (test_u32_vsprintf1_LDADD): Likewise.
23983 * modules/unistdio/u8-vsnprintf-tests
23984 (test_u8_vsnprintf1_LDADD): Likewise.
23985 * modules/unistdio/u8-vsprintf-tests
23986 (test_u8_vsprintf1_LDADD): Likewise.
23987 * modules/unistdio/ulc-vsnprintf-tests
23988 (test_ulc_vsnprintf1_LDADD): Likewise.
23989 * modules/unistdio/ulc-vsprintf-tests
23990 (test_ulc_vsprintf1_LDADD): Likewise.
23992 Fix linking of some uniconv tests on FreeBSD.
23993 * modules/uniconv/u16-conv-from-enc-tests
23994 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
23995 * modules/uniconv/u16-conv-to-enc-tests
23996 (test_u16_conv_to_enc_LDADD): Likewise.
23997 * modules/uniconv/u16-strconv-from-enc-tests
23998 (test_u16_strconv_from_enc_LDADD): Likewise.
23999 * modules/uniconv/u16-strconv-to-enc-tests
24000 (test_u16_strconv_to_enc_LDADD): Likewise.
24001 * modules/uniconv/u32-conv-from-enc-tests
24002 (test_u32_conv_from_enc_LDADD): Likewise.
24003 * modules/uniconv/u32-conv-to-enc-tests
24004 (test_u32_conv_to_enc_LDADD): Likewise.
24005 * modules/uniconv/u32-strconv-from-enc-tests
24006 (test_u32_strconv_from_enc_LDADD): Likewise.
24007 * modules/uniconv/u32-strconv-to-enc-tests
24008 (test_u32_strconv_to_enc_LDADD): Likewise.
24009 * modules/uniconv/u8-conv-from-enc-tests
24010 (test_u8_conv_from_enc_LDADD): Likewise.
24011 * modules/uniconv/u8-conv-to-enc-tests
24012 (test_u8_conv_to_enc_LDADD): Likewise.
24013 * modules/uniconv/u8-strconv-from-enc-tests
24014 (test_u8_strconv_from_enc_LDADD): Likewise.
24015 * modules/uniconv/u8-strconv-to-enc-tests
24016 (test_u8_strconv_to_enc_LDADD): Likewise.
24018 2007-10-22 Bruno Haible <bruno@clisp.org>
24020 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
24023 2007-10-22 Eric Blake <ebb9@byu.net>
24025 Tweak x*printf documentation.
24026 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
24027 variable name and comments.
24028 Suggested by Bruno Haible.
24030 2007-10-22 Bruno Haible <bruno@clisp.org>
24032 * lib/acl.c (copy_acl): Fix file name in comment.
24034 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
24036 Fix Tru64 problem with stdbool.h.
24037 * lib/stdbool.in.h (false, true):
24038 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
24039 Don't declare as an enum in this situation; it runs afoul of Tru64.
24040 Problem reported by Steven M. Schweda in
24041 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
24043 2007-10-22 Eric Blake <ebb9@byu.net>
24045 Also wrap vf?printf.
24046 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
24047 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
24048 (xvprintf, xvfprintf): New functions.
24050 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24052 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
24053 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
24055 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
24056 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
24058 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
24060 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
24063 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24066 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
24067 Undef `sys' after including sys/table.h, for Tru64 4.0D.
24069 * tests/test-i-ring.c: Work for C89.
24071 2007-10-22 Bruno Haible <bruno@clisp.org>
24073 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
24074 -1u, in preprocessor expression, so that we don't test for the bug
24075 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
24076 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
24078 2007-10-22 Eric Blake <ebb9@byu.net>
24080 * tests/test-yesno.sh: Silence stderr during test.
24082 2007-10-22 Simon Josefsson <simon@josefsson.org>
24084 * modules/crypto/gc-camellia: New file.
24086 * m4/gc-camellia.m4: New file.
24088 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
24090 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
24092 2007-10-22 Simon Josefsson <simon@josefsson.org>
24094 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
24095 --help to stdout. Reported by sms@antinode.org (Steven
24098 2007-10-22 Simon Josefsson <simon@josefsson.org>
24100 * users.txt: Fix link to libksba.
24102 2007-10-21 Ben Pfaff <blp@gnu.org>
24104 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
24105 round.c roundf implementation that depends on floorf and ceilf to
24106 be tested unconditionally.
24108 2007-10-21 Ben Pfaff <blp@gnu.org>
24110 * m4/check-libm-func.m4: Removed.
24111 * m4/check-math-lib.m4: New file.
24112 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
24113 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
24114 definition and lack of AC_LIBOBJ([roundf]).
24115 * m4/roundl.m4: Ditto, and similarly for roundl.
24116 * modules/round: Reference new m4 file.
24117 * modules/roundf: Ditto.
24118 * modules/roundl: Ditto.
24119 * tests/test-round2.c (main): Use ROUND instead of round.
24120 Bug report from Bruno Haible.
24122 2007-10-21 Bruno Haible <bruno@clisp.org>
24124 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
24127 2007-10-21 Bruno Haible <bruno@clisp.org>
24129 * tests/test-wcwidth.c (main): Allow negative result for some control
24132 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
24133 Needed on OSF/1 5.1.
24135 2007-10-21 Bruno Haible <bruno@clisp.org>
24137 * tests/test-floorf1.c: Include isnanf.h.
24138 (main): Use isnanf() instead of isnan().
24139 * tests/test-ceilf1.c: Include isnanf.h.
24140 (main): Use isnanf() instead of isnan().
24141 * tests/test-truncf1.c: Include isnanf.h.
24142 (main): Use isnanf() instead of isnan().
24143 * tests/test-roundf1.c: Include isnanf.h.
24144 (main): Use isnanf() instead of isnan().
24146 2007-10-21 Eric Blake <ebb9@byu.net>
24148 * users.txt: Update URL for m4.
24150 2007-10-21 Bruno Haible <bruno@clisp.org>
24152 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
24154 2007-10-21 Bruno Haible <bruno@clisp.org>
24156 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
24157 Git's management files if the CVS files are not present.
24159 2007-10-20 Bruno Haible <bruno@clisp.org>
24161 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
24164 2007-10-20 Ben Pfaff <blp@gnu.org>
24166 * lib/math.in.h: Declare round, roundf, roundl if we are providing
24168 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
24169 * lib/round.c: New file.
24170 * lib/roundf.c: New file.
24171 * lib/roundl.c: New file.
24172 * m4/round.m4: New file.
24173 * m4/roundf.m4: New file.
24174 * m4/roundl.m4: New file.
24175 * m4/check-libm-func-m4: New file.
24176 * modules/math: Replace round, roundf, roundl related @VARS@ in
24178 * modules/round: New file.
24179 * modules/round-tests: New file.
24180 * modules/roundf: New file.
24181 * modules/roundf-tests: New file.
24182 * modules/roundl: New file.
24183 * modules/roundl-tests: New file.
24184 * tests/test-round1.c: New file.
24185 * tests/test-round2.c: New file.
24186 * tests/test-roundf1.c: New file.
24187 * tests/test-roundf2.c: New file.
24188 * tests/test-roundl.c: New file.
24189 * doc/functions/round.texi: Mention round module.
24190 * doc/functions/roundf.texi: Mention roundf module.
24191 * doc/functions/roundl.texi: Mention roundl module.
24192 * MODULES.html.sh: Mention new modules.
24193 Thanks to Bruno Haible for suggestions.
24195 2007-10-20 Jim Meyering <meyering@redhat.com>
24197 * lib/xprintf.c: Include <config.h> unconditionally.
24199 Change xprintf's license to GPL.
24200 * modules/xprintf (License): s/LGPL/GPL/, since this module
24201 depends on modules (exit and exitfail) which are GPL.
24202 Suggestion from Bruno Haible.
24205 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
24206 Use a clearer diagnostic.
24207 Patch from Bruno Haible.
24209 2007-10-20 Bruno Haible <bruno@clisp.org>
24211 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
24212 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
24213 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24215 2007-10-20 Bruno Haible <bruno@clisp.org>
24217 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
24218 precision in the comparison result > x - 1 or similar.
24219 * tests/test-ceilf2.c (correct_result_p): Likewise.
24220 * tests/test-truncf2.c (correct_result_p): Likewise.
24221 * tests/test-trunc2.c (correct_result_p): Likewise.
24222 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24224 2007-10-20 Bruno Haible <bruno@clisp.org>
24226 * modules/ceil: New file.
24227 * m4/ceil.m4: New file.
24228 * doc/functions/ceil.texi: Mention the 'ceil' module.
24230 2007-10-20 Bruno Haible <bruno@clisp.org>
24232 * modules/floor: New file.
24233 * m4/floor.m4: New file.
24234 * doc/functions/floor.texi: Mention the 'floor' module.
24236 2007-10-20 Bruno Haible <bruno@clisp.org>
24238 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
24240 * modules/floorf-tests (Depends-on): Likewise.
24241 * modules/truncf-tests (Depends-on): Likewise.
24242 * modules/trunc-tests (Depends-on): Likewise.
24243 Reported by Ben Pfaff.
24245 2007-10-19 Jim Meyering <meyering@redhat.com>
24247 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
24248 Don't bother testing specific errno values. Just test ferror.
24250 New module: xprintf
24251 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
24253 2007-10-19 Bruno Haible <bruno@clisp.org>
24255 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
24257 * modules/javaexec (Makefile.am): Likewise.
24258 * modules/relocatable-prog (Makefile.am): Likewise.
24259 Suggested by Jim Meyering.
24261 2007-10-18 Bruno Haible <bruno@clisp.org>
24263 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
24264 Reported by Jim Meyering.
24266 2007-10-18 Eric Blake <ebb9@byu.net>
24268 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
24270 2007-10-18 Bruno Haible <bruno@clisp.org>
24272 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
24273 the format string into writable memory. Needed in Fortify conditions.
24275 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
24276 Bruno Haible <bruno@clisp.org>
24278 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
24279 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
24280 * modules/trim (Depends-on): Add mbchar.
24281 (configure.ac): Add gl_FUNC_MBRTOWC.
24282 (Makefile.am): Augment lib_SOURCES.
24284 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
24286 Modify glob.c to use fstatat and dirfd, to simplify it.
24287 Suggested by Eric Blake.
24288 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
24289 Don't include <stdbool.h>; not used.
24290 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
24291 (link_exists_p): Simplify implementation, since we can now assume
24293 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
24295 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24297 * gnulib-tool (func_get_dependencies): Fix sed script to
24300 2007-10-17 Bruno Haible <bruno@clisp.org>
24302 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
24303 allow locale names without encoding suffix.
24304 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
24305 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24307 2007-10-16 Bruno Haible <bruno@clisp.org>
24309 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
24310 * lib/getgroups.c (getgroups): Likewise.
24311 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
24313 2007-10-16 Bruno Haible <bruno@clisp.org>
24315 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
24316 * modules/malloc-posix (License): Likewise.
24317 * modules/realloc-posix (License): Likewise.
24318 * modules/calloc-posix (License): Likewise.
24319 * modules/intprops (License): Change from GPL to LGPL, with
24320 Paul Eggert's approval.
24322 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
24324 Merge glibc changes into lib/glob.c.
24326 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
24327 2007-10-15 04:59:03 UTC. Here are the changes:
24329 2007-10-14 Ulrich Drepper <drepper@redhat.com>
24331 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
24333 * lib/glob.c: Add some branch prediction throughout.
24335 2007-10-07 Ulrich Drepper <drepper@redhat.com>
24338 * lib/glob.c (glob): Recognize patterns starting \/.
24340 2007-02-14 Jakub Jelinek <jakub@redhat.com>
24343 * lib/glob.c (attribute_hidden): Define if not defined.
24344 (glob): Unescape dirname, filename or username when needed and not
24345 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
24346 is NULL. Handle unescaped [ in pattern without closing ].
24347 Don't pass GLOB_CHECK down to recursive glob for directories.
24348 (__glob_pattern_type): New function.
24349 (__glob_pattern_p): Implement using __glob_pattern_type.
24350 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
24351 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
24352 Remove unreachable code.
24354 2006-09-30 Ulrich Drepper <drepper@redhat.com>
24356 * lib/glob.c (glob_in_dir): Add some comments and asserts to
24357 explain why there are no leaks.
24359 2006-09-25 Jakub Jelinek <jakub@redhat.com>
24362 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
24363 time, rather allocate increasingly bigger arrays of pointers, if
24364 possible with alloca, if too large with malloc.
24366 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
24368 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
24369 Problem reported by H.Merijn Brand in
24370 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
24371 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
24372 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
24374 2007-10-15 Bruno Haible <bruno@clisp.org>
24376 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
24377 with explicit rpl_ prefix.
24378 * lib/fopen.c (fopen): Likewise.
24379 * lib/freopen.c (freopen): Likewise.
24380 * lib/iconv.c (iconv): Likewise.
24381 * lib/iconv_close.c (iconv_close): Likewise.
24383 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24385 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
24387 2007-10-15 Bruno Haible <bruno@clisp.org>
24389 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
24390 <stddef.h> instead of <stdlib.h> since we only need NULL.
24391 Reported by Ben Pfaff <blp@cs.stanford.edu>.
24393 2007-10-15 Bruno Haible <bruno@clisp.org>
24395 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
24396 Replace paragraph talking about LIBOBJS.
24397 Reported by Colin Watson <cjwatson@debian.org>.
24399 2007-10-15 Bruno Haible <bruno@clisp.org>
24401 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
24402 <stdlib.h> before using NULL.
24404 2007-10-15 Simon Josefsson <simon@josefsson.org>
24406 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
24407 Reported by Albert Chin <china@thewrittenword.com>.
24409 2007-10-14 Bruno Haible <bruno@clisp.org>
24411 * modules/iconv_open-utf-tests: New file.
24412 * tests/test-iconv-utf.c: New file.
24414 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
24415 * modules/iconv_open-utf: New file.
24416 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
24417 (iconv, iconv_close): New declarations.
24418 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
24420 (iconv_open): Add special handling of conversion between UTF-8 and
24421 UTF-{16,32}{BE,LE}.
24422 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
24423 * lib/iconv_close.c: New file.
24424 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
24425 gl_FUNC_ICONV_OPEN.
24426 (gl_FUNC_ICONV_OPEN): Use it.
24427 (gl_FUNC_ICONV_OPEN_UTF): New macro.
24428 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
24429 and REPLACE_ICONV_UTF.
24430 * modules/iconv_open (Depends-on): Add c-strcase.
24431 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
24433 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
24435 2007-10-13 Albert Chin <china@thewrittenword.com>
24436 Bruno Haible <bruno@clisp.org>
24438 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
24439 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
24441 2007-10-13 Bruno Haible <bruno@clisp.org>
24443 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
24444 defined, use the ISO C99 inline semantics.
24445 * lib/argp.h (ARGP_EI): Likewise.
24447 2007-10-13 Bruno Haible <bruno@clisp.org>
24449 Handle 'inline' change in gcc 4.3.0.
24450 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
24451 argp_fmtstream_write, argp_fmtstream_set_lmargin,
24452 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
24453 argp_fmtstream_point): Disable 'extern' declaration if the function
24454 definition is going to be provided inline.
24455 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
24456 semantics, not the ISO C99 inline semantics.
24457 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
24458 'extern' declaration if the function definition is going to be provided
24460 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
24461 the GNU C inline semantics, not the ISO C99 inline semantics. With
24462 GCC 4.2, avoid a warning.
24464 2007-10-13 Bruno Haible <bruno@clisp.org>
24466 * lib/freading.h (freading): Enable the use of __freading for
24468 * lib/freading.c (freading): Likewise.
24470 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
24472 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
24473 "warning: C99 inline functions are not supported; using GNU89".
24475 2007-10-12 Bruno Haible <bruno@clisp.org>
24477 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
24479 * tests/test-ceilf2.c: New file.
24480 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
24482 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
24483 * modules/ceilf-tests: Update.
24485 2007-10-12 Bruno Haible <bruno@clisp.org>
24487 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
24489 * tests/test-floorf2.c: New file.
24490 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
24492 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
24493 * modules/floorf-tests: Update.
24495 2007-10-12 Bruno Haible <bruno@clisp.org>
24497 * tests/test-trunc2.c: New file.
24498 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
24500 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
24501 * modules/trunc-tests: Update.
24503 2007-10-12 Bruno Haible <bruno@clisp.org>
24505 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
24507 * tests/test-truncf2.c: New file.
24508 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
24510 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
24511 * modules/truncf-tests: Update.
24513 2007-10-11 Eric Blake <ebb9@byu.net>
24515 Don't claim strerror is broken on Interix.
24516 * doc/functions/strerror.texi (strerror): Known broken systems are
24517 now Solaris 8, and not Interix.
24518 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
24519 Interix on cross-compile.
24520 Reported by Martin Koeppe in
24521 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
24523 2007-10-11 Bruno Haible <bruno@clisp.org>
24525 * modules/i-ring-tests: New file.
24526 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
24529 2007-10-11 Bruno Haible <bruno@clisp.org>
24531 * modules/filenamecat-tests: New file.
24532 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
24533 * lib/filenamecat.c: Remove test code.
24535 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
24537 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
24539 * lib/strerror.c: Include <string.h> always, to test interface,
24540 and to remove the need for the dummy.
24541 Include intprops.h to compute width instead of doing it ourselves
24542 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
24543 (strerror): Define it to return NULL if there's no system strerror.
24544 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
24545 Omit !HAVE_STRERROR code. We don't need to worry about supporting
24546 ancient pre-strerror Unix systems well any more. Saying "unknown
24547 system error" is enough.
24548 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
24549 simpler strerror.c implementation.
24550 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
24551 Simplify the tests to reflect the simpler strerror implementation.
24552 * modules/strerror (Depends-on): Add intprops.
24554 2007-10-09 Eric Blake <ebb9@byu.net>
24556 Silence test-fpending.
24557 * modules/fpending-tests (Files): Add wrapper script.
24558 * tests/test-fpending.sh: New file.
24560 2007-10-09 Bruno Haible <bruno@clisp.org>
24562 * MODULES.html.sh (func_module): Don't create a hyperlink for
24563 function names like 'printf_frexp'.
24564 (Misc): Add crc, memxor.
24565 (Characteristics of floating types): New section.
24566 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
24567 isnanf-nolibm, signbit, trunc, truncf, truncl.
24568 (Enhancements for ISO C 99 functions): New subsection Input/output.
24569 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
24570 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
24571 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
24572 (Compatibility checks for POSIX:2001 functions): Add clock-time.
24573 (Enhancements for POSIX:2001 functions): Add chdir-long.
24574 (File system functions): Add areadlink, chdir-safer, read-file.
24575 Remove cycle-check.
24576 (File system as inode set): New section.
24577 (Date and time): Add gethrxtime.
24578 (Multithreading): Add openmp.
24579 (Internationalization functions): Add localename.
24580 (Unicode string functions): Add unistr/u*-mbsnlen.
24581 (Support for maintaining and releasing projects): Add git-version-gen.
24582 (Lone files): Remove directories.
24584 2007-10-08 Ben Pfaff <blp@gnu.org>
24586 * lib/xmalloca.h: Fix typo in comment.
24588 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
24590 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
24591 when avoiding problems with integer overflow. Use a portable test
24594 2007-10-08 Simon Josefsson <simon@josefsson.org>
24596 * modules/dummy (License): Change to LGPLv2+.
24597 * modules/float (License): Likewise
24598 * modules/realloc (License): Likewise
24599 * modules/stdlib (License): Likewise
24601 2007-10-07 Bruno Haible <bruno@clisp.org>
24603 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
24604 * floor.c (TWO_MANT_DIG): Likewise.
24605 * ceil.c (TWO_MANT_DIG): Likewise.
24606 Reported by Ben Pfaff.
24608 2007-10-07 Bruno Haible <bruno@clisp.org>
24610 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
24611 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
24612 * lib/frexp.c (FUNC): Likewise.
24613 * lib/printf-frexp.h (printf_frexp): Likewise.
24614 * lib/printf-frexpl.h (printf_frexpl): Likewise.
24615 * lib/printf-frexp.c (FUNC): Likewise.
24616 Suggested by Jim Meyering.
24618 2007-10-07 Jim Meyering <meyering@redhat.com>
24620 Make xnanosleep's integer overflow test more robust.
24621 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
24622 so that gcc-4.3.0 doesn't optimize away this test for overflow.
24624 2007-10-07 Bruno Haible <bruno@clisp.org>
24626 * NEWS: Mention the license change.
24628 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
24629 abbreviations in the modules files.
24631 Change copyright notice from GPLv2+ to GPLv3+.
24632 * README: Change copyright notice.
24633 * MODULES.html.sh: Likewise.
24634 * build-aux/bootstrap.conf: Likewise.
24635 * build-aux/config.libpath: Likewise.
24636 * build-aux/csharpcomp.sh.in: Likewise.
24637 * build-aux/csharpexec.sh.in: Likewise.
24638 * build-aux/install-reloc: Likewise.
24639 * build-aux/javacomp.sh.in: Likewise.
24640 * build-aux/javaexec.sh.in: Likewise.
24641 * build-aux/ldd.sh.in: Likewise.
24642 * build-aux/reloc-ldflags: Likewise.
24643 * build-aux/relocatable.sh.in: Likewise.
24644 * build-aux/x-to-1.in: Likewise.
24645 * check-module: Likewise.
24646 * config/srclistvars.sh: Likewise.
24647 * gnulib-tool: Likewise.
24648 * lib/acl-internal.h: Likewise.
24649 * lib/acl.c: Likewise.
24650 * lib/acl.h: Likewise.
24651 * lib/acl_entries.c: Likewise.
24652 * lib/areadlink-with-size.c: Likewise.
24653 * lib/areadlink.c: Likewise.
24654 * lib/areadlink.h: Likewise.
24655 * lib/argmatch.c: Likewise.
24656 * lib/argmatch.h: Likewise.
24657 * lib/argp-ba.c: Likewise.
24658 * lib/argp-eexst.c: Likewise.
24659 * lib/argp-fmtstream.c: Likewise.
24660 * lib/argp-fmtstream.h: Likewise.
24661 * lib/argp-fs-xinl.c: Likewise.
24662 * lib/argp-help.c: Likewise.
24663 * lib/argp-namefrob.h: Likewise.
24664 * lib/argp-parse.c: Likewise.
24665 * lib/argp-pin.c: Likewise.
24666 * lib/argp-pv.c: Likewise.
24667 * lib/argp-pvh.c: Likewise.
24668 * lib/argp-xinl.c: Likewise.
24669 * lib/argp.h: Likewise.
24670 * lib/at-func.c: Likewise.
24671 * lib/atanl.c: Likewise.
24672 * lib/backupfile.c: Likewise.
24673 * lib/backupfile.h: Likewise.
24674 * lib/basename.c: Likewise.
24675 * lib/binary-io.h: Likewise.
24676 * lib/byteswap.in.h: Likewise.
24677 * lib/c-stack.c: Likewise.
24678 * lib/c-stack.h: Likewise.
24679 * lib/c-strcasestr.c: Likewise.
24680 * lib/c-strcasestr.h: Likewise.
24681 * lib/c-strstr.c: Likewise.
24682 * lib/c-strstr.h: Likewise.
24683 * lib/c-strtod.c: Likewise.
24684 * lib/calloc.c: Likewise.
24685 * lib/canon-host.c: Likewise.
24686 * lib/canon-host.h: Likewise.
24687 * lib/canonicalize-lgpl.c: Likewise.
24688 * lib/canonicalize.c: Likewise.
24689 * lib/canonicalize.h: Likewise.
24690 * lib/ceil.c: Likewise.
24691 * lib/ceilf.c: Likewise.
24692 * lib/ceill.c: Likewise.
24693 * lib/chdir-long.c: Likewise.
24694 * lib/chdir-long.h: Likewise.
24695 * lib/chdir-safer.c: Likewise.
24696 * lib/chdir-safer.h: Likewise.
24697 * lib/chown.c: Likewise.
24698 * lib/classpath.c: Likewise.
24699 * lib/classpath.h: Likewise.
24700 * lib/clean-temp.c: Likewise.
24701 * lib/clean-temp.h: Likewise.
24702 * lib/cloexec.c: Likewise.
24703 * lib/close-stream.c: Likewise.
24704 * lib/closein.c: Likewise.
24705 * lib/closein.h: Likewise.
24706 * lib/closeout.c: Likewise.
24707 * lib/closeout.h: Likewise.
24708 * lib/concat-filename.c: Likewise.
24709 * lib/copy-file.c: Likewise.
24710 * lib/copy-file.h: Likewise.
24711 * lib/count-one-bits.h: Likewise.
24712 * lib/crc.c: Likewise.
24713 * lib/crc.h: Likewise.
24714 * lib/creat-safer.c: Likewise.
24715 * lib/csharpcomp.c: Likewise.
24716 * lib/csharpcomp.h: Likewise.
24717 * lib/csharpexec.c: Likewise.
24718 * lib/csharpexec.h: Likewise.
24719 * lib/cycle-check.c: Likewise.
24720 * lib/cycle-check.h: Likewise.
24721 * lib/diacrit.c: Likewise.
24722 * lib/diacrit.h: Likewise.
24723 * lib/diffseq.h: Likewise.
24724 * lib/dirchownmod.c: Likewise.
24725 * lib/dirent.in.h: Likewise.
24726 * lib/dirfd.c: Likewise.
24727 * lib/dirfd.h: Likewise.
24728 * lib/dirname.c: Likewise.
24729 * lib/dirname.h: Likewise.
24730 * lib/dummy.c: Likewise.
24731 * lib/dup-safer.c: Likewise.
24732 * lib/dup2.c: Likewise.
24733 * lib/eealloc.h: Likewise.
24734 * lib/error.c: Likewise.
24735 * lib/error.h: Likewise.
24736 * lib/euidaccess.c: Likewise.
24737 * lib/exclude.c: Likewise.
24738 * lib/exclude.h: Likewise.
24739 * lib/execute.c: Likewise.
24740 * lib/execute.h: Likewise.
24741 * lib/exitfail.c: Likewise.
24742 * lib/exitfail.h: Likewise.
24743 * lib/expl.c: Likewise.
24744 * lib/fatal-signal.c: Likewise.
24745 * lib/fatal-signal.h: Likewise.
24746 * lib/fbufmode.c: Likewise.
24747 * lib/fbufmode.h: Likewise.
24748 * lib/fchdir.c: Likewise.
24749 * lib/fchmodat.c: Likewise.
24750 * lib/fchownat.c: Likewise.
24751 * lib/fcntl--.h: Likewise.
24752 * lib/fcntl-safer.h: Likewise.
24753 * lib/fcntl.in.h: Likewise.
24754 * lib/fd-safer.c: Likewise.
24755 * lib/fflush.c: Likewise.
24756 * lib/file-has-acl.c: Likewise.
24757 * lib/file-set.c: Likewise.
24758 * lib/file-type.c: Likewise.
24759 * lib/file-type.h: Likewise.
24760 * lib/fileblocks.c: Likewise.
24761 * lib/filemode.c: Likewise.
24762 * lib/filemode.h: Likewise.
24763 * lib/filename.h: Likewise.
24764 * lib/filenamecat.c: Likewise.
24765 * lib/filenamecat.h: Likewise.
24766 * lib/findprog.c: Likewise.
24767 * lib/findprog.h: Likewise.
24768 * lib/float.in.h: Likewise.
24769 * lib/floor.c: Likewise.
24770 * lib/floorf.c: Likewise.
24771 * lib/floorl.c: Likewise.
24772 * lib/fopen-safer.c: Likewise.
24773 * lib/fopen.c: Likewise.
24774 * lib/fpending.c: Likewise.
24775 * lib/fpending.h: Likewise.
24776 * lib/fprintf.c: Likewise.
24777 * lib/fprintftime.h: Likewise.
24778 * lib/fpucw.h: Likewise.
24779 * lib/fpurge.c: Likewise.
24780 * lib/fpurge.h: Likewise.
24781 * lib/freadable.c: Likewise.
24782 * lib/freadable.h: Likewise.
24783 * lib/freadahead.c: Likewise.
24784 * lib/freadahead.h: Likewise.
24785 * lib/freading.c: Likewise.
24786 * lib/freading.h: Likewise.
24787 * lib/free.c: Likewise.
24788 * lib/freopen.c: Likewise.
24789 * lib/frexp.c: Likewise.
24790 * lib/frexpl.c: Likewise.
24791 * lib/fseek.c: Likewise.
24792 * lib/fseterr.c: Likewise.
24793 * lib/fseterr.h: Likewise.
24794 * lib/fstatat.c: Likewise.
24795 * lib/fstrcmp.c: Likewise.
24796 * lib/fstrcmp.h: Likewise.
24797 * lib/fsusage.c: Likewise.
24798 * lib/fsusage.h: Likewise.
24799 * lib/ftell.c: Likewise.
24800 * lib/ftello.c: Likewise.
24801 * lib/fts-cycle.c: Likewise.
24802 * lib/fts.c: Likewise.
24803 * lib/fts_.h: Likewise.
24804 * lib/full-read.c: Likewise.
24805 * lib/full-read.h: Likewise.
24806 * lib/full-write.c: Likewise.
24807 * lib/full-write.h: Likewise.
24808 * lib/fwritable.c: Likewise.
24809 * lib/fwritable.h: Likewise.
24810 * lib/fwriteerror.c: Likewise.
24811 * lib/fwriteerror.h: Likewise.
24812 * lib/fwriting.c: Likewise.
24813 * lib/fwriting.h: Likewise.
24814 * lib/gcd.c: Likewise.
24815 * lib/gcd.h: Likewise.
24816 * lib/getcwd.c: Likewise.
24817 * lib/getdate.h: Likewise.
24818 * lib/getdate.y: Likewise.
24819 * lib/getdomainname.c: Likewise.
24820 * lib/getdomainname.h: Likewise.
24821 * lib/getgroups.c: Likewise.
24822 * lib/gethostname.c: Likewise.
24823 * lib/gethrxtime.c: Likewise.
24824 * lib/gethrxtime.h: Likewise.
24825 * lib/getloadavg.c: Likewise.
24826 * lib/getndelim2.c: Likewise.
24827 * lib/getndelim2.h: Likewise.
24828 * lib/getnline.c: Likewise.
24829 * lib/getnline.h: Likewise.
24830 * lib/getopt.c: Likewise.
24831 * lib/getopt.in.h: Likewise.
24832 * lib/getopt1.c: Likewise.
24833 * lib/getopt_int.h: Likewise.
24834 * lib/getpagesize.h: Likewise.
24835 * lib/getsubopt.c: Likewise.
24836 * lib/gettime.c: Likewise.
24837 * lib/getugroups.c: Likewise.
24838 * lib/getugroups.h: Likewise.
24839 * lib/getusershell.c: Likewise.
24840 * lib/gl_anyavltree_list1.h: Likewise.
24841 * lib/gl_anyavltree_list2.h: Likewise.
24842 * lib/gl_anyhash_list1.h: Likewise.
24843 * lib/gl_anyhash_list2.h: Likewise.
24844 * lib/gl_anylinked_list1.h: Likewise.
24845 * lib/gl_anylinked_list2.h: Likewise.
24846 * lib/gl_anyrbtree_list1.h: Likewise.
24847 * lib/gl_anyrbtree_list2.h: Likewise.
24848 * lib/gl_anytree_list1.h: Likewise.
24849 * lib/gl_anytree_list2.h: Likewise.
24850 * lib/gl_anytree_oset.h: Likewise.
24851 * lib/gl_anytreehash_list1.h: Likewise.
24852 * lib/gl_anytreehash_list2.h: Likewise.
24853 * lib/gl_array_list.c: Likewise.
24854 * lib/gl_array_list.h: Likewise.
24855 * lib/gl_array_oset.c: Likewise.
24856 * lib/gl_array_oset.h: Likewise.
24857 * lib/gl_avltree_list.c: Likewise.
24858 * lib/gl_avltree_list.h: Likewise.
24859 * lib/gl_avltree_oset.c: Likewise.
24860 * lib/gl_avltree_oset.h: Likewise.
24861 * lib/gl_avltreehash_list.c: Likewise.
24862 * lib/gl_avltreehash_list.h: Likewise.
24863 * lib/gl_carray_list.c: Likewise.
24864 * lib/gl_carray_list.h: Likewise.
24865 * lib/gl_linked_list.c: Likewise.
24866 * lib/gl_linked_list.h: Likewise.
24867 * lib/gl_linkedhash_list.c: Likewise.
24868 * lib/gl_linkedhash_list.h: Likewise.
24869 * lib/gl_list.c: Likewise.
24870 * lib/gl_list.h: Likewise.
24871 * lib/gl_oset.c: Likewise.
24872 * lib/gl_oset.h: Likewise.
24873 * lib/gl_rbtree_list.c: Likewise.
24874 * lib/gl_rbtree_list.h: Likewise.
24875 * lib/gl_rbtree_oset.c: Likewise.
24876 * lib/gl_rbtree_oset.h: Likewise.
24877 * lib/gl_rbtreehash_list.c: Likewise.
24878 * lib/gl_rbtreehash_list.h: Likewise.
24879 * lib/gl_sublist.c: Likewise.
24880 * lib/gl_sublist.h: Likewise.
24881 * lib/group-member.c: Likewise.
24882 * lib/group-member.h: Likewise.
24883 * lib/hard-locale.c: Likewise.
24884 * lib/hard-locale.h: Likewise.
24885 * lib/hash-pjw.c: Likewise.
24886 * lib/hash-pjw.h: Likewise.
24887 * lib/hash-triple.c: Likewise.
24888 * lib/hash.c: Likewise.
24889 * lib/hash.h: Likewise.
24890 * lib/human.c: Likewise.
24891 * lib/human.h: Likewise.
24892 * lib/i-ring.c: Likewise.
24893 * lib/i-ring.h: Likewise.
24894 * lib/idcache.c: Likewise.
24895 * lib/imaxabs.c: Likewise.
24896 * lib/imaxdiv.c: Likewise.
24897 * lib/inet_pton.c: Likewise.
24898 * lib/inet_pton.h: Likewise.
24899 * lib/intprops.h: Likewise.
24900 * lib/inttostr.c: Likewise.
24901 * lib/inttostr.h: Likewise.
24902 * lib/inttypes.in.h: Likewise.
24903 * lib/isapipe.c: Likewise.
24904 * lib/isdir.c: Likewise.
24905 * lib/isnan.c: Likewise.
24906 * lib/isnan.h: Likewise.
24907 * lib/isnanf.c: Likewise.
24908 * lib/isnanf.h: Likewise.
24909 * lib/isnanl-nolibm.h: Likewise.
24910 * lib/isnanl.c: Likewise.
24911 * lib/isnanl.h: Likewise.
24912 * lib/javacomp.c: Likewise.
24913 * lib/javacomp.h: Likewise.
24914 * lib/javaexec.c: Likewise.
24915 * lib/javaexec.h: Likewise.
24916 * lib/javaversion.c: Likewise.
24917 * lib/javaversion.h: Likewise.
24918 * lib/javaversion.java: Likewise.
24919 * lib/lbrkprop.h: Likewise.
24920 * lib/lchmod.h: Likewise.
24921 * lib/lchown.c: Likewise.
24922 * lib/ldexpl.c: Likewise.
24923 * lib/linebreak.c: Likewise.
24924 * lib/linebreak.h: Likewise.
24925 * lib/linebuffer.c: Likewise.
24926 * lib/linebuffer.h: Likewise.
24927 * lib/locale.in.h: Likewise.
24928 * lib/logl.c: Likewise.
24929 * lib/long-options.c: Likewise.
24930 * lib/long-options.h: Likewise.
24931 * lib/lstat.c: Likewise.
24932 * lib/lstat.h: Likewise.
24933 * lib/math.in.h: Likewise.
24934 * lib/mbchar.c: Likewise.
24935 * lib/mbchar.h: Likewise.
24936 * lib/mbfile.h: Likewise.
24937 * lib/mbiter.h: Likewise.
24938 * lib/mbscasecmp.c: Likewise.
24939 * lib/mbscasestr.c: Likewise.
24940 * lib/mbschr.c: Likewise.
24941 * lib/mbscspn.c: Likewise.
24942 * lib/mbslen.c: Likewise.
24943 * lib/mbsncasecmp.c: Likewise.
24944 * lib/mbsnlen.c: Likewise.
24945 * lib/mbspbrk.c: Likewise.
24946 * lib/mbspcasecmp.c: Likewise.
24947 * lib/mbsrchr.c: Likewise.
24948 * lib/mbssep.c: Likewise.
24949 * lib/mbsspn.c: Likewise.
24950 * lib/mbsstr.c: Likewise.
24951 * lib/mbstok_r.c: Likewise.
24952 * lib/mbswidth.c: Likewise.
24953 * lib/mbswidth.h: Likewise.
24954 * lib/mbuiter.h: Likewise.
24955 * lib/memcasecmp.c: Likewise.
24956 * lib/memcasecmp.h: Likewise.
24957 * lib/memchr.c: Likewise.
24958 * lib/memcmp.c: Likewise.
24959 * lib/memcoll.c: Likewise.
24960 * lib/memcoll.h: Likewise.
24961 * lib/memcpy.c: Likewise.
24962 * lib/memrchr.c: Likewise.
24963 * lib/mkancesdirs.c: Likewise.
24964 * lib/mkdir-p.c: Likewise.
24965 * lib/mkdir-p.h: Likewise.
24966 * lib/mkdir.c: Likewise.
24967 * lib/mkdirat.c: Likewise.
24968 * lib/mkdtemp.c: Likewise.
24969 * lib/mkstemp-safer.c: Likewise.
24970 * lib/mkstemp.c: Likewise.
24971 * lib/modechange.c: Likewise.
24972 * lib/modechange.h: Likewise.
24973 * lib/mountlist.c: Likewise.
24974 * lib/mountlist.h: Likewise.
24975 * lib/mpsort.c: Likewise.
24976 * lib/nanosleep.c: Likewise.
24977 * lib/obstack.c: Likewise.
24978 * lib/obstack.h: Likewise.
24979 * lib/open-safer.c: Likewise.
24980 * lib/open.c: Likewise.
24981 * lib/openat-die.c: Likewise.
24982 * lib/openat-priv.h: Likewise.
24983 * lib/openat-proc.c: Likewise.
24984 * lib/openat.c: Likewise.
24985 * lib/openat.h: Likewise.
24986 * lib/pagealign_alloc.c: Likewise.
24987 * lib/pagealign_alloc.h: Likewise.
24988 * lib/physmem.c: Likewise.
24989 * lib/physmem.h: Likewise.
24990 * lib/pipe-safer.c: Likewise.
24991 * lib/pipe.c: Likewise.
24992 * lib/pipe.h: Likewise.
24993 * lib/posixtm.c: Likewise.
24994 * lib/posixtm.h: Likewise.
24995 * lib/posixver.c: Likewise.
24996 * lib/printf-frexp.c: Likewise.
24997 * lib/printf-frexp.h: Likewise.
24998 * lib/printf-frexpl.c: Likewise.
24999 * lib/printf-frexpl.h: Likewise.
25000 * lib/printf.c: Likewise.
25001 * lib/progname.c: Likewise.
25002 * lib/progname.h: Likewise.
25003 * lib/progreloc.c: Likewise.
25004 * lib/putenv.c: Likewise.
25005 * lib/quote.c: Likewise.
25006 * lib/quote.h: Likewise.
25007 * lib/quotearg.c: Likewise.
25008 * lib/quotearg.h: Likewise.
25009 * lib/raise.c: Likewise.
25010 * lib/readline.c: Likewise.
25011 * lib/readline.h: Likewise.
25012 * lib/readlink.c: Likewise.
25013 * lib/readtokens.c: Likewise.
25014 * lib/readtokens.h: Likewise.
25015 * lib/readtokens0.c: Likewise.
25016 * lib/readtokens0.h: Likewise.
25017 * lib/readutmp.c: Likewise.
25018 * lib/readutmp.h: Likewise.
25019 * lib/realloc.c: Likewise.
25020 * lib/relocwrapper.c: Likewise.
25021 * lib/rename-dest-slash.c: Likewise.
25022 * lib/rename.c: Likewise.
25023 * lib/rmdir.c: Likewise.
25024 * lib/rpmatch.c: Likewise.
25025 * lib/safe-read.c: Likewise.
25026 * lib/safe-read.h: Likewise.
25027 * lib/safe-write.c: Likewise.
25028 * lib/safe-write.h: Likewise.
25029 * lib/same-inode.h: Likewise.
25030 * lib/same.c: Likewise.
25031 * lib/same.h: Likewise.
25032 * lib/save-cwd.c: Likewise.
25033 * lib/save-cwd.h: Likewise.
25034 * lib/savedir.c: Likewise.
25035 * lib/savedir.h: Likewise.
25036 * lib/savewd.c: Likewise.
25037 * lib/savewd.h: Likewise.
25038 * lib/search.in.h: Likewise.
25039 * lib/setenv.c: Likewise.
25040 * lib/setenv.h: Likewise.
25041 * lib/settime.c: Likewise.
25042 * lib/sh-quote.c: Likewise.
25043 * lib/sh-quote.h: Likewise.
25044 * lib/sig2str.c: Likewise.
25045 * lib/sig2str.h: Likewise.
25046 * lib/signal.in.h: Likewise.
25047 * lib/signbitd.c: Likewise.
25048 * lib/signbitf.c: Likewise.
25049 * lib/signbitl.c: Likewise.
25050 * lib/sigprocmask.c: Likewise.
25051 * lib/sincosl.c: Likewise.
25052 * lib/sleep.c: Likewise.
25053 * lib/sprintf.c: Likewise.
25054 * lib/sqrtl.c: Likewise.
25055 * lib/stat-time.h: Likewise.
25056 * lib/stdio--.h: Likewise.
25057 * lib/stdio-safer.h: Likewise.
25058 * lib/stdlib--.h: Likewise.
25059 * lib/stdlib-safer.h: Likewise.
25060 * lib/stdlib.in.h: Likewise.
25061 * lib/stpcpy.c: Likewise.
25062 * lib/stpncpy.c: Likewise.
25063 * lib/strchrnul.c: Likewise.
25064 * lib/strcspn.c: Likewise.
25065 * lib/strerror.c: Likewise.
25066 * lib/strftime.c: Likewise.
25067 * lib/strftime.h: Likewise.
25068 * lib/striconveh.c: Likewise.
25069 * lib/striconveh.h: Likewise.
25070 * lib/striconveha.c: Likewise.
25071 * lib/striconveha.h: Likewise.
25072 * lib/stripslash.c: Likewise.
25073 * lib/strnlen1.c: Likewise.
25074 * lib/strnlen1.h: Likewise.
25075 * lib/strtod.c: Likewise.
25076 * lib/strtoimax.c: Likewise.
25077 * lib/strtok_r.c: Likewise.
25078 * lib/strtol.c: Likewise.
25079 * lib/strtoll.c: Likewise.
25080 * lib/strtoul.c: Likewise.
25081 * lib/strtoull.c: Likewise.
25082 * lib/sysexits.in.h: Likewise.
25083 * lib/tempname.c: Likewise.
25084 * lib/tempname.h: Likewise.
25085 * lib/timespec.h: Likewise.
25086 * lib/tls.c: Likewise.
25087 * lib/tls.h: Likewise.
25088 * lib/tmpdir.c: Likewise.
25089 * lib/tmpdir.h: Likewise.
25090 * lib/tmpfile-safer.c: Likewise.
25091 * lib/tmpfile.c: Likewise.
25092 * lib/trigl.c: Likewise.
25093 * lib/trigl.h: Likewise.
25094 * lib/trim.c: Likewise.
25095 * lib/trim.h: Likewise.
25096 * lib/trunc.c: Likewise.
25097 * lib/truncf.c: Likewise.
25098 * lib/truncl.c: Likewise.
25099 * lib/tsearch.c: Likewise.
25100 * lib/unicodeio.c: Likewise.
25101 * lib/unicodeio.h: Likewise.
25102 * lib/unistd--.h: Likewise.
25103 * lib/unistd-safer.h: Likewise.
25104 * lib/unistdio/ulc-fprintf.c: Likewise.
25105 * lib/unistdio/ulc-vfprintf.c: Likewise.
25106 * lib/unlinkdir.c: Likewise.
25107 * lib/unlinkdir.h: Likewise.
25108 * lib/unlocked-io.h: Likewise.
25109 * lib/unsetenv.c: Likewise.
25110 * lib/userspec.c: Likewise.
25111 * lib/utime.c: Likewise.
25112 * lib/utimecmp.c: Likewise.
25113 * lib/utimecmp.h: Likewise.
25114 * lib/utimens.c: Likewise.
25115 * lib/verify.h: Likewise.
25116 * lib/verror.c: Likewise.
25117 * lib/verror.h: Likewise.
25118 * lib/version-etc-fsf.c: Likewise.
25119 * lib/version-etc.c: Likewise.
25120 * lib/version-etc.h: Likewise.
25121 * lib/vfprintf.c: Likewise.
25122 * lib/vprintf.c: Likewise.
25123 * lib/vsprintf.c: Likewise.
25124 * lib/w32spawn.h: Likewise.
25125 * lib/wait-process.c: Likewise.
25126 * lib/wait-process.h: Likewise.
25127 * lib/wcwidth.c: Likewise.
25128 * lib/write-any-file.c: Likewise.
25129 * lib/xalloc-die.c: Likewise.
25130 * lib/xalloc.h: Likewise.
25131 * lib/xasprintf.c: Likewise.
25132 * lib/xgetcwd.c: Likewise.
25133 * lib/xgetcwd.h: Likewise.
25134 * lib/xgetdomainname.c: Likewise.
25135 * lib/xgetdomainname.h: Likewise.
25136 * lib/xgethostname.c: Likewise.
25137 * lib/xmalloc.c: Likewise.
25138 * lib/xmalloca.c: Likewise.
25139 * lib/xmalloca.h: Likewise.
25140 * lib/xmemcoll.c: Likewise.
25141 * lib/xnanosleep.c: Likewise.
25142 * lib/xreadlink.c: Likewise.
25143 * lib/xreadlink.h: Likewise.
25144 * lib/xsetenv.c: Likewise.
25145 * lib/xsetenv.h: Likewise.
25146 * lib/xstriconv.c: Likewise.
25147 * lib/xstriconv.h: Likewise.
25148 * lib/xstrndup.c: Likewise.
25149 * lib/xstrndup.h: Likewise.
25150 * lib/xstrtod.c: Likewise.
25151 * lib/xstrtod.h: Likewise.
25152 * lib/xstrtol-error.c: Likewise.
25153 * lib/xstrtol.c: Likewise.
25154 * lib/xstrtol.h: Likewise.
25155 * lib/xtime.h: Likewise.
25156 * lib/xvasprintf.c: Likewise.
25157 * lib/xvasprintf.h: Likewise.
25158 * lib/yesno.c: Likewise.
25159 * lib/yesno.h: Likewise.
25160 * posix-modules: Likewise.
25161 * tests/test-alloca-opt.c: Likewise.
25162 * tests/test-arcfour.c: Likewise.
25163 * tests/test-arctwo.c: Likewise.
25164 * tests/test-argmatch.c: Likewise.
25165 * tests/test-argp-2.sh: Likewise.
25166 * tests/test-argp.c: Likewise.
25167 * tests/test-arpa_inet.c: Likewise.
25168 * tests/test-array_list.c: Likewise.
25169 * tests/test-array_oset.c: Likewise.
25170 * tests/test-atexit.c: Likewise.
25171 * tests/test-avltree_list.c: Likewise.
25172 * tests/test-avltree_oset.c: Likewise.
25173 * tests/test-avltreehash_list.c: Likewise.
25174 * tests/test-base64.c: Likewise.
25175 * tests/test-binary-io.c: Likewise.
25176 * tests/test-byteswap.c: Likewise.
25177 * tests/test-c-ctype.c: Likewise.
25178 * tests/test-c-strcasecmp.c: Likewise.
25179 * tests/test-c-strcasestr.c: Likewise.
25180 * tests/test-c-strncasecmp.c: Likewise.
25181 * tests/test-c-strstr.c: Likewise.
25182 * tests/test-canonicalize-lgpl.c: Likewise.
25183 * tests/test-canonicalize.c: Likewise.
25184 * tests/test-carray_list.c: Likewise.
25185 * tests/test-ceilf.c: Likewise.
25186 * tests/test-ceill.c: Likewise.
25187 * tests/test-count-one-bits.c: Likewise.
25188 * tests/test-crc.c: Likewise.
25189 * tests/test-dirname.c: Likewise.
25190 * tests/test-fbufmode.c: Likewise.
25191 * tests/test-fcntl.c: Likewise.
25192 * tests/test-fflush.c: Likewise.
25193 * tests/test-floorf.c: Likewise.
25194 * tests/test-floorl.c: Likewise.
25195 * tests/test-fopen.c: Likewise.
25196 * tests/test-fprintf-posix.c: Likewise.
25197 * tests/test-fprintf-posix.h: Likewise.
25198 * tests/test-fpurge.c: Likewise.
25199 * tests/test-freadable.c: Likewise.
25200 * tests/test-freadahead.c: Likewise.
25201 * tests/test-freading.c: Likewise.
25202 * tests/test-freopen.c: Likewise.
25203 * tests/test-frexp.c: Likewise.
25204 * tests/test-frexpl.c: Likewise.
25205 * tests/test-fseek.c: Likewise.
25206 * tests/test-fseeko.c: Likewise.
25207 * tests/test-fseterr.c: Likewise.
25208 * tests/test-fstrcmp.c: Likewise.
25209 * tests/test-ftell.c: Likewise.
25210 * tests/test-ftello.c: Likewise.
25211 * tests/test-fwritable.c: Likewise.
25212 * tests/test-fwriting.c: Likewise.
25213 * tests/test-getaddrinfo.c: Likewise.
25214 * tests/test-getpass.c: Likewise.
25215 * tests/test-gettimeofday.c: Likewise.
25216 * tests/test-hmac-md5.c: Likewise.
25217 * tests/test-hmac-sha1.c: Likewise.
25218 * tests/test-iconv.c: Likewise.
25219 * tests/test-iconvme.c: Likewise.
25220 * tests/test-inttypes.c: Likewise.
25221 * tests/test-isnan.c: Likewise.
25222 * tests/test-isnanf.c: Likewise.
25223 * tests/test-isnanl-nolibm.c: Likewise.
25224 * tests/test-isnanl.c: Likewise.
25225 * tests/test-isnanl.h: Likewise.
25226 * tests/test-ldexpl.c: Likewise.
25227 * tests/test-linked_list.c: Likewise.
25228 * tests/test-linkedhash_list.c: Likewise.
25229 * tests/test-locale.c: Likewise.
25230 * tests/test-localename.c: Likewise.
25231 * tests/test-lock.c: Likewise.
25232 * tests/test-lseek.c: Likewise.
25233 * tests/test-malloca.c: Likewise.
25234 * tests/test-math.c: Likewise.
25235 * tests/test-mbscasecmp.c: Likewise.
25236 * tests/test-mbscasestr1.c: Likewise.
25237 * tests/test-mbscasestr2.c: Likewise.
25238 * tests/test-mbscasestr3.c: Likewise.
25239 * tests/test-mbscasestr4.c: Likewise.
25240 * tests/test-mbschr.c: Likewise.
25241 * tests/test-mbscspn.c: Likewise.
25242 * tests/test-mbsncasecmp.c: Likewise.
25243 * tests/test-mbspbrk.c: Likewise.
25244 * tests/test-mbspcasecmp.c: Likewise.
25245 * tests/test-mbsrchr.c: Likewise.
25246 * tests/test-mbsspn.c: Likewise.
25247 * tests/test-mbsstr1.c: Likewise.
25248 * tests/test-mbsstr2.c: Likewise.
25249 * tests/test-mbsstr3.c: Likewise.
25250 * tests/test-md5.c: Likewise.
25251 * tests/test-memmem.c: Likewise.
25252 * tests/test-netinet_in.c: Likewise.
25253 * tests/test-open.c: Likewise.
25254 * tests/test-printf-frexp.c: Likewise.
25255 * tests/test-printf-frexpl.c: Likewise.
25256 * tests/test-printf-posix.c: Likewise.
25257 * tests/test-printf-posix.h: Likewise.
25258 * tests/test-rbtree_list.c: Likewise.
25259 * tests/test-rbtree_oset.c: Likewise.
25260 * tests/test-rbtreehash_list.c: Likewise.
25261 * tests/test-read-file.c: Likewise.
25262 * tests/test-rijndael.c: Likewise.
25263 * tests/test-search.c: Likewise.
25264 * tests/test-signbit.c: Likewise.
25265 * tests/test-sleep.c: Likewise.
25266 * tests/test-snprintf-posix.c: Likewise.
25267 * tests/test-snprintf-posix.h: Likewise.
25268 * tests/test-snprintf.c: Likewise.
25269 * tests/test-sprintf-posix.c: Likewise.
25270 * tests/test-sprintf-posix.h: Likewise.
25271 * tests/test-stat-time.c: Likewise.
25272 * tests/test-stdbool.c: Likewise.
25273 * tests/test-stdint.c: Likewise.
25274 * tests/test-stdio.c: Likewise.
25275 * tests/test-stdlib.c: Likewise.
25276 * tests/test-stpncpy.c: Likewise.
25277 * tests/test-strcasestr.c: Likewise.
25278 * tests/test-striconv.c: Likewise.
25279 * tests/test-striconveh.c: Likewise.
25280 * tests/test-striconveha.c: Likewise.
25281 * tests/test-string.c: Likewise.
25282 * tests/test-sys_select.c: Likewise.
25283 * tests/test-sys_socket.c: Likewise.
25284 * tests/test-sys_stat.c: Likewise.
25285 * tests/test-sys_time.c: Likewise.
25286 * tests/test-sysexits.c: Likewise.
25287 * tests/test-time.c: Likewise.
25288 * tests/test-tls.c: Likewise.
25289 * tests/test-trunc.c: Likewise.
25290 * tests/test-truncf.c: Likewise.
25291 * tests/test-truncl.c: Likewise.
25292 * tests/test-unistd.c: Likewise.
25293 * tests/test-vasnprintf-posix.c: Likewise.
25294 * tests/test-vasnprintf-posix2.c: Likewise.
25295 * tests/test-vasnprintf.c: Likewise.
25296 * tests/test-vasprintf-posix.c: Likewise.
25297 * tests/test-vasprintf.c: Likewise.
25298 * tests/test-verify.c: Likewise.
25299 * tests/test-vfprintf-posix.c: Likewise.
25300 * tests/test-vprintf-posix.c: Likewise.
25301 * tests/test-vsnprintf-posix.c: Likewise.
25302 * tests/test-vsnprintf.c: Likewise.
25303 * tests/test-vsprintf-posix.c: Likewise.
25304 * tests/test-wchar.c: Likewise.
25305 * tests/test-wctype.c: Likewise.
25306 * tests/test-wcwidth.c: Likewise.
25307 * tests/test-xstrtol.c: Likewise.
25308 * tests/test-xvasprintf.c: Likewise.
25309 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
25310 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
25311 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25312 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25313 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25314 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
25315 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25316 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25317 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25318 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
25319 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25320 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25321 * tests/uniname/test-uninames.c: Likewise.
25322 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
25323 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
25324 * tests/unistdio/test-u16-printf1.h: Likewise.
25325 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
25326 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
25327 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
25328 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
25329 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
25330 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
25331 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
25332 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
25333 * tests/unistdio/test-u32-printf1.h: Likewise.
25334 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
25335 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
25336 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
25337 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
25338 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
25339 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
25340 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
25341 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
25342 * tests/unistdio/test-u8-printf1.h: Likewise.
25343 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
25344 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
25345 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
25346 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
25347 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
25348 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
25349 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
25350 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
25351 * tests/unistdio/test-ulc-printf1.h: Likewise.
25352 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
25353 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
25354 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
25355 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
25356 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
25357 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
25358 * tests/uniwidth/test-u16-strwidth.c: Likewise.
25359 * tests/uniwidth/test-u16-width.c: Likewise.
25360 * tests/uniwidth/test-u32-strwidth.c: Likewise.
25361 * tests/uniwidth/test-u32-width.c: Likewise.
25362 * tests/uniwidth/test-u8-strwidth.c: Likewise.
25363 * tests/uniwidth/test-u8-width.c: Likewise.
25364 * tests/uniwidth/test-uc_width.c: Likewise.
25365 * config/srclist-update: Likewise.
25366 (fixlicense): Update to GPLv3+.
25368 Change copyright notice from LGPLv2.1+ to LGPLv3+.
25369 * tests/test-tsearch.c: Change copyright notice.
25371 Change copyright notice from LGPLv2.0+ to LGPLv3+.
25372 * lib/c-strcaseeq.h: Change copyright notice.
25373 * lib/streq.h: Likewise.
25374 * lib/uniconv.h: Likewise.
25375 * lib/uniconv/u-conv-from-enc.h: Likewise.
25376 * lib/uniconv/u-conv-to-enc.h: Likewise.
25377 * lib/uniconv/u-strconv-from-enc.h: Likewise.
25378 * lib/uniconv/u-strconv-to-enc.h: Likewise.
25379 * lib/uniconv/u16-conv-from-enc.c: Likewise.
25380 * lib/uniconv/u16-conv-to-enc.c: Likewise.
25381 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
25382 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
25383 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
25384 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
25385 * lib/uniconv/u32-conv-from-enc.c: Likewise.
25386 * lib/uniconv/u32-conv-to-enc.c: Likewise.
25387 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
25388 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
25389 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
25390 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
25391 * lib/uniconv/u8-conv-from-enc.c: Likewise.
25392 * lib/uniconv/u8-conv-to-enc.c: Likewise.
25393 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
25394 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
25395 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
25396 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
25397 * lib/uniname.h: Likewise.
25398 * lib/uniname/uniname.c: Likewise.
25399 * lib/unistdio.h: Likewise.
25400 * lib/unistdio/u-asnprintf.h: Likewise.
25401 * lib/unistdio/u-asprintf.h: Likewise.
25402 * lib/unistdio/u-printf-args.c: Likewise.
25403 * lib/unistdio/u-printf-args.h: Likewise.
25404 * lib/unistdio/u-printf-parse.h: Likewise.
25405 * lib/unistdio/u-snprintf.h: Likewise.
25406 * lib/unistdio/u-sprintf.h: Likewise.
25407 * lib/unistdio/u-vasprintf.h: Likewise.
25408 * lib/unistdio/u-vsnprintf.h: Likewise.
25409 * lib/unistdio/u-vsprintf.h: Likewise.
25410 * lib/unistdio/u16-asnprintf.c: Likewise.
25411 * lib/unistdio/u16-asprintf.c: Likewise.
25412 * lib/unistdio/u16-printf-parse.c: Likewise.
25413 * lib/unistdio/u16-snprintf.c: Likewise.
25414 * lib/unistdio/u16-sprintf.c: Likewise.
25415 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
25416 * lib/unistdio/u16-u16-asprintf.c: Likewise.
25417 * lib/unistdio/u16-u16-snprintf.c: Likewise.
25418 * lib/unistdio/u16-u16-sprintf.c: Likewise.
25419 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
25420 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
25421 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
25422 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
25423 * lib/unistdio/u16-vasnprintf.c: Likewise.
25424 * lib/unistdio/u16-vasprintf.c: Likewise.
25425 * lib/unistdio/u16-vsnprintf.c: Likewise.
25426 * lib/unistdio/u16-vsprintf.c: Likewise.
25427 * lib/unistdio/u32-asnprintf.c: Likewise.
25428 * lib/unistdio/u32-asprintf.c: Likewise.
25429 * lib/unistdio/u32-printf-parse.c: Likewise.
25430 * lib/unistdio/u32-snprintf.c: Likewise.
25431 * lib/unistdio/u32-sprintf.c: Likewise.
25432 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
25433 * lib/unistdio/u32-u32-asprintf.c: Likewise.
25434 * lib/unistdio/u32-u32-snprintf.c: Likewise.
25435 * lib/unistdio/u32-u32-sprintf.c: Likewise.
25436 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
25437 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
25438 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
25439 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
25440 * lib/unistdio/u32-vasnprintf.c: Likewise.
25441 * lib/unistdio/u32-vasprintf.c: Likewise.
25442 * lib/unistdio/u32-vsnprintf.c: Likewise.
25443 * lib/unistdio/u32-vsprintf.c: Likewise.
25444 * lib/unistdio/u8-asnprintf.c: Likewise.
25445 * lib/unistdio/u8-asprintf.c: Likewise.
25446 * lib/unistdio/u8-printf-parse.c: Likewise.
25447 * lib/unistdio/u8-snprintf.c: Likewise.
25448 * lib/unistdio/u8-sprintf.c: Likewise.
25449 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
25450 * lib/unistdio/u8-u8-asprintf.c: Likewise.
25451 * lib/unistdio/u8-u8-snprintf.c: Likewise.
25452 * lib/unistdio/u8-u8-sprintf.c: Likewise.
25453 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
25454 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
25455 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
25456 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
25457 * lib/unistdio/u8-vasnprintf.c: Likewise.
25458 * lib/unistdio/u8-vasprintf.c: Likewise.
25459 * lib/unistdio/u8-vsnprintf.c: Likewise.
25460 * lib/unistdio/u8-vsprintf.c: Likewise.
25461 * lib/unistdio/ulc-asnprintf.c: Likewise.
25462 * lib/unistdio/ulc-asprintf.c: Likewise.
25463 * lib/unistdio/ulc-printf-parse.c: Likewise.
25464 * lib/unistdio/ulc-snprintf.c: Likewise.
25465 * lib/unistdio/ulc-sprintf.c: Likewise.
25466 * lib/unistdio/ulc-vasnprintf.c: Likewise.
25467 * lib/unistdio/ulc-vasprintf.c: Likewise.
25468 * lib/unistdio/ulc-vsnprintf.c: Likewise.
25469 * lib/unistdio/ulc-vsprintf.c: Likewise.
25470 * lib/unistr.h: Likewise.
25471 * lib/unistr/u-cpy-alloc.h: Likewise.
25472 * lib/unistr/u-cpy.h: Likewise.
25473 * lib/unistr/u-endswith.h: Likewise.
25474 * lib/unistr/u-move.h: Likewise.
25475 * lib/unistr/u-set.h: Likewise.
25476 * lib/unistr/u-startswith.h: Likewise.
25477 * lib/unistr/u-stpcpy.h: Likewise.
25478 * lib/unistr/u-stpncpy.h: Likewise.
25479 * lib/unistr/u-strcat.h: Likewise.
25480 * lib/unistr/u-strcpy.h: Likewise.
25481 * lib/unistr/u-strcspn.h: Likewise.
25482 * lib/unistr/u-strdup.h: Likewise.
25483 * lib/unistr/u-strlen.h: Likewise.
25484 * lib/unistr/u-strncat.h: Likewise.
25485 * lib/unistr/u-strncpy.h: Likewise.
25486 * lib/unistr/u-strnlen.h: Likewise.
25487 * lib/unistr/u-strpbrk.h: Likewise.
25488 * lib/unistr/u-strspn.h: Likewise.
25489 * lib/unistr/u-strstr.h: Likewise.
25490 * lib/unistr/u-strtok.h: Likewise.
25491 * lib/unistr/u16-check.c: Likewise.
25492 * lib/unistr/u16-chr.c: Likewise.
25493 * lib/unistr/u16-cmp.c: Likewise.
25494 * lib/unistr/u16-cpy-alloc.c: Likewise.
25495 * lib/unistr/u16-cpy.c: Likewise.
25496 * lib/unistr/u16-endswith.c: Likewise.
25497 * lib/unistr/u16-mblen.c: Likewise.
25498 * lib/unistr/u16-mbsnlen.c: Likewise.
25499 * lib/unistr/u16-mbtouc-aux.c: Likewise.
25500 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
25501 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
25502 * lib/unistr/u16-mbtouc.c: Likewise.
25503 * lib/unistr/u16-mbtoucr.c: Likewise.
25504 * lib/unistr/u16-move.c: Likewise.
25505 * lib/unistr/u16-next.c: Likewise.
25506 * lib/unistr/u16-prev.c: Likewise.
25507 * lib/unistr/u16-set.c: Likewise.
25508 * lib/unistr/u16-startswith.c: Likewise.
25509 * lib/unistr/u16-stpcpy.c: Likewise.
25510 * lib/unistr/u16-stpncpy.c: Likewise.
25511 * lib/unistr/u16-strcat.c: Likewise.
25512 * lib/unistr/u16-strchr.c: Likewise.
25513 * lib/unistr/u16-strcmp.c: Likewise.
25514 * lib/unistr/u16-strcpy.c: Likewise.
25515 * lib/unistr/u16-strcspn.c: Likewise.
25516 * lib/unistr/u16-strdup.c: Likewise.
25517 * lib/unistr/u16-strlen.c: Likewise.
25518 * lib/unistr/u16-strmblen.c: Likewise.
25519 * lib/unistr/u16-strmbtouc.c: Likewise.
25520 * lib/unistr/u16-strncat.c: Likewise.
25521 * lib/unistr/u16-strncmp.c: Likewise.
25522 * lib/unistr/u16-strncpy.c: Likewise.
25523 * lib/unistr/u16-strnlen.c: Likewise.
25524 * lib/unistr/u16-strpbrk.c: Likewise.
25525 * lib/unistr/u16-strrchr.c: Likewise.
25526 * lib/unistr/u16-strspn.c: Likewise.
25527 * lib/unistr/u16-strstr.c: Likewise.
25528 * lib/unistr/u16-strtok.c: Likewise.
25529 * lib/unistr/u16-to-u32.c: Likewise.
25530 * lib/unistr/u16-to-u8.c: Likewise.
25531 * lib/unistr/u16-uctomb-aux.c: Likewise.
25532 * lib/unistr/u16-uctomb.c: Likewise.
25533 * lib/unistr/u32-check.c: Likewise.
25534 * lib/unistr/u32-chr.c: Likewise.
25535 * lib/unistr/u32-cmp.c: Likewise.
25536 * lib/unistr/u32-cpy-alloc.c: Likewise.
25537 * lib/unistr/u32-cpy.c: Likewise.
25538 * lib/unistr/u32-endswith.c: Likewise.
25539 * lib/unistr/u32-mblen.c: Likewise.
25540 * lib/unistr/u32-mbsnlen.c: Likewise.
25541 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
25542 * lib/unistr/u32-mbtouc.c: Likewise.
25543 * lib/unistr/u32-mbtoucr.c: Likewise.
25544 * lib/unistr/u32-move.c: Likewise.
25545 * lib/unistr/u32-next.c: Likewise.
25546 * lib/unistr/u32-prev.c: Likewise.
25547 * lib/unistr/u32-set.c: Likewise.
25548 * lib/unistr/u32-startswith.c: Likewise.
25549 * lib/unistr/u32-stpcpy.c: Likewise.
25550 * lib/unistr/u32-stpncpy.c: Likewise.
25551 * lib/unistr/u32-strcat.c: Likewise.
25552 * lib/unistr/u32-strchr.c: Likewise.
25553 * lib/unistr/u32-strcmp.c: Likewise.
25554 * lib/unistr/u32-strcpy.c: Likewise.
25555 * lib/unistr/u32-strcspn.c: Likewise.
25556 * lib/unistr/u32-strdup.c: Likewise.
25557 * lib/unistr/u32-strlen.c: Likewise.
25558 * lib/unistr/u32-strmblen.c: Likewise.
25559 * lib/unistr/u32-strmbtouc.c: Likewise.
25560 * lib/unistr/u32-strncat.c: Likewise.
25561 * lib/unistr/u32-strncmp.c: Likewise.
25562 * lib/unistr/u32-strncpy.c: Likewise.
25563 * lib/unistr/u32-strnlen.c: Likewise.
25564 * lib/unistr/u32-strpbrk.c: Likewise.
25565 * lib/unistr/u32-strrchr.c: Likewise.
25566 * lib/unistr/u32-strspn.c: Likewise.
25567 * lib/unistr/u32-strstr.c: Likewise.
25568 * lib/unistr/u32-strtok.c: Likewise.
25569 * lib/unistr/u32-to-u16.c: Likewise.
25570 * lib/unistr/u32-to-u8.c: Likewise.
25571 * lib/unistr/u32-uctomb.c: Likewise.
25572 * lib/unistr/u8-check.c: Likewise.
25573 * lib/unistr/u8-chr.c: Likewise.
25574 * lib/unistr/u8-cmp.c: Likewise.
25575 * lib/unistr/u8-cpy-alloc.c: Likewise.
25576 * lib/unistr/u8-cpy.c: Likewise.
25577 * lib/unistr/u8-endswith.c: Likewise.
25578 * lib/unistr/u8-mblen.c: Likewise.
25579 * lib/unistr/u8-mbsnlen.c: Likewise.
25580 * lib/unistr/u8-mbtouc-aux.c: Likewise.
25581 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
25582 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
25583 * lib/unistr/u8-mbtouc.c: Likewise.
25584 * lib/unistr/u8-mbtoucr.c: Likewise.
25585 * lib/unistr/u8-move.c: Likewise.
25586 * lib/unistr/u8-next.c: Likewise.
25587 * lib/unistr/u8-prev.c: Likewise.
25588 * lib/unistr/u8-set.c: Likewise.
25589 * lib/unistr/u8-startswith.c: Likewise.
25590 * lib/unistr/u8-stpcpy.c: Likewise.
25591 * lib/unistr/u8-stpncpy.c: Likewise.
25592 * lib/unistr/u8-strcat.c: Likewise.
25593 * lib/unistr/u8-strchr.c: Likewise.
25594 * lib/unistr/u8-strcmp.c: Likewise.
25595 * lib/unistr/u8-strcpy.c: Likewise.
25596 * lib/unistr/u8-strcspn.c: Likewise.
25597 * lib/unistr/u8-strdup.c: Likewise.
25598 * lib/unistr/u8-strlen.c: Likewise.
25599 * lib/unistr/u8-strmblen.c: Likewise.
25600 * lib/unistr/u8-strmbtouc.c: Likewise.
25601 * lib/unistr/u8-strncat.c: Likewise.
25602 * lib/unistr/u8-strncmp.c: Likewise.
25603 * lib/unistr/u8-strncpy.c: Likewise.
25604 * lib/unistr/u8-strnlen.c: Likewise.
25605 * lib/unistr/u8-strpbrk.c: Likewise.
25606 * lib/unistr/u8-strrchr.c: Likewise.
25607 * lib/unistr/u8-strspn.c: Likewise.
25608 * lib/unistr/u8-strstr.c: Likewise.
25609 * lib/unistr/u8-strtok.c: Likewise.
25610 * lib/unistr/u8-to-u16.c: Likewise.
25611 * lib/unistr/u8-to-u32.c: Likewise.
25612 * lib/unistr/u8-uctomb-aux.c: Likewise.
25613 * lib/unistr/u8-uctomb.c: Likewise.
25614 * lib/unitypes.h: Likewise.
25615 * lib/uniwidth.h: Likewise.
25616 * lib/uniwidth/cjk.h: Likewise.
25617 * lib/uniwidth/u16-strwidth.c: Likewise.
25618 * lib/uniwidth/u16-width.c: Likewise.
25619 * lib/uniwidth/u32-strwidth.c: Likewise.
25620 * lib/uniwidth/u32-width.c: Likewise.
25621 * lib/uniwidth/u8-strwidth.c: Likewise.
25622 * lib/uniwidth/u8-width.c: Likewise.
25623 * lib/uniwidth/width.c: Likewise.
25625 2007-10-07 Bruno Haible <bruno@clisp.org>
25627 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
25628 The file is still under LGPL (see modules/inttypes).
25630 2007-10-06 Bruno Haible <bruno@clisp.org>
25632 * modules/trunc (Dependencies): Add 'extensions'.
25633 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
25634 Reported by Ben Pfaff <blp@gnu.org>.
25636 2007-10-06 Bruno Haible <bruno@clisp.org>
25638 * modules/freopen-tests: New file.
25639 * tests/test-freopen.c: New file.
25641 * modules/fopen-tests: New file.
25642 * tests/test-fopen.c: New file.
25644 * modules/fopen: New file.
25645 * lib/fopen.c: New file.
25646 * m4/fopen.m4: New file.
25647 * modules/freopen: New file.
25648 * lib/freopen.c: New file.
25649 * m4/freopen.m4: New file.
25650 * lib/stdio.in.h (fopen, freopen): New declarations.
25651 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
25652 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25653 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
25654 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
25655 * doc/functions/fopen.texi: Mention the 'fopen' module.
25656 * doc/functions/freopen.texi: Mention the 'freopen' module.
25658 2007-10-06 Bruno Haible <bruno@clisp.org>
25660 * modules/open-tests: New file.
25661 * tests/test-open.c: New file.
25663 * modules/open: New file.
25664 * lib/open.c: New file.
25665 * m4/open.m4: New file.
25666 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
25668 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
25669 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
25671 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
25672 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
25674 * doc/functions/open.texi: Mention the 'open' module.
25676 2007-10-04 Bruno Haible <bruno@clisp.org>
25678 * modules/ceill-tests: New file.
25679 * tests/test-ceill.c: New file.
25681 * modules/ceill: New file.
25682 * lib/ceill.c: Replace entire file.
25683 * m4/ceill.m4: New file.
25684 * lib/math.in.h (ceill): Replace declaration.
25685 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
25686 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
25687 * doc/functions/ceill.texi: Mention the 'ceill' module.
25688 * modules/mathl (Files): Remove lib/ceill.c.
25689 (Depends-on): Add ceill.
25691 2007-10-04 Bruno Haible <bruno@clisp.org>
25693 * modules/ceilf-tests: New file.
25694 * tests/test-ceilf.c: New file.
25696 * modules/ceilf: New file.
25697 * lib/ceil.c: New file.
25698 * lib/ceilf.c: New file.
25699 * m4/ceilf.m4: New file.
25700 * lib/math.in.h (ceilf): New declaration.
25701 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
25703 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
25705 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
25707 2007-10-04 Bruno Haible <bruno@clisp.org>
25709 * modules/floorl-tests: New file.
25710 * tests/test-floorl.c: New file.
25712 * modules/floorl: New file.
25713 * lib/floorl.c: Replace entire file.
25714 * m4/floorl.m4: New file.
25715 * lib/math.in.h (floorl): Replace declaration.
25716 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
25717 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
25718 * doc/functions/floorl.texi: Mention the 'floorl' module.
25719 * modules/mathl (Files): Remove lib/floorl.c.
25720 (Depends-on): Add floorl.
25722 2007-10-04 Bruno Haible <bruno@clisp.org>
25724 * modules/floorf-tests: New file.
25725 * tests/test-floorf.c: New file.
25727 * modules/floorf: New file.
25728 * lib/floor.c: New file.
25729 * lib/floorf.c: New file.
25730 * m4/floorf.m4: New file.
25731 * lib/math.in.h (floorf): New declaration.
25732 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
25734 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
25736 * doc/functions/floorf.texi: Mention the 'floorf' module.
25738 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
25739 Bruno Haible <bruno@clisp.org>
25741 Advertise for the Git server instead of the CVS server.
25742 * doc/gnulib-intro.texi (Steady Development): Mention the Git
25743 repository instead of the CVS one.
25744 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
25745 about all VCS systems generically.
25746 * doc/gnulib.texi (Introduction): Capitalize `Git'.
25748 2007-10-04 Bruno Haible <bruno@clisp.org>
25750 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
25752 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
25754 2007-10-04 Bruno Haible <bruno@clisp.org>
25756 * modules/truncl-tests: New file.
25757 * tests/test-truncl.c: New file.
25759 * modules/truncl: New file.
25760 * lib/truncl.c: New file.
25761 * m4/truncl.m4: New file.
25762 * lib/math.in.h (truncl): New declaration.
25763 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
25765 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
25767 * doc/functions/truncl.texi: Mention the 'truncl' module.
25769 2007-10-04 Bruno Haible <bruno@clisp.org>
25771 * modules/truncf-tests: New file.
25772 * tests/test-truncf.c: New file.
25774 * modules/truncf: New file.
25775 * lib/trunc.c: Make paramerizable through USE_* macros.
25776 * lib/truncf.c: New file.
25777 * m4/truncf.m4: New file.
25778 * lib/math.in.h (truncf): New declaration.
25779 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
25781 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
25783 * doc/functions/truncf.texi: Mention the 'truncf' module.
25785 2007-10-03 Bruno Haible <bruno@clisp.org>
25787 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
25788 augmentation also for tests modules.
25789 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
25790 * modules/atexit-tests (Makefile.am): Likewise.
25791 * modules/binary-io-tests (Makefile.am): Likewise.
25792 * modules/c-strcase-tests (Makefile.am): Likewise.
25793 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
25794 * modules/canonicalize-tests (Makefile.am): Likewise.
25795 * modules/closein-tests (Makefile.am): Likewise.
25796 * modules/fprintf-posix-tests (Makefile.am): Likewise.
25797 * modules/freadahead-tests (Makefile.am): Likewise.
25798 * modules/fseek-tests (Makefile.am): Likewise.
25799 * modules/fseeko-tests (Makefile.am): Likewise.
25800 * modules/ftell-tests (Makefile.am): Likewise.
25801 * modules/ftello-tests (Makefile.am): Likewise.
25802 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
25803 * modules/isnanl-tests (Makefile.am): Likewise.
25804 * modules/lseek-tests (Makefile.am): Likewise.
25805 * modules/mbscasecmp-tests (Makefile.am): Likewise.
25806 * modules/mbscasestr-tests (Makefile.am): Likewise.
25807 * modules/mbschr-tests (Makefile.am): Likewise.
25808 * modules/mbscspn-tests (Makefile.am): Likewise.
25809 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
25810 * modules/mbspbrk-tests (Makefile.am): Likewise.
25811 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
25812 * modules/mbsrchr-tests (Makefile.am): Likewise.
25813 * modules/mbsspn-tests (Makefile.am): Likewise.
25814 * modules/mbsstr-tests (Makefile.am): Likewise.
25815 * modules/printf-posix-tests (Makefile.am): Likewise.
25816 * modules/snprintf-posix-tests (Makefile.am): Likewise.
25817 * modules/sprintf-posix-tests (Makefile.am): Likewise.
25818 * modules/tsearch-tests (Makefile.am): Likewise.
25819 * modules/uniname/uniname-tests (Makefile.am): Likewise.
25820 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
25821 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
25822 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
25823 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
25824 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
25825 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
25826 * modules/vprintf-posix-tests (Makefile.am): Likewise.
25827 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
25828 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
25829 * modules/xstrtoimax-tests (Makefile.am): Likewise.
25830 * modules/xstrtol-tests (Makefile.am): Likewise.
25831 * modules/xstrtoumax-tests (Makefile.am): Likewise.
25832 * modules/yesno-tests (Makefile.am): Likewise.
25834 2007-10-03 Bruno Haible <bruno@clisp.org>
25836 * modules/trunc-tests: New file.
25837 * tests/test-trunc.c: New file.
25839 * modules/trunc: New file.
25840 * lib/trunc.c: New file.
25841 * m4/trunc.m4: New file.
25842 * lib/math.in.h (trunc): New declaration.
25843 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
25845 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
25847 * doc/functions/trunc.texi: Mention the 'trunc' module.
25849 2007-10-03 Bruno Haible <bruno@clisp.org>
25851 * tests/test-fpending.c: New file, mostly copied
25852 from coreutils/lib/t-fpending.c.
25853 * modules/fpending-tests: New file.
25855 2007-10-03 Bruno Haible <bruno@clisp.org>
25857 Port the stdio extensions to QNX (untested).
25858 * lib/fseterr.c (fseterr): Add support for QNX.
25859 * lib/fbufmode.c (fbufmode): Likewise.
25860 * lib/freadable.c (freadable): Likewise.
25861 * lib/fwritable.c (fwritable): Likewise.
25862 * lib/freading.c (freading): Likewise.
25863 * lib/fwriting.c (fwriting): Likewise.
25864 * lib/freadahead.c (freadahed): Likewise.
25865 * lib/fpurge.c (fpurge): Likewise.
25866 * lib/fseeko.c (rpl_fseeko): Likewise.
25868 2007-10-03 Bruno Haible <bruno@clisp.org>
25869 Jim Meyering <jim@meyering.net>
25870 Eric Blake <ebb9@byu.net>
25872 * doc/relocatable.texi: Use @command instead of @program.
25874 2007-10-02 Jim Meyering <jim@meyering.net>
25876 Perform one more "_.h" -> ".in.h" substitution.
25877 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
25878 instead of unistd_.h here, too.
25880 2007-10-01 Bruno Haible <bruno@clisp.org>
25882 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
25883 Needed for the alloca-opt module.
25885 2007-09-30 Bruno Haible <bruno@clisp.org>
25887 * lib/alloca.in.h: Renamed from lib/alloca_.h.
25888 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
25890 * lib/argz.in.h: Renamed from lib/argz_.h.
25891 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
25892 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
25893 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
25895 * lib/dirent.in.h: Renamed from lib/dirent_.h.
25896 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
25898 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
25899 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
25901 * lib/float.in.h: Renamed from lib/float_.h.
25902 * modules/float (Files, Makefile.am): Use float.in.h instead of
25904 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
25905 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
25907 * lib/getopt.in.h: Renamed from lib/getopt_.h.
25908 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
25910 * lib/glob.in.h: Renamed from lib/glob_.h.
25911 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
25912 * lib/iconv.in.h: Renamed from lib/iconv_.h.
25913 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
25915 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
25916 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
25918 * lib/locale.in.h: Renamed from lib/locale_.h.
25919 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
25921 * lib/math.in.h: Renamed from lib/math_.h.
25922 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
25923 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
25924 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
25925 of netinet_in_.h. Add dependency.
25926 * lib/poll.in.h: Renamed from lib/poll_.h.
25927 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
25928 * lib/search.in.h: Renamed from lib/search_.h.
25929 * modules/search (Files, Makefile.am): Use search.in.h instead of
25931 * lib/signal.in.h: Renamed from lib/signal_.h.
25932 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
25934 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
25935 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
25937 * lib/stdint.in.h: Renamed from lib/stdint_.h.
25938 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
25940 * lib/stdio.in.h: Renamed from lib/stdio_.h.
25941 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
25943 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
25944 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
25946 * lib/string.in.h: Renamed from lib/string_.h.
25947 * modules/string (Files, Makefile.am): Use string.in.h instead of
25949 * doc/gnulib-tool.texi (Initial import): Update.
25950 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
25951 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
25952 of sys_select_.h. Add dependency.
25953 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
25954 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
25956 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
25957 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
25959 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
25960 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
25962 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
25963 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
25965 * lib/time.in.h: Renamed from lib/time_.h.
25966 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
25967 * lib/unistd.in.h: Renamed from lib/unistd_.h.
25968 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
25970 * lib/wchar.in.h: Renamed from lib/wchar_.h.
25971 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
25973 * lib/wctype.in.h: Renamed from lib/wctype_.h.
25974 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
25976 * build-aux/bootstrap (slurp): Update.
25977 * lib/.cppi-disable: Update.
25979 2007-09-30 Bruno Haible <bruno@clisp.org>
25981 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
25984 2007-09-30 Bruno Haible <bruno@clisp.org>
25986 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
25988 2007-09-29 Bruno Haible <bruno@clisp.org>
25990 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
25992 2007-09-29 Bruno Haible <bruno@clisp.org>
25994 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
25995 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
25996 * build-aux/install-reloc: Compile also areadlink.c.
25997 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
25999 2007-09-29 Bruno Haible <bruno@clisp.org>
26001 * gnulib-tool (func_emit_initmacro_done): Indentation.
26003 2007-09-29 Bruno Haible <bruno@clisp.org>
26005 * README: Add CVS checkout update instructions.
26006 Info from Bob Proulx <bob@proulx.com>.
26008 2007-09-28 Eric Blake <ebb9@byu.net>
26010 Provide move-if-change.
26011 * build-aux/move-if-change: New file, based on best practice
26012 rather than any canonical upstream location.
26014 2007-09-28 Jim Meyering <jim@meyering.net>
26016 Fix canonicalize loop-detection corner case.
26017 Do not attempt to stat the symlink values stored via seen_triple.
26018 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
26019 on linux-2.6.18, (but not 2.6.22).
26020 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
26021 triple_compare. The former compares dev,ino,filename, while the latter
26022 would actually stat dirname(filename) when dev and ino were equal.
26023 * lib/hash-triple.c: Install <string.h>.
26025 (triple_compare_ino_str): New function.
26026 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
26028 2007-09-28 Eric Blake <ebb9@byu.net>
26030 Enforce that AC_REPLACE_FUNCS files exist.
26031 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
26032 override check for typos.
26034 Fix test-closein on Solaris 10.
26035 * tests/test-closein.c (main): Don't assume stdin can be inherited
26036 closed on all systems.
26037 * tests/test-closein.sh: Likewise.
26038 Reported by Piotr Tarnowski.
26040 2007-09-28 Jim Meyering <jim@meyering.net>
26042 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
26044 2007-09-27 Jim Meyering <jim@meyering.net>
26046 canonicalize: Avoid a false-positive cycle failure.
26047 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
26048 Sort. Remove cycle-check.
26049 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
26051 (seen_triple): New function.
26052 (canonicalize_filename_mode): Use it instead of cycle-check.
26053 * tests/test-canonicalize.c: Add a test for this bug.
26054 * tests/test-canonicalize.sh: Set up and run the test.
26056 New module, file-set, from coreutils.
26057 * modules/file-set: Define it.
26058 * lib/file-set.c, lib/file-set.h: Implement.
26060 New module, hash-triple, from coreutils.
26061 * modules/hash-triple: Define it.
26062 * lib/hash-triple.c, lib/hash-triple.h: Implement.
26064 2007-09-25 Eric Blake <ebb9@byu.net>
26066 Fix strerror on Interix.
26067 * lib/string_.h (strerror): Declare replacement.
26068 * doc/functions/strerror.texi (strerror): Document the Interix
26070 * modules/string (Makefile.am): Support new hooks.
26071 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
26072 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
26073 gl_FUNC_STRERROR_SEPARATE.
26074 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
26075 * lib/strerror.c (rpl_strerror): Provide replacement.
26076 * modules/strerror (Depends-on): Add string.
26077 (configure.ac): Detect use of module.
26078 * tests/test-strerror.c: New file.
26079 * modules/strerror-tests: New test module.
26080 * modules/argp (Depends-on): Add strerror.
26081 * modules/error (Depends-on): Likewise.
26082 Reported by Martin Koeppe.
26084 2007-09-24 Bruno Haible <bruno@clisp.org>
26086 * README: Update git instructions.
26088 2007-09-24 Eric Blake <ebb9@byu.net>
26090 Revert fpending breakage from 2007-09-08.
26091 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
26094 2007-09-24 Jim Meyering <jim@meyering.net>
26096 filenamecat.c: Add a test.
26097 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
26098 showing how the function works when DIR is the empty string.
26100 2007-09-21 Simon Josefsson <simon@josefsson.org>
26102 * tests/test-canonicalize.sh: Turn on executable bit.
26104 2007-09-19 Eric Blake <ebb9@byu.net>
26106 * README: Update CVS instructions.
26108 2007-09-18 Bruno Haible <bruno@clisp.org>
26110 * modules/areadlink: New file.
26111 * lib/areadlink.h (areadlink): New declaration.
26112 * lib/areadlink.c: New file, based on lib/xreadlink.c.
26114 2007-09-17 Jim Meyering <jim@meyering.net>
26116 * lib/savewd.c (ESTALE) [!defined]: Define.
26117 Reported to be required on Interix by Martin Koeppe.
26119 2007-09-17 Bruno Haible <bruno@clisp.org>
26121 * gnulib-tool (func_version): Use $version.
26123 2007-09-16 Bruno Haible <bruno@clisp.org>
26125 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
26126 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
26127 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
26128 Reported by Greg Schafer <gschafer@zip.com.au>.
26130 2007-09-15 Bruno Haible <bruno@clisp.org>
26132 * gnulib-tool (sed): Try a little harder to make bash understand the
26134 Reported by Bruce Korb <bruce.korb@gmail.com>.
26136 2007-09-13 Eric Blake <ebb9@byu.net>
26138 * ChangeLog: Remove conflict markers.
26140 2007-09-13 Simon Josefsson <simon@josefsson.org>
26142 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
26143 Reported by Bruno Haible <bruno@clisp.org>.
26145 2007-09-12 Bruno Haible <bruno@clisp.org>
26147 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
26148 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
26151 2007-09-12 Eric Blake <ebb9@byu.net>
26153 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
26154 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
26155 Autoconf definition.
26156 * modules/euidaccess (Depends-on): Add extensions, for
26157 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
26158 * modules/fnmatch (Depends-on): Likewise.
26159 * modules/getaddrinfo (Depends-on): Likewise.
26160 * modules/getdelim (Depends-on): Likewise.
26161 * modules/getline (Depends-on): Likewise.
26162 * modules/getsubopt (Depends-on): Likewise.
26163 * modules/gettext (Depends-on): Likewise.
26164 * modules/group-member (Depends-on): Likewise.
26165 * modules/mbchar (Depends-on): Likewise.
26166 * modules/memmem (Depends-on): Likewise.
26167 * modules/mempcpy (Depends-on): Likewise.
26168 * modules/memrchr (Depends-on): Likewise.
26169 * modules/pagealign_alloc (Depends-on): Likewise.
26170 * modules/readutmp (Depends-on): Likewise.
26171 * modules/stpcpy (Depends-on): Likewise.
26172 * modules/stpncpy (Depends-on): Likewise.
26173 * modules/strchrnul (Depends-on): Likewise.
26174 * modules/strndup (Depends-on): Likewise.
26175 * modules/strsep (Depends-on): Likewise.
26176 * modules/strverscmp (Depends-on): Likewise.
26177 * modules/vasprintf (Depends-on): Likewise.
26178 * modules/wcwidth (Depends-on): Likewise.
26179 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
26180 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
26181 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
26182 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
26183 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26184 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26185 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
26186 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26187 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
26188 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
26189 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26190 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
26191 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
26192 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26193 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
26194 * m4/readutmp.m4 (gl_READUTMP): Likewise.
26195 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
26196 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
26197 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26198 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
26199 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
26200 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
26201 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
26202 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
26203 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
26204 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26205 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
26206 so that lock.m4 can be used in gettext without extensions module.
26208 2007-09-11 Bruno Haible <bruno@clisp.org>
26210 * m4/isc-posix.m4: Remove file.
26211 Suggested by Eric Blake.
26213 2007-09-11 Eric Blake <ebb9@byu.net>
26215 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
26217 2007-09-10 Bruno Haible <bruno@clisp.org>
26219 * posix-modules: Fix typo in error message.
26220 Reported by Matt <mkraai@beckman.com>.
26222 2007-09-09 Bruno Haible <bruno@clisp.org>
26224 * doc/functions/getdelim.texi: Update list of platforms lacking the
26226 * doc/functions/getline.texi: Likewise.
26228 2007-09-09 Jim Meyering <jim@meyering.net>
26230 * lib/hash.c (hash_initialize): Detect calloc failure.
26231 Reported by Bruno Haible.
26233 2007-09-09 Bruno Haible <bruno@clisp.org>
26235 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
26236 malloc or realloc fails.
26238 2007-09-09 Bruno Haible <bruno@clisp.org>
26240 * modules/getcwd (Depends-on): Add malloc-posix.
26241 * modules/glob (Depends-on): Likewise.
26242 * modules/putenv (Depends-on): Likewise.
26243 * modules/strdup (Depends-on): Likewise.
26244 * modules/getdelim (Depends-on): Add realloc-posix.
26245 * modules/read-file (Depends-on): Likewise.
26247 2007-09-09 Bruno Haible <bruno@clisp.org>
26249 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
26250 (gl_FUNC_MALLOC_POSIX): Require it.
26251 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
26252 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
26253 * modules/realloc (Files): Add m4/malloc.m4.
26254 * modules/calloc (Files): Likewise.
26256 2007-09-09 Bruno Haible <bruno@clisp.org>
26258 * modules/malloc-posix: New file.
26259 * modules/malloc (Depends-on): Add malloc-posix.
26260 * lib/malloc.c: Include errno.h.
26261 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
26262 and a POSIX-compatible malloc into a single function. Set ENOMEM
26263 when returning NULL.
26264 * m4/malloc.m4: New file.
26265 * doc/functions/malloc.texi: Mention the malloc-posix module.
26266 * lib/stdlib_.h (malloc): New declaration.
26267 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26268 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
26269 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
26270 and HAVE_MALLOC_POSIX.
26272 2007-09-09 Bruno Haible <bruno@clisp.org>
26274 * modules/realloc-posix: New file.
26275 * modules/realloc (Depends-on): Add realloc-posix.
26276 * lib/realloc.c: Include errno.h.
26277 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
26278 and a POSIX-compatible realloc into a single function. Set ENOMEM
26279 when returning NULL.
26280 * m4/realloc.m4: New file.
26281 * doc/functions/realloc.texi: Mention the realloc-posix module.
26282 * lib/stdlib_.h (realloc): New declaration.
26283 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26284 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
26285 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
26286 and HAVE_REALLOC_POSIX.
26288 2007-09-09 Bruno Haible <bruno@clisp.org>
26290 * modules/calloc-posix: New file.
26291 * modules/calloc (Depends-on): Add calloc-posix.
26292 * lib/calloc.c: Include errno.h.
26293 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
26294 and a POSIX-compatible calloc into a single function. Set ENOMEM
26295 when returning NULL.
26296 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
26297 * doc/functions/calloc.texi: Mention the calloc-posix module.
26298 * lib/stdlib_.h (calloc): New declaration.
26299 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26300 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
26301 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
26302 and HAVE_CALLOC_POSIX.
26304 2007-09-09 Bruno Haible <bruno@clisp.org>
26306 Allow for modules to show an arbitrary notice.
26307 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
26308 * gnulib-tool: New option --extract-notice.
26309 (func_usage): Document it.
26310 (sed_extract_prog): Update.
26311 (func_get_notice): New function.
26312 (func_modules_notice): New function.
26313 (func_import, func_create_testdir): Invoke it.
26314 Suggested by Jim Meyering.
26316 2007-09-09 Bruno Haible <bruno@clisp.org>
26318 * gnulib-tool: New options --verbose, --quiet.
26319 (func_usage): Document them.
26320 (verbose): New variable.
26321 (func_execute_command): New function.
26322 (func_import): Don't show the module list and the file list if
26324 (func_create_testdir): Likewise. Use func_execute_command.
26325 (func_create_megatestdir): Use func_execute_command.
26327 2007-09-08 Bruno Haible <bruno@clisp.org>
26329 * gnulib-tool (func_import): Prefer rsync over wget when available,
26330 for fetching the PO files.
26332 2007-09-08 Bruno Haible <bruno@clisp.org>
26334 * posix-modules: New file. Portions copied from gnulib-tool.
26335 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
26337 2007-09-08 Jim Meyering <jim@meyering.net>
26339 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
26340 * lib/fpending.h: Rename from __fpending.h.
26341 * lib/fpending.c: Rename from __fpending.c.
26342 Include "fpending.h", not "__fpending.h".
26343 * lib/__fpending.h, lib/__fpending.c: Remove files.
26344 * modules/fpending (Files): Reflect new file names.
26345 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
26347 2007-09-08 Bruno Haible <bruno@clisp.org>
26349 * m4/inttypes-h.m4: Remove stub file.
26351 2007-09-07 Simon Josefsson <simon@josefsson.org>
26353 * doc/headers/stdint.texi: Discuss #include_next issue.
26355 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
26357 * build-aux/bootstrap: Remove obsolete comment about wget --help.
26359 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26361 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
26364 2007-09-03 Jim Meyering <jim@meyering.net>
26366 New module: git-version-gen.
26367 * modules/git-version-gen: New file.
26369 Import changes from coreutils for bootstrap script.
26371 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
26373 bootstrap: uses rsync to download the .po files
26374 * build-aux/bootstrap (po_download_command_format): New global.
26375 (download_po_files): Use rsync.
26376 (update_po_files): Don't remove .po files after download,
26377 so future rsync runs can take advantage of the copies.
26379 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
26381 Solve the unnecessary-.po-file-regeneration problem once and for all.
26382 * build-aux/bootstrap (download_po_files): New function, renamed from
26383 get_translations. Now, downloads, but doesn't update LINGUAS.
26384 (update_po_files): New function.
26386 bootstrap: Ignore more.
26387 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
26388 uniwidth to e.g., lib/.gitignore.
26389 (slurp): Handle the sys_stat_.h -> sys mapping, too.
26391 * build-aux/bootstrap: New setting: vc_ignore.
26392 (insert_sorted_if_absent): Create $file if absent.
26393 Adapt to new, possibly empty, list: $vc_ignore.
26395 bootstrap: generate more ignorable names
26396 * build-aux/bootstrap (slurp): When generating ignorable names,
26397 also map .sin to .sed, .gperf to .c, and .y to .c.
26399 2007-09-03 Jim Meyering <jim@meyering.net>
26401 * build-aux/git-version-gen: New file, from coreutils. For details, see
26402 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
26404 2007-09-02 Bruno Haible <bruno@clisp.org>
26406 Fix mis-recognition of 'mcs' on QNX 6.
26407 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
26408 output contains the string "Mono".
26409 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
26410 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
26412 2007-09-01 Bruno Haible <bruno@clisp.org>
26414 Fix collision between uniwidth/* and linebreak modules.
26415 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
26416 u32_width): Remove declarations.
26417 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
26418 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
26419 streq3, streq2, streq1, streq0): Remove functions.
26420 (STREQ): Remove macro.
26421 (is_cjk_encoding): Remove function.
26422 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
26423 (uc_width, u8_width, u16_width, u32_width): Remove functions.
26424 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
26425 * NEWS: Document the change.
26427 2007-09-01 Bruno Haible <bruno@clisp.org>
26429 * lib/streq.h: Add double-inclusion guard.
26431 2007-09-01 Karl Berry <karl@gnu.org>
26433 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
26435 2007-08-28 Jim Meyering <jim@meyering.net>
26437 Rename mreadlink_with_size to areadlink_with_size.
26438 * NEWS: Document the change.
26439 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
26440 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
26441 * lib/mreadlink.h: Rename this to...
26442 * lib/areadlink.h: ...this.
26443 * modules/mreadlink-with-size: Rename this to...
26444 * modules/areadlink-with-size: ...this.
26445 * lib/canonicalize.c: Reflect the renaming.
26446 * modules/canonicalize: Likewise.
26448 2007-08-26 Bruno Haible <bruno@clisp.org>
26450 * gnulib-tool (func_import): When deciding which files to remove,
26451 consider also dangling symbolic links.
26452 Reported by Eric Blake.
26454 2007-08-26 Bruno Haible <bruno@clisp.org>
26456 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
26458 2007-08-23 Simon Josefsson <simon@josefsson.org>
26460 * lib/readline.c: Don't include getline.h, the prototype is now
26463 2007-08-23 Jim Meyering <jim@meyering.net>
26466 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
26467 around the funlockfile call, since funlockfile never sets errno.
26468 Don't set errno upon failed realloc.
26470 2007-08-22 Eric Blake <ebb9@byu.net>
26473 * lib/getdelim.c (getdelim): Revert regression that required *n to
26474 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
26475 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
26476 getdelim, rather than whether implementation is missing.
26477 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
26478 * lib/stdio_.h (getline): Also declare if replacement is
26480 * doc/functions/getdelim.texi: New file.
26481 * doc/functions/getline.texi: Likewise.
26482 * doc/gnulib.texi (Function Substitutes): Add new files.
26483 Reported by Bruno Haible.
26485 2007-08-22 Ludovic Courtès <ludo@gnu.org>
26487 * users.txt: Add Guile.
26489 2007-08-22 Eric Blake <ebb9@byu.net>
26491 * tests/test-getdelim.c (main): Use remove, not unlink.
26492 * tests/test-getline.c (main): Likewise.
26494 Move getline and getdelim into stdio.h, per POSIX 200x.
26495 * modules/getline (Files): Remove getline.h.
26496 (Depends-on): Add stdio.
26497 (configure.ac): Add module indicator.
26498 * modules/getdelim (Files): Remove getdelim.h.
26499 (Depends-on): Add stdio.
26500 (configure.ac): Add module indicator.
26501 * modules/stdio (Makefile.am): Work with new indicators.
26502 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
26503 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
26504 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26505 * lib/getdelim.h: Delete.
26506 * lib/getline.h: Delete.
26507 * lib/stdio_.h (getdelim, getline): Declare.
26508 * modules/getdelim-tests: New module.
26509 * modules/getline-tests: Likewise.
26510 * tests/test-getdelim.c: New file.
26511 * tests/test-getline.c: Likewise.
26512 * NEWS: Document the change.
26513 * lib/getline.c: Update choice of header.
26514 * lib/csharpcomp.c: Likewise.
26515 * lib/getpass.c: Likewise.
26516 * lib/javacomp.c: Likewise.
26517 * lib/javaversion.c: Likewise.
26518 * lib/yesno.c: Likewise.
26519 * lib/getdelim.c: Likewise.
26520 (getdelim): Set errno on failure, and avoid memory leak.
26522 2007-08-19 Bruno Haible <bruno@clisp.org>
26524 * modules/closein (Depends-on): Add freadahead.
26525 * lib/closein.c: Include freadahead.h.
26526 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
26529 2007-08-19 Bruno Haible <bruno@clisp.org>
26531 * modules/freadahead-tests: New file.
26532 * tests/test-freadahead.sh: New file.
26533 * tests/test-freadahead.c: New file.
26535 * modules/freadahead: New file.
26536 * lib/freadahead.h: New file.
26537 * lib/freadahead.c: New file.
26538 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
26539 fbufmode, fpurge, freadable, fwritable.
26541 2007-08-19 Eric Blake <ebb9@byu.net>
26543 Test yesno in combination with closein.
26544 * lib/yesno.c (yesno): Document use of stdin.
26545 * modules/yesno-tests (Files): New module.
26546 * tests/test-yesno.c (main): New file.
26547 * tests/test-yesno.sh: Likewise.
26549 2007-08-19 Bruno Haible <bruno@clisp.org>
26551 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
26552 * lib/fseeko.c (rpl_fseeko): Likewise.
26553 * lib/fseterr.c (fseterr): Likewise.
26555 2007-08-19 Bruno Haible <bruno@clisp.org>
26557 * tests/test-lseek.c (main): Disable a test for BeOS.
26558 * doc/functions/lseek.texi: Document the BeOS bug.
26560 2007-08-19 Bruno Haible <bruno@clisp.org>
26561 Eric Blake <ebb9@byu.net>
26563 * lib/lseek.c: Include <sys/stat.h>.
26564 (rpl_lseek): Add workaround code also for Unix platforms.
26566 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
26567 * doc/functions/lseek.texi: Document BeOS definiency.
26569 2007-08-18 Bruno Haible <bruno@clisp.org>
26571 * modules/fstrcmp-tests: New file.
26572 * tests/test-fstrcmp.c: New file.
26574 2007-08-18 Bruno Haible <bruno@clisp.org>
26576 * modules/fstrcmp: New file, from GNU gettext with modifications.
26577 * lib/fstrcmp.h: New file, from GNU gettext.
26578 * lib/fstrcmp.c: New file, from GNU gettext.
26579 * MODULES.html.sh (String handling): Add fstrcmp.
26581 2007-08-18 Bruno Haible <bruno@clisp.org>
26583 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
26585 (diag, compareseq): Remove const from the ctxt argument.
26586 (USE_HEURISTIC): Undefine at the end.
26588 2007-08-18 Jim Meyering <jim@meyering.net>
26590 New file: lib/idcache.h
26591 * NEWS: Mention the addition.
26592 * modules/idcache (Files): Add lib/idcache.h
26593 * lib/idcache.c: Include "idcache.h".
26594 Don't include <sys/types.h>.
26595 Add a FIXME comment.
26596 Move file-scoped "static" declarations to the top.
26597 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
26599 2007-08-17 Bruno Haible <bruno@clisp.org>
26600 and Paul Eggert <eggert@cs.ucla.edu>
26602 * MODULES.html.sh: Add diffseq.
26603 * modules/diffseq: New file.
26604 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
26605 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
26607 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
26609 Import changes from coreutils for bootstrap script.
26611 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
26613 * build-aux/bootstrap (slurp): Work even in environments where
26614 "ls" defaults to "ls -A". Put in a FIXME, though, since the
26615 current code does not slurp files whose names start with ".", and
26616 this looks like it might be a troublesome area.
26618 2007-07-11 Jim Meyering <jim@meyering.net>
26620 If there's a GPL vN copyright comment, require that N == 3.
26622 2007-07-08 Jim Meyering <jim@meyering.net>
26624 Run the coreutils-specific code only if tests/Makefile.am.in exists.
26625 * build-aux/bootstrap (mam_template): Move definition out of loop.
26627 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
26629 * build-aux/bootstrap (symlink_to_dir): Rename function from
26630 symlink_to_gnulib. Add a directory parameter. Update all
26632 (cp_mark_as_generated): Also check for -- and link to -- files in
26635 2007-07-08 Jim Meyering <jim@meyering.net>
26637 Adapt to deeper hierarchy in gnulib.
26638 * build-aux/bootstrap (symlink_to_dir): If the destination
26639 directory doesn't exist, create it. This is required at least for
26640 "lib/uniwidth/cjk.h".
26642 2007-05-15 Jim Meyering <jim@meyering.net>
26644 * build-aux/bootstrap: Now that generated Makefile.am files
26645 are no longer under version control, they must be created at
26648 2007-08-14 Ben Pfaff <blp@gnu.org>
26650 * lib/count-one-bits.h: Add comments. From Bruno Haible.
26652 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
26654 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
26655 given the changes below.
26656 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
26657 even on hosts that have padding bits beyond the supported 64.
26659 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
26661 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
26662 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
26663 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
26665 (xstrtol_error): Remove.
26666 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
26667 but with a different signature.
26668 (ATTRIBUTE_NORETURN, __attribute__): New macros.
26669 * lib/xstrtol-error.c: Include exitfail.h.
26670 (xstrtol_fatal): New function, with a different signature from the
26671 old xstrtol_error, so that the caller need not worry about passing
26672 in an exit status, or about storage management of the option argument.
26673 (xstrtol_error): Now a static function. Redo signature to
26674 implement xstrtol_fatal. Output the correct number of hyphens in
26675 front of the option so that the caller need not worry about
26676 storage management.
26678 (_): Remove; not used now.
26679 * modules/xstrtol: Depend on getopt.
26680 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
26681 of old STRTOL_FATAL_ERROR macro.
26682 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
26684 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
26685 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
26687 2007-08-08 Eric Blake <ebb9@byu.net>
26689 * lib/xstrtol-error.c: Add missing include.
26691 Move xstrtol messages into gnulib domain, when --pobase is used.
26692 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
26693 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
26694 * modules/xstrtol (Files): Distribute new file.
26695 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
26696 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
26697 * tests/test-xstrtol.c: ...into new file.
26698 * tests/test-xstrtoul.c: Also test xstrtoul.
26699 * tests/test-xstrtoimax.c: Also test xstrtoimax.
26700 * tests/test-xstrtoumax.c: Also test xstrtoumax.
26701 * tests/test-xstrtol.sh: Drive the tests.
26702 * tests/test-xstrtoimax.sh: Likewise.
26703 * tests/test-xstrtoumax.sh: Likewise.
26704 * modules/xstrtol-tests: New module.
26705 * modules/xstrtoimax-tests: Likewise.
26706 * modules/xstrtoumax-tests: Likewise.
26708 2007-08-08 Jim Meyering <jim@meyering.net>
26710 New function: mfile_name_concat.
26711 * lib/filenamecat.c (mfile_name_concat): New function, just like
26712 file_name_concat, but return NULL upon failure rather than exiting
26714 * lib/filenamecat.h: Declare it.
26716 2007-08-07 Bruno Haible <bruno@clisp.org>
26718 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
26719 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
26721 Reported by Eric Blake.
26723 2007-08-07 Simon Josefsson <simon@josefsson.org>
26725 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
26726 * modules/crypto/arcfour (License): Likewise.
26727 * modules/crypto/des-tests (License): Likewise.
26728 * modules/crypto/gc-arctwo-tests (License): Likewise.
26729 * modules/crypto/gc-des-tests (License): Likewise.
26730 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
26731 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
26732 * modules/crypto/gc-md2-tests (License): Likewise.
26733 * modules/crypto/gc-md4-tests (License): Likewise.
26734 * modules/crypto/gc-md5-tests (License): Likewise.
26735 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
26736 * modules/crypto/gc-rijndael-tests (License): Likewise.
26737 * modules/crypto/gc-sha1-tests (License): Likewise.
26738 * modules/crypto/gc-tests (License): Likewise.
26739 * modules/crypto/hmac-md5 (License): Likewise.
26740 * modules/crypto/hmac-sha1 (License): Likewise.
26741 * modules/crypto/md2-tests (License): Likewise.
26742 * modules/crypto/md4-tests (License): Likewise.
26743 * modules/crypto/md5 (License): Likewise.
26744 * modules/crypto/rijndael (License): Likewise.
26745 * modules/crypto/sha1 (License): Likewise.
26746 * modules/memxor (License): Likewise.
26748 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
26749 and Bruno Haible <bruno@clisp.org>
26751 * NEWS: Describe interface changes to human, xstrtol.
26752 * lib/human.h: Include <xstrtol.h>.
26753 (human_options): Return enum strtol_error, not int. Remove
26754 bool arg; take int * instead.
26755 * lib/human.c: Don't include "gettext.h".
26756 (_): Remove; no longer used.
26757 Don't include <xstrtol.h>, since human.h does it.
26758 (human_options): Adjust to abovementioned interface changes.
26759 Do not report error to stderr; that's now the caller's
26761 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
26763 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
26764 Str, Argument_type_string. All uses changed. Put " argument"
26765 in diagnostics to make them clearer. Change wording of suffix
26766 message for clarity.
26767 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
26768 Argument_type_string.
26769 (STRTOL_FATAL_WARN): Remove; no longer used.
26770 * modules/human (Depends-on): Remove gettext-h.
26772 2007-08-06 Simon Josefsson <simon@josefsson.org>
26774 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
26776 2007-07-31 Bruno Haible <bruno@clisp.org>
26778 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
26779 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
26780 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
26782 2007-07-31 Bruno Haible <bruno@clisp.org>
26784 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
26785 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
26787 2007-07-30 Bruno Haible <bruno@clisp.org>
26789 * modules/base64 (License): Use the synonymous term "LGPLv2+".
26790 * modules/c-ctype (License): Likewise.
26791 * modules/c-strcase (License): Likewise.
26792 * modules/check-version (License): Likewise.
26793 * modules/iconv (License): Likewise.
26794 * modules/iconv_open (License): Likewise.
26795 * modules/read-file (License): Likewise.
26796 * modules/striconv (License): Likewise.
26797 * modules/strverscmp (License): Likewise.
26798 * modules/vasprintf (License): Likewise.
26799 * modules/crypto/des (License): Likewise.
26800 * modules/crypto/gc (License): Likewise.
26801 * modules/crypto/gc-arcfour (License): Likewise.
26802 * modules/crypto/gc-arctwo (License): Likewise.
26803 * modules/crypto/gc-des (License): Likewise.
26804 * modules/crypto/gc-hmac-md5 (License): Likewise.
26805 * modules/crypto/gc-hmac-sha1 (License): Likewise.
26806 * modules/crypto/gc-md2 (License): Likewise.
26807 * modules/crypto/gc-md4 (License): Likewise.
26808 * modules/crypto/gc-md5 (License): Likewise.
26809 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
26810 * modules/crypto/gc-random (License): Likewise.
26811 * modules/crypto/gc-rijndael (License): Likewise.
26812 * modules/crypto/gc-sha1 (License): Likewise.
26813 * modules/crypto/md2 (License): Likewise.
26814 * modules/crypto/md4 (License): Likewise.
26816 2007-07-30 Jim Meyering <jim@meyering.net>
26818 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
26819 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
26820 it has valid stat data. This bug would cause du not to count the
26821 sizes of inaccessible directories.
26822 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
26823 in <http://bugzilla.redhat.com/250077>.
26825 2007-07-25 Peter O'Gorman <peter@pogma.com>
26826 Bruno Haible <bruno@clisp.org>
26828 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
26829 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
26830 #include_next, gives a diagnostic about it, but reports no error in
26832 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
26834 2007-07-24 Ben Pfaff <blp@gnu.org>
26836 Improve name: "count-one-bits" is better than "popcount".
26837 * MODULES.html.sh: Update name.
26838 * lib/popcount.h: Renamed lib/count-one-bits.h.
26839 (popcount): Renamed count_one_bits.
26840 (popcountl): Renamed count_one_bits_l.
26841 (popcountll): Renamed count_one_bits_ll.
26842 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
26843 * modules/popcount: Renamed module/count-one-bits.
26844 * modules/popcount-tests: Renamed module/count-one-bits-tests.
26845 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
26847 2007-07-23 Ben Pfaff <blp@gnu.org>
26849 * lib/popcount.h (popcount32): Reduce size of constants, to allow
26850 better code generation, and add U to large constants to avoid
26851 warnings, in non-GCC case.
26852 Suggested by Bruno Haible.
26854 2007-07-23 Ben Pfaff <blp@gnu.org>
26856 * lib/popcount.h: Use verify_true instead of if...abort.
26857 * modules/popcount: Depend on verify module.
26858 Suggested by Jim Meyering.
26860 2007-07-23 Bruno Haible <bruno@clisp.org>
26862 * gnulib-tool (func_import): Create a .cvsignore file also when the
26863 directory is not yet in CVS but the toplevel directory is. When
26864 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
26865 Reported by Karl Berry.
26867 2007-07-22 Ben Pfaff <blp@gnu.org>
26869 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
26871 Suggested by Eric Blake.
26873 2007-07-22 Ben Pfaff <blp@gnu.org>
26875 New module: popcount.
26876 * MODULES.html.sh: Add popcount.
26877 * modules/popcount: New file.
26878 * modules/popcount-tests: New file.
26879 * tests/test-popcount.c: New file.
26880 * lib/popcount.h: New file.
26881 * m4/popcount.m4: New file.
26883 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
26885 * build-aux/announce-gen: Update to GPLv3.
26887 * build-aux/config.guess: Update from config.
26889 2007-07-21 Bruno Haible <bruno@clisp.org>
26891 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
26892 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
26894 2007-07-20 Jim Meyering <jim@meyering.net>
26896 * check-module: Diagnose a self-dependency.
26898 2007-07-19 Bruno Haible <bruno@clisp.org>
26900 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
26902 Reported by Eric Blake.
26904 2007-07-18 Bruno Haible <bruno@clisp.org>
26906 * gnulib-tool: New options --po-base, --po-domain.
26907 (func_usage): Document them.
26908 (pobase, po_domain): New variables.
26909 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
26910 DEFAULT_TEXT_DOMAIN.
26911 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
26912 (func_import): Consider pobase and po_domain. Create a po/ directory.
26913 (func_create_testdir): Set pobase and po_domain to empty.
26914 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
26915 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
26917 2007-07-18 Bruno Haible <bruno@clisp.org>
26919 * gnulib-tool (func_get_automake_snippet): Synthesize also an
26920 EXTRA_DIST augmentation for files in build-aux/.
26922 2007-07-16 Bruno Haible <bruno@clisp.org>
26924 * modules/lseek (License): Use the synonymous term "LGPLv2+".
26925 * modules/getdelim (License): Likewise.
26927 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
26929 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
26930 * modules/d-type (License): Likewise.
26931 * modules/extensions (License): Likewise.
26932 * modules/fnmatch (License): Likewise.
26933 * modules/fseeko (License): Likewise.
26934 * modules/getaddrinfo (License): Likewise.
26935 * modules/getline (License): Likewise.
26936 * modules/getlogin_r (License): Likewise.
26937 * modules/getpass (License): Likewise.
26938 * modules/gettimeofday (License): Likewise.
26939 * modules/glob (License): Likewise.
26940 * modules/inet_ntop (License): Likewise.
26941 * modules/malloc (License): Likewise.
26942 * modules/malloca (License): Likewise.
26943 * modules/memmem (License): Likewise.
26944 * modules/mempcpy (License): Likewise.
26945 * modules/memset (License): Likewise.
26946 * modules/minmax (License): Likewise.
26947 * modules/mktime (License): Likewise.
26948 * modules/netinet_in (License): Likewise.
26949 * modules/pathmax (License): Likewise.
26950 * modules/poll (License): Likewise.
26951 * modules/regex (License): Likewise.
26952 * modules/snprintf (License): Likewise.
26953 * modules/stdbool (License): Likewise.
26954 * modules/stdint (License): Likewise.
26955 * modules/stdio (License): Likewise.
26956 * modules/strcase (License): Likewise.
26957 * modules/strcasestr (License): Likewise.
26958 * modules/strdup (License): Likewise.
26959 * modules/string (License): Likewise.
26960 * modules/strndup (License): Likewise.
26961 * modules/strnlen (License): Likewise.
26962 * modules/strpbrk (License): Likewise.
26963 * modules/strptime (License): Likewise.
26964 * modules/strsep (License): Likewise.
26965 * modules/sys_select (License): Likewise.
26966 * modules/sys_socket (License): Likewise.
26967 * modules/sys_stat (License): Likewise.
26968 * modules/sys_time (License): Likewise.
26969 * modules/time (License): Likewise.
26970 * modules/time_r (License): Likewise.
26971 * modules/timegm (License): Likewise.
26972 * modules/unistd (License): Likewise.
26973 * modules/vsnprintf (License): Likewise.
26974 * modules/wctype (License): Likewise.
26976 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26978 * modules/argz (License): LGPLv2+.
26980 2007-07-15 Karl Berry <karl@gnu.org>
26982 * doc/gnulib.texi: revise node structure per new fdl.texi.
26984 2007-07-14 Bruno Haible <bruno@clisp.org>
26986 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
26988 * lib/uniname/uninames.h: Regenerated.
26990 2007-07-14 Karl Berry <karl@gnu.org>
26992 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
26993 omitting sectioning and index commands.
26995 2007-07-13 Bruno Haible <bruno@clisp.org>
26997 New gnulib-tool option --more-symlinks.
26998 * gnulib-tool (func_usage): Document --more-symlinks.
26999 (do_copyrights): New variable.
27000 Recognize option --more-symlinks.
27001 (func_import): Don't add a copyright notice transform to
27002 sed_transform_lib_file if do_copyrights is empty.
27004 2007-07-13 Bruno Haible <bruno@clisp.org>
27006 * lib/vasnprintf.c (decimal_point_char): Define also if
27007 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
27008 && !NEED_PRINTF_DIRECTIVE_A.
27009 Reported by Clemens Koller <clemens.koller@anagramm.de> via
27010 Gary V. Vaughan <gary@gnu.org>.
27012 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
27014 * lib/inttypes_.h: Undo previous change, since it was fixed
27015 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
27017 2007-07-13 Bruno Haible <bruno@clisp.org>
27019 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
27020 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
27022 2007-07-13 Jim Meyering <jim@meyering.net>
27024 df: Don't fail for Tru64's "file-on-file mount".
27025 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
27026 so we fall through and use statfs instead. Details here:
27027 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
27028 Reported by Albert Chin.
27030 2007-07-13 Bruno Haible <bruno@clisp.org>
27032 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
27033 * modules/configmake (License): Likewise.
27034 * modules/gettext (License): Likewise.
27035 * modules/gettext-h (License): Likewise.
27036 * modules/include_next (License): Likewise.
27037 * modules/link-warning (License): Likewise.
27038 * modules/localcharset (License): Likewise.
27039 * modules/localename (License): Likewise.
27040 * modules/lock (License): Likewise.
27041 * modules/relocatable-lib-lgpl (License): Likewise.
27042 * modules/size_max (License): Likewise.
27043 * modules/vasnprintf (License): Likewise.
27044 * modules/wchar (License): Likewise.
27045 * modules/xsize (License): Likewise.
27047 2007-07-13 Bruno Haible <bruno@clisp.org>
27049 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
27050 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
27052 2007-07-12 Bruno Haible <bruno@clisp.org>
27054 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
27055 in the modules files.
27057 2007-07-11 Karl Berry <karl@gnu.org>
27059 * MODULES.html.sh (func_module): use
27060 sed -e '\|^'"${includefile}"'$|d'
27061 instead of /.../d, to avoid errors on $includefile's containing /.
27063 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
27065 * gnulib-tool (func_import): Avoid duplication of --avoid
27067 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
27068 names to `_' in variable names.
27070 2007-07-10 Eric Blake <ebb9@byu.net>
27072 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
27073 * NEWS: Document this change.
27075 2007-07-08 Bruno Haible <bruno@clisp.org>
27077 Update to Unicode 5.0.
27078 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
27079 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
27080 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
27081 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
27082 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
27083 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
27084 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
27085 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
27086 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
27087 U+10A3F, U+1D242..U+1D244.
27088 (nonspacing_table_ind): Update.
27089 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
27090 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
27092 2007-07-08 Bruno Haible <bruno@clisp.org>
27094 Update to Unicode 5.0.
27095 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
27096 code transform. Extend the name index field of unicode_name_to_code and
27097 unicode_code_to_name from 16 to 24 bits.
27098 * lib/uniname/uniname.c (unicode_character_name,
27099 unicode_name_character): Add the range 0x12xxx to the code transform.
27100 * lib/uniname/uninames.h: Regenerated.
27101 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
27103 2007-07-07 Bruno Haible <bruno@clisp.org>
27105 * modules/wcwidth-tests: New file.
27106 * tests/test-wcwidth.c: New file.
27108 Work around MacOS X wcwidth() bug.
27109 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
27110 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
27111 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
27112 original wcwidth in non-UTF-8 locales.
27113 * modules/wcwidth (Depends-on): Add localcharset, streq,
27115 * doc/functions/wcwidth.texi: Update.
27117 2007-07-07 Bruno Haible <bruno@clisp.org>
27119 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
27120 (wcwidth): New declaration.
27121 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
27123 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
27124 here. Prepare for creating <wchar.h> unconditionally.
27125 * modules/wchar (Depends-on): Add link-warning.
27126 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
27127 REPLACE_WCWIDTH, and GL_LINK_WARNING.
27128 * lib/wcwidth.h: Remove file.
27129 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
27130 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
27131 * modules/wcwidth (Files): Remove lib/wcwidth.h.
27132 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
27133 (Include): Replace wcwidth.h with <wchar.h>.
27134 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
27135 * lib/mbchar.h: Don't include wcwidth.h.
27136 * lib/mbswidth.c: Likewise.
27137 * NEWS: Mention the change.
27139 2007-07-07 Bruno Haible <bruno@clisp.org>
27141 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
27142 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
27143 definition with an external declaration.
27144 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
27145 defined as a function. Remove AC_C_INLINE requirement.
27146 * modules/wcwidth (Files): Add lib/wcwidth.c.
27147 (Makefile.am): Remove redundant statement.
27149 2007-07-07 Bruno Haible <bruno@clisp.org>
27151 * MODULES.html.sh (Unicode string functions): Add the new modules.
27153 * tests/uniwidth/test-u32-strwidth.c: New file.
27154 * modules/uniwidth/u32-strwidth-tests: New file.
27156 * lib/uniwidth/u32-strwidth.c: New file.
27157 * modules/uniwidth/u32-strwidth: New file.
27159 * tests/uniwidth/test-u16-strwidth.c: New file.
27160 * modules/uniwidth/u16-strwidth-tests: New file.
27162 * lib/uniwidth/u16-strwidth.c: New file.
27163 * modules/uniwidth/u16-strwidth: New file.
27165 * tests/uniwidth/test-u8-strwidth.c: New file.
27166 * modules/uniwidth/u8-strwidth-tests: New file.
27168 * lib/uniwidth/u8-strwidth.c: New file.
27169 * modules/uniwidth/u8-strwidth: New file.
27171 * tests/uniwidth/test-u32-width.c: New file.
27172 * modules/uniwidth/u32-width-tests: New file.
27174 * lib/uniwidth/u32-width.c: New file.
27175 * modules/uniwidth/u32-width: New file.
27177 * tests/uniwidth/test-u16-width.c: New file.
27178 * modules/uniwidth/u16-width-tests: New file.
27180 * lib/uniwidth/u16-width.c: New file.
27181 * modules/uniwidth/u16-width: New file.
27183 * tests/uniwidth/test-u8-width.c: New file.
27184 * modules/uniwidth/u8-width-tests: New file.
27186 * lib/uniwidth/u8-width.c: New file.
27187 * modules/uniwidth/u8-width: New file.
27189 * tests/uniwidth/test-uc_width.c: New file.
27190 * modules/uniwidth/width-tests: New file.
27192 * lib/uniwidth/width.c: New file, from GNU libiconv.
27193 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
27194 * modules/uniwidth/width: New file.
27196 * lib/uniwidth.h: New file, from GNU libiconv.
27197 * modules/uniwidth/base: New file.
27199 2007-07-07 Bruno Haible <bruno@clisp.org>
27201 * lib/uniname.h: New file, from GNU gettext.
27202 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
27203 * lib/uniname/uninames.h: New file, from GNU gettext.
27204 * lib/uniname/uniname.c: New file, from GNU gettext.
27205 * tests/uniname/test-uninames.sh: New file.
27206 * tests/uniname/test-uninames.c: New file, from GNU gettext.
27207 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
27208 * modules/uniname/base: New file.
27209 * modules/uniname/uniname: New file.
27210 * modules/uniname/uniname-tests: New file.
27211 * MODULES.html.sh (Unicode string functions): Add the new modules.
27213 2007-07-06 Bruno Haible <bruno@clisp.org>
27215 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
27217 2007-07-06 Bruno Haible <bruno@clisp.org>
27219 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
27220 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
27221 includes <cygwin/sys_time.h> which includes <sys/select.h> which
27222 include <sys/time.h>.
27223 Reported by Eric Blake.
27225 2007-07-06 Eric Blake <ebb9@byu.net>
27227 Fix testing canonicalize on cygwin.
27228 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
27229 Revert patch from 2007-06-19.
27230 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
27231 canonicalize module is also in use.
27232 * tests/test-canonicalize.c: New file.
27233 * tests/test-canonicalize.sh: Likewise.
27234 * modules/canonicalize-tests: Likewise.
27236 2007-07-06 Jim Meyering <jim@meyering.net>
27238 * lib/getugroups.c (getugroups): Detect getgrent failure.
27239 Adjust comment to reflect reality: this function may return -1.
27241 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
27243 * build-aux/bootstrap (TP_URL,get_translations): Update to use
27244 the new TP address.
27246 (gnulib_mk): New variable.
27248 2007-07-05 Jim Meyering <jim@meyering.net>
27250 Don't let endgrent clobber errno, no matter how improbable.
27251 * lib/getugroups.c (getugroups): Save and restore errno around
27254 Close the group DB even when failing with 2^31 or more members.
27255 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
27257 2007-07-04 Jim Meyering <jim@meyering.net>
27259 * lib/getugroups.h: New file.
27260 * lib/getugroups.c: Include "getugroups.h".
27261 Remove uses of "register" keyword.
27262 Move local variable, "cp", down into scope where used.
27263 Give "username" parameter the "const" attribute.
27264 * modules/getugroups (Files): Add lib/getugroups.h
27266 2007-07-04 Karl Berry <karl@gnu.org>
27268 * MODULES.html.sh (func_all_modules): Complete rename of
27269 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
27271 2007-07-02 Bruno Haible <bruno@clisp.org>
27273 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
27274 mode, when inttypes.h comes from gnulib.
27275 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
27277 2007-07-02 Simon Josefsson <simon@josefsson.org>
27279 * NEWS: Mention lgpl module name change.
27281 * modules/lgpl-2.1: Renamed from lgpl.
27283 * NEWS: Mention gpl module name change.
27285 * modules/gpl-3.0: New file, based on gpl-2.0.
27287 * modules/gpl-2.0: Renamed from gpl.
27289 * modules/gpl: Fix filename, doc/gpl.texi is now found at
27292 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
27294 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
27295 #define __STDC_LIMIT_MACROS temporarily while including
27296 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
27297 Problem reported by Joel E. Denny in
27298 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
27300 2007-07-01 Bruno Haible <bruno@clisp.org>
27302 * lib/unistdio.h: New file.
27303 * lib/unistdio/u-asnprintf.h: New file.
27304 * lib/unistdio/u-asprintf.h: New file.
27305 * lib/unistdio/u-printf-args.c: New file.
27306 * lib/unistdio/u-printf-args.h: New file.
27307 * lib/unistdio/u-printf-parse.h: New file.
27308 * lib/unistdio/u-snprintf.h: New file.
27309 * lib/unistdio/u-sprintf.h: New file.
27310 * lib/unistdio/u-vasprintf.h: New file.
27311 * lib/unistdio/u-vsnprintf.h: New file.
27312 * lib/unistdio/u-vsprintf.h: New file.
27313 * lib/unistdio/ulc-asnprintf.c: New file.
27314 * lib/unistdio/ulc-asprintf.c: New file.
27315 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
27316 * lib/unistdio/ulc-printf-parse.c: New file.
27317 * lib/unistdio/ulc-snprintf.c: New file.
27318 * lib/unistdio/ulc-sprintf.c: New file.
27319 * lib/unistdio/ulc-vasnprintf.c: New file.
27320 * lib/unistdio/ulc-vasprintf.c: New file.
27321 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
27322 * lib/unistdio/ulc-vsnprintf.c: New file.
27323 * lib/unistdio/ulc-vsprintf.c: New file.
27324 * lib/unistdio/u8-asnprintf.c: New file.
27325 * lib/unistdio/u8-asprintf.c: New file.
27326 * lib/unistdio/u8-printf-parse.c: New file.
27327 * lib/unistdio/u8-snprintf.c: New file.
27328 * lib/unistdio/u8-sprintf.c: New file.
27329 * lib/unistdio/u8-vasnprintf.c: New file.
27330 * lib/unistdio/u8-vasprintf.c: New file.
27331 * lib/unistdio/u8-vsnprintf.c: New file.
27332 * lib/unistdio/u8-vsprintf.c: New file.
27333 * lib/unistdio/u8-u8-asnprintf.c: New file.
27334 * lib/unistdio/u8-u8-asprintf.c: New file.
27335 * lib/unistdio/u8-u8-snprintf.c: New file.
27336 * lib/unistdio/u8-u8-sprintf.c: New file.
27337 * lib/unistdio/u8-u8-vasnprintf.c: New file.
27338 * lib/unistdio/u8-u8-vasprintf.c: New file.
27339 * lib/unistdio/u8-u8-vsnprintf.c: New file.
27340 * lib/unistdio/u8-u8-vsprintf.c: New file.
27341 * lib/unistdio/u16-asnprintf.c: New file.
27342 * lib/unistdio/u16-asprintf.c: New file.
27343 * lib/unistdio/u16-printf-parse.c: New file.
27344 * lib/unistdio/u16-snprintf.c: New file.
27345 * lib/unistdio/u16-sprintf.c: New file.
27346 * lib/unistdio/u16-vasnprintf.c: New file.
27347 * lib/unistdio/u16-vasprintf.c: New file.
27348 * lib/unistdio/u16-vsnprintf.c: New file.
27349 * lib/unistdio/u16-vsprintf.c: New file.
27350 * lib/unistdio/u16-u16-asnprintf.c: New file.
27351 * lib/unistdio/u16-u16-asprintf.c: New file.
27352 * lib/unistdio/u16-u16-snprintf.c: New file.
27353 * lib/unistdio/u16-u16-sprintf.c: New file.
27354 * lib/unistdio/u16-u16-vasnprintf.c: New file.
27355 * lib/unistdio/u16-u16-vasprintf.c: New file.
27356 * lib/unistdio/u16-u16-vsnprintf.c: New file.
27357 * lib/unistdio/u16-u16-vsprintf.c: New file.
27358 * lib/unistdio/u32-asnprintf.c: New file.
27359 * lib/unistdio/u32-asprintf.c: New file.
27360 * lib/unistdio/u32-printf-parse.c: New file.
27361 * lib/unistdio/u32-snprintf.c: New file.
27362 * lib/unistdio/u32-sprintf.c: New file.
27363 * lib/unistdio/u32-vasnprintf.c: New file.
27364 * lib/unistdio/u32-vasprintf.c: New file.
27365 * lib/unistdio/u32-vsnprintf.c: New file.
27366 * lib/unistdio/u32-vsprintf.c: New file.
27367 * lib/unistdio/u32-u32-asnprintf.c: New file.
27368 * lib/unistdio/u32-u32-asprintf.c: New file.
27369 * lib/unistdio/u32-u32-snprintf.c: New file.
27370 * lib/unistdio/u32-u32-sprintf.c: New file.
27371 * lib/unistdio/u32-u32-vasnprintf.c: New file.
27372 * lib/unistdio/u32-u32-vasprintf.c: New file.
27373 * lib/unistdio/u32-u32-vsnprintf.c: New file.
27374 * lib/unistdio/u32-u32-vsprintf.c: New file.
27375 * tests/unistdio/test-ulc-asnprintf1.c: New file.
27376 * tests/unistdio/test-ulc-asnprintf1.h: New file.
27377 * tests/unistdio/test-ulc-printf1.h: New file.
27378 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
27379 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
27380 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
27381 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
27382 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
27383 * tests/unistdio/test-ulc-vasprintf1.c: New file.
27384 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
27385 * tests/unistdio/test-ulc-vsprintf1.c: New file.
27386 * tests/unistdio/test-u8-asnprintf1.c: New file.
27387 * tests/unistdio/test-u8-asnprintf1.h: New file.
27388 * tests/unistdio/test-u8-printf1.h: New file.
27389 * tests/unistdio/test-u8-vasnprintf1.c: New file.
27390 * tests/unistdio/test-u8-vasnprintf2.c: New file.
27391 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
27392 * tests/unistdio/test-u8-vasnprintf3.c: New file.
27393 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
27394 * tests/unistdio/test-u8-vasprintf1.c: New file.
27395 * tests/unistdio/test-u8-vsnprintf1.c: New file.
27396 * tests/unistdio/test-u8-vsprintf1.c: New file.
27397 * tests/unistdio/test-u16-asnprintf1.c: New file.
27398 * tests/unistdio/test-u16-asnprintf1.h: New file.
27399 * tests/unistdio/test-u16-printf1.h: New file.
27400 * tests/unistdio/test-u16-vasnprintf1.c: New file.
27401 * tests/unistdio/test-u16-vasnprintf2.c: New file.
27402 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
27403 * tests/unistdio/test-u16-vasnprintf3.c: New file.
27404 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
27405 * tests/unistdio/test-u16-vasprintf1.c: New file.
27406 * tests/unistdio/test-u16-vsnprintf1.c: New file.
27407 * tests/unistdio/test-u16-vsprintf1.c: New file.
27408 * tests/unistdio/test-u32-asnprintf1.c: New file.
27409 * tests/unistdio/test-u32-asnprintf1.h: New file.
27410 * tests/unistdio/test-u32-printf1.h: New file.
27411 * tests/unistdio/test-u32-vasnprintf1.c: New file.
27412 * tests/unistdio/test-u32-vasnprintf2.c: New file.
27413 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
27414 * tests/unistdio/test-u32-vasnprintf3.c: New file.
27415 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
27416 * tests/unistdio/test-u32-vasprintf1.c: New file.
27417 * tests/unistdio/test-u32-vsnprintf1.c: New file.
27418 * tests/unistdio/test-u32-vsprintf1.c: New file.
27419 * modules/unistdio/base: New file.
27420 * modules/unistdio/u-printf-args: New file.
27421 * modules/unistdio/ulc-asnprintf: New file.
27422 * modules/unistdio/ulc-asprintf: New file.
27423 * modules/unistdio/ulc-fprintf: New file.
27424 * modules/unistdio/ulc-printf-parse: New file.
27425 * modules/unistdio/ulc-snprintf: New file.
27426 * modules/unistdio/ulc-sprintf: New file.
27427 * modules/unistdio/ulc-vasnprintf: New file.
27428 * modules/unistdio/ulc-vasprintf: New file.
27429 * modules/unistdio/ulc-vfprintf: New file.
27430 * modules/unistdio/ulc-vsnprintf: New file.
27431 * modules/unistdio/ulc-vsprintf: New file.
27432 * modules/unistdio/u8-asnprintf: New file.
27433 * modules/unistdio/u8-asprintf: New file.
27434 * modules/unistdio/u8-printf-parse: New file.
27435 * modules/unistdio/u8-snprintf: New file.
27436 * modules/unistdio/u8-sprintf: New file.
27437 * modules/unistdio/u8-vasnprintf: New file.
27438 * modules/unistdio/u8-vasprintf: New file.
27439 * modules/unistdio/u8-vsnprintf: New file.
27440 * modules/unistdio/u8-vsprintf: New file.
27441 * modules/unistdio/u8-u8-asnprintf: New file.
27442 * modules/unistdio/u8-u8-asprintf: New file.
27443 * modules/unistdio/u8-u8-snprintf: New file.
27444 * modules/unistdio/u8-u8-sprintf: New file.
27445 * modules/unistdio/u8-u8-vasnprintf: New file.
27446 * modules/unistdio/u8-u8-vasprintf: New file.
27447 * modules/unistdio/u8-u8-vsnprintf: New file.
27448 * modules/unistdio/u8-u8-vsprintf: New file.
27449 * modules/unistdio/u16-asnprintf: New file.
27450 * modules/unistdio/u16-asprintf: New file.
27451 * modules/unistdio/u16-printf-parse: New file.
27452 * modules/unistdio/u16-snprintf: New file.
27453 * modules/unistdio/u16-sprintf: New file.
27454 * modules/unistdio/u16-vasnprintf: New file.
27455 * modules/unistdio/u16-vasprintf: New file.
27456 * modules/unistdio/u16-vsnprintf: New file.
27457 * modules/unistdio/u16-vsprintf: New file.
27458 * modules/unistdio/u16-u16-asnprintf: New file.
27459 * modules/unistdio/u16-u16-asprintf: New file.
27460 * modules/unistdio/u16-u16-snprintf: New file.
27461 * modules/unistdio/u16-u16-sprintf: New file.
27462 * modules/unistdio/u16-u16-vasnprintf: New file.
27463 * modules/unistdio/u16-u16-vasprintf: New file.
27464 * modules/unistdio/u16-u16-vsnprintf: New file.
27465 * modules/unistdio/u16-u16-vsprintf: New file.
27466 * modules/unistdio/u32-asnprintf: New file.
27467 * modules/unistdio/u32-asprintf: New file.
27468 * modules/unistdio/u32-printf-parse: New file.
27469 * modules/unistdio/u32-snprintf: New file.
27470 * modules/unistdio/u32-sprintf: New file.
27471 * modules/unistdio/u32-vasnprintf: New file.
27472 * modules/unistdio/u32-vasprintf: New file.
27473 * modules/unistdio/u32-vsnprintf: New file.
27474 * modules/unistdio/u32-vsprintf: New file.
27475 * modules/unistdio/u32-u32-asnprintf: New file.
27476 * modules/unistdio/u32-u32-asprintf: New file.
27477 * modules/unistdio/u32-u32-snprintf: New file.
27478 * modules/unistdio/u32-u32-sprintf: New file.
27479 * modules/unistdio/u32-u32-vasnprintf: New file.
27480 * modules/unistdio/u32-u32-vasprintf: New file.
27481 * modules/unistdio/u32-u32-vsnprintf: New file.
27482 * modules/unistdio/u32-u32-vsprintf: New file.
27483 * modules/unistdio/ulc-asnprintf-tests: New file.
27484 * modules/unistdio/ulc-vasnprintf-tests: New file.
27485 * modules/unistdio/ulc-vasprintf-tests: New file.
27486 * modules/unistdio/ulc-vsnprintf-tests: New file.
27487 * modules/unistdio/ulc-vsprintf-tests: New file.
27488 * modules/unistdio/u8-asnprintf-tests: New file.
27489 * modules/unistdio/u8-vasnprintf-tests: New file.
27490 * modules/unistdio/u8-vasprintf-tests: New file.
27491 * modules/unistdio/u8-vsnprintf-tests: New file.
27492 * modules/unistdio/u8-vsprintf-tests: New file.
27493 * modules/unistdio/u16-asnprintf-tests: New file.
27494 * modules/unistdio/u16-vasnprintf-tests: New file.
27495 * modules/unistdio/u16-vasprintf-tests: New file.
27496 * modules/unistdio/u16-vsnprintf-tests: New file.
27497 * modules/unistdio/u16-vsprintf-tests: New file.
27498 * modules/unistdio/u32-asnprintf-tests: New file.
27499 * modules/unistdio/u32-vasnprintf-tests: New file.
27500 * modules/unistdio/u32-vasprintf-tests: New file.
27501 * modules/unistdio/u32-vsnprintf-tests: New file.
27502 * modules/unistdio/u32-vsprintf-tests: New file.
27503 * MODULES.html.sh (Unicode string functions): Add the new modules.
27505 2007-07-01 Bruno Haible <bruno@clisp.org>
27507 * lib/sprintf.c (sprintf): Limit the available length estimation,
27508 to avoid address wraparound.
27509 * lib/vsprintf.c (vsprintf): Likewise.
27510 * modules/sprintf-posix (Dependencies): Add stdint.
27511 * modules/vsprintf-posix (Dependencies): Likewise.
27513 2007-07-01 Bruno Haible <bruno@clisp.org>
27515 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
27516 Windows PATH as well. Conservative double-quoting. Comments.
27518 2007-07-01 Bruno Haible <bruno@clisp.org>
27519 Eric Blake <ebb9@byu.net>
27520 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27522 * gnulib-tool (self_abspathname): Fix algorithm to cope with
27523 empty components in $PATH, denoting '.'.
27525 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27527 * gnulib-tool: Fix indentation.
27528 (func_create_megatestdir): Likewise.
27529 Report by Bruno Haible.
27531 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27533 Sync from Automake.
27534 * build-aux/gnupload: Fix shell portability issues with for loops.
27535 Report by Karl Berry.
27537 2007-06-29 Simon Josefsson <simon@josefsson.org>
27539 * build-aux/maint.mk (POURL): Use translationproject.org.
27541 2007-06-27 Simon Josefsson <simon@josefsson.org>
27542 Bruno Haible <bruno@clisp.org>
27544 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
27545 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
27546 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
27547 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
27548 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
27550 2007-06-27 Bruno Haible <bruno@clisp.org>
27552 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
27553 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
27555 2007-06-26 Karl Berry <karl@gnu.org>
27557 * MODULES.html.sh: remove xreadlink-with-size.
27559 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
27561 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
27562 method that I hope also handles the double-include problem noted
27564 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
27566 2007-06-23 Bruno Haible <bruno@clisp.org>
27568 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
27569 Don't let the 'mostlyclean' target fail if the last subdirectory could
27571 Reported by Karl Berry.
27573 2007-06-23 Bruno Haible <bruno@clisp.org>
27575 * gnulib-tool (echo): Add a speedier workaround for ksh.
27576 * tests/test-echo.sh: Likewise.
27578 2007-06-23 Bruno Haible <bruno@clisp.org>
27580 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
27581 * tests/test-echo.sh: Likewise.
27583 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27585 * gnulib-tool (IFS): Initialize early, so we don't set it to
27587 (self_abspathname): Rewrite algorithm to set it, reindent.
27588 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
27589 (func_create_megatestdir): Merge some sed scripts.
27591 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
27593 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
27594 exposed by Sun Studio 11 cc on Solaris 8.
27596 2007-06-22 Bruno Haible <bruno@clisp.org>
27598 * gnulib-tool (echo): Ensure the echo primitive does not interpret
27600 * tests/test-echo.sh: New file.
27602 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27604 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
27605 simplify `sed_replace_build_aux' scripts, they are portable but
27606 echoing them with `echo' is not.
27607 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
27609 2007-06-21 Karl Berry <karl@gnu.org>
27611 * config/srclist.txt: guess we can't handle the licenses via
27612 srclist at the moment.
27614 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
27616 * MODULES.html.sh: Add include_next.
27617 * modules/include_next: New file.
27619 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
27621 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
27623 (gl_CHECK_NEXT_HEADERS): New macro.
27624 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
27625 the obsolescent gl_ABSOLUTE_HEADER.
27626 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
27627 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
27628 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
27629 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
27630 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
27631 * m4/math_h.m4 (gl_MATH_H): Likewise.
27632 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
27633 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
27634 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
27635 * m4/stdint.m4 (gl_STDINT_H): Likewise.
27636 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
27637 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
27638 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
27639 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27640 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27641 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
27642 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
27643 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
27644 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
27645 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27646 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
27647 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
27648 * m4/inttypes.m4 (gl_INTTYPES_H): Define
27649 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
27650 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
27651 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
27652 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
27653 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
27654 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
27655 * lib/float_.h: Likewise.
27656 * lib/inttypes_.h: Likewise.
27657 * lib/math_.h: Likewise.
27658 * lib/search_.h: Likewise.
27659 * lib/signal_.h: Likewise.
27660 * lib/stdint_.h: Likewise.
27661 * lib/stdio_.h: Likewise.
27662 * lib/stdlib_.h: Likewise.
27663 * lib/string_.h: Likewise.
27664 * lib/sys_stat_.h: Likewise.
27665 * lib/sys_time_.h: Likewise.
27666 * lib/time_.h: Likewise.
27667 * lib/unistd_.h: Likewise.
27668 * lib/wchar_.h: Likewise.
27669 * lib/wctype_.h: Likewise.
27670 * lib/dirent_.h: Likewise.
27671 * lib/iconv_.h: Likewise.
27672 * lib/locale_.h: Likewise.
27673 * lib/netinet_in_.h: Likewise.
27674 * lib/sys_select_.h: Likewise.
27675 * lib/sys_socket_.h: Likewise.
27676 * lib/sysexits_.h: Likewise.
27677 * modules/fcntl (Depends-on): Depend on include_next, not
27679 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
27680 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
27681 * modules/fchdir: Likewise.
27682 * modules/float: Likewise.
27683 * modules/iconv_open: Likewise.
27684 * modules/inttypes: Likewise.
27685 * modules/locale: Likewise.
27686 * modules/math: Likewise.
27687 * modules/netinet_in: Likewise.
27688 * modules/search: Likewise.
27689 * modules/signal: Likewise.
27690 * modules/stdint: Likewise.
27691 * modules/stdio: Likewise.
27692 * modules/stdlib: Likewise.
27693 * modules/string: Likewise.
27694 * modules/sys_select: Likewise.
27695 * modules/sys_socket: Likewise.
27696 * modules/sys_stat: Likewise.
27697 * modules/sys_time: Likewise.
27698 * modules/sysexits: Likewise.
27699 * modules/time: Likewise.
27700 * modules/unistd: Likewise.
27701 * modules/wchar: Likewise.
27702 * modules/wctype: Likewise.
27703 * modules/sys_stat: Change maintainer to "all".
27704 * modules/unistd: Likewise.
27706 2007-06-20 Karl Berry <karl@gnu.org>
27708 * config/srclist.txt: track www changes in license files.
27710 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
27712 * build-aux/bootstrap: Remove stray dot.
27713 Make sure build_aux settings are honored when linking
27714 gnulib_extra_files.
27716 2007-06-19 Eric Blake <ebb9@byu.net>
27718 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
27719 Allow compilation on cygwin.
27721 2007-06-19 Jim Meyering <jim@meyering.net>
27723 xreadlink-with-size: Remove module. No longer used.
27724 Ex-callers now use xreadlink or mreadlink-with-size.
27725 * modules/xreadlink-with-size: Remove module.
27726 * lib/xreadlink-with-size.c: Remove file.
27727 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
27728 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
27729 just before the function definition *is* accurate.
27731 Eliminate one way canonicalize_filename_mode could exit.
27732 * lib/canonicalize.c (canonicalize_filename_mode):
27733 Use mreadlink_with_size, not xreadlink_with_size.
27735 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
27737 Detect porting problems to FreeBSD/arm, which has time_t wider than
27738 long int. Original problem reported for GNU diff by Xin Li in
27739 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
27740 * modules/getdate (Depends-on): Add intprops, verify.
27741 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
27742 is an integer type no wider than long int.
27744 2007-06-18 Jim Meyering <jim@meyering.net>
27746 New module: mreadlink-with-size.
27747 * MODULES.html.sh: Add mreadlink-with-size.
27748 * modules/mreadlink-with-size: New module
27749 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
27750 not xreadlink-with-size.
27751 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
27753 2007-06-16 Bruno Haible <bruno@clisp.org>
27755 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
27756 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
27757 Reported by Gary V. Vaughan <gary@gnu.org>.
27759 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
27761 Revamp lchown so that it lives in unistd.h where it belongs.
27762 * lib/lchown.h: Remove.
27763 * lib/dirchownmod.c: Don't include lib/lchown.h.
27764 * lib/fchownat.c: Likewise.
27765 * lib/openat.c: Likewise.
27766 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
27767 does not follow symlinks.
27768 (EOPNOTSUPP): Define if not defined.
27769 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
27771 (lchown): New decl.
27772 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
27773 Do not check for lchown decl.
27774 Set REPLACE_LCHOWN.
27775 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
27777 * modules/chown: Make it clear it follows symlinks.
27778 * modules/lchown: Make it clear it doesn't follow symlinks.
27779 (Files): Remove lib/lchown.h
27780 (Depends-on): Add unistd.
27781 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
27782 (Include): Include <unistd.h>, not "lchown.h".
27783 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
27786 2007-06-15 Jim Meyering <jim@meyering.net>
27788 Change license (GPL to LGPL) of fsusage and dependents.
27789 * modules/fsusage (License): Change to LGPL.
27790 * modules/full-read (License): Likewise.
27791 * modules/full-write (License): Likewise.
27792 * modules/safe-read (License): Likewise.
27793 * modules/safe-write (License): Likewise.
27795 2007-06-14 Ben Pfaff <blp@gnu.org>
27797 Missing part of allocsa -> malloca transition.
27798 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
27801 2007-06-12 Bruno Haible <bruno@clisp.org>
27803 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
27804 to ia64, x86_64, i386.
27805 Reported by Eric Blake.
27807 2007-06-12 Bruno Haible <bruno@clisp.org>
27809 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
27810 cross-compiling to x86_64.
27812 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
27814 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
27815 glitch reported by Ralf Wildenhues in
27816 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
27818 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
27821 2007-06-11 Bruno Haible <bruno@clisp.org>
27823 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
27824 replacement string.
27825 Reported by Eric Blake.
27827 2007-06-10 Bruno Haible <bruno@clisp.org>
27829 Prepare vasnprintf code for use with Unicode strings.
27830 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
27831 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
27833 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
27834 a_u32_string variants.
27835 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27836 * lib/printf-args.c: Don't include config.h and the specification
27837 header if PRINTF_FETCHARGS is already defined.
27838 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
27839 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
27840 TYPE_U16_STRING, TYPE_U32_STRING.
27841 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
27842 u16_directive, u16_directives, u32_directive, u32_directives): New
27844 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
27846 * lib/printf-parse.c: Don't include config.h and the specification
27847 header if PRINTF_PARSE is already defined. Eliminate the set of
27848 parameters for WIDE_CHAR_VERSION; the user of this file must provide
27849 them now. Include c-ctype.h.
27850 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
27851 directive and CHAR_T_ONLY_ASCII.
27852 * lib/vasnprintf.c: Don't include config.h and the specification header
27853 if VASNPRINTF is already defined.
27854 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
27855 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
27856 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
27857 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
27858 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
27859 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
27861 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
27862 pad_ourselves also in this case, with the 'c' and 's' directives, and
27863 with a different notion of "width".
27864 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
27866 2007-06-10 Bruno Haible <bruno@clisp.org>
27868 * modules/unistr/u32-mbsnlen: New file.
27869 * lib/unistr/u32-mbsnlen.c: New file.
27871 * modules/unistr/u16-mbsnlen: New file.
27872 * lib/unistr/u16-mbsnlen.c: New file.
27874 * modules/unistr/u8-mbsnlen: New file.
27875 * lib/unistr/u8-mbsnlen.c: New file.
27877 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
27880 2007-06-10 Bruno Haible <bruno@clisp.org>
27882 * lib/string_.h (mbsnlen): New declaration.
27883 * lib/mbsnlen.c: New file.
27884 * m4/mbsnlen.m4: New file.
27885 * modules/mbsnlen: New file.
27886 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
27887 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
27888 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
27890 2007-06-10 Bruno Haible <bruno@clisp.org>
27892 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
27894 2007-06-10 Bruno Haible <bruno@clisp.org>
27896 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
27897 * lib/mbuiter.h: Likewise.
27899 2007-06-10 Bruno Haible <bruno@clisp.org>
27901 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
27904 2007-06-10 Karl Berry <karl@gnu.org>
27906 * config/srclist.txt: remove gettext entries, Bruno prefers
27907 to update individually.
27909 2007-06-10 Bruno Haible <bruno@clisp.org>
27911 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
27912 'maxlen'. Ensure only length + width bytes are allocated, not
27913 length + 1 + width.
27915 2007-06-09 Bruno Haible <bruno@clisp.org>
27917 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
27918 (CHAR_T): Remove macro.
27919 (VASNPRINTF): Update.
27921 2007-06-09 Bruno Haible <bruno@clisp.org>
27923 * MODULES.html.sh (Unicode string functions): Add the new modules.
27925 * modules/uniconv/u32-conv-to-enc: New file.
27926 * lib/uniconv/u32-conv-to-enc.c: New file.
27927 * modules/uniconv/u32-conv-to-enc-tests: New file.
27928 * tests/uniconv/test-u32-conv-to-enc.c: New file.
27930 * modules/uniconv/u16-conv-to-enc: New file.
27931 * lib/uniconv/u16-conv-to-enc.c: New file.
27932 * lib/uniconv/u-conv-to-enc.h: New file.
27933 * modules/uniconv/u16-conv-to-enc-tests: New file.
27934 * tests/uniconv/test-u16-conv-to-enc.c: New file.
27936 * modules/uniconv/u8-conv-to-enc: New file.
27937 * lib/uniconv/u8-conv-to-enc.c: New file.
27938 * modules/uniconv/u8-conv-to-enc-tests: New file.
27939 * tests/uniconv/test-u8-conv-to-enc.c: New file.
27941 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
27942 u32_conv_to_encoding): New declarations.
27944 2007-06-09 Bruno Haible <bruno@clisp.org>
27946 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
27948 2007-06-09 Bruno Haible <bruno@clisp.org>
27950 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
27951 * modules/malloca: Renamed from modules/allocsa, updated.
27952 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
27953 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
27954 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
27955 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
27956 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
27957 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
27958 * modules/xmalloca: Renamed from modules/xallocsa, updated.
27959 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
27960 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
27961 * modules/c-strcasestr (Depends-on): Update.
27962 * lib/c-strcasestr.c: Update.
27963 * modules/c-strstr (Depends-on): Update.
27964 * lib/c-strstr.c: Update.
27965 * modules/canonicalize-lgpl (Depends-on): Update.
27966 * lib/canonicalize-lgpl.c: Update.
27967 * modules/clean-temp (Depends-on): Update.
27968 * lib/clean-temp.c: Update.
27969 * modules/csharpcomp (Depends-on): Update.
27970 * lib/csharpcomp.c: Update.
27971 * modules/csharpexec (Depends-on): Update.
27972 * lib/csharpexec.c: Update.
27973 * modules/javacomp (Depends-on): Update.
27974 * lib/javacomp.c: Update.
27975 * modules/javaexec (Depends-on): Update.
27976 * lib/javaexec.c: Update.
27977 * modules/mbscasestr (Depends-on): Update.
27978 * lib/mbscasestr.c: Update.
27979 * modules/mbsstr (Depends-on): Update.
27980 * lib/mbsstr.c: Update.
27981 * modules/setenv (Depends-on): Update.
27982 * lib/setenv.c: Update.
27983 * modules/strcasestr (Depends-on): Update.
27984 * lib/strcasestr.c: Update.
27985 * modules/striconveha (Depends-on): Update.
27986 * lib/striconveha.c: Update.
27987 * modules/relocatable-prog-wrapper (Files): Update.
27988 * lib/relocwrapper.c: Update.
27989 * build-aux/install-reloc: Update.
27990 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
27992 2007-06-08 Bruno Haible <bruno@clisp.org>
27995 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
27996 * lib/fpurge.c (fpurge): Likewise.
27997 * lib/freading.c (freading): Likewise.
27998 * lib/fseeko.c (rpl_fseeko): Likewise.
27999 * lib/fseterr.c (fseterr): Likewise.
28000 * lib/fwriting.c (fwriting): Likewise.
28001 * tests/test-fflush.c (main): Avoid a failure on uClibc.
28003 2007-06-08 Bruno Haible <bruno@clisp.org>
28005 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
28006 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
28007 * modules/gettext (Files): Add m4/intlmacosx.m4.
28009 2007-06-07 Bruno Haible <bruno@clisp.org>
28011 * modules/localename-tests: New file.
28012 * tests/test-localename.c: New file.
28014 New module 'localename'.
28015 * lib/localename.h: New file.
28016 * lib/localename.c: New file, from GNU gettext.
28017 * m4/localename.m4: New file.
28018 * modules/localename: New file.
28020 2007-06-07 Bruno Haible <bruno@clisp.org>
28022 Work around the lack of <wchar.h> on some builds of uClibc.
28023 * doc/headers/wchar.texi: Update.
28024 * lib/wchar_.h: Include <wchar.h> only if it exists.
28025 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
28026 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
28027 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
28029 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
28030 * modules/mbfile (Depends-on): Add wchar.
28031 * modules/mbiter (Depends-on): Likewise.
28032 * modules/mbuiter (Depends-on): Likewise.
28033 Reported by Simon Josefsson.
28035 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
28037 Work around problem reported by Steven M. Schweda in
28038 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
28039 Tru64 5.1B with the Compaq compiler environment installed declares
28040 an 'isblank' function but does not define it in the C library.
28041 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
28042 * lib/regex_internal.h (isblank): Likewise.
28043 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
28044 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28046 2007-06-05 Bruno Haible <bruno@clisp.org>
28048 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
28050 * modules/printf-safe: New file.
28051 * modules/fprintf-posix (Depends-on): Add printf-safe.
28052 * modules/printf-posix (Depends-on): Likewise.
28053 * modules/snprintf-posix (Depends-on): Likewise.
28054 * modules/sprintf-posix (Depends-on): Likewise.
28055 * modules/vasnprintf-posix (Depends-on): Likewise.
28056 * modules/vasprintf-posix (Depends-on): Likewise.
28057 * modules/vfprintf-posix (Depends-on): Likewise.
28058 * modules/vprintf-posix (Depends-on): Likewise.
28059 * modules/vsnprintf-posix (Depends-on): Likewise.
28060 * modules/vsprintf-posix (Depends-on): Likewise.
28061 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
28062 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
28063 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
28064 "no" on i386, x86_64, ia64.
28065 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
28066 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28067 on i386, x86_64, ia64.
28068 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
28069 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28070 on i386, x86_64, ia64.
28071 * tests/test-vasnprintf-posix.c: Include float.h.
28072 (LDBL80_WORDS): New macro.
28073 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28074 on i386, x86_64, ia64.
28075 * tests/test-vasprintf-posix.c: Include float.h.
28076 (LDBL80_WORDS): New macro.
28077 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28078 on i386, x86_64, ia64.
28079 * tests/test-snprintf-posix.c: Include float.h.
28080 * tests/test-sprintf-posix.c: Likewise.
28081 * tests/test-vsnprintf-posix.c: Likewise.
28082 * tests/test-vsprintf-posix.c: Likewise.
28084 2007-06-05 Bruno Haible <bruno@clisp.org>
28086 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
28087 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
28088 non-IEEE numbers on i386, x86_64, ia64.
28089 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
28090 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
28091 * tests/test-isnanl.h: Include float.h.
28092 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
28094 2007-06-05 Bruno Haible <bruno@clisp.org>
28096 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
28097 also the %a / %A. Handle the %a / %A code before this extra handling.
28099 2007-06-05 Bruno Haible <bruno@clisp.org>
28101 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
28102 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
28104 2007-06-05 Bruno Haible <bruno@clisp.org>
28106 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
28107 typo in variable name.
28109 2007-06-05 Eric Blake <ebb9@byu.net>
28111 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
28112 Reported by Simon Josefsson.
28114 2007-06-04 Bruno Haible <bruno@clisp.org>
28116 Avoid test failures on some PowerPC platforms.
28117 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
28118 Define differently for PowerPC.
28119 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
28120 Reported by Gary V. Vaughan <gary@gnu.org>.
28122 2007-06-02 Bruno Haible <bruno@clisp.org>
28124 Fix test-stdint failure on FreeBSD/ia64.
28125 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
28126 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
28127 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
28128 * doc/headers/stdint.texi: Update.
28130 2007-06-01 Bruno Haible <bruno@clisp.org>
28132 * tests/test-binary-io.c (main): Pass a third argument to open().
28133 Reported by Gary V. Vaughan <gary@gnu.org>.
28135 2007-06-01 Bruno Haible <bruno@clisp.org>
28137 * doc/functions/frexpl.texi: Update for mingw.
28139 2007-06-01 Bruno Haible <bruno@clisp.org>
28141 * tests/test-lseek.c (main): Disable test of errno for invalid third
28143 * doc/functions/lseek.texi: Update.
28144 Reported by Gary V. Vaughan <gary@gnu.org>.
28146 2007-05-28 Bruno Haible <bruno@clisp.org>
28148 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
28150 2007-05-31 Eric Blake <ebb9@byu.net>
28152 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
28155 2007-05-30 Eric Blake <ebb9@byu.net>
28156 and Bruno Haible <bruno@clisp.org>
28158 Work around mingw test failures exposed by m4-1.4.9b.
28159 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
28160 * tests/test-unistd.c: Disable uid_t and git_t tests for the
28163 2007-05-30 Bruno Haible <bruno@clisp.org>
28165 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
28166 assuming that they are closed. Needed on HP-UX 11.
28168 2007-05-29 Bruno Haible <bruno@clisp.org>
28170 Fix a problem with #include_next.
28171 * lib/dirent_.h: Split the double-inclusion guard.
28172 * lib/fcntl_.h: Likewise.
28173 * lib/float_.h: Likewise.
28174 * lib/iconv_.h: Likewise.
28175 * lib/inttypes_.h: Likewise.
28176 * lib/locale_.h: Likewise.
28177 * lib/math_.h: Likewise.
28178 * lib/netinet_in_.h: Likewise.
28179 * lib/search_.h: Likewise.
28180 * lib/signal_.h: Likewise.
28181 * lib/stdint_.h: Likewise.
28182 * lib/stdio_.h: Likewise.
28183 * lib/stdlib_.h: Likewise.
28184 * lib/string_.h: Likewise.
28185 * lib/sys_select_.h: Likewise.
28186 * lib/sys_socket_.h: Likewise.
28187 * lib/sys_stat_.h: Likewise.
28188 * lib/sys_time_.h: Likewise.
28189 * lib/sysexits_.h: Likewise.
28190 * lib/time_.h: Likewise.
28191 * lib/unistd_.h: Likewise.
28192 * lib/wchar_.h: Likewise.
28193 * lib/wctype_.h: Likewise.
28195 2007-05-29 Bruno Haible <bruno@clisp.org>
28197 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
28200 2007-05-29 Bruno Haible <bruno@clisp.org>
28202 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
28204 Reported by Eric Blake.
28206 2007-05-29 Bruno Haible <bruno@clisp.org>
28208 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
28211 2007-05-29 Eric Blake <ebb9@byu.net>
28212 Bruno Haible <bruno@clisp.org>
28214 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
28217 2007-05-28 Eric Blake <ebb9@byu.net>
28219 * modules/closein-tests (test_closein_LDADD): Support test on
28220 cygwin with libtool.
28222 2007-05-28 Bruno Haible <bruno@clisp.org>
28224 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
28225 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
28226 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
28227 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
28228 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
28229 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
28230 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
28231 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
28232 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
28234 2007-05-28 Eric Blake <ebb9@byu.net>
28236 Unconditionally include <config.h> in unit tests.
28237 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
28238 * tests/test-allocsa.c, tests/test-arcfour.c,
28239 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
28240 tests/test-array_list.c, tests/test-array_oset.c,
28241 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
28242 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
28243 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
28244 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
28245 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
28246 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
28247 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
28248 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
28249 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
28250 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
28251 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
28252 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
28253 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
28254 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
28255 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
28256 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
28257 test-md5.c, test-memmem.c, test-printf-posix.c,
28258 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
28259 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
28260 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
28261 test-strcasestr.c, test-striconv.c, test-striconveh.c,
28262 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
28263 test-vasnprintf-posix2.c, test-vasnprintf.c,
28264 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
28265 test-vfprintf-posix.c, test-vprintf-posix.c,
28266 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
28267 test-xvasprintf.c: Likewise.
28269 2007-05-28 Bruno Haible <bruno@clisp.org>
28271 * gnulib-tool (func_import): Remember the --with-tests command-line
28272 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
28273 Reported by Eric Blake.
28275 2007-05-28 Bruno Haible <bruno@clisp.org>
28277 * modules/ftell-tests: New file.
28278 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
28279 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
28281 * lib/ftell.c: New file.
28282 * modules/ftell: New file.
28283 * m4/ftell.m4: New file.
28284 * doc/functions/ftell.texi: Update.
28285 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
28287 * lib/stdio_.h (rpl_ftell): New declaration.
28288 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
28291 2007-05-28 Eric Blake <ebb9@byu.net>
28293 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
28295 2007-05-28 Bruno Haible <bruno@clisp.org>
28297 * modules/fseek-tests: New file.
28298 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
28299 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
28301 * lib/fseek.c: New file.
28302 * modules/fseek: New file.
28303 * m4/fseek.m4: New file.
28304 * doc/functions/fseek.texi: Update.
28305 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
28307 * lib/stdio_.h (rpl_fseek): New declaration.
28308 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
28311 2007-05-28 Bruno Haible <bruno@clisp.org>
28313 * lib/stdio_.h (fflush): More comments.
28315 2007-05-28 Bruno Haible <bruno@clisp.org>
28317 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
28320 2007-05-28 Eric Blake <ebb9@byu.net>
28322 Improve lseek module.
28323 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
28324 * lib/unistd_.h (lseek): Scale back link warning message.
28325 * tests/test-lseek.c: Beef up test.
28326 * tests/test-lseek.sh: Exercise more facets of lseek.
28327 Reported by Bruno Haible.
28329 2007-05-28 Bruno Haible <bruno@clisp.org>
28331 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
28334 2007-05-27 Bruno Haible <bruno@clisp.org>
28336 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
28338 2007-05-27 Bruno Haible <bruno@clisp.org>
28340 * modules/openmp: New file.
28341 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
28344 2007-05-26 Bruno Haible <bruno@clisp.org>
28346 * modules/chdir-long (Depends-on): Add fchdir.
28347 * modules/chdir-safer (Depends-on): Likewise.
28348 * modules/fts (Depends-on): Likewise.
28349 * modules/fts-lgpl (Depends-on): Likewise.
28350 * modules/openat (Depends-on): Likewise.
28351 * modules/savewd (Depends-on): Likewise.
28353 2007-05-24 Eric Blake <ebb9@byu.net>
28355 Fix lseek on mingw.
28356 * modules/lseek: New module.
28357 * m4/lseek.m4: New file.
28358 * lib/lseek.c: New file.
28359 * modules/lseek-tests: New file.
28360 * tests/test-lseek.c: New file.
28361 * tests/test-lseek.sh: New file.
28362 * MODULES.html.sh: Document lseek module.
28363 * modules/fflush (Depends-on): Add lseek, fseeko.
28364 * modules/fseeko (Depends-on): Likewise.
28365 * modules/ftello (Depends-on): Likewise.
28366 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
28368 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
28370 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
28371 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
28372 * lib/ftello.c (rpl_ftello): Likewise.
28373 * tests/test-fseeko.c (main): Test this.
28374 * tests/test-fseeko.sh: Likewise.
28375 * tests/test-ftello.c (main): Likewise.
28376 * tests/test-ftello.sh: Likewise.
28377 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
28378 implies replacing fseek.
28379 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
28381 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
28382 * modules/unistd (Makefile.am): Likewise.
28383 * lib/unistd_.h (lseek): Declare a replacement.
28384 * doc/functions/lseek.texi (lseek): Document this fix.
28385 * doc/functions/fseek.texi (fseek): Likewise.
28386 * doc/functions/ftell.texi (ftell): Likewise.
28388 2007-05-24 Bruno Haible <bruno@clisp.org>
28390 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
28391 in the printed representation of a NaN.
28392 * tests/test-vasprintf-posix.c (test_function): Likewise.
28393 * tests/test-snprintf-posix.h (test_function): Likewise.
28394 * tests/test-sprintf-posix.h (test_function): Likewise.
28395 Reported by Eric Blake.
28397 2007-05-23 Eric Blake <ebb9@byu.net>
28399 Fix fseeko/ftello on cygwin 1.5.24.
28400 * doc/functions/fseeko.texi (fseeko): Document the fix.
28401 * doc/functions/ftello.texi (ftello): Document the fix.
28402 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
28403 * doc/functions/stdout.text (stdout): New file.
28404 * doc/functions/stderr.text (stderr): New file.
28405 * doc/gnulib.texi (Function Substitutes): Use new files.
28406 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
28408 * tests/test-ftello.c (main): Likewise for ftello.
28409 * tests/test-fseeko.sh: New file.
28410 * tests/test-ftello.sh: New file.
28411 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
28412 with seekable stdin.
28413 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
28414 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
28415 (gl_REPLACE_FSEEKO): New macro.
28416 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
28417 * modules/fseeko (Files): Distribute fseeko.c.
28418 * modules/ftello (Files): Distribute ftello.c.
28419 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
28421 * lib/ftello.c (rpl_ftello): New file.
28422 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
28424 (gl_STDIN_LARGE_OFFSET): New macro.
28425 * modules/stdio (Makefile.am): Perform the replacement.
28426 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
28428 2007-05-23 Bruno Haible <bruno@clisp.org>
28430 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
28431 GNULIB_POSIXCHECK is defined.
28433 2007-05-21 Bruno Haible <bruno@clisp.org>
28435 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
28436 Check also the output for NaN arguments. When cross-compiling, guess
28438 * lib/vasnprintf.c: Update comments.
28439 * tests/test-vasnprintf-posix.c (strisnan): New function.
28440 (test_function): Use it.
28441 * tests/test-vasprintf-posix.c (strisnan): New function.
28442 (test_function): Use it.
28443 * tests/test-snprintf-posix.h (strisnan): New function.
28444 (test_function): Use it.
28445 * tests/test-sprintf-posix.h (strisnan): New function.
28446 (test_function): Use it.
28447 Reported by Eric Blake.
28449 2007-05-20 Bruno Haible <bruno@clisp.org>
28451 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
28452 numbers that fails on BeOS.
28453 * doc/functions/frexpl.texi: Update.
28455 2007-05-20 Jim Meyering <jim@meyering.net>
28457 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
28458 forced upon us by glibc-2.6.
28460 2007-05-20 Bruno Haible <bruno@clisp.org>
28462 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
28463 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
28464 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
28465 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
28466 NEED_PRINTF_INFINITE.
28467 (is_infinitel): New function.
28468 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
28469 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
28470 gl_PREREQ_VASNPRINTF_INFINITE.
28471 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
28472 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28473 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
28474 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
28475 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
28476 gl_PREREQ_VASNPRINTF_INFINITE.
28477 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28478 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28479 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28480 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28481 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28482 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28483 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28484 * doc/functions/fprintf.texi: Update.
28485 * doc/functions/printf.texi: Update.
28486 * doc/functions/snprintf.texi: Update.
28487 * doc/functions/sprintf.texi: Update.
28488 * doc/functions/vfprintf.texi: Update.
28489 * doc/functions/vprintf.texi: Update.
28490 * doc/functions/vsnprintf.texi: Update.
28491 * doc/functions/vsprintf.texi: Update.
28493 2007-05-20 Bruno Haible <bruno@clisp.org>
28495 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
28496 was not found in libc.
28497 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28499 2007-05-20 Bruno Haible <bruno@clisp.org>
28501 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
28502 printed as "-nan" instead of "nan".
28503 * tests/test-vasprintf-posix.c (test_function): Likewise.
28504 * tests/test-snprintf-posix.h (test_function): Likewise.
28505 * tests/test-sprintf-posix.h (test_function): Likewise.
28506 Needed for HP-UX 11.
28508 2007-05-20 Jim Meyering <jim@meyering.net>
28510 Fix buggy test for the fchownat-deref bug.
28511 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
28512 symlink required for the run-test. Without it, this test would
28513 always declare that fchownat doesn't work, and client code would
28514 unnecessarily use the replacement function with fixed libc.
28515 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
28516 Reported by Greg Schafer.
28518 2007-05-19 Bruno Haible <bruno@clisp.org>
28520 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
28521 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
28522 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
28523 Needed for IRIX 6.5 and Solaris 2.5.1.
28525 2007-05-19 Bruno Haible <bruno@clisp.org>
28527 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
28528 (test_function): Skip tests involving -0.0 on platforms where
28530 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
28531 (test_function): Skip tests involving -0.0 on platforms where
28533 * tests/test-snprintf-posix.h (have_minus_zero): New function.
28534 (test_function): Skip tests involving -0.0 on platforms where
28536 * tests/test-sprintf-posix.h (have_minus_zero): New function.
28537 (test_function): Skip tests involving -0.0 on platforms where
28539 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
28541 * tests/test-printf-posix.h (test_function): Likewise.
28542 * tests/test-printf-posix.output: Remove all -0.0 related results.
28543 Needed for IRIX 6.5.
28545 2007-05-19 Bruno Haible <bruno@clisp.org>
28547 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
28548 printed as "nan0x7fffffff" instead of "nan".
28549 * tests/test-vasprintf-posix.c (test_function): Likewise.
28550 * tests/test-snprintf-posix.h (test_function): Likewise.
28551 * tests/test-sprintf-posix.h (test_function): Likewise.
28552 * tests/test-fprintf-posix.h (NaN): Remove macro.
28553 (test_function): Remove all NaN related tests.
28554 * tests/test-printf-posix.h (NaN): Remove macro.
28555 (test_function): Remove all NaN related tests.
28556 * tests/test-printf-posix.output: Remove all NaN related results.
28557 Needed for IRIX 6.5.
28559 2007-05-19 Bruno Haible <bruno@clisp.org>
28561 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
28562 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28564 2007-05-19 Bruno Haible <bruno@clisp.org>
28566 * lib/float_.h: New file.
28567 * m4/float_h.m4: New file.
28568 * modules/float: New file.
28569 * modules/isnanl (Dependencies): Add float.
28570 * modules/isnanl-nolibm (Dependencies): Likewise.
28571 * modules/mathl (Dependencies): Likewise.
28572 * modules/printf-frexpl (Dependencies): Likewise.
28573 * modules/signbit (Dependencies): Likewise.
28574 * modules/vasnprintf (Dependencies): Likewise.
28575 * doc/headers/float.texi: Update.
28577 2007-05-19 Jim Meyering <jim@meyering.net>
28579 * lib/utimens.c (gl_futimens): Rename from futimens,
28580 now that glibc-2.6 declares futimens.
28581 * lib/utimens.h: Likewise.
28583 2007-05-19 Bruno Haible <bruno@clisp.org>
28585 Avoid test failures on mingw.
28586 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
28587 * tests/test-printf-posix.sh: Likewise.
28588 * tests/test-vfprintf-posix.sh: Likewise.
28589 * tests/test-vprintf-posix.sh: Likewise.
28591 2007-05-19 Bruno Haible <bruno@clisp.org>
28593 Fix *printf result for NaN, Inf, -0.0 on mingw.
28594 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
28595 * lib/vasnprintf.c: Include math.h and isnan.h.
28596 (is_infinite_or_zero): New function.
28597 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
28598 values in the %f, %F, %e, %E, %g, %G directives.
28599 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
28600 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28601 gl_PRINTF_INFINITE and test its result. Invoke
28602 gl_PREREQ_VASNPRINTF_INFINITE.
28603 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28604 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28605 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28606 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28607 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28608 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28609 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28610 * doc/functions/fprintf.texi: Update.
28611 * doc/functions/printf.texi: Update.
28612 * doc/functions/snprintf.texi: Update.
28613 * doc/functions/sprintf.texi: Update.
28614 * doc/functions/vfprintf.texi: Update.
28615 * doc/functions/vprintf.texi: Update.
28616 * doc/functions/vsnprintf.texi: Update.
28617 * doc/functions/vsprintf.texi: Update.
28619 2007-05-19 Bruno Haible <bruno@clisp.org>
28621 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
28622 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
28623 Instead of multiplying with 10^k, set extra_zeroes to k.
28624 (scale10_round_long_double): Remove function.
28626 2007-05-18 Bruno Haible <bruno@clisp.org>
28628 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
28629 introduced on 2007-05-06.
28631 2007-05-18 Bruno Haible <bruno@clisp.org>
28633 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
28635 * tests/test-vasprintf-posix.c (test_function): Likewise.
28636 * tests/test-snprintf-posix.h (test_function): Likewise.
28637 * tests/test-sprintf-posix.h (test_function): Likewise.
28639 2007-05-18 Bruno Haible <bruno@clisp.org>
28641 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
28642 (strmatch): New function.
28643 (test_function): Test the %f directive on numbers of various exponents.
28644 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
28645 (strmatch): New function.
28646 (test_function): Test the %f directive on numbers of various exponents.
28647 * tests/test-snprintf-posix.h (strmatch): New function.
28648 (test_function): Test the %f directive on numbers of various exponents.
28649 * tests/test-sprintf-posix.h (strmatch): New function.
28650 (test_function): Test the %f directive on numbers of various exponents.
28651 * tests/test-snprintf-posix.c (SIZEOF): New macro.
28652 * tests/test-sprintf-posix.c (SIZEOF): New macro.
28653 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
28654 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
28656 2007-05-18 Bruno Haible <bruno@clisp.org>
28658 Add support for 'long double' number output.
28659 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
28660 * lib/vasnprintf.c: Include math.h and float+.h.
28661 (mp_limb_t): New type.
28662 (GMP_LIMB_BITS): New macro.
28663 (mp_twolimb_t): New type.
28664 (GMP_TWOLIMB_BITS): New macro.
28666 (multiply, divide, convert_to_decimal, decode_long_double,
28667 scale10_round_long_double, scale10_round_decimal_long_double,
28668 floorlog10l): New functions.
28669 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
28670 for the %f, %F, %e, %E, %g, %G directives.
28671 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
28672 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
28673 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
28674 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
28675 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
28676 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28677 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28678 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28679 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28680 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28681 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28682 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
28683 * modules/snprintf-posix (Depends-on): Likewise.
28684 * modules/sprintf-posix (Depends-on): Likewise.
28685 * modules/vasnprintf-posix (Depends-on): Likewise.
28686 * modules/vasprintf-posix (Depends-on): Likewise.
28687 * modules/vfprintf-posix (Depends-on): Likewise.
28688 * modules/vsnprintf-posix (Depends-on): Likewise.
28689 * modules/vsprintf-posix (Depends-on): Likewise.
28690 * modules/vasnprintf (Files): Add lib/float+.h.
28691 * doc/functions/fprintf.texi: Update.
28692 * doc/functions/printf.texi: Update.
28693 * doc/functions/snprintf.texi: Update.
28694 * doc/functions/sprintf.texi: Update.
28695 * doc/functions/vfprintf.texi: Update.
28696 * doc/functions/vprintf.texi: Update.
28697 * doc/functions/vsnprintf.texi: Update.
28698 * doc/functions/vsprintf.texi: Update.
28700 2007-05-18 Bruno Haible <bruno@clisp.org>
28702 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
28704 2007-05-18 Bruno Haible <bruno@clisp.org>
28706 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
28707 for printing 64-bit integers. Needed for mingw.
28709 2007-05-18 Bruno Haible <bruno@clisp.org>
28711 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
28712 gl_FUNC_FREXPL_WORKS.
28713 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
28715 2007-05-18 Bruno Haible <bruno@clisp.org>
28717 * modules/frexpl-nolibm-tests: New file.
28719 * modules/frexpl-nolibm: New file.
28720 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
28722 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
28724 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
28725 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
28726 GCC 4.2, which otherwise issues a lot of warnings.
28727 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
28728 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
28730 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
28731 * modules/iconv_open (iconv.h): Likewise.
28732 * modules/locale (locale.h): Likewise.
28733 * modules/netinet_in (netinet/in.h): Likewise.
28734 * modules/sys_select (sys_select.h): Likewise.
28735 * modules/sys_socket (sys/socket.h): Likewise.
28736 * modules/sys_stat (sys/stat.h): Likewise.
28737 * modules/sysexits (sysexits.h): Likewise.
28738 * modules/unistd (unistd.h): Likewise.
28740 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28742 * modules/closein-tests (Makefile.am): Distribute
28745 2007-05-17 Bruno Haible <bruno@clisp.org>
28747 * tests/test-printf-posix.output: Renamed from
28748 tests/test-fprintf-posix.out.
28749 * modules/fprintf-posix-tests: Update.
28750 * modules/printf-posix-tests: Update.
28751 * modules/vfprintf-posix-tests: Update.
28752 * modules/vprintf-posix-tests: Update.
28753 * tests/test-fprintf-posix.sh: Update.
28754 * tests/test-printf-posix.sh: Update.
28755 * tests/test-vfprintf-posix.sh: Update.
28756 * tests/test-vprintf-posix.sh: Update.
28757 Reported by Ralf Wildenhues.
28759 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
28761 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
28762 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
28763 GCC 4.2, which otherwise issues a lot of warnings.
28764 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
28765 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
28766 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
28767 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
28768 it should no longer be needed.
28769 * lib/string_.h: Likewise.
28770 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
28771 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
28772 * modules/inttypes (inttypes.h): Likewise.
28773 * modules/math (math.h): Likewise.
28774 * modules/search (search.h): Likewise.
28775 * modules/signal (signal.h): Likewise.
28776 * modules/stdint (stdint.h): Likewise.
28777 * modules/stdio (stdio.h): Likewise.
28778 * modules/stdlib (stdlib.h): Likewise.
28779 * modules/string (string.h): Likewise.
28780 * modules/sys_time (sys/time.h): Likewise.
28781 * modules/time (time.h): Likewise.
28782 * modules/wchar (wchar.h): Likewise.
28783 * modules/wctype (wtype.h): Likewise.
28785 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
28787 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
28789 2007-05-13 Bruno Haible <bruno@clisp.org>
28791 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
28792 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28793 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
28794 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28795 (gl_PREREQ_STRTOK_R): Don't require it here.
28797 2007-05-13 Bruno Haible <bruno@clisp.org>
28799 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
28800 when used in C++ mode.
28802 2007-05-12 Bruno Haible <bruno@clisp.org>
28804 * lib/linebuffer.h: Tweak doc.
28805 * lib/linebuffer.c: Likewise.
28807 2007-05-12 James Youngman <jay@gnu.org>
28809 * lib/linebuffer.c (readlinebuffer_delim): New function,
28810 like readlinebuffer, but use a caller-specified delimiter.
28811 (readlinebuffer): Just call readlinebuffer_delim with '\n'
28813 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
28815 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
28817 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
28818 * modules/openat (Files): Remove openat-die.c.
28819 (Depends-on): Add openat-die.
28820 * modules/openat-die: New module.
28822 2007-05-06 Bruno Haible <bruno@clisp.org>
28824 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
28825 Update with info about Cygwin.
28826 * doc/functions/fprintf.texi: Update.
28827 * doc/functions/printf.texi: Update.
28828 * doc/functions/snprintf.texi: Update.
28829 * doc/functions/sprintf.texi: Update.
28830 * doc/functions/vfprintf.texi: Update.
28831 * doc/functions/vprintf.texi: Update.
28832 * doc/functions/vsnprintf.texi: Update.
28833 * doc/functions/vsprintf.texi: Update.
28834 Reported by Eric Blake.
28836 2007-05-06 Bruno Haible <bruno@clisp.org>
28838 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
28839 padding ourselves for the floating-point directives.
28840 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
28841 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
28842 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28843 gl_PRINTF_FLAG_ZERO and test its result. Invoke
28844 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
28845 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28846 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28847 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28848 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28849 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28850 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28851 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28852 * tests/test-snprintf-posix.h (test_function): Also check the width
28853 and some flags in the %f directive.
28854 * tests/test-sprintf-posix.h (test_function): Likewise.
28855 * tests/test-vasnprintf-posix.c (test_function): Likewise.
28856 * tests/test-vasprintf-posix.c (test_function): Likewise.
28857 * doc/functions/fprintf.texi: Update.
28858 * doc/functions/printf.texi: Update.
28859 * doc/functions/snprintf.texi: Update.
28860 * doc/functions/sprintf.texi: Update.
28861 * doc/functions/vfprintf.texi: Update.
28862 * doc/functions/vprintf.texi: Update.
28863 * doc/functions/vsnprintf.texi: Update.
28864 * doc/functions/vsprintf.texi: Update.
28866 2007-05-06 Bruno Haible <bruno@clisp.org>
28868 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
28869 pass the ' flag character to sprintf or snprintf.
28870 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
28871 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
28872 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
28873 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
28874 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
28875 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28876 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
28877 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28878 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28879 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
28880 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28881 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28882 * tests/test-snprintf-posix.h (test_function): Also check the grouping
28884 * tests/test-sprintf-posix.h (test_function): Likewise.
28885 * tests/test-vasnprintf-posix.c (test_function): Likewise.
28886 * tests/test-vasprintf-posix.c (test_function): Likewise.
28887 * doc/functions/fprintf.texi: Update.
28888 * doc/functions/printf.texi: Update.
28889 * doc/functions/snprintf.texi: Update.
28890 * doc/functions/sprintf.texi: Update.
28891 * doc/functions/vfprintf.texi: Update.
28892 * doc/functions/vprintf.texi: Update.
28893 * doc/functions/vsnprintf.texi: Update.
28894 * doc/functions/vsprintf.texi: Update.
28896 2007-05-01 Bruno Haible <bruno@clisp.org>
28898 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
28900 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
28902 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
28903 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
28905 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
28907 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
28908 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
28909 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
28911 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
28913 * lib/argp-help.c (struct hol_entry): New member `ord'.
28914 (HOL_ENTRY_PTRCMP): Use ord for comparison
28915 (hol_sort): Initialize ord.
28917 2007-05-01 Bruno Haible <bruno@clisp.org>
28919 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
28920 Reported by Eric Blake.
28921 * doc/gnulib.texi (Function Substitutes): Update.
28923 2007-05-01 Bruno Haible <bruno@clisp.org>
28925 * doc/functions.texi: Remove file, now redundant through
28926 doc/functions/*.texi.
28928 2007-05-01 Bruno Haible <bruno@clisp.org>
28930 * modules/argp (Depends-on): Add sleep.
28932 2007-05-01 Bruno Haible <bruno@clisp.org>
28934 * modules/sleep-tests: New file.
28935 * tests/test-sleep.c: New file.
28937 * modules/sleep: New file.
28938 * lib/sleep.c: New file.
28939 * m4/sleep.m4: New file.
28940 * lib/unistd_.h (sleep): New declaration.
28941 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
28943 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
28944 * doc/functions/sleep.texi: Document the sleep module.
28946 2007-05-01 Bruno Haible <bruno@clisp.org>
28948 * lib/sigprocmask.h: Remove file.
28949 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
28950 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
28951 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
28952 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
28953 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
28954 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
28955 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
28956 HAVE_SIGSET_T as a shell variable.
28957 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
28958 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
28959 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
28960 (Depends-on): Add signal. Remove verify.
28961 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
28962 (Include): Mention <signal.h> instead of sigprocmask.h.
28963 * NEWS: Mention the change.
28964 * lib/fatal-signal.c: Don't include sigprocmask.h.
28966 2007-05-01 Bruno Haible <bruno@clisp.org>
28968 * modules/signal: New file.
28969 * lib/signal_.h: New file.
28970 * m4/signal_h.m4: New file.
28972 2007-05-01 Bruno Haible <bruno@clisp.org>
28974 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
28975 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
28976 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
28977 HAVE_WCTYPE_CTMP_BUG into wctype.h.
28979 2007-05-01 Bruno Haible <bruno@clisp.org>
28981 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
28983 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
28984 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
28985 * modules/sys_stat (Makefile.am): Substitute their values into
28988 2007-05-01 Bruno Haible <bruno@clisp.org>
28990 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
28991 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
28992 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
28994 2007-05-01 Bruno Haible <bruno@clisp.org>
28996 * doc/header/assert.texi: Undo last change: don't mention the gnulib
28997 'assert' module here.
28999 2007-05-01 Bruno Haible <bruno@clisp.org>
29001 * doc/functions/*.texi: New files.
29002 * doc/functions/google-ranking.txt: New file.
29003 * doc/gnulib.texi (Function Substitutes): New chapter.
29004 (ctime, inet_ntoa): Remove sections.
29005 * doc/ctime.texi: Remove file.
29006 * doc/inet_ntoa.texi: Remove file.
29007 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
29009 (%.info): New rule, specifying a --reference-limit.
29011 2007-05-01 Bruno Haible <bruno@clisp.org>
29013 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
29015 2007-05-01 Bruno Haible <bruno@clisp.org>
29017 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
29018 the portability of 'mkdir' to mingw systems.
29020 2007-05-01 Bruno Haible <bruno@clisp.org>
29022 * doc/headers/google-ranking.txt: New file.
29024 2007-04-30 Eric Blake <ebb9@byu.net>
29026 Prefer fseeko to fseek.
29027 * modules/getpass (Depends-on): Add fseeko.
29028 * lib/getpass.c (getpass): Use fseeko, not fseek.
29030 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
29032 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
29033 assumes the sorting is stable, while most qsort implementations
29034 are not. Use argument addresses to ensure they never compare as
29037 * tests/test-argp-2.sh (usage-indent test): Fix output
29038 (func_compare): Restore diff options
29039 * tests/test-argp.c: Restore #include "progname.h"
29041 2007-04-29 Bruno Haible <bruno@clisp.org>
29043 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
29044 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29045 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
29046 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29047 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
29048 (configure.ac): Define CHECK_SNPRINTF_POSIX.
29049 (TESTS, check_PROGRAMS): Add test-snprintf.
29050 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
29051 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
29052 (TESTS, check_PROGRAMS): Add test-vsnprintf.
29053 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
29054 assertions that fail on HP-UX, OSF/1, or IRIX.
29055 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
29057 2007-04-29 Bruno Haible <bruno@clisp.org>
29059 * MODULES.html.sh (posix_functions): Remove 'contents'.
29061 2007-04-29 Karl Berry <karl@gnu.org>
29063 * config/srclist.txt (gendocs_template_min): new entry.
29065 2007-04-29 Bruno Haible <bruno@clisp.org>
29067 Work around fpurge bug on BSD systems.
29068 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
29069 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
29070 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
29071 fpurge to rpl_fpurge if the system already has this function.
29072 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
29073 the case where the system already has this function. Correct invariants
29075 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
29078 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
29080 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
29081 proposed by Sven Verdoolaege.
29083 * tests/test-argp.c: Fix option ordering. Test deeply clustered
29085 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
29086 (usage and help tests): Update
29088 2007-04-29 Bruno Haible <bruno@clisp.org>
29090 * tests/test-fflush.c (main): Use a file of size 17, not 10.
29091 Print more information in case of failure. Disable a test on BeOS.
29093 2007-04-29 Bruno Haible <bruno@clisp.org>
29095 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
29096 This helps debugging on systems on which no gdb is available.
29098 2007-04-29 Bruno Haible <bruno@clisp.org>
29100 * lib/freading.h: Improve comments.
29101 * lib/fwriting.h: Likewise.
29102 * tests/test-freading.c (main): Don't check freading immediately after
29103 repositioning. Needed for glibc.
29105 2007-04-29 Bruno Haible <bruno@clisp.org>
29107 * lib/freading.c (freading): Trivial simplification.
29109 2007-04-28 Bruno Haible <bruno@clisp.org>
29111 * tests/test-fwriting.c (main): Also test the interaction between
29112 fflush and fwriting.
29113 * modules/fwriting-tests (Depends-on): Add fflush.
29115 * tests/test-freading.c (main): Also test the interaction between
29116 fflush and freading.
29117 * modules/freading-tests (Depends-on): Add fflush.
29119 2007-04-28 Bruno Haible <bruno@clisp.org>
29121 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
29123 Suggested by Eric Blake.
29125 2007-04-28 Jim Meyering <jim@meyering.net>
29127 Avoid false-negative in gl_STDINT_H's C99 conformance test.
29128 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
29129 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
29131 2007-04-27 Eric Blake <ebb9@byu.net>
29133 * doc/headers/assert.texi (assert.h): Document assert module use.
29135 2007-04-27 Bruno Haible <bruno@clisp.org>
29137 * doc/headers/*.texi: New files.
29138 * doc/gnulib.texi (Header File Substitutes): New chapter.
29139 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
29141 (standards.info ,standards.html, standards.dvi): Update dependencies.
29142 (mostlyclean, clean): New targets.
29144 2007-04-27 Bruno Haible <bruno@clisp.org>
29146 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
29147 * modules/sysexits (Files, Makefile.am): Update.
29149 * lib/sys_socket_.h: Renamed from lib/socket_.h.
29150 * modules/sys_socket (Files, Makefile.am): Update.
29152 * lib/sys_stat_.h: Renamed from lib/stat_.h.
29153 * modules/sys_stat (Files, Makefile.am): Update.
29155 2007-04-27 Eric Blake <ebb9@byu.net>
29157 * lib/freading.h: Improve comments.
29158 * lib/fwriting.h: Likewise.
29159 * lib/fflush.c: Likewise.
29161 Fix closein for mingw.
29162 * modules/closein-tests: Add tests for closein.
29163 * tests/test-closein.c: New file.
29164 * tests/test-closein.sh: Likewise.
29165 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
29166 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
29168 2007-04-27 Bruno Haible <bruno@clisp.org>
29170 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
29172 * lib/math_.h [__DECC]: Likewise.
29173 * lib/stdio_.h [__DECC]: Likewise.
29174 * lib/stdlib_.h [__DECC]: Likewise.
29175 * lib/string_.h [__DECC]: Likewise.
29176 * lib/time_.h [__DECC]: Likewise.
29177 * lib/wchar_.h [__DECC]: Likewise.
29178 * lib/wctype_.h [__DECC]: Likewise.
29180 2007-04-27 Bruno Haible <bruno@clisp.org>
29182 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
29184 2007-04-27 Bruno Haible <bruno@clisp.org>
29186 * lib/fflush.c: Add comments.
29187 * modules/fpurge-tests (Depends-on): Add fflush.
29188 * modules/freadable-tests (Depends-on): Likewise.
29189 * modules/fwritable-tests (Depends-on): Likewise.
29191 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
29193 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
29194 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
29195 Report by Bruno Haible <bruno@clisp.org>.
29197 2007-04-26 Eric Blake <ebb9@byu.net>
29199 Fix fflush on mingw.
29200 * modules/fflush (Depends-on): Add freading.
29201 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
29204 2007-04-26 Eric Blake <ebb9@byu.net>
29205 and Bruno Haible <bruno@clisp.org>
29207 Implement freading and fwriting.
29208 * lib/freading.c: New file.
29209 * lib/freading.h: Likewise.
29210 * m4/freading.m4: Likewise.
29211 * modules/freading: Likewise.
29212 * modules/freading-tests: Likewise.
29213 * tests/test-freading.c: Likewise.
29214 * lib/fwriting.c: New file.
29215 * lib/fwriting.h: Likewise.
29216 * m4/fwriting.m4: Likewise.
29217 * modules/fwriting: Likewise.
29218 * modules/fwriting-tests: Likewise.
29219 * tests/test-fwriting.c: Likewise.
29220 * MODULES.html.sh (File stream based Input/Output): Mention them.
29222 2007-04-26 Bruno Haible <bruno@clisp.org>
29224 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
29225 'long' when we assume it.
29226 Suggested by Eric Blake.
29228 2007-04-26 Bruno Haible <bruno@clisp.org>
29230 Ensure fseeko, ftello are declared on glibc systems.
29231 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
29232 * modules/fseeko (configure.ac-early): Likewise.
29233 * modules/ftello (configure.ac-early): Likewise.
29234 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
29235 AC_FUNC_FSEEKO for this.
29236 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
29237 (gl_CHECK_FSEEKO): Remove macro.
29239 2007-04-26 Bruno Haible <bruno@clisp.org>
29241 * tests/test-fflush.c (main): Also check the ftell result after
29242 fflush and fseek/fseeko.
29243 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
29244 file descriptor position cache in the stream.
29245 * lib/fseeko.c (rpl_fseeko): Likewise.
29247 2007-04-26 Bruno Haible <bruno@clisp.org>
29249 * modules/fflush-tests (Depends-on): Add fseeko.
29251 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
29252 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29254 * lib/argz_.h: ensure error_t definition is obtained in same
29255 mechanism system argz.h would have.
29256 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
29257 argz facilities are known bad. Err on the side of caution if
29260 2007-04-25 Eric Blake <ebb9@byu.net>
29262 * lib/fpurge.c (includes): Use stdlib.h for free.
29263 * tests/test-fflush.c (main): Also test fflush-fseeko.
29265 2007-04-25 Bruno Haible <bruno@clisp.org>
29267 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
29268 * lib/fseeko.c: New file.
29269 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
29270 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
29271 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
29273 (gl_FUNC_FSEEKO): Invoke it.
29274 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
29275 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
29276 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
29278 2007-04-25 Bruno Haible <bruno@clisp.org>
29280 * modules/fflush (Depends-on): Add ftello.
29282 2007-04-25 Bruno Haible <bruno@clisp.org>
29284 * modules/ftello-tests: New file.
29285 * tests/test-ftello.c: New file.
29287 * modules/ftello: New file.
29288 * m4/ftello.m4: New file.
29289 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
29291 * lib/stdio_.h (ftello): New declaration.
29292 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
29295 2007-04-25 Bruno Haible <bruno@clisp.org>
29297 * modules/fseeko-tests: New file.
29298 * tests/test-fseeko.c: New file.
29300 * modules/fseeko: New file.
29301 * m4/fseeko.m4: New file.
29302 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
29304 * lib/stdio_.h (fseeko): New declaration.
29305 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
29308 2007-04-25 Bruno Haible <bruno@clisp.org>
29310 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
29312 2007-04-25 Bruno Haible <bruno@clisp.org>
29314 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
29315 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
29316 * tests/test-unistd.c: Likewise.
29317 * tests/test-fcntl.c: Likewise.
29319 2007-04-23 Eric Blake <ebb9@byu.net>
29321 * lib/fflush.c: Fix missing include.
29322 Reported by Bruno Haible.
29324 2007-04-23 Bruno Haible <bruno@clisp.org>
29326 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
29327 Reported by Eric Blake.
29329 2007-04-23 Bruno Haible <bruno@clisp.org>
29331 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
29333 2007-04-23 Bruno Haible <bruno@clisp.org>
29335 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
29337 2007-04-23 Bruno Haible <bruno@clisp.org>
29339 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
29340 Needed on HP-UX 11.
29342 2007-04-16 Eric Blake <ebb9@byu.net>
29344 Make fflush rely on fpurge.
29345 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
29346 open coding all variants.
29347 * modules/fflush (Depends-on): Add fpurge and unistd.
29348 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
29349 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
29351 Fix --with-tests compilation on cygwin.
29352 * modules/argmatch-tests (Makefile.am): List gnulib library first
29354 * modules/argp-tests (Makefile.am): Likewise.
29355 * modules/array-list-tests (Makefile.am): Likewise.
29356 * modules/array-oset-tests (Makefile.am): Likewise.
29357 * modules/avltree-list-tests (Makefile.am): Likewise.
29358 * modules/avltree-oset-tests (Makefile.am): Likewise.
29359 * modules/avltreehash-list-tests (Makefile.am): Likewise.
29360 * modules/carray-list-tests (Makefile.am): Likewise.
29361 * modules/dirname-tests (Makefile.am): Likewise.
29362 * modules/frexp-tests (Makefile.am): Likewise.
29363 * modules/isnanl-tests (Makefile.am): Likewise.
29364 * modules/linked-list-tests (Makefile.am): Likewise.
29365 * modules/linkedhash-list-tests (Makefile.am): Likewise.
29366 * modules/lock-tests (Makefile.am): Likewise.
29367 * modules/rbtree-list-tests (Makefile.am): Likewise.
29368 * modules/rbtree-oset-tests (Makefile.am): Likewise.
29369 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
29370 * modules/tls-tests (Makefile.am): Likewise.
29371 * modules/tsearch-tests (Makefile.am): Likewise.
29372 * modules/xvasprintf-tests (Makefile.am): Likewise.
29374 Fix fpurge for cygwin.
29375 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
29377 * modules/fpurge-tests (Depends-on): Clean up trash.
29379 2007-04-16 Simon Josefsson <simon@josefsson.org>
29381 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
29383 * m4/autobuild.m4: Re-indent.
29385 2007-04-13 Bruno Haible <bruno@clisp.org>
29387 * modules/fpurge-tests: New file.
29388 * tests/test-fpurge.c: New file.
29390 * modules/fpurge: New file.
29391 * lib/fpurge.h: New file.
29392 * lib/fpurge.c: New file.
29393 * m4/fpurge.m4: New file.
29395 2007-04-13 Bruno Haible <bruno@clisp.org>
29397 * modules/fbufmode-tests: New file.
29398 * tests/test-fbufmode.c: New file.
29400 * modules/fbufmode: New file.
29401 * lib/fbufmode.h: New file.
29402 * lib/fbufmode.c: New file.
29403 * m4/fbufmode.m4: New file.
29405 2007-04-13 Bruno Haible <bruno@clisp.org>
29407 * modules/fwritable-tests: New file.
29408 * tests/test-fwritable.c: New file.
29410 * modules/fwritable: New file.
29411 * lib/fwritable.h: New file.
29412 * lib/fwritable.c: New file.
29413 * m4/fwritable.m4: New file.
29415 2007-04-13 Bruno Haible <bruno@clisp.org>
29417 * modules/freadable-tests: New file.
29418 * tests/test-freadable.c: New file.
29420 * modules/freadable: New file.
29421 * lib/freadable.h: New file.
29422 * lib/freadable.c: New file.
29423 * m4/freadable.m4: New file.
29425 2007-04-13 Bruno Haible <bruno@clisp.org>
29427 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
29430 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
29432 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
29433 gzip bootstrap.conf to avoid dragging in i18n machinery.
29434 (gnulib_tool_option): Use it.
29436 2007-04-13 Bruno Haible <bruno@clisp.org>
29438 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
29440 * tests/test-vasprintf-posix.c (test_function): Likewise.
29441 * tests/test-snprintf-posix.h (test_function): Likewise.
29442 * tests/test-sprintf-posix.h (test_function): Likewise.
29443 * tests/test-fprintf-posix.h (test_function): Likewise.
29444 * tests/test-printf-posix.h (test_function): Likewise.
29445 * tests/test-fprintf-posix.out: Likewise.
29447 2007-04-13 Bruno Haible <bruno@clisp.org>
29449 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
29450 * modules/tls-tests (configure.ac): Likewise.
29451 Reported by Arto C. Nirkko <anirkko@insel.ch>.
29453 2007-04-13 Bruno Haible <bruno@clisp.org>
29455 * lib/tls.c (glthread_tls_get): Fix return type.
29456 Patch by Arto C. Nirkko <anirkko@insel.ch>.
29458 2007-04-12 Eric Blake <ebb9@byu.net>
29460 * modules/gettime (Depends-on): Remove gettime.
29461 Reported by Dmitry V. Levin.
29463 2007-04-12 Bruno Haible <bruno@clisp.org>
29465 * modules/fflush (Include): Mention <stdio.h>.
29466 * modules/strtoimax (Include): Mention <inttypes.h>.
29467 * modules/strtoumax (Include): Likewise.
29469 2007-04-12 Eric Blake <ebb9@byu.net>
29471 * .cvsignore: New file.
29472 * .gitignore: Likewise.
29474 2007-04-12 Bruno Haible <bruno@clisp.org>
29476 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
29477 not before, since $(LDADD) often contains libgnu.a.
29478 * modules/striconv-tests (test_striconv_LDADD): Likewise.
29479 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
29480 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
29483 2007-04-12 Eric Blake <ebb9@byu.net>
29485 Work around glibc's failure to flush stdin on fclose.
29486 * lib/closein.c (close_stdin): Flush stdin before closing.
29488 Work around glibc's failure to reset seekable stdin on exit.
29489 * modules/closein: New module.
29490 * lib/closein.c: New file.
29491 * lib/closein.h: Likewise.
29492 * m4/closein.m4: Likewise.
29493 * MODULES.html.sh (File stream based Input/Output): Document it.
29495 2007-04-12 Simon Josefsson <simon@josefsson.org>
29497 * gnulib-tool: Rename generated 'autobuild' script to
29498 'do-autobuild' in --create-megatestdir output.
29500 * doc/gnulib.texi (Build robot for gnulib): Fix.
29502 2007-04-12 Simon Josefsson <simon@josefsson.org>
29504 * modules/sysexits (Depends-on): Add absolute-header.
29506 2007-04-12 Eric Blake <ebb9@byu.net>
29508 No need to preserve errno on success.
29509 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
29510 Reported by Bruno Haible.
29512 2007-04-12 Simon Josefsson <simon@josefsson.org>
29514 * MODULES.html.sh (Support for maintaining and releasing
29515 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
29517 2007-04-12 Simon Josefsson <simon@josefsson.org>
29519 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
29521 2007-04-12 Simon Josefsson <simon@josefsson.org>
29523 * modules/autobuild: New module.
29525 * m4/autobuild.m4: New file.
29527 2007-04-11 Bruno Haible <bruno@clisp.org>
29529 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
29530 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
29531 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
29532 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
29533 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29534 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29535 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29536 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29537 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29538 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29539 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
29540 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29541 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29542 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
29543 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29544 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29545 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
29546 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29547 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29548 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
29549 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29550 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29551 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
29552 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29553 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29554 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
29555 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
29556 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
29557 Reported by Eric Blake.
29559 2007-04-11 Bruno Haible <bruno@clisp.org>
29561 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
29563 2007-04-10 Bruno Haible <bruno@clisp.org>
29565 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
29566 for NaN and Infinity. Needed on FreeBSD 6.1.
29567 * tests/test-vasnprintf-posix.c (test_function): Undo last change
29568 regarding results for "%010a" of Infinity and NaN.
29569 * tests/test-vasprintf-posix.c (test_function): Likewise.
29570 * tests/test-snprintf-posix.h (test_function): Likewise.
29571 * tests/test-sprintf-posix.h (test_function): Likewise.
29572 * tests/test-fprintf-posix.h (test_function): Likewise.
29573 * tests/test-printf-posix.h (test_function): Likewise.
29574 * tests/test-fprintf-posix.out: Likewise.
29576 2007-04-10 Bruno Haible <bruno@clisp.org>
29578 * modules/locale-tests: New file.
29579 * tests/test-locale.c: New file.
29581 * modules/locale: New file.
29582 * lib/locale_.h: New file.
29583 * m4/locale_h.m4: New file.
29585 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
29586 Bruno Haible <bruno@clisp.org>
29588 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
29589 be determined, test for availability of the copysignf, copysign,
29590 copysignl functions.
29591 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
29592 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
29593 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
29595 2007-04-09 Eric Blake <ebb9@byu.net>
29597 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
29598 * modules/stdio (Makefile.am): Support fflush.
29599 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29600 * modules/fflush: New file.
29601 * lib/fflush.c: Likewise.
29602 * m4/fflush.m4: Likewise.
29603 * modules/fflush-tests: New test.
29604 * tests/test-fflush.c: Likewise.
29605 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
29607 2007-04-06 Bruno Haible <bruno@clisp.org>
29609 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
29610 (VASNPRINTF): Use signbit for faster determination whether to print a
29612 * modules/vasnprintf (Files): Remove lib/float+.h.
29613 * modules/fprintf-posix (Depends-on): Add signbit.
29614 * modules/snprintf-posix (Depends-on): Likewise.
29615 * modules/sprintf-posix (Depends-on): Likewise.
29616 * modules/vasnprintf-posix (Depends-on): Likewise.
29617 * modules/vasprintf-posix (Depends-on): Likewise.
29618 * modules/vfprintf-posix (Depends-on): Likewise.
29619 * modules/vsnprintf-posix (Depends-on): Likewise.
29620 * modules/vsprintf-posix (Depends-on): Likewise.
29622 2007-04-06 Bruno Haible <bruno@clisp.org>
29624 * tests/test-frexp.c (main): Test also the sign bit of zero results.
29625 * tests/test-frexpl.c (main): Likewise.
29626 * tests/test-ldexpl.c (main): Likewise.
29627 * modules/frexp-tests (Depends-on): Add signbit.
29628 * modules/frexpl-tests (Depdends-on): Likewise.
29629 * modules/ldexpl-tests (Depdends-on): Likewise.
29631 2007-04-06 Bruno Haible <bruno@clisp.org>
29633 * modules/signbit-tests: New file.
29634 * tests/test-signbit.c: New file.
29636 * modules/signbit: New file.
29637 * lib/signbitf.c: New file.
29638 * lib/signbitd.c: New file.
29639 * lib/signbitl.c: New file.
29640 * m4/signbit.m4: New file.
29641 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
29642 (signbit): New macro.
29643 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
29645 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
29646 REPLACE_FREXPL into math.h.
29648 2007-04-06 Bruno Haible <bruno@clisp.org>
29650 * modules/isnanf-nolibm-tests: New file.
29651 * tests/test-isnanf.c: New file.
29653 * modules/isnanf-nolibm: New file.
29654 * lib/isnanf.h: New file.
29655 * lib/isnanf.c: New file.
29656 * lib/isnan.c: Consider the USE_FLOAT macro.
29657 * m4/isnanf.m4: New file.
29659 2007-04-06 Bruno Haible <bruno@clisp.org>
29661 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
29662 (Link): New section.
29664 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
29666 2007-04-06 Bruno Haible <bruno@clisp.org>
29668 Assume the 'long double' type.
29669 * m4/longdouble.m4: Remove file.
29670 * config/srclist.txt: Don't mention longdouble.m4.
29671 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
29672 * lib/float+.h: Likewise.
29673 * lib/frexp.c: Likewise.
29674 * lib/printf-args.h: Likewise.
29675 * lib/printf-args.c: Likewise.
29676 * lib/printf-frexp.c: Likewise.
29677 * lib/printf-parse.c: Likewise.
29678 * lib/vasnprintf.c: Likewise.
29679 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
29680 * m4/intl.m4: Likewise.
29681 * m4/isnanl.m4: Likewise.
29682 * m4/printf.m4: Likewise.
29683 * m4/printf-frexpl.m4: Likewise.
29684 * m4/vasnprintf.m4: Likewise.
29685 * modules/allocsa (Files): Remove m4/longdouble.m4.
29686 * modules/gettext (Files): Likewise.
29687 * modules/relocatable-prog-wrapper (Files): Likewise.
29688 * modules/vasnprintf (Files): Likewise.
29689 * modules/isnanl (Files): Likewise.
29690 (Include): Simplify.
29691 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
29692 (Include): Simplify.
29693 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
29694 (Include): Simplify.
29695 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
29696 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29697 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
29698 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29699 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29700 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29701 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
29702 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29703 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
29704 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29705 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
29706 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
29707 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
29708 * tests/test-isnanl.c: Likewise.
29709 * tests/test-snprintf-posix.h: Likewise.
29710 * tests/test-sprintf-posix.h: Likewise.
29711 * tests/test-vasnprintf-posix.c: Likewise.
29712 * tests/test-vasnprintf-posix2.c: Likewise.
29713 * tests/test-vasprintf-posix.c: Likewise.
29715 2007-04-06 Bruno Haible <bruno@clisp.org>
29717 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
29718 * lib/math_.h [__DECC]: Include the overridden include file through
29719 #include_next, outside the double-inclusion guard.
29720 * lib/stdio_.h [__DECC]: Likewise.
29721 * lib/stdlib_.h [__DECC]: Likewise.
29722 * lib/string_.h [__DECC]: Likewise.
29723 * lib/time_.h [__DECC]: Likewise.
29724 * lib/wchar_.h [__DECC]: Likewise.
29725 * lib/wctype_.h [__DECC]: Likewise.
29726 * lib/inttypes_.h [__DECC]: Likewise.
29727 Reported by Albert Chin <china@thewrittenword.com> in
29728 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
29730 2007-04-04 Eric Blake <ebb9@byu.net>
29732 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
29735 2007-04-04 Bruno Haible <bruno@clisp.org>
29737 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
29738 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
29740 2007-04-04 Bruno Haible <bruno@clisp.org>
29742 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
29743 results for "%010a" of Infinity and NaN.
29744 * tests/test-vasprintf-posix.c (test_function): Likewise.
29745 * tests/test-snprintf-posix.h (test_function): Likewise.
29746 * tests/test-sprintf-posix.h (test_function): Likewise.
29747 * tests/test-fprintf-posix.h (test_function): Remove these tests.
29748 * tests/test-printf-posix.h (test_function): Likewise.
29749 * tests/test-fprintf-posix.out: Update.
29750 Needed for FreeBSD 6.1.
29752 2007-04-04 Bruno Haible <bruno@clisp.org>
29754 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
29755 directly used by the gnulib modules nor by gnulib-tool.
29757 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
29759 * DEPENDENCIES: Give overall description of version dependency
29760 desirability. Use more-typical names for apps.
29761 Add shell, coreutils, diffutils, grep, tar, gzip.
29763 2007-04-04 Simon Josefsson <simon@josefsson.org>
29765 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
29767 2007-04-04 Karl Berry <karl@gnu.org>
29769 * MODULES.html.sh (func_module): missing '.
29771 2007-04-03 Bruno Haible <bruno@clisp.org>
29773 * modules/argmatch-tests (Makefile.am): New variable
29774 test_argmatch_LDADD.
29775 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
29776 * modules/array-list-tests (Makefile.am): New variable
29777 test_array_list_LDADD.
29778 * modules/array-oset-tests (Makefile.am): New variable
29779 test_array_oset_LDADD.
29780 * modules/avltree-list-tests (Makefile.am): New variable
29781 test_avltree_list_LDADD.
29782 * modules/avltree-oset-tests (Makefile.am): New variable
29783 test_avltree_oset_LDADD.
29784 * modules/avltreehash-list-tests (Makefile.am): New variable
29785 test_avltreehash_list_LDADD.
29786 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
29787 test_canonicalize_lgpl_LDADD.
29788 * modules/carray-list-tests (Makefile.am): New variable
29789 test_carray_list_LDADD.
29790 * modules/dirname-tests (Makefile.am): New variable
29791 test_dirname_LDADD.
29792 * modules/linked-list-tests (Makefile.am): New variable
29793 test_linked_list_LDADD.
29794 * modules/linkedhash-list-tests (Makefile.am): New variable
29795 test_linkedhash_list_LDADD.
29796 * modules/rbtree-list-tests (Makefile.am): New variable
29797 test_rbtree_list_LDADD.
29798 * modules/rbtree-oset-tests (Makefile.am): New variable
29799 test_rbtree_oset_LDADD.
29800 * modules/rbtreehash-list-tests (Makefile.am): New variable
29801 test_rbtreehash_list_LDADD.
29802 * modules/xvasprintf-tests (Makefile.am): New variable
29803 test_xvasprintf_LDADD.
29804 Reported by Eric Blake.
29806 2007-04-03 Eric Blake <ebb9@byu.net>
29808 * DEPENDENCIES: Weaken m4 requirements.
29810 2007-04-03 Bruno Haible <bruno@clisp.org>
29812 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
29813 * modules/isnanl-tests (configure.ac): Likewise.
29815 2007-04-03 Ben Pfaff <blp@gnu.org>
29817 * modules/iconv_open: Add $(srcdir)/ to source directory
29818 references in Makefile fragments that call gperf, to fix VPATH
29821 2007-04-03 Bruno Haible <bruno@clisp.org>
29823 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
29824 * lib/ldexpl.c: Undo last change.
29826 2007-04-03 Bruno Haible <bruno@clisp.org>
29828 * modules/printf-frexpl (Depends-on): Undo last change.
29829 (Files): Add m4/ldexpl.m4.
29831 2007-04-03 Bruno Haible <bruno@clisp.org>
29833 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
29834 * modules/isnanl (Link): New section.
29836 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
29837 * modules/frexp (Link): New section.
29839 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
29840 * modules/frexpl (Link): New section.
29842 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
29843 * modules/ldexpl (Link): New section.
29845 2007-04-03 Bruno Haible <bruno@clisp.org>
29847 * modules/TEMPLATE-EXTENDED: New file.
29848 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
29850 2007-04-03 Bruno Haible <bruno@clisp.org>
29852 * DEPENDENCIES: New file.
29853 Suggested by Simon Josefsson.
29855 2007-04-03 Bruno Haible <bruno@clisp.org>
29857 * doc/gnulib.texi: Escape @.
29859 2007-04-03 James Youngman <jay@gnu.org>
29860 and Paul Eggert <eggert@cs.ucla.edu>
29862 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
29863 birthtime on all systems that have birthtime, not just those which
29864 use st_birthtimensec rather than st_birthtim. Putting zero in
29865 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
29866 that the birth time is not available for files on an NFS mount.
29868 2007-04-03 Simon Josefsson <simon@josefsson.org>
29870 * modules/memxor: Move back from crypto/, suggested by Bruno.
29871 * modules/crypto/hmac-sha1: Fix memxor dependency.
29873 * modules/crypto/gc: Moved from ../.
29875 2007-04-02 Eric Blake <ebb9@byu.net>
29877 * lib/ldexpl.c (includes): Avoid libm.
29879 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
29881 2007-04-02 Bruno Haible <bruno@clisp.org>
29883 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
29886 2007-04-02 Bruno Haible <bruno@clisp.org>
29888 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
29889 x86 or x86_64 platforms running MacOS X.
29890 Reported by Ryan Schmidt <@ryandesign.com>.
29892 2007-04-02 Bruno Haible <bruno@clisp.org>
29894 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
29897 2007-04-01 Simon Josefsson <simon@josefsson.org>
29899 * modules/crypto/arcfour: Moved from ../.
29900 * modules/crypto/arcfour-tests: Moved from ../.
29901 * modules/crypto/arctwo: Moved from ../.
29902 * modules/crypto/arctwo-tests: Moved from ../.
29903 * modules/crypto/des: Moved from ../.
29904 * modules/crypto/des-tests: Moved from ../.
29905 * modules/crypto/gc-arcfour: Moved from ../.
29906 * modules/crypto/gc-arcfour-tests: Moved from ../.
29907 * modules/crypto/gc-arctwo: Moved from ../.
29908 * modules/crypto/gc-arctwo-tests: Moved from ../.
29909 * modules/crypto/gc-des: Moved from ../.
29910 * modules/crypto/gc-des-tests: Moved from ../.
29911 * modules/crypto/gc-hmac-md5: Moved from ../.
29912 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
29913 * modules/crypto/gc-hmac-sha1: Moved from ../.
29914 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
29915 * modules/crypto/gc-md2: Moved from ../.
29916 * modules/crypto/gc-md2-tests: Moved from ../.
29917 * modules/crypto/gc-md4: Moved from ../.
29918 * modules/crypto/gc-md4-tests: Moved from ../.
29919 * modules/crypto/gc-md5: Moved from ../.
29920 * modules/crypto/gc-md5-tests: Moved from ../.
29921 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
29922 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
29923 * modules/crypto/gc-random: Moved from ../.
29924 * modules/crypto/gc-rijndael: Moved from ../.
29925 * modules/crypto/gc-rijndael-tests: Moved from ../.
29926 * modules/crypto/gc-sha1: Moved from ../.
29927 * modules/crypto/gc-sha1-tests: Moved from ../.
29928 * modules/crypto/gc-tests: Moved from ../.
29929 * modules/crypto/hmac-md5: Moved from ../.
29930 * modules/crypto/hmac-md5-tests: Moved from ../.
29931 * modules/crypto/hmac-sha1: Moved from ../.
29932 * modules/crypto/hmac-sha1-tests: Moved from ../.
29933 * modules/crypto/md2: Moved from ../.
29934 * modules/crypto/md2-tests: Moved from ../.
29935 * modules/crypto/md4: Moved from ../.
29936 * modules/crypto/md4-tests: Moved from ../.
29937 * modules/crypto/md5: Moved from ../.
29938 * modules/crypto/md5-tests: Moved from ../.
29939 * modules/crypto/memxor: Moved from ../.
29940 * modules/crypto/rijndael: Moved from ../.
29941 * modules/crypto/rijndael-tests: Moved from ../.
29942 * modules/crypto/sha1: Moved from ../.
29944 2007-03-30 James Youngman <jay@gnu.org>
29946 * tests/test-stat-time.c (prepare_test): use chmod() rather than
29947 rename() to change the ctime of a file (because ctime is unaffected
29948 by rename on jfs2 on AIX 5.1).
29949 (main): Start by doing cleanup, in case a previous run failed leaving
29952 2007-03-31 Bruno Haible <bruno@clisp.org>
29954 Support old proprietary implementations of iconv.
29955 * modules/iconv_open: New file.
29956 * lib/iconv_.h: New file.
29957 * m4/iconv_h.m4: New file.
29958 * lib/iconv_open.c: New file.
29959 * lib/iconv_open-aix.gperf: New file.
29960 * lib/iconv_open-hpux.gperf: New file.
29961 * lib/iconv_open-irix.gperf: New file.
29962 * lib/iconv_open-osf.gperf: New file.
29963 * m4/iconv_open.m4: New file.
29964 * modules/linebreak (Depends-on): Add iconv_open.
29965 * modules/striconv (Depends-on): Likewise.
29966 * modules/striconveh (Depends-on): Likewise.
29967 * modules/unicodeio (Depends-on): Likewise.
29968 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
29970 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
29971 conversion if cd is (iconv_t)(-1).
29972 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
29975 2007-03-31 Bruno Haible <bruno@clisp.org>
29977 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
29978 work on Solaris either. Protect also second use of "autodetect_jp".
29980 2007-03-31 Bruno Haible <bruno@clisp.org>
29982 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
29983 the function is not present.
29985 2007-03-31 Bruno Haible <bruno@clisp.org>
29987 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
29988 the function is not present.
29990 2007-03-31 Bruno Haible <bruno@clisp.org>
29992 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
29993 a bug in HP-UX iconv_open().
29995 2007-03-31 Bruno Haible <bruno@clisp.org>
29997 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
29998 (Mathematics <math.h>): New section, add fpieee.
29999 (Input/output <stdio.h>): Add fseterr.
30000 (Mathematics <math.h>): New section, add printf-frexp.
30001 (Container data structures): Add sublist.
30002 (Core language properties): Add fpucw, inline.
30003 (Functions for greatest-width integer types <inttypes.h>): Add
30004 imaxabs, imaxdiv, inttypes.
30005 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
30006 isnanl-nolibm, ldexp.
30007 (Mathematics <math.h>): New section, add printf-frexpl.
30008 (Support for systems lacking POSIX:2001): Add fprintf-posix,
30009 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
30010 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
30011 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
30012 (Unicode string functions): Add unistr/u*-mbtoucr.
30013 (Java): Add javacomp-script, javaexec-script.
30014 (C#): Add csharpcomp-script, csharpexec-script.
30015 (Support for building libraries and executables): Add havelib,
30017 (Support for maintaining and releasing projects): Renamed from
30018 'Support for maintaining and release projects'. Add announce-gen.
30020 2007-03-31 Bruno Haible <bruno@clisp.org>
30022 * README: Talk primarily about git.
30023 (git and CVS): Renamed from CVS.
30024 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
30025 gnulib is available through git.
30026 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
30028 2007-03-30 Bruno Haible <bruno@clisp.org>
30030 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
30031 * lib/poll_.h: Likewise.
30032 * lib/stat_.h: Likewise.
30033 * lib/sys_time_.h: Likewise.
30034 * lib/sysexit_.h: Likewise.
30035 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
30036 * lib/stdbool_.h: Likewise.
30037 * lib/byteswap_.h: Add double-inclusion guard.
30039 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
30041 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
30043 2007-03-30 Karl Berry <karl@gnu.org>
30045 * config/srclist-update: double space after USA in the license
30046 substitution, since that's how it's usually (?) written.
30048 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
30050 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
30051 reported by Bruno Haible.
30053 2007-03-29 Bruno Haible <bruno@clisp.org>
30055 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
30056 a bug in AIX iconv().
30058 2007-03-29 Bruno Haible <bruno@clisp.org>
30060 * modules/ldexpl-tests: New file.
30061 * tests/test-ldexpl.c: New file.
30063 2007-03-29 Bruno Haible <bruno@clisp.org>
30065 * lib/ldexpl.c: Include fpucw.h.
30066 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
30068 * modules/ldexpl (Depends-on): Add fpucw.
30070 2007-03-29 Bruno Haible <bruno@clisp.org>
30072 * modules/ldexpl: New file.
30073 * m4/ldexpl.m4: New file.
30074 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
30076 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
30078 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
30080 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
30081 gl_FUNC_LDEXPL_WORKS.
30082 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
30083 * modules/mathl (Files): Remove lib/ldexpl.c.
30084 (Depends-on): Add ldexpl.
30086 2007-03-29 Bruno Haible <bruno@clisp.org>
30088 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
30090 2007-03-29 Bruno Haible <bruno@clisp.org>
30092 * tests/test-striconveh.c (main): Don't assume that a direct conversion
30093 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
30094 and possibly also HP-UX.
30095 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
30096 work on AIX, IRIX, HP-UX, OSF/1.
30097 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
30098 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
30099 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
30100 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
30101 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
30102 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
30104 2007-03-29 Bruno Haible <bruno@clisp.org>
30106 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
30108 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
30110 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
30111 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
30113 2007-03-29 Eric Blake <ebb9@byu.net>
30115 * lib/acl-internal.h: Remove redundant include.
30116 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
30117 Cygwin when a file is locked.
30119 2007-03-29 Bruno Haible <bruno@clisp.org>
30121 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
30123 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
30125 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
30127 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
30128 try to remove a parent directory if the child couldn't be removed
30129 (except for the first rmdir, which could fail because the child
30130 doesn't exist). Problem reported by Jeff Blaine in
30131 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
30133 2007-03-28 Bruno Haible <bruno@clisp.org>
30135 * lib/striconveh.c (utf8conv_carefully): New function.
30136 (mem_cd_iconveh_internal): Invoke it.
30138 2007-03-28 Bruno Haible <bruno@clisp.org>
30140 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
30141 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
30143 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
30144 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
30147 2007-03-28 Bruno Haible <bruno@clisp.org>
30149 * modules/unistr/u8-mbtoucr: New file.
30150 * lib/unistr/u8-mbtoucr.c: New file.
30151 * modules/unistr/u16-mbtoucr: New file.
30152 * lib/unistr/u16-mbtoucr.c: New file.
30153 * modules/unistr/u16-mbtoucr: New file.
30154 * lib/unistr/u16-mbtoucr.c: New file.
30155 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
30157 2007-03-27 Simon Josefsson <simon@josefsson.org>
30158 Bruno Haible <bruno@clisp.org>
30160 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
30161 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
30162 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
30164 * m4/stdio_h.m4: Add stubs for vasprintf too.
30166 * modules/stdio: Support vasprintf in sed command.
30168 * modules/vasprintf: Depend on stdio for prototypes. Remove
30169 vasprintf.h. Add stdio module indicator.
30171 * lib/stdio_.h: Declare asprintf and vasprintf, based on
30174 * lib/vasprintf.h: File removed.
30176 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
30177 * lib/vasprintf.c: Ditto.
30178 * lib/xvasprintf.c: Ditto.
30179 * tests/test-vasprintf-posix.c: Ditto.
30180 * tests/test-vasprintf.c: Ditto.
30182 2007-03-27 Bruno Haible <bruno@clisp.org>
30184 Make vasnprintf multithread-safe.
30185 * lib/vasnprintf.c (decimal_point_char): New function.
30186 (VASNPRINTF): Use it.
30187 Suggested by Simon Josefsson.
30189 2007-03-27 Eric Blake <ebb9@byu.net>
30191 Support sub-second birthtime on cygwin.
30192 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
30193 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
30194 (get_stat_birthtime): Also work with st_birthtim.
30196 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
30198 * lib/stat-time.h (USE_BIRTHTIME): Remove.
30199 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
30200 (get_stat_birthtime_ns): Do not try to use "spare" fields.
30201 (get_stat_birthtime_ns): Simplify compile-time tests.
30202 (get_stat_birthtime): Change the API to look like
30203 get_stat_mtime etc., except return a negative tv_nsec on error.
30204 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
30205 Don't check for "spare" fields.
30206 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
30207 or for struct stat.st_birthtime, as these tests aren't used.
30208 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
30210 2007-03-27 Bruno Haible <bruno@clisp.org>
30212 * lib/stat-time.h: Include <sys/stat.h>.
30214 2007-03-27 James Youngman <jay@gnu.org>
30216 * lib/stat-time.h (get_stat_birthtime): New function for
30217 retrieving st_birthtime as provided by UFS2 (hence *BSD).
30218 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
30220 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
30221 * modules/stat-time-test: New file.
30222 * tests/test-stat-time.c: New test, devised by Bruno Haible.
30224 2007-03-26 Bruno Haible <bruno@clisp.org>
30226 Better support of signalling NaNs.
30227 * lib/atanl.c: Include isnanl.h.
30228 (atanl): Perform test for NaN at the beginning of the function and
30229 through a call to isnanl.
30230 * lib/cosl.c: Include isnanl.h.
30231 (cosl): Perform test for NaN at the beginning of the function and
30232 through a call to isnanl.
30233 * lib/ldexpl.c: Include isnanl.h.
30234 (ldexpl): Perform test for NaN through a call to isnanl.
30235 * lib/logl.c: Include isnanl.h.
30236 (logl): Perform test for NaN at the beginning of the function and
30237 through a call to isnanl.
30238 * lib/sinl.c: Include isnanl.h.
30239 (sinl): Perform test for NaN at the beginning of the function and
30240 through a call to isnanl.
30241 * lib/sqrtl.c: Include isnanl.h.
30242 (sqrtl): Perform test for NaN at the beginning of the function and
30243 through a call to isnanl.
30244 * lib/tanl.c: Include isnanl.h.
30245 (tanl): Perform test for NaN at the beginning of the function and
30246 through a call to isnanl.
30247 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
30248 * modules/mathl (Depends-on): Add isnanl.
30250 2007-03-26 Eric Blake <ebb9@byu.net>
30252 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
30253 regression in logic sense of previous patch.
30255 2007-03-26 Bruno Haible <bruno@clisp.org>
30257 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
30258 unportable shell command "if ! ...".
30259 Reported by Ralf Wildenhues.
30261 2007-03-25 Bruno Haible <bruno@clisp.org>
30263 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
30264 <sysexits.h> file, and only add EX_CONFIG.
30265 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
30266 absolute file name and whether it is sufficient. Substitute also
30267 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
30268 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
30269 ABSOLUTE_SYSEXITS_H into sysexits.h.
30271 2007-03-25 Bruno Haible <bruno@clisp.org>
30273 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
30276 2007-03-25 Bruno Haible <bruno@clisp.org>
30278 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
30279 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
30281 2007-03-25 Bruno Haible <bruno@clisp.org>
30283 * lib/vasnprintf.c: Include langinfo.h.
30284 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
30286 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
30287 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
30288 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
30289 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
30290 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
30291 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
30292 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
30293 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
30294 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
30295 Reported by Simon Josefsson.
30297 2007-03-25 Bruno Haible <bruno@clisp.org>
30299 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
30300 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
30301 * modules/vasnprintf (Depends-on): Add stdint.
30303 2007-03-25 Bruno Haible <bruno@clisp.org>
30305 * modules/fpieee: New file.
30306 * m4/fpieee.m4: New file.
30307 * modules/isnan-nolibm (Depends-on): Add fpieee.
30308 * modules/isnanl-nolibm (Depends-on): Add fpieee.
30309 * modules/isnanl (Depends-on): Add fpieee.
30311 2007-03-25 Bruno Haible <bruno@clisp.org>
30313 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
30315 2007-03-25 Bruno Haible <bruno@clisp.org>
30317 Avoid test failures on IRIX 6.5.
30318 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
30320 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
30324 2007-03-25 Bruno Haible <bruno@clisp.org>
30326 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
30327 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
30328 exists but doesn't work.
30329 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
30330 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
30331 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
30332 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
30334 2007-03-25 Bruno Haible <bruno@clisp.org>
30336 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
30337 returns inf. Needed on IRIX 6.5.
30339 2007-03-25 Bruno Haible <bruno@clisp.org>
30341 * tests/test-frexpl.c: Include isnanl-nolibm.h.
30342 (main): Use isnanl instead of x != x idiom.
30343 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
30345 * tests/test-frexp.c: Include isnan.h.
30346 (main): Use isnan instead of x != x idiom.
30347 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
30349 2007-03-25 Bruno Haible <bruno@clisp.org>
30351 * tests/test-frexp.c (NaN): New function/macro.
30352 (main): Use it instead of 0.0 / 0.0.
30353 * tests/test-isnan.c (NaN): New function/macro.
30354 (main): Use it instead of 0.0 / 0.0.
30355 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
30356 (test_function): Use it instead of 0.0 / 0.0.
30357 * tests/test-vasprintf-posix.c (NaN): New function/macro.
30358 (test_function): Use it instead of 0.0 / 0.0.
30359 * tests/test-snprintf-posix.h (NaN): New function/macro.
30360 (test_function): Use it instead of 0.0 / 0.0.
30361 * tests/test-sprintf-posix.h (NaN): New function/macro.
30362 (test_function): Use it instead of 0.0 / 0.0.
30363 * tests/test-fprintf-posix.h (NaN): New function/macro.
30364 (test_function): Use it instead of 0.0 / 0.0.
30365 * tests/test-printf-posix.h (NaN): New function/macro.
30366 (test_function): Use it instead of 0.0 / 0.0.
30368 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
30370 2007-03-25 Bruno Haible <bruno@clisp.org>
30372 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
30374 2007-03-25 Bruno Haible <bruno@clisp.org>
30376 * lib/regexec.c (merge_state_with_log): Make static.
30378 2007-03-25 Bruno Haible <bruno@clisp.org>
30380 * lib/trigl.c (kernel_rem_pio2): Make static.
30382 2007-03-25 Bruno Haible <bruno@clisp.org>
30384 * lib/sincosl.c (sincosl_table): Make static.
30386 2007-03-25 Bruno Haible <bruno@clisp.org>
30388 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
30389 if the compiler does not support C99.
30391 2007-03-25 Bruno Haible <bruno@clisp.org>
30393 * modules/time (Makefile.am): Ensure all rule action lines start with a
30396 2007-03-24 Bruno Haible <bruno@clisp.org>
30398 * modules/tsearch-tests: New file.
30399 * tests/test-tsearch.sh: New file.
30400 * tests/test-tsearch.c: New file, mostly copied from glibc.
30402 * modules/search-tests: New file.
30403 * tests/test-search.c: New file.
30405 * modules/search: New file.
30406 * lib/search_.h: New file, incorporating lib/tsearch.h.
30407 * m4/search_h.m4: New file.
30408 * lib/tsearch.h: Remove file.
30409 * lib/tsearch.c: Include search.h instead of tsearch.h.
30410 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
30412 * modules/tsearch (Files): Remove lib/tsearch.h.
30413 (Depends-on): Add search.
30414 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
30415 (Include): Change tsearch.h into search.h.
30417 2007-03-24 Bruno Haible <bruno@clisp.org>
30419 * modules/fpucw: New file.
30420 * lib/fpucw.h: New file.
30421 * lib/frexp.c: Include fpucw.h.
30422 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
30424 * lib/printf-frexp.c: Include fpucw.h.
30425 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
30427 * lib/vasnprintf.c: Include fpucw.h.
30428 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
30429 'long double' calculations.
30430 * tests/test-frexpl.c: Include fpucw.h.
30431 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
30432 * tests/test-printf-frexpl.c: Include fpucw.h.
30433 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
30434 * modules/frexpl (Depends-on): Add fpucw.
30435 * modules/printf-frexpl (Depends-on): Likewise.
30436 * modules/fprintf-posix (Depends-on): Likewise.
30437 * modules/snprintf-posix (Depends-on): Likewise.
30438 * modules/sprintf-posix (Depends-on): Likewise.
30439 * modules/vasnprintf-posix (Depends-on): Likewise.
30440 * modules/vasprintf-posix (Depends-on): Likewise.
30441 * modules/vfprintf-posix (Depends-on): Likewise.
30442 * modules/vsnprintf-posix (Depends-on): Likewise.
30443 * modules/vsprintf-posix (Depends-on): Likewise.
30444 * modules/frexpl-tests (Depends-on): Likewise.
30445 * modules/printf-frexpl-tests (Depends-on): Likewise.
30447 2007-03-24 Bruno Haible <bruno@clisp.org>
30449 * lib/float+.h: New file.
30450 * lib/isnan.c: Include float+.h.
30452 (FUNC): Compare only SIZE bytes of the value.
30453 * lib/vasnprintf.c: Include float+.h.
30454 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
30455 SIZEOF_LDBL or SIZEOF_DBL bytes.
30456 * modules/isnan-nolibm (Files): Add lib/float+.h.
30457 * modules/isnanl-nolibm (Files): Add lib/float+.h.
30458 * modules/isnanl (Files): Add lib/float+.h.
30459 * modules/vasnprintf (Files): Add lib/float+.h.
30461 2007-03-24 Bruno Haible <bruno@clisp.org>
30463 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
30464 include isnanl-nolibm.h.
30466 2007-03-24 Bruno Haible <bruno@clisp.org>
30468 * tests/test-read-file.c (main): Don't produce spurious output for
30469 expected situations. Make the test fail if it encountered unexpected
30472 2007-03-24 Bruno Haible <bruno@clisp.org>
30474 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
30475 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
30477 2007-03-24 Bruno Haible <bruno@clisp.org>
30479 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
30481 2007-03-24 Bruno Haible <bruno@clisp.org>
30483 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
30484 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
30486 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
30487 * modules/utf8-ucs4: Turn into a symbolic link to module
30490 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
30492 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
30493 unistr/u8-mbtouc-unsafe.
30495 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
30496 * modules/utf16-ucs4: Turn into a symbolic link to module
30499 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
30501 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
30502 unistr/u16-mbtouc-unsafe.
30504 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
30505 * modules/ucs4-utf8: Turn into a symbolic link to module
30508 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
30509 * modules/ucs4-utf16: Turn into a symbolic link to module
30512 2007-03-24 Bruno Haible <bruno@clisp.org>
30514 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
30515 Enable the function only if HAVE_INLINE.
30516 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
30517 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
30518 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
30519 Enable the function only if HAVE_INLINE.
30520 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
30521 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
30522 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
30523 Enable the function only if HAVE_INLINE.
30524 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
30525 Enable the function only if HAVE_INLINE.
30526 * modules/utf8-ucs4: Update.
30527 * modules/utf8-ucs4-unsafe: Update.
30528 * modules/utf16-ucs4: Update.
30529 * modules/utf16-ucs4-unsafe: Update.
30530 * modules/ucs4-utf8: Update.
30531 * modules/ucs4-utf16: Update.
30533 2007-03-24 Bruno Haible <bruno@clisp.org>
30535 * lib/utf8-ucs4.h: Remove file.
30536 * lib/utf8-ucs4-unsafe.h: Remove file.
30537 * lib/utf16-ucs4.h: Remove file.
30538 * lib/utf16-ucs4-unsafe.h: Remove file.
30539 * lib/ucs4-utf8.h: Remove file.
30540 * lib/ucs4-utf16.h: Remove file.
30541 * lib/unistr.h: Include their previous contents.
30542 * m4/utf-ucs4.m4: Remove file.
30543 * m4/ucs4-utf.m4: Remove file.
30544 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
30545 (Depends-on): Add unistr/base.
30546 (configure.ac): Remove gl_UTF_UCS4.
30547 (Makefile.am): Update.
30548 (Include): Change to unistr.h.
30549 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
30550 (Depends-on): Add unistr/base.
30551 (configure.ac): Remove gl_UTF_UCS4.
30552 (Makefile.am): Update.
30553 (Include): Change to unistr.h.
30554 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
30555 (Depends-on): Add unistr/base.
30556 (configure.ac): Remove gl_UTF_UCS4.
30557 (Makefile.am): Update.
30558 (Include): Change to unistr.h.
30559 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
30560 (Depends-on): Add unistr/base.
30561 (configure.ac): Remove gl_UTF_UCS4.
30562 (Makefile.am): Update.
30563 (Include): Change to unistr.h.
30564 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
30565 (Depends-on): Add unistr/base.
30566 (configure.ac): Remove gl_UCS4_UTF.
30567 (Makefile.am): Update.
30568 (Include): Change to unistr.h.
30569 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
30570 (Depends-on): Add unistr/base.
30571 (configure.ac): Remove gl_UCS4_UTF.
30572 (Makefile.am): Update.
30573 (Include): Change to unistr.h.
30574 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
30575 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
30576 utf8-ucs4-unsafe.h.
30577 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
30578 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
30579 utf16-ucs4-unsafe.h.
30580 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
30581 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
30582 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
30583 * lib/unistr/u8-strchr.c: Likewise.
30584 * lib/unistr/u8-strrchr.c: Likewise.
30585 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
30586 * lib/unistr/u16-strchr.c: Likewise.
30587 * lib/unistr/u16-strrchr.c: Likewise.
30588 * lib/striconveh.c: Update.
30589 * lib/linebreak.c: Update.
30591 2007-03-24 Bruno Haible <bruno@clisp.org>
30593 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
30594 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
30596 2007-03-22 Bruno Haible <bruno@clisp.org>
30598 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
30600 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
30602 * MODULES.html.sh (File system functions): New module write-any-file.
30603 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
30604 * m4/write-any-file.m4: New files.
30606 2007-03-23 Eric Blake <ebb9@byu.net>
30608 * gnulib-tool: Rearrange space-tab sequences, since some editors
30611 2007-03-23 Eric Blake <ebb9@byu.net>
30613 * lib/version-etc.c (version_etc_va): Update license wording to
30614 be more concise. Recommended by Richard Stallman.
30616 2007-03-22 Bruno Haible <bruno@clisp.org>
30618 * lib/poll.c (MSG_PEEK): New fallback definition.
30620 2007-03-22 Bruno Haible <bruno@clisp.org>
30622 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
30623 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
30625 Fixes a compilation error on BeOS.
30627 2007-03-22 Bruno Haible <bruno@clisp.org>
30629 * modules/frexpl-tests: New file.
30630 * tests/test-frexpl.c: New file.
30632 * modules/frexpl: New file.
30633 * m4/frexpl.m4: New file.
30634 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
30635 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
30636 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
30637 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
30638 (Depends-on): Add frexpl. Remove isnanl-nolibm.
30639 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
30641 2007-03-22 Bruno Haible <bruno@clisp.org>
30643 * lib/frexpl.c: Share code with lib/frexp.c.
30644 * modules/mathl (Files): Add lib/frexp.c.
30645 (Depends-on): Add isnanl-nolibm.
30647 2007-03-22 Bruno Haible <bruno@clisp.org>
30649 * modules/printf-frexp (Files): Add m4/frexp.m4.
30650 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
30651 only if the found frexp function actually works.
30653 2007-03-22 Bruno Haible <bruno@clisp.org>
30655 * lib/frexp.c: Remove older implementation that uses divisions.
30657 2007-03-21 Bruno Haible <bruno@clisp.org>
30659 * modules/frexp-tests: New file.
30660 * tests/test-frexp.c: New file.
30662 * modules/frexp: New file.
30663 * lib/frexp.c: New file.
30664 * m4/frexp.m4: New file.
30665 * lib/math_.h (frexp): New declaration.
30666 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
30668 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
30670 2007-03-21 Bruno Haible <bruno@clisp.org>
30672 * modules/isnanl-tests: New file.
30673 * tests/test-isnanl.c: New file.
30675 * modules/isnanl: New file.
30676 * lib/isnanl.h: New file.
30677 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
30678 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
30679 gl_FUNC_ISNANL_WORKS.
30680 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
30683 2007-03-21 Bruno Haible <bruno@clisp.org>
30685 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
30688 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
30689 * lib/vasnprintf.c: Update.
30690 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
30691 tests/test-isnanl.h, remove tests/test-isnanl.c.
30692 (Makefile.am): Update.
30693 * tests/test-isnanl-nolibm.c: New file.
30694 * tests/test-isnanl.h: New file.
30695 * tests/test-isnanl.c: Remove file.
30697 2007-03-21 Jim Meyering <jim@meyering.net>
30699 When trying to open ".", treat ESTALE like EACCES.
30700 * lib/savewd.c (savewd_save): Resort to forking not just upon
30701 failure with EACCES, but also when errno is ESTALE.
30703 2007-03-20 Bruno Haible <bruno@clisp.org>
30705 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
30706 Needed on AIX 5.1. Reported by Matthew Woehlke.
30708 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
30710 Suggestions by Bruno Haible:
30711 * lib/acl-internal.h: Include "gettext.h" rather than rolling
30713 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
30714 * modules/acl (Depends-on): Add gettext.
30716 2007-03-19 Bruno Haible <bruno@clisp.org>
30718 * modules/iconvme: Remove file.
30719 * lib/iconvme.h: Remove file.
30720 * lib/iconvme.c: Remove file.
30721 * m4/iconvme.m4: Remove file.
30723 2007-03-19 Bruno Haible <bruno@clisp.org>
30725 * doc/relocatable-maint.texi: Break long shell script line.
30726 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30728 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
30730 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
30731 handle file_has_acl.
30732 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
30733 * lib/acl.c: Move header inclusions and related macro defns into
30734 lib/acl-internal.h.
30735 (S_ISLNK): Remove defn, since that's now done for us.
30736 (file_has_acl): Move to lib/file-has-acl.c.
30737 Call acl_trivial if available. This is the crucial part of the fix.
30738 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
30739 shared within the library. Rewrite a bit, partly to make it compatible
30740 with the GNU coding style.
30741 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
30742 Remove unnecessary double-quotes.
30743 Don't test for acl_to_text; the build will catch that.
30744 Replace acl_entries if it doesn't exist and it is needed.
30745 Check for -lsec and acl_trivial (as used on Solaris 10).
30746 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
30747 lib/file-has-acl.c.
30748 (Depends-on): Add sys_stat, for S_ISLNK.
30750 2007-03-19 Ben Pfaff <blp@gnu.org>
30752 * doc/gnulib.texi: Fix typos.
30753 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
30755 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
30757 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
30758 If size is zero here, buf must be zero.
30760 2007-03-19 Simon Josefsson <simon@josefsson.org>
30762 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
30765 2007-03-18 Bruno Haible <bruno@clisp.org>
30767 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
30768 Suggested by Eric Blake.
30770 2007-03-18 Ben Pfaff <blp@gnu.org>
30772 * doc/relocatable.texi: Recommend using as prefix a directory
30773 that does not exist and will never be created. Based on
30774 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
30777 2007-03-17 Bruno Haible <bruno@clisp.org>
30779 * lib/fchownat.c: Include lchown.h.
30781 2007-03-17 Bruno Haible <bruno@clisp.org>
30783 Fix endless loop when the given allocated size was > INT_MAX.
30784 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
30785 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
30786 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
30787 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
30788 * lib/sprintf.c (sprintf): Likewise.
30790 2007-03-17 Bruno Haible <bruno@clisp.org>
30792 * tests/test-argp-2.sh (func_compare): Output a context diff.
30794 2007-03-17 Bruno Haible <bruno@clisp.org>
30796 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
30797 locale's decimal-point character.
30799 2007-03-17 Bruno Haible <bruno@clisp.org>
30801 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
30802 before comparing it. Needed because on some platforms (e.g. x86) a
30803 'long double' occupies less bytes than sizeof (long double).
30805 2007-03-17 Bruno Haible <bruno@clisp.org>
30807 * tests/test-crc.c (main): Make printf statements 64-bit clean.
30808 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
30809 * tests/test-getaddrinfo.c (simple): Likewise.
30810 * tests/test-read-file.c (main): Likewise.
30812 2007-03-17 Bruno Haible <bruno@clisp.org>
30814 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
30816 2007-03-17 Bruno Haible <bruno@clisp.org>
30818 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
30821 2007-03-17 Bruno Haible <bruno@clisp.org>
30823 * tests/test-c-strcasecmp.c: Include c-strcase.h.
30824 * tests/test-c-strncasecmp.c: Likewise.
30826 2007-03-17 Bruno Haible <bruno@clisp.org>
30828 * modules/stdlib (Depends-on): Add unistd.
30829 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
30830 Needed for MacOS X 10.3.
30832 2007-03-17 Bruno Haible <bruno@clisp.org>
30834 * lib/unistr/u-strdup.h: Include <stdlib.h>.
30836 2007-03-17 Bruno Haible <bruno@clisp.org>
30838 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
30840 2007-03-17 Bruno Haible <bruno@clisp.org>
30842 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
30843 to reflect files copied from gnulib (with or without modifications).
30844 Suggested by Jim Meyering.
30846 2007-03-17 Eric Blake <ebb9@byu.net>
30848 * NEWS: Document stdlib change from 2007-02-18.
30850 2007-03-17 Jim Meyering <jim@meyering.net>
30852 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
30853 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
30854 someone uses a name containing shell meta-characters.
30855 Reported by Alfred M. Szmidt.
30857 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
30859 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
30861 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
30862 and copy gettext configuration files only if configure.ac contains
30863 a use of AM_GNU_GETTEXT_VERSION.
30865 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
30867 * build-aux/bootstrap (gnulib_name): New variable.
30868 (gnulib_tool_options): Use it.
30870 2007-03-13 Simon Josefsson <simon@josefsson.org>
30872 * tests/test-des.c: Use new namespace.
30874 2007-03-15 Bruno Haible <bruno@clisp.org>
30876 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
30877 Reported by James Youngman <jay@gnu.org>.
30879 2007-03-15 Bruno Haible <bruno@clisp.org>
30881 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
30882 declared prototype. Needed with cc on OSF/1 5.1.
30884 2007-03-15 Bruno Haible <bruno@clisp.org>
30886 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
30887 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
30888 (struct gl_list_implementation): Add dispose_fn argument to the
30889 'create_empty', 'create' methods.
30890 (struct gl_list_impl_base): Add field 'dispose_fn'.
30891 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
30893 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
30894 dispose_fn argument.
30895 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
30896 dispose_fn on the dropped values.
30897 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
30898 dispose_fn argument.
30899 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
30901 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
30902 (gl_tree_remove_node): Call dispose_fn on the dropped value.
30903 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
30904 (gl_tree_remove_node): Call dispose_fn on the dropped value.
30905 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
30907 (gl_tree_list_free): Call dispose_fn on the dropped values.
30908 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
30909 the dropped values.
30910 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30911 Add dispose_fn argument.
30912 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
30913 Call dispose_fn on the dropped values.
30914 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
30915 Add dispose_fn argument.
30916 (gl_sublist_create): Initialize the 'dispose_fn' field.
30917 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
30918 * tests/test-array_list.c (main): Update.
30919 * tests/test-carray_list.c (main): Update.
30920 * tests/test-avltree_list.c (main): Update.
30921 * tests/test-rbtree_list.c (main): Update.
30922 * tests/test-avltreehash_list.c (main): Update.
30923 * tests/test-rbtreehash_list.c (main): Update.
30924 * tests/test-linked_list.c (main): Update.
30925 * tests/test-linkedhash_list.c (main): Update.
30926 * tests/test-array_oset.c (main): Update.
30928 2007-03-15 Bruno Haible <bruno@clisp.org>
30930 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
30931 (gl_oset_create_empty): Add dispose_fn argument.
30932 (struct gl_oset_implementation): Add dispose_fn argument to
30933 'create_empty' method.
30934 (struct gl_oset_impl_base): Add dispose_fn field.
30935 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
30936 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
30937 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
30939 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
30940 (gl_tree_oset_free): Call dispose_fn on the dropped values.
30941 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30943 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
30945 * tests/test-array_oset.c (main): Update.
30946 * tests/test-avltree_oset.c (main): Update.
30947 * tests/test-rbtree_oset.c (main): Update.
30948 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
30950 2007-03-13 Bruno Haible <bruno@clisp.org>
30952 * tests/test-stdbool.c (i): Update after last patch.
30954 2007-03-12 Bruno Haible <bruno@clisp.org>
30956 * lib/quotearg.c: Include <wctype.h> early, before the definition of
30957 the iswprint macro. Needed on Solaris 2.5.1.
30959 2007-03-12 Bruno Haible <bruno@clisp.org>
30961 * tests/test-printf-frexp.c (main): Declare x as volatile.
30963 2007-03-12 Simon Josefsson <simon@josefsson.org>
30965 * doc/gnulib.texi (Build robot for gnulib): New section.
30967 2007-03-12 Jim Meyering <jim@meyering.net>
30969 * build-aux/bootstrap: New file.
30970 * build-aux/bootstrap.conf: New file, from coreutils.
30972 2007-03-11 Bruno Haible <bruno@clisp.org>
30974 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
30976 2007-03-12 Simon Josefsson <simon@josefsson.org>
30978 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
30979 avoid collisions with 'des_setkey'. Reported by Bruno Haible
30980 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
30982 2007-03-11 Bruno Haible <bruno@clisp.org>
30984 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
30985 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
30987 2007-03-11 Bruno Haible <bruno@clisp.org>
30989 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
30990 formula. Needed for SunPRO C 5.0.
30992 2007-03-11 Bruno Haible <bruno@clisp.org>
30994 * modules/long-options (Depends-on): Add getopt.
30996 2007-03-11 Bruno Haible <bruno@clisp.org>
30998 * modules/modechange (Depends-on): Add stdbool.
31000 2007-03-11 Bruno Haible <bruno@clisp.org>
31002 * modules/i-ring (Depends-on): Add stdbool.
31004 2007-03-11 Bruno Haible <bruno@clisp.org>
31006 * modules/gc-des (Depends-on): Add stdbool.
31008 2007-03-11 Bruno Haible <bruno@clisp.org>
31010 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
31012 2007-03-11 Bruno Haible <bruno@clisp.org>
31014 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
31016 2007-03-11 Bruno Haible <bruno@clisp.org>
31018 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
31020 2007-03-11 Bruno Haible <bruno@clisp.org>
31022 * lib/vasnprintf.c (sprintf): Undefine.
31024 2007-03-11 Bruno Haible <bruno@clisp.org>
31026 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
31027 initializers in SunPRO C and Compaq C compilers.
31029 2007-03-11 Bruno Haible <bruno@clisp.org>
31031 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
31032 decrementing code ANSI C compliant.
31034 2007-03-11 Bruno Haible <bruno@clisp.org>
31036 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
31037 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
31039 2007-03-11 Bruno Haible <bruno@clisp.org>
31041 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
31042 <stdbool.h> substitute doesn't pass.
31044 2007-03-11 Bruno Haible <bruno@clisp.org>
31046 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
31048 2007-03-11 Bruno Haible <bruno@clisp.org>
31050 * gnulib-tool (func_create_megatestdir): Create also an autobuild
31051 script, for submission to autobuild.josefsson.org.
31053 2007-03-10 Bruno Haible <bruno@clisp.org>
31055 * modules/canonicalize-lgpl-tests: New file.
31056 * tests/test-canonicalize-lgpl.sh: New file.
31057 * tests/test-canonicalize-lgpl.c: New file.
31059 * modules/c-strcase-tests: New file.
31060 * tests/test-c-strcase.sh: New file.
31061 * tests/test-c-strcasecmp.c: New file.
31062 * tests/test-c-strncasecmp.c: New file.
31064 * modules/atexit-tests: New file.
31065 * tests/test-atexit.sh: New file.
31066 * tests/test-atexit.c: New file.
31068 2007-03-10 Bruno Haible <bruno@clisp.org>
31070 * tests/test-binary-io.sh: Use temporary filenames that are not so
31071 likely to clash with those of other tests (in a parallel make).
31072 * tests/test-binary-io.c: Likewise.
31074 2007-03-10 Bruno Haible <bruno@clisp.org>
31076 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
31077 fallback; use #error instead.
31078 Suggested by Simon Josefsson.
31080 2007-03-10 Bruno Haible <bruno@clisp.org>
31082 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
31083 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
31084 first and the last.
31086 2007-03-10 Bruno Haible <bruno@clisp.org>
31088 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
31090 2007-03-10 Bruno Haible <bruno@clisp.org>
31092 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
31094 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
31095 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
31096 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
31098 2007-03-10 Bruno Haible <bruno@clisp.org>
31100 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
31102 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
31105 2007-03-09 Eric Blake <ebb9@byu.net>
31106 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
31108 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
31109 types are not being provided by gnulib.
31110 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
31111 types are supported.
31113 2007-03-10 Bruno Haible <bruno@clisp.org>
31115 * lib/stdio_.h (__attribute__): New macro.
31116 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
31117 vsprintf): Specify __attribute__ __format__ for GCC.
31118 Suggested by Eric Blake.
31120 2007-03-09 Bruno Haible <bruno@clisp.org>
31122 * modules/printf-posix-tests: New file.
31123 * tests/test-printf-posix.sh: New file.
31124 * tests/test-printf-posix.c: New file.
31126 * modules/printf-posix: New file.
31127 * lib/printf.c: New file.
31128 * m4/printf-posix-rpl.m4: New file.
31129 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
31131 * lib/stdio_.h (printf): New declaration.
31132 (format, __format__, ____printf____, ____scanf____, ____strftime____,
31133 ____strfmon____): New macros.
31134 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
31137 2007-03-09 Bruno Haible <bruno@clisp.org>
31139 * tests/test-vasnprintf-posix2.sh: New file.
31140 * tests/test-vasnprintf-posix2.c: New file.
31141 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
31142 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
31143 (Makefile.am): Activate test-vasnprintf-posix2.sh.
31145 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
31146 a locale dependent decimal point, rather than always '.'.
31148 2007-03-09 Eric Blake <ebb9@byu.net>
31150 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
31151 spite of platforms like Tandem/NSK that define it to -1.
31153 2007-03-08 Bruno Haible <bruno@clisp.org>
31155 * modules/vprintf-posix-tests: New file.
31156 * tests/test-vprintf-posix.sh: New file.
31157 * tests/test-vprintf-posix.c: New file.
31158 * tests/test-printf-posix.h: New file.
31160 * modules/vprintf-posix: New file.
31161 * lib/vprintf.c: New file.
31162 * m4/vprintf-posix.m4: New file.
31163 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
31165 * lib/stdio_.h (vprintf): New declaration.
31166 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
31169 2007-03-08 Bruno Haible <bruno@clisp.org>
31171 * modules/fprintf-posix-tests: New file.
31172 * tests/test-fprintf-posix.sh: New file.
31173 * tests/test-fprintf-posix.c: New file.
31175 * modules/fprintf-posix: New file.
31176 * lib/fprintf.c: New file.
31177 * m4/fprintf-posix.m4: New file.
31178 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
31180 * lib/stdio_.h (fprintf): New declaration.
31181 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
31184 2007-03-08 Bruno Haible <bruno@clisp.org>
31186 * modules/vfprintf-posix-tests: New file.
31187 * tests/test-vfprintf-posix.sh: New file.
31188 * tests/test-vfprintf-posix.c: New file.
31189 * tests/test-fprintf-posix.h: New file.
31190 * tests/test-fprintf-posix.out: New file.
31192 * modules/vfprintf-posix: New file.
31193 * lib/vfprintf.c: New file.
31194 * m4/vfprintf-posix.m4: New file.
31195 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
31197 * lib/stdio_.h (vfprintf): New declaration.
31198 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
31201 2007-03-08 Bruno Haible <bruno@clisp.org>
31203 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
31205 2007-03-08 Bruno Haible <bruno@clisp.org>
31207 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
31208 instead of 'expr' invocations.
31209 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31210 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31211 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31212 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31213 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31214 Suggested by Paul Eggert.
31216 2007-03-08 Bruno Haible <bruno@clisp.org>
31218 * modules/fseterr-tests: New file.
31219 * tests/test-fseterr.c: New file.
31221 * modules/fseterr: New file.
31222 * lib/fseterr.h: New file.
31223 * lib/fseterr.c: New file.
31225 2007-03-08 Bruno Haible <bruno@clisp.org>
31227 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
31228 * lib/getopt_.h: Likewise.
31229 * lib/mbswidth.h: Likewise.
31230 * lib/setenv.h: Likewise.
31231 * lib/vasnprintf.h: Likewise.
31232 * lib/vasprintf.h: Likewise.
31233 * lib/verror.h: Likewise.
31234 * lib/xsetenv.h: Likewise.
31235 * lib/xvasprintf.h: Likewise.
31237 2007-03-08 Jim Meyering <jim@meyering.net>
31239 * users.txt: Add parted.
31241 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
31243 2007-03-07 Bruno Haible <bruno@clisp.org>
31245 * m4/printf.m4: Make the shell script snippets copy&pastable.
31247 2007-03-02 Bruno Haible <bruno@clisp.org>
31249 * lib/netinet_in_.h: New file.
31250 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
31251 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
31252 * modules/netinet_in (Files): Add lib/netinet_in_.h.
31253 (Depends-on): Add absolute-header.
31254 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
31257 2007-03-03 Bruno Haible <bruno@clisp.org>
31259 * lib/sys_select_.h: New file.
31260 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
31261 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
31262 * modules/sys_select (Files): Add lib/sys_select_.h.
31263 (Depends-on): Add absolute-header.
31264 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
31267 2007-03-02 Bruno Haible <bruno@clisp.org>
31269 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
31270 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
31272 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
31273 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
31274 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
31275 * modules/sys_socket (Depends-on): Add absolute-header.
31276 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
31277 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
31278 (Include): Remove requirement of inclusion of <sys/types.h>.
31280 2007-03-02 Bruno Haible <bruno@clisp.org>
31282 * lib/byteswap_.h (bswap_32): Fix formula.
31284 2007-03-06 Bruno Haible <bruno@clisp.org>
31286 * modules/sprintf-posix-tests: New file.
31287 * tests/test-sprintf-posix.c: New file.
31289 * modules/sprintf-posix: New file.
31290 * lib/sprintf.c: New file.
31291 * m4/sprintf-posix.m4: New file.
31292 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
31294 * lib/stdio_.h (sprintf): New declaration.
31295 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
31298 2007-03-06 Bruno Haible <bruno@clisp.org>
31300 * modules/vsprintf-posix-tests: New file.
31301 * tests/test-vsprintf-posix.c: New file.
31302 * tests/test-sprintf-posix.h: New file.
31304 * modules/vsprintf-posix: New file.
31305 * lib/vsprintf.c: New file.
31306 * m4/vsprintf-posix.m4: New file.
31307 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
31309 * lib/stdio_.h (vsprintf): New declaration.
31310 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
31313 2007-03-06 Bruno Haible <bruno@clisp.org>
31315 * modules/vsnprintf (Depend-on): Remove minmax.
31317 2007-03-06 Bruno Haible <bruno@clisp.org>
31319 * modules/snprintf-posix-tests: New file.
31320 * tests/test-snprintf-posix.c: New file.
31322 * modules/snprintf-posix: New file.
31323 * m4/snprintf-posix.m4: New file.
31324 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
31326 (gl_FUNC_SNPRINTF): Invoke it.
31327 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
31328 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
31330 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
31332 2007-03-06 Bruno Haible <bruno@clisp.org>
31334 * modules/vsnprintf-posix-tests: New file.
31335 * tests/test-vsnprintf-posix.c: New file.
31336 * tests/test-snprintf-posix.h: New file.
31338 * modules/vsnprintf-posix: New file.
31339 * m4/vsnprintf-posix.m4: New file.
31340 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
31342 (gl_FUNC_VSNPRINTF): Invoke it.
31343 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
31344 * lib/stdio_.h (vsnprintf): Define as a replacement if
31345 REPLACE_VSNPRINTF is set.
31346 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
31348 2007-03-06 Bruno Haible <bruno@clisp.org>
31350 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
31351 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
31353 2007-03-06 Bruno Haible <bruno@clisp.org>
31355 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
31356 (asinl): Declare also if HAVE_DECL_ASINL is set.
31357 (atanl): Declare also if HAVE_DECL_ATANL is set.
31358 (ceill): Declare also if HAVE_DECL_CEILL is set.
31359 (cosl): Declare also if HAVE_DECL_COSL is set.
31360 (expl): Declare also if HAVE_DECL_EXPL is set.
31361 (floorl): Declare also if HAVE_DECL_FLOORL is set.
31362 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
31363 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
31364 (logl): Declare also if HAVE_DECL_LOGL is set.
31365 (sinl): Declare also if HAVE_DECL_SINL is set.
31366 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
31367 (tanl): Declare also if HAVE_DECL_TANL is set.
31368 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
31369 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
31370 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
31371 declaration of frexpl, ldexpl.
31372 * modules/printf-frexpl (Depends-on): Add math.
31373 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
31375 2007-03-05 Bruno Haible <bruno@clisp.org>
31377 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
31378 frexpl and ldexpl are declared.
31379 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
31381 2007-03-05 Bruno Haible <bruno@clisp.org>
31383 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
31384 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
31386 2007-03-05 Bruno Haible <bruno@clisp.org>
31388 * lib/stdio_.h: Include <stddef.h>.
31390 2007-03-05 Bruno Haible <bruno@clisp.org>
31392 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
31394 2007-03-05 Bruno Haible <bruno@clisp.org>
31396 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
31397 NetBSD 4, from Ralf Wildenhues.
31399 2007-03-04 Bruno Haible <bruno@clisp.org>
31401 * lib/vasprintf.h: Update #if logic for the case when the functions
31402 exist but are overridden.
31404 2007-03-04 Bruno Haible <bruno@clisp.org>
31406 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
31407 implementations: glibc-2.4 and MacOS X 10.3.
31408 * tests/test-vasnprintf-posix.c (test_function): Test also the case
31409 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
31410 * tests/test-vasprintf-posix.c (test_function): Likewise.
31412 2007-03-04 Bruno Haible <bruno@clisp.org>
31414 * modules/vasprintf-posix-tests: New file.
31415 * tests/test-vasprintf-posix.c: New file.
31417 * modules/vasprintf-posix: New file.
31418 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
31420 * m4/vasprintf-posix.m4: New file.
31421 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
31423 (gl_FUNC_VASPRINTF): Invoke it.
31424 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
31426 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
31428 2007-03-04 Bruno Haible <bruno@clisp.org>
31430 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
31431 REPLACE_GETTIMEOFDAY.
31432 * modules/sys_time (Makefile.am): Likewise.
31433 * m4/sys_time_h.m4: Likewise.
31434 * m4/gettimeofday.m4: Likewise.
31436 2007-03-04 Bruno Haible <bruno@clisp.org>
31438 * modules/vasnprintf-posix-tests: New file.
31439 * tests/test-vasnprintf-posix.c: New file.
31441 * modules/vasnprintf-posix: New file.
31442 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
31444 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
31445 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
31446 REPLACE_VASNPRINTF is defined.
31447 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
31448 gl_FUNC_VASNPRINTF.
31449 (gl_FUNC_VASNPRINTF): Invoke it.
31450 * m4/vasnprintf-posix.m4: New file.
31451 * m4/printf.m4: New file.
31453 2007-03-04 Bruno Haible <bruno@clisp.org>
31455 Compile progreloc.c only if --enable-relocatable is specified.
31456 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
31457 if --enable-relocatable was specified.
31458 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
31461 2007-03-04 Jim Meyering <jim@meyering.net>
31463 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
31464 Use it consistently, rather than enumerating errno constants.
31466 2007-03-04 Bruno Haible <bruno@clisp.org>
31468 * modules/xvasprintf-tests: New file.
31469 * tests/test-xvasprintf.c: New file.
31471 * modules/vasprintf-tests: New file.
31472 * tests/test-vasprintf.c: New file.
31474 * modules/vasnprintf-tests: New file.
31475 * tests/test-vasnprintf.c: New file.
31477 * modules/vsnprintf-tests: New file.
31478 * tests/test-vsnprintf.c: New file.
31480 * modules/snprintf-tests: New file.
31481 * tests/test-snprintf.c: New file.
31483 2007-03-04 Bruno Haible <bruno@clisp.org>
31485 Compile relocatable.c only if --enable-relocatable is specified.
31486 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
31487 gl_RELOCATABLE_LIBRARY.
31488 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
31489 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
31490 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
31491 gl_RELOCATABLE_LIBRARY.
31492 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
31493 (Makefile.am): Remove lib_SOURCES.
31494 * modules/relocatable-lib-lgpl (configure.ac): Invoke
31495 gl_RELOCATABLE_LIBRARY.
31496 (Makefile.am): Remove lib_SOURCES.
31497 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
31499 * modules/relocatable-prog-wrapper (configure.ac): Invoke
31500 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
31502 2007-03-04 Bruno Haible <bruno@clisp.org>
31504 * modules/argmatch-tests: New file.
31505 * tests/test-argmatch.c: New file.
31507 * tests/test-allocsa.c (main): Halve the number of loop runs.
31509 * modules/alloca-opt-tests: New file.
31510 * tests/test-alloca-opt.c: New file.
31512 2007-03-04 Jim Meyering <jim@meyering.net>
31514 Work around difference between Linux ACLs and Solaris 10 ZFS.
31515 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
31518 2007-03-03 Bruno Haible <bruno@clisp.org>
31520 * modules/relocatable-prog (Depends-on): Add back progreloc's
31521 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
31523 2007-03-03 Bruno Haible <bruno@clisp.org>
31525 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
31526 * modules/relocatable-lib: New file.
31528 2007-03-03 Bruno Haible <bruno@clisp.org>
31530 * modules/relocatable-prog: Renamed from modules/relocatable.
31531 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
31533 2007-03-03 Bruno Haible <bruno@clisp.org>
31535 * modules/relocatable-script (Files): Add doc/relocatable.texi,
31536 m4/relocatable-lib.m4.
31537 (Depends-on): Remove 'relocatable'.
31538 (configure.ac): Add gl_RELOCATABLE_NOP.
31540 2007-03-03 Bruno Haible <bruno@clisp.org>
31542 * modules/relocatable-prog-wrapper: New file.
31543 * modules/relocatable (Depends-on): Add it. Remove all other
31544 dependencies except progname.
31545 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
31547 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
31548 (gl_FUNC_STRERROR): Nop.
31549 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
31551 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
31552 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
31554 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
31555 (gl_FUNC_READLINK): Update.
31557 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
31559 2007-03-03 Bruno Haible <bruno@clisp.org>
31561 * lib/xreadlink.c: Include <unistd.h> unconditionally.
31562 * modules/xreadlink (Depends-on): Add unistd.
31563 * modules/xreadlink-with-size (Depends-on): Likewise.
31565 2007-03-03 Bruno Haible <bruno@clisp.org>
31567 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
31568 extracted from gt_FUNC_SETENV.
31569 (gt_FUNC_SETENV): Remove macro.
31570 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
31571 remove gt_FUNC_SETENV.
31573 2007-03-03 Bruno Haible <bruno@clisp.org>
31575 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
31576 ENABLE_RELOCATABLE here.
31577 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
31579 2007-03-03 Bruno Haible <bruno@clisp.org>
31581 * modules/rbtreehash-list-tests (Depends-on): Add progname.
31582 * tests/test-rbtreehash_list.c: Include progname.h.
31583 (main): Call set_program_name.
31585 * modules/rbtree-oset-tests (Depends-on): Add progname.
31586 * tests/test-rbtree_oset.c: Include progname.h.
31587 (main): Call set_program_name.
31589 * modules/rbtree-list-tests (Depends-on): Add progname.
31590 * tests/test-rbtree_list.c: Include progname.h.
31591 (main): Call set_program_name.
31593 * modules/linked-list-tests (Depends-on): Add progname.
31594 * tests/test-linked_list.c: Include progname.h.
31595 (main): Call set_program_name.
31597 2007-03-03 Bruno Haible <bruno@clisp.org>
31599 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
31600 All uses of __restrict changed to _Restrict_.
31601 * lib/glob_.h (__restrict): Remove macro.
31603 2007-03-02 Bruno Haible <bruno@clisp.org>
31605 * modules/gettext (configure.ac): Require gettext infrastructure
31606 from version 0.16.1.
31608 2007-03-02 Bruno Haible <bruno@clisp.org>
31610 * modules/linkedhash-list-tests (Depends-on): Add progname.
31611 * tests/test-linkedhash_list.c: Include progname.h.
31612 (main): Call set_program_name.
31614 * modules/carray-list-tests (Depends-on): Add progname.
31615 * tests/test-carray_list.c: Include progname.h.
31616 (main): Call set_program_name.
31618 * modules/avltreehash-list-tests (Depends-on): Add progname.
31619 * tests/test-avltreehash_list.c: Include progname.h.
31620 (main): Call set_program_name.
31622 * modules/avltree-oset-tests (Depends-on): Add progname.
31623 * tests/test-avltree_oset.c: Include progname.h.
31624 (main): Call set_program_name.
31626 * modules/avltree-list-tests (Depends-on): Add progname.
31627 * tests/test-avltree_list.c: Include progname.h.
31628 (main): Call set_program_name.
31630 * modules/array-oset-tests (Depends-on): Add progname.
31631 * tests/test-array_oset.c: Include progname.h.
31632 (main): Call set_program_name.
31634 * modules/array-list-tests (Depends-on): Add progname.
31635 * tests/test-array_list.c: Include progname.h.
31636 (main): Call set_program_name.
31638 * modules/argp-tests (Depends-on): Add progname.
31639 * tests/test-argp.c: Include argp.h first. Include progname.h.
31640 (main): Call set_program_name.
31642 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
31644 * doc/gnulib-tool.texi (Initial import): Reword description of
31645 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
31646 limited effect even if defined after the first system include.
31648 2007-03-01 Bruno Haible <bruno@clisp.org>
31650 * build-aux/config.libpath: Update to libtool-1.5.22.
31651 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31653 2007-03-01 Bruno Haible <bruno@clisp.org>
31655 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
31657 Reported by Ralf Wildenhues.
31659 2007-03-01 Bruno Haible <bruno@clisp.org>
31661 * build-aux/install-reloc: Remove object files left over by some
31663 Reported by Ralf Wildenhues.
31665 2007-03-01 Bruno Haible <bruno@clisp.org>
31667 * build-aux/install-reloc: Break long lines.
31669 2007-03-01 Bruno Haible <bruno@clisp.org>
31671 * doc/relocatable.texi: Document that it may not work on OpenBSD.
31672 Reported by Ralf Wildenhues.
31674 2007-03-01 Bruno Haible <bruno@clisp.org>
31676 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
31677 include ordering constraints.
31679 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
31681 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
31682 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
31683 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
31684 as another example.
31685 * lib/time_.h: Fix misspelling.
31686 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
31687 Require gl_HEADER_TIME_H_DEFAULTS.
31688 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
31689 * m4/time_r.m4 (gl_TIME_R): Likewise.
31690 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
31692 2007-03-01 Bruno Haible <bruno@clisp.org>
31694 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
31695 * m4/utimens.m4 (gl_UTIMENS): Likewise.
31697 2007-03-01 Jim Meyering <jim@meyering.net>
31699 * modules/xreadlink (Maintainer): Add my name.
31700 * modules/xreadlink-with-size (Depends-on): Alphabetize.
31702 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
31703 Bruno Haible <bruno@clisp.org>
31705 * build-aux/install-reloc: Compile also c-ctype.c.
31706 * build-aux/relocatable.sh.in: New file.
31707 * doc/relocatable.texi: New file.
31708 * doc/relocatable-maint.texi: New file.
31709 * doc/gnulib.texi: Include relocatable-maint.texi.
31710 * lib/progreloc.c: Include unistd.h unconditionally.
31711 * lib/relocwrapper.c: Include unistd.h unconditionally.
31713 (add_dotbin): Use c_tolower.
31714 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
31715 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
31716 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
31717 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
31718 to m4/relocatable-lib.m4.
31719 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
31720 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
31721 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
31722 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
31723 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
31724 * modules/relocatable: New file.
31725 * modules/relocatable-lib: New file.
31726 * modules/relocatable-script: New file.
31728 2007-02-28 Bruno Haible <bruno@clisp.org>
31730 Import --enable-relocatable infrastructure.
31731 * build-aux/config.libpath: New file, from GNU gettext.
31732 * build-aux/install-reloc: New file, from GNU gettext.
31733 * build-aux/reloc-ldflags: New file, from GNU gettext.
31734 * lib/relocatable.h: New file, from GNU gettext.
31735 * lib/relocatable.c: New file, from GNU gettext.
31736 * lib/relocwrapper.c: New file, from GNU gettext.
31737 * m4/relocatable.m4: New file, from GNU gettext.
31739 2007-02-28 Bruno Haible <bruno@clisp.org>
31741 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
31743 * modules/xreadlink: New file, from GNU gettext with modifications.
31744 * lib/xreadlink.c: New file, from GNU gettext.
31745 * lib/xreadlink.h: Add comments.
31746 (xreadlink): New declaration.
31748 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
31749 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
31750 lib/xreadlink-with-size.c.
31751 (configure.ac): Remove gl_XREADLINK invocation.
31752 (Makefile.am): Augment lib_SOURCES.
31753 * m4/xreadlink.m4: Remove file.
31754 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
31755 (xreadlink_with_size): Renamed from xreadink.
31756 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
31757 * modules/canonicalize (Depends-on): Replace xreadlink with
31758 xreadlink-with-size.
31759 * lib/canonicalize.c (canonicalize_filename_mode): Update.
31761 2007-02-25 Jim Meyering <jim@meyering.net>
31763 * build-aux/announce-gen: When complaining about excess arguments,
31766 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
31768 * README: Document signed integer overflow situation more
31771 2007-02-25 Bruno Haible <bruno@clisp.org>
31773 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
31774 'a' or 'A' conversion.
31776 2007-02-25 Bruno Haible <bruno@clisp.org>
31778 * modules/filename: Renamed from modules/pathname.
31779 (Files): Replace lib/pathname.h with lib/filename.h. Replace
31780 lib/concatpath.c with lib/concat-filename.c.
31781 (Makefile.am): Update.
31782 (Include): Replace pathname.h with filename.h.
31783 * lib/filename.h: Renamed from lib/pathname.h.
31784 (concatenated_filename): Renamed from concatenated_pathname.
31785 * lib/concat-filename.c: Renamed from lib/concatpath.c.
31786 (concatenated_filename): Renamed from concatenated_pathname.
31787 * lib/findprog.c: Include filename.h instead of pathname.h.
31788 (find_in_path): Update.
31789 * lib/javacomp.c: Include filename.h instead of pathname.h.
31790 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
31791 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
31792 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
31793 is_oldgcj_14_13_usable, is_javac_usable): Update.
31794 * lib/javaexec.c: Include filename.h instead of pathname.h.
31795 (execute_java_class): Update.
31796 * modules/findprog: Update.
31797 * modules/javacomp: Update.
31798 * modules/javaexec: Update.
31799 * MODULES.html.sh (File system functions): Add 'filename', remove
31802 2007-02-25 Bruno Haible <bruno@clisp.org>
31804 * modules/printf-frexpl-tests: New file.
31805 * tests/test-printf-frexpl.c: New file.
31807 * modules/printf-frexpl: New file.
31808 * lib/printf-frexpl.h: New file.
31809 * lib/printf-frexpl.c: New file.
31810 * m4/printf-frexpl.m4: New file.
31812 2007-02-25 Bruno Haible <bruno@clisp.org>
31814 * modules/printf-frexp-tests: New file.
31815 * tests/test-printf-frexp.c: New file.
31817 * modules/printf-frexp: New file.
31818 * lib/printf-frexp.h: New file.
31819 * lib/printf-frexp.c: New file.
31820 * m4/printf-frexp.m4: New file.
31822 2007-02-25 Bruno Haible <bruno@clisp.org>
31824 Assume automake >= 1.10 for the tests.
31825 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
31826 * modules/arctwo-tests: Likewise.
31827 * modules/argp-tests: Likewise.
31828 * modules/avltree-list-tests: Likewise.
31829 * modules/avltree-oset-tests: Likewise.
31830 * modules/avltreehash-list-tests: Likewise.
31831 * modules/carray-list-tests: Likewise.
31832 * modules/crc-tests: Likewise.
31833 * modules/des-tests: Likewise.
31834 * modules/gc-arcfour-tests: Likewise.
31835 * modules/gc-arctwo-tests: Likewise.
31836 * modules/gc-des-tests: Likewise.
31837 * modules/gc-hmac-md5-tests: Likewise.
31838 * modules/gc-hmac-sha1-tests: Likewise.
31839 * modules/gc-md2-tests: Likewise.
31840 * modules/gc-md4-tests: Likewise.
31841 * modules/gc-md5-tests: Likewise.
31842 * modules/gc-pbkdf2-sha1-tests: Likewise.
31843 * modules/gc-rijndael-tests: Likewise.
31844 * modules/gc-sha1-tests: Likewise.
31845 * modules/gc-tests: Likewise.
31846 * modules/getaddrinfo-tests: Likewise.
31847 * modules/hmac-md5-tests: Likewise.
31848 * modules/hmac-sha1-tests: Likewise.
31849 * modules/linked-list-tests: Likewise.
31850 * modules/linkedhash-list-tests: Likewise.
31851 * modules/lock-tests: Likewise.
31852 * modules/md2-tests: Likewise.
31853 * modules/md4-tests: Likewise.
31854 * modules/md5-tests: Likewise.
31855 * modules/rbtree-list-tests: Likewise.
31856 * modules/rbtree-oset-tests: Likewise.
31857 * modules/rbtreehash-list-tests: Likewise.
31858 * modules/read-file-tests: Likewise.
31859 * modules/rijndael-tests: Likewise.
31860 * modules/stdint-tests: Likewise.
31861 * modules/tls-tests: Likewise.
31863 2007-02-24 Bruno Haible <bruno@clisp.org>
31865 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
31866 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
31867 function; instead check whether isnan with a double argument links.
31868 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
31869 function; instead check whether isnan with a 'long double' argument
31871 Reported by Eric Blake <ebb9@byu.net>.
31873 2007-02-24 Bruno Haible <bruno@clisp.org>
31875 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
31877 * lib/isnanl.c: Remove all code. Just include isnan.c.
31878 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
31880 2007-02-25 Jim Meyering <jim@meyering.net>
31882 Avoid conflicting types for 'unsetenv' on FreeBSD.
31883 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
31884 conflicting with FreeBSD's (5.0 and 6.1) function declaration
31887 2007-02-24 Bruno Haible <bruno@clisp.org>
31889 * modules/isnanl-nolibm-tests: New file.
31890 * tests/test-isnanl.c: New file.
31892 * modules/isnanl-nolibm: New file.
31893 * lib/isnanl.h: New file.
31894 * lib/isnanl.c: New file.
31895 * m4/isnanl.m4: New file.
31897 2007-02-24 Bruno Haible <bruno@clisp.org>
31899 * modules/isnan-nolibm-tests: New file.
31900 * tests/test-isnan.c: New file.
31902 * modules/isnan-nolibm: New file.
31903 * lib/isnan.h: New file.
31904 * lib/isnan.c: New file.
31905 * m4/isnan.m4: New file.
31907 2007-02-24 Bruno Haible <bruno@clisp.org>
31909 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
31910 assume that an exponent fits in 20 bits.
31912 2007-02-24 Jim Meyering <jim@meyering.net>
31914 * m4/regex.m4: Update the description of the configure-time option,
31915 --without-included-regex, to state accurately what the defaults are,
31916 and perhaps to give people an idea why using this option is risky.
31918 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
31920 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
31921 loops on small arguments. This attempts to avoid the problem
31922 Bruno Haible reported for AIX 4.3.2 in
31923 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
31925 2007-02-23 Bruno Haible <bruno@clisp.org>
31927 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
31928 Needed for help2man.
31930 2007-02-23 Karl Berry <karl@gnu.org>
31932 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
31933 exists, foo.h should be cvs-ignored, not committed.
31935 2007-02-23 Eric Blake <ebb9@byu.net>
31937 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
31938 * lib/stat-time.h (includes): Likewise.
31939 * lib/utimecmp.c (includes): Likewise.
31940 * lib/utimens.h (includes): Likewise.
31941 * lib/getdate.y (includes): Also include "timespec.h" for use
31942 internal to the module.
31943 * modules/utimens (Depends-on): Revert yesterday's patch.
31944 * modules/nanosleep (Depends-on): Add missing dependency.
31946 2007-02-22 Bruno Haible <bruno@clisp.org>
31948 * lib/glob.c: Don't include getlogin_r.h.
31950 2007-02-22 Jim Meyering <jim@meyering.net>
31952 * modules/utimens (Depends-on): Add timespec, required for
31953 utimens.h's inclusion of timespec.h.
31955 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
31957 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
31958 long unreadable paths in GNU/Linux. Problem reported by Andreas
31960 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
31961 I'll try to think of a better way to fix the Solaris problem.
31963 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
31964 like glibc; on Solaris 10, it fails with errno == EINVAL.
31965 POSIX says the behavior is unspecified if the first argument is NULL,
31966 so play it safe and never pass NULL to the system getcwd.
31968 2007-02-21 Jim Meyering <jim@meyering.net>
31970 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
31971 of gettimeofday. It would conflict with the one now always
31972 provided via sys_time_.h. Reported by Matthew Woehlke, as
31973 an IRIX 6.5 build failure.
31975 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
31977 Minor fixups to port to Solaris 10 with Sun C 5.8.
31978 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
31979 * modules/getcwd (Depends-on): Add dirfd.
31980 * lib/putenv.c (putenv): #undef it.
31981 (rpl_putenv): New decl.
31982 (malloc, free): Include <stdlib.h> rather than prototyping separately.
31984 2007-02-20 Bruno Haible <bruno@clisp.org>
31986 * modules/stdio-tests: New file.
31987 * tests/test-stdio.c: New file.
31989 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
31990 (Depends-on): Add stdio.
31991 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
31992 (Include): Use <stdio.h> instead of vsnprintf.h.
31993 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
31994 HAVE_DECL_VSNPRINTF.
31995 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
31997 * modules/snprintf (Files): Remove lib/snprintf.h.
31998 (Depends-on): Add stdio.
31999 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32000 (Include): Use <stdio.h> instead of snprintf.h.
32001 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
32002 HAVE_DECL_SNPRINTF.
32003 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
32004 * lib/getaddrinfo.c: Likewise.
32006 * modules/stdio: New file.
32007 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
32008 * lib/snprintf.h: Remove file.
32009 * lib/vsnprintf.h: Remove file.
32010 * lib/.cppi-disable: Remove snprintf.h.
32011 * m4/stdio_h.m4: New file.
32012 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
32014 2007-02-20 Jim Meyering <jim@meyering.net>
32016 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
32017 used by e.g., mingw. From Bruno Haible.
32019 2007-02-19 Bruno Haible <bruno@clisp.org>
32021 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
32023 Reported by Ben Pfaff <blp@cs.stanford.edu>.
32025 2007-02-19 Bruno Haible <bruno@clisp.org>
32027 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
32030 2007-02-19 Bruno Haible <bruno@clisp.org>
32032 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
32034 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
32036 2007-02-19 Jim Meyering <jim@meyering.net>
32038 Don't use FD after a successful "fdopendir (fd)".
32039 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
32040 Reset it by calling dirfd on the just-obtained DIR*.
32042 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
32043 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
32045 2007-02-18 Bruno Haible <bruno@clisp.org>
32047 * lib/readlink.c: Include <unistd.h>.
32048 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
32050 * modules/readlink (Depends-on): Add unistd.
32051 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32052 (Include): Add <unistd.h>.
32054 * lib/getlogin_r.h: Remove file.
32055 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
32056 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
32057 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
32058 HAVE_DECL_GETLOGIN_R.
32059 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
32060 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32061 (Include): Use <unistd.h> instead of getlogin_r.h.
32063 * lib/getcwd.h: Remove file.
32064 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
32065 * lib/xgetcwd.c: Likewise.
32066 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
32067 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
32068 * modules/getcwd (Files): Remove lib/getcwd.h.
32069 (Depends-on): Add unistd.
32070 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32071 (Include): Use <unistd.h> instad of getcwd.h.
32073 * lib/ftruncate.c: Include <unistd.h> first.
32074 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
32075 Set HAVE_FTRUNCATE.
32076 * modules/ftruncate (Depends-on): Add unistd.
32077 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32079 * lib/fchdir.c: Include <unistd.h> first.
32080 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
32081 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
32082 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
32083 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32084 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
32086 * lib/dup2.c: Include <unistd.h> first.
32087 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
32089 * modules/dup2 (Depends-on): Add unistd.
32090 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32092 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
32093 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
32094 REPLACE_CHOWN. Don't define chown as a macro here.
32095 * modules/chown (Depends-on): Add unistd.
32096 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32098 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
32099 Add definition for GL_LINK_WARNING.
32100 (chown, dup2): New declarations.
32101 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
32103 (ftruncate): New declaration.
32104 (getcwd): New declaration, taken from old getcwd.h.
32105 (getlogin_r): New declaration, taken from old getlogin_r.h.
32106 (readlink): New declaration.
32107 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
32108 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
32109 (gl_PREREQ_UNISTD): Remove macro.
32110 (gl_UNISTD_MODULE_INDICATOR): New macro.
32111 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
32112 many new variables. Don't set UNISTD_H.
32113 * modules/unistd (Description): Change.
32114 (Depends-on): Add link-warning.
32115 (configure.ac): Update.
32116 (Makefile.am): Create unistd.h always. Substitute many new variables
32119 2007-02-18 Bruno Haible <bruno@clisp.org>
32121 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
32122 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
32124 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
32125 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
32126 * lib/getsubopt.h: Remove file.
32127 * modules/getsubopt (Files): Remove lib/getsubopt.h.
32128 (Depends-on): Add stdlib.
32129 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32130 (Includes): Use <stdlib.h> instead of getsubopt.h.
32131 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
32132 Set HAVE_GETSUBOPT.
32133 * lib/getsubopt.c: Don't include getsubopt.h.
32135 2007-02-18 Bruno Haible <bruno@clisp.org>
32137 * modules/fchdir (Depends-on): Add dup2.
32139 2007-02-18 Bruno Haible <bruno@clisp.org>
32141 * lib/stdlib_.h: Handle glibc's special invocation convention
32144 2007-02-18 Bruno Haible <bruno@clisp.org>
32146 * modules/stdlib-tests: New file.
32147 * tests/test-stdlib.c: New file.
32149 * modules/mkstemp (Files): Remove lib/mkstemp.h.
32150 (Depends-on): Add stdlib.
32151 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32152 (Includes): Use <stdlib.h> instead of mkstemp.h.
32153 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
32154 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
32155 * lib/mkstemp.c: Don't include mkstemp.h.
32156 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
32157 * lib/stdlib--.h: Don't include mkstemp.h.
32159 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
32160 (Depends-on): Add stdlib.
32161 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32162 (Includes): Use <stdlib.h> instead of mkdtemp.h.
32163 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
32165 * lib/mkdtemp.c: Don't include mkdtemp.h.
32166 * lib/clean-temp.c: Don't include mkdtemp.h.
32168 * modules/exit (Files): Remove lib/exit.h.
32169 (Depends-on): Add stdlib.
32170 (Makefile.am): Remove lib_SOURCES.
32171 (Include): Use <stdlib.h> instead of exit.h.
32172 * lib/argmatch.c: Don't include exit.h.
32173 * lib/execute.c: Likewise.
32174 * lib/pagealign_alloc.c: Likewise.
32175 * lib/pipe.c: Likewise.
32176 * lib/wait-process.c: Likewise.
32177 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
32178 * lib/exitfail.c: Likewise.
32179 * lib/savewd.c: Likewise.
32180 * lib/xsetenv.c: Likewise.
32182 * modules/stdlib: New file.
32183 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
32184 and extra comments about mkstemp().
32185 * lib/exit.h: Remove file.
32186 * lib/mkdtemp.h: Remove file.
32187 * lib/mkstemp.h: Remove file.
32188 * m4/stdlib_h.m4: New file.
32189 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
32191 2007-02-18 Bruno Haible <bruno@clisp.org>
32193 * modules/math-tests: New file.
32194 * tests/test-math.c: New file.
32196 * modules/math: New file.
32197 * modules/mathl (Files): Remove lib/mathl.h.
32198 (Depends-on): Add math.
32199 (Makefile.am): Don't mention mathl.h.
32200 (Include): Use <math.h> instead of mathl.h.
32201 * lib/math_.h: New file.
32202 * lib/mathl.h: Remove file.
32203 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
32205 * lib/asinl.c: Likewise.
32206 * lib/atanl.c: Likewise.
32207 * lib/ceill.c: Likewise.
32208 * lib/cosl.c: Likewise.
32209 * lib/expl.c: Likewise.
32210 * lib/floorl.c: Likewise.
32211 * lib/frexpl.c: Likewise.
32212 * lib/ldexpl.c: Likewise.
32213 * lib/logl.c: Likewise.
32214 * lib/sincosl.c: Likewise.
32215 * lib/sinl.c: Likewise.
32216 * lib/sqrtl.c: Likewise.
32217 * lib/tanl.c: Likewise.
32218 * lib/trigl.c: Likewise.
32219 * m4/math_h.m4: New file.
32220 * MODULES.html.sh (Mathematics): Add math.
32222 2007-02-17 Bruno Haible <bruno@clisp.org>
32224 * modules/wctype-tests: New file.
32225 * tests/test-wctype.c: New file.
32227 * modules/wchar-tests: New file.
32228 * tests/test-wchar.c: New file.
32230 * modules/unistd-tests: New file.
32231 * tests/test-unistd.c: New file.
32233 * modules/time-tests: New file.
32234 * tests/test-time.c: New file.
32236 * modules/sysexits-tests: New file.
32237 * tests/test-sysexits.c: New file.
32239 * modules/sys_time-tests: New file.
32240 * tests/test-sys_time.c: New file.
32242 * modules/sys_stat-tests: New file.
32243 * tests/test-sys_stat.c: New file.
32245 * modules/sys_socket-tests: New file.
32246 * tests/test-sys_socket.c: New file.
32248 * modules/sys_select-tests: New file.
32249 * tests/test-sys_select.c: New file.
32251 * modules/string-tests: New file.
32252 * tests/test-string.c: New file.
32254 * modules/stdbool-tests: New file.
32255 * tests/test-stdbool.c: New file.
32257 * modules/netinet_in-tests: New file.
32258 * tests/test-netinet_in.c: New file.
32260 * modules/inttypes-tests: New file.
32261 * tests/test-inttypes.c: New file.
32263 * modules/fcntl-tests: New file.
32264 * tests/test-fcntl.c: New file.
32266 * modules/byteswap-tests: New file.
32267 * tests/test-byteswap.c: New file.
32269 * modules/arpa_inet-tests: New file.
32270 * tests/test-arpa_inet.c: New file.
32272 2007-02-17 Bruno Haible <bruno@clisp.org>
32274 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
32275 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
32276 if the corresponding module is not enabled. Emit link warnings if
32277 the function is used nevertheless.
32278 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
32279 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
32280 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
32281 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
32282 * modules/inttypes (Depends-on): Add link-warning.
32283 (Makefile.am): Copy the contents of build-aux/link-warning.h into
32284 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
32285 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
32286 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
32287 * modules/imaxdiv (configure.ac): Likewise.
32288 * modules/strtoimax (configure.ac): Likewise.
32289 * modules/strtoumax (configure.ac): Likewise.
32291 2007-02-17 Bruno Haible <bruno@clisp.org>
32293 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
32294 gl_STRING_MODULE_INDICATOR_DEFAULTS.
32295 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
32296 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
32298 2007-02-17 Bruno Haible <bruno@clisp.org>
32300 * modules/link-warning: New file.
32301 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
32302 * lib/string_.h (GL_LINK_WARNING): Remove definition.
32303 * modules/string (Depends-on): Add link-warning.
32304 (Makefile.am): Copy the contents of build-aux/link-warning.h into
32306 * MODULES.html.sh (Support for building libraries and executables): Add
32309 2007-02-17 Bruno Haible <bruno@clisp.org>
32311 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
32312 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
32313 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
32316 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
32317 Bruno Haible <bruno@clisp.org>
32319 * modules/tmpfile: New file.
32320 * lib/tmpfile.c: New file.
32321 * m4/tmpfile.m4: New file.
32322 * MODULES.html.sh (func_all_modules): New section "Input/output".
32324 2007-02-15 Bruno Haible <bruno@clisp.org>
32326 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
32327 (supports_delete_on_close): New function.
32328 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
32330 2007-02-14 Bruno Haible <bruno@clisp.org>
32332 * modules/mbspcasecmp-tests: New file.
32333 * tests/test-mbspcasecmp.sh: New file.
32334 * tests/test-mbspcasecmp.c: New file.
32336 New module mbspcasecmp.
32337 * modules/mbspcasecmp: New file.
32338 * lib/mbspcasecmp.c: New file.
32339 * lib/string_.h (strncasecmp): Change warning message.
32340 (mbspcasecmp): New declaration.
32341 * m4/mbspcasecmp.m4: New file.
32342 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32343 GNULIB_MBSPCASECMP.
32344 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
32345 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
32347 2007-02-14 Bruno Haible <bruno@clisp.org>
32349 * modules/mbsncasecmp-tests: New file.
32350 * tests/test-mbsncasecmp.sh: New file.
32351 * tests/test-mbsncasecmp.c: New file.
32353 New module mbsncasecmp.
32354 * modules/mbsncasecmp: New file.
32355 * lib/mbsncasecmp.c: New file.
32356 * lib/string_.h (mbsncasecmp): New declaration.
32357 * m4/mbsncasecmp.m4: New file.
32358 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32359 GNULIB_MBSNCASECMP.
32360 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
32361 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
32363 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
32365 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
32366 Verify that it doesn't overlap with our flags.
32367 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
32368 do not have the desired effect in multibyte locales; instead, use
32370 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
32371 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
32372 we don't require GNU fnmatch ourselves (if our users require it, they
32373 should do so explicitly).
32375 Fix regex code so it doesn't rely on strcasecmp.
32376 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
32377 Otherwise, include gnulib's langinfo.h.
32378 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
32379 undesirable behavior in non-C locales. Instead, rely on localecharset.
32380 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
32381 * modules/regex (FILES): Remove m4/codeset.m4.
32382 (Depends-on): Add localcharset. Remove strcase.
32384 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32386 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
32387 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
32389 2007-02-13 Bruno Haible <bruno@clisp.org>
32391 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
32392 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32394 2007-02-12 Bruno Haible <bruno@clisp.org>
32396 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
32397 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
32398 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
32399 time warning rather than a link error.
32401 2007-02-12 Bruno Haible <bruno@clisp.org>
32403 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
32404 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32405 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32407 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
32409 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
32412 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
32414 New module 'time', so that apps can include <time.h> as per
32415 POSIX and GNU instead of separate include files like time_r.h
32416 and timegm.h. This implementation tries out a simpler approach
32417 for replacing decls in standard include files (as compared to
32418 the string module), somewhat as an experiment.
32420 * config/srclist.txt: Comment out mktime.c for now.
32421 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
32422 since it doesn't apply any more. Use generic wording instead.
32423 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
32425 * lib/time_.h, m4/time_h.m4, modules/time: New files.
32426 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
32427 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
32428 Don't include <sys/types.h>; no longer needed since we assume C89.
32429 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
32430 * lib/strftime.c: Likewise.
32431 * lib/time_r.c: Likewise.
32432 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
32433 * lib/nanosleep.c: Include <time.h> first, to check interface.
32434 * lib/strptime.c: Likewise.
32435 * lib/time_r.c: Likewise.
32436 * lib/timegm.c: Likewise.
32437 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
32439 * lib/timegm.c: Don't include timegm.h; no longer needed.
32440 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
32441 time.h now handles any problems in that area.
32442 (struct timespec, nanosleep): Remove; time.h now arranges for these.
32443 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
32444 that time.h defines struct timespec.
32445 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
32446 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
32448 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
32449 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
32450 needed. Set REPLACE_LOCALTIME.
32451 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
32452 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
32453 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
32454 nanosleep; time_h.m4 now does that. Don't require
32455 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
32456 module handles this now.
32457 * modules/getdate (Depends-on): Remove timespec. Add time.
32458 * modules/nanosleep (Depends-on): Likewise.
32459 * modules/stat-time (Depends-on): Likewise.
32460 * modules/nanosleep (Include): Include time.h, not timespec.h.
32461 * modules/strptime (Files): Remove lib/strptime.h.
32462 (Depends-on): Add extensions, time.
32463 (Include): Include time.h, not strptime.h.
32464 * modules/time_r (Files): Remove lib/time_r.h.
32465 (Depends-on): Add time.
32466 (Include): Include time.h, not time_r.h.
32467 * modules/timegm: Likewise.
32468 * modules/timespec (Description): Now does timespec-related decls
32469 of our own, instead of struct timespec itself.
32470 (Depends-on): Add time; remove extensions.
32471 (Maintainer): Add self.
32472 * modules/utimecmp (Depends-on): Add time; remove timespec.
32473 * modules/utimens (Depends-on): Likewise.
32474 * modules/xnanosleep (Depends-on): Likewise.
32476 2007-02-11 Bruno Haible <bruno@clisp.org>
32478 * lib/c-strstr.c: Include allocsa.h.
32479 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32480 * lib/c-strcasestr.c: Include allocsa.h.
32481 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32482 * lib/strcasestr.c: Include allocsa.h.
32483 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
32484 * lib/mbsstr.c: Include allocsa.h.
32485 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
32486 allocsa/freesa instead of malloc/free.
32487 * lib/mbscasestr.c: Include allocsa.h.
32488 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
32489 allocsa/freesa instead of malloc/free.
32490 * modules/c-strstr (Depends-on): Add allocsa.
32491 * modules/c-strcasestr (Depends-on): Likewise.
32492 * modules/strcasestr (Depends-on): Likewise.
32493 * modules/mbsstr (Depends-on): Likewise.
32494 * modules/mbscasestr (Depends-on): Likewise.
32496 2007-02-11 Bruno Haible <bruno@clisp.org>
32498 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
32500 * modules/mbsspn-tests: New file.
32501 * tests/test-mbsspn.sh: New file.
32502 * tests/test-mbsspn.c: New file.
32504 2007-02-11 Bruno Haible <bruno@clisp.org>
32506 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
32508 * modules/mbspbrk-tests: New file.
32509 * tests/test-mbspbrk.sh: New file.
32510 * tests/test-mbspbrk.c: New file.
32512 2007-02-11 Bruno Haible <bruno@clisp.org>
32514 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
32517 * modules/mbscspn-tests: New file.
32518 * tests/test-mbscspn.sh: New file.
32519 * tests/test-mbscspn.c: New file.
32521 2007-02-11 Bruno Haible <bruno@clisp.org>
32523 * modules/mbscasecmp-tests: New file.
32524 * tests/test-mbscasecmp.sh: New file.
32525 * tests/test-mbscasecmp.c: New file.
32527 2007-02-11 Bruno Haible <bruno@clisp.org>
32529 Ensure O(n) worst-case complexity of mbscasestr.
32530 * lib/mbscasestr.c: Include stdbool.h.
32531 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
32533 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
32534 the bookkeeping indicates that it's worth it.
32535 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
32537 * modules/mbscasestr-tests: New file.
32538 * tests/test-mbscasestr1.c: New file.
32539 * tests/test-mbscasestr2.sh: New file.
32540 * tests/test-mbscasestr2.c: New file.
32541 * tests/test-mbscasestr3.sh: New file.
32542 * tests/test-mbscasestr3.c: New file.
32543 * tests/test-mbscasestr4.sh: New file.
32544 * tests/test-mbscasestr4.c: New file.
32545 * m4/locale-tr.m4: New file.
32547 2007-02-11 Bruno Haible <bruno@clisp.org>
32549 Ensure O(n) worst-case complexity of mbsstr.
32550 * lib/mbsstr.c: Include stdbool.h.
32551 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
32553 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
32554 bookkeeping indicates that it's worth it.
32555 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
32557 * modules/mbsstr-tests: New file.
32558 * tests/test-mbsstr1.c: New file.
32559 * tests/test-mbsstr2.sh: New file.
32560 * tests/test-mbsstr2.c: New file.
32561 * tests/test-mbsstr3.sh: New file.
32562 * tests/test-mbsstr3.c: New file.
32563 * m4/locale-fr.m4: New file.
32565 2007-02-11 Bruno Haible <bruno@clisp.org>
32567 * lib/mbsrchr.c (mbsrchr): Fix bug.
32569 * modules/mbsrchr-tests: New file.
32570 * tests/test-mbsrchr.sh: New file.
32571 * tests/test-mbsrchr.c: New file.
32573 2007-02-11 Bruno Haible <bruno@clisp.org>
32575 * lib/mbschr.c (mbschr): Fix bug.
32577 * modules/mbschr-tests: New file.
32578 * tests/test-mbschr.sh: New file.
32579 * tests/test-mbschr.c: New file.
32580 * m4/locale-zh.m4: New file.
32582 2007-02-11 Bruno Haible <bruno@clisp.org>
32584 Support for copying multibyte string iterators.
32585 * lib/mbiter.h: Include <string.h>.
32586 (mbiter_multi_copy): New function.
32587 (mbi_copy): New macro.
32588 * lib/mbuiter.h: Include <string.h>.
32589 (mbuiter_multi_copy): New function.
32590 (mbui_copy): New macro.
32592 2007-02-11 Bruno Haible <bruno@clisp.org>
32595 * modules/mbslen: New file.
32596 * lib/mbslen.c: New file.
32597 * lib/string_.h (mbslen): New declaration.
32598 * m4/mbslen.m4: New file.
32599 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32601 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
32602 * MODULES.html.sh (Internationalization functions): Add mbslen.
32604 2007-02-11 Bruno Haible <bruno@clisp.org>
32606 Ensure O(n) worst-case complexity of strcasestr substitute.
32607 * lib/strcasestr.c: Include stdbool.h.
32608 (knuth_morris_pratt): New function.
32609 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
32610 bookkeeping indicates that it's worth it.
32611 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
32613 * modules/strcasestr-tests: New file.
32614 * tests/test-strcasestr.c: New file.
32616 2007-02-11 Bruno Haible <bruno@clisp.org>
32618 Ensure O(n) worst-case complexity of c_strcasestr.
32619 * lib/c-strcasestr.c: Include stdbool.h, string.h.
32620 (knuth_morris_pratt): New function.
32621 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
32622 the bookkeeping indicates that it's worth it.
32623 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
32625 * modules/c-strcasestr-tests: New file.
32626 * tests/test-c-strcasestr.c: New file.
32628 2007-02-11 Bruno Haible <bruno@clisp.org>
32630 Ensure O(n) worst-case complexity of c_strstr.
32631 * lib/c-strstr.c: Include stdbool.h, string.h.
32632 (knuth_morris_pratt): New function.
32633 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
32634 bookkeeping indicates that it's worth it.
32635 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
32637 * lib/c-strstr.c: Complete rewrite for maintainability.
32639 * modules/c-strstr-tests: New file.
32640 * tests/test-c-strstr.c: New file.
32642 2007-02-11 Bruno Haible <bruno@clisp.org>
32644 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
32645 5.2.1 and earlier, whereby \055 was treated just like the range
32647 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
32649 2007-02-08 Bruno Haible <bruno@clisp.org>
32651 * modules/regex (Depends-on): Add stdbool.
32652 Reported by Dalibor Topic <robilad@kaffe.org>.
32654 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
32656 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
32657 Prefer returning from main to exiting from it.
32658 Remove unnecessary parens after sizeof.
32660 2007-02-05 Bruno Haible <bruno@clisp.org>
32663 * modules/mbssep: New file.
32664 * lib/mbssep.c: New file.
32665 * lib/string_.h (strsep): Add a conditional link warning.
32666 (mbssep): New declaration.
32667 * m4/mbssep.m4: New file.
32668 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32670 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
32671 * MODULES.html.sh (Internationalization functions): Add mbssep.
32673 2007-02-05 Bruno Haible <bruno@clisp.org>
32675 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
32676 Optimize search in case of 1 delimiter.
32678 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
32680 * lib/acl.h: Include sys/types.h before sys/acl.h.
32682 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
32684 Merge upstream fix for glibc bugzilla #3957:
32686 2007-02-05 Jakub Jelinek <jakub@redhat.com>
32688 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
32689 bit for RE_HAT_LISTS_NOT_NEWLINE.
32690 (build_charclass_op): Remove bogus comment.
32692 2007-02-05 Simon Josefsson <simon@josefsson.org>
32694 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
32696 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
32698 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
32699 * lib/memmem.c [!defined _LIBC]: Include config.h.
32701 2007-02-04 Bruno Haible <bruno@clisp.org>
32703 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
32706 2007-02-04 Bruno Haible <bruno@clisp.org>
32708 New module mbstok_r.
32709 * modules/mbstok_r: New file.
32710 * lib/mbstok_r.c: New file.
32711 * lib/string_.h (strtok_r): Change argument names to match the
32712 comments. Add a conditional link warning.
32713 (mbstok_r): New declaration.
32714 * m4/mbstok_r.m4: New file.
32715 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32717 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
32718 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
32720 2007-02-04 Bruno Haible <bruno@clisp.org>
32723 * modules/mbsspn: New file.
32724 * lib/mbsspn.c: New file.
32725 * lib/string_.h (strspn): Add a conditional link warning.
32726 (mbsspn): New declaration.
32727 * m4/mbsspn.m4: New file.
32728 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32730 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
32731 * MODULES.html.sh (Internationalization functions): Add mbsspn.
32733 2007-02-04 Bruno Haible <bruno@clisp.org>
32735 New module mbspbrk.
32736 * modules/mbspbrk: New file.
32737 * lib/mbspbrk.c: New file.
32738 * lib/string_.h (strpbrk): Add a conditional link warning.
32739 (mbspbrk): New declaration.
32740 * m4/mbspbrk.m4: New file.
32741 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32743 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
32744 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
32746 2007-02-04 Bruno Haible <bruno@clisp.org>
32748 New module mbscspn.
32749 * modules/mbscspn: New file.
32750 * lib/mbscspn.c: New file.
32751 * lib/string_.h (strcspn): Add a conditional link warning.
32752 (mbscspn): New declaration.
32753 * m4/mbscspn.m4: New file.
32754 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32756 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
32757 * MODULES.html.sh (Internationalization functions): Add mbscspn.
32759 2007-02-04 Bruno Haible <bruno@clisp.org>
32761 New module mbscasestr, reduced goal of strcasestr.
32762 * modules/mbscasestr: New file.
32763 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
32764 (mbscasestr): Renamed from strcasestr.
32765 * lib/strcasestr.c: Don't include mbuiter.h.
32766 (strcasestr): Remove support for multibyte locales.
32767 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
32768 Change the conditional link warning.
32769 (mbscasestr): New declaration.
32770 * m4/mbscasestr.m4: New file.
32771 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
32772 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
32773 REPLACE_STRCASESTR.
32774 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
32775 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32776 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32777 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
32778 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
32779 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
32780 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
32781 (Depends-on): Remove mbuiter.
32782 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
32784 2007-02-04 Bruno Haible <bruno@clisp.org>
32786 Simplify handling of strncasecmp.
32787 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
32788 the conditional link warning.
32789 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32790 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
32791 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
32792 * modules/strcase (configure.ac): Don't invoke
32793 gl_STRING_MODULE_INDICATOR.
32794 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
32796 2007-02-04 Bruno Haible <bruno@clisp.org>
32798 New module mbscasecmp, reduced goal of strcasecmp.
32799 * modules/mbscasecmp: New file.
32800 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
32801 (mbscasecmp): Renamed from strcasecmp.
32802 * lib/strcasecmp.c: Don't include mbuiter.h.
32803 (strcasecmp): Remove support for multibyte locales.
32804 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
32805 Change the conditional link warning.
32806 (mbscasecmp): New declaration.
32807 * m4/mbscasecmp.m4: New file.
32808 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
32809 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
32810 REPLACE_STRCASECMP.
32811 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
32812 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32814 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
32815 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
32816 * modules/strcase (Files): Remove m4/mbrtowc.m4.
32817 (Depends-on): Remove mbuiter.
32818 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
32820 2007-02-04 Bruno Haible <bruno@clisp.org>
32822 New module mbsstr. Remove module strstr.
32823 * modules/mbsstr: New file.
32824 * modules/strstr: Remove file.
32825 * lib/mbsstr.c: Renamed from lib/strstr.c.
32826 (mbsstr): Renamed from strstr.
32827 * lib/string_.h (strstr): Remove declaration. Change the conditional
32829 (mbsstr): New declaration.
32830 * m4/mbsstr.m4: New file.
32831 * m4/strstr.m4: Remove file.
32832 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32834 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
32835 Don't initialize GNULIB_STRSTR.
32836 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
32837 substitute GNULIB_STRSTR and REPLACE_STRSTR.
32838 * MODULES.html.sh (Internationalization functions): Add mbsstr.
32839 (Support for systems lacking ANSI C 89): Remove strstr.
32841 2007-02-04 Bruno Haible <bruno@clisp.org>
32843 New module mbsrchr.
32844 * modules/mbsrchr: New file.
32845 * lib/mbsrchr.c: New file.
32846 * lib/string_.h (strrchr): Add a conditional link warning.
32847 (mbsrchr): New declaration.
32848 * m4/mbsrchr.m4: New file.
32849 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32851 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
32852 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
32854 2007-02-04 Bruno Haible <bruno@clisp.org>
32857 * modules/mbschr: New file.
32858 * lib/mbschr.c: New file.
32859 * lib/string_.h (strchr): Add a conditional link warning.
32860 (mbschr): New declaration.
32861 * m4/mbschr.m4: New file.
32862 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
32864 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
32865 * MODULES.html.sh (Internationalization functions): Add mbschr.
32867 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
32869 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
32871 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
32873 2007-02-04 Bruno Haible <bruno@clisp.org>
32875 New module description section 'configure.ac-early'.
32876 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
32877 (func_get_autoconf_early_snippet): New function.
32878 (func_import, func_create_testdir): Use it. Remove special cases for
32879 modules 'extensions' and 'lock'.
32880 * modules/extensions (configure.ac-early): Require
32881 gl_USE_SYSTEM_EXTENSIONS.
32882 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
32884 2007-02-04 Bruno Haible <bruno@clisp.org>
32886 Make use of gcj-4.3's -fsource and -ftarget option.
32887 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
32888 and if so try the options -fsource and -ftarget.
32889 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
32890 source_version, ftarget_option, target_version arguments.
32891 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
32892 (is_envjavac_oldgcj_14_14_usable): Renamed from
32893 is_envjavac_gcj_14_14_usable.
32894 (is_envjavac_oldgcj_14_13_usable): Renamed from
32895 is_envjavac_gcj_14_13_usable.
32896 (is_gcj_present): Update.
32897 (is_gcj_43, is_gcj43_usable): New functions.
32898 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
32899 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
32900 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
32901 try the options -fsource and -ftarget.
32903 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
32905 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
32906 checking code. Set N = ceil (1.5 * N) rather than to a slightly
32909 2007-02-03 Jim Meyering <jim@meyering.net>
32911 Give tools a better chance to allocate space for very large buffers.
32912 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
32914 Make pwd and readlink work also when run with an unreadable parent dir
32915 on systems with openat support.
32916 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
32917 provided getcwd function, even when we have openat support.
32918 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
32920 2007-02-02 Bruno Haible <bruno@clisp.org>
32922 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
32923 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
32924 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
32925 portability problems if one of these functions is only used on specific
32927 Reported by Paul Eggert.
32929 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
32931 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
32932 is causing more trouble than it's curing.
32933 * lib/regex_internal.h (__mempcpy): Remove.
32934 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
32935 (and make the code a tad smaller to boot).
32936 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
32938 2007-02-02 Jim Meyering <jim@meyering.net>
32940 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
32941 section, not in the Makefile.am: one.
32943 2007-02-02 Eric Blake <ebb9@byu.net>
32945 * lib/strchrnul.c: Always include config.h first.
32947 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
32948 gnulib strstr is not necessary here.
32950 2007-02-02 Simon Josefsson <simon@josefsson.org>
32952 * m4/socklen.m4: Fix typo.
32954 2007-02-02 Eric Blake <ebb9@byu.net>
32956 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
32957 * modules/netinet_in (Makefile.am): Likewise.
32959 2007-02-01 Bruno Haible <bruno@clisp.org>
32961 * lib/string_.h (GL_LINK_WARNING): New macro.
32962 (strcasecmp, strstr, strcasestr): If provided by the system,
32963 conditionally define as a macro that leads to a warning instead of to
32965 (strncasecmp): Conditionally define as a macro that leads to a warning.
32967 2007-02-01 Karl Berry <karl@gnu.org>
32969 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
32971 2007-02-01 Bruno Haible <bruno@clisp.org>
32973 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
32976 2007-02-01 Eric Blake <ebb9@byu.net>
32978 * modules/regex (Depends-on): Revert dependence on mempcpy.
32979 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
32980 module's definition of mempcpy.
32981 Reported by Paul Eggert.
32983 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
32985 * lib/string_.h: If the gnulib module XYZ is not present, undefine
32986 the symbol XYZ before redefining it. This fixes a problem with
32987 programs that don't use XYZ, when compiled on systems that define
32988 XYZ to something else.
32990 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
32992 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
32993 occurs when "mkdir -m foo" creates a setgid directory that is (1)
32994 writeable to group or other and (2) is intended to have a special
32995 mode bit that is set or cleared. In such a case, the directory
32996 should be neither group- nor other-writeable until the special
32997 mode bits are right.
32999 2007-01-31 Eric Blake <ebb9@byu.net>
33001 * modules/mountlist (Depends-on): Add strstr.
33003 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
33005 * modules/string (Makefile.am): Remove redundant replacement.
33006 * modules/regex (Depends-on): Add mempcpy.
33008 2007-01-31 Bruno Haible <bruno@clisp.org>
33010 New module description field 'Link'.
33011 * gnulib-tool (func_usage): Document --extract-link-directive.
33012 (sed_extract_prog): Recognize 'Link' directive.
33013 (func_get_link_directive): New function.
33014 (func_import): Show summary of link directives.
33015 Handle --extract-link-directive option.
33016 * modules/acl (Link): New section.
33017 * modules/clock-time (Link): New section.
33018 * modules/euidaccess (Link): New section.
33019 * modules/gettext (Link): New section.
33020 * modules/iconv (Link): New section.
33021 * modules/lock (Link): New section.
33022 * modules/nanosleep (Link): New section.
33023 * modules/readline (Link): New section.
33025 2007-01-27 Bruno Haible <bruno@clisp.org>
33027 Enforce the use of gnulib modules for unportable <string.h> functions.
33028 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
33029 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
33030 (gl_HEADER_STRING_H_BODY): Require it.
33031 * lib/string_.h: If the gnulib module XYZ is not present, redefine
33032 the symbol XYZ to one that gives a link error.
33033 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
33034 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
33035 * modules/mempcpy (configure.ac): Likewise.
33036 * modules/memrchr (configure.ac): Likewise.
33037 * modules/stpcpy (configure.ac): Likewise.
33038 * modules/stpncpy (configure.ac): Likewise.
33039 * modules/strcase (configure.ac): Likewise.
33040 * modules/strcasestr (configure.ac): Likewise.
33041 * modules/strchrnul (configure.ac): Likewise.
33042 * modules/strdup (configure.ac): Likewise.
33043 * modules/strndup (configure.ac): Likewise.
33044 * modules/strnlen (configure.ac): Likewise.
33045 * modules/strpbrk (configure.ac): Likewise.
33046 * modules/strsep (configure.ac): Likewise.
33047 * modules/strstr (configure.ac): Likewise.
33048 * modules/strtok_r (configure.ac): Likewise.
33050 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
33052 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
33054 2007-01-30 Jim Meyering <jim@meyering.net>
33056 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
33058 2007-01-29 Bruno Haible <bruno@clisp.org>
33060 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
33061 * lib/execute.c: Likewise.
33062 * lib/pipe.c: Likewise.
33063 * lib/printf-args.h: Likewise.
33064 * lib/printf-args.c: Likewise.
33065 * lib/printf-parse.c: Likewise.
33066 * lib/vasnprintf.c: Likewise.
33068 2007-01-29 Eric Blake <ebb9@byu.net>
33070 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
33073 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
33075 * lib/strptime.h (strptime): Use 'restrict' for args where
33076 POSIX requires this.
33077 * lib/strptime.c (strptime): Likewise.
33078 Change license notice from LGPL to GPL, since gnulib-tool will
33079 change this as needed.
33080 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
33082 Include "strptime.h" first, to check interface.
33083 Do not #undef _LIBC and _NL_CURRENT.
33084 Do not include <stdlib.h>; no longer needed.
33085 Include "time_r.h" and declare ptime_locale_status
33086 only if _LIBC is not defined.
33087 (__P): Remove unused macro.
33088 (match_string): Bring back glibc version, but use it only if _LIBC
33090 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
33091 Remove unnecessary assertion and abort() call.
33092 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
33093 * m4/strptime.m4: Fix serial number comment.
33094 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
33095 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
33096 (Depends-on): Add time_r.
33098 2007-01-29 Bruno Haible <bruno@clisp.org>
33100 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33102 * modules/strptime (Depends-on): Add stdbool.
33103 * lib/strptime.h: Include <time.h> always. Add comments.
33105 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
33107 * modules/strptime: New file.
33108 * lib/strptime.h: New file.
33109 * lib/strptime.c: New file.
33110 * m4/strptime.m4: New file.
33112 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
33114 * MODULES.html.sh: New module mpsort.
33115 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
33117 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
33118 a circularity problem with HP-UX ia64 reported by Bob Proulx in
33119 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
33121 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
33123 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
33125 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
33126 the parameter matches the prototype.
33128 2007-01-28 Jim Meyering <jim@meyering.net>
33130 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
33131 sys/time.h here, reverting that part of the previous patch:
33132 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
33134 2007-01-28 Bruno Haible <bruno@clisp.org>
33136 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
33137 value of $(SYS_TIME_H).
33138 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
33139 remove it conditionally, too. [added by Jim Meyering]
33140 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
33141 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
33142 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
33143 GETTIMEOFDAY_REPLACEMENT to 1.
33145 2007-01-28 Bruno Haible <bruno@clisp.org>
33147 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
33148 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
33149 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
33150 Set UNISTD_H instead of UNISTD_H2.
33151 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
33153 2007-01-28 Bruno Haible <bruno@clisp.org>
33155 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
33156 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
33158 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33160 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
33161 (func_create_testdir): Ensure C locale for `grep' and `tr'
33163 (func_create_megatestdir): Avoid one `grep'. Fix bug in
33164 ACLOCAL_AMFLAGS parsing state machine.
33166 2007-01-27 Bruno Haible <bruno@clisp.org>
33168 * modules/unistr/base: Update.
33170 2007-01-27 Bruno Haible <bruno@clisp.org>
33172 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
33173 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
33174 * modules/unistr/u32-mbtouc-unsafe: Renamed from
33175 modules/unistr/u32-mbtouc.
33176 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
33177 * lib/unistr.h: Update.
33178 * lib/linebreak.c: Update.
33179 * modules/unistr/u32-mbtouc: Renamed from
33180 modules/unistr/u32-mbtouc-safe.
33181 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
33182 * lib/unistr.h: Update.
33183 * lib/unistr/u32-to-u8.c: Update.
33184 * lib/unistr/u32-to-u16.c: Update.
33186 2007-01-27 Bruno Haible <bruno@clisp.org>
33188 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
33189 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
33190 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
33191 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
33192 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
33193 * modules/unistr/u16-mbtouc-unsafe: Renamed from
33194 modules/unistr/u16-mbtouc.
33195 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
33196 * lib/unistr.h: Update.
33197 * lib/linebreak.c: Update.
33198 * modules/linebreak: Update.
33199 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
33200 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
33201 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
33202 * modules/unistr/u16-mbtouc: Renamed from
33203 modules/unistr/u16-mbtouc-safe.
33204 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
33205 * lib/unistr.h: Update.
33206 * lib/unistr/u16-to-u8.c: Update.
33207 * modules/unistr/u16-to-u8: Update.
33208 * lib/unistr/u16-to-u32.c: Update.
33209 * modules/unistr/u16-to-u32: Update.
33211 2007-01-27 Bruno Haible <bruno@clisp.org>
33213 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
33214 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
33215 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
33216 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
33217 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
33218 * modules/unistr/u8-mbtouc-unsafe: Renamed from
33219 modules/unistr/u8-mbtouc.
33220 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
33221 * lib/unistr.h: Update.
33222 * lib/striconveh.c: Update.
33223 * modules/striconveh: Update.
33224 * lib/linebreak.c: Update.
33225 * modules/linebreak: Update.
33226 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
33227 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
33228 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
33229 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
33230 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
33231 * lib/unistr.h: Update.
33232 * lib/striconveh.c: Update.
33233 * modules/striconveh: Update.
33234 * lib/unistr/u8-to-u16.c: Update.
33235 * modules/unistr/u8-to-u16: Update.
33236 * lib/unistr/u8-to-u32.c: Update.
33237 * modules/unistr/u8-to-u32: Update.
33239 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33242 * lib/argz.c: Do not include strings.h nor memory.h, include
33243 string.h unconditionally. Patch by Simon Josefsson.
33245 2007-01-27 Bruno Haible <bruno@clisp.org>
33247 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
33248 from gl_HEADER_STRING_H_BODY.
33249 (gl_HEADER_STRING_H_BODY): Require it.
33250 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
33251 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
33252 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
33253 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
33254 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
33255 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
33256 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33257 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
33258 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
33259 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33260 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
33261 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
33262 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
33263 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33264 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33266 2007-01-27 Bruno Haible <bruno@clisp.org>
33268 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
33269 check_PROGRAMS into noinst_PROGRAMS.
33270 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
33271 check_PROGRAMS in this case.
33272 (func_import): Set for_test to false.
33273 (func_create_testdir): Set for_test to true.
33275 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33276 Bruno Haible <bruno@clisp.org>
33278 * modules/strcasestr (Files): Remove lib/strcasestr.h.
33279 (Depends-on): Add string.
33280 (Includes): Use <string.h> instead of strcasestr.h.
33281 * modules/string (Makefile.am): Also substitute the value of
33282 REPLACE_STRCASESTR.
33283 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
33284 assume strcasestr is declared in <string.h> not <strings.h>. Also
33285 set REPLACE_STRCASESTR.
33286 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
33287 REPLACE_STRCASESTR.
33288 * lib/strcasestr.h: Remove file.
33289 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
33290 * lib/string_.h (strcasestr): New declaration.
33292 2007-01-27 Bruno Haible <bruno@clisp.org>
33294 * lib/string_.h: Use 'extern'.
33296 2007-01-27 Jim Meyering <jim@meyering.net>
33298 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
33299 of set-but-not-used local, "q".
33301 * lib/mempcpy.c: Include <config.h> before <string.h>.
33302 This fixes a compilation error on HP-UX, due to the system's
33303 "restrict"-using mempcpy prototype.
33305 2007-01-26 Bruno Haible <bruno@clisp.org>
33307 Small optimization.
33308 * lib/javacomp.c: Include c-strstr.h.
33309 (is_envjavac_gcj): Use c_strstr instead of strstr.
33310 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
33312 2007-01-26 Bruno Haible <bruno@clisp.org>
33314 * MODULES.html.sh (Unicode string functions): Add the new modules.
33316 * modules/uniconv/u32-strconv-to-locale: New file.
33317 * lib/uniconv/u32-strconv-to-locale.c: New file.
33319 * modules/uniconv/u16-strconv-to-locale: New file.
33320 * lib/uniconv/u16-strconv-to-locale.c: New file.
33322 * modules/uniconv/u8-strconv-to-locale: New file.
33323 * lib/uniconv/u8-strconv-to-locale.c: New file.
33325 * modules/uniconv/u32-strconv-from-locale: New file.
33326 * lib/uniconv/u32-strconv-from-locale.c: New file.
33328 * modules/uniconv/u16-strconv-from-locale: New file.
33329 * lib/uniconv/u16-strconv-from-locale.c: New file.
33331 * modules/uniconv/u8-strconv-from-locale: New file.
33332 * lib/uniconv/u8-strconv-from-locale.c: New file.
33334 * modules/uniconv/u32-strconv-to-enc: New file.
33335 * lib/uniconv/u32-strconv-to-enc.c: New file.
33336 * modules/uniconv/u32-strconv-to-enc-tests: New file.
33337 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
33339 * modules/uniconv/u16-strconv-to-enc: New file.
33340 * lib/uniconv/u16-strconv-to-enc.c: New file.
33341 * lib/uniconv/u-strconv-to-enc.h: New file.
33342 * modules/uniconv/u16-strconv-to-enc-tests: New file.
33343 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
33345 * modules/uniconv/u8-strconv-to-enc: New file.
33346 * lib/uniconv/u8-strconv-to-enc.c: New file.
33347 * modules/uniconv/u8-strconv-to-enc-tests: New file.
33348 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
33350 * modules/uniconv/u32-strconv-from-enc: New file.
33351 * lib/uniconv/u32-strconv-from-enc.c: New file.
33352 * modules/uniconv/u32-strconv-from-enc-tests: New file.
33353 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
33355 * modules/uniconv/u16-strconv-from-enc: New file.
33356 * lib/uniconv/u16-strconv-from-enc.c: New file.
33357 * modules/uniconv/u16-strconv-from-enc-tests: New file.
33358 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
33360 * modules/uniconv/u8-strconv-from-enc: New file.
33361 * lib/uniconv/u8-strconv-from-enc.c: New file.
33362 * lib/uniconv/u-strconv-from-enc.h: New file.
33363 * modules/uniconv/u8-strconv-from-enc-tests: New file.
33364 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
33366 * modules/uniconv/u32-conv-from-enc: New file.
33367 * lib/uniconv/u32-conv-from-enc.c: New file.
33368 * modules/uniconv/u32-conv-from-enc-tests: New file.
33369 * tests/uniconv/test-u32-conv-from-enc.c: New file.
33371 * modules/uniconv/u16-conv-from-enc: New file.
33372 * lib/uniconv/u16-conv-from-enc.c: New file.
33373 * lib/uniconv/u-conv-from-enc.h: New file.
33374 * modules/uniconv/u16-conv-from-enc-tests: New file.
33375 * tests/uniconv/test-u16-conv-from-enc.c: New file.
33377 * modules/uniconv/u8-conv-from-enc: New file.
33378 * lib/uniconv/u8-conv-from-enc.c: New file.
33379 * modules/uniconv/u8-conv-from-enc-tests: New file.
33380 * tests/uniconv/test-u8-conv-from-enc.c: New file.
33382 * modules/uniconv/base: New file.
33383 * lib/uniconv.h: New file.
33385 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
33387 * doc/gnulib-tool.texi (Initial import): Update to match current
33388 behavior with strdup module.
33389 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
33390 * lib/memmem.h: Remove; all uses removed. This is now done
33392 * lib/mempcpy.h: Likewise.
33393 * lib/memrchr.h: Likewise.
33394 * lib/stpcpy.h: Likewise.
33395 * lib/stpncpy.h: Likewise.
33396 * lib/strcase.h: Likewise.
33397 * lib/strchrnul.h: Likewise.
33398 * lib/strdup.h: Likewise.
33399 * lib/strndup.h: Likewise.
33400 * lib/strnlen.h: Likewise.
33401 * lib/strpbrk.h: Likewise.
33402 * lib/strsep.h: Likewise.
33403 * lib/strstr.h: Likewise.
33404 * lib/strtok_r.h: Likewise.
33405 * lib/string_.h: New file.
33406 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
33407 Rely on <string.h> instead.
33408 * lib/canon-host.c: Likewise.
33409 * lib/chdir-long.c: Likewise.
33410 * lib/concatpath.c: Likewise.
33411 * lib/exclude.c: Likewise.
33412 * lib/fchdir.c: Likewise.
33413 * lib/getaddrinfo.c: Likewise.
33414 * lib/getcwd.c: Likewise.
33415 * lib/getsubopt.c: Likewise.
33416 * lib/glob.c: Likewise.
33417 * lib/hard-locale.c: Likewise.
33418 * lib/iconvme.c: Likewise.
33419 * lib/javacomp.c: Likewise.
33420 * lib/mempcpy.c: Likewise.
33421 * lib/memrchr.c: Likewise.
33422 * lib/regex_internal.h: Likewise.
33423 * lib/stpncpy.c: Likewise.
33424 * lib/strcasecmp.c: Likewise.
33425 * lib/strchrnul.c: Likewise.
33426 * lib/strdup.c: Likewise.
33427 * lib/striconv.c: Likewise.
33428 * lib/striconveh.c: Likewise.
33429 * lib/striconveha.c: Likewise.
33430 * lib/strncasecmp.c: Likewise.
33431 * lib/strndup.c: Likewise.
33432 * lib/strnlen.c: Likewise.
33433 * lib/strsep.c: Likewise.
33434 * lib/strstr.c: Likewise.
33435 * lib/strtok_r.c: Likewise.
33436 * lib/userspec.c: Likewise.
33437 * lib/w32spawn.h: Likewise.
33438 * lib/xstrndup.c: Likewise.
33439 * lib/mountlist.c (strstr): Remove decl.
33440 * m4/string_h.m4: New file.
33441 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
33442 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
33443 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
33444 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
33445 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
33446 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
33447 Set REPLACE_STRCASECMP if necessary.
33448 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
33449 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
33450 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
33451 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
33452 HAVE_DECL_STRDUP if necessary.
33453 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
33454 since gl_FUNC_STRNDUP does that now.
33455 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
33456 Check for decl here...
33457 (gl_PREREQ_STRNLEN): ... not here.
33458 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
33459 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
33460 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
33461 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
33463 * modules/string: New file.
33464 * modules/memmem (Files): Remove special-purpose include file.
33465 (Depends-on): Add string.
33466 (Include): Include <string.h>, not the removed file.
33467 * modules/mempcpy: Likewise.
33468 * modules/memrchr: Likewise.
33469 * modules/stpcpy: Likewise.
33470 * modules/stpncpy: Likewise.
33471 * modules/strcase: Likewise.
33472 * modules/strchrnul: Likewise.
33473 * modules/strdup: Likewise.
33474 * modules/strndup: Likewise.
33475 * modules/strnlen: Likewise.
33476 * modules/strpbrk: Likewise.
33477 * modules/strsep: Likewise.
33478 * modules/strstr: Likewise.
33479 * modules/strtok_r: Likewise.
33480 * tests/test-dirname.c: Don't include "strdup.h", since
33481 <string.h> now suffices.
33482 * tests/test-memmem.c: Don't include "memmem.h", since
33483 <string.h> now suffices.
33485 2007-01-25 Bruno Haible <bruno@clisp.org>
33487 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
33490 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
33491 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
33492 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
33493 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
33495 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
33496 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
33497 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
33498 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
33499 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
33500 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
33502 2007-01-24 Bruno Haible <bruno@clisp.org>
33504 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
33505 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
33506 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
33507 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
33509 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
33510 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
33511 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
33512 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
33513 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
33514 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
33516 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
33518 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
33519 Reported by Ralf Wildenhues.
33521 2007-01-24 Bruno Haible <bruno@clisp.org>
33523 Drop AC_REQUIRE calls that are redundant with the module dependencies.
33524 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
33526 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
33527 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
33528 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
33530 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
33532 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
33533 Don't use 'exit'; just return from 'main'.
33534 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
33536 * lib/fnmatch_.h: Readjust white space and comments to match
33537 glibc, to avoid spurious diffs.
33539 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
33541 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
33542 2004-12-01 change by Jakub Jelinek, since this code won't compile
33543 if !LIBC. Problem reported by Bob Proulx.
33545 2007-01-23 Bruno Haible <bruno@clisp.org>
33547 * lib/striconveh.c: Include c-strcaseeq.h.
33548 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
33549 * modules/striconveh (Depends-on): Add c-strcaseeq.
33551 2007-01-23 Bruno Haible <bruno@clisp.org>
33553 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
33555 * modules/c-strcaseeq: New file.
33556 * lib/c-strcaseeq.h: New file.
33558 * modules/streq: New file.
33559 * lib/streq.h: New file.
33561 2007-01-23 Bruno Haible <bruno@clisp.org>
33563 * modules/striconveha-tests: New file.
33564 * tests/test-striconveha.c: New file.
33566 * lib/striconveha.h: Include <stdbool.h>.
33567 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
33568 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
33569 (mem_iconveha_notranslit): Renamed from mem_iconveha.
33570 (mem_iconveha): New function.
33571 (str_iconveha_notranslit): Renamed from str_iconveha.
33572 (str_iconveha): New function.
33573 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
33576 2007-01-23 Bruno Haible <bruno@clisp.org>
33578 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
33579 encodings without forgiving before trying any encoding with handler.
33580 (str_iconveha): Try all encodings without forgiving before trying any
33581 encoding with handler.
33583 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
33585 Import the following changes from libc.
33587 2005-10-14 Ulrich Drepper <drepper@redhat.com>
33589 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
33591 2004-12-01 Jakub Jelinek <jakub@redhat.com>
33593 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
33594 normal_bracket label.
33596 2004-09-01 Jakub Jelinek <jakub@redhat.com>
33599 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
33600 to normal_bracket after fetching the next character.
33602 2007-01-22 Bruno Haible <bruno@clisp.org>
33604 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
33606 * lib/striconveh.c (iconv_carefully_1): New function.
33607 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
33609 (str_cd_iconveh): Update.
33610 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
33611 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
33612 * tests/test-striconveh.c (MAGIC): New macro.
33613 (new_offsets): New function.
33614 (main): Test call with and without offsets.
33616 2007-01-22 Bruno Haible <bruno@clisp.org>
33618 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
33619 * modules/sys_select (Makefile.am): Likewise.
33620 * modules/sys_socket (Makefile.am): Likewise.
33621 * modules/sys_time (Makefile.am): Likewise.
33623 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
33625 * modules/gettimeofday (License): Change from GPL to LGPL, since
33626 gettimeofday is a library function.
33628 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33630 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
33632 2007-01-21 Bruno Haible <bruno@clisp.org>
33634 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
33636 2007-01-21 Bruno Haible <bruno@clisp.org>
33638 * modules/striconveha: New file.
33639 * lib/striconveha.h: New file.
33640 * lib/striconveha.c: New file.
33641 * MODULES.html.sh (Internationalization functions): Add striconveha.
33642 * lib/striconv.c (str_iconv): Optimize the case of an empty input
33644 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
33646 2007-01-21 Bruno Haible <bruno@clisp.org>
33648 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
33649 * lib/striconveh.c (str_iconveh): Likewise.
33651 2007-01-21 Bruno Haible <bruno@clisp.org>
33653 * lib/striconveh.h (mem_iconveh): New declaration.
33654 * lib/striconveh.c (mem_iconveh): New function.
33655 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
33657 2007-01-21 Bruno Haible <bruno@clisp.org>
33659 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
33661 * lib/striconveh.h (mem_cd_iconveh): Change specification.
33662 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
33663 original result buffer.
33664 (str_cd_iconveh): Update.
33665 * tests/test-striconveh.c (main): Update.
33667 * lib/striconv.h (mem_cd_iconv): Change specification.
33668 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
33670 (str_cd_iconv): Update.
33671 * tests/test-striconv.c (main): Update.
33673 2007-01-21 Bruno Haible <bruno@clisp.org>
33675 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
33677 2007-01-20 Jim Meyering <jim@meyering.net>
33679 * lib/userspec.c (parse_with_separator): If a user or group string
33680 starts with "+", skip the corresponding name-to-ID look-up, since
33681 such a look-up must fail: user and group names may not include "+".
33683 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
33685 * lib/poll.c: Include sys/time.h and time.h unconditionally,
33686 since we now assume the sys_time module.
33687 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
33688 check for sys/time.h; no longer needed.
33689 * modules/poll (Depends-on): Depend on sys_time.
33691 2007-01-18 Bruno Haible <bruno@clisp.org>
33693 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
33694 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33696 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
33699 * tests/test-gettimeofday.c: Include <time.h>.
33700 (dummy): Remove variable.
33702 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
33703 gl_HEADER_SYS_TIME_H.
33704 (gl_HEADER_SYS_TIME_H): New macro.
33706 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
33707 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33708 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
33709 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
33710 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33711 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
33712 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
33713 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33714 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
33715 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
33716 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33718 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
33719 last change; it caused a compilation error when cross-compiling to
33722 2007-01-18 Jim Meyering <jim@meyering.net>
33724 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
33725 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
33726 than the race-prone "test -d sys || mkdir sys".
33727 (configure.ac): Use AC_PROG_MKDIR_P.
33728 * modules/sys_select: Likewise.
33729 * modules/sys_socket: Likewise.
33730 * modules/sys_time: Likewise.
33732 2007-01-18 Eric Blake <ebb9@byu.net>
33734 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
33735 replace gettimeofday.
33736 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
33737 name, to avoid infinite recursion.
33739 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
33741 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
33743 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
33744 assume timespec.h defines struct timeval.
33745 * lib/settime.c: Likewise.
33746 * lib/utimens.c: Likewise.
33747 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
33748 since we now assume the gettimeofday module.
33749 * lib/tempname.c (__gen_tempname): Likewise.
33750 * lib/gettimeofday.h: Remove.
33751 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
33752 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
33753 Include <time.h>, for 'time()'.
33754 (localtime_buffer_addr): Also use this workaround if
33755 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
33756 to simplify the uses. All uses changed.
33757 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
33758 that #undef is inside {}, and 'const' follows type name consistently.
33759 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
33760 (gettimeofday): Do not use the maximum possible value for
33761 tv->tv_usec, since that might break usages other than ls.c.
33762 Instead, we'll leave ls.c alone. This undoes today's patch
33763 by Bruno. Add a compile-time warning for 1s-clock resolution;
33764 we've never observed the problem but might as well keep the
33766 * lib/nanosleep.c: Include timespec.h first, for interface check.
33767 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
33768 now assume the sys_time module.
33769 * lib/tempname.c: Likewise.
33770 * lib/timespec.h: Likewise.
33771 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
33773 * lib/strftime.c: Likewise.
33774 * lib/timespec.h: Likewise.
33775 * lib/posixtm.c: Include posixtm.h first, for interface check.
33776 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
33777 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
33778 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
33779 * lib/sys_time_.h: New file.
33780 * lib/timespec.h (struct timespec): Use long int, not long.
33781 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
33782 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
33783 Remove obsolescent call to AC_HEADER_TIME.
33784 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
33785 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
33786 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
33787 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
33789 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
33790 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
33791 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
33792 into the sys_time module. Check for gettimeofday just once.
33793 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
33794 for gettimeofday signature to just check the signature. Merely
33795 compile it, since linking doesn't test signature. Improve test for
33796 whether gettimeofday.o is actually needed.
33797 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
33798 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
33799 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
33800 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33801 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
33802 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
33803 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
33804 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
33805 than worrying about sys/time.h.
33806 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33807 Don't bother worrying about TIME_WITH_SYS_TIME.
33808 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
33809 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
33810 * m4/sys_time_h.m4: New file.
33811 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
33812 Don't include sys/time.h. Return from main rather than exiting.
33813 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
33815 * modules/gethrxtime (Depends-on): Add sys_time.
33816 * modules/gettime (Depends-on): Likewise.
33817 * modules/gettimeofday (Depends-on): Likewise.
33818 * modules/nanosleep (Depends-on): Likewise.
33819 * modules/settime (Depends-on): Likewise.
33820 * modules/tempname (Depends-on): Likewise.
33821 * modules/utimens (Depends-on): Likewise.
33822 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
33823 (Include:) Change back to <sys/time.h>.
33824 (Maintainer:) Add self.
33825 * modules/sys_time: New file.
33826 * modules/tempname (Depends-on): Add gettimeofday.
33827 * tests/test-gettimeofday.c: Include <sys/time.h>
33828 rather than gettimeofday.h.
33830 2007-01-17 Bruno Haible <bruno@clisp.org>
33832 * gnulib-tool (func_get_license): Revert last patch. Instead, let
33833 the license default to GPL.
33834 (func_create_testdir): Don't complain if a module is LGPL and its
33835 tests module depends on GPLed modules.
33837 2007-01-17 Bruno Haible <bruno@clisp.org>
33839 * lib/gettimeofday.c (gettimeofday): Add code for the case
33840 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
33841 maximum possible value for tv->tv_usec, rather than the minimum one.
33843 2005-10-08 Martin Lambers <marlam@marlam.de>
33844 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
33845 2007-01-16 Bruno Haible <bruno@clisp.org>
33847 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
33848 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
33849 gl_FUNC_GETTIMEOFDAY.
33850 (Include): Add gettimeofday.h.
33851 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
33852 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
33853 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
33854 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
33855 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
33856 * lib/gettimeofday.h: New file.
33857 * lib/gettimeofday.c: Include <sys/timeb.h>.
33858 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
33859 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
33860 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
33861 fall back on time().
33863 * tests/test-gettimeofday.c: New file.
33864 * modules/gettimeofday-tests: New file.
33866 2007-01-16 Eric Blake <ebb9@byu.net>
33868 * modules/fnmatch (Depends-on): Depend on wchar.
33869 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
33870 * m4/fnmatch.m4: Likewise.
33871 * modules/mbchar (Makefile.am): Assume <wchar.h>.
33872 * m4/mbchar.m4: Likewise.
33873 * modules/mbswidth (Depends-on): Depend on wchar.
33874 * lib/mbswidth.c: Assume <wchar.h>.
33875 * m4/mbswidth.m4: Likewise.
33876 * modules/quotearg (Depends-on): Depend on wchar.
33877 * lib/quotearg.c: Assume <wchar.h>.
33878 * m4/quotearg.m4: Likewise.
33879 * modules/regex (Depends-on): Depend on wchar.
33880 * lib/regex_internal.h: Assume <wchar.h>.
33881 * m4/regex.m4: Likewise.
33882 * modules/stdint (Depends-on): Depend on wchar.
33883 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
33884 * m4/stdint.m4: Likewise.
33885 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
33886 * modules/strftime (Depends-on): Depend on wchar.
33887 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
33888 * modules/strtol (Depends-on): Depend on wchar.
33889 * lib/strtol.c: Assume <wchar.h>.
33890 * modules/wcwidth (Depends-on): Depend on wchar.
33891 * lib/wcwidth.h: Assume <wchar.h>.
33892 * m4/wcwidth.m4: Likewise.
33894 2007-01-16 Bruno Haible <bruno@clisp.org>
33896 * modules/csharpexec-script: New, created from...
33897 * modules/csharpexec: ... this.
33899 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
33901 * modules/javaexec-script: New, created from...
33902 * modules/javaexec: ... this.
33904 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33906 * modules/poll (Dependencies): Add sys_select.
33908 2007-01-15 Jim Meyering <jim@meyering.net>
33910 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
33911 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
33912 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
33913 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
33915 2007-01-15 Bruno Haible <bruno@clisp.org>
33917 * modules/striconveh: New file.
33918 * lib/striconveh.h: New file.
33919 * lib/striconveh.c: New file.
33920 * MODULES.html.sh (Internationalization functions): Add striconveh.
33922 * modules/striconveh-tests: New file.
33923 * tests/test-striconveh.c: New file.
33925 2007-01-15 Bruno Haible <bruno@clisp.org>
33927 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
33928 not from GNU libiconv or GNU libc.
33930 2007-01-15 Bruno Haible <bruno@clisp.org>
33932 * doc/gnulib-intro.texi (Copyright): Explain the different license
33933 terms for module descriptions, autoconf macros, tests, documentation.
33935 2007-01-14 Bruno Haible <bruno@clisp.org>
33937 * modules/striconv-tests: New file.
33938 * tests/test-striconv.c: New file.
33940 2007-01-14 Bruno Haible <bruno@clisp.org>
33942 * modules/iconv-tests: New file.
33943 * tests/test-iconv.c: New file.
33945 2007-01-14 Bruno Haible <bruno@clisp.org>
33947 * gnulib-tool (func_get_license): For test modules, use the license of
33950 2007-01-14 Bruno Haible <bruno@clisp.org>
33952 * modules/iconv (Include): Clarify that <iconv.h> can only be included
33953 if iconv is found to exist.
33955 2007-01-14 Bruno Haible <bruno@clisp.org>
33957 * modules/c-ctype-tests: New file.
33958 * tests/test-c-ctype.c: New file.
33960 2007-01-14 Bruno Haible <bruno@clisp.org>
33962 * modules/binary-io-tests: New file.
33963 * tests/test-binary-io.sh: New file.
33964 * tests/test-binary-io.c: New file.
33966 2007-01-14 Bruno Haible <bruno@clisp.org>
33968 * modules/array-oset-tests: New file.
33969 * tests/test-array_oset.c: New file.
33971 2007-01-14 Bruno Haible <bruno@clisp.org>
33973 * modules/array-list-tests: New file.
33974 * tests/test-array_list.c: New file.
33976 2007-01-14 Bruno Haible <bruno@clisp.org>
33978 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
33980 Reported by Simon Josefsson in
33981 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
33983 2007-01-14 Bruno Haible <bruno@clisp.org>
33985 * modules/allocsa-tests: New file.
33986 * tests/test-allocsa.c: New file.
33988 2007-01-14 Bruno Haible <bruno@clisp.org>
33990 * modules/fchdir (Depends-on): Add absolute-header.
33991 * modules/unistd (Depends-on): Likewise.
33993 2006-12-30 Bruno Haible <bruno@clisp.org>
33995 * modules/fchdir: New file.
33996 * modules/unistd (Files): Add lib/unistd_.h.
33997 (Makefile.am): Generate unistd.h from unistd_.h.
33998 * lib/fchdir.c: New file.
33999 * lib/dirent_.h: New file.
34000 * lib/unistd_.h: New file.
34001 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
34002 * m4/fchdir.m4: New file.
34003 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
34004 (gl_HEADER_UNISTD): Invoke it.
34005 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
34007 * lib/backupfile.c (opendir, closedir): Undefine.
34008 * lib/chown.c (open, close): Undefine.
34009 * lib/clean-temp.c (open, close): Undefine.
34010 * lib/copy-file.c (open, close): Undefine.
34011 * lib/execute.c (open, close): Undefine.
34012 * lib/fsusage.c (open, close): Undefine.
34013 * lib/gc-gnulib.c (open, close): Undefine.
34014 * lib/getcwd.c (opendir, closedir): Undefine.
34015 * lib/glob.c (opendir, closedir): Undefine.
34016 * lib/javacomp.c (open, close): Undefine.
34017 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
34018 * lib/openat-proc.c (open, close): Undefine.
34019 * lib/pagealign_alloc.c (open, close): Undefine.
34020 * lib/pipe.c (open, close): Undefine.
34021 * lib/progreloc.c (open, close): Undefine.
34022 * lib/savedir.c (opendir, closedir): Undefine.
34023 * lib/utime.c (open, close): Undefine.
34024 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
34026 2007-01-10 Bruno Haible <bruno@clisp.org>
34028 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
34030 2007-01-12 Eric Blake <ebb9@byu.net>
34032 Provide a robust <wchar.h>. Further simplifications are now
34033 possible in other modules, but not included here.
34034 * modules/wchar: New module.
34035 * m4/wchar.m4: New file.
34036 * lib/wchar_.h: Likewise.
34037 * modules/mbchar (Depends-on): Depend on wchar, as the first use
34039 * MODULES.html.sh (Extended multibyte and wide character utilities):
34042 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
34044 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
34045 to a reasonable default for memory allocation.
34046 (xreadlink): Don't allocate a huge buffer, to work around a buggy
34047 file system that reports garbage st_size values for symlinks.
34048 Problem reported by Liyang Hu.
34050 2007-01-11 Simon Josefsson <simon@josefsson.org>
34052 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
34053 Emacs .#* auto-save files).
34055 2007-01-11 Bruno Haible <bruno@clisp.org>
34057 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
34060 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
34062 Use @...@ consistently in lib/wctype_.h.
34063 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
34064 on it being set to 1 or 0.
34065 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
34066 go back to AC_SUBSTing it.
34067 * modules/wctype (Makefile.am): Undo previous change.
34069 2007-01-10 Eric Blake <ebb9@byu.net>
34071 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
34072 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
34073 * modules/wctype (Makefile.am): Likewise.
34074 Reported by Chris McGuire.
34076 2007-01-10 Jim Meyering <jim@meyering.net>
34078 fts.c: a small readability/maintainability improvement
34079 * lib/fts.c (fts_read): Make this code slightly more readable and
34080 maintainable by hoisting the "sp->fts_cur = p" assignments to
34081 immediately follow the statements that set P. Derived from
34082 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
34084 2007-01-10 Eric Blake <ebb9@byu.net>
34086 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
34087 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
34088 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
34089 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
34090 Reported by Chris McGuire.
34092 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34094 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
34097 2007-01-09 Bruno Haible <bruno@clisp.org>
34099 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
34100 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
34102 (func_module): Use them.
34104 2007-01-09 Bruno Haible <bruno@clisp.org>
34106 * modules/unistr/base: New file.
34107 * lib/unistr.h: New file.
34109 * modules/unistr/u8-to-u16: New file.
34110 * lib/unistr/u8-to-u16.c: New file.
34112 * modules/unistr/u8-to-u32: New file.
34113 * lib/unistr/u8-to-u32.c: New file.
34115 * modules/unistr/u16-to-u8: New file.
34116 * lib/unistr/u16-to-u8.c: New file.
34118 * modules/unistr/u16-to-u32: New file.
34119 * lib/unistr/u16-to-u32.c: New file.
34121 * modules/unistr/u32-to-u8: New file.
34122 * lib/unistr/u32-to-u8.c: New file.
34124 * modules/unistr/u32-to-u16: New file.
34125 * lib/unistr/u32-to-u16.c: New file.
34127 * modules/unistr/u8-check: New file.
34128 * modules/unistr/u16-check: New file.
34129 * modules/unistr/u32-check: New file.
34130 * lib/unistr/u8-check.c: New file.
34131 * lib/unistr/u16-check.c: New file.
34132 * lib/unistr/u32-check.c: New file.
34134 * modules/unistr/u8-chr: New file.
34135 * modules/unistr/u16-chr: New file.
34136 * modules/unistr/u32-chr: New file.
34137 * lib/unistr/u8-chr.c: New file.
34138 * lib/unistr/u16-chr.c: New file.
34139 * lib/unistr/u32-chr.c: New file.
34141 * modules/unistr/u8-cmp: New file.
34142 * modules/unistr/u16-cmp: New file.
34143 * modules/unistr/u32-cmp: New file.
34144 * lib/unistr/u8-cmp.c: New file.
34145 * lib/unistr/u16-cmp.c: New file.
34146 * lib/unistr/u32-cmp.c: New file.
34148 * modules/unistr/u8-cpy: New file.
34149 * modules/unistr/u16-cpy: New file.
34150 * modules/unistr/u32-cpy: New file.
34151 * lib/unistr/u8-cpy.c: New file.
34152 * lib/unistr/u16-cpy.c: New file.
34153 * lib/unistr/u32-cpy.c: New file.
34154 * lib/unistr/u-cpy.h: New file.
34156 * modules/unistr/u8-cpy-alloc: New file.
34157 * modules/unistr/u16-cpy-alloc: New file.
34158 * modules/unistr/u32-cpy-alloc: New file.
34159 * lib/unistr/u8-cpy-alloc.c: New file.
34160 * lib/unistr/u16-cpy-alloc.c: New file.
34161 * lib/unistr/u32-cpy-alloc.c: New file.
34162 * lib/unistr/u-cpy-alloc.h: New file.
34164 * modules/unistr/u8-endswith: New file.
34165 * modules/unistr/u16-endswith: New file.
34166 * modules/unistr/u32-endswith: New file.
34167 * lib/unistr/u8-endswith.c: New file.
34168 * lib/unistr/u16-endswith.c: New file.
34169 * lib/unistr/u32-endswith.c: New file.
34170 * lib/unistr/u-endswith.h: New file.
34172 * modules/unistr/u8-mblen: New file.
34173 * modules/unistr/u16-mblen: New file.
34174 * modules/unistr/u32-mblen: New file.
34175 * lib/unistr/u8-mblen.c: New file.
34176 * lib/unistr/u16-mblen.c: New file.
34177 * lib/unistr/u32-mblen.c: New file.
34179 * modules/unistr/u8-mbtouc: New file.
34180 * modules/unistr/u16-mbtouc: New file.
34181 * modules/unistr/u32-mbtouc: New file.
34182 * lib/unistr/u8-mbtouc.c: New file.
34183 * lib/unistr/u16-mbtouc.c: New file.
34184 * lib/unistr/u32-mbtouc.c: New file.
34186 * modules/unistr/u8-mbtouc-safe: New file.
34187 * modules/unistr/u16-mbtouc-safe: New file.
34188 * modules/unistr/u32-mbtouc-safe: New file.
34189 * lib/unistr/u8-mbtouc-safe.c: New file.
34190 * lib/unistr/u16-mbtouc-safe.c: New file.
34191 * lib/unistr/u32-mbtouc-safe.c: New file.
34193 * modules/unistr/u8-move: New file.
34194 * modules/unistr/u16-move: New file.
34195 * modules/unistr/u32-move: New file.
34196 * lib/unistr/u8-move.c: New file.
34197 * lib/unistr/u16-move.c: New file.
34198 * lib/unistr/u32-move.c: New file.
34199 * lib/unistr/u-move.h: New file.
34201 * modules/unistr/u8-next: New file.
34202 * modules/unistr/u16-next: New file.
34203 * modules/unistr/u32-next: New file.
34204 * lib/unistr/u8-next.c: New file.
34205 * lib/unistr/u16-next.c: New file.
34206 * lib/unistr/u32-next.c: New file.
34208 * modules/unistr/u8-prev: New file.
34209 * modules/unistr/u16-prev: New file.
34210 * modules/unistr/u32-prev: New file.
34211 * lib/unistr/u8-prev.c: New file.
34212 * lib/unistr/u16-prev.c: New file.
34213 * lib/unistr/u32-prev.c: New file.
34215 * modules/unistr/u8-set: New file.
34216 * modules/unistr/u16-set: New file.
34217 * modules/unistr/u32-set: New file.
34218 * lib/unistr/u8-set.c: New file.
34219 * lib/unistr/u16-set.c: New file.
34220 * lib/unistr/u32-set.c: New file.
34221 * lib/unistr/u-set.h: New file.
34223 * modules/unistr/u8-startswith: New file.
34224 * modules/unistr/u16-startswith: New file.
34225 * modules/unistr/u32-startswith: New file.
34226 * lib/unistr/u8-startswith.c: New file.
34227 * lib/unistr/u16-startswith.c: New file.
34228 * lib/unistr/u32-startswith.c: New file.
34229 * lib/unistr/u-startswith.h: New file.
34231 * modules/unistr/u8-stpcpy: New file.
34232 * modules/unistr/u16-stpcpy: New file.
34233 * modules/unistr/u32-stpcpy: New file.
34234 * lib/unistr/u8-stpcpy.c: New file.
34235 * lib/unistr/u16-stpcpy.c: New file.
34236 * lib/unistr/u32-stpcpy.c: New file.
34237 * lib/unistr/u-stpcpy.h: New file.
34239 * modules/unistr/u8-stpncpy: New file.
34240 * modules/unistr/u16-stpncpy: New file.
34241 * modules/unistr/u32-stpncpy: New file.
34242 * lib/unistr/u8-stpncpy.c: New file.
34243 * lib/unistr/u16-stpncpy.c: New file.
34244 * lib/unistr/u32-stpncpy.c: New file.
34245 * lib/unistr/u-stpncpy.h: New file.
34247 * modules/unistr/u8-strcat: New file.
34248 * modules/unistr/u16-strcat: New file.
34249 * modules/unistr/u32-strcat: New file.
34250 * lib/unistr/u8-strcat.c: New file.
34251 * lib/unistr/u16-strcat.c: New file.
34252 * lib/unistr/u32-strcat.c: New file.
34253 * lib/unistr/u-strcat.h: New file.
34255 * modules/unistr/u8-strchr: New file.
34256 * modules/unistr/u16-strchr: New file.
34257 * modules/unistr/u32-strchr: New file.
34258 * lib/unistr/u8-strchr.c: New file.
34259 * lib/unistr/u16-strchr.c: New file.
34260 * lib/unistr/u32-strchr.c: New file.
34262 * modules/unistr/u8-strcmp: New file.
34263 * modules/unistr/u16-strcmp: New file.
34264 * modules/unistr/u32-strcmp: New file.
34265 * lib/unistr/u8-strcmp.c: New file.
34266 * lib/unistr/u16-strcmp.c: New file.
34267 * lib/unistr/u32-strcmp.c: New file.
34269 * modules/unistr/u8-strcpy: New file.
34270 * modules/unistr/u16-strcpy: New file.
34271 * modules/unistr/u32-strcpy: New file.
34272 * lib/unistr/u8-strcpy.c: New file.
34273 * lib/unistr/u16-strcpy.c: New file.
34274 * lib/unistr/u32-strcpy.c: New file.
34275 * lib/unistr/u-strcpy.h: New file.
34277 * modules/unistr/u8-strcspn: New file.
34278 * modules/unistr/u16-strcspn: New file.
34279 * modules/unistr/u32-strcspn: New file.
34280 * lib/unistr/u8-strcspn.c: New file.
34281 * lib/unistr/u16-strcspn.c: New file.
34282 * lib/unistr/u32-strcspn.c: New file.
34283 * lib/unistr/u-strcspn.h: New file.
34285 * modules/unistr/u8-strdup: New file.
34286 * modules/unistr/u16-strdup: New file.
34287 * modules/unistr/u32-strdup: New file.
34288 * lib/unistr/u8-strdup.c: New file.
34289 * lib/unistr/u16-strdup.c: New file.
34290 * lib/unistr/u32-strdup.c: New file.
34291 * lib/unistr/u-strdup.h: New file.
34293 * modules/unistr/u8-strlen: New file.
34294 * modules/unistr/u16-strlen: New file.
34295 * modules/unistr/u32-strlen: New file.
34296 * lib/unistr/u8-strlen.c: New file.
34297 * lib/unistr/u16-strlen.c: New file.
34298 * lib/unistr/u32-strlen.c: New file.
34299 * lib/unistr/u-strlen.h: New file.
34301 * modules/unistr/u8-strmblen: New file.
34302 * modules/unistr/u16-strmblen: New file.
34303 * modules/unistr/u32-strmblen: New file.
34304 * lib/unistr/u8-strmblen.c: New file.
34305 * lib/unistr/u16-strmblen.c: New file.
34306 * lib/unistr/u32-strmblen.c: New file.
34308 * modules/unistr/u8-strmbtouc: New file.
34309 * modules/unistr/u16-strmbtouc: New file.
34310 * modules/unistr/u32-strmbtouc: New file.
34311 * lib/unistr/u8-strmbtouc.c: New file.
34312 * lib/unistr/u16-strmbtouc.c: New file.
34313 * lib/unistr/u32-strmbtouc.c: New file.
34315 * modules/unistr/u8-strncat: New file.
34316 * modules/unistr/u16-strncat: New file.
34317 * modules/unistr/u32-strncat: New file.
34318 * lib/unistr/u8-strncat.c: New file.
34319 * lib/unistr/u16-strncat.c: New file.
34320 * lib/unistr/u32-strncat.c: New file.
34321 * lib/unistr/u-strncat.h: New file.
34323 * modules/unistr/u8-strncmp: New file.
34324 * modules/unistr/u16-strncmp: New file.
34325 * modules/unistr/u32-strncmp: New file.
34326 * lib/unistr/u8-strncmp.c: New file.
34327 * lib/unistr/u16-strncmp.c: New file.
34328 * lib/unistr/u32-strncmp.c: New file.
34330 * modules/unistr/u8-strncpy: New file.
34331 * modules/unistr/u16-strncpy: New file.
34332 * modules/unistr/u32-strncpy: New file.
34333 * lib/unistr/u8-strncpy.c: New file.
34334 * lib/unistr/u16-strncpy.c: New file.
34335 * lib/unistr/u32-strncpy.c: New file.
34336 * lib/unistr/u-strncpy.h: New file.
34338 * modules/unistr/u8-strnlen: New file.
34339 * modules/unistr/u16-strnlen: New file.
34340 * modules/unistr/u32-strnlen: New file.
34341 * lib/unistr/u8-strnlen.c: New file.
34342 * lib/unistr/u16-strnlen.c: New file.
34343 * lib/unistr/u32-strnlen.c: New file.
34344 * lib/unistr/u-strnlen.h: New file.
34346 * modules/unistr/u8-strpbrk: New file.
34347 * modules/unistr/u16-strpbrk: New file.
34348 * modules/unistr/u32-strpbrk: New file.
34349 * lib/unistr/u8-strpbrk.c: New file.
34350 * lib/unistr/u16-strpbrk.c: New file.
34351 * lib/unistr/u32-strpbrk.c: New file.
34352 * lib/unistr/u-strpbrk.h: New file.
34354 * modules/unistr/u8-strrchr: New file.
34355 * modules/unistr/u16-strrchr: New file.
34356 * modules/unistr/u32-strrchr: New file.
34357 * lib/unistr/u8-strrchr.c: New file.
34358 * lib/unistr/u16-strrchr.c: New file.
34359 * lib/unistr/u32-strrchr.c: New file.
34361 * modules/unistr/u8-strspn: New file.
34362 * modules/unistr/u16-strspn: New file.
34363 * modules/unistr/u32-strspn: New file.
34364 * lib/unistr/u8-strspn.c: New file.
34365 * lib/unistr/u16-strspn.c: New file.
34366 * lib/unistr/u32-strspn.c: New file.
34367 * lib/unistr/u-strspn.h: New file.
34369 * modules/unistr/u8-strstr: New file.
34370 * modules/unistr/u16-strstr: New file.
34371 * modules/unistr/u32-strstr: New file.
34372 * lib/unistr/u8-strstr.c: New file.
34373 * lib/unistr/u16-strstr.c: New file.
34374 * lib/unistr/u32-strstr.c: New file.
34375 * lib/unistr/u-strstr.h: New file.
34377 * modules/unistr/u8-strtok: New file.
34378 * modules/unistr/u16-strtok: New file.
34379 * modules/unistr/u32-strtok: New file.
34380 * lib/unistr/u8-strtok.c: New file.
34381 * lib/unistr/u16-strtok.c: New file.
34382 * lib/unistr/u32-strtok.c: New file.
34383 * lib/unistr/u-strtok.h: New file.
34385 * modules/unistr/u8-uctomb: New file.
34386 * modules/unistr/u16-uctomb: New file.
34387 * modules/unistr/u32-uctomb: New file.
34388 * lib/unistr/u8-uctomb.c: New file.
34389 * lib/unistr/u16-uctomb.c: New file.
34390 * lib/unistr/u32-uctomb.c: New file.
34392 * MODULES.html.sh (Unicode string functions): Add the new modules.
34394 2007-01-08 Bruno Haible <bruno@clisp.org>
34396 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
34397 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
34400 2007-01-08 Karl Berry <karl@gnu.org>
34402 * doc/error.texi: mention that main() fns must set program_name
34403 when progname is used.
34405 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
34407 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
34408 WCTYPE_H is empty, for the benefit of builds from non-distclean
34409 directories. Problem reported by Eric Blake in
34410 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
34412 2007-01-08 Bruno Haible <bruno@clisp.org>
34414 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
34415 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
34416 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
34417 PROVIDE_CANONICALIZE_FILENAME_MODE.
34418 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
34420 2007-01-08 Bruno Haible <bruno@clisp.org>
34422 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
34423 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
34424 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
34425 * lib/fts.c: Likewise.
34426 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
34428 2006-12-25 Bruno Haible <bruno@clisp.org>
34430 * modules/utf8-ucs4-safe: New file.
34431 * lib/utf8-ucs4-safe.h: New file.
34432 * lib/unistr/utf8-ucs4-safe.c: New file.
34434 * modules/utf16-ucs4-safe: New file.
34435 * lib/utf16-ucs4-safe.h: New file.
34436 * lib/unistr/utf16-ucs4-safe.c: New file.
34438 * MODULES.html.sh (Unicode string functions): Add the new modules.
34440 2007-01-08 Bruno Haible <bruno@clisp.org>
34442 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
34443 (Depends-on): Add unitypes.
34444 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
34445 (u8_mbtouc_aux): Move out to separate file.
34446 (u8_mbtouc): Use ucs4_t, uint8_t types.
34447 * lib/unistr/utf8-ucs4.c: New file.
34449 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
34450 (Depends-on): Add unitypes.
34451 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
34452 (u16_mbtouc_aux): Move out to separate file.
34453 (u16_mbtouc): Use ucs4_t, uint16_t types.
34454 * lib/unistr/utf16-ucs4.c: New file.
34456 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
34457 (Depends-on): Add unitypes.
34458 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
34459 (u8_uctomb_aux): Move out to separate file.
34460 (u8_uctomb): Use ucs4_t, uint8_t types.
34461 * lib/unistr/ucs4-utf8.c: New file.
34463 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
34464 (Depends-on): Add unitypes.
34465 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
34466 (u16_uctomb_aux): Move out to separate file.
34467 (u16_uctomb): Use ucs4_t, uint16_t types.
34468 * lib/unistr/ucs4-utf16.c: New file.
34470 2006-12-25 Bruno Haible <bruno@clisp.org>
34472 * modules/unitypes: New file.
34473 * lib/unitypes.h: New file.
34474 * MODULES.html.sh (func_all_modules): New section "Unicode string
34475 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
34476 this section. Add unitypes.
34478 2007-01-08 Bruno Haible <bruno@clisp.org>
34480 Avoid variable names that conflict with those from libtool.
34481 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
34482 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
34483 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
34484 library_names_spec to acl_library_names_spec, hardcode_* to
34486 Reported by Ralf Wildenhues.
34488 2007-01-08 Bruno Haible <bruno@clisp.org>
34490 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
34492 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
34494 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
34495 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
34497 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
34499 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
34500 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
34501 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
34502 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
34504 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
34506 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
34507 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
34508 GC_USE_<algorithm>.
34509 * lib/gc-libgcrypt.c: Likewise.
34510 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
34511 * modules/gc-arctwo (configure.ac): Likewise.
34512 * modules/gc-des (configure.ac): Likewise.
34513 * modules/gc-hmac-md5 (configure.ac): Likewise.
34514 * modules/gc-hmac-sha1 (configure.ac): Likewise.
34515 * modules/gc-md2 (configure.ac): Likewise.
34516 * modules/gc-md4 (configure.ac): Likewise.
34517 * modules/gc-md5 (configure.ac): Likewise.
34518 * modules/gc-random (configure.ac): Likewise.
34519 * modules/gc-rijndael (configure.ac): Likewise.
34520 * modules/gc-sha1 (configure.ac): Likewise.
34522 2007-01-08 Bruno Haible <bruno@clisp.org>
34524 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
34526 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
34528 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
34530 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
34531 * modules/fcntl-safer (configure.ac): Likewise.
34532 * modules/fopen-safer (configure.ac): Likewise.
34533 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
34534 GNULIB_FWRITEERROR macro definition.
34536 2007-01-08 Bruno Haible <bruno@clisp.org>
34538 * m4/gnulib-common.m4: New file.
34539 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
34540 (func_get_filelist): Add m4/gnulib-common.m4.
34542 2007-01-08 Bruno Haible <bruno@clisp.org>
34544 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
34547 2007-01-08 Jim Meyering <jim@meyering.net>
34549 Use a more robust test for a "can't happen" condition.
34550 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
34551 narrowed the st_size value. Presuming the "can't happen" condition
34552 is true, that narrowing could conceivably convert an invalid st_size
34553 value into a valid one. Instead, use a change based on Matthew
34554 Woehlke's original patch.
34556 Slight readability improvement: use an assert-like macro
34557 in place of literal "abort ()" uses.
34558 * lib/fts.c (fts_assert): Define.
34559 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
34560 Use this macro instead of a bare 'abort'.
34562 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
34564 Don't worry about using IRIX 5.3's wctype.h broken definitions;
34565 simply work around them.
34566 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
34567 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
34568 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
34570 Don't bother to define as macros, since the standard doesn't require it.
34571 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
34572 longer worry about IRIX 5.3.
34573 (HAVE_WCTYPE_CTMP_BUG): Remove.
34575 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
34577 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
34578 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
34579 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
34580 Problems reported by Georg Schwarz for IRIX 5.3.
34582 * gnulib-tool (autoconf_minversion): Take the maximum version number
34583 found, not the minimum. Problem reported by James Youngman.
34585 2007-01-03 Karl Berry <karl@gnu.org>
34587 * doc/error.texi: new file, explaining interaction with progname.
34588 * doc/gnulib.texi: include it. Update copyright.
34590 2007-01-03 Simon Josefsson <simon@josefsson.org>
34592 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
34593 AC_CANONICAL_HOST, to improve autobuild outputs.
34595 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
34596 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34598 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
34599 sockets, server sockets, and other file descriptors. Count errors
34600 to compute the return value. Reorder the code a bit to be easier
34601 to follow. Don't set event bits that were not requested (except
34602 POLLERR and POLLHUP).
34604 2007-01-01 Bruno Haible <bruno@clisp.org>
34606 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
34608 2007-01-03 Jim Meyering <jim@meyering.net>
34610 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
34612 2007-01-02 Bruno Haible <bruno@clisp.org>
34614 * modules/settime (Include): Require timespec.h.
34615 * modules/nanosleep (Include): Likewise.
34617 2007-01-01 Bruno Haible <bruno@clisp.org>
34619 * gnulib-tool (func_emit_copyright_notice): Bump year.
34620 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
34622 2007-01-01 Bruno Haible <bruno@clisp.org>
34624 Improve support for OpenBSD.
34625 * build-aux/config.rpath (libname_spec): Export.
34626 (library_names_spec): New variable. Export.
34627 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
34628 library_names_spec from the config.rpath output. Locate shared library
34629 through the name pattern in library_names_spec.
34631 2007-01-01 Eric Blake <ebb9@byu.net>
34633 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
34635 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
34637 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
34638 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
34639 assume the C locale, and avoid an "eval" that could cause trouble.
34640 Problem with SORT reported by Bob Proulx.
34642 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
34643 Define. Trivial patch from Henning Nielsen Lund, originally
34644 sent to bug-grep@gnu.org today.
34646 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
34648 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
34649 struct stat. Problem reported by Henning Nielsen Lund.
34650 * lib/acl.c: Include acl.h first, to check interface. Don't
34651 bother to include sys/types.h and sys/stat.h again.
34653 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
34655 Import the following change from libc; problem reported by
34658 2005-10-13 Ulrich Drepper <drepper@redhat.com>
34661 * lib/argp.h: Remove __NTH for __argp_usage inline function.
34663 2006-12-28 Jim Meyering <jim@meyering.net>
34665 * build-aux/announce-gen: Do not assume that the package
34666 builds any of tar.gz, tar.bz2, and .xdelta files.
34667 Suggestion from Simon Josefsson.
34669 2006-12-28 Simon Josefsson <simon@josefsson.org>
34671 * modules/announce-gen: New file.
34673 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
34675 * lib/mbchar.h: Just include <wctype.h>; the wctype module
34676 handles its gotchas now.
34677 * lib/mbswidth.c: Likewise.
34678 * lib/wcwidth.h: Likewise.
34679 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
34680 and iswcntrl; the wctype module does this stuff now.
34681 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34682 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
34683 * modules/mbchar (Depends-on): Add wctype.
34684 * modules/mbswidth (Depends-on): Likewise.
34685 * modules/wcwidth (Depends-on): Likewise.
34687 2006-12-27 Eric Blake <ebb9@byu.net>
34689 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
34690 module uses more than what <wctype.h> is required to provide.
34692 2006-12-26 Eric Blake <ebb9@byu.net>
34694 * gnulib-tool (sed_extract_prog): Avoid space-tab.
34696 2006-12-26 Eric Blake <ebb9@byu.net>
34698 * modules/absolute-header: New module.
34699 * modules/fcntl (Depends-on): Depend on it.
34700 * modules/inttypes (Depends-on): Likewise.
34701 * modules/stdint (Depends-on): Likewise.
34702 * modules/sys_stat (Depends-on): Likewise.
34703 * modules/wctype (Depends-on): Likewise.
34704 * MODULES.html.sh (Support for building libraries and
34705 executables): Document it.
34707 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
34709 * gnulib-tool (SED): Remove, undoing previous change.
34710 The problem was that it broke coreutils on Solaris, because
34711 "sed --posix" leaked into a makefile.
34712 (sed): New alias, if 'alias' and GNU sed.
34714 2006-12-24 Jim Meyering <jim@meyering.net>
34716 Work around an fchownat bug in glibc-2.4:
34717 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
34718 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
34719 in spite of the -P option.
34720 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
34722 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
34723 * modules/openat (Files): Add lib/fchownat.c.
34724 * lib/openat.c (fchownat): Don't define here. Move to...
34725 * lib/fchownat.c: ...this new file.
34727 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
34729 Fix bug reported by Bruno Haible in
34730 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
34731 where quotearg.c didn't compile on Mac OS X 10.2 because it
34732 lacks <wchar.h> and wint_t.
34733 * lib/wctype_.h (__wctype_wint_t): New type.
34734 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
34735 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
34736 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
34737 Arg is now of type __wctype_wint_t, not wint_t.
34738 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
34739 substitute HAVE_WINT_T.
34740 * modules/wctype (Files): Add m4/wint_t.m4.
34741 (wctype.h): Substitute HAVE_WINT_T.
34743 2006-12-23 Bruno Haible <bruno@clisp.org>
34745 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
34747 2006-12-23 Bruno Haible <bruno@clisp.org>
34749 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
34751 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
34754 2006-12-22 Bruno Haible <bruno@clisp.org>
34756 * lib/copy-file.c: Include acl.h.
34757 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
34758 Close the file descriptors only after being done with copy_acl.
34759 * modules/copy-file (Depends-on): Add acl.
34761 2006-12-22 Bruno Haible <bruno@clisp.org>
34763 * gnulib-tool (SED): New variable.
34764 Use $SED instead of sed everywhere.
34766 2006-12-22 Bruno Haible <bruno@clisp.org>
34768 * modules/no-c++: New file.
34769 * m4/no-c++.m4: New file.
34770 * MODULES.html.sh (Support for building libraries and executables):
34773 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
34775 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
34776 Include <limits.h>, and use its INT_MAX to rewrite the
34777 j loop so that it does not overflow 'int'. Problem reported by
34779 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
34780 Play it safe by shifting left by 1 rather than multiplying by 2,
34781 as GCC is less likely to optimize this away when the value
34782 is signed (when it assumes overflow leads to undefined behavior).
34783 Also, don't assume time_t uses two's complement.
34785 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
34787 * MODULES.html.sh: New module wctype.
34788 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
34789 * lib/fnmatch.c: Don't bother to include <wchar.h> before
34790 <wctype.h>, since the new wctype module should fix this.
34791 * lib/quotearg.c: Include <wctype.h> unconditionally, since
34792 the wctype module should arrange for it.
34793 * lib/regex_internal.h: Likewise.
34794 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
34795 since the wctype module should handle this now.
34796 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
34797 * modules/fnmatch (Depends-on): Add wctype.
34798 * modules/quotearg (Depends-on): Likewise.
34799 * modules/regex (Depends-on): Likewise.
34801 2006-12-19 Bruno Haible <bruno@clisp.org>
34803 * lib/strdup.h [C++]: Wrap definitions in extern "C".
34804 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
34806 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34808 * modules/savewd (Depends-on): Fix dependency on fcntl.
34810 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
34812 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
34813 conforms to C99, rather than relying on the user's environment
34814 setting of STDINT_H.
34816 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
34817 and Eric Blake <ebb9@byu.net>
34819 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
34820 This is more consistent with the other defines here.
34821 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
34822 Port to z/OS. Problem reported by Paul Gilmartin.
34823 Change local vars to use gl_ prefix rather than ac_.
34824 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
34825 with other defines.
34826 * modules/double-slash-root: New module.
34827 * modules/dirname (Files): Remove m4/double-slash-root.m4.
34828 (Depends-on): Add double-slash-root.
34829 * MODULES.html.sh (File system functions): Mention new module.
34831 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
34833 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
34834 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
34835 This is for the benefit of gzip, which doesn't do i18n.
34837 2006-12-12 Jim Meyering <jim@meyering.net>
34839 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
34840 Reported by Andreas Schwab <schwab@suse.de>.
34842 2006-12-12 Bruno Haible <bruno@clisp.org>
34844 Merge these changes.
34845 2006-09-05 Bruno Haible <bruno@clisp.org>
34846 * lib/iconvme.c (iconv_string): No need to save and restore errno when
34847 iconv_alloc succeeded.
34848 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
34849 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
34850 test for " && dest " at the end - dest is always != NULL there. Call
34851 iconv with 4xNULL arguments initially, to reset the state. Call iconv
34852 with 2xNULL arguments, also to flush the state storage. Handle the
34853 IRIX iconv behaviour. Realloc the final result, to throw away unused
34856 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
34858 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
34859 and fchmodat unconditionally, since glibc 2.4 has them.
34860 Problem reported by Arkadiusz Miskiewicz.
34862 2006-12-10 Bruno Haible <bruno@clisp.org>
34864 * gnulib-tool (func_import): Show the include files only for those
34865 modules that are copied and specified.
34866 Reported by Karl Berry.
34868 2006-12-08 Jim Meyering <jim@meyering.net>
34870 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
34871 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
34873 * build-aux/announce-gen: Add two new options, both optional:
34874 --bootstrap-tools=TOOL_LIST
34875 a comma-separated list of tools, e.g.,
34876 autoconf,automake,bison,gnulib
34877 --gnulib-snapshot-date=DATE
34878 if gnulib is in the bootstrap tool list,
34879 then report this as the snapshot date.
34880 If not specified, use the current date/time.
34881 If you specify a date here, be sure it's UTC.
34883 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34885 * tests/test-argp-2.sh: Fix test to match actual output.
34886 (func_compare): Fix sed script to be portable.
34888 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
34890 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
34891 workaround for this case. It is not autoconfigured now; offhand
34892 it's hard to see how to autoconfigure it.
34894 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
34896 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
34897 a directory that is about to be chowned. Such a directory's
34898 initial file permissions should permit the owner only and this
34899 should not be changed until after the chown, since the group and
34900 other bits would be incorrect if they granted permission before
34903 Fix porting problem for iswctype reported by Georg Schwarz in:
34904 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
34905 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
34906 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
34907 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
34908 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34910 2006-12-03 Jim Meyering <jim@meyering.net>
34912 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
34913 p->fts_statp may not yet be defined.
34914 (fts_read): Instead, set it in the caller, once p->fts_statp is
34915 sure to be defined, and corresponds to a top-level directory.
34916 This bug made du -x fail. Here's the coreutils test case:
34917 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
34918 Reported by Mike Frysinger.
34920 2006-12-01 Jim Meyering <jim@meyering.net>
34922 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
34923 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
34924 Reported by Simon Josefsson.
34926 2006-11-30 Jim Meyering <jim@meyering.net>
34928 * m4/warning.m4: Use the all-permissive copyright notice
34929 recommended by RMS (rather than LGPL).
34930 * m4/vararrays.m4: Likewise.
34931 * m4/flexmember.m4: Likewise.
34933 2006-11-29 Bruno Haible <bruno@clisp.org>
34935 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34936 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
34938 Reported by Simon Josefsson <simon@josefsson.org>.
34940 2006-11-28 James Youngman <jay@gnu.org>
34942 * README: Advise users that they might find the bug-gnulib@gnu.org
34943 and autotools-announce@gnu.org mailing lists useful.
34945 2006-11-28 Bruno Haible <bruno@clisp.org>
34947 * m4/ptrdiff_max.m4: Remove file.
34949 2006-11-21 Bruno Haible <bruno@clisp.org>
34951 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
34953 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34954 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
34956 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34957 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
34959 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34961 2006-11-28 Jim Meyering <jim@meyering.net>
34963 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
34964 warning from "gcc -Wshadow" about shadowing the builtin.
34966 2006-11-27 Bruno Haible <bruno@clisp.org>
34968 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
34970 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
34972 2006-11-27 Bruno Haible <bruno@clisp.org>
34973 Paul Eggert <eggert@cs.ucla.edu>
34975 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
34977 2006-11-26 Bruno Haible <bruno@clisp.org>
34979 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34980 noinst_LTLIBRARIES.
34982 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
34983 Bruno Haible <bruno@clisp.org>
34985 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
34986 if compiling with "gcc -ansi".
34988 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
34990 Fix some incompatibilities with gcc -ansi -pedantic.
34991 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
34992 if compiling pedantically with GCC, unless it's C99 or later.
34993 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
34994 it mishandles gcc -ansi -pedantic as well.
34995 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
34997 * lib/regexec.c (check_node_accept_bytes): Don't use auto
34998 initializers for struct if -pedantic, unless it's C99 or later.
35000 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
35002 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
35003 Don't close an fd more than once. Identical atimes indicate
35004 success, not failure.
35006 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
35008 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
35010 2006-11-23 Jim Meyering <jim@meyering.net>
35012 * build-aux/announce-gen: New file. From coreutils.
35014 2006-11-22 Jim Meyering <jim@meyering.net>
35016 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
35017 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
35018 (fts_read): Use a temporary to narrow the overused st_size member
35019 before using it in a switch statement. Reported by Matthew Woehlke.
35021 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
35022 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35024 2006-11-20 Bruno Haible <bruno@clisp.org>
35026 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
35027 changequote instead of pairs of brackets.
35028 Reported by Andreas Schwab <schwab@suse.de>.
35030 2006-11-21 Jim Meyering <jim@meyering.net>
35032 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
35033 so as to remain compatible with older compilers.
35034 Patch from Michael Deutschmann.
35036 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
35038 * MODULES.html.sh (File system functions): Add openat.
35040 * lib/openat.h (rpl_fstatat): New macro, if
35041 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
35042 (fstatat): Define to rpl_fstatat under the same conditions,
35043 unless COMPILING_FSTATAT.
35044 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
35045 seems to have the bug.
35046 * lib/fstatat.c: New file.
35047 * modules/openat (Files): Add it.
35049 2006-11-20 Bruno Haible <bruno@clisp.org>
35051 * Makefile: New file.
35053 2006-11-20 Jim Meyering <jim@meyering.net>
35055 The beginnings of syntax-related checks for gnulib.
35056 * lib/Makefile: New file.
35057 * lib/t-idcache: New script. Ensure that the two halves of
35058 idcache.c stay in sync.
35060 * lib/idcache.c: Adjust comments in user- and group- portions to
35061 be more accurate, and to be consistent with one another.
35063 2006-11-20 Jim Meyering <jim@meyering.net>
35065 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
35066 continue using the flexible array member (thus, this module performs
35067 half as many malloc calls), with the addition that...
35068 (getgroup, getuser): Consistently record a non-match via an empty
35069 "name" string, and map an empty string match to a NULL return value.
35070 * modules/idcache (Depends-on): Re-add flexmember.
35072 * lib/idcache.c (getuser): Remove all uses of the register keyword.
35073 (getuidbyname, getgroup, getgidbyname): Likewise.
35075 Use cleaner syntax: NULL rather than 0.
35076 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
35078 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
35080 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
35081 It mishandled the case where the group was missing.
35082 Problem reported by Greg Schafer.
35083 * modules/idcache: Likewise.
35085 2006-11-18 Jim Meyering <jim@meyering.net>
35087 * check-module (%exempt_header): Add exception for some
35088 conditionally-included headers.
35090 * modules/i-ring (Depends-on): Add verify.
35091 (License): Change to LGPL.
35093 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
35095 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
35096 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
35097 and inttostr.h. Use snprintf rather than uinttostr, so that
35098 LGPLed code doesn't depend on GPLed.
35100 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
35102 * modules/inline (License): Change from GPL to LGPL.
35104 2006-11-17 Jim Meyering <jim@meyering.net>
35106 * modules/d-type (License): Switch to LGPL.
35108 2006-11-15 Bruno Haible <bruno@clisp.org>
35110 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
35112 2006-11-15 Eric Blake <ebb9@byu.net>
35114 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
35115 the module dependency.
35117 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35118 Bruno Haible <bruno@clisp.org>
35120 * gnulib-tool (func_create_testdir): Add license consistency check.
35122 2006-11-15 Eric Blake <ebb9@byu.net>
35124 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
35125 random "(cached)" in configure output.
35127 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35129 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
35130 test for conforming inttypes.h is both announced and cached.
35132 * MODULES.html.sh (seen_modules, seen_files): New variables.
35133 (func_module): Rewrite to use a few less gnulib-tool and sed
35134 invocations. Avoid a couple of quadratic algorithms for ...
35135 (missed_modules, missed_files): ... these, with ...
35136 (func_append, func_tmpdir): ... these new functions, from
35137 gnulib-tool. Analogously, install traps for cleanup.
35139 * tests/test-gc.c (main): Remove unused variables.
35140 * tests/test-read-file.c: Include stdlib.h, for 'free'.
35142 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
35144 * modules/inttostr (License): Change to LGPL.
35146 2006-11-14 Eric Blake <ebb9@byu.net>
35148 * modules/tempname (License): Change to LGPL.
35150 2006-11-14 Eric Blake <ebb9@byu.net>
35152 * doc/functions.texi (Function Portability): *printf functions on
35153 Cygwin now understand all POSIX size specifiers.
35155 2006-11-14 Bruno Haible <bruno@clisp.org>
35157 * modules/c-ctype (License): Change to LGPL.
35159 2006-11-12 Bruno Haible <bruno@clisp.org>
35161 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
35162 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
35163 for GNOME libraries, for which the include files are installed in
35164 subdirectories of $prefix/include.
35166 2006-11-12 Bruno Haible <bruno@clisp.org>
35168 * m4/lib-link.m4: Require at least autoconf-2.54.
35169 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
35170 name to underscores for the --with option.
35172 2006-11-13 Bruno Haible <bruno@clisp.org>
35174 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
35175 the tests directory.
35176 Reported by Ralf Wildenhues.
35178 2006-11-13 Bruno Haible <bruno@clisp.org>
35180 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
35181 (func_emit_initmacro_end): Undo the override here.
35182 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
35183 Works around the famous automake error in coreutils.
35185 2006-11-13 Eric Blake <ebb9@byu.net>
35187 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
35188 element, not its node.
35190 2006-11-12 Bruno Haible <bruno@clisp.org>
35192 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
35193 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
35195 2006-11-12 Bruno Haible <bruno@clisp.org>
35197 * gnulib-tool: New option --local-symlink.
35198 (func_usage): Document it.
35199 (lsymbolic): New variable.
35200 (func_import, func_create_testdir): If --symlink was not specified,
35201 test whether --local-symlink was specified and the file comes from
35202 the local_gnulib_dir.
35204 2006-11-12 Bruno Haible <bruno@clisp.org>
35206 * gnulib-tool (func_ln): New function.
35207 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
35209 2006-11-12 Bruno Haible <bruno@clisp.org>
35211 Finish support for source files in subdirectories.
35212 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
35213 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
35215 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
35217 2006-11-12 Bruno Haible <bruno@clisp.org>
35219 * gnulib-tool (func_get_automake_snippet): Synthesize also an
35220 EXTRA_lib_SOURCES augmentation.
35221 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
35223 2006-11-12 Jim Meyering <jim@meyering.net>
35225 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
35226 file descriptors. This also averts a failure on systems with
35227 native openat support when a traversed directory lacks "x" access.
35228 * lib/fts_.h: Include "i-ring.h"
35229 (struct FTS) [fts_fd_ring]: New member.
35230 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
35231 (FCHDIR): Add parentheses.
35232 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
35233 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
35234 When descending, rather than simply closing the previous
35235 fts_cwd_fd value, push that file descriptor onto the ring.
35236 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
35237 (fts_open): Initialize the new fd_ring member.
35238 (fts_close): Clear the ring.
35239 (fts_safe_changedir): When possible, use our new fd_ring to skip
35240 the diropen and fstat and dev/ino comparison that would normally
35241 accompany a virtual `chdir ("..")'.
35243 * modules/fts (Depends-on): Add i-ring.
35244 * modules/i-ring: New module.
35245 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
35246 * m4/i-ring.m4: New file.
35248 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35250 * gnulib-tool (func_create_testdir): Fix replacement of
35251 `build-aux' in configure.ac. Run autotools in gltests
35253 (func_create_testdir, func_create_megatestdir, test): There is
35254 no need for '--force' in most autotool invocations in a new
35255 tree. Actually fail the whole test if any of the tools, or the
35256 configure or make stages fail.
35258 Sync from Automake.
35259 * build-aux/gnupload: Revert last change. Add pointer to upload
35260 instructions of the GNU Maintenance Instructions.
35261 Suggestion by Karl Berry.
35263 2006-11-10 Jim Meyering <jim@meyering.net>
35265 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
35267 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
35269 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
35270 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
35271 (bind_textdomain_codeset) [! ENABLE_NLS]:
35272 Evaluate all the arguments. That way, callers get compatible behavior
35273 if the arguments have side effects. Also, it avoids some GCC
35274 diagnostics in some cases; Joel E. Denny reported problems when Bison
35275 was configured with --enable-gcc-warnigs.
35277 2006-11-10 Jim Meyering <jim@meyering.net>
35279 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
35280 relevant options in CFLAGS (like -O, -fno-inline) are taken into
35283 2006-11-10 Jim Meyering <jim@meyering.net>
35285 * modules/inline: New file/module.
35286 * modules/xalloc (Files): Remove m4/inline.m4.
35287 (Depends-on): Add inline, instead.
35288 * modules/oset: Likewise.
35289 * modules/list: Likewise.
35291 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
35293 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
35294 Problem reported by Matthew Woehlke.
35296 2006-11-09 Bruno Haible <bruno@clisp.org>
35298 * lib/tempname.c (gen_tempname): Remove variant that invokes
35300 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
35303 2006-11-08 Bruno Haible <bruno@clisp.org>
35305 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
35306 to 'yes' instead of 'cross-compiling'.
35308 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
35310 * lib/quotearg.h (quotearg_free): New decl.
35311 * lib/quotearg.c (quotearg_free): New function.
35312 (slot0, nslots, slotvec0, slotvec):
35313 Now file-scope so that quotearg_free can get at them.
35315 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35317 Sync from Automake.
35318 * build-aux/gnupload: Add missing 'gnu' to example URL.
35319 Report by Karl Berry.
35321 2006-11-08 Bruno Haible <bruno@clisp.org>
35323 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
35324 Suggested by Paul Eggert.
35326 2006-11-08 Jim Meyering <jim@meyering.net>
35328 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
35329 It's already included if !_LIBC.
35330 (fts_safe_changedir): Add a comment.
35332 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
35334 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
35335 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
35338 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
35339 definitions up, to avoid colliding with change below.
35340 (static_inline) [HAVE_INLINE]: New macro.
35341 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
35342 Provide extern decls when !HAVE_INLINE. Do not define unless
35343 static_inline is defined, either by us or by xmalloc.c. Use
35344 static_inline rather than static inline.
35345 (XCALLOC): Optimize sizeof(T) = 1 case.
35346 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
35348 2006-11-07 Bruno Haible <bruno@clisp.org>
35350 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
35351 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
35353 * modules/xalloc (Files): Add m4/inline.m4.
35355 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35357 * README: Fix typo.
35358 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
35359 (Miscellanous Notes): ...from this.
35361 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
35363 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
35364 Mention that offsetof should be used instead of sizeof.
35367 2006-11-07 Bruno Haible <bruno@clisp.org>
35369 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
35371 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
35373 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
35374 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
35375 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
35376 (gl_tree_add_before, gl_tree_add_after):
35377 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
35378 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
35379 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35380 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
35381 (gl_linked_add_after, gl_linked_add_at): Likewise.
35382 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
35383 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
35384 (gl_tree_add_before, gl_tree_add_after): Likewise.
35385 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
35386 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
35387 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
35389 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35391 * lib/gl_oset.h: Use C comment style, not C++ comment style.
35393 2006-11-06 Bruno Haible <bruno@clisp.org>
35395 * m4/inline.m4: New file.
35396 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
35397 * modules/list (Files): Add m4/inline.m4.
35398 * modules/oset (Files): Likewise.
35400 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
35402 * lib/idcache.c: Include <stddef.h>, for offsetof.
35403 (struct userid.name): Change from char * to a flexible array member.
35405 * modules/idcache (Depends-on): Add flexmember.
35407 * MODULES.html.sh (Core language properties): New module flexmember.
35408 * modules/flexmember, m4/flexmember.m4: New files.
35410 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
35411 inline functions that are identical with the old xnmalloc_inline,
35412 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
35413 that we can avoid some unnecessary integer multiplications and
35414 divisions in the common case where the element size is known at
35416 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
35418 (xnboundedmalloc): Remove.
35419 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
35420 arguments, for consistency with rest of this header.
35421 (xcharalloc): Rewrite using XNMALLOC.
35422 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
35423 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
35424 versions have been moved to lib/xalloc.h and renamed to be the
35425 non-*_inline versions.
35426 (xmalloc, xrealloc): Implement without reference to the xnmalloc
35427 and xnrealloc functions, since those functions are now inline and
35429 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
35430 renaming described above.
35431 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
35432 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
35433 captures the dependency in AC_C_INLINE.
35435 New module canonicalize-lgpl, proposed by Charles Wilson in
35436 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
35437 with a few small changes afterwards.
35438 * MODULES.html.sh (File system functions): New module
35440 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
35441 and canonicalize_file_name.
35442 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
35443 * modules/canonicalize-lgpl: New files.
35445 2006-11-05 Bruno Haible <bruno@clisp.org>
35447 * gnulib-tool (func_import, func_create_testdir): Create directories
35448 also for files in subdirectories of lib/.
35450 2006-11-05 Bruno Haible <bruno@clisp.org>
35452 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
35455 2006-11-03 Bruno Haible <bruno@clisp.org>
35457 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
35458 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
35459 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
35460 (xnboundedmalloc): New inline function.
35461 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
35462 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
35464 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
35466 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
35467 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
35468 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
35470 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
35471 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
35473 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
35474 gl_tree_add_after): Use XMALLOC instead of xmalloc.
35475 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
35477 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
35478 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
35479 gl_tree_add_after): Use XMALLOC instead of xmalloc.
35480 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
35481 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
35482 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
35483 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
35485 2006-11-03 Bruno Haible <bruno@clisp.org>
35487 * lib/c-ctype.h [C++]: Define functions without name mangling.
35488 * lib/fwriteerror.h [C++]: Likewise.
35489 * lib/gcd.h [C++]: Likewise.
35490 * lib/linebreak.h [C++]: Likewise.
35492 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
35494 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
35495 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
35496 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
35497 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
35498 Check for functions and headers just once.
35499 Check for declaration of canonicalize_file_name.
35500 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
35502 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
35504 * gnulib-tool (func_import): Fix typo in actioncmd.
35506 2006-11-02 Bruno Haible <bruno@clisp.org>
35508 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
35509 newline sequence in the Makefile.am snippet as a space, like "make"
35511 Reported by Roger Persson <perrog@gmail.com>.
35513 2006-11-01 Bruno Haible <bruno@clisp.org>
35515 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
35516 already declared in <string.h>.
35517 * lib/strcase.h (strncasecmp): Don't declare it if yes.
35519 2006-11-01 Bruno Haible <bruno@clisp.org>
35521 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
35522 * lib/strcase.h: Include <string.h>.
35523 (strcasecmp): Define to rpl_strcasecmp here.
35525 2006-11-01 Bruno Haible <bruno@clisp.org>
35527 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
35529 2006-11-01 Eric Blake <ebb9@byu.net>
35531 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
35533 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
35535 2006-10-29 Bruno Haible <bruno@clisp.org>
35537 Make it compile in C++ mode.
35538 * lib/full-write.c (full_rw): Add a cast.
35540 2006-11-01 Bruno Haible <bruno@clisp.org>
35542 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
35543 be POSIX compliant.
35544 Reported by Roger Persson <perrog@gmail.com>.
35546 2006-11-01 Eric Blake <ebb9@byu.net>
35548 * lib/getopt_.h: Fix comments.
35550 2006-10-31 Eric Blake <ebb9@byu.net>
35552 * modules/tmpdir (Depends-on): Add sys_stat.
35553 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
35554 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
35555 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
35556 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
35559 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
35561 Avoid some C++ diagnostics reported by Bruno Haible.
35562 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
35564 (quotearg_alloc): Use xcharalloc rather than xmalloc.
35565 (struct slotvec): Move to top level.
35566 (quotearg_n_options): Rewrite to avoid xmalloc.
35567 * lib/xalloc.h (xcharalloc): New function.
35568 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
35569 [defined __cplusplus]: Add function template that provides result
35570 type propagation. This part of the change is from Bruno Haible.
35572 2006-10-29 Bruno Haible <bruno@clisp.org>
35574 Make it compile in C++ mode.
35575 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
35576 * lib/strnlen1.c (strnlen1): Cast memchr result.
35577 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
35578 * lib/clean-temp.c (string_equals, string_hash): Add casts.
35579 (create_temp_dir): Rename local variable 'template'.
35580 (compile_csharp_using_sscli): Add cast.
35581 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
35582 * lib/findprog.c (find_in_path): Likewise.
35583 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
35584 * lib/wait-process.c (register_slave_subprocess): Likewise.
35586 2006-10-22 Bruno Haible <bruno@clisp.org>
35588 * modules/tsearch: New file.
35589 * lib/tsearch.h: New file.
35590 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
35591 * m4/tsearch.m4: New file.
35592 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
35594 2006-10-29 Eric Blake <ebb9@byu.net>
35596 * lib/arcfour.c: Assume config.h.
35597 * lib/arctwo.c: Likewise.
35598 * lib/base64.c: Likewise.
35599 * lib/check-version.c: Likewise.
35600 * lib/crc.c: Likewise.
35601 * lib/des.c: Likewise.
35602 * lib/gc-gnulib.c: Likewise.
35603 * lib/gc-libgcrypt.c: Likewise.
35604 * lib/gc-pbkdf2-sha1.c: Likewise.
35605 * lib/getaddrinfo.c: Likewise.
35606 * lib/getdelim.c: Likewise.
35607 * lib/getline.c: Likewise.
35608 * lib/hmac-md5.c: Likewise.
35609 * lib/hmac-sha1.c: Likewise.
35610 * lib/iconvme.c: Likewise.
35611 * lib/md2.c: Likewise.
35612 * lib/md4.c: Likewise.
35613 * lib/memxor.c: Likewise.
35614 * lib/read-file.c: Likewise.
35615 * lib/readline.c: Likewise.
35616 * lib/rijndael-alg-fst.c: Likewise.
35617 * lib/rijndael-api-fst.c: Likewise.
35618 * lib/xgetdomainname.c: Likewise.
35620 2006-10-28 Eric Blake <ebb9@byu.net>
35622 * lib/xstrndup.c: Assume config.h.
35624 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
35626 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
35627 stat-macros.h is now for our own macros, whereas stat_h is for
35628 macros in the <sys/stat.h> name space.
35629 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
35630 (STAT_MACROS_H): Remove.
35631 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
35632 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
35633 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
35634 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
35635 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
35636 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
35637 Move these macros to ...
35638 * lib/stat_.h: here. Don't include stat-macros.h.
35639 * lib/canonicalize.c: Don't include stat-macros.h.
35640 * lib/chown.c: Likewise.
35641 * lib/euidaccess.c: Likewise.
35642 * lib/file-type.c: Likewise.
35643 * lib/filemode.c: Likewise.
35644 * lib/glob.c: Likewise.
35645 * lib/isapipe.c: Likewise.
35646 * lib/lchown.c: Likewise.
35647 * lib/lstat.c: Likewise.
35648 * lib/mkdir-p.c: Likewise.
35649 * lib/rmdir.c: Likewise.
35650 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
35651 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
35652 unless mkdir isn't declared, to speed up 'configure'.
35653 Always create sys/stat.h, since it's unlikely any real sys/stat.h
35654 would define all the S_* symbols.
35655 * modules/canonicalize (Depends-on):
35656 Depend on sys_stat, not stat-macros.
35657 * modules/chown: Likewise.
35658 * modules/euidaccess: Likewise.
35659 * modules/filemode: Likewise.
35660 * modules/file-type: Likewise.
35661 * modules/glob: Likewise.
35662 * modules/isapipe: Likewise.
35663 * modules/lchown: Likewise.
35664 * modules/lstat: Likewise.
35665 * modules/mkancesdirs: Likewise.
35666 * modules/rmdir: Likewise.
35667 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
35668 * modules/modechange: Likewise.
35669 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
35670 (configure.ac): Remove gl_STAT_MACROS.
35671 * modules/sys_stat (Depends-on): Remove stat-macros.
35673 2006-10-27 Bruno Haible <bruno@clisp.org>
35675 * m4/signed.m4: Remove file.
35676 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
35678 * modules/vasnprintf (Files): Remove m4/signed.m4.
35680 2006-10-27 Bruno Haible <bruno@clisp.org>
35682 Update to GNU gettext 0.16.
35683 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
35684 m4/inttypes-h.m4, m4/signed.m4.
35685 * m4/gettext.m4: Update to GNU gettext 0.16.
35686 * m4/intl.m4: New file, from GNU gettext.
35687 * m4/intldir.m4: New file, from GNU gettext.
35688 * config/srclist.txt: Update
35690 2006-10-27 Eric Blake <ebb9@byu.net>
35692 * MODULES.html.sh: Document tempname.
35693 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
35695 (Files): Move lib/tempname.c...
35696 * modules/tempname: ...to this new module.
35697 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
35698 (gl_PREREQ_TEMPNAME): Move...
35699 * m4/tempname.m4: ...to this new file.
35700 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
35701 * modules/sys_stat (Depends-on): Add stat-macros.
35702 * lib/stat_.h (includes): Pick up stat macros.
35703 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
35704 if stat macros are broken.
35705 * lib/tempname.c (includes): No need to include "stat-macros.h".
35706 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
35707 (direxists, __path_search) [!_LIBC]: Don't compile these in
35708 gnulib; the tmpdir module covers that.
35709 * lib/tempname.h: New file.
35711 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
35713 * COPYING: Explain how gnulib-tool converts licence headers.
35714 Almost all wording by Eric Blake.
35716 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
35718 * lib/mbchar.h (is_basic_table): Make read-only.
35719 * lib/mbchar.c (is_basic_table): Likewise.
35720 Reported by John Darrington.
35722 2006-10-25 Bruno Haible <bruno@clisp.org>
35724 * lib/progname.h (set_program_name): Undefine before defining.
35726 2006-10-25 Bruno Haible <bruno@clisp.org>
35728 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
35729 false for non-gcc C++ compilers.
35730 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
35732 2006-10-24 Bruno Haible <bruno@clisp.org>
35734 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
35735 iconv implementations like Irix iconv.
35737 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
35739 * modules/vararrays: New file.
35740 * m4/vararrays.m4: New file, taken from diffutils.
35741 * MODULES.html.sh: New module vararrays.
35743 2006-10-24 Karl Berry <karl@gnu.org>
35745 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
35746 Don't call GNU Unix.
35748 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35750 * users.txt: Add Libtool.
35754 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
35756 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
35757 to gnulib's policy of including config.h unconditionally.
35759 2006-10-24 Bruno Haible <bruno@clisp.org>
35761 * modules/wcwidth (Files): Add m4/wint_t.m4.
35762 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
35763 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
35765 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
35767 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
35768 to pacify GCC with some -W flags enabled. Problem reported by
35771 2006-10-24 Jim Meyering <jim@meyering.net>
35773 * MODULES.html.sh: Remove uinttostr. It's not a module.
35774 Reported by Karl Berry.
35776 2006-10-23 Bruno Haible <bruno@clisp.org>
35778 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
35780 2006-10-24 Bruno Haible <bruno@clisp.org>
35782 * lib/gl_list.h: Use C comment style, not C++ comment style.
35784 2006-10-23 Eric Blake <ebb9@byu.net>
35786 * lib/getaddrinfo.c (includes): Add missing include.
35788 2006-10-23 Bruno Haible <bruno@clisp.org>
35789 Paul Eggert <eggert@cs.ucla.edu>
35791 Ability to rename obstack_free.
35792 * lib/obstack.h (__obstack_free): New macro. Declare instead of
35794 (obstack_free): Invoke the __obstack_free macro.
35795 * lib/obstack.c (obstack_free): Use __obstack_free macro.
35797 2006-10-23 Bruno Haible <bruno@clisp.org>
35798 Paul Eggert <eggert@cs.ucla.edu>
35800 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
35801 __argc, __argv from the declaration. (They are defined as macros on
35804 2006-10-22 Bruno Haible <bruno@clisp.org>
35806 * doc/gnulib-intro.texi: New file.
35807 * doc/gnulib.texi: Include it.
35809 2006-10-21 Bruno Haible <bruno@clisp.org>
35811 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
35812 "Introduction", "Miscellanous Notes", "Particular Modules".
35814 2006-10-21 Bruno Haible <bruno@clisp.org>
35816 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35817 Change mostlyclean-local rule to avoid sh syntax error from bash
35818 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
35820 2006-10-23 Jim Meyering <jim@meyering.net>
35822 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
35823 in place of snprintf.
35825 * modules/inttostr (Files): Add lib/uinttostr.c.
35826 * lib/uinttostr.c (inttostr): New file/function.
35827 * lib/inttostr.h (uinttostr): Declare.
35828 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
35829 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
35831 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
35833 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
35835 * lib/canonicalize.c (ELOOP): Define if not already defined.
35836 Problem reported by Bruno Haible in
35837 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
35839 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
35841 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
35842 Problem reported by Perry Smith and Ville Laurikari.
35844 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
35847 2006-10-19 Bruno Haible <bruno@clisp.org>
35849 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
35852 2006-10-19 Bruno Haible <bruno@clisp.org>
35854 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
35857 2006-10-19 Bruno Haible <bruno@clisp.org>
35859 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
35861 2006-10-19 Bruno Haible <bruno@clisp.org>
35863 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
35866 2006-10-19 Bruno Haible <bruno@clisp.org>
35868 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
35871 2006-10-19 Bruno Haible <bruno@clisp.org>
35873 * gnulib-tool (func_create_testdir): Don't include ftruncate and
35874 mountlist by default.
35876 2006-10-16 Bruno Haible <bruno@clisp.org>
35878 * lib/c-strstr.c: Include c-strstr.h.
35880 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
35882 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
35885 2006-10-18 Bruno Haible <bruno@clisp.org>
35887 * lib/lock.h [C++]: Wrap definitions in extern "C".
35889 2006-10-18 Bruno Haible <bruno@clisp.org>
35891 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
35894 2006-10-18 Bruno Haible <bruno@clisp.org>
35896 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
35898 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
35900 * lib/xstrtol.h: Include gettext.h.
35901 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
35902 Problem reported by Eric Blake.
35903 * modules/xstrtol (Depends-on): Add gettext-h.
35905 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
35907 * lib/strftime.c (advance): New macro.
35908 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
35909 incomplete type, so you can't add 0 to it. Problem and patch
35910 reported by Eelco Dolstra for dietlibc.
35912 2006-10-18 Jim Meyering <jim@meyering.net>
35914 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
35915 type for a local, and rename it: s/up/user_proc/.
35917 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
35919 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
35920 READ_UTMP_USER_PROCESS.
35921 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
35923 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
35925 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
35926 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
35928 2006-10-17 Eric Blake <ebb9@byu.net>
35930 * lib/sigprocmask.c (sigprocmask): Fix typo.
35932 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
35934 * modules/clean-temp (Makefile.am): Don't add to make output...
35935 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
35938 2006-10-17 Bruno Haible <bruno@clisp.org>
35940 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
35941 differently if DEFAULT_TEXT_DOMAIN is set.
35943 2006-10-16 Bruno Haible <bruno@clisp.org>
35945 * lib/clean-temp.c: Include fwriteerror.h.
35947 2006-10-16 Bruno Haible <bruno@clisp.org>
35949 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
35951 2006-10-16 Bruno Haible <bruno@clisp.org>
35953 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
35954 * lib/sigprocmask.h: Include <sys/types.h>.
35955 (sigset_t): Use the system's definition if present.
35957 2006-10-17 Eric Blake <ebb9@byu.net>
35959 * lib/xvasprintf.c (includes): Assume config.h.
35960 * lib/xasprintf.c (includes): Likewise.
35962 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
35964 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
35965 at least as wide as intmax_t.
35967 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
35969 (Imported from Automake.)
35970 * build-aux/gnupload: Update to version 1.1 of directive file.
35972 2006-10-16 Eric Blake <ebb9@byu.net>
35974 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
35975 match Automake 1.10a.
35977 2006-10-14 Bruno Haible <bruno@clisp.org>
35979 * modules/sigprocmask: New file.
35980 * lib/sigprocmask.h: New file.
35981 * lib/sigprocmask.c: New file.
35982 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
35983 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
35984 request sigprocmask.o.
35985 (gl_PREREQ_SIGPROCMASK): New macro.
35986 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
35987 (Depends-on): Add sigprocmask.
35988 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
35989 gt_SIGNALBLOCKING. Test for 'raise' only once.
35990 * lib/fatal-signal.c: Include sigprocmask.h.
35991 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
35992 unblock_fatal_signals): Define always.
35993 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35996 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
35998 Sync from Automake.
35999 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
36000 which incorrectly sets the mode of an existing destination
36001 directory. In some cases the unpatched install-sh could do the
36002 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
36003 system. We hope this is rare in practice, but it's clearly worth
36004 fixing. Problem reported by Alex Unleashed in
36005 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
36006 Also, don't bother to check for -m bugs unless we're using -m;
36007 suggested by Stepan Kasal.
36009 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36011 Sync from Automake.
36012 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
36013 `-c' flag, so they appear at the same position as in %FASTDEP%
36014 mode in depend2.am. Fixes build failure for FreeBSD's c89,
36015 which ignores unknown options only after the first non-option.
36016 Bug report against M4 by Nelson H. F. Beebe.
36018 2006-10-13 Jim Meyering <jim@meyering.net>
36020 Fix a bug in yesterday's change.
36021 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
36022 p->fts_statp->st_dev would be used uninitialized.
36023 Ensures that we always call fts_stat on the very first entry.
36024 Miklos Szeredi reported that find -xdev stopped working.
36026 2006-10-12 Bruno Haible <bruno@clisp.org>
36028 * gnulib-tool (func_get_automake_snippet): Append an automatically
36029 computed EXTRA_DIST augmentation.
36030 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
36031 * modules/alloca-opt (Makefile.am): Likewise.
36032 * modules/allocsa (Makefile.am): Likewise.
36033 * modules/arcfour (Makefile.am): Likewise.
36034 * modules/arctwo (Makefile.am): Likewise.
36035 * modules/argmatch (Makefile.am): Likewise.
36036 * modules/argz (Makefile.am): Likewise.
36037 * modules/atexit (Makefile.am): Likewise.
36038 * modules/backupfile (Makefile.am): Likewise.
36039 * modules/byteswap (Makefile.am): Likewise.
36040 * modules/c-strtod (Makefile.am): Likewise.
36041 * modules/c-strtold (Makefile.am): Likewise.
36042 * modules/calloc (Makefile.am): Likewise.
36043 * modules/canon-host (Makefile.am): Likewise.
36044 * modules/canonicalize (Makefile.am): Likewise.
36045 * modules/chdir-long (Makefile.am): Likewise.
36046 * modules/chdir-safer (Makefile.am): Likewise.
36047 * modules/check-version (Makefile.am): Likewise.
36048 * modules/chown (Makefile.am): Likewise.
36049 * modules/cloexec (Makefile.am): Likewise.
36050 * modules/close-stream (Makefile.am): Likewise.
36051 * modules/closeout (Makefile.am): Likewise.
36052 * modules/crc (Makefile.am): Likewise.
36053 * modules/csharpexec (Makefile.am): Likewise.
36054 * modules/cycle-check (Makefile.am): Likewise.
36055 * modules/des (Makefile.am): Likewise.
36056 * modules/dev-ino (Makefile.am): Likewise.
36057 * modules/dirfd (Makefile.am): Likewise.
36058 * modules/dirname (Makefile.am): Likewise.
36059 * modules/dup2 (Makefile.am): Likewise.
36060 * modules/eealloc (Makefile.am): Likewise.
36061 * modules/error (Makefile.am): Likewise.
36062 * modules/euidaccess (Makefile.am): Likewise.
36063 * modules/exclude (Makefile.am): Likewise.
36064 * modules/exitfail (Makefile.am): Likewise.
36065 * modules/fcntl-safer (Makefile.am): Likewise.
36066 * modules/fcntl (Makefile.am): Likewise.
36067 * modules/file-type (Makefile.am): Likewise.
36068 * modules/fileblocks (Makefile.am): Likewise.
36069 * modules/filemode (Makefile.am): Likewise.
36070 * modules/filenamecat (Makefile.am): Likewise.
36071 * modules/fnmatch (Makefile.am): Likewise.
36072 * modules/fopen-safer (Makefile.am): Likewise.
36073 * modules/fpending (Makefile.am): Likewise.
36074 * modules/fprintftime (Makefile.am): Likewise.
36075 * modules/free (Makefile.am): Likewise.
36076 * modules/fsusage (Makefile.am): Likewise.
36077 * modules/ftruncate (Makefile.am): Likewise.
36078 * modules/fts (Makefile.am): Likewise.
36079 * modules/gc-arcfour (Makefile.am): Likewise.
36080 * modules/gc-des (Makefile.am): Likewise.
36081 * modules/gc-hmac-md5 (Makefile.am): Likewise.
36082 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
36083 * modules/gc-md4 (Makefile.am): Likewise.
36084 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
36085 * modules/gc-sha1 (Makefile.am): Likewise.
36086 * modules/gc (Makefile.am): Likewise.
36087 * modules/getaddrinfo (Makefile.am): Likewise.
36088 * modules/getcwd (Makefile.am): Likewise.
36089 * modules/getdelim (Makefile.am): Likewise.
36090 * modules/getdomainname (Makefile.am): Likewise.
36091 * modules/getgroups (Makefile.am): Likewise.
36092 * modules/gethostname (Makefile.am): Likewise.
36093 * modules/gethrxtime (Makefile.am): Likewise.
36094 * modules/getline (Makefile.am): Likewise.
36095 * modules/getloadavg (Makefile.am): Likewise.
36096 * modules/getlogin_r (Makefile.am): Likewise.
36097 * modules/getndelim2 (Makefile.am): Likewise.
36098 * modules/getopt (Makefile.am): Likewise.
36099 * modules/getpagesize (Makefile.am): Likewise.
36100 * modules/getpass-gnu (Makefile.am): Likewise.
36101 * modules/getpass (Makefile.am): Likewise.
36102 * modules/getsubopt (Makefile.am): Likewise.
36103 * modules/gettime (Makefile.am): Likewise.
36104 * modules/gettimeofday (Makefile.am): Likewise.
36105 * modules/getugroups (Makefile.am): Likewise.
36106 * modules/getusershell (Makefile.am): Likewise.
36107 * modules/glob (Makefile.am): Likewise.
36108 * modules/group-member (Makefile.am): Likewise.
36109 * modules/hard-locale (Makefile.am): Likewise.
36110 * modules/hash (Makefile.am): Likewise.
36111 * modules/hmac-md5 (Makefile.am): Likewise.
36112 * modules/hmac-sha1 (Makefile.am): Likewise.
36113 * modules/human (Makefile.am): Likewise.
36114 * modules/idcache (Makefile.am): Likewise.
36115 * modules/imaxabs (Makefile.am): Likewise.
36116 * modules/imaxdiv (Makefile.am): Likewise.
36117 * modules/inet_ntop (Makefile.am): Likewise.
36118 * modules/inet_pton (Makefile.am): Likewise.
36119 * modules/intprops (Makefile.am): Likewise.
36120 * modules/inttostr (Makefile.am): Likewise.
36121 * modules/inttypes (Makefile.am): Likewise.
36122 * modules/isapipe (Makefile.am): Likewise.
36123 * modules/javaversion (Makefile.am): Likewise.
36124 * modules/lchmod (Makefile.am): Likewise.
36125 * modules/lchown (Makefile.am): Likewise.
36126 * modules/localcharset (Makefile.am): Likewise.
36127 * modules/long-options (Makefile.am): Likewise.
36128 * modules/lstat (Makefile.am): Likewise.
36129 * modules/malloc (Makefile.am): Likewise.
36130 * modules/mathl (Makefile.am): Likewise.
36131 * modules/mbchar (Makefile.am): Likewise.
36132 * modules/md2 (Makefile.am): Likewise.
36133 * modules/md4 (Makefile.am): Likewise.
36134 * modules/md5 (Makefile.am): Likewise.
36135 * modules/memcasecmp (Makefile.am): Likewise.
36136 * modules/memchr (Makefile.am): Likewise.
36137 * modules/memcmp (Makefile.am): Likewise.
36138 * modules/memcoll (Makefile.am): Likewise.
36139 * modules/memcpy (Makefile.am): Likewise.
36140 * modules/memmem (Makefile.am): Likewise.
36141 * modules/memmove (Makefile.am): Likewise.
36142 * modules/mempcpy (Makefile.am): Likewise.
36143 * modules/memrchr (Makefile.am): Likewise.
36144 * modules/memset (Makefile.am): Likewise.
36145 * modules/memxor (Makefile.am): Likewise.
36146 * modules/mkancesdirs (Makefile.am): Likewise.
36147 * modules/mkdir-p (Makefile.am): Likewise.
36148 * modules/mkdir (Makefile.am): Likewise.
36149 * modules/mkdtemp (Makefile.am): Likewise.
36150 * modules/mkstemp (Makefile.am): Likewise.
36151 * modules/mktime (Makefile.am): Likewise.
36152 * modules/modechange (Makefile.am): Likewise.
36153 * modules/mountlist (Makefile.am): Likewise.
36154 * modules/nanosleep (Makefile.am): Likewise.
36155 * modules/obstack (Makefile.am): Likewise.
36156 * modules/openat (Makefile.am): Likewise.
36157 * modules/pagealign_alloc (Makefile.am): Likewise.
36158 * modules/pathmax (Makefile.am): Likewise.
36159 * modules/physmem (Makefile.am): Likewise.
36160 * modules/poll (Makefile.am): Likewise.
36161 * modules/posixtm (Makefile.am): Likewise.
36162 * modules/posixver (Makefile.am): Likewise.
36163 * modules/putenv (Makefile.am): Likewise.
36164 * modules/quote (Makefile.am): Likewise.
36165 * modules/quotearg (Makefile.am): Likewise.
36166 * modules/raise (Makefile.am): Likewise.
36167 * modules/read-file (Makefile.am): Likewise.
36168 * modules/readline (Makefile.am): Likewise.
36169 * modules/readlink (Makefile.am): Likewise.
36170 * modules/readtokens (Makefile.am): Likewise.
36171 * modules/readutmp (Makefile.am): Likewise.
36172 * modules/realloc (Makefile.am): Likewise.
36173 * modules/regex (Makefile.am): Likewise.
36174 * modules/rename-dest-slash (Makefile.am): Likewise.
36175 * modules/rename (Makefile.am): Likewise.
36176 * modules/rijndael (Makefile.am): Likewise.
36177 * modules/rmdir (Makefile.am): Likewise.
36178 * modules/rpmatch (Makefile.am): Likewise.
36179 * modules/safe-read (Makefile.am): Likewise.
36180 * modules/safe-write (Makefile.am): Likewise.
36181 * modules/same-inode (Makefile.am): Likewise.
36182 * modules/same (Makefile.am): Likewise.
36183 * modules/save-cwd (Makefile.am): Likewise.
36184 * modules/savedir (Makefile.am): Likewise.
36185 * modules/setenv (Makefile.am): Likewise.
36186 * modules/settime (Makefile.am): Likewise.
36187 * modules/sha1 (Makefile.am): Likewise.
36188 * modules/sig2str (Makefile.am): Likewise.
36189 * modules/snprintf (Makefile.am): Likewise.
36190 * modules/stat-macros (Makefile.am): Likewise.
36191 * modules/stat-time (Makefile.am): Likewise.
36192 * modules/stdbool (Makefile.am): Likewise.
36193 * modules/stdint (Makefile.am): Likewise.
36194 * modules/stdlib-safer (Makefile.am): Likewise.
36195 * modules/stpcpy (Makefile.am): Likewise.
36196 * modules/stpncpy (Makefile.am): Likewise.
36197 * modules/strcase (Makefile.am): Likewise.
36198 * modules/strcasestr (Makefile.am): Likewise.
36199 * modules/strchrnul (Makefile.am): Likewise.
36200 * modules/strcspn (Makefile.am): Likewise.
36201 * modules/strdup (Makefile.am): Likewise.
36202 * modules/strerror (Makefile.am): Likewise.
36203 * modules/strftime (Makefile.am): Likewise.
36204 * modules/strndup (Makefile.am): Likewise.
36205 * modules/strnlen (Makefile.am): Likewise.
36206 * modules/strpbrk (Makefile.am): Likewise.
36207 * modules/strsep (Makefile.am): Likewise.
36208 * modules/strstr (Makefile.am): Likewise.
36209 * modules/strtod (Makefile.am): Likewise.
36210 * modules/strtoimax (Makefile.am): Likewise.
36211 * modules/strtok_r (Makefile.am): Likewise.
36212 * modules/strtol (Makefile.am): Likewise.
36213 * modules/strtoll (Makefile.am): Likewise.
36214 * modules/strtoul (Makefile.am): Likewise.
36215 * modules/strtoull (Makefile.am): Likewise.
36216 * modules/strtoumax (Makefile.am): Likewise.
36217 * modules/strverscmp (Makefile.am): Likewise.
36218 * modules/sys_socket (Makefile.am): Likewise.
36219 * modules/sys_stat (Makefile.am): Likewise.
36220 * modules/sysexits (Makefile.am): Likewise.
36221 * modules/time_r (Makefile.am): Likewise.
36222 * modules/timegm (Makefile.am): Likewise.
36223 * modules/timespec (Makefile.am): Likewise.
36224 * modules/tmpfile-safer (Makefile.am): Likewise.
36225 * modules/trim (Makefile.am): Likewise.
36226 * modules/unistd-safer (Makefile.am): Likewise.
36227 * modules/unlinkdir (Makefile.am): Likewise.
36228 * modules/unlocked-io (Makefile.am): Likewise.
36229 * modules/userspec (Makefile.am): Likewise.
36230 * modules/utime (Makefile.am): Likewise.
36231 * modules/utimecmp (Makefile.am): Likewise.
36232 * modules/utimens (Makefile.am): Likewise.
36233 * modules/vasnprintf (Makefile.am): Likewise.
36234 * modules/vasprintf (Makefile.am): Likewise.
36235 * modules/vsnprintf (Makefile.am): Likewise.
36236 * modules/xalloc (Makefile.am): Likewise.
36237 * modules/xgetcwd (Makefile.am): Likewise.
36238 * modules/xnanosleep (Makefile.am): Likewise.
36239 * modules/xreadlink (Makefile.am): Likewise.
36240 * modules/xstrtod (Makefile.am): Likewise.
36241 * modules/xstrtol (Makefile.am): Likewise.
36242 * modules/xstrtold (Makefile.am): Likewise.
36243 * modules/yesno (Makefile.am): Likewise.
36244 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
36246 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
36248 * modules/error (Makefile.am): Distribute files through
36249 EXTRA_DIST, not lib_SOURCES.
36251 2006-10-12 Eric Blake <ebb9@byu.net>
36253 * modules/error (Makefile.am): Distribute files in /lib.
36254 * modules/obstack (Makefile.am): Likewise.
36256 2006-10-12 Bruno Haible <bruno@clisp.org>
36258 * modules/acl (Makefile.am): Distribute all files in lib/ through
36260 * modules/arcfour (Makefile.am): Likewise.
36261 * modules/arctwo (Makefile.am): Likewise.
36262 * modules/argmatch (Makefile.am): Likewise.
36263 * modules/argz (Makefile.am): Likewise.
36264 * modules/atexit (Makefile.am): Likewise.
36265 * modules/backupfile (Makefile.am): Likewise.
36266 * modules/c-strtod (Makefile.am): Likewise.
36267 * modules/c-strtold (Makefile.am): Likewise.
36268 * modules/calloc (Makefile.am): Likewise.
36269 * modules/canon-host (Makefile.am): Likewise.
36270 * modules/canonicalize (Makefile.am): Likewise.
36271 * modules/chdir-long (Makefile.am): Likewise.
36272 * modules/chdir-safer (Makefile.am): Likewise.
36273 * modules/check-version (Makefile.am): Likewise.
36274 * modules/chown (Makefile.am): Likewise.
36275 * modules/cloexec (Makefile.am): Likewise.
36276 * modules/close-stream (Makefile.am): Likewise.
36277 * modules/closeout (Makefile.am): Likewise.
36278 * modules/crc (Makefile.am): Likewise.
36279 * modules/cycle-check (Makefile.am): Likewise.
36280 * modules/des (Makefile.am): Likewise.
36281 * modules/dirfd (Makefile.am): Likewise.
36282 * modules/dirname (Makefile.am): Likewise.
36283 * modules/dup2 (Makefile.am): Likewise.
36284 * modules/euidaccess (Makefile.am): Likewise.
36285 * modules/exclude (Makefile.am): Likewise.
36286 * modules/exitfail (Makefile.am): Likewise.
36287 * modules/fcntl-safer (Makefile.am): Likewise.
36288 * modules/file-type (Makefile.am): Likewise.
36289 * modules/fileblocks (Makefile.am): Likewise.
36290 * modules/filemode (Makefile.am): Likewise.
36291 * modules/filenamecat (Makefile.am): Likewise.
36292 * modules/fnmatch (Makefile.am): Likewise.
36293 * modules/fopen-safer (Makefile.am): Likewise.
36294 * modules/fpending (Makefile.am): Likewise.
36295 * modules/fprintftime (Makefile.am): Likewise.
36296 * modules/free (Makefile.am): Likewise.
36297 * modules/fsusage (Makefile.am): Likewise.
36298 * modules/ftruncate (Makefile.am): Likewise.
36299 * modules/fts (Makefile.am): Likewise.
36300 * modules/gc (Makefile.am): Likewise.
36301 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
36302 * modules/getaddrinfo (Makefile.am): Likewise.
36303 * modules/getcwd (Makefile.am): Likewise.
36304 * modules/getdelim (Makefile.am): Likewise.
36305 * modules/getdomainname (Makefile.am): Likewise.
36306 * modules/getgroups (Makefile.am): Likewise.
36307 * modules/gethostname (Makefile.am): Likewise.
36308 * modules/gethrxtime (Makefile.am): Likewise.
36309 * modules/getline (Makefile.am): Likewise.
36310 * modules/getloadavg (Makefile.am): Likewise.
36311 * modules/getlogin_r (Makefile.am): Likewise.
36312 * modules/getopt (Makefile.am): Likewise.
36313 * modules/getpass (Makefile.am): Likewise.
36314 * modules/getpass-gnu (Makefile.am): Likewise.
36315 * modules/getsubopt (Makefile.am): Likewise.
36316 * modules/gettime (Makefile.am): Likewise.
36317 * modules/gettimeofday (Makefile.am): Likewise.
36318 * modules/getugroups (Makefile.am): Likewise.
36319 * modules/getusershell (Makefile.am): Likewise.
36320 * modules/glob (Makefile.am): Likewise.
36321 * modules/group-member (Makefile.am): Likewise.
36322 * modules/hard-locale (Makefile.am): Likewise.
36323 * modules/hash (Makefile.am): Likewise.
36324 * modules/hmac-md5 (Makefile.am): Likewise.
36325 * modules/hmac-sha1 (Makefile.am): Likewise.
36326 * modules/human (Makefile.am): Likewise.
36327 * modules/idcache (Makefile.am): Likewise.
36328 * modules/imaxabs (Makefile.am): Likewise.
36329 * modules/imaxdiv (Makefile.am): Likewise.
36330 * modules/inet_ntop (Makefile.am): Likewise.
36331 * modules/inet_pton (Makefile.am): Likewise.
36332 * modules/inttostr (Makefile.am): Likewise.
36333 * modules/isapipe (Makefile.am): Likewise.
36334 * modules/lchown (Makefile.am): Likewise.
36335 * modules/long-options (Makefile.am): Likewise.
36336 * modules/lstat (Makefile.am): Likewise.
36337 * modules/malloc (Makefile.am): Likewise.
36338 * modules/mathl (Makefile.am): Likewise.
36339 * modules/mbchar (Makefile.am): Likewise.
36340 * modules/md2 (Makefile.am): Likewise.
36341 * modules/md4 (Makefile.am): Likewise.
36342 * modules/md5 (Makefile.am): Likewise.
36343 * modules/memcasecmp (Makefile.am): Likewise.
36344 * modules/memchr (Makefile.am): Likewise.
36345 * modules/memcmp (Makefile.am): Likewise.
36346 * modules/memcoll (Makefile.am): Likewise.
36347 * modules/memcpy (Makefile.am): Likewise.
36348 * modules/memmem (Makefile.am): Likewise.
36349 * modules/memmove (Makefile.am): Likewise.
36350 * modules/mempcpy (Makefile.am): Likewise.
36351 * modules/memrchr (Makefile.am): Likewise.
36352 * modules/memset (Makefile.am): Likewise.
36353 * modules/memxor (Makefile.am): Likewise.
36354 * modules/mkancesdirs (Makefile.am): Likewise.
36355 * modules/mkdir (Makefile.am): Likewise.
36356 * modules/mkdir-p (Makefile.am): Likewise.
36357 * modules/mkdtemp (Makefile.am): Likewise.
36358 * modules/mkstemp (Makefile.am): Likewise.
36359 * modules/mktime (Makefile.am): Likewise.
36360 * modules/modechange (Makefile.am): Likewise.
36361 * modules/mountlist (Makefile.am): Likewise.
36362 * modules/nanosleep (Makefile.am): Likewise.
36363 * modules/openat (Makefile.am): Likewise.
36364 * modules/pagealign_alloc (Makefile.am): Likewise.
36365 * modules/physmem (Makefile.am): Likewise.
36366 * modules/poll (Makefile.am): Likewise.
36367 * modules/posixtm (Makefile.am): Likewise.
36368 * modules/posixver (Makefile.am): Likewise.
36369 * modules/putenv (Makefile.am): Likewise.
36370 * modules/quote (Makefile.am): Likewise.
36371 * modules/quotearg (Makefile.am): Likewise.
36372 * modules/raise (Makefile.am): Likewise.
36373 * modules/read-file (Makefile.am): Likewise.
36374 * modules/readline (Makefile.am): Likewise.
36375 * modules/readlink (Makefile.am): Likewise.
36376 * modules/readtokens (Makefile.am): Likewise.
36377 * modules/readutmp (Makefile.am): Likewise.
36378 * modules/realloc (Makefile.am): Likewise.
36379 * modules/regex (Makefile.am): Likewise.
36380 * modules/rename (Makefile.am): Likewise.
36381 * modules/rename-dest-slash (Makefile.am): Likewise.
36382 * modules/rijndael (Makefile.am): Likewise.
36383 * modules/rmdir (Makefile.am): Likewise.
36384 * modules/rpmatch (Makefile.am): Likewise.
36385 * modules/safe-read (Makefile.am): Likewise.
36386 * modules/safe-write (Makefile.am): Likewise.
36387 * modules/same (Makefile.am): Likewise.
36388 * modules/save-cwd (Makefile.am): Likewise.
36389 * modules/savedir (Makefile.am): Likewise.
36390 * modules/setenv (Makefile.am): Likewise.
36391 * modules/settime (Makefile.am): Likewise.
36392 * modules/sha1 (Makefile.am): Likewise.
36393 * modules/sig2str (Makefile.am): Likewise.
36394 * modules/snprintf (Makefile.am): Likewise.
36395 * modules/stdlib-safer (Makefile.am): Likewise.
36396 * modules/stpcpy (Makefile.am): Likewise.
36397 * modules/stpncpy (Makefile.am): Likewise.
36398 * modules/strcase (Makefile.am): Likewise.
36399 * modules/strcasestr (Makefile.am): Likewise.
36400 * modules/strchrnul (Makefile.am): Likewise.
36401 * modules/strcspn (Makefile.am): Likewise.
36402 * modules/strdup (Makefile.am): Likewise.
36403 * modules/strerror (Makefile.am): Likewise.
36404 * modules/strftime (Makefile.am): Likewise.
36405 * modules/strndup (Makefile.am): Likewise.
36406 * modules/strnlen (Makefile.am): Likewise.
36407 * modules/strpbrk (Makefile.am): Likewise.
36408 * modules/strsep (Makefile.am): Likewise.
36409 * modules/strstr (Makefile.am): Likewise.
36410 * modules/strtod (Makefile.am): Likewise.
36411 * modules/strtoimax (Makefile.am): Likewise.
36412 * modules/strtok_r (Makefile.am): Likewise.
36413 * modules/strtol (Makefile.am): Likewise.
36414 * modules/strtoll (Makefile.am): Likewise.
36415 * modules/strtoul (Makefile.am): Likewise.
36416 * modules/strtoull (Makefile.am): Likewise.
36417 * modules/strtoumax (Makefile.am): Likewise.
36418 * modules/strverscmp (Makefile.am): Likewise.
36419 * modules/time_r (Makefile.am): Likewise.
36420 * modules/timegm (Makefile.am): Likewise.
36421 * modules/tmpfile-safer (Makefile.am): Likewise.
36422 * modules/unistd-safer (Makefile.am): Likewise.
36423 * modules/unlinkdir (Makefile.am): Likewise.
36424 * modules/userspec (Makefile.am): Likewise.
36425 * modules/utime (Makefile.am): Likewise.
36426 * modules/utimecmp (Makefile.am): Likewise.
36427 * modules/utimens (Makefile.am): Likewise.
36428 * modules/vasnprintf (Makefile.am): Likewise.
36429 * modules/vasprintf (Makefile.am): Likewise.
36430 * modules/vsnprintf (Makefile.am): Likewise.
36431 * modules/xalloc (Makefile.am): Likewise.
36432 * modules/xgetcwd (Makefile.am): Likewise.
36433 * modules/xnanosleep (Makefile.am): Likewise.
36434 * modules/xreadlink (Makefile.am): Likewise.
36435 * modules/xstrtod (Makefile.am): Likewise.
36436 * modules/xstrtol (Makefile.am): Likewise.
36437 * modules/xstrtold (Makefile.am): Likewise.
36438 * modules/yesno (Makefile.am): Likewise.
36440 2006-10-12 Jim Meyering <jim@meyering.net>
36442 * m4/getloadavg.m4: Revert the change below.
36444 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
36445 lib/getloadavg.c using "ls -L", not "test -f". The latter would
36446 fail with a symlink, which is what coreutils' ./bootstrap now
36447 creates by default.
36449 2006-10-12 Bruno Haible <bruno@clisp.org>
36451 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
36453 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
36454 MSVC and mingw explicitly.
36456 2006-10-11 Simon Josefsson <jas@extundo.com>
36457 Bruno Haible <bruno@clisp.org>
36459 Add support for multiple gnulib-tool invocations in the scope of a
36460 single configure.ac file.
36461 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
36462 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
36463 with the same contents as the _LIBADD variable.
36464 (func_emit_initmacro_start, func_emit_initmacro_end,
36465 func_emit_initmacro_done): New functions.
36466 (func_import, func_create_testdir): Invoke them. Allow the identifiers
36467 gl_LIBOBJS and gl_LTLIBOBJS.
36469 2006-10-11 Bruno Haible <bruno@clisp.org>
36471 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
36472 (func_create_testdir): Don't create po/Makefile.am, don't invoke
36473 autoreconf. Instead, invoke autopoint explicitly but move back the
36474 *.m4 files from gnulib.
36476 2006-10-11 Bruno Haible <bruno@clisp.org>
36478 * gnulib-tool (func_usage): Make module names after --create-testdir
36480 (func_create_testdir): If no module was specified, use nearly all
36483 2006-10-12 Jim Meyering <jim@meyering.net>
36485 Big performance improvement for fts-based tools that use FTS_NOSTAT.
36486 Avoid spurious inode-mismatch problems on non-POSIX file systems.
36487 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
36488 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
36489 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
36490 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
36491 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
36492 (fts_set_stat_required): New function.
36493 (fts_open): Defer the calls to fts_stat, if possible or requested.
36494 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
36495 into fts_stat itself.
36496 (fts_read): Perform any required (deferred) fts_stat call.
36497 (fts_build): Likewise, for the directory we're about to open and read.
36498 In the readdir loop, carefully decide whether each entry will require
36499 an eventual call to fts_stat, using dirent.d_type info if available.
36500 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
36501 a command line argument into this function. Update all callers.
36502 Map a return value of FTS_DOT to FTS_D for a command line argument.
36503 * modules/fts (Depends-on): Add d-type. Alphabetize.
36504 Thanks to Miklos Szeredi for his tenacity and for the initial
36505 bug report about "find" failing on a FUSE-based file system.
36507 * lib/fts.c (fts_open): Use consistent indentation.
36509 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
36511 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
36512 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
36513 reported by Jim Meyering. All uses of cache variables renamed
36514 to match Autoconf's.
36515 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
36518 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
36519 Fix misspelling in diagnostic.
36521 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
36523 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
36524 defined. Problem reported by Matthew Woehlke.
36526 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
36527 Add support for Tandem NonStop R series.
36528 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
36531 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
36532 (has_trailing_slash): Omit size arg; all callers changed.
36533 Omit 'inline', since it doesn't help performance and we'd
36534 need to configure it.
36535 Don't count //, ///, etc. as having a trailing slash.
36536 As a side effect, this removes a C99ism reported by Matthew Woehlke.
36537 (rpl_rename_dest_slash): On failure, use rename's errno rather
36538 than (in some cases) an incorrect or junk errno.
36539 Simplify code by removing need to compute length; this does
36540 cause it to make two passes instead of one over the file name,
36543 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
36544 change, since Autoconf's version may no longer be appropriate now
36545 that we are using CVS Autoconf's version. Add support for Tandem.
36547 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
36548 Bruno Haible <bruno@clisp.org>
36550 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
36551 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
36552 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
36553 gl_AC_TYPE_LONG_LONG.
36555 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
36556 instead of HAVE_LONG_LONG.
36557 * lib/printf-args.c (printf_fetchargs): Likewise.
36558 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
36559 * lib/vasnprintf.c (VASNPRINTF): Likewise.
36560 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
36561 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
36562 gl_AC_TYPE_LONG_LONG.
36564 2006-10-11 Bruno Haible <bruno@clisp.org>
36566 * m4/longlong.m4: Add comments.
36567 * m4/ulonglong.m4: Likewise.
36569 2006-10-10 Bruno Haible <bruno@clisp.org>
36571 Make it possible to #define stpcpy, strdup to aliases.
36572 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
36573 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
36575 2006-10-10 Bruno Haible <bruno@clisp.org>
36577 Make it possible to #define gcd to an alias.
36578 * lib/gcd.c: Include config.h.
36580 2006-10-10 Bruno Haible <bruno@clisp.org>
36582 Make it possible to #define c_isascii to an alias.
36583 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
36584 defined. Undefine the macros before defining them, to avoid gcc
36586 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
36587 define NO_C_CTYPE_MACROS early.
36589 2006-10-10 Bruno Haible <bruno@clisp.org>
36591 Make it possible to #define set_program_name to an alias.
36592 * lib/progname.c: Don't undefine set_program_name; instead, undefine
36593 ENABLE_RELOCATABLE early.
36595 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
36597 Port to Tandem NSK OSS, which has 64-bit signed int but at most
36598 32-bit unsigned int. Problem reported by Matthew Woehlke in:
36599 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
36600 More generally, don't assume that 64-bit signed int is available
36601 if unsigned int is, and vice versa.
36602 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
36603 unsigned symbols, not on their signed counterparts.
36604 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
36605 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
36606 (UINT64_C, UINTMAX_C):
36608 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
36609 unsigned counterparts.
36610 (Have_long_long, Unsigned): New macros.
36611 (Int): Renamed from INT.
36612 (strtoimax): Use the new macros.
36613 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
36614 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
36615 * modules/inttypes (inttypes.h): Substitute
36616 HAVE_UNSIGNED_LONG_LONG_INT.
36617 * modules/stdint (stdint.h): Likewise.
36618 (Files): Add m4/ulonglong.m4.
36620 2006-10-10 Bruno Haible <bruno@clisp.org>
36622 Fix a gcc -Wshadow warning.
36623 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
36625 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
36626 gl_linked_indexof_from_to): Likewise.
36627 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
36629 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
36631 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
36632 Reported by Eric Blake.
36634 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
36636 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
36637 for NetBSD. Problem reported by Bruno Haible.
36639 2006-10-09 Jim Meyering <jim@meyering.net>
36641 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
36642 Patch from Bruno Haible.
36644 2006-10-09 Jim Meyering <jim@meyering.net>
36646 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
36647 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
36648 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
36650 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
36652 Don't include <config.h> twice; this doesn't work in some cases,
36653 e.g., when config.h has "#define intmax_t long long int" and
36654 we include <config.h>, <inttypes.h>, <config.h> in that order.
36655 Problem reported by Matthew Woehlke in:
36656 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
36657 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
36658 * lib/fts-cycle.c: Don't include config.h.
36659 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
36660 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
36661 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
36662 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
36664 * lib/xstrtoumax.c: Likewise.
36665 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
36666 __strtol and the like, so that this module is more like its siblings.
36667 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
36668 Remove; no longer needed now that we assume gnulib inttypes.h.
36670 2006-10-08 Bruno Haible <bruno@clisp.org>
36672 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
36675 2006-10-07 Jim Meyering <jim@meyering.net>
36677 * modules/inttypes (inttypes.h): Revert what seems to have been
36678 an inadvertent part of today's change: use "|", not "/" in the
36679 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
36681 2006-10-07 Bruno Haible <bruno@clisp.org>
36683 * modules/sublist: New file.
36685 2006-10-07 Bruno Haible <bruno@clisp.org>
36687 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
36688 * modules/argz (argz.h): Likewise.
36689 * modules/arpa_inet (arpa/inet.h): Likewise.
36690 * modules/byteswap (byteswap.h): Likewise.
36691 * modules/configmake (configmake.h): Likewise.
36692 * modules/fcntl (fcntl.h): Likewise.
36693 * modules/fnmatch (fnmatch.h): Likewise.
36694 * modules/getopt (getopt.h): Likewise.
36695 * modules/glob (glob.h): Likewise.
36696 * modules/inttypes (inttypes.h): Likewise.
36697 * modules/netinet_in (netinet/in.h): Likewise.
36698 * modules/poll (poll.h): Likewise.
36699 * modules/stdbool (stdbool.h): Likewise.
36700 * modules/stdint (stdint.h): Likewise.
36701 * modules/sys_select (sys/select.h): Likewise.
36702 * modules/sys_socket (sys/socket.h): Likewise.
36703 * modules/sys_stat (sys/stat.h): Likewise.
36704 * modules/sysexits (sysexits.h): Likewise.
36705 * modules/unistd (unistd.h): Likewise.
36706 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36707 Add a "DO NOT EDIT" comment to the generated file.
36708 (func_import): Likewise for gnulib-comp.m4.
36710 2006-10-07 Bruno Haible <bruno@clisp.org>
36712 * lib/gl_sublist.h: New file.
36713 * lib/gl_sublist.c: New file.
36715 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
36717 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
36718 name (relative to the original working directory) and the file
36719 name component (relative to the temporary working directory). All
36721 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
36722 * lib/mkdir-p.c (make_dir_parents): Likewise.
36723 * lib/mkdir-p.h (make_dir_parents): Likewise.
36725 2006-10-06 Eric Blake <ebb9@byu.net>
36727 Define several macros for use by the clean-temp module.
36728 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
36729 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
36730 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
36732 * lib/clean-temp.h (close_stream_temp): New declaration.
36733 * lib/clean-temp.c (includes): Pull in headers according to what
36734 other modules are in use.
36735 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
36737 2006-10-06 Bruno Haible <bruno@clisp.org>
36739 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
36740 instead of fopen, fwriteerror.
36742 2006-10-06 Bruno Haible <bruno@clisp.org>
36744 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
36745 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
36747 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
36748 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
36749 Return an error indicator.
36750 Suggested by Eric Blake.
36752 2006-10-06 Bruno Haible <bruno@clisp.org>
36754 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
36755 Reported by Eric Blake.
36757 2006-10-06 Bruno Haible <bruno@clisp.org>
36759 * modules/closeout (Description): Mention stderr too.
36761 2006-10-06 Bruno Haible <bruno@clisp.org>
36762 and Paul Eggert <eggert@cs.ucla.edu>
36764 * lib/closeout.c (close_stdout): Also close stderr.
36765 * lib/closeout.h: Update comment.
36767 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
36769 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
36770 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
36771 * lib/dirchownmod.c: Include lchown.h.
36772 * lib/lchown.c: Don't include files that lchown.h now includes.
36773 Don't declare chown, since lchown.h now does that.
36774 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
36775 (lchown): Define to rpl_chown if lchown is declared but
36776 does not exist. Declare using a prototype if lchown is not
36777 declared. Add a copyright notice.
36778 * lib/mkstemp.h: Include <unistd.h>.
36779 * lib/openat.c: Include lchown.h.
36781 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
36782 we now test for that separately.
36783 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
36784 rather than O_NOFOLLOW, when testing whether it's possible to
36785 avoid a race condition reliably.
36786 * lib/savewd.c (savewd_chdir): Likewise.
36788 Remove macros that are no longer needed now that stdint.h is
36790 * lib/fsusage.c (UINTMAX_MAX): Remove.
36791 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
36792 * lib/utimecmp.c (SIZE_MAX): Remove.
36794 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
36796 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
36797 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
36800 2006-10-05 Bruno Haible <bruno@clisp.org>
36802 * lib/gl_list.h (gl_sortedlist_search_from_to,
36803 gl_sortedlist_indexof_from_to): New declarations.
36804 (gl_list_implementation): New fields sortedlist_search_from_to,
36805 sortedlist_indexof_from_to.
36806 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
36808 * lib/gl_list.c (gl_sortedlist_search_from_to,
36809 gl_sortedlist_indexof_from_to): New functions.
36810 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
36812 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
36813 (gl_array_sortedlist_search_from_to): New function.
36814 (gl_array_list_implementation): Update.
36815 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
36817 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
36818 (gl_carray_sortedlist_search_from_to): New function.
36819 (gl_carray_list_implementation): Update.
36820 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
36821 gl_linked_sortedlist_indexof_from_to): New functions.
36822 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36823 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36824 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
36825 gl_tree_sortedlist_indexof_from_to): New functions.
36826 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36827 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36829 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36830 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
36833 2006-10-05 Bruno Haible <bruno@clisp.org>
36835 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
36836 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
36837 (struct gl_list_implementation): Add fields search_from_to,
36838 indexof_from_to. Remove fields search, indexof.
36839 (gl_list_search): Use the search_from_to method.
36840 (gl_list_search_from, gl_list_search_from_to): New functions.
36841 (gl_list_indexof): Use the indexof_from_to method.
36842 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36843 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
36844 (gl_list_search_from, gl_list_search_from_to): New functions.
36845 (gl_list_indexof): Use the indexof_from_to method.
36846 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
36847 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
36848 gl_array_indexof. Add start_index, end_index arguments.
36849 (gl_array_search_from_to): Renamed from gl_array_search. Add
36850 start_index, end_index arguments.
36851 (gl_array_remove, gl_array_list_implementation): Update.
36852 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
36853 gl_carray_indexof. Add start_index, end_index arguments.
36854 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
36855 start_index, end_index arguments.
36856 (gl_carray_remove, gl_carray_list_implementation): Update.
36857 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
36858 gl_linked_search. Add start_index, end_index arguments.
36859 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
36860 start_index, end_index arguments.
36861 (gl_linked_remove): Update.
36862 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
36863 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
36864 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
36866 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
36867 gl_tree_search. Add start_index, end_index arguments.
36868 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36869 start_index, end_index arguments.
36870 (gl_tree_remove): Update.
36871 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
36872 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
36873 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
36875 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
36876 gl_tree_search. Add start_index, end_index arguments.
36877 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
36878 start_index, end_index arguments.
36879 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
36881 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
36883 2006-10-05 Bruno Haible <bruno@clisp.org>
36885 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
36887 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
36888 fwriteerror_temp): New declarations.
36889 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
36890 (descriptors): New variable.
36891 (cleanup): First, close the descriptors.
36892 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
36893 fclose_temp, fwriteerror_temp): New functions.
36895 2006-10-04 Jim Meyering <jim@meyering.net>
36897 * lib/fts.c (fts_open): Tiny comment change.
36899 2006-10-04 Bruno Haible <bruno@clisp.org>
36901 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
36902 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
36904 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
36905 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
36906 gl_LOCK_EARLY_BODY.
36907 (gl_LOCK): Require gl_LOCK_BODY.
36909 2006-10-04 Bruno Haible <bruno@clisp.org>
36911 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
36912 (gl_oset_search_atleast): New declaration.
36913 (struct gl_oset_implementation): Add field 'search_atleast'.
36914 (gl_oset_search_atleast): New inline function.
36915 * lib/gl_oset.c (gl_oset_search_atleast): New function.
36916 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
36917 (gl_array_oset_implementation): Update.
36918 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
36919 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
36920 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
36922 2006-10-04 Bruno Haible <bruno@clisp.org>
36924 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
36926 2006-10-03 Bruno Haible <bruno@clisp.org>
36928 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
36929 from gl_avltreehash_list_implementation.
36931 2006-10-03 Bruno Haible <bruno@clisp.org>
36933 * lib/gl_oset.c (gl_oset_add): Fix return type.
36935 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
36937 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
36939 2006-10-02 Eric Blake <ebb9@byu.net>
36941 * modules/strnlen (Depends-on): Add extensions.
36943 2006-10-02 Eric Blake <ebb9@byu.net>
36945 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
36946 definition in 2.60+.
36948 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
36950 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
36953 2006-10-02 Bruno Haible <bruno@clisp.org>
36955 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
36956 to the AUTOMAKE_OPTIONS.
36957 Reported by Jim Meyering.
36959 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
36961 Work around bug in Solaris 10 /proc file system:
36962 /proc/self/fd/NNN/.. isn't the parent directory of
36963 the directory whose file descriptor is NNN. This needs to
36964 be worked around at run time, not compile time, since a
36965 program might be built on Solaris 8, where things work, and
36967 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
36968 to use the following interface instead:
36969 (OPENAT_BUFFER_SIZE): New macro.
36970 (openat_proc_name): New function.
36971 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
36972 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
36974 * lib/openat-proc.c: New file.
36975 * modules/openat (Files): Add lib/openat-proc.c.
36976 (Depends-on): Add same-inode, stdbool.
36977 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
36979 2006-09-29 Bruno Haible <bruno@clisp.org>
36981 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
36982 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
36983 argument. Set stdout_closed before testing for ferror, not after.
36984 (fwriteerror, fwriteerror_no_ebadf): New functions.
36986 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36988 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
36990 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
36992 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
36993 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
36995 2006-09-28 Jim Meyering <jim@meyering.net>
36997 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
36998 Include <unistd.h>.
37000 2006-09-28 Bruno Haible <bruno@clisp.org>
37002 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
37003 * modules/linkedhash-list (Depends-on): Likewise.
37004 * modules/rbtreehash-list (Depends-on): Likewise.
37006 2006-09-28 Bruno Haible <bruno@clisp.org>
37008 * lib/strndup.h: Simplify the redefinition of strndup.
37009 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
37010 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
37012 2006-09-28 Bruno Haible <bruno@clisp.org>
37014 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
37015 * lib/gl_linkedhash_list.c: Likewise.
37016 * lib/gl_rbtreehash_list.c: Likewise.
37018 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
37020 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
37023 * lib/__fpending.h: Don't include <stdio_ext.h> unless
37024 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
37025 it causes <stdio_ext.h> to cause a compile-time error.
37026 Problem reported by Nelson H. F. Beebe.
37027 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
37028 of HAVE_DECL___PENDING.
37030 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
37031 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
37034 2006-09-27 Jim Meyering <jim@meyering.net>
37036 This file could end up with a definition for a function
37037 named __strndup, rather than rpl_strndup on a system with
37038 incomplete weak_alias support.
37039 * lib/strndup.c (strndup): Rename from __strndup.
37040 Remove #defines that used to map __strndup to strndup.
37041 Don't use K&R prototypes.
37042 Remove LIBC-related code, since this file is not sync'd with glibc.
37043 * lib/strndup.h: Revamp, accordingly.
37044 * m4/strndup.m4: Modernize.
37046 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
37048 * modules/savewd (Depends-on): Add 'raise'.
37049 * lib/savewd.c: Include <signal.h>, for 'raise'.
37051 2006-09-26 Jim Meyering <jim@meyering.net>
37053 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
37054 when we detect Darwin 8.7.0's acl_get_file bug.
37055 Rearrange to perform the new (below) run-test while $LIBS
37056 contains any acl-related library. Set USE_ACL at the end.
37057 (gl_ACL_GET_FILE): New function.
37059 2006-09-26 Eric Blake <ebb9@byu.net>
37061 * lib/verror.c: Include <config.h> unconditionally.
37063 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
37065 * modules/clock-time (Maintainer): Add self.
37066 * modules/getlogin_r (Depends-on): Add extensions.
37068 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37070 * modules/clock-time: New module.
37071 * modules/nanosleep (Depends-on): Add clock-time.
37072 * modules/gethrxtime (Depends-on): Likewise.
37073 * modules/gettime (Depends-on): Likewise.
37074 * modules/settime (Depends-on): Likewise.
37076 * modules/fts-lgpl: Depend on openat.
37077 * modules/mkancesdirs: Depend on savewd.
37078 * modules/mkdir-p: Likewise.
37080 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37082 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
37084 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
37085 `gl_have_arbitrary_file_name_length_limit' to
37086 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
37087 actually works between configure runs.
37089 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37090 Bruno Haible <bruno@clisp.org>
37092 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
37094 2006-09-25 Jim Meyering <jim@meyering.net>
37096 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
37097 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
37099 2006-09-25 Eric Blake <ebb9@byu.net>
37101 * gnulib-tool (func_import, func_create_testdir): Fix typos in
37102 exec's in 2006-09-18 patch when shuffling fds.
37104 2006-09-25 Bruno Haible <bruno@clisp.org>
37106 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
37107 Reported by Jim Meyering.
37109 2006-09-24 Jim Meyering <jim@meyering.net>
37111 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
37112 compare a pointer against a literal "0". That caused failures with
37113 at least HP-UX's hpcc.
37115 2006-09-22 Simon Josefsson <jas@extundo.com>
37119 * modules/gc-hmac-sha1:
37120 * modules/gc-hmac-md5:
37122 * modules/gc-arcfour: Distribute more files.
37124 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37126 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
37127 (gl_linked_iterator_from_to): Initialize struct completely.
37128 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
37129 (gl_tree_iterator_from_to): Likewise
37130 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
37131 * lib/gl_array_list.c [lint] (gl_array_iterator)
37132 (gl_array_iterator_from_to): Likewise.
37133 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
37134 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
37135 (gl_carray_iterator_from_to): Likewise.
37137 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
37138 * lib/md4.c (md4_process_block): Remove unused variable.
37139 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
37140 parentheses for clarity.
37142 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37144 * modules/bison-i18n (Depends-on): Add gettext.
37146 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37148 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
37149 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37150 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
37151 also add missing comma that caused broken test.
37152 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
37153 stdlib.h, for `abort'.
37154 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
37156 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
37157 include unistd.h if present, for `rmdir'.
37158 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
37160 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
37161 in the process include standard headers for prototypes.
37162 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
37163 gets declared on GNU/Linux.
37164 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
37165 unistd.h, for `rmdir'.
37166 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
37168 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
37170 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
37172 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
37174 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37176 * gnulib-tool (func_version): Create output all at once. This
37177 may help avoid triggering unnecessary SIGPIPEs, and at any
37178 rate it doesn't hurt.
37180 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37181 Bruno Haible <bruno@clisp.org>
37183 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
37184 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
37185 * m4/signed.m4 (bh_C_SIGNED): Likewise.
37187 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
37188 (gl_FUNC_VASPRINTF): Invoke it.
37190 2006-09-22 Bruno Haible <bruno@clisp.org>
37192 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
37193 getloadavg.c as first argument.
37195 2006-09-22 Bruno Haible <bruno@clisp.org>
37197 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
37198 at the beginning of the gl_INIT macro.
37199 * modules/getloadavg (configure.ac): Pass $gl_source_base to
37202 2006-09-22 Bruno Haible <bruno@clisp.org>
37204 * gnulib-tool (func_create_megatestdir): Don't include the config-h
37206 Suggested by Ralf Wildenhues.
37208 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
37210 Import this patch from libc:
37212 2006-09-06 Jakub Jelinek <jakub@redhat.com>
37214 * lib/regex_internal.c (re_string_reconstruct): Handle
37215 offset < pstr->valid_raw_len && pstr->offsets_needed case.
37216 Ensure no bytes read before raw_mbs array. Pass a saved copy of
37217 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
37218 re_string_context_at.
37220 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
37222 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
37223 gl_REGEX now does it for us.
37224 (gl_REGEX): Add test taken from
37225 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
37227 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
37228 Check that large offsets work. Modernize Autoconf usages.
37229 Prefer "yes" to mean a good thing rather than a bad.
37230 Don't put "#define mkstemp" in config.h, as this might interfere
37231 with standard system headers that "#define mkstemp mkstemp64".
37233 * modules/mkstemp (Depends-on): Add extensions, so that
37234 mkstemp is visible on some platforms.
37235 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
37236 (Include): Change to "mkstemp.h" from <stdlib.h>.
37237 (Files): Add mkstemp.h.
37239 * lib/mkstemp.h: New file, since some standard headers
37241 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
37242 Include "mkstemp.h".
37243 Make the _LIBC code resemble glibc original more,
37244 e.g., use K&R style.
37245 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
37246 (mkstemp): Remove, since mkstemp.h does this for us.
37247 * lib/stdlib--.h: Include mkstemp.h.
37249 Import this patch from libc:
37251 2006-04-07 Ulrich Drepper <drepper@redhat.com>
37253 * lib/tempname.c (__gen_tempname): Change attempts_min
37254 into a macro. Use preprocessor to decide how to initialize
37255 attempts [Coverity CID 67].
37257 2006-09-20 Bruno Haible <bruno@clisp.org>
37259 * lib/mkdtemp.c: Import from libc.
37260 2006-04-07 Ulrich Drepper <drepper@redhat.com>
37261 * sysdeps/posix/tempname.c (__gen_tempname): Change
37262 attempts_min into a macro. Use preprocessor to decide how to
37263 initialize attempts [Coverity CID 67].
37264 2001-11-27 Paul Eggert <eggert@twinsun.com>
37265 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
37266 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
37268 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37270 * gnulib-tool (func_exit): New function, to allow to pass the
37271 exit status portably through the trap. Use everywhere.
37272 (--help, --version): Signal a write error.
37273 (trap): catch SIGPIPE, for write errors.
37274 Exit at the end of the trap, with the correct exit status.
37276 2006-09-19 Karl Berry <karl@gnu.org>
37278 * doc/gnulib.texi: note about the license texinfo files.
37280 2006-09-19 Eric Blake <ebb9@byu.net>
37282 * gnulib-tool: Avoid space-tab.
37284 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
37286 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
37287 that prevented coreutils 6.1 from building. Problem reported
37288 by Petter Reinholdtsen.
37290 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
37292 * gnulib-tool (avoidlist): Fix typo that broke options like
37293 --avoid=lock that are used by coreutils bootstrap.
37295 2006-09-18 Mark D. Baushke <mdb@gnu.org>
37297 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
37298 more systematically.
37300 2006-09-18 Jim Meyering <jim@meyering.net>
37302 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
37304 2006-09-18 Bruno Haible <bruno@clisp.org>
37306 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
37308 2006-09-18 Bruno Haible <bruno@clisp.org>
37310 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
37311 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
37312 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
37313 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
37314 * m4/gettext.m4: Require autoconf >= 2.52.
37315 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
37316 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
37317 of gl_cv_header_inttypes_h.
37319 2006-09-18 Bruno Haible <bruno@clisp.org>
37321 * lib/javaversion.c: Include configmake.h.
37323 2006-09-18 Bruno Haible <bruno@clisp.org>
37325 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
37326 avoid that the while loops be executed in a subshell.
37328 2006-09-18 Bruno Haible <bruno@clisp.org>
37330 * MODULES.html.sh (func_module): Break long lines.
37331 Suggested by Bruce Korb <bkorb@gnu.org>.
37333 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37335 Speed up by a factor of 1.12.
37336 * gnulib-tool (nl): New variable.
37337 (func_import): Rewrite include directive extraction to only read each
37340 2006-09-17 Bruno Haible <bruno@clisp.org>
37342 * modules/javaversion (Makefile.am): Remove DEFS setting.
37343 (Depends-on): Add configmake, for PKGDATADIR definition.
37345 2006-09-17 Bruno Haible <bruno@clisp.org>
37347 * gnulib-tool (func_create_testdir): Rewrite all files at once.
37349 2006-09-17 Bruno Haible <bruno@clisp.org>
37351 * gnulib-tool (func_append): New function, stolen from libtool.m4.
37352 (func_modules_transitive_closure, func_modules_add_dummy,
37353 func_modules_to_filelist, func_import, func_create_testdir,
37354 func_create_megatestdir, ...): Use it wherever possible.
37355 Suggested by Ralf Wildenhues.
37357 2006-09-16 Karl Berry <karl@gnu.org>
37359 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
37360 to avoid sectioning errors.
37361 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
37362 [ifinfo]: blank line after @center-ed titles.
37363 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
37364 Spell FSF address consistently with others.
37365 (These changes approved by rms.)
37367 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37369 Speed up by a factor of 1.61.
37370 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
37371 already checked module names again.
37373 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37375 Speed up by a factor of 1.13.
37376 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
37377 for new_files, and the input to func_add_or_update.
37379 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37381 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
37382 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
37384 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
37386 * modules/mkancesdirs (Depends-on): Add fcntl.
37387 * modules/savewd: New file.
37388 * MODULES.html.sh (File system functions): Add savewd.
37390 * modules/configmake (Makefile.am): Add support for the
37391 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
37393 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
37395 * m4/savewd.m4: New file.
37397 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
37399 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
37400 (dirchownmod): New arg FD. All callers changed.
37401 Use FD rather than opening the directory ourself, as opening is
37402 now the caller's responsibility.
37403 * lib/dirchownmod.h: Likewise.
37404 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
37405 hosts that require <sys/types.h> before <sys/stat.h>. Include
37406 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
37407 (test_dir): Remove.
37408 (mkancesdirs): Return length of prefix of FILE that has already
37409 been made, or -2 if there is a child doing the work. Redo
37410 algorithm so that it is O(N) rather than O(N**2). Optimize away
37411 ".", and treat ".." specially since it might stray back into
37412 already-created areas. Use a subprocess if necessary. New arg
37413 WD; all users changed. MAKE_DIR function should now return 1
37414 if it creates a directory that is not readable. Return -2 if
37415 a child process is spun off.
37416 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
37417 Adjust signature to match code.
37418 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
37419 (make_dir_parents): Use a subprocess if necessary. New arg WD;
37421 * lib/savewd.c, lib/savewd.h: New files.
37423 2006-09-15 Jim Meyering <jim@meyering.net>
37425 * modules/rename-dest-slash: New module.
37426 * MODULES.html.sh (posix_compat): Add it here.
37428 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
37430 2006-09-15 Jim Meyering <jim@meyering.net>
37432 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
37435 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
37437 2006-09-15 Jim Meyering <jim@meyering.net>
37439 * lib/rename-dest-slash.c (has_trailing_slash): Use
37440 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
37441 (rpl_rename_dest_slash): Perform the cheaper trailing slash
37442 test before testing whether SRC is a directory.
37443 Suggestions from Bruno Haible.
37445 Avoid a warning about an unused variable.
37446 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
37447 into the #ifdef block where it's used.
37449 * lib/rename-dest-slash.c: New file.
37451 2006-09-14 Bruno Haible <bruno@clisp.org>
37453 * lib/allocsa.c: Include <config.h> unconditionally.
37454 * lib/asnprintf.c: Likewise.
37455 * lib/asprintf.c: Likewise.
37456 * lib/c-strcasecmp.c: Likewise.
37457 * lib/c-strcasestr.c: Likewise.
37458 * lib/c-strncasecmp.c: Likewise.
37459 * lib/c-strstr.c: Likewise.
37460 * lib/classpath.c: Likewise.
37461 * lib/clean-temp.c: Likewise.
37462 * lib/concatpath.c: Likewise.
37463 * lib/copy-file.c: Likewise.
37464 * lib/csharpcomp.c: Likewise.
37465 * lib/csharpexec.c: Likewise.
37466 * lib/execute.c: Likewise.
37467 * lib/fatal-signal.c: Likewise.
37468 * lib/findprog.c: Likewise.
37469 * lib/fwriteerror.c: Likewise.
37470 * lib/gl_array_list.c: Likewise.
37471 * lib/gl_array_oset.c: Likewise.
37472 * lib/gl_avltree_list.c: Likewise.
37473 * lib/gl_avltree_oset.c: Likewise.
37474 * lib/gl_avltreehash_list.c: Likewise.
37475 * lib/gl_carray_list.c: Likewise.
37476 * lib/gl_linked_list.c: Likewise.
37477 * lib/gl_linkedhash_list.c: Likewise.
37478 * lib/gl_list.c: Likewise.
37479 * lib/gl_oset.c: Likewise.
37480 * lib/gl_rbtree_list.c: Likewise.
37481 * lib/gl_rbtree_oset.c: Likewise.
37482 * lib/gl_rbtreehash_list.c: Likewise.
37483 * lib/imaxabs.c: Likewise.
37484 * lib/imaxdiv.c: Likewise.
37485 * lib/javacomp.c: Likewise.
37486 * lib/javaexec.c: Likewise.
37487 * lib/javaversion.c: Likewise.
37488 * lib/linebreak.c: Likewise.
37489 * lib/localcharset.c: Likewise.
37490 * lib/lock.c: Likewise.
37491 * lib/mbchar.c: Likewise.
37492 * lib/mbswidth.c: Likewise.
37493 * lib/mkdtemp.c: Likewise.
37494 * lib/pipe.c: Likewise.
37495 * lib/printf-args.c: Likewise.
37496 * lib/printf-parse.c: Likewise.
37497 * lib/progname.c: Likewise.
37498 * lib/progreloc.c: Likewise.
37499 * lib/readlink.c: Likewise.
37500 * lib/sh-quote.c: Likewise.
37501 * lib/stpcpy.c: Likewise.
37502 * lib/stpncpy.c: Likewise.
37503 * lib/strcasecmp.c: Likewise.
37504 * lib/strcasestr.c: Likewise.
37505 * lib/strcspn.c: Likewise.
37506 * lib/striconv.c: Likewise.
37507 * lib/strncasecmp.c: Likewise.
37508 * lib/strnlen1.c: Likewise.
37509 * lib/strstr.c: Likewise.
37510 * lib/strtok_r.c: Likewise.
37511 * lib/tls.c: Likewise.
37512 * lib/tmpdir.c: Likewise.
37513 * lib/unicodeio.c: Likewise.
37514 * lib/unsetenv.c: Likewise.
37515 * lib/vasnprintf.c: Likewise.
37516 * lib/vasprintf.c: Likewise.
37517 * lib/wait-process.c: Likewise.
37518 * lib/xallocsa.c: Likewise.
37519 * lib/xsetenv.c: Likewise.
37520 * lib/xstriconv.c: Likewise.
37522 2006-09-13 Simon Josefsson <jas@extundo.com>
37524 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
37525 that internally, suggested by Ralf Wildenhues
37526 <Ralf.Wildenhues@gmx.de>.
37528 2006-09-13 Simon Josefsson <jas@extundo.com>
37530 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
37532 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37534 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
37536 * lib/_fpending.c: Include <config.h> unconditionally, since we no
37537 longer worry about uses that don't define HAVE_CONFIG_H.
37538 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
37539 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
37540 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
37541 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
37542 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
37543 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
37544 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
37545 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
37546 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
37547 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
37548 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
37549 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
37550 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
37551 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
37552 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
37553 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
37554 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
37555 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
37556 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
37557 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
37558 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
37559 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
37560 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
37561 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
37562 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
37563 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
37564 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
37565 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
37566 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
37567 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
37568 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
37569 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
37570 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
37571 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
37572 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
37573 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
37574 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
37575 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
37576 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
37577 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
37578 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
37581 2006-09-13 Eric Blake <ebb9@byu.net>
37583 * lib/getopt.c: Fix typo in last commit.
37585 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
37587 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
37590 2006-09-12 Jim Meyering <jim@meyering.net>
37592 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
37593 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
37594 Reported by Nelson H. F. Beebe.
37596 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
37598 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
37599 program_invocation_name and program_invocation_short_name are
37601 * lib/argp-namefrob.h: Move declarations of program_invocation_name
37602 and program_invocation_short_name to argp.h, so they are visible
37604 * lib/argp.h: Likewise
37606 2006-09-10 Bruno Haible <bruno@clisp.org>
37608 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
37609 m4/inttypes_h.m4, m4/uintmax_t.m4.
37611 2006-09-10 Bruno Haible <bruno@clisp.org>
37613 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
37614 gl_AC_TYPE_UINTMAX_T.
37616 2006-09-10 Bruno Haible <bruno@clisp.org>
37618 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
37620 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
37622 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
37623 convention. Text proposed by Bruno Haible.
37624 (struct argp_option): Document the use of N_() wrappers.
37626 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
37627 '\v', and translate the two parts separately, instead of feeding
37628 the whole string to gettext. This allows to exclude
37629 '\v' from the strings visible to the translator by writing doc
37630 strings as N_("..") "\v" N_("..").
37632 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
37634 * config/srclist.txt: Undo latest change; the bug was fixed.
37636 2006-09-09 Bruno Haible <bruno@clisp.org>
37638 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
37639 assignments if building a library without libtool.
37640 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
37641 in func_emit_lib_Makefile_am.
37642 (func_import): When building a static library libfoo.a, arrange to
37643 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
37644 (func_create_testdir): Likewise.
37645 * modules/gc (configure.ac, Makefile.am): If building statically,
37646 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
37647 * modules/iconvme (configure.ac, Makefile.am): Likewise.
37648 * modules/striconv (configure.ac, Makefile.am): Likewise.
37649 Based on a suggestion by Ralf Wildenhues.
37651 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37653 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
37654 Check for unistd.h too, since Autoconf doesn't assume POSIX.
37657 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37658 Add year_2050_test to catch glibc bug 2821
37659 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37661 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
37662 Prefer #ifdef to #if.
37664 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
37665 Return from 'main' instead of calling 'exit'.
37667 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37669 * lib/mktime.c (guess_time_tm): Fix bug where mktime
37670 returned the maximum time_t value rather than (time_t) -1.
37671 Problem originally reported by William Bardwell
37672 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
37674 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37676 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
37679 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
37681 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
37684 2006-09-08 Jim Meyering <jim@meyering.net>
37686 Don't make generated files read-only. That would bother too many
37687 people. However, do retain the ability to work when targets are
37688 read-only: remove the destination and temporary files before writing
37689 them (when generated via sed or echo), or by using the -f option for
37690 both cp and mv commands. Suggestion to use -f from Paul Eggert.
37691 * modules/alloca-opt, modules/argz, modules/arpa_inet:
37692 * modules/byteswap, modules/configmake, modules/fcntl:
37693 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37694 * modules/localcharset, modules/netinet_in, modules/poll:
37695 * modules/stdbool, modules/stdint, modules/sys_select:
37696 * modules/sys_socket, modules/sys_stat, modules/sysexits:
37698 2006-09-08 Jim Meyering <jim@meyering.net>
37700 Avoid new build failure on FreeBSD 6.0.
37701 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
37702 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
37703 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
37705 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37707 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
37709 2006-09-07 Jim Meyering <jim@meyering.net>
37711 Fix global typo in last change: use chmod u-w, not chmod u-x.
37712 Spotted by Paul Eggert and Bruce Korb.
37713 * modules/alloca-opt, modules/argz, modules/arpa_inet:
37714 * modules/byteswap, modules/configmake, modules/fcntl:
37715 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
37716 * modules/localcharset, modules/netinet_in, modules/poll:
37717 * modules/stdbool, modules/stdint, modules/sys_select:
37718 * modules/sys_socket, modules/sys_stat, modules/sysexits:
37720 2006-09-06 Jim Meyering <jim@meyering.net>
37722 Make generated files be read-only.
37723 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
37724 Ensure that each generated file is now read-only.
37725 * modules/argz: Likewise.
37726 * modules/arpa_inet: Likewise.
37727 * modules/byteswap: Likewise.
37728 * modules/configmake: Likewise.
37729 * modules/fcntl: Likewise.
37730 * modules/fnmatch: Likewise.
37731 * modules/getopt: Likewise.
37732 * modules/glob: Likewise.
37733 * modules/inttypes: Likewise.
37734 * modules/netinet_in: Likewise.
37735 * modules/poll: Likewise.
37736 * modules/stdbool: Likewise.
37737 * modules/stdint: Likewise.
37738 * modules/sys_select: Likewise.
37739 * modules/sys_socket: Likewise.
37740 * modules/sys_stat: Likewise.
37741 * modules/sysexits: Likewise.
37742 * modules/localcharset: Same as above, but continue using temporary
37743 file named "t-$@" (why different?) rather than the "$@-t" used
37746 * modules/sysexits (Makefile.am): Replace literal occurrences
37747 of "sysexit.h" more readable, and more consistent, "$@".
37749 2006-09-06 Bruno Haible <bruno@clisp.org>
37751 * modules/striconv: New file.
37752 * modules/xstriconv: New file.
37753 * MODULES.html.sh (Internationalization functions): Add striconv,
37756 2006-09-06 Bruno Haible <bruno@clisp.org>
37758 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
37759 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
37760 not using libtool correctly.
37762 2006-09-06 Bruno Haible <bruno@clisp.org>
37764 * lib/striconv.h: New file.
37765 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
37767 * lib/xstriconv.h: New file.
37768 * lib/xstriconv.c: New file.
37770 2006-09-06 Bruno Haible <bruno@clisp.org>
37772 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
37775 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37777 * lib/argz_.h: Sync from Libtool.
37779 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
37780 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37782 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
37784 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
37786 * modules/trim: New file.
37788 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
37790 * lib/trim.h: New file.
37791 * lib/trim.c: New file.
37793 2006-09-05 Bruno Haible <bruno@clisp.org>
37795 * MODULES.html.sh (String handling): Add trim.
37797 2006-09-04 Karl Berry <karl@gnu.org>
37799 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
37800 until next release.
37802 2006-09-03 Bruno Haible <bruno@clisp.org>
37804 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
37807 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
37809 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
37810 not gl_GETLOADAVG. Omit unneeded semicolons.
37811 Problems reported by Ralf Wildenhues in
37812 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37813 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
37814 at the end, which is the usual gnulib style.
37816 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
37817 of doing all the work ourselves.
37818 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
37819 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
37821 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
37823 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
37824 Problem reported by Ralf Wildenhues in
37825 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
37827 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
37828 HAVE_STRUCT_STATFS_F_FSTYPENAME.
37830 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
37832 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
37833 yesterday's patch by changing test -n to test -z.
37835 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
37837 * modules/getloadavg (Files): Add m4/getloadavg.m4.
37838 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
37839 the former is now obsolescent.
37841 * modules/chdir-long (Depends-on): Add fcntl.
37843 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
37845 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
37846 obsolescent, and programs should use gnulib instead.
37847 * m4/getloadavg.m4: New file, with contents taken from Autoconf
37848 but with prefixes changed.
37850 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
37852 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
37853 or stdbool.h, because they might not exist while configuring.
37855 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
37856 Don't include unistd.h or limits.h; not needed, since chdir-long.h
37858 (O_DIRECTORY): Remove.
37860 2006-08-31 Eric Blake <ebb9@byu.net>
37862 * gnulib-tool: Don't let emacs change spaces to TAB.
37864 2006-08-31 Bruno Haible <bruno@clisp.org>
37866 * gnulib-tool: When calling func_import more than once, do it in a
37868 Reported by Eric Blake <ebb9@byu.net>.
37870 2006-08-31 Bruno Haible <bruno@clisp.org>
37872 * gnulib-tool (nl): Remove variable.
37873 (sed_transform_lib_file): Use more robust test for config-h module.
37874 (func_import): Fix typo in 2006-08-25 patch.
37876 2006-08-31 Bruno Haible <bruno@clisp.org>
37878 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
37879 specified, augment Makefile.am variables instead of assigning them.
37881 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37883 Work around a bug in both the Linux and SunOS 64-bit kernels:
37884 nanosleep mishandles sleeps for longer than 2**31 seconds.
37885 Problem reported by Frank v Waveren in
37886 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37887 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
37888 Check for nanosleep bug.
37889 (LIB_NANOSLEEP): Append clock_gettime library if needed.
37891 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37893 Work around a bug in both the Linux and SunOS 64-bit kernels:
37894 nanosleep mishandles sleeps for longer than 2**31 seconds.
37895 Problem reported by Frank v Waveren in
37896 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
37897 * lib/nanosleep.c (BILLION): New constant.
37898 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
37899 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
37902 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37904 * modules/nanosleep (Depends-on): Add gettime.
37906 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
37907 and Simon Josefsson <jas@extundo.com>
37908 and Oskar Liljeblad <oskar@osk.mine.nu>
37910 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
37911 * gnulib-tool (func_import): New license type 'unmodifiable license
37913 * modules/fdl: Use it. Longer description.
37914 * module/gpl, module/lgpl: New files.
37916 2006-08-30 Jim Meyering <jim@meyering.net>
37918 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
37919 shadowing the parameter.
37921 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37925 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37927 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
37928 sharing with gnulib. Report by Eric Blake.
37930 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37932 * modules/isapipe: New file.
37933 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
37935 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37937 * modules/configmake (Makefile.am): Add a comment, and omit
37938 the CONFIGMAKE_ prefix from generated macro names. Suggested
37941 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37943 * m4/isapipe.m4: New file.
37945 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
37947 * lib/isapipe.c, lib/isapipe.h: New files.
37949 2006-08-29 Jim Meyering <jim@meyering.net>
37951 * modules/configmake (Makefile.am): Make configmake.h depend on
37952 Makefile. Otherwise, a stale configmake.h could hang around.
37954 2006-08-29 Eric Blake <ebb9@byu.net>
37956 * lib/error.c (error_at_line, print_errno_message): Match libc, after
37957 resolution of upstream bug 3044.
37959 2006-08-29 Bruno Haible <bruno@clisp.org>
37961 * modules/localcharset (Depends-on): Add configmake.
37962 (Makefile.am): Remove setting of LIBDIR through DEFS.
37964 2006-08-29 Bruno Haible <bruno@clisp.org>
37966 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
37969 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37971 * modules/fcntl: New file.
37972 * modules/chdir-safer (Depends-on): Add fcntl.
37973 * modules/fts: Likewise.
37974 * modules/mkdir-p: Likewise.
37976 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
37977 This undoes the most recent change, since we're now addressing the
37978 problem in a different way.
37980 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
37981 into output, since the output might be called Makefile.am even
37982 if $makefile_name is something different.
37983 (func_import): Use $makefile_am rather than
37984 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
37987 * modules/inttypes (Files): Add m4/inttypes-h.m4.
37989 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37991 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
37992 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
37993 recent change to stdint.m4, since we're now addressing the problem in a
37996 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
37998 * m4/fcntl_h.m4: New file.
38000 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
38002 * lib/fcntl_.h: New file.
38003 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
38005 * lib/dirchownmod.c: Likewise.
38006 * lib/fts.c: Likewise.
38008 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
38009 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
38010 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
38011 just before including <inttypes.h>, to avoid circular inclusion.
38013 2006-08-28 Jim Meyering <jim@meyering.net>
38015 * doc/visibility.texi: Actually read and correct the grammar of the
38016 sentence affected by yesterday's change.
38018 2006-08-28 Eric Blake <ebb9@byu.net>
38020 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
38023 2006-08-28 Eric Blake <ebb9@byu.net>
38025 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
38027 2006-08-28 Eric Blake <ebb9@byu.net>
38029 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
38031 2006-08-28 Bruno Haible <bruno@clisp.org>
38033 * modules/c-strstr: New file, from GNU gettext.
38034 * MODULES.html.sh (String handling): Add c-strstr.
38036 2006-08-28 Bruno Haible <bruno@clisp.org>
38038 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
38040 Reported by Eric Blake.
38042 2006-08-28 Bruno Haible <bruno@clisp.org>
38044 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
38045 (VASNPRINTF): Return a string of length > INT_MAX without failing.
38046 * lib/vasprintf.c: Include errno.h, limits.h.
38047 (EOVERFLOW): New fallback definition.
38048 (vasprintf): Test here whether the string length is > INT_MAX.
38049 * lib/vsnprintf.c: Include errno.h, limits.h.
38050 (EOVERFLOW): New fallback definition.
38051 (vsnprintf): Fix bug when generated string was too long for the buffer.
38052 Test here whether the string length is > INT_MAX.
38054 2006-08-28 Bruno Haible <bruno@clisp.org>
38056 * lib/inttypes_.h (SCNX*): Remove definitions.
38057 Reported by Eric Blake.
38059 2006-08-28 Bruno Haible <bruno@clisp.org>
38061 * lib/c-strstr.h: New file, from GNU gettext.
38062 * lib/c-strstr.c: New file, from GNU gettext.
38064 2006-08-28 Bruno Haible <bruno@clisp.org>
38066 * gnulib-tool: Reorder some statements.
38068 2006-08-28 Bruno Haible <bruno@clisp.org>
38070 * gnulib-tool: New option --makefile-name.
38071 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
38073 (func_import): Write $makefile_name to the cache file, and read it from
38074 there unless explicitly specified. Use $makefile_name as file name
38075 instead of Makefile.am. Adjust the recommendations accordingly.
38077 2006-08-28 Bruno Haible <bruno@clisp.org>
38079 * gnulib-tool (func_verify_module): Check against misapplying patch.
38081 2006-08-28 Bruno Haible <bruno@clisp.org>
38083 * gnulib-tool (func_relativize, func_relconcat): New functions.
38084 Give an error if --local-dir is given with --update.
38085 Remove trailing slashes from $local_gnulib_dir.
38086 (func_import): Store the relativized $local_gnulib_dir in
38087 gnulib-cache.m4, and read it from there if not specified explicitly.
38089 2006-08-28 Bruno Haible <bruno@clisp.org>
38091 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
38092 is the current directory. Respect also $local_gnulib_dir.
38094 2006-08-28 Bruno Haible <bruno@clisp.org>
38095 Simon Josefsson <jas@extundo.com>
38098 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
38100 2006-08-27 Jim Meyering <jim@meyering.net>
38102 * doc/visibility.texi: Remove duplicate word: "pointer".
38104 2006-08-26 Bruno Haible <bruno@clisp.org>
38106 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
38107 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
38108 (Makefile.am): Create inttypes.h from inttypes_.h.
38109 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
38111 * modules/imaxabs: New file.
38113 * modules/imaxdiv: New file.
38115 2006-08-26 Bruno Haible <bruno@clisp.org>
38117 * m4/inttypes.m4: New file.
38118 * m4/_inttypes_h.m4: Remove file.
38119 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
38121 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
38123 * m4/imaxabs.m4: New file.
38125 * m4/imaxdiv.m4: New file.
38127 2006-08-26 Bruno Haible <bruno@clisp.org>
38129 * lib/inttypes_.h: New file.
38130 * lib/inttypes.h: Remove file.
38131 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
38133 * lib/imaxabs.c: New file.
38135 * lib/imaxdiv.c: New file.
38137 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
38139 New config-h module, so that "make" output needn't be cluttered
38140 by -DHAVE_CONFIG_H.
38141 * MODULES.html.sh (Support for building libraries and executables):
38143 * modules/config-h: New file.
38144 * gnulib-tool (nl, sed_transform_lib_file): New vars.
38145 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
38146 the config-h module is used.
38148 New configmake module, so that "make" output needn't be cluttered
38149 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
38150 * MODULES.html.sh (Support for building libraries and executables):
38152 * modules/configmake: New file.
38154 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
38156 * m4/config-h.m4: New file.
38158 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
38160 * config/srclist.txt: Add elisp-comp.
38162 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
38164 * MODULES.html.sh (Support for building libraries and executables):
38166 * build-aux/elisp-comp: New file.
38167 * modules/elisp-comp: New file.
38169 2006-08-24 Bruno Haible <bruno@clisp.org>
38171 * gnulib-tool (func_create_testdir): Use non-default values of
38172 sourcebase and m4base.
38174 2006-08-24 Bruno Haible <bruno@clisp.org>
38176 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
38179 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
38181 * modules/openat (Depends-on): Add lchown.
38183 2006-08-23 Bruno Haible <bruno@clisp.org>
38185 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
38186 of gl_LOCK_EARLY instead of gl_LOCK.
38188 2006-08-23 Bruno Haible <bruno@clisp.org>
38190 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
38192 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
38194 2006-08-23 Bruno Haible <bruno@clisp.org>
38196 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
38199 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
38200 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
38201 (gl_LOCK): New macro.
38203 2006-08-22 Simon Josefsson <jas@extundo.com>
38205 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
38208 2006-08-22 Simon Josefsson <jas@extundo.com>
38210 * MODULES.html.sh: Add "Support for maintaining and release
38213 * build-aux/gnupload: New file, from coreutils.
38215 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
38217 Avoid the need for AC_LIBSOURCES in m4 macros.
38218 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
38219 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
38220 * modules/check-version (EXTRA_DIST): Add check-version.h.
38221 * modules/crc (EXTRA_DIST): Add crc.h.
38222 * modules/des (EXTRA_DIST): Add des.h.
38223 * modules/gc (EXTRA_DIST): Add gc.h.
38224 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
38225 * modules/getline (EXTRA_DIST): Add getline.h.
38226 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
38227 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
38228 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
38229 * modules/md2 (EXTRA_DIST): Add md2.h.
38230 * modules/md4 (EXTRA_DIST): Add md4.h.
38231 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
38232 * modules/read-file (EXTRA_DIST): Add read-file.h.
38233 * modules/readline (EXTRA_DIST): Add readline.h.
38234 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
38235 rijndael-api-fst.h.
38237 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
38239 * m4/rijndael.m4 (gl_ARCFOUR):
38240 * m4/arctwo.m4 (gl_ARCTWO):
38241 * m4/check-version.m4 (gl_CHECK_VERSION):
38242 * m4/crc.m4 (gl_CRC):
38243 * m4/des.m4 (gl_DES):
38244 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
38245 * m4/gc.m4 (gl_GC):
38246 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
38247 * m4/getline.m4 (gl_FUNC_GETLINE):
38248 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
38249 * m4/hmac-md5.m4 (gl_HMAC_MD5):
38250 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
38251 * m4/md2.m4 (gl_MD2):
38252 * m4/md4.m4 (gl_MD4):
38253 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
38254 * m4/read-file.m4 (gl_FUNC_READ_FILE):
38255 * m4/readline.m4 (gl_FUNC_READLINE):
38256 * m4/rijndael.m4 (gl_RIJNDAEL):
38257 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
38258 to get the necessary .h files and whatnot.
38260 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
38262 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
38263 gnulib rather than the other way around.
38264 * config/srclistvars.sh (COREUTILS): Remove.
38266 2006-08-22 Jim Meyering <jim@meyering.net>
38268 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
38270 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
38272 2006-08-22 Eric Blake <ebb9@byu.net>
38274 * modules/regexprops-generic: New file.
38275 * MODULES.html.sh (Support for building documentation): List it.
38277 2006-08-22 Eric Blake <ebb9@byu.net>
38279 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
38280 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38281 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
38282 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
38284 2006-08-22 Bruno Haible <bruno@clisp.org>
38286 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
38287 and lib_LTLIBRARIES like the other lib_* variables.
38289 2006-08-22 Bruno Haible <bruno@clisp.org>
38291 * build-aux/x-to-1.in: New file, from GNU gettext.
38293 2006-08-22 Bruno Haible <bruno@clisp.org>
38295 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
38298 2006-08-22 Bruno Haible <bruno@clisp.org>
38300 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
38303 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
38306 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
38308 Problem reported by Bruno Haible.
38310 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
38312 Avoid the need for AC_LIBSOURCES in m4 macros.
38313 * modules/acl (EXTRA_DIST): Add acl.h.
38314 * modules/argmatch (Files): Add m4/argmatch.m4.
38315 (configure.ac): Add gl_ARGMATCH.
38316 (EXTRA_DIST): Renamed from lib_SOURCES, for
38317 consistency with the other modules. Remove argmatch.c.
38318 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
38319 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
38320 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
38321 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
38322 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
38323 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
38324 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
38325 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
38326 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
38327 * modules/closeout (EXTRA_DIST): Add closeout.h.
38328 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
38329 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
38330 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
38331 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
38332 dirname.h; remove basename.c and stripslash.c.
38333 * modules/exclude (EXTRA_DIST): Add exclude.h.
38334 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
38335 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
38336 * modules/file-type (EXTRA_DIST): Add file-type.h.
38337 * modules/filemode (EXTRA_DIST): Add filemode.h.
38338 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
38339 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
38340 * modules/fpending (EXTRA_DIST): Add __fpending.h.
38341 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
38342 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
38343 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
38344 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
38345 * modules/getdate (EXTRA_DIST): Add getdate.c.
38346 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
38347 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
38348 * modules/getpass (EXTRA_DIST): Add getpass.h.
38349 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
38350 * modules/group-member (EXTRA_DIST): Add group-member.h.
38351 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
38352 * modules/hash (EXTRA_DIST): Add hash.h.
38353 * modules/human (EXTRA_DIST): Add human.h.
38354 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
38355 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
38356 * modules/lchown (EXTRA_DIST): Add lchown.h.
38357 * modules/long-options (EXTRA_DIST): Add long-options.h.
38358 * modules/lstat (EXTRA_DIST): Add lstat.h.
38359 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
38360 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
38361 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
38362 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
38363 * modules/memxor (EXTRA_DIST): Add memxor.h.
38364 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
38365 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
38366 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
38367 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
38368 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
38369 * modules/physmem (EXTRA_DIST): Add physmem.h.
38370 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
38371 * modules/posixver (EXTRA_DIST): Add posixver.h.
38372 * modules/quote (EXTRA_DIST): Add quote.h.
38373 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
38374 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
38375 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
38376 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
38377 regex_internal.h regexec.c.
38378 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
38379 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
38380 * modules/same (EXTRA_DIST): Add same.h.
38381 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
38382 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
38383 * modules/savedir (EXTRA_DIST): Add savedir.h.
38384 * modules/sha1 (EXTRA_DIST): Add sha1.h.
38385 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
38386 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
38387 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
38388 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
38389 * modules/strdup (EXTRA_DIST): Add strdup.h.
38390 * modules/strftime (EXTRA_DIST): Add strftime.h.
38391 * modules/strndup (EXTRA_DIST): Add strndup.h.
38392 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
38393 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
38394 * modules/time_r (EXTRA_DIST): Add time_r.h.
38395 * modules/timespec (EXTRA_DIST): Add timespec.h.
38396 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
38397 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
38398 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
38399 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
38400 * modules/userspec (EXTRA_DIST): Add userspec.h.
38401 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
38402 * modules/utimens (EXTRA_DIST): Add utimens.h.
38403 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
38404 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
38405 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
38406 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
38407 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
38408 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
38409 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
38410 * modules/yesno (EXTRA_DIST): Add yesno.h.
38412 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
38414 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
38416 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
38417 * m4/dev-ino.m4, same-inode.m4: Remove.
38419 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
38420 * m4/acl.m4 (AC_FUNC_ACL):
38421 * m4/backupfile.m4 (gl_BACKUPFILE):
38422 * m4/c-strtod.m4 (gl_C99_STRTOLD):
38423 * m4/canon-host.m4 (gl_CANON_HOST):
38424 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
38425 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
38426 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
38427 * m4/cloexec.m4 (gl_CLOEXEC):
38428 * m4/close-stream.m4 (gl_CLOSE_STREAM):
38429 * m4/closeout.m4 (gl_CLOSEOUT):
38430 * m4/dirfd.m4 (gl_FUNC_DIRFD):
38431 * m4/dirname.m4 (gl_DIRNAME):
38432 * m4/exclude.m4 (gl_EXCLUDE):
38433 * m4/exitfail.m4 (gl_EXITFAIL):
38434 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
38435 * m4/file-type.m4 (gl_FILE_TYPE):
38436 * m4/filemode.m4 (gl_FILEMODE):
38437 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
38438 * m4/fpending.m4 (gl_FUNC_FPENDING):
38439 * m4/fprintftime.m4 (gl_FPRINTFTIME):
38440 * m4/fts.m4 (gl_FUNC_FTS):
38441 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
38442 * m4/getdate.m4 (gl_GETDATE):
38443 * m4/gethrxtime.m4 (gl_GETHRXTIME):
38444 * m4/getpagesize.m4 (gl_GETPAGESIZE):
38445 * m4/getpass.m4 (gl_FUNC_GETPASS):
38446 * m4/gettime.m4 (gl_GETTIME):
38447 * m4/getugroups.m4 (gl_GETUGROUPS):
38448 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
38449 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
38450 * m4/hard-locale.m4 (gl_HARD_LOCALE):
38451 * m4/hash.m4 (gl_HASH):
38452 * m4/idcache.m4 (gl_IDCACHE):
38453 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
38454 * m4/lchown.m4 (gl_FUNC_LCHOWN):
38455 * m4/long-options.m4 (gl_LONG_OPTIONS):
38456 * m4/lstat.m4 (gl_FUNC_LSTAT):
38457 * m4/md5.m4 (gl_MD5):
38458 * m4/memcasecmp.m4 (gl_MEMCASECMP):
38459 * m4/memcoll.m4 (gl_MEMCOLL):
38460 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
38461 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
38462 * m4/memxor.m4 (gl_MEMXOR):
38463 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
38464 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
38465 * m4/modechange.m4 (gl_MODECHANGE):
38466 * m4/mountlist.m4 (gl_MOUNTLIST):
38467 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
38468 * m4/openat.m4 (gl_FUNC_OPENAT):
38469 * m4/pathmax.m4 (gl_PATHMAX):
38470 * m4/physmem.m4 (gl_PHYSMEM):
38471 * m4/posixtm.m4 (gl_POSIXTM):
38472 * m4/posixver.m4 (gl_POSIXVER):
38473 * m4/quote.m4 (gl_QUOTE):
38474 * m4/quotearg.m4 (gl_QUOTEARG):
38475 * m4/readtokens.m4 (gl_READTOKENS):
38476 * m4/readutmp.m4 (gl_READUTMP):
38477 * m4/regex.m4 (gl_REGEX):
38478 * m4/safe-read.m4 (gl_SAFE_READ):
38479 * m4/safe-write.m4 (gl_SAFE_WRITE):
38480 * m4/same.m4 (gl_SAME):
38481 * m4/save-cwd.m4 (gl_SAVE_CWD):
38482 * m4/savedir.m4 (gl_SAVEDIR):
38483 * m4/settime.m4 (gl_SETTIME):
38484 * m4/sha1.m4 (gl_SHA1):
38485 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
38486 * m4/stat-macros.m4 (gl_STAT_MACROS):
38487 * m4/stat-time.m4 (gl_STAT_TIME):
38488 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
38489 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
38490 * m4/strdup.m4 (gl_FUNC_STRDUP):
38491 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
38492 * m4/strndup.m4 (gl_FUNC_STRNDUP):
38493 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
38494 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
38495 * m4/time_r.m4 (gl_TIME_R):
38496 * m4/timespec.m4 (gl_TIMESPEC):
38497 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
38498 * m4/unlinkdir.m4 (gl_UNLINKDIR):
38499 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
38500 * m4/userspec.m4 (gl_USERSPEC):
38501 * m4/utimecmp.m4 (gl_UTIMECMP):
38502 * m4/utimens.m4 (gl_UTIMENS):
38503 * m4/xalloc.m4 (gl_XALLOC):
38504 * m4/xgetcwd.m4 (gl_XGETCWD):
38505 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
38506 * m4/xreadlink.m4 (gl_XREADLINK):
38507 * m4/xstrtod.m4 (gl_XSTRTOD):
38508 * m4/yesno.m4 (gl_YESNO):
38509 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
38510 to get the necessary .h files and whatnot.
38512 2006-08-21 Mark D. Baushke <mdb@gnu.org>
38513 Bruno Haible <bruno@clisp.org>
38515 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
38516 /bin/sh understanding of '!' conditional negation.
38518 2006-08-21 Jim Meyering <jim@meyering.net>
38520 * modules/openat (Depends-on): Really alphabetize.
38522 * modules/acl (Depends-on): Add error and quote.
38524 * check-module (find_included_lib_files): Add at-func.c to the
38525 ok-to-include-more-than-once white list.
38527 * modules/openat (Depends-on): Add lstat. Alphabetize.
38529 2006-08-21 Bruno Haible <bruno@clisp.org>
38531 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38532 Emit a pkgdata_DATA variable only if some snippets add contents to it.
38533 Reported by Martin Lambers <marlam@marlam.de>.
38535 2006-08-21 Bruno Haible <bruno@clisp.org>
38537 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
38538 specify an installation location, don't emit a noinst_LIBRARIES or
38539 noinst_LTLIBRARIES assignment.
38541 2006-08-21 Bruno Haible <bruno@clisp.org>
38544 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
38545 BeOS has mbrtowc() but no <wctype.h>.
38547 2006-08-21 Bruno Haible <bruno@clisp.org>
38550 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
38553 2006-08-21 Bruno Haible <bruno@clisp.org>
38556 * lib/mbchar.h: Include <wctype.h> only if it exists.
38558 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
38560 Remove files that are no longer needed by their respective modules.
38561 * m4/obstack.m4: Remove.
38562 * m4/strerror_r.m4: Remove.
38563 * m4/uint32_t.m4: Remove.
38564 * m4/uintptr_t.m4: Remove.
38565 * m4/ullong_max.m4: Remove.
38566 * m4/xstrtoimax.m4: Remove.
38567 * m4/xstrtoumax.m4: Remove.
38569 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
38570 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
38571 dependencies now capture this.
38573 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
38574 Do not use AC_LIBSOURCES, since gnulib modules now do this.
38575 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
38576 * m4/human.m4 (gl_HUMAN): Likewise.
38577 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
38578 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
38580 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
38582 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
38583 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
38585 * m4/human.m4 (gl_HUMAN): Likewise.
38586 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
38587 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
38588 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
38589 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
38590 * m4/xstrtol (gl_XSTRTOL): Likewise.
38592 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
38593 AC_TYPE_LONG_LONG_INT.
38594 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
38595 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
38596 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
38597 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
38599 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
38602 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
38603 (gl_PREREQ_XSTRTOUL): Remove.
38605 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
38607 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
38610 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
38612 Add and change modules to make it easier for coreutils to use
38614 * modules/backupfile (Files): Remove m4/d-ino.m4.
38615 (Depends-on): Add d-ino.
38616 * modules/cycle-check (Depends-on): Add stdint.
38617 (lib_SOURCES): Add cycle-check.h.
38618 * modules/d-ino: New module.
38619 * modules/d-type: New module.
38620 * modules/error (Files): Remove m4/strerror_r.m4.
38621 * modules/filemode (Files): Add m4/st_dm_mode.m4.
38622 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
38623 m4/inttypes_h.m4, m4/uintmax_t.m4.
38624 (Depends-on): Add stdint.
38625 (lib_SOURCES): Add fsusage.h.
38626 * modules/getcwd (Files): Remove d-ino.m4.
38627 (Depends-on): Add d-ino.
38628 * modules/getndelim2 (Depends-on): Add stdint.
38629 * modules/glob (Files): Remove m4/d-type.m4.
38630 (Depends-on): Add d-type.
38631 * modules/host-os: New module.
38632 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
38633 m4/inttypes_h.m4, m4/uintmax_t.m4.
38634 * Depends-on: Add stdint.
38635 (lib_SOURCES): Add human.h.
38636 * modules/inttostr (Files): Remove m4/intmax_t.m4,
38637 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
38638 m4/uintmax_t.m4, m4/ulonglong.m4.
38639 (Depends-on): Add stdint.
38640 (EXTRA_DIST): Add inttostr.h.
38641 * modules/lchmod: New module.
38642 * modules/link-follow: New module.
38643 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
38644 (Depends-on): Add lchmod.
38645 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
38646 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
38647 (Depends-on): Add stdint.
38648 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
38649 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
38650 (Depends-on): Add stdint.
38651 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
38652 * modules/perl: New module.
38653 * modules/regex (Depends-on): Add stdint.
38654 * modules/rmdir-errno: New module.
38655 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38657 (Depends-on): Add stdint.
38658 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
38660 (Depends-on): Add stdint.
38661 * modules/unlink-busy: New module.
38662 * modules/utimecmp (Depends-on): Add stdint.
38663 * modules/uptime: New module.
38664 * modules/winsz-ioctl: New module.
38665 * modules/winsz-termios: New module.
38666 * modules/xnanosleep (Depends-on): Add nanosleep.
38667 * modules/ullong_max: Remove.
38668 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
38669 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
38670 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
38671 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
38672 (Depends-on): Add inttypes.
38673 (lib_SOURCES): Add xstrtol.h.
38674 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
38675 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
38676 * MODULES.html.sh: Move 'assert' into the assert section.
38677 Move 'dummy' into the linking section.
38679 Add section for compatibility checks for POSIX:2001 functions,
38680 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
38681 winsz-ioctl, and winsz-termios into it.
38683 Add top-level Misc section and put host-os, perl, and uptime
38686 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
38688 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
38689 now assume the stdint module. Do not include inttypes.h.
38690 * lib/fsusage.h: Likewise.
38691 * lib/getndelim2.c: Likewise.
38692 * lib/human.h: Likewise.
38693 * lib/inttostr.h: Likewise.
38694 * lib/obstack.c: Likewise.
38695 * lib/regex_internal.h: Likewise.
38696 * lib/tempname.c: Likewise.
38697 * lib/utimecmp.c: Likewise.
38698 * lib/xstrtol.h: Likewise.
38700 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
38702 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
38703 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
38704 * lib/xtime.h: Likewise.
38706 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
38708 * modules/openat (Files): Add lib/fchmodat.c.
38709 Fixes problem reported by Jay Youngman.
38711 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
38713 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
38714 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
38716 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
38717 Bruno Haible <bruno@clisp.org>
38719 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
38720 and is a script that invokes bison. Tighten the code. Add comments.
38722 2006-08-18 Jim Meyering <jim@meyering.net>
38724 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
38725 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
38726 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
38727 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
38729 2006-08-18 Bruno Haible <bruno@clisp.org>
38731 * modules/bison-i18n: New file.
38732 * MODULES.html.sh (Internationalization functions): Add it.
38734 2006-08-18 Bruno Haible <bruno@clisp.org>
38736 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
38737 sys/statvfs.h. When getmntinfo was found, check its declaration and
38738 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
38740 2006-08-18 Bruno Haible <bruno@clisp.org>
38742 * m4/bison-i18n.m4: New file, from bison.
38744 2006-08-18 Bruno Haible <bruno@clisp.org>
38746 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
38747 (ME_DUMMY): Treat "kernfs" as a dummy.
38748 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
38750 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
38752 Update from coreutils.
38754 2006-08-15 Jim Meyering <jim@meyering.net>
38756 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
38758 2006-01-17 Jim Meyering <jim@meyering.net>
38760 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
38762 2006-01-11 Jim Meyering <jim@meyering.net>
38764 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
38765 Check for the lchmod function.
38767 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
38769 Update from coreutils.
38771 * lib/__fpending.h: Add copyright notice.
38772 * lib/fprintftime.h: Likewise.
38773 * lib/savedir.c: Use (C) in copyright notice.
38774 * lib/savedir.h: Likewise.
38776 2006-08-15 Jim Meyering <jim@meyering.net>
38778 * lib/at-func.c: New file, with the logic of all emulated at-functions.
38779 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
38780 in support of the EXPECTED_ERRNO macro.
38781 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
38782 definitions. Instead, define the appropriate symbols and include
38784 * lib/mkdirat.c (mkdirat): Likewise.
38785 * lib/fchmodat.c (fchmodat): Likewise.
38786 (ENOSYS): Remove definition.
38787 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
38788 it. Don't include "unistd--.h" -- it wasn't ever used.
38790 2006-01-17 Jim Meyering <jim@meyering.net>
38792 Rewrite fts.c not to change the current working directory,
38793 by using openat, fstatat, fdopendir, etc..
38795 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
38796 (HAVE_OPENAT_SUPPORT): Define.
38797 [_LIBC] (fchdir): Don't undef or define; no longer used.
38798 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
38799 Now, this `function' always succeeds, and consumes its file descriptor
38800 parameter -- so callers must not close such FDs. Update callers.
38801 (diropen_fd, opendirat, cwd_advance_fd): New functions.
38802 (diropen): Add parameter, SP. Adjust all callers.
38803 Implement using diropen_fd, rather than open.
38804 (fts_open): Initialize new member, fts_cwd_fd.
38805 Remove fts_rft-setting code.
38806 (fts_close): Close fts_cwd_fd, if necessary.
38807 (__opendir2): Define in terms of opendir or opendirat,
38808 depending on whether the FST_NOCHDIR flag is set.
38809 (fts_build): Since fts_safe_changedir consumes its FD, and since
38810 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
38811 and close the dup'd file descriptor upon failure.
38812 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
38813 (fts_safe_changedir): Tweak semantics to reflect that this function
38814 now calls cwd_advance_fd and hence consumes its FD argument.
38815 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
38816 [struct FTS] (fts_rft): Remove now-unused member.
38817 [struct FTS] (fts_cycle.state): Improve comment.
38819 * lib/openat.c (openat_needs_fchdir): New function.
38820 * lib/openat.h (openat_needs_fchdir): Declare it.
38822 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
38824 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
38825 Problem and fix reported by Pádraig Brady in
38826 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
38828 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38830 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
38832 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38834 * lib/memcoll.c (memcoll): Optimize for the common case where the
38835 arguments are bytewise equal.
38837 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38839 * doc/regexprops-generic.texi: Add a copyright notice.
38841 2006-08-15 Bruno Haible <bruno@clisp.org>
38843 * modules/tmpdir (License): Change to LGPL.
38845 2006-08-15 Bruno Haible <bruno@clisp.org>
38847 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
38850 2006-08-14 Simon Josefsson <jas@extundo.com>
38852 * config/srclist.txt: Add gnupload.
38854 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38856 Change copyright notice from LGPL 2 to GPL 2, since that's the
38857 standard form used in the gnulib repository.
38858 * tests/test-lock.c: Likewise.
38859 * tests/test-stdint.c: Likewise.
38860 * tests/test-tls.c: Likewise.
38862 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
38863 prelude-manager. User shorter URLs for GNU projects, without '?'.
38864 Add copyright notice.
38866 * check-module: Add copyright notice. Output a copyright
38867 notice if "--version" is specified.
38868 * modules/COPYING: New file.
38869 * tests/test-getaddrinfo.c: Add copyright notice.
38870 * tests/test-verify.c: Likewise.
38872 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38874 Change copyright notice from LGPL 2 to GPL 2, since that's the
38875 standard form used in the gnulib repository.
38876 * lib/lock.c: LGPL -> GPL.
38877 * lib/lock.h: Likewise.
38878 * lib/strnlen1.c: Likewise.
38879 * lib/strnlen1.h: Likewise.
38880 * lib/tls.c: Likewise.
38881 * lib/tls.h: Likewise.
38882 * lib/tmpdir.c: Likewise.
38884 * lib/TODO: Remove; this belongs only in coreutils.
38886 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38888 Add copyright notices to long-enough files that lack them, since
38889 otherwise the files aren't clearly free. Use the same notice that
38890 getdate.texi already uses.
38891 * doc/alloca-opt.texi: Add copyright notice.
38892 * doc/alloca.texi: Likewise.
38893 * doc/ctime.texi: Likewise.
38894 * doc/functions.texi: Likewise.
38895 * doc/gcd.texi: Likewise.
38896 * doc/gnulib-tool.texi: Likewise.
38897 * doc/inet_ntoa.texi: Likewise.
38898 * doc/visibility.texi: Likewise.
38900 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
38901 * doc/quote.texi: Add copyright notice.
38903 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
38904 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
38905 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
38906 Mention SunOS 5.11. Mention that everything before SunOS 5.7
38907 is now obsolete, and give a pointer to the Sun list.
38908 Add copyright notice.
38910 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
38912 * config/srclistvars.sh: Add copyright notice.
38914 2006-08-14 Eric Blake <ebb9@byu.net>
38916 Import the following change from libc:
38918 2006-08-12 Ulrich Drepper <drepper@redhat.com>
38921 * lib/misc/error.c: Add space between program name and message if file
38924 2006-08-12 Karl Berry <karl@gnu.org>
38926 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
38927 remove, these originate in gnulib now.
38929 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38931 * doc/Makefile (standards.info standards.html standards.dvi):
38932 Also depend on make-stds.texi.
38934 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
38936 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
38937 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
38939 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
38940 in wchar_t. Problem reported by Eric Blake.
38942 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
38943 LEN is smaller than SIZE. Suggested by Bruno Haible.
38944 Also, help the compiler to keep LEN in a register.
38946 2006-08-11 Eric Blake <ebb9@byu.net>
38948 * users.txt: Sort. Add tar.
38950 2006-08-11 Bruno Haible <bruno@clisp.org>
38952 * users.txt: New file.
38954 2006-08-11 Bruno Haible <bruno@clisp.org>
38956 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
38957 before <wchar.h>. Needed for OSF/1 and BSD/OS.
38959 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
38961 * modules/snprintf (Depends-on): Remove minmax.
38962 (Maintainer): Add self and Bruno.
38964 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
38966 * lib/.cppi-disable: Add snprintf.h, socket_.h.
38967 * lib/snprintf.c: Include <errno.h> and <limits.h>.
38968 (EOVERFLOW): Define if the system does not.
38969 Do not include "minmax.h"; it wasn't used.
38970 (snprintf): Don't assume size_t promotes to an unsigned type.
38971 Fix bug when generated string was too long for the buffer: the
38972 buffer's contents are supposed to be the initial prefix of the
38973 output. Don't assume vasnprintf returns EOVERFLOW if the size
38974 exceeds INT_MAX; do the check ourselves.
38976 Import the following changes from libc:
38978 2006-06-02 Jakub Jelinek <jakub@redhat.com>
38980 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
38981 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
38982 set wc to the byte which couldn't be converted.
38983 (re_string_reconstruct): Don't clear valid_raw_len before calling
38984 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
38985 tip_context using re_string_context_at.
38987 2006-05-02 Ulrich Drepper <drepper@redhat.com>
38989 * lib/posix/regex.h: g++ still cannot handled [restrict].
38991 2006-04-21 Ulrich Drepper <drepper@redhat.com>
38993 * lib/posix/regex.h: Remove special handling for VMS.
38995 2006-08-10 Jim Meyering <jim@meyering.net>
38997 * modules/same-inode: New module.
38998 * modules/dev-ino: New module.
38999 * modules/cycle-check: Depend on these modules, rather than simply
39000 including their .h files.
39001 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
39002 required via m4/cycle-check.m4.
39003 * modules/same: Depend on new same-inode module, rather than
39004 including same-inode.h.
39005 * modules/chdir-safer: New file.
39007 * modules/chown (Depends-on): Add stat-macros.
39009 2006-08-10 Jim Meyering <jim@meyering.net>
39011 * m4/cycle-check.m4: New file.
39012 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
39013 * m4/dev-ino.m4, m4/same-inode.m4: New files.
39015 2006-08-10 Eric Blake <ebb9@byu.net>
39017 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
39018 in from original proposal.
39020 2006-08-10 Eric Blake <ebb9@byu.net>
39021 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39023 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
39026 2006-08-10 Bruno Haible <bruno@clisp.org>
39028 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
39031 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
39033 Sync from coreutils.
39035 2006-07-19 Mike Frysinger <vapier@gentoo.org>
39037 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
39038 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
39040 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
39042 * modules/restrict: Remove; no longer needed now that we assume
39043 Autoconf 2.59 or later.
39044 * MODULES.html.sh: Remove 'restrict'.
39045 * modules/argp (Depends-on): Remove 'restrict'.
39046 * modules/base64 (Depends-on): Likewise.
39047 * modules/gc (Depends-on): Likewise.
39048 * modules/getaddrinfo (Depends-on): Likewise.
39049 * modules/glob (Depends-on): Likewise.
39050 * modules/inet_ntop (Depends-on): Likewise.
39051 * modules/inet_pton (Depends-on): Likewise.
39052 * modules/memxor (Depends-on): Likewise.
39053 * modules/regex (Depends-on): Likewise.
39054 * modules/strtok_r (Depends-on): Likewise.
39055 * modules/time_r (Depends-on): Likewise.
39057 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
39059 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
39060 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
39061 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39062 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
39063 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
39064 * m4/memxor.m4 (gl_MEMXOR): Likewise.
39065 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
39066 gl_C_RESTRICT replaced by AC_C_RESTRICT.
39068 Merge from coreutils.
39069 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
39070 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
39071 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39072 * m4/time_r.m4 (gl_TIME_R): Likewise.
39074 2006-08-09 Karl Berry <karl@gnu.org>
39076 * config/srclist.txt: no more gettext-tools, per Bruno.
39078 2006-08-08 Eric Blake <ebb9@byu.net>
39080 * modules/verror: New module.
39081 * MODULES.html.sh: Document it.
39083 2006-08-08 Eric Blake <ebb9@byu.net>
39085 * lib/verror.h, lib/verror.c: New files.
39087 2006-08-08 Eric Blake <ebb9@byu.net>
39089 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
39090 verror_at_line output complies with GNU Coding Standards even when
39093 2006-08-07 Bruno Haible <bruno@clisp.org>
39095 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
39097 Reported by Ralf Wildenhues.
39099 2006-08-07 Bruno Haible <bruno@clisp.org>
39101 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
39102 in an AC_DEFUN. Needed so that the autoconf snippets can use
39105 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39107 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39108 Initialize pkgdata_DATA.
39109 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
39112 2006-08-06 Eric Blake <ebb9@byu.net>
39114 * lib/error.h: Fold in some upstream changes from glibc.
39115 * lib/error.c: Likewise.
39117 2006-08-04 Bruno Haible <bruno@clisp.org>
39119 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39120 Make the mostlyclean-local rule depend on mostlyclean-generic.
39121 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
39123 2006-07-31 Bruno Haible <bruno@clisp.org>
39125 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
39126 <stdlib.h>, <string.h>.
39128 2006-07-30 Bruno Haible <bruno@clisp.org>
39130 * modules/readlink (License): Change to LGPL.
39132 2006-07-30 Bruno Haible <bruno@clisp.org>
39134 * modules/javaversion (Makefile.am): Distribute javaversion.java and
39135 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
39136 set PKGDATADIR to point to it.
39138 2006-07-30 Bruno Haible <bruno@clisp.org>
39140 * modules/csharpexec (configure.ac): Comment out macro invocation.
39141 * modules/javaexec (configure.ac): Likewise.
39142 * modules/javacomp-script (configure.ac): Likewise.
39144 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
39146 2006-07-30 Bruno Haible <bruno@clisp.org>
39148 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
39151 2006-07-30 Bruno Haible <bruno@clisp.org>
39153 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
39155 2006-07-30 Bruno Haible <bruno@clisp.org>
39157 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39158 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
39161 2006-07-29 Bruno Haible <bruno@clisp.org>
39163 Make it possible for gnulib-tool to work with locally modified or
39164 augmented gnulib repositories.
39165 * gnulib-tool (func_usage): Document --local-dir option.
39166 (local_gnulib_dir): New variable.
39167 Handle --local-dir option.
39168 (func_lookup_file): New function.
39169 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
39170 (func_get_description, func_get_filelist, func_get_description,
39171 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
39172 func_get_automake_snippet, func_get_include_directive,
39173 func_get_license, func_get_maintainer): Use func_lookup_file.
39174 (func_import, func_create_testdir): Use func_lookup_file.
39176 2006-07-29 Bruno Haible <bruno@clisp.org>
39178 * modules/setenv (Depends-on): Add unistd.
39180 2006-07-29 Bruno Haible <bruno@clisp.org>
39182 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
39184 2006-07-29 Bruno Haible <bruno@clisp.org>
39186 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
39188 2006-07-29 Bruno Haible <bruno@clisp.org>
39190 * gnulib-tool (import, update): If there is no Makefile.am, look at
39191 aclocal.m4, instead of bailing out.
39193 2006-07-29 Bruno Haible <bruno@clisp.org>
39195 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
39196 Categorize the options by when they are useful.
39198 2006-07-29 Bruno Haible <bruno@clisp.org>
39200 * gnulib-tool (func_usage): Document option --no-libtool.
39201 Handle option --no-libtool.
39202 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
39203 for changed semantics of $libtool variable.
39204 (func_import): Likewise. If libtool is not used, show this through
39205 an option --no-libtool.
39206 (func_create_testdir): Update.
39208 2006-07-29 Bruno Haible <bruno@clisp.org>
39210 * gnulib-tool (func_import): Extend error message about missing
39213 2006-07-29 Bruno Haible <bruno@clisp.org>
39215 * gnulib-tool (func_import): Don't create the $docbase directory if
39216 there is no file to store there.
39218 2006-07-29 Bruno Haible <bruno@clisp.org>
39220 * gnulib-tool (autoconf_minversion): If a --dir option is given and
39221 relevant, look for configure.ac there, not in the current directory.
39222 Also use a simple search for AC_PREREQ, not "autoconf --trace".
39224 2006-07-29 Bruno Haible <bruno@clisp.org>
39226 * gnulib-tool (SORT): New variable.
39227 (func_usage): Undocument --assume-autoconf option.
39228 Remove --assume-autoconf option handling.
39229 (autoconf_minversion): Determine from the contents of configure.ac.
39230 (func_import): Remove autoconf_minversion handling.
39231 Suggested by Eric Blake.
39233 2006-07-29 Bruno Haible <bruno@clisp.org>
39235 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
39237 2006-07-29 Bruno Haible <bruno@clisp.org>
39239 * config/srclist.txt (*setenv.[ch]): Remove rules.
39241 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39243 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
39245 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39247 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
39250 2006-07-28 Simon Josefsson <jas@extundo.com>
39252 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
39253 * modules/inet_pton (Depends-on): Likewise.
39255 2006-07-28 Simon Josefsson <jas@extundo.com>
39257 * m4/netinet_in_h.m4: New file.
39259 2006-07-28 Simon Josefsson <jas@extundo.com>
39261 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
39264 2006-07-28 Simon Josefsson <jas@extundo.com>
39266 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
39269 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
39271 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
39272 setgid on directories only if they set these bits.
39273 * lib/modechange.h: Remove obsolete comment about masks.
39275 2006-07-28 Eric Blake <ebb9@byu.net>
39277 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
39280 2006-07-28 Bruno Haible <bruno@clisp.org>
39282 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
39284 2006-07-28 Bruno Haible <bruno@clisp.org>
39286 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
39288 2006-07-28 Bruno Haible <bruno@clisp.org>
39290 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
39291 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
39293 Avoids link error on FreeBSD 4.x.
39294 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39296 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
39298 * lib/mbswidth.c (iswcntrl): Likewise.
39300 2006-07-27 Bruno Haible <bruno@clisp.org>
39302 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
39305 2006-07-27 Bruno Haible <bruno@clisp.org>
39307 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
39308 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
39311 2006-07-26 Eric Blake <ebb9@byu.net>
39313 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
39315 2006-07-26 Eric Blake <ebb9@byu.net>
39317 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
39318 like mingw that lack mkstemp.
39319 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
39320 avoid compilation warning on mingw.
39322 2006-07-26 Bruno Haible <bruno@clisp.org>
39324 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
39325 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
39326 INT_FAST*_MIN, INTPTR_MIN.
39328 2006-07-25 Bruno Haible <bruno@clisp.org>
39330 * modules/version-etc (Depends-on): Add stdarg.
39332 2006-07-25 Bruno Haible <bruno@clisp.org>
39334 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
39337 2006-07-25 Bruno Haible <bruno@clisp.org>
39339 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
39340 defined in <stdarg.h> or config.h.
39342 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
39344 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
39345 (gl_STDIO_SAFER): Remove.
39347 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
39349 * MODULES.html.sh (File stream based Input/Output):
39350 Add fopen-safer, tmpfile-safer; remove stdio-safer.
39351 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
39352 * modules/fopen-safer, modules/tmpfile-safer: New files.
39353 * modules/stdio-safer: Remove.
39355 2006-07-24 Bruno Haible <bruno@clisp.org>
39357 * modules/tmpdir: New file.
39358 * MODULES.html.sh (File system functions): Add it.
39360 2006-07-24 Bruno Haible <bruno@clisp.org>
39362 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
39363 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
39365 2006-07-24 Bruno Haible <bruno@clisp.org>
39367 * modules/clean-temp: New file.
39369 2006-07-24 Bruno Haible <bruno@clisp.org>
39371 * m4/tmpdir.m4: New file, from GNU gettext.
39373 2006-07-24 Bruno Haible <bruno@clisp.org>
39375 * lib/tmpdir.h: New file, from GNU gettext.
39376 * lib/tmpdir.c: New file, from GNU gettext.
39378 2006-07-24 Bruno Haible <bruno@clisp.org>
39380 * lib/clean-temp.h: New file, from GNU gettext.
39381 * lib/clean-temp.c: New file, from GNU gettext.
39383 2006-07-23 Eric Blake <ebb9@byu.net>
39385 * modules/stdio-safer (Files): Add tmpfile-safer.c.
39386 (Depends-on): Add binary-io.
39388 2006-07-23 Eric Blake <ebb9@byu.net>
39390 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
39392 2006-07-23 Eric Blake <ebb9@byu.net>
39394 * lib/tmpfile-safer.c: New file.
39395 * lib/stdio-safer.h (fopen_safer): Add prototype.
39396 * lib/stdio--.h (tmpfile): Make safer.
39398 2006-07-23 Bruno Haible <bruno@clisp.org>
39400 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
39401 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
39402 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
39403 gl_linked_remove_at): Use it.
39405 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39406 and Simon Josefsson <jas@extundo.com>
39408 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
39410 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
39412 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
39414 * modules/close-stream: New file.
39415 * modules/closeout (Description): Make it clear that it exits
39416 with a diagnostic on error.
39417 (Depends-on): Add close-stream. Remove fpending, stdbool.
39418 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
39420 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
39422 * m4/close-stream.m4: New file.
39424 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
39426 * lib/close-stream.c, lib/close-stream.h: New files.
39428 2006-07-22 Bruno Haible <bruno@clisp.org>
39430 Merge from GNU gettext 0.15.
39432 2006-05-01 Bruno Haible <bruno@clisp.org>
39434 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
39436 2006-07-22 Bruno Haible <bruno@clisp.org>
39438 * modules/javaversion: New file.
39439 * MODULES.html.sh (Java): Add javaversion.
39441 2006-03-12 Bruno Haible <bruno@clisp.org>
39443 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
39445 2005-12-04 Bruno Haible <bruno@clisp.org>
39447 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
39450 2006-06-21 Bruno Haible <bruno@clisp.org>
39452 Avoid warnings from recent versions of mcs.
39453 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
39454 -o, -L, -r any more. Use options documented since mcs-1.0
39455 instead. Similarly for -g.
39457 2005-12-04 Bruno Haible <bruno@clisp.org>
39459 * build-aux/csharpcomp.sh.in: Suffix for resources is
39460 .resources, not .resource.
39462 2005-07-09 Bruno Haible <bruno@clisp.org>
39464 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
39466 Reported by Mark Junker <mjscod@gmx.de>.
39468 2006-07-22 Bruno Haible <bruno@clisp.org>
39470 * modules/gettext: Upgrade to gettext-0.15.
39471 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
39473 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
39475 2006-07-22 Bruno Haible <bruno@clisp.org>
39477 Merge from GNU gettext 0.15.
39479 2006-03-25 Bruno Haible <bruno@clisp.org>
39481 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
39483 2006-07-21 Bruno Haible <bruno@clisp.org>
39485 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
39488 2006-05-09 Bruno Haible <bruno@clisp.org>
39490 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
39491 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
39492 for the conftestver execution.
39494 2006-05-01 Bruno Haible <bruno@clisp.org>
39496 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
39497 optional target-version argument. Verify that the compiler
39498 groks source of the specified source-version, or add -source
39499 option as necessary. Verify that the compiler produces
39500 bytecode in the specified target-version, or add -target and
39501 -source options as necessary. Make the result of the test
39502 available as variable CONF_JAVAC. Also log error output in
39505 2006-03-11 Bruno Haible <bruno@clisp.org>
39507 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
39509 2006-05-09 Bruno Haible <bruno@clisp.org>
39511 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
39512 CLASSPATH_SEPARATOR to a semicolon.
39514 2006-03-12 Bruno Haible <bruno@clisp.org>
39516 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
39517 available as variable CONF_JAVA, for subsequent autoconf
39518 tests. Also log error output in config.log.
39520 2006-07-19 Bruno Haible <bruno@clisp.org>
39522 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
39523 that getline works on glibc2 systems. Needed to avoid trouble
39525 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
39527 2005-12-04 Bruno Haible <bruno@clisp.org>
39529 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
39530 launcher (untested).
39532 2005-12-04 Bruno Haible <bruno@clisp.org>
39534 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
39536 2006-07-22 Bruno Haible <bruno@clisp.org>
39538 * gettext.m4: Update from GNU gettext-0.15.
39539 * nls.m4: Likewise.
39541 * inttypes-pri.m4: Likewise.
39542 * inttypes-h.m4: Renamed from inttypes.m4.
39543 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
39545 2006-07-22 Bruno Haible <bruno@clisp.org>
39547 Merge from GNU gettext 0.15.
39549 2005-07-05 Bruno Haible <bruno@clisp.org>
39551 * printf-args.c (printf_fetchargs): Work around broken
39552 definition of wint_t on mingw.
39554 2005-02-12 Bruno Haible <bruno@clisp.org>
39556 * xallocsa.h: Add extern "C" for C++.
39558 2006-05-17 Bruno Haible <bruno@clisp.org>
39560 Cygwin portability.
39561 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
39563 2006-04-30 Bruno Haible <bruno@clisp.org>
39565 * progreloc.c: Include <mach-o/dyld.h> if available.
39566 (find_executable): Use _NSGetExecutablePath when possible.
39568 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
39570 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
39573 2005-12-29 Bruno Haible <bruno@clisp.org>
39575 * progreloc.c (set_program_name_and_installdir): Fix
39578 2005-12-04 Bruno Haible <bruno@clisp.org>
39580 Cygwin portability.
39581 * progreloc.c: Include <windows.h> also on Cygwin.
39582 (find_executable): Add support for Cygwin.
39583 (set_program_name_and_installdir): Handle also platforms with
39586 2006-07-11 Bruno Haible <bruno@clisp.org>
39588 * javacomp.c: Fix a comment.
39589 Reported by Jim Meyering.
39591 2006-04-30 Bruno Haible <bruno@clisp.org>
39593 * javacomp.h (compile_java_class): Add source_version,
39594 target_version arguments.
39595 * javacomp.c: Rewritten to choose only a compiler that
39596 respects the specified source_version and target_version.
39598 2006-06-27 Bruno Haible <bruno@clisp.org>
39600 Assume correct S_ISDIR macro.
39601 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
39603 2006-07-22 Bruno Haible <bruno@clisp.org>
39605 * javaversion.h: New file, from GNU gettext.
39606 * javaversion.c: New file, from GNU gettext.
39607 * javaversion.java: New file, from GNU gettext.
39608 * javaversion.class: New file, from GNU gettext.
39610 2006-05-17 Bruno Haible <bruno@clisp.org>
39612 Cygwin portability.
39613 * javaexec.c (execute_java_class): Test for jview program
39616 2006-04-09 Bruno Haible <bruno@clisp.org>
39618 * fatal-signal.c: Don't include string.h.
39619 (at_fatal_signal): Use a copying loop instead of memcpy.
39621 2005-12-04 Bruno Haible <bruno@clisp.org>
39623 * csharpexec.c: Add support for 'clix' launcher (untested).
39624 (execute_csharp_using_sscli): New function.
39625 (execute_csharp_program): Call it.
39627 2006-06-21 Bruno Haible <bruno@clisp.org>
39629 Avoid warnings from recent versions of mcs.
39630 * csharpcomp.c (compile_csharp_using_mono): Don't use options
39631 -o, -L, -r any more. Use options documented since mcs-1.0
39632 instead. Similarly for -g.
39634 2005-07-09 Bruno Haible <bruno@clisp.org>
39636 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
39638 Reported by Mark Junker <mjscod@gmx.de>.
39640 2006-06-17 Bruno Haible <bruno@clisp.org>
39642 * config.charset: Update for NetBSD 3.0.
39644 2006-05-17 Bruno Haible <bruno@clisp.org>
39646 Cygwin portability.
39647 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
39649 2006-05-16 Bruno Haible <bruno@clisp.org>
39651 * localcharset.c [CYGWIN]: Include <windows.h>.
39652 (get_charset_aliases): For Cygwin, return the same CPxxx
39653 aliases list as under WIN32.
39654 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
39655 the environment variables. Fall back to GetACP().
39657 2006-04-05 Bruno Haible <bruno@clisp.org>
39659 * config.charset: Update Juan Manuel Guerrero's address.
39661 2005-02-12 Bruno Haible <bruno@clisp.org>
39663 * allocsa.h: Add extern "C" for C++.
39665 2005-02-10 Bruno Haible <bruno@clisp.org>
39667 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
39668 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
39670 2006-07-22 Bruno Haible <bruno@clisp.org>
39672 * gettext.h: Update to GNU gettext-0.15.
39674 2006-07-22 Bruno Haible <bruno@clisp.org>
39676 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
39677 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
39678 lib-prefix.m4, longdouble.m4, ssize_t.m4.
39680 2006-07-21 Eric Blake <ebb9@byu.net>
39682 * modules/stdlib-safer: New file.
39683 * MODULES.html.sh (File stream based Input/Output): Add
39686 2006-07-21 Eric Blake <ebb9@byu.net>
39688 * lib/stdlib-safer.h: New file from coreutils, required by
39691 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
39693 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
39695 2006-07-20 Bruno Haible <bruno@clisp.org>
39697 * gnulib-tool: Recognize new option --assume-autoconf.
39698 (autoconf_minversion): New variable.
39699 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
39701 2006-07-20 Bruno Haible <bruno@clisp.org>
39703 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
39705 2006-07-19 Derek R. Price <derek@ximbiot.com>
39707 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
39708 Reindent and repaginate.
39710 2006-07-19 Derek Price <derek@ximbiot.com>
39712 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
39715 2006-07-17 Bruno Haible <bruno@clisp.org>
39717 * modules/list: New file.
39718 * modules/array-list: New file.
39719 * modules/carray-list, modules/carray-list-tests: New files.
39720 * modules/linked-list, modules/linked-list-tests: New files.
39721 * modules/avltree-list, modules/avltree-list-tests: New files.
39722 * modules/rbtree-list, modules/rbtree-list-tests: New files.
39723 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
39724 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
39725 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
39726 * modules/oset: New file.
39727 * modules/array-oset: New file.
39728 * modules/avltree-oset, modules/avltree-oset-tests: New files.
39729 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
39730 * tests/test-carray_list.c: New file.
39731 * tests/test-linked_list.c: New file.
39732 * tests/test-avltree_list.c: New file.
39733 * tests/test-rbtree_list.c: New file.
39734 * tests/test-linkedhash_list.c: New file.
39735 * tests/test-avltreehash_list.c: New file.
39736 * tests/test-rbtreehash_list.c: New file.
39737 * tests/test-avltree_oset.c: New file.
39738 * tests/test-rbtree_oset.c: New file.
39739 * MODULES.html.sh (Container data structures): New section.
39741 2006-07-17 Bruno Haible <bruno@clisp.org>
39743 * m4/gl_list.m4: New file.
39745 2006-07-17 Bruno Haible <bruno@clisp.org>
39747 * lib/gl_list.h: New file.
39748 * lib/gl_list.c: New file.
39749 * lib/gl_array_list.h: New file.
39750 * lib/gl_array_list.c: New file.
39751 * lib/gl_carray_list.h: New file.
39752 * lib/gl_carray_list.c: New file.
39753 * lib/gl_linked_list.h: New file.
39754 * lib/gl_linked_list.c: New file.
39755 * lib/gl_anylinked_list1.h: New file.
39756 * lib/gl_anylinked_list2.h: New file.
39757 * lib/gl_avltree_list.h: New file.
39758 * lib/gl_avltree_list.c: New file.
39759 * lib/gl_anyavltree_list1.h: New file.
39760 * lib/gl_anyavltree_list2.h: New file.
39761 * lib/gl_rbtree_list.h: New file.
39762 * lib/gl_rbtree_list.c: New file.
39763 * lib/gl_anyrbtree_list1.h: New file.
39764 * lib/gl_anyrbtree_list2.h: New file.
39765 * lib/gl_anytree_list1.h: New file.
39766 * lib/gl_anytree_list2.h: New file.
39767 * lib/gl_linkedhash_list.h: New file.
39768 * lib/gl_linkedhash_list.c: New file.
39769 * lib/gl_anyhash_list1.h: New file.
39770 * lib/gl_anyhash_list2.h: New file.
39771 * lib/gl_avltreehash_list.h: New file.
39772 * lib/gl_avltreehash_list.c: New file.
39773 * lib/gl_rbtreehash_list.h: New file.
39774 * lib/gl_rbtreehash_list.c: New file.
39775 * lib/gl_anytreehash_list1.h: New file.
39776 * lib/gl_anytreehash_list2.h: New file.
39778 * lib/gl_oset.h: New file.
39779 * lib/gl_oset.c: New file.
39780 * lib/gl_array_oset.h: New file.
39781 * lib/gl_array_oset.c: New file.
39782 * lib/gl_avltree_oset.h: New file.
39783 * lib/gl_avltree_oset.c: New file.
39784 * lib/gl_rbtree_oset.h: New file.
39785 * lib/gl_rbtree_oset.c: New file.
39786 * lib/gl_anytree_oset.h: New file.
39788 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
39790 * m4/mkancesdirs.m4: New file.
39791 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
39792 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
39793 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
39796 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
39798 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
39799 * lib/mkancesdirs.h: New files.
39800 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
39801 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
39802 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
39803 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
39804 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
39805 callers changed. Revamp internals significantly, by not
39806 attempting to create directories that are temporarily more
39807 permissive than the final results. Do not attempt to use
39808 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
39809 This removes some race conditions, fixes some bugs, and simplifies
39810 things. Use new dirchownmod function to do owner and mode changes.
39811 * lib/mkdir-p.h: Likewise.
39812 * lib/modechange.c (octal_to_mode): New function.
39813 (struct mode_change): New member mentioned.
39814 (make_node_op_equals): New arg mentioned. All callers changed.
39815 (mode_compile): Keep track of which mode bits the user has explicitly
39817 (mode_adjust): New arg DIR, so that we implement the X op correctly.
39818 New arg PMODE_BITS, to keep track of which mode bits the user
39819 mentioned; it treats S_ISUID and S_ISGID speciall.
39820 All callers changed.
39821 * lib/modechange.h: Likewise.
39823 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
39825 * MODULES.html.sh: Add mkancestors.
39826 * modules/mkancesdirs: New module.
39827 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
39828 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
39829 The chdir-safer and afs files are now orphans; I'll remove them
39830 unless someone speaks up.
39831 Add lib/dirchownmod.c, lib/dirchownmod.h.
39832 (Depends-on): Remove alloca, chown, save-cwd, dirname.
39833 Add lchown, mkancesdirs.
39834 (Maintainer): Add self.
39836 2006-07-15 Karl Berry <karl@gnu.org>
39838 * gnulib-tool: help message wording/arrangement.
39840 2006-07-14 Simon Josefsson <jas@extundo.com>
39842 * doc/gnulib.texi (Libtool and Windows): New section.
39844 2006-07-12 Simon Josefsson <jas@extundo.com>
39846 * modules/gendocs (License): Fix license, approved by Karl.
39848 2006-07-12 Eric Blake <ebb9@byu.net>
39850 * MODULES.html.sh: Add gendocs.
39852 2006-07-11 Eric Blake <ebb9@byu.net>
39854 * modules/fdl: New module, to install doc/fdl.texi.
39855 * MODULES.html.sh: Add new section for documentation modules.
39856 * gnulib-tool: Avoid space-tab.
39857 (--doc-base): New option, to manage files from doc.
39859 2006-07-11 Eric Blake <ebb9@byu.net>
39861 * m4/absolute-header.m4: Fix comments to match recent change.
39863 2006-07-11 Eric Blake <ebb9@byu.net>
39865 * gnulib-tool: List --doc-base before --tests-base.
39867 2006-07-11 Derek R. Price <derek@ximbiot.com>
39869 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
39871 2006-07-11 Bruno Haible <bruno@clisp.org>
39873 * README: Mention where to put documentation.
39875 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39877 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
39879 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
39881 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
39884 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
39886 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
39887 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
39888 "no/such/file/stdint.h" when there is no such file, so that
39889 the resulting C code can be parsed by dodgy compilers.
39890 Problems reported by Bob Proulx.
39892 2006-07-10 Derek R. Price <derek@ximbiot.com>
39894 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
39895 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
39896 macros into the GNU _D_EXACT_NAMLEN.
39897 * lib/savedir.c: Likewise.
39898 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
39900 2006-07-10 Derek R. Price <derek@ximbiot.com>
39901 and Paul Eggert <eggert@cs.ucla.edu>
39903 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
39905 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
39906 macros into the GNU _D_EXACT_NAMLEN.
39908 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
39910 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
39911 around the absolute name, to work around a problem with the HP-UX
39912 11.23 native C compiler, reported by Bob Proulx.
39914 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
39916 * doc/maintain.texi, make-stds.texi: Sync from
39917 <http://savannah.gnu.org/projects/gnustandards>.
39919 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
39921 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
39923 2006-07-09 Jim Meyering <jim@meyering.net>
39925 * m4/glob.m4: Remove a doubled word in a comment.
39927 2006-07-09 Jim Meyering <jim@meyering.net>
39929 * lib/argp-pv.c: Remove a doubled word in a comment.
39930 * lib/check-version.c (check_version): Likewise.
39931 * lib/javacomp.c (compile_java_class): Likewise.
39933 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
39935 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
39936 for the benefit of people using Autoconf 2.60. If you want to
39937 support older Autoconf versions you can copy m4/onceonly_2_57.m4
39938 (or m4/onceonly.m4, if pre-2.57) manually.
39940 2006-07-08 Jim Meyering <jim@meyering.net>
39942 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
39944 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
39945 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
39948 2006-07-08 Jim Meyering <jim@meyering.net>
39950 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
39952 2006-07-07 Simon Josefsson <jas@extundo.com>
39954 * tests/test-crc.c: Change expected crc value, the test vector
39955 were probably computed using the old broken crc.c?
39957 2006-07-06 Simon Josefsson <jas@extundo.com>
39959 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
39960 now the canonical place for the M4 file).
39962 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
39963 from the sys_socket dependency now.
39965 * modules/inet_pton (Files): Ditto.
39967 * modules/inet_ntop (Files): Ditto.
39969 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
39971 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
39972 not gl_PREREQ_GETUSERSHELL.
39974 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39976 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
39977 with only one argument, for Autoconf 2.60.
39978 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
39979 expand to nothing, so add a shell command to avoid syntax error.
39980 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
39982 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39984 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
39986 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
39988 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
39989 no longer needed. Check for isblank decl.
39990 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
39991 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
39994 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
39996 * lib/getloadavg.c: Use __VMS, not VMS.
39997 * lib/getopt.c: Likewise.
39998 * lib/getpagesize.h: Likewise.
39999 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
40000 and probably does not work.
40002 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
40004 * lib/.cppi-disable: Add wcwidth.
40005 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
40006 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
40007 (ISGRAPH): Remove. All uses changed to isgraph.
40008 (FOLD) [!defined _LIBC]: Remove special case.
40009 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
40010 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
40012 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
40015 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
40017 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
40018 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
40019 brackets. Other minor changes to suppress some compiler
40022 2006-07-06 Derek R. Price <derek@ximbiot.com>
40023 and Paul Eggert <eggert@cs.ucla.edu>
40025 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
40026 of invoking obsolescent AC_HEADER_DIRENT macro.
40027 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
40028 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
40029 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40030 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40031 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
40032 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
40033 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
40034 * m4/readdir.m4: Remove; no longer needed.
40036 2006-07-06 Derek R. Price <derek@ximbiot.com>
40037 and Paul Eggert <eggert@cs.ucla.edu>
40039 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
40040 Don't worry about this obsolete case any more.
40041 (HAVE_DIR): Remove. All uses removed; we now assume you can read
40043 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
40044 worry about this obsolete case any more.
40045 * lib/fts.c: Likewise.
40046 * lib/getcwd.c: Likewise.
40047 * lib/glob.h: Likewise.
40048 * lib/savedir.c: Likewise.
40050 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
40052 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
40053 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
40054 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
40057 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
40058 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
40059 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
40061 * m4/getdate.m4 (gl_GETDATE): Likewise.
40062 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
40063 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
40064 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
40065 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
40066 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
40067 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
40068 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
40071 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
40073 * lib/memcasecmp.c: Include <limits.h>.
40074 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
40075 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
40076 Don't assume isdigit succeeds only on '0' through '9'.
40078 2006-07-05 Eric Blake <ebb9@byu.net>
40080 * modules/getaddrinfo (Depends-on): Add snprintf.
40082 2006-07-05 Eric Blake <ebb9@byu.net>
40084 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
40085 to avoid 'header present but could not be compiled' on cygwin.
40087 2006-07-05 Eric Blake <ebb9@byu.net>
40089 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
40090 missing from netdb.h.
40091 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
40093 2006-07-05 Derek R. Price <derek@ximbiot.com>
40095 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
40097 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
40098 * m4/getdate.m4 (gl_GETDATE): Likewise.
40099 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
40100 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
40101 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
40102 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
40103 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
40105 2006-07-05 Derek R. Price <derek@ximbiot.com>
40107 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
40108 All uses of is_space replaced by isspace.
40109 * lib/exit.h: Don't talk about STDC_HEADERS.
40110 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
40111 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
40112 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
40113 replaced by isprint etc.
40114 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
40115 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
40116 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
40117 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
40118 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
40119 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
40121 2006-07-05 Bruno Haible <bruno@clisp.org>
40123 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
40124 the function exists, before testing against AIX.
40125 Reported by Martin Lambers <marlam@marlam.de>.
40127 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
40129 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
40130 From Mark D. Baushke.
40132 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
40134 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
40135 to the absolute name, not just one, to bypass Sun C 5.8's
40136 "warning: #include of /usr/include/... may be non-portable".
40138 2006-07-04 Eric Blake <ebb9@byu.net>
40140 * modules/dirname-tests: New test module.
40141 * tests/test-dirname.c: New file, replacing dirname.c
40142 TEST_DIRNAME section that was recently deleted.
40144 2006-07-04 Bruno Haible <bruno@clisp.org>
40146 Assume ANSI C header files and <ctype.h> functions.
40147 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
40148 (mbsnwidth): Use isprint, iscntrl instead.
40150 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
40152 Merge from coreutils.
40153 * MODULES.html.sh: Add xstrtold.
40154 * modules/xstrtold: New file.
40155 * modules/cycle-check (Files): Add lib/same-inode.h.
40156 * modules/dirname (Files): Add m4/double-slash-root.m4.
40157 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
40158 * modules/mkdir-p (Files): Add lib/same-inode.h.
40159 * modules/same (Files): Add lib/same-inode.h.
40161 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
40163 * m4/absolute-header.m4: Renamed from full-header-path.m4.
40164 This is to keep the terminology clean; POSIX talks about
40165 "absolute pathnames", not "full pathnames", but the GNU
40166 Coding Standards say to use "path" for something else;
40167 so use "absolute" to keep both sides happy.
40168 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
40169 Set gl_absolute_header, not gl_full_header_path.
40170 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
40171 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
40174 Merge from coreutils.
40176 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
40178 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
40179 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
40180 want to require the building of c-strtod.o.
40181 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
40182 needs -lm directly.
40183 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
40185 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
40187 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
40188 --as-needed option if available. Problem reported by Albert Chin in
40189 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
40190 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
40191 cc merely issues a bunch of annoying warnings for --as-needed
40192 (this problem was reported by Bob Proulx). Also, try linking with
40193 -lm to detect a bug in binutils 2.16 (this problem was reported
40194 by Ralf Wildenhues).
40196 2006-06-18 Jim Meyering <jim@meyering.net>
40198 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
40199 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
40201 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
40202 also check for glibc-2.4's abort-inducing bug.
40204 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
40205 Low-probability clean-up should be to use rmdir to get rid of
40206 the just-created directory, not unlink.
40208 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
40209 configure fail, and request a bug report to inform us about it.
40210 Add a comment that, barring reports to the contrary, in 2007 we'll
40211 assume ftruncate is universally available.
40213 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
40215 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
40217 2006-03-12 Jim Meyering <jim@meyering.net>
40219 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
40220 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
40221 * m4/same.m4 (gl_SAME): Likewise.
40222 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
40224 2006-03-11 Eric Blake <ebb9@byu.net>
40226 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
40227 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
40228 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
40229 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
40231 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
40233 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
40234 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
40235 reported by Mark D. Baushke, one in
40236 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
40238 Merge from coreutils.
40240 * lib/.cppi-disable: Add stdint_.h.
40241 * lib/.cvsignore: Add stdint.h.
40243 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
40245 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
40246 both double and long double versions.
40247 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
40248 * lib/xstrtold.c: New file.
40249 * lib/xstrtod.h (xstrtold): New decl.
40251 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
40253 * lib/filemode.c (setst): Remove.
40254 (strmode): Rewrite to avoid setst. This makes the code shorter,
40255 (arguably) clearer, and the generated code is a bit smaller on my
40256 Debian GNU/Linux stable x86 host.
40258 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
40260 * lib/filemode.c: Include "filemode.h" first, to test the interface.
40261 Assume that filemode.h includes sys/types.h and sys/stat.h.
40262 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
40263 (ftypelet): Reorder to put common cases first, for efficiency.
40264 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
40266 (strmode): Renamed from mode_string, and now stores 12 bytes instead
40267 of 10, for compatibility with FreeBSD. All callers changed.
40268 (filemodestring): Now stores 12 bytes instead of 10, and sets file
40269 types that can't be deduced solely from st_mode. First arg is now a
40271 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
40272 (strmode): Renamed from mode_string.
40273 (filemodestring): New decl.
40274 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
40275 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
40277 (S_ISPORT, S_ISWHT): New macros, if not already defined.
40279 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
40281 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
40282 fsusage.h now does that. Include fsusage.h first, to test interface.
40283 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
40284 at most one method (the old code could have generated decls that
40285 didn't conform to C89, not that this was ever exercised).
40286 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
40288 2006-03-19 Jim Meyering <jim@meyering.net>
40290 Work even in a chroot where d_ino values for entries in "/"
40291 don't match the stat.st_ino values for the same names.
40292 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
40293 number, iterate through all entries again, using lstat instead.
40294 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
40295 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
40297 * lib/getcwd.c (__getcwd): Clarify a comment.
40298 Use memcpy in place of a call to strcpy.
40300 2006-03-12 Jim Meyering <jim@meyering.net>
40302 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
40303 matches that of the current directory (which we're about to chdir ".."
40304 out of), then save the dev-ino of the parent, instead.
40306 * lib/same-inode.h (SAME_INODE): New file/macro.
40307 * lib/chdir-safer.c (SAME_INODE): Remove definition.
40308 Include "same-inode.h", instead.
40309 * lib/same.c: Likewise.
40310 * lib/cycle-check.h: Include "same-inode.h".
40311 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
40312 * lib/cycle-check.c (SAME_INODE): Remove definition.
40313 * lib/root-dev-ino.h: Include "same-inode.h".
40315 2006-03-11 Eric Blake <ebb9@byu.net>
40317 * lib/same.c (same_name): s/base_name/last_component/
40318 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
40319 * lib/filenamecat.c (file_name_concat): Likewise.
40321 2006-03-11 Eric Blake <ebb9@byu.net>,
40322 Paul Eggert <eggert@cs.ucla.edu>
40324 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
40325 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
40327 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
40328 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
40329 (last_component): New method.
40330 * lib/dirname.c (dir_len): Determine when drive letters need a
40331 subsequent slash. Preserve // when it is special.
40332 (dir_name): Don't append dot when drive letter is absolute.
40333 [TEST_DIRNAME]: Move into a full-blown gnulib test.
40334 * lib/basename.c (base_name): New semantics - malloc the result.
40335 Preserve // when it is special. Preserve relative files that look
40336 like drive letters.
40337 (base_len): Preserve // when it is special.
40338 (last_component): New method, similar to old base_name semantics.
40339 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
40340 base_name. Strip redundant slashes from ///.
40342 2006-07-03 Jim Meyering <jim@meyering.net>
40344 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
40345 macro is used before the first cycle_check call.
40347 2006-07-03 Eric Blake <ebb9@byu.net>
40349 * modules/dirname (Depends-on): Add xstrndup.
40351 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
40353 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
40354 test cases, so that config.log is a bit easier to follow.
40356 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
40358 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
40359 both are 64 bits, since this seems to be the tradition, and this
40360 prevents gcc -Wformat from warning about usages with PRIuMAX. If
40361 we ever run into a host that prefers long long to long in this
40362 case, we'll need another configure-time test. Problem reported by
40365 2006-07-02 Eric Blake <ebb9@byu.net>
40367 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
40369 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
40371 * modules/inttypes (Depends-on): No longer depends on stdint.
40372 * modules/stdint (Description): Say more about assumptions.
40373 Say that the fast types might differ. Say macros are used.
40374 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
40375 (Makefile.am): Revise list of substituted symbols to match
40377 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
40378 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
40379 * tests/test-stdint.c (verify_same_types)
40380 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
40381 the code conforms to C99/C89.
40382 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
40383 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
40385 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
40387 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
40388 but fix a bug, by requiring at least 64 bits.
40389 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
40390 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
40391 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
40392 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
40394 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
40395 changes. Make 2.59 a prerequisite. Check and substitute for
40396 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
40397 inttypes.h. Do not use special include files; just use the
40398 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
40399 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
40400 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
40401 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
40402 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
40403 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
40404 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
40405 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
40406 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
40407 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
40408 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
40409 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
40410 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
40411 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
40412 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
40413 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
40414 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
40415 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
40416 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
40417 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
40418 WINT_MAX. Check for C99 conformance more strictly, by detecting
40419 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
40420 not check for things that C99 does not require, e.g., int8_t. If
40421 a test isn't needed unless <stdint.h> isn't working, and is
40422 unlikely to be needed for any other reason, then don't do it
40423 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
40424 size_t, since we assume C89 freestanding at least. Do not check
40425 for sig_atomic_t, wchar_t, or wint_t, since the code now does
40426 the right thing even if the types are not defined. Instead use:
40427 (gl_STDINT_TYPE_PROPERTIES): New macro.
40428 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
40429 testing whether <sys/types.h> clashes, as Autoconf does this for
40430 us now. All uses removed.
40431 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
40432 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
40433 (gl_CHECK_TYPE_SAME):
40434 Remove; no longer needed.
40435 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
40436 exists, since we'll return 0 anyway in that case.
40437 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
40439 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
40441 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
40442 possible collision with system files.
40443 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
40444 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
40445 WCHAR_MIN and WCHAR_MAX in this case.
40446 (<stddef.h>): Do not include; no longer needed.
40447 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
40448 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
40449 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
40450 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
40451 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
40452 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
40453 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
40454 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
40455 !defined(__c99))]: Include in this case too, since it's harmless
40457 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
40458 dangerous to do so.
40459 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
40460 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
40461 (_STDINT_MIN, _STDINT_MAX): New macros.
40462 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
40463 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
40464 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
40465 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
40466 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
40467 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
40468 macros, not typedefs; this simplifies things quite a bit.
40469 Use long int for all types narrower than int64_t.
40470 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
40471 Define in terms of long long int or int64_t or long int,
40472 not int64_t or int32_t. This saves some compile-time testing.
40473 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
40474 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
40475 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
40476 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
40477 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
40478 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
40479 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
40480 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
40481 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
40482 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
40483 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
40484 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
40485 undef any previous version and define our own version, for
40486 simplicity and consistency with the new macros for types.
40487 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
40488 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
40489 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
40490 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
40491 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
40492 @WINT_T_SUFFIX@ to keep things simple here.
40493 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
40494 Simplify by assuming typical 8/16/32/64 host, since we're
40495 already doing that elsewhere anyway.
40496 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
40497 and assume long long int is 64 bits if available. This
40498 speeds up 'configure'.
40500 2006-07-01 Eric Blake <ebb9@byu.net>
40502 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
40503 Reported by Andreas Buening.
40505 2006-07-01 Eric Blake <ebb9@byu.net>
40507 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
40509 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
40511 * lib/getaddrinfo.c: fixed typo
40513 2006-06-29 Jim Meyering <jim@meyering.net>
40515 * modules/strftime (Maintainer): Add my name, since with the
40516 FPRINTFTIME changes strftime.c has forked from glibc.
40518 2006-06-29 Eric Blake <ebb9@byu.net>
40520 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
40522 2006-06-29 Eric Blake <ebb9@byu.net>
40524 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
40526 2006-06-29 Eric Blake <ebb9@byu.net>
40528 * lib/stat_.h: New file.
40530 2006-06-29 Eric Blake <ebb9@byu.net>
40532 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
40533 unused static function.
40535 2006-06-29 Eric Blake <ebb9@byu.net>
40537 * doc/functions.texi (Function Portability): Document missing lstat
40540 2006-06-29 Eric Blake <ebb9@byu.net>
40542 * MODULES.html.sh: Add sys_stat.
40543 * modules/sys_stat: New module.
40544 * modules/mkstemp (Depends-on): Add sys_stat.
40546 2006-06-29 Derek R. Price <derek@ximbiot.com>
40548 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
40550 2006-06-29 Derek R. Price <derek@ximbiot.com>
40552 * m4/c-bs-a.m4: Removed.
40554 2006-06-29 Derek R. Price <derek@ximbiot.com>
40556 * lib/strftime.c: Assume strftime() exists.
40558 2006-06-29 Derek Price <derek@ximbiot.com>
40560 * modules/c-bs-a: Removed - \a is C89.
40561 * MODULES.html.sh: Remove c-bs-a.
40563 2006-06-29 Bruno Haible <bruno@clisp.org>
40565 * modules/wcwidth (License): Change to LGPL.
40567 2006-06-28 Simon Josefsson <jas@extundo.com>
40569 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
40572 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
40575 2006-06-28 Simon Josefsson <jas@extundo.com>
40577 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
40579 2006-06-28 Simon Josefsson <jas@extundo.com>
40581 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
40582 functions there. It will succeed on Windows XP, but on Windows
40583 2000 and (presumably) earlier, it will fail, and use the internal
40585 (use_win32_p): New function.
40586 (getaddrinfo): Use strtoul on servname, to support numeric ports.
40587 Support AI_NUMERICSERV to disable getservbyname.
40588 (getnameinfo): New function, only supports
40589 NI_NUMERICHOST|NI_NUMERICSERV for now.
40591 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
40592 only have some of them. Add AI_NUMERICSERV. Add prototype for
40595 2006-06-28 Eric Blake <ebb9@byu.net>
40597 * modules/wcwidth: New file.
40598 * modules/mbchar (Depends-on): Add wcwidth.
40599 * modules/mbswidth (Depends-on): Add wcwidth.
40600 * MODULES.html.sh: Add wcwidth.
40602 2006-06-28 Eric Blake <ebb9@byu.net>
40604 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
40605 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
40607 2006-06-28 Eric Blake <ebb9@byu.net>
40609 * lib/xvasprintf.h: Fix comments.
40611 2006-06-28 Eric Blake <ebb9@byu.net>
40613 * lib/mbchar.h (wcwidth): Include wcwidth.h.
40614 * lib/mbswidth.c (wcwidth): Move from here...
40615 * lib/wcwidth.h: ...to this new file.
40617 2006-06-28 Derek R. Price <derek@ximbiot.com>
40619 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
40621 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
40623 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
40625 2006-06-28 Derek R. Price <derek@ximbiot.com>
40627 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
40628 Autoconf 2.60 says this stuff was obsolete.
40630 2006-06-28 Bruno Haible <bruno@clisp.org>
40632 * modules/wcwidth (Files): Add m4/wchar_t.m4.
40634 2006-06-28 Bruno Haible <bruno@clisp.org>
40636 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
40639 2006-06-28 Bruno Haible <bruno@clisp.org>
40641 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
40642 declaration for wcwidth.
40643 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
40645 2006-06-28 Bruno Haible <bruno@clisp.org>
40647 * lib/mkdtemp.c [MINGW]: Include <io.h>.
40648 (mkdir): Define using _mkdir.
40650 2006-06-28 Bruno Haible <bruno@clisp.org>
40652 * lib/getaddrinfo.h: Fix POSIX URL.
40653 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
40655 (use_win32_p): Make static.
40656 (getaddrinfo): Reject service name if it is empty or does not consist
40657 solely of decimal digits, or if its value is > 65535.
40658 (getnameinfo): Remove useless casts.
40660 2006-06-27 Simon Josefsson <jas@extundo.com>
40662 * modules/sys_select: New file, suggested by Bruno Haible, Paul
40663 Eggert and Martin Lambers.
40665 2006-06-27 Simon Josefsson <jas@extundo.com>
40667 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
40668 Eggert and Martin Lambers.
40670 2006-06-27 Bruno Haible <bruno@clisp.org>
40672 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
40673 result to 0, not to empty.
40674 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
40676 2006-06-27 Bruno Haible <bruno@clisp.org>
40678 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
40680 2006-06-26 Simon Josefsson <jas@extundo.com>
40682 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
40685 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
40687 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
40688 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
40689 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
40691 2006-06-26 Mark D. Baushke <mdb@gnu.org>
40693 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
40695 2006-06-26 Bruno Haible <bruno@clisp.org>
40697 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
40699 2006-06-26 Bruno Haible <bruno@clisp.org>
40701 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
40703 2006-06-26 Bruno Haible <bruno@clisp.org>
40705 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
40706 SGI C compiler in pre-C99 mode.
40707 Suggested by Mark D. Baushke and Larry Jones.
40709 2006-06-26 Bruno Haible <bruno@clisp.org>
40711 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
40713 Reported by Mark D. Baushke and Larry Jones.
40715 2006-06-26 Bruno Haible <bruno@clisp.org>
40717 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
40719 Suggested by Mark D. Baushke and Larry Jones.
40721 2006-06-23 Simon Josefsson <jas@extundo.com>
40722 Bruno Haible <bruno@clisp.org>
40724 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
40725 Emit mostlyclean-local rule.
40726 (func_emit_tests_Makefile_am): Likewise.
40727 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
40729 2006-06-23 Mark D. Baushke <mdb@gnu.org>
40731 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
40733 2006-06-23 Bruno Haible <bruno@clisp.org>
40735 * tests/test-stdint.c: Update to match ISO C 99 Technical
40738 2006-06-23 Bruno Haible <bruno@clisp.org>
40740 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
40742 2006-06-23 Bruno Haible <bruno@clisp.org>
40744 * lib/stdint_.h: Treat IRIX like OpenBSD.
40746 2006-06-23 Bruno Haible <bruno@clisp.org>
40748 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
40749 ISO C 99 Technical Corrigendum 1.
40751 2006-06-22 Simon Josefsson <jas@extundo.com>
40753 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
40756 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
40758 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
40759 needed. Some compiler complained about some of them. Problem reported
40761 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
40763 2006-06-21 Simon Josefsson <jas@extundo.com>
40765 * tests/test-getaddrinfo.c: New file.
40767 * modules/getaddrinfo-tests: New file.
40769 * MODULES.html.sh: Add inet_pton.
40771 * modules/inet_pton: New file.
40773 2006-06-21 Simon Josefsson <jas@extundo.com>
40775 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
40776 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
40777 of using the (limited) gnulib implementation on Windows XP.
40779 * m4/inet_pton.m4: New file.
40781 2006-06-21 Simon Josefsson <jas@extundo.com>
40783 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
40786 * lib/socket_.h: Don't define WINVER.
40788 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
40789 slightly modified to work in gnulib.
40791 2006-06-21 Simon Josefsson <jas@extundo.com>
40793 * doc/gnulib.texi (Windows sockets): Add.
40795 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
40797 * lib/read-file.c (fread_file): Start with buffer allocation of
40798 0 bytes rather than 1 byte; this simplifies the code.
40799 Don't invoke feof; it's not needed. Refactor to avoid duplicate
40800 code to free buffer and save/restore errno.
40801 (internal_read_file): Remove unused local.
40803 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
40805 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
40806 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
40807 Problem reported by Denis Excoffier in
40808 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
40810 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40812 * modules/sys_socket, modules/socklen: Include sys/types since
40813 FreeBSD 4.x's sys/socket.h needs it.
40815 2006-06-19 Simon Josefsson <jas@extundo.com>
40817 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
40819 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
40821 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
40823 2006-06-19 Bruno Haible <bruno@clisp.org>
40825 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
40826 and FULL_PATH_INTTYPES_H in angle brackets.
40827 Reported by Mark D. Baushke <mdb@gnu.org>.
40829 2006-06-17 Eric Blake <ebb9@byu.net>
40831 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
40834 2006-06-17 Bruno Haible <bruno@clisp.org>
40836 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
40839 2006-06-17 Bruno Haible <bruno@clisp.org>
40841 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
40842 whether errno is declared. Assume <errno.h> declares errno.
40844 2006-06-17 Bruno Haible <bruno@clisp.org>
40846 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
40848 2006-06-17 Bruno Haible <bruno@clisp.org>
40850 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
40851 problem on Solaris 2.5.1.
40853 2006-06-16 Eric Blake <ebb9@byu.net>
40855 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
40856 * lib/unicodeio.c [!defined errno]: Likewise.
40857 * lib/strtol.c [!defined errno]: Likewise.
40858 * lib/strtod.c [!defined errno]: Likewise.
40860 2006-06-15 Eric Blake <ebb9@byu.net>
40862 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
40864 2006-06-15 Eric Blake <ebb9@byu.net>
40866 * config/srclist.txt (ssize_t.m4): Lose sync.
40868 2006-06-15 Bruno Haible <bruno@clisp.org>
40870 * modules/stdint (Files): Include m4/full-header-path.m4,
40871 m4/size_max.m4, m4/wchar_t.m4.
40872 (Makefile.am): Many more substitutions.
40873 * modules/stdint-tests: New file.
40874 * tests/test-stdint.c: New file.
40876 2006-06-15 Bruno Haible <bruno@clisp.org>
40878 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
40879 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
40880 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
40881 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
40882 gl_CHECK_TYPE_SAME): New macros.
40884 2006-06-15 Bruno Haible <bruno@clisp.org>
40886 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
40888 2006-06-15 Bruno Haible <bruno@clisp.org>
40890 * lib/stdint_.h: Rewritten to be fully auto-configured.
40891 Fixes bug on HP-UX/IA64.
40893 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
40895 * lib/getdate.y (__attribute__): Don't define if already defined.
40896 Problem reported by Larry Jones.
40897 * lib/utimens.c (__attribute__): Likewise.
40899 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
40901 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
40902 reported by Andreas Schwab.
40904 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40905 Bruno Haible <bruno@clisp.org>
40907 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
40908 check for the declaration of strnlen and a run test that exposes the
40909 AIX 5.1 strnlen bug. In the failure case, #define strndup to
40912 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40913 Bruno Haible <bruno@clisp.org>
40915 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
40917 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40919 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
40920 compile test, for Tru64 4.0D.
40922 2006-05-28 Karl Berry <karl@gnu.org>
40924 * config/srclist.txt (printf-args.c): lose sync.
40926 2006-05-26 Martin Lambers <marlam@marlam.de>
40928 * lib/getpass.c: Updates the test for the native W32 API, and adds
40929 missing includes, thus fixing compilation warnings.
40931 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
40933 * lib/exclude.c (exclude_fnmatch): New function.
40934 (excluded_file_name): Call exclude_fnmatch.
40935 * lib/exclude.h (excluded_file_name): New prototype
40937 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
40939 * lib/tempname.c (small_open, large_open): New macros.
40940 (__open, __open64) [!_LIBC]: Remove.
40941 (__gen_tempname): Use small_open and large_open instead of __open
40942 and __open64. This fixes a portability bug on HP-UX 11.11i
40943 reported by Simon Wing-Tang in
40944 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
40946 2006-05-24 Bruno Haible <bruno@clisp.org>
40948 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
40949 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
40950 Reported by Thorsten Maerz <torte@netztorte.de> via
40951 Aaron Stone <aaron@serendipity.cx>.
40953 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
40955 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
40956 gl_ rather than jm_. Link, don't run, so that cross-compiles are
40957 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
40958 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
40959 not really conditional on the cache.
40960 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
40962 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
40964 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
40965 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
40966 (my_usleep): Don't mishandle maximum value.
40968 2006-05-19 Jim Meyering <jim@meyering.net>
40970 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
40972 2006-05-17 Bruno Haible <bruno@clisp.org>
40974 Cygwin portability.
40975 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
40977 2006-05-17 Bruno Haible <bruno@clisp.org>
40979 * lib/stdint_.h: Fix recognition of Cygwin.
40981 2006-05-15 Bruno Haible <bruno@clisp.org>
40983 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
40984 on libtool patch by Ralf Wildenhues.
40986 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
40988 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
40989 test for C99 conformance; (bool) 0.5 is an integer constant
40990 expression, but (bool) -0.5 is not. Problem reported by Fedor
40991 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
40993 2006-05-11 Simon Josefsson <jas@extundo.com>
40995 * m4/xvasprintf.m4: Fix obvious typo.
40997 2006-05-11 Jim Meyering <jim@meyering.net>
40999 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
41002 2006-05-10 Simon Josefsson <jas@extundo.com>
41004 * lib/md4.c: Typo fix, update copyright years.
41005 (K1, K2): Don't use L because it turn computations into 64-bit on
41008 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
41010 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
41011 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
41012 unwanted sign propagation, e.g., on hosts with 64-bit int.
41013 There still are some problems with reeelly weird theoretical hosts
41014 (e.g., 33-bit int) but it's not worth worrying about now.
41015 * lib/sha1.c (rol): Likewise.
41016 (K1, K2, K3, K4): Remove unnecessary L suffix.
41018 2006-05-10 Bruno Haible <bruno@clisp.org>
41020 * lib/des.c: Cast to avoid warnings.
41022 2006-05-09 Bruno Haible <bruno@clisp.org>
41024 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
41025 (Depends-on): Depend also on xsize, stdarg.
41026 (configure.ac): Add gl_XVASPRINTF.
41028 2006-05-09 Bruno Haible <bruno@clisp.org>
41030 * m4/xvasprintf.m4: New file.
41032 2006-05-09 Bruno Haible <bruno@clisp.org>
41034 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
41035 (EOVERFLOW): Define fallback value.
41036 (xstrcat): New function.
41037 (xvasprintf): Recognize the special case of a string concatenation.
41039 2006-05-08 Eric Blake <ebb9@byu.net>
41041 * gnulib-tool (func_version): Base copyright year on CVS date.
41042 (func_emit_copyright_notice): New function.
41043 (func_emit_lib_Makefile_am): Use it.
41044 (func_emit_tests_Makefile_am): Likewise.
41045 (func_import): Likewise.
41047 2006-05-08 Bruno Haible <bruno@clisp.org>
41049 * modules/stdarg: New file.
41050 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
41052 2006-05-08 Bruno Haible <bruno@clisp.org>
41054 * m4/stdarg.m4: New file, from GNU gettext.
41056 2006-05-08 Bruno Haible <bruno@clisp.org>
41058 * config/srclist.txt (build-aux/config.rpath): different from latest
41061 2006-05-08 Bruno Haible <bruno@clisp.org>
41063 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
41065 2006-05-05 Jim Meyering <jim@meyering.net>
41067 * m4/warning.m4: New file, derived from bison's file by the same name.
41069 2006-05-03 Bruno Haible <bruno@clisp.org>
41071 * lib/stdint_.h: Shorter URL.
41072 * lib/inttypes.h: Likewise.
41074 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
41076 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
41078 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
41080 * lib/verify.h: Document the internals better. Most of this change
41081 was written by Bruno Haible.
41083 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
41085 * doc/verify.texi: New file, partly based on a proposal by
41088 2006-05-02 Bruno Haible <bruno@clisp.org>
41090 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
41092 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
41094 2006-04-29 Bruno Haible <bruno@clisp.org>
41096 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
41097 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
41099 2006-04-29 Bruno Haible <bruno@clisp.org>
41101 * gnulib-tool: Make --update option actually work.
41103 2006-04-29 Bruno Haible <bruno@clisp.org>
41105 * doc/gcd.texi: New file.
41106 * doc/gnulib.texi: Include it.
41108 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
41110 * lib/getdate.y (get_date): When adding relative date, start with the
41111 initial time, not with the result of the first mktime call.
41113 2006-04-25 Bruno Haible <bruno@clisp.org>
41115 * gnulib-tool (func_import): Output the include directives in three
41116 blocks, sorted separately.
41117 Reported by Ben Pfaff <blp@cs.stanford.edu>.
41119 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
41121 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
41122 to define main with arguments, for C++. Reported by Eric Blake.
41123 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
41124 Prefer 'int main ()' to 'int main (void)', for C++.
41125 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
41126 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
41127 for 'main', for C99 and C++.
41129 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
41131 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
41132 Don't assume that exit status -1 is valid.
41133 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41134 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
41135 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41136 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
41137 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
41138 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
41139 not AC_TRY_RUN. Use return, not exit. Don't assume that
41140 functions can be used without declaring them, or that you can
41141 exit with status -1.
41142 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41144 2006-04-24 Karl Berry <karl@gnu.org>
41146 * config/srclist.txt (longdouble.m4): sync lost.
41148 2006-04-24 Eric Blake <ebb9@byu.net>
41150 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
41152 2006-04-24 Bruno Haible <bruno@clisp.org>
41154 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
41155 poll() implementation in AIX.
41156 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41158 2006-04-24 Bruno Haible <bruno@clisp.org>
41160 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
41161 assigned exactly once.
41163 2006-04-23 Claudio Fontana <claudio@gnu.org>
41164 Bruno Haible <bruno@clisp.org>
41166 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
41167 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
41170 2006-04-23 Bruno Haible <bruno@clisp.org>
41172 * modules/copy-file: Depend on unistd.
41173 * modules/execute: Likewise.
41174 * modules/fatal-signal: Likewise.
41175 * modules/findprog: Likewise.
41176 * modules/mkdtemp : Likewise.
41177 * modules/pipe: Likewise.
41178 * modules/wait-process: Likewise.
41180 2006-04-23 Bruno Haible <bruno@clisp.org>
41182 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
41183 condition was already detected.
41184 Reported by Ben Pfaff <blp@cs.stanford.edu>.
41186 2006-04-23 Bruno Haible <bruno@clisp.org>
41188 * lib/copy-file.c: Include <unistd.h> unconditionally.
41189 * lib/execute.c: Likewise.
41190 * lib/fatal-signal.c: Likewise.
41191 * lib/findprog.c: Likewise.
41192 * lib/mkdtemp.c: Likewise.
41193 * lib/pipe.h: Likewise.
41194 * lib/pipe.c: Likewise.
41195 * lib/wait-process.h: Likewise.
41197 2006-04-23 Bruno Haible <bruno@clisp.org>
41199 * gnulib-tool (func_usage): Fix --import description. Document
41201 (func_import): Create temporary file in a temporary directory, if
41202 --dry-run is specified. Silence errors from 'grep' when there are no
41203 m4 files in $m4dir.
41204 (func_create_testdir): Silence errors from 'grep' when there are no
41205 m4 files in $m4dir.
41206 Reported by Karl Berry <karl@freefriends.org>.
41208 2006-04-20 Bruno Haible <bruno@clisp.org>
41210 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
41211 one argument, so that the code will be portable to Autoconf 2.60.
41212 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
41213 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
41214 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
41216 2006-04-19 Derek Price <derek@ximbiot.com>
41217 Eric Blake <ebb9@byu.net>
41219 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
41220 rather than "/full/path.h". Update comment to match. Shorten &
41221 generalize m4_translit call via AS_TR_CPP.
41223 2006-04-19 Derek Price <derek@ximbiot.com>
41224 Eric Blake <ebb9@byu.net>
41226 * lib/inttypes.h: Correct grammar in comment.
41228 2006-04-18 Derek Price <derek@ximbiot.com>
41229 Paul Eggert <eggert@cs.ucla.edu>
41231 * modules/inttypes: New file.
41232 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
41234 2006-04-18 Derek Price <derek@ximbiot.com>
41235 Paul Eggert <eggert@cs.ucla.edu>
41237 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
41240 2006-04-18 Derek Price <derek@ximbiot.com>
41241 Paul Eggert <eggert@cs.ucla.edu>
41243 * lib/inttypes.h: New file.
41244 * lib/strtoimax.c: Assume <inttypes.h>.
41246 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
41248 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
41249 isn't mounted. Problem reported by Kir Kolyshkin.
41251 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
41253 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
41254 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
41256 * lib/regex.h (RE_DUP_MAX): Update comment to match current
41259 2006-04-12 Eric Blake <ebb9@byu.net>
41261 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
41262 is now done automatically by the corresponding Autoconf macro.
41264 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
41266 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
41269 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41271 Merge regex changes from libc, removing some of our
41272 POSIX-conformance changes that were rejected and redoing them in a
41273 less-intrusive way.
41275 * lib/regcomp.c (re_compile_internal, init_dfa):
41276 Length arg is now size_t, not Idx. All uses changed.
41277 (peek_token): Forward decl now says internal_function.
41278 (__re_error_msgid, __re_error_msgid_idx):
41279 Now static rather than extern with attribute_hidden.
41280 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
41281 For some reason libc prefers K&R style defns for external functions.
41282 (regerror) [!defined _LIBC]: Likewise.
41283 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
41284 (seek_collating_symbol_entry, lookup_collation_sequence_value):
41285 (build_range_exp, build_collating_symbol):
41286 Use K&R-style defn.
41287 (re_compile_fastmap): Use '\0' to memset, not 0.
41288 (utf8_sb_map): Make the calculations more obvious.
41289 (init_dfa, parse_bracket_exp, build_charclass_op):
41290 Call calloc and cast result, as glibc does.
41291 (init_word_char, fetch_token, peek_token, peek_token_bracket):
41292 (build_range_exp, build_collating_symbol):
41293 Now internal functions.
41295 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
41297 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
41298 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
41299 Don't depend on VMS; depend on __VMS instead, for POSIX
41300 namespace cleanness.
41301 (regoff_t): Define to ssize_t, not long int.
41303 Remove the REG_ macros named below. Instead, make the old names
41304 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
41306 (REG_BACKSLASH_ESCAPE_IN_LISTS):
41307 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
41308 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
41309 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
41310 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
41311 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
41312 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
41313 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
41314 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
41315 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
41316 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
41317 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
41318 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
41319 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
41320 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
41321 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
41322 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
41324 Remove. All uses replaced by the old RE_* names.
41325 (RE_BACKSLASH_ESCAPE_IN_LISTS):
41326 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
41327 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
41328 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
41329 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
41330 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
41331 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
41332 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
41333 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
41334 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
41335 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
41336 Don't bother having these macros be independent of each others'
41337 values, since they no longer exist in the POSIX name space.
41339 Rename the following member names back to their old names,
41340 unless !__USE_GNU_REGEX. All uses changed back.
41341 (buffer): Renamed from re_buffer.
41342 (allocated): Renamed from re_allocated.
41343 (used): Renamed from re_used.
41344 (syntax): Renamed from re_syntax.
41345 (fastmap): Renamed from re_fastmap.
41346 (translate): Renamed from re_translate.
41347 (can_be_null): Renamed from re_can_be_null.
41348 (regs_allocated): Renamed from re_regs_allocated.
41349 (fastmap_accurate): Renamed from re_fastmap_accurate.
41350 (no_sub): Renamed from re_no_sub.
41351 (not_bol): Renamed from re_not_bol.
41352 (not_eol): Renamed from re_not_eol.
41353 (newline_anchor): Renamed from re_newline_anchor.
41354 (num_regs): Renamed from rm_num_regs.
41355 (start): Renamed from rm_start.
41356 (end): Renamed from rm_end.
41358 (free_state): Move up a bit.
41360 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
41361 #define to be empty.
41362 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
41363 when that is what is intended.
41364 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
41365 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
41367 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
41368 All uses changed back to re_malloc, etc. It's now the caller's
41369 responsibility to check for overflow; all callers changed.
41370 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
41371 (re_x2nrealloc): Remove.
41372 (free_state): Remove decl.
41374 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
41375 (re_set_registers, re_exec):
41376 Use K&R-style defn.
41378 2006-01-31 Roland McGrath <roland@redhat.com>
41380 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
41381 Reported by Mike Frysinger <vapier@gentoo.org>.
41383 2006-01-15 Andreas Jaeger <aj@suse.de>
41386 * lib/regex_internal.c (re_string_reconstruct): Adjust for
41387 build_wcs_upper_buffer change.
41388 (build_wcs_upper_buffer): Change return type.
41390 2005-12-10 Ulrich Drepper <drepper@redhat.com>
41392 * lib/regex_internal.h: Include <stdint.h> if available.
41394 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
41396 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
41398 2005-10-14 Ulrich Drepper <drepper@redhat.com>
41400 * lib/regcomp.c: Adjust for changed secondary hash function.
41402 2005-09-30 Ulrich Drepper <drepper@redhat.com>
41404 * lib/regex.h: Pretty printing.
41405 Clean up namespace a bit.
41407 2005-09-30 Jakub Jelinek <jakub@redhat.com>
41409 * lib/regexec.c (update_cur_sifted_state, check_arrival,
41410 check_arrival_add_next_nodes): Avoid using uninitialized variable.
41412 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
41413 Ulrich Drepper <drepper@redhat.com>
41416 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
41418 (bitset_word_t): Renamed from bitset_word. All uses changed.
41420 2005-09-22 Ulrich Drepper <drepper@redhat.com>
41423 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
41424 * lib/regcomp.c: Remove unnecessary uses of
41425 unsigned RE_TRANSLATE_TYPE.
41426 * lib/regex_internal.h: Likewise.
41427 * lib/regex_internal.c: Likewise.
41428 * lib/regexec.c: Likewise.
41429 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
41431 2005-09-07 Ulrich Drepper <drepper@redhat.com>
41433 * lib/regexec.c (find_recover_state): Remove unnecessary
41435 (transit_state_bkref): Make DFA a const pointer.
41436 (get_subexp): Likewise.
41437 (check_arrival): Likewise.
41438 (update_cur_sifted_state): Likewise.
41439 (re_search_internal): Likewise.
41440 (prune_impossible_nodes): Likewise.
41441 (acquire_init_state_context): Likewise.
41442 (proceed_next_node): Likewise.
41443 (set_regs): Likewise.
41444 (free_fail_stack_return): Likewise.
41445 (check_arrival_expand_ecl): Mark DFA parameter as const.
41446 (check_arrival_expand_ecl_sub): Likewise.
41447 (check_subexp_limits): Likewise.
41448 (sub_epsilon_src_nodes): Likewise.
41449 (add_epsilon_src_nodes): Likewise.
41450 (merge_state_array): Likewise.
41451 (update_regs): Likewise.
41452 (build_trtable): Likewise.
41453 (sift_states_backward): Mark MCTX parameter as const.
41454 (build_sifted_states): Likewise.
41455 (update_cur_sifted_state): Likewise.
41456 (sift_states_mkref): Likewise.
41457 (check_arrival_expand_ecl): Mark eclosure as const.
41458 (check_dst_limits_calc_pos_1): Likewise.
41459 * lib/regex_internal.h (re_match_context_t): Make dfa a const
41462 2005-09-06 Ulrich Drepper <drepper@redhat.com>
41464 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
41465 (transit_state_sb): Likewise.
41466 (transit_state_mb): Likewise.
41467 (sift_states_iter_mb): Likewise.
41468 (check_arrival_add_next_nodes): Likewise.
41469 (check_node_accept_bytes): Change first parameter to pointer-to-const.
41470 [_LIBC] (re_search_2_stub): Use mempcpy.
41472 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
41473 mbrtowc for very simple UTF-8 case.
41475 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
41476 a pointer-to-const.
41477 (re_acquire_state_context): Likewise.
41478 * lib/regex_internal.h: Adjust prototypes.
41480 * lib/regex.c: Prevent using C++ compilers.
41482 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
41483 (re_acquire_state_context): Likewise.
41485 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41487 * modules/regex (Depends-on): Add ssize_t.
41489 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41491 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
41494 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
41496 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
41498 2006-03-29 Mark D. Baushke <mdb@gnu.org>
41499 Bruno Haible <bruno@clisp.org>
41501 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
41502 <sys/types.h> and <inttypes.h>.
41504 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41506 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
41507 `__error_t_defined', so argp.h will not typedef the former.
41509 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
41511 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
41512 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
41513 glibc names. Even if glibc is changed to conform to POSIX, the
41514 traditional names will be available anyway, since regex depends on
41515 the extensions module. Also, fix a longstanding typo in the
41516 implementation of Spencer ERE test #75 from grep 2.3. Problems
41517 reported by Emanuele Giaquinta. Also, change sense of cached
41518 variable, so that the message makes sense.
41520 2006-03-24 Simon Josefsson <jas@extundo.com>
41522 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
41523 including some doc fixes.
41524 (base64_encode_alloc): Fix +1 bug on allocation failures.
41526 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41528 * lib/base64.c (base64_encode): Do not read past end of array with
41529 unsanitized input on systems with CHAR_BIT > 8.
41531 2006-03-24 Eric Blake <ebb9@byu.net>
41533 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
41535 2006-03-22 Karl Berry <karl@gnu.org>
41537 * config/srclist.txt (*setenv.[ch]): get from coreutils.
41538 * config/srclistvars.sh (COREUTILS): new var.
41540 2006-03-17 Jim Meyering <jim@meyering.net>
41542 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
41543 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
41545 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
41547 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
41548 no longer needs it. Instead, check that regoff_t is as least
41549 as wide as ptrdiff_t.
41551 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
41552 so that our regex.h stays compatible with the installed regex.
41553 This is helpful for installers who configure --without-included-regex.
41554 Problem reported by Emanuele Giaquinta.
41556 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
41558 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
41559 Typedef to long int, not to off_, as POSIX will likely change
41562 2006-03-15 Eric Blake <ebb9@byu.net>
41564 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
41566 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
41568 * lib/argp-help.c (validate_uparams): Fix typo
41569 * lib/argp-parse.c (argp_default_options): Consistently begin help
41570 messages with a lowercase letter.
41572 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
41574 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
41575 overrun buffers and shouldn't be used (much as gets shouldn't be
41577 * lib/time_r.c (asctime_r, ctime_r): Likewise.
41579 2006-03-08 Simon Josefsson <jas@extundo.com>
41581 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
41582 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41584 2006-03-08 Simon Josefsson <jas@extundo.com>
41586 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
41587 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41589 2006-03-08 Simon Josefsson <jas@extundo.com>
41591 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
41592 signal that configure disabled the device.
41594 2006-03-08 Simon Josefsson <jas@extundo.com>
41596 * build-aux/maint.mk: Fix refresh-po, to handle no translated
41599 2006-03-07 Simon Josefsson <jas@extundo.com>
41601 * modules/getopt (Depends-on): Add unistd.
41603 * modules/unistd: New file.
41605 2006-03-07 Simon Josefsson <jas@extundo.com>
41607 * modules/gc-random: New file.
41609 2006-03-07 Simon Josefsson <jas@extundo.com>
41611 * m4/unistd_h.m4: New file.
41613 2006-03-07 Simon Josefsson <jas@extundo.com>
41615 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
41616 test to be side-effect free by storing the result in the cache
41617 variable gl_cv_lib_readline, and moving the assignment of
41618 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
41619 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41621 2006-03-07 Simon Josefsson <jas@extundo.com>
41623 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
41624 error on missing devices (the functions will return an error).
41626 * m4/gc.m4: Move random stuff to gc-random.m4
41628 2006-03-07 Simon Josefsson <jas@extundo.com>
41630 * lib/unistd_.h: New file.
41632 2006-03-07 Simon Josefsson <jas@extundo.com>
41634 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
41636 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
41638 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
41639 Problem reported by Juan Manuel Guerrero.
41641 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
41643 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
41645 * lib/getlogin_r.c: Likewise.
41646 * lib/getlogin_r.h: Likewise.
41647 * lib/glob.c: Likewise.
41648 * lib/pagealign_alloc.c: Likewise.
41649 * lib/unistd_.h: Remove; no longer needed.
41651 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
41653 * MODULES.html.sh (Support for systems lacking POSIX:2001):
41655 * modules/c-stack (Depends-on): Add unistd.
41656 * modules/getlogin_r: Likewise.
41657 * modules/glob: Likewise.
41658 * modules/pagealign_alloc: Likewise.
41659 * modules/unistd (Files): Remove lib/unistd_.h.
41660 (EXTRA_DIST): Remove.
41661 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
41663 (MOSTLYCLEANFILES): Remove unistd.h-t.
41665 2006-03-03 Simon Josefsson <jas@extundo.com>
41667 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
41669 2006-03-03 Simon Josefsson <jas@extundo.com>
41671 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
41674 2006-03-03 Simon Josefsson <jas@extundo.com>
41676 * build-aux/maint.mk: Add indent target.
41678 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
41680 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
41681 our replacement poll.h in any case, to avoid a differing
41682 declaration from a system header. Seen on AIX.
41684 2006-03-01 Simon Josefsson <jas@extundo.com>
41686 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
41689 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
41691 * modules/gettime (Depends-on): Add extensions module.
41692 * modules/nanosleep (Depends-on): Likewise.
41693 * modules/settime (Depends-on): Likewise.
41695 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
41697 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
41698 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
41700 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41701 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
41703 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
41704 not "==". Reported by Ralf Wildenhues.
41706 2006-03-01 Karl Berry <karl@gnu.org>
41708 * doc/Copyright/request-*: new files, synced from gnuorg.
41710 2006-03-01 Karl Berry <karl@gnu.org>
41712 * config/srclist.txt (Copyright/*): new entries.
41714 2006-02-28 Simon Josefsson <jas@extundo.com>
41716 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
41718 2006-02-27 Simon Josefsson <jas@extundo.com>
41720 * lib/base64.h: Indent #define's. From Jim Meyering
41721 <jim@meyering.net>.
41723 2006-02-27 Jim Meyering <jim@meyering.net>
41725 Revert the change of 2006-02-24, so these files can continue
41726 to be sync'd from gettext.
41727 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
41730 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
41732 * modules/intprops: New file.
41733 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
41735 * modules/getloadavg (Files): Remove lib/intprops.h.
41736 (Depends-on): Add intprops.
41737 * modules/human: Likewise.
41738 * modules/inttostr: Likewise.
41739 * modules/openat: Likewise.
41740 * modules/sig2str: Likewise.
41741 * modules/userspec: Likewise.
41742 * modules/utimecmp: Likewise.
41743 * modules/xnanosleep: Likewise.
41744 * modules/xstrtol: Likewise.
41746 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
41748 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
41749 * modules/lock-tests (TESTS): Use $(EXEEXT).
41750 * modules/tls-tests: Likewise.
41751 * modules/argp-tests: Likewise.
41752 (check_PROGRAMS): New var, replacing...
41753 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
41755 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41757 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
41760 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
41762 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
41764 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41766 Sync from coreutils.
41767 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
41770 2006-02-22 Jim Meyering <jim@meyering.net>
41772 Sync from coreutils.
41773 * m4/chdir-safer.m4: New file.
41775 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
41777 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
41778 AT_FDCWD exceeds INT_MAX.
41779 * lib/openat.h (AT_FDCWD): Likewise.
41781 2006-02-17 Eric Blake <address@hidden>
41783 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
41785 2006-02-16 Simon Josefsson <jas@extundo.com>
41787 * modules/getaddrinfo (Depends-on): Add sys_socket.
41789 2006-02-15 Simon Josefsson <jas@extundo.com>
41791 * build-aux/maint.mk: Add dsyntax-check rule.
41793 2006-02-15 Eric Blake <ebb9@byu.net>
41795 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
41796 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
41797 'present but cannot compile' warnings on cygwin.
41798 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
41799 use ws2tcpip.h if sys/socket.h works.
41800 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
41801 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
41803 2006-02-14 Simon Josefsson <jas@extundo.com>
41805 * modules/maintainer-makefile (Files): Rename.
41807 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
41808 and (the local) Makefile.cfg to maint-cfg.mk.
41810 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
41813 * modules/maintainer-makefile: New module.
41815 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
41816 severaly stripped to make it possible to build it up from scratch
41817 with reliable tests.
41819 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
41820 fixes to permit overriding the default actions when configure and
41821 makefile are not available.
41823 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
41825 Sync from coreutils.
41826 * modules/lstat (Depends-on): Don't depend on xalloc.
41827 (License): Change from GPL to LGPL, since this is now simply a
41828 replacement for a libc function.
41830 2006-02-14 Jim Meyering <jim@meyering.net>
41832 Sync from coreutils.
41834 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
41835 failure on deficient systems, and simplify gnulib lgpl dependencies.
41836 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
41837 xmalloc/lstat combination. Based on a patch from Bruno Haible.
41839 * lib/xalloc-die.c: Remove unused definition of N_.
41841 2006-02-14 Jim Meyering <jim@meyering.net>
41843 Sync from coreutils.
41844 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
41845 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
41846 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
41847 double-quote uses of that variable, to accommodate the rare case in
41848 which getmntent is available in none of the libraries checked. This
41849 happens at least on FreeBSD 5.0.
41851 2006-02-13 Simon Josefsson <jas@extundo.com>
41853 * gnulib-tool (Usage): Fix --import, from
41854 karl@freefriends.org (Karl Berry).
41856 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
41858 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
41860 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
41862 * lib/argp-namefrob.h: Restore changes accidentally lost during the
41863 "autoupdate" on 2005-12-12.
41865 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
41867 * modules/closeout (Depends-on): Remove atexit.
41869 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
41871 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
41872 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
41874 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
41876 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
41877 __EXTENSIONS__ if this causes compilation to fail. Problem
41878 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
41879 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
41881 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
41883 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
41884 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
41885 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
41888 2006-01-26 Simon Josefsson <jas@extundo.com>
41890 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
41891 prototype is visible on mingw32.
41893 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
41896 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
41899 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
41901 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
41902 attempt to open for write; this always fails, at least on POSIX
41903 hosts. This reinstates the 2006-01-09 change, which was
41904 inadvertently removed.
41906 2006-01-26 Bruno Haible <bruno@clisp.org>
41908 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
41909 Reported by Paul Eggert.
41911 2006-01-26 Bruno Haible <bruno@clisp.org>
41912 Paul Eggert <eggert@cs.ucla.edu>
41914 * lib/stdbool_.h (_Bool)
41915 [(! (defined __cplusplus || defined __BEOS__)
41916 && !defined __GNUC__
41917 && !(defined __HP_cc || defined __xlc__
41918 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
41919 || defined __sgi))]:
41920 #define to signed char in these cases too; this simplifies
41921 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
41922 etc., separately) and makes it more conservative.
41924 2006-01-25 Simon Josefsson <jas@extundo.com>
41926 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
41927 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
41928 ws2tcpip.h with WINVER=0x0501. All for mingw32.
41930 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
41932 * lib/argp-namefrob.h: Bugfix. Remove stray #
41934 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
41936 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
41937 so that we test the test.
41938 Check for yet another HP-UX cc bug involving *bool |= bool.
41940 2006-01-25 Karl Berry <karl@gnu.org>
41942 * config/srclist.txt (vasnprintf.c): sync lost.
41944 2006-01-25 Jim Meyering <jim@meyering.net>
41946 Sync from the stable (b5) branch of coreutils:
41948 * lib/fts.c (fts_children): Don't let close() clobber errno from
41951 * lib/fts.c (fts_stat): When following a symlink-to-directory,
41952 don't necessarily interpret stat-fails+lstat-succeeds as indicating
41953 a dangling symlink. That can also happen at least for ELOOP.
41954 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
41955 FYI, this bug predates the inclusion of fts.c in coreutils.
41957 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
41958 in their own block, so pre-c99 compilers don't object.
41960 Avoid the double-free (first in fts_read, second in fts_close) that
41961 would occur when an `active' directory is made inaccessible (e.g.,
41962 via chmod a-x) during a traversal.
41963 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
41964 before returning. Reproduce this failure by
41965 mkdir -p a/b; cd a; chmod a-x . b
41966 Reported by Stavros Passas.
41968 2006-01-25 Jim Meyering <jim@meyering.net>
41970 * lib/fileblocks.c: Remove more useless parentheses.
41971 * lib/readutmp.h: Likewise.
41973 2006-01-25 Bruno Haible <bruno@clisp.org>
41975 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
41977 Reported by Paul Eggert.
41979 2006-01-25 Bruno Haible <bruno@clisp.org>
41981 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
41982 rid of a trap command. For Solaris sh.
41983 Reported by Mark D. Baushke <mdb@gnu.org>.
41985 2006-01-24 Simon Josefsson <jas@extundo.com>
41987 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
41990 2006-01-24 Karl Berry <karl@gnu.org>
41992 * config/srclist.txt (argp-namefrob.h): sync lost.
41994 2006-01-24 Jim Meyering <jim@meyering.net>
41996 * modules/openat (Files): Add lib/intprops.h.
41997 From Mark D. Baushke.
41999 2006-01-24 Jim Meyering <jim@meyering.net>
42001 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
42002 Reported by Mark D. Baushke.
42004 2006-01-24 Jim Meyering <jim@meyering.net>
42006 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
42008 2006-01-24 Bruno Haible <bruno@clisp.org>
42010 * modules/strnlen (Maintainer): Change from glibc to all.
42012 2006-01-24 Bruno Haible <bruno@clisp.org>
42014 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
42015 Patch by Paul Eggert.
42017 2006-01-24 Bruno Haible <bruno@clisp.org>
42019 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
42021 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
42024 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
42025 'signed char' to avoid problems with the built-in _Bool type.
42026 Reported by Paul Eggert on 2005-11-26.
42028 2006-01-24 Bruno Haible <bruno@clisp.org>
42030 * gnulib-tool (func_import): Avoid constructing complicated sed
42031 expressions inside backquote.
42032 Report and solution by Mark D. Baushke <mdb@gnu.org>.
42034 2006-01-23 Ulrich Drepper <drepper@redhat.com>
42036 These changes imported from libc.
42037 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
42038 test and two separate function calls.
42039 * lib/strndup.c (__strndup): Add libc_hidden_def.
42041 2006-01-23 Simon Josefsson <jas@extundo.com>
42043 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
42044 Remove the test_*_SOURCES variable: automake infers it by default.
42045 * modules/tls-tests: Likewise.
42047 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
42049 Work around porting bugs reported by Dieter in
42050 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
42051 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
42052 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
42053 Include "getopt.h" first, to check interface.
42054 (getenv): Declare only if defined HAVE_DECL_GETENV &&
42056 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
42057 (__strndup): Revert to K&R-style function dfns, the glibc style.
42058 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
42059 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
42060 Include strnlen.h first, to get prototype properly.
42061 (strnlen): Renamed from __strnlen.
42064 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
42066 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
42068 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
42070 * config/srclist.txt: Adjust to reflect glibc reorganization.
42071 This affects only comments.
42073 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
42075 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
42076 Reported by Bruce Korb <bkorb@gnu.org>.
42078 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
42080 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
42081 to pacify gcc -Wswitch-default.
42083 2006-01-22 Bruno Haible <bruno@clisp.org>
42085 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
42086 temporary buffer for sprintf, take into account the precision also
42087 for 'd', 'i', 'u', 'o', 'x', 'X'.
42089 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
42091 * modules/argp-tests: New module
42092 * tests/test-argp.c: New file
42093 * tests/test-argp-2.sh: New file
42095 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
42097 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
42098 (__argp_base_name): Removed
42099 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
42101 (__argp_base_name): Provide macro definition or extern declaration
42102 depending on the configuration
42104 2006-01-20 Simon Josefsson <jas@extundo.com>
42106 * modules/inet_ntop (Depends-on): Depend on sys_socket.
42108 2006-01-20 Simon Josefsson <jas@extundo.com>
42110 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
42112 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
42114 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
42115 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
42116 Suggested by Bruno Haible.
42118 2006-01-20 Karl Berry <karl@gnu.org>
42120 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
42121 until changes propagate, I guess.
42123 2006-01-19 Simon Josefsson <jas@extundo.com>
42125 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
42127 2006-01-19 Simon Josefsson <jas@extundo.com>
42129 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
42131 2006-01-19 Simon Josefsson <jas@extundo.com>
42133 * gnulib-tool: Set check_PROGRAMS.
42135 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
42136 modules/des-tests, modules/gc-arcfour-tests,
42137 modules/gc-arctwo-tests, modules/gc-des-tests,
42138 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
42139 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
42140 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
42141 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
42142 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
42143 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
42144 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
42147 2006-01-18 Simon Josefsson <jas@extundo.com>
42149 * modules/socklen (Depends-on): Depend on sys_socket.
42151 2006-01-18 Simon Josefsson <jas@extundo.com>
42153 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
42154 modules/des-tests, modules/gc-arcfour-tests,
42155 modules/gc-arctwo-tests, modules/gc-des-tests,
42156 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
42157 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
42158 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
42159 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
42160 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
42161 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
42162 $(EXEEXT) to automake TESTS variable, for mingw32.
42164 2006-01-17 Simon Josefsson <jas@extundo.com>
42166 * modules/socklen (Include): Need sys/socket.h.
42168 2006-01-17 Bruno Haible <bruno@clisp.org>
42170 * modules/ssize_t (Include): Add <sys/types.h>.
42172 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
42174 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
42175 it's not portable and it doesn't work with cross-compiles.
42176 Problem reported by Bruno Haible. Fix missing-$ typo in
42177 'test "gl_cv_ignore_unused_libraries" ...' that prevented
42178 -zignore from being used with Sun's C compiler.
42180 2006-01-12 Simon Josefsson <jas@extundo.com>
42182 * lib/base64.c: Fix warning, reported by Bruno Haible
42183 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
42185 2006-01-12 Bruno Haible <bruno@clisp.org>
42187 * modules/ldd: New file.
42188 * build-aux/ldd.sh.in: New file.
42189 * MODULES.html.sh (Support for building libraries and executables): Add
42192 2006-01-12 Bruno Haible <bruno@clisp.org>
42194 * m4/ldd.m4: New file.
42196 2006-01-12 Bruno Haible <bruno@clisp.org>
42198 * gnulib-tool (func_import, func_create_testdir): Don't go into an
42199 endless loop while replacing $auxdir with build-aux.
42201 2006-01-11 Simon Josefsson <jas@extundo.com>
42203 * lib/stdint_.h (SIZE_MAX): Add missing (.
42205 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
42207 Sync from coreutils.
42208 * lib/md5.c: Fix commentary typos.
42209 (alignof, UNALIGNED_P): No need for a GCC-specific version.
42210 * lib/md5.h (__attribute__): Remove; unused.
42211 * lib/sha1.c: Fix commentary to match md5 better.
42212 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
42213 so that we don't need to worry about alignment. All uses changed.
42214 This merges the 2005-10-28 md5 change into sha1.
42216 2006-01-11 Jim Meyering <jim@meyering.net>
42218 Sync from coreutils.
42219 * lib/md5.c (OP): Fix spacing.
42221 2006-01-11 Bruno Haible <bruno@clisp.org>
42223 Ensure automatic ordering between gl_LOCK and gl_ARGP.
42224 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
42225 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
42227 2006-01-11 Bruno Haible <bruno@clisp.org>
42229 Ensure automatic ordering between gl_LOCK and gl_ARGP.
42230 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
42231 the "early" section as well.
42233 2006-01-11 Bruno Haible <bruno@clisp.org>
42235 Avoid "ar: no archive members specified" error on MacOS X.
42236 * gnulib-tool (func_modules_add_dummy): New function.
42237 (func_import, func_create_testdir): Invoke it.
42239 2006-01-11 Bruno Haible <bruno@clisp.org>
42241 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
42242 with $auxdir in AC_CONFIG_FILES statements.
42244 2006-01-11 Bruno Haible <bruno@clisp.org>
42246 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42247 Initialize also noinst_HEADERS to empty.
42249 2006-01-11 Bruno Haible <bruno@clisp.org>
42251 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
42253 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
42256 2006-01-11 Bruno Haible <bruno@clisp.org>
42258 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
42259 overridable by the user.
42260 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42262 2006-01-10 Simon Josefsson <jas@extundo.com>
42264 * modules/sys_socket: New file.
42266 2006-01-10 Simon Josefsson <jas@extundo.com>
42268 * m4/sys_socket_h.m4: New file.
42270 2006-01-10 Simon Josefsson <jas@extundo.com>
42272 * lib/socket_.h: New file.
42274 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
42276 * modules/readutmp (Maintainer): Add myself.
42278 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
42280 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
42281 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
42282 People who are still concerned with buggy memcmp implementations
42283 can invoke gl_FUNC_MEMCMP themselves.
42285 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
42287 * lib/regex_internal.h (BITSET_WORD_BITS):
42288 Work around a bug in 64-bit PGC (before version 6.1-2), where the
42289 preprocessor mishandles large unsigned values as if they were signed.
42290 Problem reported by Claudio Fontana in
42291 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
42293 2006-01-10 Jim Meyering <jim@meyering.net>
42295 Avoid the double-free (first in fts_read, second in fts_close) that
42296 would occur when an `active' directory is made inaccessible (e.g.,
42297 via chmod a-x) during a traversal.
42298 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
42299 before returning. Reproduce this failure by
42300 mkdir -p a/b; cd a; chmod a-x . b
42301 Reported by Stavros Passas.
42303 Sync from coreutils.
42304 * lib/sha1.c: Tweak grammar in a comment.
42306 2006-01-10 Jim Meyering <jim@meyering.net>
42308 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
42309 Patch by Joerg Sonnenberger.
42311 2006-01-10 Bruno Haible <bruno@clisp.org>
42313 * modules/readutmp: Depend on module free.
42314 * modules/strtok_r: Depend on module restrict.
42316 2006-01-10 Bruno Haible <bruno@clisp.org>
42318 * modules/gettext (configure.ac): Add an invocation of
42319 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
42321 2006-01-10 Bruno Haible <bruno@clisp.org>
42323 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
42324 Reported by Werner Lemberg <wl@gnu.org>.
42326 2006-01-10 Bruno Haible <bruno@clisp.org>
42328 * lib/localcharset.c: Update from GNU gettext.
42330 2006-01-10 Bruno Haible <bruno@clisp.org>
42332 * lib/argp.h (__const): Remove macro. Use const instead.
42333 * lib/argp-fmtstream.h (__const): Likewise.
42334 * lib/glob_.h (__const): Remove macro.
42335 * lib/glob-libc.h: Use const instead of __const.
42337 2006-01-10 Bruno Haible <bruno@clisp.org>
42339 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
42341 Needed to avoid an automake error regarding the 'gettext' module.
42343 2006-01-09 Simon Josefsson <jas@extundo.com>
42345 * modules/inet_ntop (Depends-on): Add restrict.
42347 2006-01-09 Simon Josefsson <jas@extundo.com>
42349 * modules/gc-rijndael-tests (License): Put under LGPL.
42351 * modules/gc-des-tests (License): Likewise.
42353 * modules/gc-arcfour-tests (License): Likewise.
42355 * modules/gc-arctwo-tests (License): Likewise.
42357 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
42359 * modules/gc-hmac-sha1-tests (Files): Likewise.
42361 * modules/gc-hmac-md5-tests (License): Likewise.
42363 * modules/gc-sha1-tests (License): Likewise.
42365 * modules/gc-md5-tests (License): Likewise.
42367 * modules/gc-md4-tests (License): Likewise.
42369 * modules/gc-md2-tests (License): Likewise.
42371 * modules/gc-tests (License): Likewise.
42373 * modules/des-tests (License): Likewise.
42375 * modules/md4-tests (License): Likewise.
42377 * modules/md2-tests (License): Likewise.
42379 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
42381 Sync from coreutils:
42383 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
42384 * modules/lib-ignore: New file.
42385 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
42386 chdir-safer.m4, lchmod.m4.
42387 * modules/openat: Add mkdirat.c, openat-priv.h.
42389 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
42391 Sync from coreutils.
42392 * m4/lib-ignore.m4: New file.
42393 * m4/lchmod.m4: New file.
42395 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
42397 Sync from coreutils.
42398 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
42399 for write access: POSIX says that must fail.
42400 * lib/fts.c (diropen): Likewise.
42401 * lib/save-cwd.c (save_cwd): Likewise.
42402 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
42403 well, for minor improvements on hosts that lack O_DIRECTORY.
42404 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
42405 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
42406 Fall back on chown if open failed with EACCES.
42408 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
42409 Report an error at compile-time if only a 1-second nominal clock
42410 resolution is found.
42412 * lib/lchmod.h: New file.
42413 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
42414 (make_dir_parents): Use lchown rather than chown, and
42415 lchmod rather than chmod.
42417 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
42418 dummies too. Problem with "none" reported by Bob Proulx. Problem with
42419 "proc" reported by n0dalus.
42421 * lib/mountlist.c: Include <limits.h>.
42422 (dev_from_mount_options)
42423 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
42424 New function. It no longer assumes "dev=" has the System V meaning
42425 on Linux (since it doesn't). It also parses "dev=" more carefully.
42426 (read_file_system_list)
42427 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
42428 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
42431 * lib/posixtm.h (PDS_PRE_2000): New macro.
42432 * lib/posixtm.c (year): Arg is now syntax_bits rather than
42433 allow_century. All usages changed. Reject dates outside the range
42434 1969-1999 if PDS_PRE_2000 is used.
42436 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
42438 Sync from coreutils.
42439 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
42440 (Time of day items): Mention the possibility of leap seconds.
42441 Problem reported by Dr. David Alan Gilbert.
42443 2006-01-09 Jim Meyering <jim@meyering.net>
42445 Sync from coreutils.
42447 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
42449 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
42451 * lib/modechange.c (mode_compile): Reject an invalid mode string
42452 that starts with an octal digit. From Andreas Gruenbacher.
42454 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
42455 and dup to open_safer and dup_safer, respectively.
42456 (openat_permissive): Fix typo in comment.
42458 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
42459 "gettext.h"; either no longer needed or are guaranteed by openat.h.
42460 (_): Remove; no longer needed.
42461 (openat): Renamed from rpl_openat; no need for rpl_openat
42462 since openat.h renames openat for us.
42463 Replace most of the body with a call to openat_permissive,
42464 to avoid duplicate code.
42465 Port to (probably hypothetical) environments were mode_t is
42467 (openat_permissive): Require mode arg, so that we can check
42468 types better. Put it just after flags. Change cwd failure
42469 indicator from pointer-to-bool to pointer-to-errno-value.
42470 All callers changed.
42471 Invoke openat_save_fail and/or openat_restore_fail if
42472 cwd_errno is null, so that openat can call us.
42473 (openat_permissive, fdopendir, fstatat, unlinkat):
42474 Simplify errno handling to avoid some duplicate code,
42475 as it's OK to set errno on success.
42476 * lib/openat.h: Revamp code so that function macros depend on
42477 __OPENAT_PREFIX only, not also on AT_FDCWD.
42478 (openat_ro): Remove. Caller changed to use openat_permissive.
42479 (openat_permissive): Now a macro, if not a function.
42480 (openat_restore_fail, openat_save_fail): Now always functions,
42481 since mkdirat needs them even if __OPENAT_PREFIX is defined.
42483 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
42485 * lib/mkdirat.c: Include openat-priv.h.
42486 Remove definitions of macros defined therein.
42487 * lib/openat.c: Likewise.
42489 * lib/mkdirat.c (mkdirat): New file and function.
42490 * lib/openat.h (mkdirat): Declare.
42492 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
42494 * lib/openat.h (openat_permissive): Declare.
42495 (openat_ro): Define.
42497 * lib/openat.c (EXPECTED_ERRNO): New macro.
42498 (openat_permissive): New function -- used in remove.c rewrite.
42499 (all functions): Set errno just before returning, only if there
42500 was an actual failure.
42501 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
42503 Emulate openat-family functions using Linux's procfs, if possible.
42504 Idea and some code based on Ulrich Drepper's glibc changes.
42506 * lib/openat.c: (BUILD_PROC_NAME): New macro.
42507 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
42508 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
42509 before falling back on save_cwd and restore_cwd.
42510 (fdopendir, fstatat, unlinkat): Likewise.
42512 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
42513 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
42515 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
42516 as second argument to va_arg. Otherwise, some versions of gcc
42517 warn that `if this code is reached, the program will abort'.
42519 2006-01-09 Jim Meyering <jim@meyering.net>
42521 Sync from coreutils.
42522 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
42523 Require openat-priv.h.
42525 2006-01-09 Bruno Haible <bruno@clisp.org>
42527 * modules/strnlen (Include): Use strnlen.h.
42529 2006-01-09 Bruno Haible <bruno@clisp.org>
42531 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
42533 2006-01-09 Bruno Haible <bruno@clisp.org>
42535 * lib/sysexit_.h (EX_OK): New macro.
42536 Suggested by Martin Lambers <marlam@marlam.de>.
42538 2006-01-09 Bruno Haible <bruno@clisp.org>
42540 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
42541 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
42543 2006-01-09 Bruno Haible <bruno@clisp.org>
42545 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
42548 2006-01-09 Bruno Haible <bruno@clisp.org>
42550 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
42551 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
42552 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
42553 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
42555 2006-01-09 Bruno Haible <bruno@clisp.org>
42557 * build-aux/javacomp.sh.in: New file, moved from lib/.
42558 * modules/javacomp-script (Files): Update.
42559 (configure.ac): Add AC_CONFIG_FILES invocation.
42560 (EXTRA_DIST): Remove variable.
42562 * build-aux/javaexec.sh.in: New file, moved from lib/.
42563 * modules/javaexec (Files): Update.
42564 (configure.ac): Add AC_CONFIG_FILES invocation.
42565 (EXTRA_DIST): Remove javaexec.sh.in.
42567 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
42568 * modules/csharpcomp-script (Files): Update.
42569 (configure.ac): Add AC_CONFIG_FILES invocation.
42570 (EXTRA_DIST): Remove variable.
42572 * build-aux/csharpexec.sh.in: New file, moved from lib/.
42573 * modules/csharpexec (Files): Update.
42574 (configure.ac): Add AC_CONFIG_FILES invocation.
42575 (EXTRA_DIST): Remove csharpexec.sh.in.
42577 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
42579 Sync from coreutils.
42581 Add POSIX ACL support
42582 * lib/acl.h (copy_acl, set_acl): Add declarations.
42583 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
42584 systems other than Linux.
42585 (chmod_or_fchmod): New function: use fchmod when possible,
42586 and chmod otherwise.
42587 (file_has_acl): Add a POSIX ACL implementation, with a
42588 Linux-specific subcase.
42589 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
42590 S_ISVTX from one file to another. Fall back to fchmod/chmod when
42591 acls are unsupported.
42592 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
42593 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
42596 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
42598 Sync from coreutils.
42599 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
42601 2006-01-07 Bruno Haible <bruno@clisp.org>
42603 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
42606 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
42608 * lib/strftime.c (tzname): Don't declare if it is already #defined.
42609 Problem reported for Mingw by Mark Junker.
42611 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
42613 * README: Gnulib normally doesn't generate a tarball.
42615 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
42617 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
42618 long int, not int, for nanosecond counts, so that people who are
42619 used to POSIX struct timespec won't be surprised. Reported by Jim
42622 2005-12-28 Bruno Haible <bruno@clisp.org>
42624 * build-aux/config.rpath: Update from GNU gettext.
42626 2005-12-16 Jim Meyering <jim@meyering.net>
42628 * modules/fprintftime: New module.
42629 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
42631 2005-12-16 Jim Meyering <jim@meyering.net>
42633 * m4/fprintftime.m4: New file.
42635 2005-12-16 Jim Meyering <jim@meyering.net>
42637 * lib/fprintftime.c, lib/fprintftime.h: New files.
42639 2005-12-15 Simon Josefsson <jas@extundo.com>
42641 * modules/socklen (configure.ac): Fix M4 macro name, to align with
42644 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
42646 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
42647 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
42649 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
42651 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
42652 * lib/argp-help.c (fill_in_uparams): Check if the constructed
42653 struct uparams is valid. Fall back to the default values if it is
42656 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
42658 * modules/argp (Files): Add argp-pin.c
42659 (Depends-on): dirname
42660 (lib_SOURCES): Add argp-pin.c
42662 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
42664 * m4/argp.m4: Check if program_invocation_name and
42665 program_invocation_short_name are declared and define appropriate
42666 macros if they are not.
42668 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
42670 * lib/argp-help.c (__argp_base_name): New function
42671 (__argp_short_program_name): Rewrite using __argp_base_name
42672 * lib/argp-namefrob.h: Define program_invocation_name and
42673 program_invocation_short_name if requested
42674 (__argp_base_name): Add prototype
42675 * lib/argp-parse.c (argp_def): Use gettext wrappers
42676 (argp_default_parser): Use __argp_base_name
42677 * lib/argp-pin.c: New file. Defines program_invocation_name and
42678 program_invocation_short_name on systems that lack them.
42680 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
42682 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
42683 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42684 porting problem reported by Georg Schwarz in
42685 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42687 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
42689 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
42690 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
42691 porting problem reported by Georg Schwarz in
42692 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
42694 2005-12-05 Bruno Haible <bruno@clisp.org>
42696 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
42697 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
42698 Reported by Mark Junker <mjscod@gmx.de>.
42700 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
42702 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
42703 Use implementation from Albert Chin, with some
42704 comments/corrections by Stepan Kasal and myself.
42706 2005-12-02 Bruno Haible <bruno@clisp.org>
42708 * gnulib-tool (func_import): Accept GPLed build tool modules when
42710 * modules/csharpcomp-script: New file.
42711 * modules/csharpcomp: Depend on it.
42712 * modules/javacomp-script: New file.
42713 * modules/javacomp: Depend on it.
42714 Suggested by Simon Josefsson.
42716 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
42718 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
42719 statement, to work around an HP-UX 10.20 compiler bug reported by
42722 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
42724 * modules/savedir (Depends-on): Add openat.
42726 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
42728 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
42729 (uintmax_t) [defined uintmax_t]: Do not declare.
42730 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
42731 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
42732 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
42733 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
42734 sake of portability to weird hosts that C allows (though we don't
42735 know of any practical examples).
42737 * lib/savedir.h (fdsavedir): New decl.
42738 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
42739 contains most of the former guts of savedir.
42740 (savedir): Use savedirstream.
42741 Include "openat.h".
42743 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
42745 * modules/obstack (Files): Add m4/ulonglong.m4.
42746 Problem reported by Davide Angelocola.
42748 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
42750 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
42751 coreutils no longer futzes with rounding modes.
42753 2005-11-14 Jim Meyering <jim@meyering.net>
42755 * lib/mkstemp-safer.c: Include <config.h>, required for possible
42756 replacement of mkstemp.
42758 2005-11-10 Simon Josefsson <jas@extundo.com>
42760 * lib/readline.c: Remove EOL.
42762 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
42764 * modules/gethrxtime (Depends-on): Add gettime.
42766 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
42768 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
42769 or gettimeofday; no longer needed.
42771 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
42773 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
42775 (gethrxtime) [! (HAVE_NANOUPTIME
42776 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
42777 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
42778 our own approximation.
42780 2005-11-08 Eric Blake <ebb9@byu.net>
42782 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42784 2005-11-08 Eric Blake <ebb9@byu.net>
42786 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
42788 2005-11-04 Bruno Haible <bruno@clisp.org>
42790 * gnulib-tool: Implement --update mode.
42792 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
42794 Fix porting problem reported by Theodoros V. Kalamatianos.
42795 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
42796 Don't assume that futimes failing means we must fail.
42798 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
42800 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
42801 variables to suggest the intended function of the PATH_MAX check.
42803 2005-10-30 Kean Johnston <jkj@sco.com>
42805 Trivial changes to support SCO systems.
42806 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
42808 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
42809 where __ptr is null when no I/O is pending.
42811 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
42813 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
42814 leave errno alone. Problem reported by Dmitry V. Levin.
42816 2005-10-28 Simon Josefsson <jas@extundo.com>
42818 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
42821 * tests/test-gc-md2.c, tests/test-md2.c: New files.
42823 * modules/md2, modules/md2-tests: New files.
42825 2005-10-28 Simon Josefsson <jas@extundo.com>
42827 * m4/inet_ntop.m4: More tests.
42829 * m4/gc-md2.m4, md2.m4: New file.
42831 2005-10-28 Simon Josefsson <jas@extundo.com>
42833 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
42834 "restrict" keywords, as per POSIX. Protect the function
42835 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
42836 Don't use K&R prototypes. Check the sprintf return values.
42837 Re-define EAFNOSUPPORT if not present. Indent.
42839 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
42840 suggested by Bruno Haible <bruno@clisp.org>.
42842 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
42844 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
42846 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
42849 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
42851 * lib/md2.h, lib/md2.c: New files.
42853 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
42855 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
42856 errno alone. Problem reported by Frederic Jolliton.
42858 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
42860 * modules/verify (License): Change from GPL to LGPL. This is a
42861 tiny module and there are apparently near-equivalents that are
42862 under the BSD license.
42864 2005-10-24 Simon Josefsson <jas@extundo.com>
42866 * modules/sha1: Relicense to LGPL.
42868 2005-10-24 Simon Josefsson <jas@extundo.com>
42870 * lib/md4.h: Shrink buffer size, now that we changed the type.
42872 2005-10-23 Simon Josefsson <jas@extundo.com>
42874 * gnulib-tool (func_import): Fix --tests-base.
42876 2005-10-22 Simon Josefsson <jas@extundo.com>
42878 * modules/arcfour (Depends-on): Need stdint.
42880 2005-10-22 Simon Josefsson <jas@extundo.com>
42882 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
42883 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
42885 2005-10-22 Simon Josefsson <jas@extundo.com>
42887 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
42888 suggested by Bruno Haible <bruno@clisp.org>.
42890 2005-10-22 Simon Josefsson <jas@extundo.com>
42892 * lib/crc.h: Include stddef.h, for size_t.
42894 2005-10-22 Simon Josefsson <jas@extundo.com>
42896 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
42897 arcfour_context struct (simplify test vector testing in GNU
42900 2005-10-21 Simon Josefsson <jas@extundo.com>
42902 * modules/des, modules/des-tests: New files.
42904 * modules/gc-des, modules/gc-des-tests: New files.
42906 * tests/test-des.c, tests/test-gc-des.c: New file.
42908 2005-10-21 Simon Josefsson <jas@extundo.com>
42910 * modules/arctwo, modules/arctwo-tests: New files.
42912 * tests/test-arctwo.c: New file.
42914 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
42916 * tests/test-gc-arctwo.c: New file.
42918 2005-10-21 Simon Josefsson <jas@extundo.com>
42920 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
42921 Bruno Haible <bruno@clisp.org>.
42923 * m4/gc-des.m4: New file.
42925 2005-10-21 Simon Josefsson <jas@extundo.com>
42927 * m4/arctwo.m4: New file.
42929 * m4/gc-arctwo.m4: New file.
42931 2005-10-21 Simon Josefsson <jas@extundo.com>
42933 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
42936 2005-10-21 Simon Josefsson <jas@extundo.com>
42938 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
42941 * lib/hmac-sha1.c (hmac_sha1): Likewise.
42943 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
42944 Bruno Haible <bruno@clisp.org>.
42946 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
42949 2005-10-21 Simon Josefsson <jas@extundo.com>
42951 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
42953 2005-10-21 Simon Josefsson <jas@extundo.com>
42955 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
42957 2005-10-21 Simon Josefsson <jas@extundo.com>
42959 * lib/des.h, lib/des.c: New files.
42961 * lib/gc-gnulib.c: Support DES.c
42963 2005-10-21 Simon Josefsson <jas@extundo.com>
42965 * lib/arctwo.h, lib/arctwo.c: New files.
42967 * lib/gc-gnulib.c: Support ARCTWO.
42969 2005-10-21 Simon Josefsson <jas@extundo.com>
42971 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
42972 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42974 2005-10-21 Simon Josefsson <jas@extundo.com>
42976 * gnulib-tool (func_import, func_create_testdir): Define automake
42977 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
42978 Makefile.am snippet),
42979 suggested by Bruno Haible <bruno@clisp.org>.
42981 * modules/gc (Makefile.am): Use it.
42983 2005-10-21 Bruno Haible <bruno@clisp.org>
42985 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
42988 2005-10-19 Simon Josefsson <jas@extundo.com>
42990 * tests/test-gc-rijndael.c: New file.
42992 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
42994 2005-10-19 Simon Josefsson <jas@extundo.com>
42996 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
42999 2005-10-19 Simon Josefsson <jas@extundo.com>
43001 * tests/test-gc-arcfour.c: New file.
43003 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
43005 2005-10-19 Simon Josefsson <jas@extundo.com>
43007 * modules/gc-md4, modules/gc-md4-tests: New file.
43009 * tests/test-gc-md4.c: New file.
43011 2005-10-19 Simon Josefsson <jas@extundo.com>
43013 * m4/gc-md4.m4: New file.
43015 2005-10-19 Simon Josefsson <jas@extundo.com>
43017 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
43018 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
43021 2005-10-19 Simon Josefsson <jas@extundo.com>
43023 * m4/gc-arcfour.m4: New file.
43025 * m4/gc-rijndael.m4: New file.
43027 2005-10-19 Simon Josefsson <jas@extundo.com>
43029 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
43031 2005-10-19 Simon Josefsson <jas@extundo.com>
43033 * lib/gc-gnulib.c: Support ARCFOUR.
43035 2005-10-19 Simon Josefsson <jas@extundo.com>
43037 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
43040 * lib/gc.h: Add ECB enum type.
43042 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
43044 2005-10-18 Simon Josefsson <jas@extundo.com>
43046 * tests/test-md5.c: New file.
43048 * modules/md5-tests: New file.
43050 2005-10-18 Simon Josefsson <jas@extundo.com>
43052 * tests/test-md4.c: New file.
43054 * modules/md4, modules/md4-tests: New files.
43056 2005-10-18 Simon Josefsson <jas@extundo.com>
43058 * m4/md4.m4: New file.
43060 2005-10-18 Simon Josefsson <jas@extundo.com>
43062 * lib/md4.h, lib/md4.c: New files, based on md5.?.
43064 2005-10-17 Stepan Kasal <kasal@ucw.cz>
43066 * gnulib-tool (func_create_testdir): Omit the second check whether
43067 BUILT_SOURCES in nonempty.
43069 2005-10-17 Simon Josefsson <jas@extundo.com>
43071 * tests/test-rijndael.c: New file.
43073 2005-10-17 Simon Josefsson <jas@extundo.com>
43075 * modules/sha1: Depend on stdint instead of md5.
43077 * modules/md5: Depend on stdint, remove uint32_t.
43079 2005-10-17 Simon Josefsson <jas@extundo.com>
43081 * modules/gc-sha1-tests: New file.
43083 * tests/test-gc-sha1.c: New file.
43085 2005-10-17 Simon Josefsson <jas@extundo.com>
43087 * m4/md5.m4: Remove call to uint32_t.m4.
43089 2005-10-17 Simon Josefsson <jas@extundo.com>
43091 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
43093 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
43096 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
43098 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
43100 2005-10-17 Simon Josefsson <jas@extundo.com>
43102 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
43104 2005-10-17 Simon Josefsson <jas@extundo.com>
43106 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
43108 2005-10-17 Simon Josefsson <jas@extundo.com>
43110 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
43112 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
43114 2005-10-17 Bruno Haible <bruno@clisp.org>
43116 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
43117 that it can also be used in a test.
43119 2005-10-16 Bruno Haible <bruno@clisp.org>
43121 * gnulib-tool (func_emit_tests_Makefile_am): Also define
43122 TESTS_ENVIRONMENT, so that individual tests can augment it.
43124 * gnulib-tool (func_create_testdir): Use an intermediate target for
43125 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
43126 macros, like $(ALLOCA_H), which cannot be passed through the command
43129 2005-10-15 Simon Josefsson <jas@extundo.com>
43131 * modules/rijndael-tests: New file.
43133 * modules/rijndael: New file.
43135 2005-10-15 Simon Josefsson <jas@extundo.com>
43137 * m4/rijndael.m4: New file.
43139 2005-10-15 Simon Josefsson <jas@extundo.com>
43141 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
43143 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
43145 2005-10-14 Simon Josefsson <jas@extundo.com>
43147 * tests/test-arcfour.c: New file.
43149 * modules/arcfour, modules/arcfour-tests: New files.
43151 2005-10-14 Simon Josefsson <jas@extundo.com>
43153 * m4/arcfour.m4: New file.
43155 2005-10-14 Simon Josefsson <jas@extundo.com>
43157 * lib/arcfour.h, lib/arcfour.c: New files.
43159 2005-10-14 Roland McGrath <roland@redhat.com>
43161 Import from libc. [BZ #1331]
43162 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
43164 Reported by Matej Vela <vela@debian.org>.
43166 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
43168 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
43169 include <wchar.h>; no longer needed.
43171 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
43173 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
43175 2005-10-14 Jakub Jelinek <jakub@redhat.com>
43176 and Ulrich Drepper <drepper@redhat.com>
43179 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
43180 instead of inline stream orientation test and two separate
43181 function calls. Pay no attention to USE_IN_LIBIO.
43183 2005-10-13 Simon Josefsson <jas@extundo.com>
43185 * modules/gc-hmac-md5-tests: New file.
43187 * tests/test-gc-hmac-sha1.c: New file.
43189 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
43191 * modules/gc-hmac-md5-tests: New file.
43193 * tests/test-gc-md5.c: New file.
43195 * modules/gc-md5-tests: New file.
43197 2005-10-13 Simon Josefsson <jas@extundo.com>
43199 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
43200 Move memory allocation outside of loop.
43202 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
43204 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
43205 intermediate directory is in a read-only file system. Problem
43206 reported by Eric Blake.
43208 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
43210 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
43212 2005-10-12 Simon Josefsson <jas@extundo.com>
43214 * tests/test-hmac-sha1.c: New file.
43216 * modules/hmac-sha1-tests: New file.
43218 * modules/hmac-sha1: New file.
43220 2005-10-12 Simon Josefsson <jas@extundo.com>
43222 * modules/gc-sha1: New file.
43224 2005-10-12 Simon Josefsson <jas@extundo.com>
43226 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
43228 * tests/test-gc-pbkdf2-sha1.c: New file.
43230 2005-10-12 Simon Josefsson <jas@extundo.com>
43232 * modules/gc-md5, modules/gc-hmac-md5: New files.
43234 * modules/gc (Files): Remove md5, memxor and hmac files.
43236 2005-10-12 Simon Josefsson <jas@extundo.com>
43238 * m4/gc-pbkdf2-sha1.m4: New file.
43240 * m4/gc-hmac-sha1.m4: New file.
43242 * m4/gc-sha1: New file.
43244 * m4/hmac-sha1.m4: New file.
43246 2005-10-12 Simon Josefsson <jas@extundo.com>
43248 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
43250 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
43252 2005-10-12 Simon Josefsson <jas@extundo.com>
43254 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
43255 suggested by Bruno Haible <bruno@clisp.org>.
43257 2005-10-12 Simon Josefsson <jas@extundo.com>
43259 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
43261 2005-10-12 Simon Josefsson <jas@extundo.com>
43263 * lib/gc-pbkdf2-sha1.c: New file.
43265 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
43267 2005-10-12 Simon Josefsson <jas@extundo.com>
43269 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
43271 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
43273 2005-10-12 Simon Josefsson <jas@extundo.com>
43275 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
43276 GC_USE_HMAC_MD5, respectively.
43278 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
43279 (gc_md5): Fix typo.
43281 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
43283 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
43285 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
43287 2005-10-12 Bruno Haible <bruno@clisp.org>
43289 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
43290 Reported by Stepan Kasal <kasal@ucw.cz>.
43292 2005-10-11 Simon Josefsson <jas@extundo.com>
43294 * tests/test-crc.c: New file.
43296 * modules/crc, modules/crc-tests: New files.
43298 2005-10-11 Simon Josefsson <jas@extundo.com>
43300 * m4/crc.m4: New file.
43302 2005-10-11 Simon Josefsson <jas@extundo.com>
43304 * lib/gc.h: Add gc_hash and gc_hash_buffer.
43306 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
43308 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
43310 2005-10-11 Simon Josefsson <jas@extundo.com>
43312 * lib/crc.h, lib/crc.c: New files.
43314 * lib/gc.h (gc_hash_buffer): Add doc.
43316 2005-10-11 Bruno Haible <bruno@clisp.org>
43318 * modules/c-strcasestr: New file.
43319 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
43321 2005-10-11 Bruno Haible <bruno@clisp.org>
43323 * modules/c-strcase: New file.
43324 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
43326 2005-10-11 Bruno Haible <bruno@clisp.org>
43328 * lib/strcasecmp.c: Include limits.h.
43329 (strcasecmp): Avoid integer overflow on exotic platforms.
43330 * lib/strncasecmp.c: Include limits.h.
43331 (strncasecmp): Avoid integer overflow on exotic platforms.
43332 Reported by Paul Eggert.
43334 2005-10-11 Bruno Haible <bruno@clisp.org>
43336 * lib/c-strcasestr.h: New file, from GNU gettext.
43337 * lib/c-strcasestr.c: New file, from GNU gettext.
43339 2005-10-11 Bruno Haible <bruno@clisp.org>
43341 * lib/c-strcase.h: New file, from GNU gettext.
43342 * lib/c-strcasecmp.c: New file, from GNU gettext.
43343 * lib/c-strncasecmp.c: New file, from GNU gettext.
43345 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
43347 * modules/mempcpy (License): GPL -> LGPL.
43348 * modules/strchrnul (License): Likewise.
43349 * modules/sysexits (License): Likewise.
43351 2005-10-08 Simon Josefsson <jas@extundo.com>
43353 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
43355 2005-10-07 Simon Josefsson <jas@extundo.com>
43357 * m4/memxor.m4: Remove gl_C_RESTRICT call.
43359 2005-10-06 Simon Josefsson <jas@extundo.com>
43361 * tests/test-hmac-md5.c: New file.
43363 * modules/hmac-md5-tests: New file.
43365 * modules/hmac-md5: New file.
43367 2005-10-06 Simon Josefsson <jas@extundo.com>
43369 * m4/hmac-md5.m4: New file.
43371 * m4/memxor.m4: Require gl_C_RESTRICT.
43373 2005-10-06 Simon Josefsson <jas@extundo.com>
43375 * lib/memxor.c (memxor): Avoid casts and warnings.
43377 2005-10-06 Simon Josefsson <jas@extundo.com>
43379 * lib/hmac-md5.c: New file.
43381 * lib/hmac.h: New file.
43383 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
43385 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
43386 promotes to int, not unsigned int, to catch the AIX 5.3
43389 2005-10-05 Simon Josefsson <jas@extundo.com>
43391 * modules/memxor: New file.
43393 * modules/iconv (Files): Move config.rpath to havelib, it is used
43396 * modules/havelib (Files): Add config.rpath.
43398 2005-10-05 Simon Josefsson <jas@extundo.com>
43400 * m4/memxor.m4: New file.
43402 2005-10-05 Simon Josefsson <jas@extundo.com>
43404 * lib/memxor.c (memxor): Fix compiler error.
43406 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
43407 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
43409 * lib/memxor.h, lib/memxor.c: New files.
43411 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
43412 we assume all systems have it, suggested by Jim Meyering
43413 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
43414 any systems lack sys/socket.h; mingw32 is known to lack it, but we
43415 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
43418 2005-10-05 Simon Josefsson <jas@extundo.com>
43420 * config/srclist.txt: Add glibc bug 1423 for md5.h.
43422 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
43424 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
43425 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
43426 needed, since the source code now assumes these .h files.
43428 2005-10-05 Derek Price <derek@ximbiot.com>
43430 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
43432 2005-10-05 Bruno Haible <bruno@clisp.org>
43434 * modules/stdint (License): Change to LGPL.
43436 2005-10-04 Simon Josefsson <jas@extundo.com>
43438 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
43439 D. Baushke" <mdb@gnu.org>.
43441 2005-10-04 Bruno Haible <bruno@clisp.org>
43443 * lib/verify.h (verify_true): Provide alternative definition for C++.
43445 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
43447 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
43448 (SSIZE_MAX): New macro, if not already defined.
43449 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
43452 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
43454 Sync from coreutils.
43455 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
43456 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
43457 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
43458 ULLONG_MAX doesn't work with 2.7.2.1.
43460 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
43462 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
43465 * modules/exclude (Depends-on): Depend on verify.
43466 * modules/strtoimax (Depends-on): Likewise.
43467 * modules/utimecmp (Depends-on): Likewise.
43469 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
43471 * lib/exclude.c: Include verify.h.
43472 (verify): Remove. All callers changed to use verify.h's version.
43473 * lib/strtoimax.c: Likewise.
43474 * lib/utimecmp.c: Likewis.e
43476 Sync from coreutils.
43477 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
43478 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
43479 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
43480 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
43481 bother returning ENOSYS if settimeofday or stime fails; just let
43482 them return whatever errno they want to return.
43483 * lib/utimens.c: Include unistd.h, for dup2.
43484 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
43485 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
43487 2005-10-02 Jim Meyering <jim@meyering.net>
43489 Sync from coreutils.
43490 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
43491 from glibc-2.2.5 that fails for read-only files.
43493 2005-10-02 Jim Meyering <jim@meyering.net>
43495 Sync from coreutils.
43496 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
43497 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
43498 `#if HAVE_CONFIG_H'.
43499 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
43500 Remove AT_FDCWD test.
43501 Do not consume the fd unless successful.
43502 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
43503 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
43504 block, so that we don't even try to compile it if settimeofday is
43505 available. This works around a compilation failure on OSF1 V5.1,
43506 due to stime requiring a `long int*' while tv_sec is `int'.
43508 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
43510 Sync from coreutils.
43511 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
43512 against `yes', rather than just testing for nonempty.
43514 2005-10-01 Simon Josefsson <jas@extundo.com>
43516 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
43519 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
43520 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
43521 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
43522 freeaddrinfo and gai_strerror are declared by the POSIX headers.
43523 Check if struct addrinfo is declared.
43525 2005-10-01 Simon Josefsson <jas@extundo.com>
43527 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
43528 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
43529 AI_* and EAI_* definitions. Protect function declarations.
43531 2005-10-01 Jim Meyering <jim@meyering.net>
43533 Sync from coreutils.
43535 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
43536 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
43537 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
43538 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
43539 in the inet and nsl libraries. Required on Solaris 5.7.
43541 2005-10-01 Jim Meyering <jim@meyering.net>
43543 Sync from coreutils.
43544 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
43545 in the inet and nsl libraries. Required on Solaris 5.7.
43547 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
43549 * lib/getdelim.c (getdelim): Remove unused variables.
43551 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
43553 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
43554 so that the code works even with ancient cpp. Portability problem
43555 with GCC 2.7.2.1 reported by Thomas M.Ott.
43557 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
43559 * modules/regex (Depends-on): Add strcase.
43561 * modules/gethostname (Licence): Change from GPL to LGPL, since
43562 gethostname.c is a trivial implementation of a standard library
43564 * modules/poll (License): Change from GPL to LGPL, since it's
43565 derived from LGPL code.
43567 2005-09-27 Jim Meyering <jim@meyering.net>
43569 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
43572 * lib/intprops.h (signed_type_or_expr__): Define.
43573 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
43574 for unsigned types.
43576 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
43578 * lib/verify.h (verify_expr): Remove, replacing with:
43579 (verify_true): New macro that returns true instead of void.
43580 (verify_type__): Remove.
43581 (verify): Use verify_true rather than verify_type__.
43583 2005-09-26 Bruno Haible <bruno@clisp.org>
43585 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
43587 (lib_SOURCES): Remove mbchar.c.
43588 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
43589 (Files): Add m4/mbrtowc.m4.
43590 * modules/mbiter: Likewise.
43591 * modules/mbuiter: Likewise.
43593 2005-09-26 Bruno Haible <bruno@clisp.org>
43595 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
43596 compile mbchar.c if they are not both present.
43597 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
43598 * m4/mbiter.m4 (gl_MBITER): Likewise.
43599 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
43600 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
43601 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
43603 2005-09-25 Jim Meyering <jim@meyering.net>
43605 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
43606 also uses socklen_t.
43608 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
43610 * lib/utimens.c (ENOSYS): Define if not already defined.
43611 (futimens): Support having a null PATH if the file descriptor
43614 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
43616 (__attribute): Define to empty unless GCC 3.1 or later.
43617 This works around a core dump on OpenBSD 3.4, which has GCC
43618 2.95.3, which dumps core when given __attribute__(()). It also
43619 simplifies other tests, since we really don't want to bother with
43620 worrying about which ancient version of GCC supported what.
43621 Original problem reported by Yoann Vandoorselaere, with part of
43622 the fix suggested by Derek Price.
43624 2005-09-24 Jim Meyering <jim@meyering.net>
43626 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
43627 so we can once again use a positive bitfield width of 1 -- now we
43628 don't have to explain why we were using a bitfield width of 2.
43630 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
43632 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
43633 and similarly for the other external symbols. Problem reported
43636 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
43637 bug reported by Jim Meyering.
43639 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
43640 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
43641 not needed, since socklen is a prerequisite module.
43643 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
43645 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
43646 Problem reported by Eric Blake.
43647 (getaddrinfo): Initialize se so that it's not garbage.
43648 Redo internal storage allocation so that it doesn't make unportable
43649 assumptions about alignment.
43652 * lib/utimens.c (futimens): Use futimesat if available.
43653 Prefer it to futimes since it doesn't have the futimes bug.
43655 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
43656 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
43657 Instead, declare a function that returns a pointer to an array,
43658 and use verify_type__ to declare the size of the array.
43659 Problem and germ of a solution reported by Bruno Haible.
43660 (verify_type__): Use 2, not 1, for bitfield size, to avoid
43661 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
43663 2005-09-23 Jim Meyering <jim@meyering.net>
43665 Sync from coreutils.
43666 Correct build failure (socklen_t not defined) on at least
43667 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
43668 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
43670 2005-09-23 Jim Meyering <jim@meyering.net>
43672 * modules/getaddrinfo (Depends-on): Add socklen.
43674 2005-09-23 Bruno Haible <bruno@clisp.org>
43676 * tests/test-verify.c: New file.
43678 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43680 Sync from coreutils.
43682 * modules/argmatch (Depends-on): Add verify.
43683 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
43685 * modules/save-cwd (Depends-on): Likewise.
43687 * modules/openat (Files): Add lib/openat-die.c.
43688 (Depends-on): Remove error, exitfail.
43691 * modules/verify: New file.
43692 * MODULES.html.sh (Diagnostics <assert.h>): New section,
43693 with "verify" module.
43695 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43697 Sync from coreutils.
43699 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
43700 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
43701 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
43702 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
43703 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
43704 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
43705 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
43706 Don't bother checking for string.h, stdlib.h, unistd.h.
43707 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
43708 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
43710 * m4/jm-macros.m4 (gl_MACROS): Likewise.
43711 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
43713 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
43714 (gl_GETDATE): Use it.
43716 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
43718 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43720 Sync from coreutils.
43722 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
43724 * lib/argmatch.h: Include verify.h
43725 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
43726 (ARGMATCH_ASSERT): Remove; unused.
43727 * lib/canonicalize.c: Assume STDC_HEADERS.
43728 * lib/exclude.c: Include "strcase.h".
43729 * lib/regex_internal.h [!defined _LIBC]: Likewise.
43730 * lib/getusershell.c: Include stdio--.h rather than stdio.h
43732 (getusershell): Call fopen, not fopen_safer.
43733 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
43734 Do not include unistd-safer.h.
43735 (save_cwd): Don't call fd_safer; no longer needed
43736 now that we include fcntl--.h.
43738 * lib/getdate.y (relative_time): New type.
43739 (RELATIVE_TIME_0): New constant.
43740 (parser_control): Use relative_time instead of doing it ourselves.
43741 (%union): Add new relative_time rel member.
43742 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
43744 (relunit, relunit_snumber): Now of type rel.
43745 (zone, rel, relunit, get_date): Adjust to above changes.
43747 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
43748 Do not include unistd-safer.h.
43749 (getloadavg): Don't call fd_safer; no longer needed
43750 now that we include fcntl--.h.
43752 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
43753 (make_dir_parents): Treat ENOSYS like EEXIST.
43755 Improve quality of diagnostics on restore_cwd failure.
43756 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
43757 (make_dir_parents): Last arg is now int * (for errno), not bool *.
43758 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
43759 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
43760 each time through the loop. Do not diagnose restore_cwd failure;
43761 that is the caller's job (and perhaps the caller does not care).
43763 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
43764 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
43765 If the file already exists but is not a directory, don't bother
43766 to try to make its parents.
43767 Close potential file descriptor leak if we can't chdir("/") (!).
43768 Don't always return true if chdir($PWD) fails; return true only
43769 if the requested action was done successfully (except for the
43771 Don't log final directory unless we actually made it.
43772 Refactor to avoid duplicate code to fix up permissions.
43773 Don't attempt to fix up parent permissions if chdir($PWD) fails.
43775 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
43776 to make it a bit faster and (I hope) clearer.
43777 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
43778 Fix bug in formats like %2N.
43780 * lib/verify.h: New file.
43782 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
43784 Sync from coreutils.
43785 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
43787 2005-09-22 Jim Meyering <jim@meyering.net>
43789 Sync from coreutils.
43791 * m4/lstat.m4 (gl_FUNC_LSTAT):
43792 Use AC_LIBSOURCES to require lstat.c and lstat.h.
43793 Remove obsolete comment.
43794 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
43795 * m4/xstrtod.m4: Likewise.
43797 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
43799 2005-09-22 Jim Meyering <jim@meyering.net>
43801 Sync from coreutils.
43803 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
43805 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
43806 the .tm_year member, since otherwise gcc-4.0 would now warn about
43807 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
43809 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
43810 order to avoid an unsuppressible warning from gcc on 64-bit systems.
43812 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
43813 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
43814 when run in a time zone for which daylight savings time is in effect
43815 for the starting date.
43817 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
43818 stop us from restricting permissions of just-created absolute-named
43820 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
43821 to restore initial working directory.
43822 * lib/mkdir-p.c (make_dir_parents): New parameter:
43823 different_working_dir, to tell caller if/when we change the working
43824 directory and are unable to return to the initial one.
43825 * lib/mkdir-p.h (make_dir_parents): Update prototype.
43826 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
43827 `return false'. This fixes a bug introduced on 2004-07-30.
43829 * lib/openat.c (fdopendir): Be sure to close the supplied
43830 file descriptor before returning. This makes our replacement
43831 implementation a little closer to Solaris's, where fdopendir
43832 ties the file descriptor to the returned DIR* pointer.
43833 * lib/openat.c (unlinkat): New function.
43834 * lib/openat.h (unlinkat): Add prototype.
43835 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
43836 (openat_restore_fail): Rename from openat_restore_die.
43837 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
43839 Provide an alternative to exiting immediately upon save_cwd or
43840 restore_cwd failure. Now, an application can arrange e.g.,
43841 to perform a longjump in that case.
43842 * lib/openat.c: Include dirname.h.
43843 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
43844 (rpl_openat, fdopendir, fstatat): Call openat_save_die
43845 and openat_restore_die rather than calling error directly.
43846 Don't include "error.h" or "exitfail.h"; they're no longer needed.
43848 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
43849 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
43852 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
43853 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
43854 int utc, int nanoseconds);
43856 date should not have to allocate a megabyte of virtual memory to
43857 handle a format argument like +%1048575T. When implemented with
43858 strftime, it must allocate such a buffer, use strftime to fill it
43859 in, print it, then free it.
43860 With fprintftime, it simply prints everything and exits.
43861 With no need for memory allocation, that's one fewer way to fail.
43862 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
43863 optional field width, not before, so we accept %9:z, not %:9z.
43864 (my_strftime): Be sure to use L_('x') for literals.
43866 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
43867 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
43868 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
43869 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
43870 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
43871 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
43872 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
43873 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
43874 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
43875 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
43876 * lib/xgethostname.c, lib/xreadlink.c:
43877 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
43879 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
43880 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
43881 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
43882 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
43883 and don't include <sys/file.h>).
43885 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
43887 Sync from coreutils.
43889 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
43890 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
43891 [!LDAV_DONE]: Avoid unused variable warning.
43893 2005-09-21 Bruno Haible <bruno@clisp.org>
43895 * lib/unicodeio.h (unicode_to_mb): New declaration.
43897 2005-09-20 Derek Price <derek@ximbiot.com>
43899 * lib/getaddrinfo.c: Don't include <netdb.h> included from
43902 2005-09-20 Bruno Haible <bruno@clisp.org>
43904 * gnulib-tool: Remove trailing slashes from the values specified for
43905 --source-base, --m4-base, --tests-base, --aux-dir.
43906 Suggested by Simon Josefsson <jas@extundo.com>.
43908 2005-09-20 Bruno Haible <bruno@clisp.org>
43910 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
43911 func_modules_to_filelist, func_import, func_create_testdir): Make all
43912 sorting results locale-independent, so that gnulib-cache.m4 doesn't
43913 change when gnulib-tool is invoked in a different locale.
43915 2005-09-19 Simon Josefsson <jas@extundo.com>
43917 * m4/socklen.m4: Fix typo.
43919 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43921 Use a consistent style for including <config.h>.
43922 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
43923 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
43924 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
43925 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
43926 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
43927 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
43928 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
43929 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
43930 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
43931 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
43932 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
43933 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
43934 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
43935 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
43936 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
43937 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
43938 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
43939 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
43940 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
43941 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
43942 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
43943 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
43944 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
43945 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
43946 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
43947 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
43948 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
43949 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
43950 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
43951 lib/xstrtoumax.c, lib/yesno.c:
43952 Standardize inclusion of config.h.
43953 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
43954 lib/inttostr.h: Removed inclusion of config.h from header files.
43955 * lib/inttostr.c: Adjusted in-tree users.
43956 * lib/timespec.h: Remove superfluous warning to include config.h.
43957 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
43958 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
43959 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
43960 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
43961 config.h with HAVE_CONFIG_H.
43963 2005-09-19 Jim Meyering <jim@meyering.net>
43965 * modules/pathmax (License): Change to LGPL.
43967 2005-09-19 Derek Price <derek@ximbiot.com>
43969 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
43971 2005-09-19 Bruno Haible <bruno@clisp.org>
43973 * gnulib-tool (import): Provide default for --tests-base.
43975 2005-09-19 Bruno Haible <bruno@clisp.org>
43977 * doc/quote.texi: New file, extracted from gnulib.texi.
43978 * doc/ctime.texi: New file, extracted from gnulib.texi.
43979 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
43980 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
43981 * doc/gnulib.texi: Include them.
43983 2005-09-18 Bruno Haible <bruno@clisp.org>
43986 * gnulib-tool (func_readlink): New function.
43987 (func_ln_if_changed): Use it.
43989 2005-09-18 Bruno Haible <bruno@clisp.org>
43991 * gnulib-tool: Support --with-tests also with --import.
43992 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
43993 (func_import): Use variables $testsbase and $inctests. Emit a
43994 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
43995 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
43996 SUBDIRS += $testsdir.
43997 (func_create_testdir): Update.
43999 2005-09-18 Bruno Haible <bruno@clisp.org>
44001 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
44002 instead of $dry_run.
44003 (func_cp_if_changed, func_mv_if_changed): Remove functions.
44004 (func_ln_if_changed): Don't handle dry-run here.
44005 (func_import): In dry-run mode, detect more precisely which actions
44006 would be performed, and don't use "...ing" verbs.
44008 2005-09-18 Bruno Haible <bruno@clisp.org>
44010 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
44011 (func_import): Use join on two temporary files instead of three nested
44012 loops, in order to determine which files are new or old.
44014 2005-09-18 Bruno Haible <bruno@clisp.org>
44016 * gnulib-tool (func_import): Comment out code that spits out the
44017 new files with --dry-run.
44019 2005-09-18 Bruno Haible <bruno@clisp.org>
44021 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
44023 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
44025 * lib/stat-time.h: New file.
44026 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
44027 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
44028 in a different way.
44029 (timespec_cmp): New function.
44030 * lib/utimecmp.c: Include stat-time.h.
44031 (SYSCALL_RESOLUTION): Depend on whether various struct stat
44032 members exist, not on the obsolescent ST_MTIM_NSEC.
44033 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
44035 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
44037 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
44039 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
44041 * MODULES.html.sh (File system functions): Add stat-time.
44042 * modules/stat-time: New file.
44043 * modules/timespec (Files): Remove m4/st_mtim.m4; this
44044 is now done in a different way, by the stat-time module.
44045 * modules/utimecmp (Depends-on): Add stat-time.
44047 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
44049 * m4/st_mtim.m4: Remove. Superseded by...
44050 * m4/stat-time.m4: New file.
44051 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
44052 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
44054 2005-09-15 Derek Price <derek@ximbiot.com>
44056 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
44058 2005-09-15 Derek Price <derek@ximbiot.com>
44060 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
44061 * lib/regex_internal.c: Ditto, using this...
44062 (__GNUC_PREREQ): ...new macro.
44063 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
44065 (__GNUC_PREREQ): ...this new macro.
44067 * lib/strstr.h: Include string.h. Define strstr as a macro here.
44069 2005-09-15 Derek Price <derek@ximbiot.com>
44070 Paul Eggert <eggert@cs.ucla.edu>
44072 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
44073 changes, consolidating in...
44074 * lib/regex_internal.h: ...this file.
44076 2005-09-13 Jim Meyering <jim@meyering.net>
44078 * lib/canon-host.c: Filter through gnu indent and reword comments
44080 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
44082 2005-09-13 Derek Price <derek@ximbiot.com>
44084 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
44086 Reported by Jim Meyering <jim@meyering.net>.
44088 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44090 * lib/base64.c: Typo.
44091 (base64_encode): Put b64str in initialized data section.
44093 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
44095 Merge glibc and coreutils changes into gnulib, plus a few
44097 * lib/md5.c: Use #error rather than a string.
44098 (CYCLIC): New macro, from glibc source. Use it instead of rol.
44099 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
44100 (__attribute__): Define to empty for non recent-GCC.
44101 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
44102 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
44103 Renamed from their non-__ counterparts, with new macros replacing
44104 them if not _LIBC. Add __THROW attribute.
44106 (struct md5_ctx): Align buffer if using GCC.
44107 * lib/sha1.h (struct sha1_ctx): Likewise.
44108 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
44109 The old name was backwards.
44110 (NOTSWAP): Remove; not used.
44111 (rol): New macro, moved here from md5.h.
44112 (sha1_process_block): Remove a FIXME that doesn't make sense.
44114 2005-09-12 Derek Price <derek@ximbiot.com>
44116 Return usable errors from canon-host.
44117 * lib/canon-host.h: New file.
44118 * lib/canon-host.c (canon_host): Wrap...
44119 (canon_host_r): ...this new function, which now relies exclusively on
44121 (ch_strerror): New function.
44122 (last_cherror): New global.
44123 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
44125 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
44127 (freeaddrinfo): Free ai->ai_canonname when set.
44129 2005-09-12 Derek Price <derek@ximbiot.com>
44131 Make canon-host require getaddrinfo.
44132 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
44133 AC_LIBSOURCE canon-host.h. Call...
44134 (gl_PREREQ_CANON_HOST): ...this new function, which requires
44136 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
44138 2005-09-12 Derek Price <derek@ximbiot.com>
44140 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
44142 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
44144 2005-09-12 Derek Price <derek@ximbiot.com>
44146 * lib/gai_strerror.c: Include config.h when available. Include
44147 getaddrinfo.h before other headers to test interface.
44148 Reported by Larry Jones <lawrence.jones@ugs.com>.
44150 2005-09-12 Derek Price <derek@ximbiot.com>
44151 Paul Eggert <eggert@cs.ucla.edu>
44153 * modules/glob (Files): Add glob-libc.h.
44155 2005-09-12 Derek Price <derek@ximbiot.com>
44156 Paul Eggert <eggert@cs.ucla.edu>
44158 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
44159 glob_.h, glob-libc.h.
44160 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
44162 2005-09-12 Derek Price <derek@ximbiot.com>
44163 Paul Eggert <eggert@cs.ucla.edu>
44165 * lib/glob-libc.h: Renamed from glob_.h. The new version is
44166 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
44167 protecting things that should be done only in gnulib contexts.
44168 * lib/glob_.h: New file, containing only the glob things needed for
44170 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
44171 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
44172 (glob, globfree, glob_pattern_p): Now defined simply in terms of
44173 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
44174 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
44175 and to respect the namespace rules better.
44177 2005-09-08 Simon Josefsson <jas@extundo.com>
44179 * modules/socklen: New file.
44181 2005-09-08 Simon Josefsson <jas@extundo.com>
44183 * m4/socklen.m4: New file.
44185 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
44187 * modules/utimens (Files): Add m4/utimbuf.m4, since
44188 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
44189 Reported by Sergey Poznyakoff.
44191 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
44193 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
44194 definitions, since that's the preferred style in glibc.
44195 Fix a minor spacing issue, and update copyright notice to match
44198 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
44200 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
44202 2005-09-06 Simon Josefsson <jas@extundo.com>
44204 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
44205 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
44207 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
44209 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
44212 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
44214 * config/srclist.txt: Add glibc bug 1302.
44216 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
44218 Change bitset word type from unsigned int to unsigned long int,
44219 as this has better performance on typical 64-bit hosts.
44220 Port bitset code to hosts with unusual word sizes.
44221 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
44222 (build_collating_symbol):
44223 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
44224 argument is a bitset. This is merely a style issue, but it makes
44225 it clearer that an entire array is expected.
44226 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
44227 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
44228 Port to the case where bitset_word is not the same as unsigned int.
44229 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
44230 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
44232 * lib/regexec.c (check_dst_limits_calc_pos_1,
44233 check_subexp_matching_top):
44234 (build_trtable, group_nodes_into_DFAstates):
44236 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
44237 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
44238 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
44239 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
44240 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
44241 * lib/regcomp.c (optimize_subexps, lower_subexp):
44242 Work even if bitset_word has holes in its bitwise representation.
44243 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
44244 * lib/regexec.c (check_dst_limits_calc_pos_1,
44245 check_subexp_matching_top):
44247 * lib/regex_internal.c (re_string_reconstruct):
44248 Don't assume UCHAR_MAX == 255.
44249 * lib/regex_internal.h (bitset_set_all): Likewise.
44250 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
44252 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
44253 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
44255 (BITSET_WORD_MAX): New macro.
44256 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
44257 (bitset_set_all, bitset_copy): Now inline functions, not macros.
44258 (bitset_empty, bitset_copy):
44259 Prefer sizeof (bitset) to multiplying it out ourselves.
44260 (bitset_not_merge): Remove; unused.
44261 (bitset_contain): Return bool, not unsigned int with one bit on.
44262 All callers changed.
44263 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
44264 alignment than re_node_set; do this by defining a new internal
44265 type struct dests_alloc and using it to allocate memory.
44267 2005-09-05 Bruno Haible <bruno@clisp.org>
44269 * gnulib-tool (func_import): Fix comparison in handling of symbolic
44272 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
44274 * modules/size_max (Makefile.am): Add size_max.h
44276 2005-09-04 Derek Price <derek@ximbiot.com>
44278 * gnulib-tool (func_import): Fix reversed $symbolic logic.
44280 2005-09-03 Simon Josefsson <jas@extundo.com>
44282 * gnulib-tool: Fix typo.
44284 2005-09-03 Simon Josefsson <jas@extundo.com>
44286 * config/srclist.txt: Add glibc bug 1293.
44288 2005-09-03 Derek Price <derek@ximbiot.com>
44290 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
44291 From Larry Jones <lawrence.jones@ugs.com>.
44293 2005-09-02 Simon Josefsson <jas@extundo.com>
44295 * modules/socklen: New file.
44297 2005-09-02 Simon Josefsson <jas@extundo.com>
44299 * modules/havelib: New module.
44301 * modules/gettext, modules/iconv, modules/lock, modules/readline:
44304 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
44306 Check for arithmetic overflow when calculating sizes, to prevent
44307 some buffer-overflow issues. These patches are conservative, in the
44308 sense that when I couldn't determine whether an overflow was possible,
44309 I inserted a run-time check.
44310 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
44312 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
44313 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
44314 (re_xnrealloc, re_x2nrealloc): New inline functions.
44315 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
44316 parse_bracket_exp):
44317 (build_equiv_class, build_charclass): Check for arithmetic overflow
44318 in size expression calculations.
44319 * lib/regex_internal.c (re_string_realloc_buffers):
44320 (build_wcs_upper_buffer, re_node_set_add_intersect):
44321 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
44322 (re_dfa_add_node, register_state): Likewise.
44323 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
44324 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
44325 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
44326 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
44328 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
44330 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
44331 m4/ulonglong.m4. Problem reported by Martin Lambers.
44333 2005-09-02 Bruno Haible <bruno@clisp.org>
44335 Support for lib vs. lib64 distinction on biarch platforms.
44336 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
44337 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
44338 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
44340 2005-09-02 Bruno Haible <bruno@clisp.org>
44342 * gnulib-tool (import): In the other first-use case, provide defaults
44345 2005-09-02 Bruno Haible <bruno@clisp.org>
44347 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
44348 patches not yet found in the latest gettext release.
44350 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
44352 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
44353 to avoid a collision with bits/local_lim.h in glibc.
44354 All uses changed. Problem reported by Dmitry V. Levin in
44355 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
44357 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
44358 bugs in int versus size_t comparisons.
44359 (re_string_context_at): Fix bug where the code assumed that
44362 Use bool where appropriate.
44363 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
44364 All callers changed.
44365 (calc_eclosure_iter): Likewise, for ROOT arg.
44366 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
44367 (build_charclass_op): Likewise, for NON_MATCH arg.
44368 * lib/regex_internal.c (re_string_allocate, re_string_construct):
44369 (re_string_construct_common): Likewise, for ICASE arg.
44370 * lib/regexec.c (re_search_2_stub, re_search_stub):
44371 Likewise, for RET_LEN arg.
44372 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
44373 (set_regs): Likewise, for FL_BACKTRACK arg.
44374 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
44375 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
44376 (calc_eclosure_iter, parse_bracket_exp):
44377 Use bool for internal variables that are booleans.
44378 * lib/regexec.c (re_search_internal, check_matching,
44379 proceed_next_node):
44380 (set_regs, build_sifted_states, sift_states_bkref):
44381 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
44382 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
44383 (find_collation_sequence_value):
44385 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
44386 (re_node_set_compare):
44387 Return bool, not int. All callers changed.
44388 * lib/regexec.c (check_halt_node_context, check_dst_limits):
44389 (build_trtable, check_node_accept): Likewise.
44390 * lib/regex_internal.h: Include stdbool.h.
44392 Fix bugs uncovered when converting to bool.
44393 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
44394 failure instead of charging ahead blindly.
44395 * lib/regex_internal.c (register_state): Likewise.
44396 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
44397 for freeing internal storage.
44398 (group_nodes_into_DFA_states): Use unsigned int, not int, for
44399 bitset pieces used as boolean, to avoid undefined behavior
44400 on hosts that do int overflow checking.
44402 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
44404 * config/srclist.txt: Add glibc bugs 1285-1287.
44406 2005-09-01 Jim Meyering <jim@meyering.net>
44408 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
44409 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
44410 Require gl_STAT_MACROS, too.
44412 2005-09-01 Bruno Haible <bruno@clisp.org>
44414 * gnulib-tool (import): In the first-use case, provide defaults.
44416 2005-09-01 Bruno Haible <bruno@clisp.org>
44418 * gnulib-tool (func_import): Remove the .tmp files.
44420 2005-09-01 Bruno Haible <bruno@clisp.org>
44422 * gnulib-tool (func_import): Fix handling of symbolic links.
44424 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44426 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
44427 old glibc regex code mishandles strings longer than 2**31 bytes.
44428 This patch fixes this when the regex code is used in gnulib
44429 (i.e., outside glibc).
44431 This patch should not affect the use of the regex code inside
44432 glibc. No doubt this problem also needs to be handled for glibc
44433 as well, but the result will be an incompatible change to the
44434 glibc ABI, and the old ABI will have to be supported too. That
44435 can be the the subject for another patch.
44437 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
44438 governing whether the rest of this patch is active. By default,
44439 the macro is disabled and the patch has no effect.
44440 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
44441 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
44442 (struct re_pattern_buffer, re_search, re_search_2, re_match):
44443 (re_match_2, re_set_registers): Use the new types.
44444 * lib/regex_internal.h (Idx, re_hashval_t): New types.
44445 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
44447 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
44448 (re_string_context_at, bin_tree_t, re_dfastate_t):
44449 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
44450 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
44451 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
44452 (re_string_char_size_at, re_string_wchar_at):
44453 (re_string_elem_size_at):
44454 Use the new types and macros to port to 64-bit hosts.
44455 Use unsigned types for internal values, so that the code
44456 mostly works even for arrays larger than SSIZE_MAX.
44457 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
44458 (search_duplicated_node, calc_eclosure_iter, fetch_number):
44459 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
44460 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
44461 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
44462 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
44463 (calc_inveclosure, parse_dup_op, build_range_exp):
44464 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
44465 (fetch_number, create_token_tree, mark_opt_subexp):
44467 * lib/regex_internal.c (re_string_construct_common,
44468 create_ci_newstate):
44469 (create_cd_newstate, re_string_allocate, re_string_construct):
44470 (re_string_realloc_buffers, build_wcs_upper_buffer):
44471 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
44472 (re_string_reconstruct, re_string_peek_byte_case):
44473 (re_string_fetch_byte_case, re_string_context_at):
44474 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
44475 (re_node_set_init_copy, re_node_set_add_intersect):
44476 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44477 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44478 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
44479 (re_acquire_state, re_acquire_state_context, register_state):
44481 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
44482 search_cur_bkref_entry):
44483 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
44484 (re_search_internal, re_search_2_stub, re_search_stub)
44485 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
44486 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
44487 (update_cur_sifted_state, check_dst_limits):
44488 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
44489 (check_subexp_limits, sift_states_bkref, merge_state_array):
44490 (check_subexp_matching_top, get_subexp, get_subexp_sub):
44491 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
44492 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
44493 (expand_bkref_cache, check_node_accept_bytes):
44494 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
44495 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
44496 (acquire_init_state_context, check_halt_node_context):
44497 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
44498 (sift_states_backward, clean_state_log_if_needed):
44499 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
44500 (find_recover_state, transit_state_sb, transit_state_mb):
44501 (transit_state_bkref, build_trtable, match_ctx_clean):
44503 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
44504 to work around an assumption that REG_MISSING is negative.
44506 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
44507 (seek_collating_symbol_entry) [defined _LIBC]:
44508 (lookup_collation_sequence_value) [defined _LIBC]:
44509 (build_range_exp, build_collating_symbol) [defined _LIBC]:
44510 Use prototypes rather than old-style function definitions.
44511 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
44512 (transit_state_sb) [0]:
44513 (find_collation_sequence_value) [defined _LIBC]: Likewise.
44515 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
44518 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
44519 (optimize_subexps, lower_subexp):
44520 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
44521 since the signed shift might overflow. Use 1u<<31 instead.
44522 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
44524 * lib/regexec.c (check_dst_limits_calc_pos_1,
44525 check_subexp_matching_top): Likewise.
44527 * lib/regcomp.c (optimize_subexps, lower_subexp):
44528 Use CHAR_BIT rather than 8, for clarity.
44529 * lib/regexec.c (check_dst_limits_calc_pos_1):
44530 (check_subexp_matching_top): Likewise.
44531 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
44532 have to worry about portability issues when shifting it left.
44533 Remove no-longer-needed test for table_size > 0.
44534 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
44535 in a word, as the resulting behavior is undefined.
44536 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
44537 in one case, a <= should have been an <, and in another case the
44538 whole test was missing.
44539 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
44540 the standard name CHAR_BIT.
44541 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
44542 this is not true on one's complement and signed-magnitude hosts.
44544 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
44546 (struct re_dfa_t): Remove unused member states_alloc.
44547 * lib/regcomp.c (init_dfa): Don't initialize unused members.
44549 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44551 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
44552 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
44553 and large-file glibc and in 32-bit large-file Solaris.
44555 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44557 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
44558 lengths fit in regoff_t; this isn't true if regoff_t is the same
44560 * lib/regex.c (re_search_internal): 5th arg is LAST_START
44561 (= START + RANGE) instead of RANGE. This avoids overflow
44562 problems when regoff_t is the same width as size_t.
44563 All callers changed.
44564 (re_search_2_stub): Check for overflow when adding the
44565 sizes of the two strings.
44566 (re_search_stub): Check for overflow when adding START
44567 to RANGE; if it occurs, substitute the extreme value.
44569 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
44571 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
44573 2005-08-31 Jim Meyering <jim@meyering.net>
44575 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
44576 a pointer-to-const.
44577 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
44578 (register_state): Likewise.
44579 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
44580 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
44581 (group_nodes_into_DFAstates): Likewise.
44583 2005-08-31 Jim Meyering <jim@meyering.net>
44585 * check-module: Add a FIXME comment.
44587 2005-08-31 Eric Blake <ebb9@byu.net>
44589 * modules/unistd-safer (Files): Add unistd--.h.
44590 * modules/stdio-safer (Files): Add stdio--.h.
44592 2005-08-31 Derek Price <derek@ximbiot.com>
44594 * lib/getdelim.c (getdelim): Return EOF on EOF.
44595 Reported by Larry Jones <lawrence.jones@ugs.com>.
44597 2005-08-31 Bruno Haible <bruno@clisp.org>
44599 Avoid unnecessary diffs in the generated lib/Makefile.am.
44600 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
44601 the generated files.
44602 (func_import): Don't set cmd.
44604 2005-08-31 Bruno Haible <bruno@clisp.org>
44606 * lib/strstr.c: Include <stddef.h>, for NULL.
44607 * lib/strcasestr.c: Likewise.
44608 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
44610 2005-08-31 Bruno Haible <bruno@clisp.org>
44612 * gnulib-tool: New option --macro-prefix.
44613 (func_import): Use macro_prefix.
44614 (import): Handle option --macro-prefix.
44616 2005-08-31 Bruno Haible <bruno@clisp.org>
44618 * gnulib-tool (import): Rename most ac_* variables to cached_*.
44619 Also use new variables cached_lgpl, cached_libtool.
44621 2005-08-31 Bruno Haible <bruno@clisp.org>
44623 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
44624 always instantiating them.
44626 2005-08-31 Bruno Haible <bruno@clisp.org>
44628 * gnulib-tool (func_import): Read the previous cached settings
44629 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
44630 earlier added by gnulib but are now dropped. Warn when a gnulib file
44631 overwrites a non-gnulib file.
44633 2005-08-31 Bruno Haible <bruno@clisp.org>
44635 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
44636 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
44637 projects that don't keep autogenerated files in CVS. Put into
44638 actioncmd only the specified modules, not the transitive closure.
44640 2005-08-31 Bruno Haible <bruno@clisp.org>
44642 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
44643 Create directories that shall be filled.
44644 (import): Don't look for gl_* macros in configure.ac. Recurse across
44645 all directories containing a gnulib-cache.m4 files, if meaningful.
44647 2005-08-31 Bruno Haible <bruno@clisp.org>
44649 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
44650 (import): Set seen_libtool when we see gl_LIBTOOL.
44652 2005-08-31 Bruno Haible <bruno@clisp.org>
44654 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
44655 declaration macro definitions from generated gnulib.m4.
44657 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
44659 * lib/iconvme.h: Add prototype for iconv_alloc.
44661 2005-08-29 Simon Josefsson <jas@extundo.com>
44663 * lib/iconvme.c: Fix errno.
44665 2005-08-29 Bruno Haible <bruno@clisp.org>
44667 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
44668 that it works when the directory contains spaces.
44670 2005-08-29 Bruno Haible <bruno@clisp.org>
44672 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
44674 2005-08-29 Bruno Haible <bruno@clisp.org>
44676 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
44679 2005-08-29 Bruno Haible <bruno@clisp.org>
44680 and Stepan Kasal <kasal@ucw.cz>
44682 * check-module: If more parameters are given, check each of them
44683 separately; add more exceptions, as noted by Jim Meyering.
44684 (check_module): New procedure.
44685 (%exempt_header): Now contains all exceptions.
44687 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
44689 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
44691 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
44693 * lib/iconvme.c: Split iconv_string into iconv_alloc.
44695 2005-08-28 Bruno Haible <bruno@clisp.org>
44697 * m4/gnulib-tool.m4: New file.
44699 2005-08-27 Jim Meyering <jim@meyering.net>
44701 * modules/unistd-safer (Files): Add pipe-safer.c.
44702 * modules/fcntl-safer (Files): Add creat-safer.c.
44704 2005-08-27 Jim Meyering <jim@meyering.net>
44706 * m4/stdlib-safer.m4: New file. From coreutils.
44707 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
44708 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
44709 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
44710 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
44711 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
44713 2005-08-27 Jim Meyering <jim@meyering.net>
44715 * lib/fopen-safer.c: Merge minor changes from coreutils.
44716 * lib/dup-safer.c: Likewise.
44717 * lib/fd-safer.c: Likewise.
44719 Merge from coreutils.
44720 * lib/stdio--.h: New file.
44721 * lib/stdlib--.h: New file.
44722 * lib/mkstemp-safer.c: New file.
44724 GNU tar needs these.
44725 * lib/pipe-safer.c: New file.
44726 * lib/creat-safer.c: New file.
44727 * lib/fcntl--.h (creat): Define to creat_safer.
44728 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
44729 * lib/unistd--.h (pipe): Define to pipe_safer.
44730 * lib/unistd-safer.h: Declare pipe_safer.
44732 2005-08-26 Simon Josefsson <jas@extundo.com>
44734 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
44735 Haible <bruno@clisp.org>.
44737 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
44739 * lib/regex_internal.h: Remove all references to
44740 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
44742 (bitset_not, bitset_merge, bitset_not_merge):
44743 (bitset_mask, re_string_allocate, re_string_construct):
44744 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
44745 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
44746 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
44747 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
44748 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
44749 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
44750 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
44751 (re_acquire_state_context):
44752 Remove unnecessary forward decls.
44753 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
44754 Put __attribute at function definition,
44755 now that the function decl has been removed.
44756 * lib/regex_internal.c (re_string_peek_byte_case):
44757 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
44760 2005-08-25 Stepan Kasal <kasal@ucw.cz>
44762 * m4/regex.m4: Add AC_PREREQ(2.50).
44763 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
44765 2005-08-25 Simon Josefsson <jas@extundo.com>
44767 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
44770 2005-08-25 Simon Josefsson <jas@extundo.com>
44772 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
44773 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
44774 GLIBC specific code.
44776 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44778 Make regex safe for g++. This fixes one real bug (an "err"
44779 that should have been "*err"). g++ problem reported by
44781 * lib/regex_internal.h (re_calloc): New macro, consistent with
44782 re_malloc etc. All callers of calloc changed to use re_calloc.
44783 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
44784 not int. All callers changed.
44785 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
44786 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
44787 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
44788 (find_recover_state): Change "err" to "*err"; this fixes what
44789 appears to be a real bug.
44790 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
44793 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44795 * modules/regex (Depends-on): Add malloc, since the code
44796 assumes that !malloc(0) means failure.
44798 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44800 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
44802 alloca modernization/simplification for regex.
44803 * lib/regex.c: Remove portability cruft for alloca. This no longer
44804 needs to be at the start of the file, and can be moved into
44805 regex_internal.h and simplified.
44806 * lib/regex_internal.h: Include <alloca.h>.
44807 (__libc_use_alloca) [!defined _LIBC]: New macro.
44808 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
44809 now works outside glibc.
44811 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
44813 * config/srclist.txt: Add glibc bugs 1241, 1245.
44815 2005-08-25 Jim Meyering <jim@meyering.net>
44817 * lib/open-safer.c: Include <config.h>.
44818 Otherwise, we'd lose LARGEFILE support in any file using
44821 2005-08-25 Bruno Haible <bruno@clisp.org>
44823 * m4/minmax.m4: Require autoconf 2.52.
44824 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
44825 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
44826 alternatives of translit over the alphabet.
44827 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
44829 2005-08-24 Simon Josefsson <jas@extundo.com>
44831 * tests/test-getpass.c: New file.
44833 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
44835 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
44836 for GNU regex features.
44838 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
44840 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
44841 * lib/regex.h (regerror): Likewise.
44843 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
44844 requires this. (The code never needed it.)
44846 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
44847 All uses of recently-renamed identifiers changed to use the new,
44848 POSIX-compliant names. The code will build and run just fine
44849 without these changes, but it's better to eat our own dog food
44850 and use the standard-conforming names.
44852 * lib/regex.h: Fix a multitude of POSIX name space violations.
44853 These changes have an effect only for programs that define
44854 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
44855 do not change anything for programs compiled in the normal way.
44856 Also, there is no effect on the ABI.
44858 (_REGEX_SOURCE): New macro.
44859 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
44860 defined and _GNU_SOURCE is not; this fixes a name space violation.
44862 Rename the following macros to obey POSIX requirements.
44863 The old names are still visible as macros if _REGEX_SOURCE is defined.
44864 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
44865 RE_BACKSLASH_ESCAPE_IN_LISTS.
44866 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
44867 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
44868 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
44869 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
44870 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
44871 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
44872 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
44873 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
44874 (REG_INTERVALS): renamed from RE_INTERVALS.
44875 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
44876 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
44877 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
44878 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
44879 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
44880 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
44881 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
44882 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
44883 RE_UNMATCHED_RIGHT_PAREN_ORD.
44884 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
44885 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
44886 (REG_DEBUG): renamed from RE_DEBUG.
44887 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
44888 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
44889 unusual, since we can't clash with the POSIX REG_ICASE.
44890 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
44891 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
44892 (REG_NO_SUB): renamed from RE_NO_SUB.
44893 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
44894 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
44895 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
44896 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
44897 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
44898 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
44899 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
44900 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
44901 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
44902 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
44903 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
44904 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
44905 RE_SYNTAX_POSIX_MINIMAL_BASIC.
44906 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
44907 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
44908 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
44909 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
44910 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
44911 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
44912 (REG_FIXED): Renamed from REGS_FIXED.
44913 (REG_NREGS): Renamed from RE_NREGS.
44915 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
44916 of other REG_* macros, since POSIX says the user is allowed to
44917 #undef these macros selectively.
44919 (reg_errcode_t): Update comment stating what other tables need
44922 Rename the following enum values to obey POSIX requirements.
44923 The old names are still visible as macros.
44924 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
44925 is not defined, since GNU is supposed to be a superset of POSIX as
44926 much as possible, and since we want reg_errcode_t to be a signed
44927 type for implementation consistency.
44928 (_REG_NOERROR): Renamed from REG_NOERROR.
44929 (_REG_NOMATCH): Renamed from REG_NOMATCH.
44930 (_REG_BADPAT): Renamed from REG_BADPAT.
44931 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
44932 (_REG_ECTYPE): Renamed from REG_ECTYPE.
44933 (_REG_EESCAPE): Renamed from REG_EESCAPE.
44934 (_REG_ESUBREG): Renamed from REG_ESUBREG.
44935 (_REG_EBRACK): Renamed from REG_EBRACK.
44936 (_REG_EPAREN): Renamed from REG_EPAREN.
44937 (_REG_EBRACE): Renamed from REG_EBRACE.
44938 (_REG_BADBR): Renamed from REG_BADBR.
44939 (_REG_ERANGE): Renamed from REG_ERANGE.
44940 (_REG_ESPACE): Renamed from REG_ESPACE.
44941 (_REG_BADRPT): Renamed from REG_BADRPT.
44942 (_REG_EEND): Renamed from REG_EEND.
44943 (_REG_ESIZE): Renamed from REG_ESIZE.
44944 (_REG_ERPAREN): Renamed from REG_ERPAREN.
44945 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
44946 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
44947 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
44948 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
44950 (_REG_RE_NAME, _REG_RM_NAME): New macros.
44951 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
44952 changed. But support the old name if the new one is not defined
44953 and if _REGEX_SOURCE.
44955 Change the following member names in struct re_pattern_buffer.
44956 The old names are still supported if !_REGEX_SOURCE.
44957 The new names are always supported, regardless of _REGEX_SOURCE.
44958 (re_buffer): Renamed from buffer.
44959 (re_allocated): Renamed from allocated.
44960 (re_used): Renamed from used.
44961 (re_syntax): Renamed from syntax.
44962 (re_fastmap): Renamed from fastmap.
44963 (re_translate): Renamed from translate.
44964 (re_can_be_null): Renamed from can_be_null.
44965 (re_regs_allocated): Renamed from regs_allocated.
44966 (re_fastmap_accurate): Renamed from fastmap_accurate.
44967 (re_no_sub): Renamed from no_sub.
44968 (re_not_bol): Renamed from not_bol.
44969 (re_not_eol): Renamed from not_eol.
44970 (re_newline_anchor): Renamed from newline_anchor.
44972 Change the following member names in struct re_registers.
44973 The old names are still supported if !_REGEX_SOURCE.
44974 The new names are always supported, regardless of _REGEX_SOURCE.
44975 (rm_num_regs): Renamed from num_regs.
44976 (rm_start): Renamed from start.
44977 (rm_end): Renamed from end.
44979 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
44980 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
44981 Prepend __ to parameter names.
44983 Undo yesterday's changes.
44985 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
44987 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
44988 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
44991 2005-08-24 Jim Meyering <jim@meyering.net>
44993 Sync from coreutils.
44994 * m4/fcntl-safer.m4: New file.
44996 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
44997 and object files for this module.
44999 2005-08-24 Jim Meyering <jim@meyering.net>
45001 Sync from coreutils.
45002 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
45004 2005-08-24 Jim Meyering <jim@meyering.net>
45006 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
45007 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
45009 2005-08-24 Jim Meyering <jim@meyering.net>
45011 * modules/fcntl-safer: New module.
45012 * modules/fts (Depends-on): Add fcntl-safer.
45013 * MODULES.html.sh (File descriptor based Input/Output):
45016 2005-08-24 Bruno Haible <bruno@clisp.org>
45018 Support for unit test modules.
45019 * modules/README: Mention tests modules.
45020 * modules/TEMPLATE-TESTS: New file.
45021 * gnulib-tool: New options --extract-tests-module, --with-tests and
45022 --tests-base (unused for the moment).
45023 (testsbase, inctests): New variables.
45024 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
45025 (func_verify_module): Exclude TEMPLATE-TESTS.
45026 (func_verify_nontests_module, func_verify_tests_module): New functions.
45027 (func_get_dependencies): Add implicit dependency for tests modules.
45028 (func_get_tests_module): New function.
45029 (func_modules_transitive_closure): When --with-tests was specified,
45030 include the unit tests as well, unless explicitly avoided.
45031 (func_emit_lib_Makefile_am): Ignore the tests modules here.
45032 (func_emit_tests_Makefile_am): New function.
45033 (func_create_testdir): When --with-tests was specified, emit a
45035 * MODULES.html.sh (Future developments): Update.
45037 2005-08-24 Bruno Haible <bruno@clisp.org>
45039 * modules/tls-tests: New file.
45040 * tests/test-tls.c: New file, from GNU gettext.
45042 2005-08-24 Bruno Haible <bruno@clisp.org>
45044 * modules/lock-tests: New file.
45045 * tests/test-lock.c: New file, from GNU gettext.
45047 2005-08-24 Bruno Haible <bruno@clisp.org>
45049 * lib/lock.h: Add multiple inclusion guard.
45050 * lib/tls.h: Add multiple inclusion guard.
45052 2005-08-24 Bruno Haible <bruno@clisp.org>
45054 * gnulib-tool: Add support for the --aux-dir option to
45055 --create-testdir, --create-megatestdir, --test, --megatest.
45056 (func_create_testdir, func_create_megatestdir): Optionally emit a
45057 AC_CONFIG_AUX_DIR directive.
45058 (create-testdir, create-megatestdir, test, megatest): Provide a
45059 default value for $auxdir.
45061 2005-08-24 Bruno Haible <bruno@clisp.org>
45063 * gnulib-tool (import): Use compound statement instead of subshell
45066 2005-08-24 Bruno Haible <bruno@clisp.org>
45068 * gnulib-tool (import): Change --aux-dir default to "build-aux".
45070 2005-08-24 Bruno Haible <bruno@clisp.org>
45072 * gnulib-tool (func_version): Update.
45074 2005-08-24 Bruno Haible <bruno@clisp.org>
45076 * gnulib-tool (func_import, func_create_testdir,
45077 func_create_megatestdir): Quote all autoconf macro arguments.
45079 2005-08-24 Bruno Haible <bruno@clisp.org>
45081 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
45082 option --force, because --force causes the aclocal.m4 of each
45083 subdirectory to be newer than the corresponding config.h.in.
45085 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
45087 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
45088 All contents moved to gl_REGEX.
45089 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
45090 assume that it does.
45092 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
45094 * lib/regex.h (REG_NOSYS)
45095 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
45096 Define, since POSIX requires it as of 2001.
45098 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
45099 New private symbol, used to keep the enum signed in all cases.
45100 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
45102 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
45104 * lib/regex_internal.c (re_string_skip_chars, register_state):
45106 Remove forward decls; no longer needed now that we use prototypes.
45107 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
45108 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
45109 (clean_state_log_if_needed): Likewise.
45111 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
45113 * config/srclist.txt: Add glibc bugs 1231-1233.
45115 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
45117 Fix problems reported by Sam Steingold in
45118 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
45119 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
45120 assumed that reg_errcode_t is a signed type, which is not
45121 necessarily true if _XOPEN_SOURCE is not defined.
45122 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
45123 since some compilers warn about it otherwise.
45125 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
45127 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
45128 (init_word_char, create_initial_state, duplicate_node_closure):
45129 (fetch_token, peek_token_bracket, build_range_exp):
45130 (build_collating_symbol): Remove forward decls; no longer needed
45131 now that we use prototypes.
45134 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
45135 (re_compile_fastmap_iter, regcomp, regerror, regfree):
45136 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
45137 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
45138 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
45139 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
45140 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
45141 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
45142 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
45143 (build_range_exp, build_collating_symbol, parse_bracket_exp):
45144 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
45145 (build_charclass, build_charclass_op, fetch_number, create_tree):
45146 (create_token_tree, mark_opt_subexp, duplicate_tree):
45147 Use prototypes rather than old-style definitions.
45149 * lib/regex_internal.c:
45150 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
45151 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
45152 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
45153 (re_string_reconstruct, re_string_peek_byte_case):
45154 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
45155 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
45156 (re_node_set_init_copy, re_node_set_add_intersect):
45157 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
45158 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
45159 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
45160 (re_acquire_state, re_acquire_state_context, register_state):
45161 (create_ci_newstate, create_cd_newstate, free_state):
45163 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
45165 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
45166 (re_search_internal, prune_impossible_nodes):
45167 (acquire_init_state_context, check_matching, static):
45168 (check_halt_node_context, check_halt_state_context, proceed_next_node):
45169 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
45170 (update_regs, sift_states_backward, build_sifted_states):
45171 (clean_state_log_if_needed, merge_state_array):
45172 (update_cur_sifted_state, add_epsilon_src_nodes):
45173 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
45174 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
45175 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
45176 (find_recover_state, check_subexp_matching_top, transit_state_mb):
45177 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
45178 (check_arrival, check_arrival_add_next_nodes):
45179 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
45180 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
45181 (check_node_accept_bytes, check_node_accept, extend_buffers):
45182 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
45183 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
45187 * lib/regex_internal.h:
45188 (re_string_allocate, re_string_construct, re_string_reconstruct):
45189 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
45190 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
45191 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
45192 (re_string_context_at, re_string_peek_byte_case):
45193 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
45194 is defined, since we now use prototypes always.
45196 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
45197 C89 or better. All uses removed.
45199 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
45201 * config/srclist.txt: Add glibc bugs 1220-1227.
45203 2005-08-20 Jim Meyering <jim@meyering.net>
45205 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
45206 of unused local, dfa.
45208 2005-08-20 Bruno Haible <bruno@clisp.org>
45210 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
45212 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
45214 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
45215 (re_node_set_insert_last, re_dfa_add_node):
45216 Rename local variables to avoid GCC shadowing warnings.
45218 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
45220 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
45221 [defined lint]: Suppress bogus uninitialized-variable warnings.
45223 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
45224 and let the caller return REG_ESPACE if out of space. This
45225 removes an uninitialied-variable warning with GCC 4.0.1, and also
45226 avoids taking the address of a local variable. All callers
45229 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
45231 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
45232 $LIBCSRC/posix/regexec.c.
45233 Add glibc bug 1217 for regcomp.c.
45235 2005-08-19 Jim Meyering <jim@meyering.net>
45237 * lib/regexec.c (proceed_next_node): Redo local variables to
45238 avoid GCC shadowing warnings.
45240 2005-08-18 Bruno Haible <bruno@clisp.org>
45242 * lib/strstr.c (strstr): Fix return value in multibyte case.
45243 * lib/strcasestr.c (strcasestr): Likewise.
45245 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
45247 * lib/regex.h: Remove useless space-before-tab. From coreutils.
45249 2005-08-17 Jim Meyering <jim@meyering.net>
45251 Make the %s format (seconds since the epoch) work for a negative
45252 number and when used with a zero-padded field width, e.g. %015s.
45254 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
45255 label so that it precedes the code to set `digits'. Otherwise,
45256 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
45257 print `00-22'. Now, it prints `-0022', as it should.
45259 2005-08-17 Bruno Haible <bruno@clisp.org>
45261 * modules/strstr (Files): Add m4/mbrtowc.m4.
45262 (Depends-on): Add mbuiter.
45264 2005-08-17 Bruno Haible <bruno@clisp.org>
45266 * modules/strcasestr: New file.
45267 * MODULES.html.sh (String handling, based on ANSI C 89): Add
45270 2005-08-17 Bruno Haible <bruno@clisp.org>
45272 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
45274 2005-08-17 Bruno Haible <bruno@clisp.org>
45276 * modules/mbuiter: New file.
45277 * MODULES.html.sh (Extended multibyte and wide character utilities):
45280 2005-08-17 Bruno Haible <bruno@clisp.org>
45282 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
45283 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
45285 2005-08-17 Bruno Haible <bruno@clisp.org>
45287 * m4/strcasestr.m4: New file.
45289 2005-08-17 Bruno Haible <bruno@clisp.org>
45291 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
45292 * lib/strstr.c: Completely rewritten, with multibyte locale support.
45294 2005-08-17 Bruno Haible <bruno@clisp.org>
45296 * lib/strcasestr.h: New file.
45297 * lib/strcasestr.c: New file.
45299 2005-08-17 Bruno Haible <bruno@clisp.org>
45301 * lib/strcasecmp.c: Use mbuiter.h.
45303 2005-08-17 Bruno Haible <bruno@clisp.org>
45305 * lib/mbuiter.h: New file.
45307 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
45309 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
45310 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
45311 and gl_GETOPT are both invoked via different paths (as happens
45312 with GNU tar CVS because it uses both argp and getopt), the former
45315 2005-08-16 Bruno Haible <bruno@clisp.org>
45317 * modules/tls: New file.
45318 * MODULES.html.sh (Multithreading): Add tls.
45320 2005-08-16 Bruno Haible <bruno@clisp.org>
45322 * modules/strnlen1: New file.
45323 * MODULES.html.sh (String handling): Add strnlen1.
45325 2005-08-16 Bruno Haible <bruno@clisp.org>
45327 * modules/strcase (Files): Add m4/mbrtowc.m4.
45328 (Depends-on): Add strnlen1, mbchar.
45330 2005-08-16 Bruno Haible <bruno@clisp.org>
45332 * modules/mbiter: New file.
45333 * MODULES.html.sh (Extended multibyte and wide character utilities):
45336 2005-08-16 Bruno Haible <bruno@clisp.org>
45338 * modules/mbfile: New file.
45339 * MODULES.html.sh (Extended multibyte and wide character utilities):
45342 2005-08-16 Bruno Haible <bruno@clisp.org>
45344 * modules/mbchar: New file.
45345 * MODULES.html.sh (Extended multibyte and wide character utilities):
45348 2005-08-16 Bruno Haible <bruno@clisp.org>
45350 * m4/tls.m4: New file, from GNU gettext.
45352 2005-08-16 Bruno Haible <bruno@clisp.org>
45354 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
45356 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
45358 2005-08-16 Bruno Haible <bruno@clisp.org>
45360 * m4/mbiter.m4: New file.
45362 2005-08-16 Bruno Haible <bruno@clisp.org>
45364 * m4/mbfile.m4: New file.
45366 2005-08-16 Bruno Haible <bruno@clisp.org>
45368 * m4/mbchar.m4: New file.
45370 2005-08-16 Bruno Haible <bruno@clisp.org>
45372 * lib/tls.h: New file, from GNU gettext.
45373 * lib/tls.c: New file, from GNU gettext.
45375 2005-08-16 Bruno Haible <bruno@clisp.org>
45377 * lib/strnlen1.h: New file.
45378 * lib/strnlen1.c: New file.
45380 2005-08-16 Bruno Haible <bruno@clisp.org>
45382 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
45383 (mbi_init): Update.
45384 (mbi_avail, mbi_advance): Let the iteration end before the terminating
45385 NUL byte, not after it.
45387 2005-08-16 Bruno Haible <bruno@clisp.org>
45389 * lib/strcase.h (strcasecmp): Add note in comments.
45390 * lib/strncasecmp.c: Use code from strcasecmp.c.
45391 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
45392 (strcasecmp): Work correctly in multibyte locales.
45394 2005-08-16 Bruno Haible <bruno@clisp.org>
45396 * lib/mbiter.h: New file.
45398 2005-08-16 Bruno Haible <bruno@clisp.org>
45400 * lib/mbfile.h: New file.
45402 2005-08-16 Bruno Haible <bruno@clisp.org>
45404 * lib/mbchar.h: New file.
45405 * lib/mbchar.c: New file.
45407 2005-08-16 Bruno Haible <bruno@clisp.org>
45409 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
45410 the valid ones. Makes the comparison operations transitive:
45411 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
45412 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
45414 2005-08-15 Simon Josefsson <jas@extundo.com>
45416 * modules/ssize_t (License): Change to 'unlimited'.
45418 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
45420 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
45422 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
45423 Add comments for each pending glibc patch.
45425 2005-08-15 Bruno Haible <bruno@clisp.org>
45427 * lib/regex.h (__restrict_arr): Don't define to __restrict if
45428 __cplusplus is defined.
45430 2005-08-14 Jim Meyering <jim@meyering.net>
45432 Sync from coreutils.
45434 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
45435 Use the hash-table-based cycle-detection code not just when
45436 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
45437 Reported by James Youngman in
45438 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
45439 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
45440 FTS_TIGHT_CYCLE_CHECK.
45441 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
45442 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
45444 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
45445 * lib/fts.c (fd_safer): Remove decl.
45446 Include fcntl--.h rather than unistd-safer.h
45447 (fts_safe_changedir): Don't call fd_safer; no longer needed
45448 now that we include fcntl--.h.
45450 2005-08-12 Simon Josefsson <jas@extundo.com>
45452 * modules/getndelim2: Use ssize_t module.
45453 * modules/getnline: Likewise.
45454 * modules/safe-read: Likewise.
45455 * modules/xreadlink: Likewise.
45457 * modules/ssize_t: New file.
45459 2005-08-12 Simon Josefsson <jas@extundo.com>
45461 * m4/readline.m4: Look for termcap, curses or ncurses if required.
45463 2005-08-12 Simon Josefsson <jas@extundo.com>
45465 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45468 2005-08-12 Simon Josefsson <jas@extundo.com>
45470 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
45471 readline, getdelim and check_version.
45472 (Support for systems lacking ISO C 99: Sizes of integer types):
45475 2005-08-12 Bruno Haible <bruno@clisp.org>
45477 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
45479 2005-08-11 Simon Josefsson <jas@extundo.com>
45481 * modules/readline: New file.
45483 * modules/strnlen (Files): Add strnlen.h.
45485 2005-08-11 Simon Josefsson <jas@extundo.com>
45487 * m4/readline.m4: New file.
45489 2005-08-11 Simon Josefsson <jas@extundo.com>
45491 * lib/readline.h, readline.c: New file.
45493 2005-08-11 Simon Josefsson <jas@extundo.com>
45495 * doc/gnulib.texi (Initial import, Finishing touches): Mention
45498 2005-08-11 Bruno Haible <bruno@clisp.org>
45500 * lib/strnlen.h (strnlen): Change parameter name to match comment.
45502 2005-08-10 Stepan Kasal <kasal@ucw.cz>
45504 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
45506 2005-08-10 Simon Josefsson <jas@extundo.com>
45508 * tests/test-iconvme.c: New file.
45510 2005-08-10 Simon Josefsson <jas@extundo.com>
45512 * m4/strnlen.m4: New file.
45514 * m4/strndup.m4: Don't check for strnlen declaration, done in
45517 2005-08-10 Simon Josefsson <jas@extundo.com>
45519 * lib/strndup.c: Use strnlen.h.
45521 * lib/strnlen.h: New file.
45523 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45527 2005-08-02 Simon Josefsson <jas@extundo.com>
45529 * modules/readline: New file.
45531 2005-08-02 Simon Josefsson <jas@extundo.com>
45533 * modules/getdelim: New file.
45535 * modules/getline: Rewrite, don't use getndelim2.
45537 2005-08-02 Simon Josefsson <jas@extundo.com>
45539 * m4/getline.m4: Separate out getdelim stuff into separate module.
45541 * m4/getdelim.m4: New file.
45543 2005-08-02 Simon Josefsson <jas@extundo.com>
45545 * lib/getline.h, getline.c: Rewrite.
45547 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
45549 2005-07-31 Bruno Haible <bruno@clisp.org>
45551 * lib/lock.h (gl_lock_initializer): New macro.
45552 (gl_lock_define_initialized): Use it.
45553 (gl_rwlock_initializer): New macro.
45554 (gl_rwlock_define_initialized): Use it.
45555 (gl_recursive_lock_initializer): New macro.
45556 (gl_recursive_lock_define_initialized): Use it.
45558 2005-07-30 Karl Berry <karl@gnu.org>
45560 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
45561 Report from Ben Pfaff, regarding getopt.
45563 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
45565 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
45567 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
45568 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
45569 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
45570 (gl_GETOPT): Use the new macros. Most of the implementation
45571 is moved to the new macros. This is for programs like Emacs
45572 that don't want all the functionality of gl_GETOPT.
45574 2005-07-26 Bruno Haible <bruno@clisp.org>
45576 * m4/lock.m4: Update from GNU gettext.
45578 2005-07-26 Bruno Haible <bruno@clisp.org>
45580 * lib/lock.h: Update from GNU gettext.
45581 * lib/lock.c: Update from GNU gettext.
45583 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
45585 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
45586 obsolescent AC_TRY_RUN. Include the default includes files, for
45589 2005-07-24 Bruno Haible <bruno@clisp.org>
45591 * modules/visibility: New file.
45592 * MODULES.html.sh (Misc): Add visibility.
45594 2005-07-24 Bruno Haible <bruno@clisp.org>
45596 * m4/visibility.m4: New file.
45598 2005-07-24 Bruno Haible <bruno@clisp.org>
45600 * doc/visibility.texi: New file.
45602 2005-07-22 Bruno Haible <bruno@clisp.org>
45604 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
45605 $(ALLOCA_H), redundant through BUILT_SOURCES.
45606 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
45607 redundant through BUILT_SOURCES.
45608 * modules/byteswap (Makefile.am): Remove explicit dependency on
45609 $(BYTESWAP_H), redundant through BUILT_SOURCES.
45610 * modules/fnmatch (Makefile.am): Remove explicit dependency on
45611 $(FNMATCH_H), redundant through BUILT_SOURCES.
45612 * modules/getopt (Makefile.am): Remove explicit dependency on
45613 $(GETOPT_H), redundant through BUILT_SOURCES.
45614 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
45615 redundant through BUILT_SOURCES.
45616 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
45617 redundant through BUILT_SOURCES.
45618 * modules/stdbool (Makefile.am): Remove explicit dependency on
45619 $(STDBOOL_H), redundant through BUILT_SOURCES.
45620 * modules/stdint (Makefile.am): Remove explicit dependency on
45621 $(STDINT_H), redundant through BUILT_SOURCES.
45622 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
45623 Remove explicit dependency on $(SYSEXITS_H).
45624 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
45626 2005-07-18 Simon Josefsson <jas@extundo.com>
45628 * lib/check-version.c (check_version): Accept identical versions too.
45630 2005-07-18 Bruno Haible <bruno@clisp.org>
45632 * modules/lock: New file.
45633 * MODULES.html.sh (Multithreading): New section.
45635 2005-07-18 Bruno Haible <bruno@clisp.org>
45637 * m4/lock.m4: New file, from GNU gettext.
45639 2005-07-18 Bruno Haible <bruno@clisp.org>
45641 * lib/lock.h: New file, from GNU gettext.
45642 * lib/lock.c: New file, from GNU gettext.
45644 2005-07-18 Bruno Haible <bruno@clisp.org>
45646 * lib/lock.h (gl_once_t): New type.
45647 (gl_once_define, gl_once): New macros.
45648 * lib/lock.c (fresh_once): New variable.
45649 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
45652 2005-07-16 Simon Josefsson <jas@extundo.com>
45654 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
45655 workaround, suggested by Bruno.
45657 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
45659 * modules/xalloc (Depends-on): Add xalloc-die.
45660 * modules/xvasprintf (Depends-on): Add xalloc-die.
45662 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
45664 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
45665 with a minor change.
45667 2005-07-15 Bruno Haible <bruno@clisp.org>
45669 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
45670 When using lib/poll.c, define poll as rpl_poll.
45672 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
45674 * modules/argp (Depends-on): Remove unlocked-io.
45676 2005-07-14 Derek Price <derek@ximbiot.com>
45678 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
45679 for glob symlink bug.
45681 2005-07-14 Bruno Haible <bruno@clisp.org>
45683 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
45684 Instead, test for *_unlocked function declarations directly.
45686 2005-07-11 Simon Josefsson <jas@extundo.com>
45688 * modules/size_max: New file.
45690 * modules/xsize: Depend on size_max module for size_max.m4.
45692 2005-07-11 Simon Josefsson <jas@extundo.com>
45694 * lib/size_max.h: New file.
45696 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
45698 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
45699 copyright symbol and the year.
45700 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
45701 (version_etc_va): Use parameterized copyright notice.
45702 Reword to conform to the current GNU coding standards.
45704 2005-07-11 Karl Berry <karl@gnu.org>
45706 * doc/gnulib.texi (Quoting): new node.
45707 (Initial import): more info, from Patrice.
45709 2005-07-11 Bruno Haible <bruno@clisp.org>
45711 * gnulib-tool (func_usage): Document option --avoid.
45712 (Command line options): Handle --avoid.
45713 (func_acceptable): New function.
45714 (func_modules_transitive_closure): Use it.
45716 2005-07-11 Bruno Haible <bruno@clisp.org>
45718 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
45719 Reported by Jim Meyering.
45721 2005-07-10 Bruno Haible <bruno@clisp.org>
45723 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
45724 Needed when size_t is smaller than 'unsigned int'.
45725 Reported by Paul Eggert.
45727 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
45729 * modules/argp (Depends-on): Add unlocked-io
45731 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
45733 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
45736 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
45738 * config/srclist.txt: Comment out regcomp.c, since we have a porting
45741 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
45742 and Paul Eggert <eggert@cs.ucla.edu>
45744 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
45745 in wint_t, not wchar_t. Remove now-unnecessary cast.
45747 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45749 * modules/regex (Files): Add lib/regex_internal.c,
45750 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
45751 (Depends-on): Add extensions.
45752 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
45754 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45756 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
45758 * m4/same.m4 (gl_SAME): Likewise.
45759 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
45761 * m4/regex.m4: Adjust to new libc regex implementation.
45762 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
45763 all the .c and .h parts of (the new) regex.
45764 Quote the m4 stuff better.
45765 Check for RE_ICASE bug of old gnulib.
45766 Check for REG_STARTEND of recent libc.
45767 Rename local variables from jm_* to gl_*.
45768 Quote operand of "test -f".
45769 Say "recent enough" version of libc, not "version 2".
45770 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
45771 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
45772 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
45773 Remove check for btowc, isascii.
45774 Require AM_LANGINFO_CODESET.
45776 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45778 * lib/regex.c, regex.h: Sync from libc.
45779 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
45781 New files, synced from libc, except that regex_internal.h
45782 currently has a small porting fix.
45784 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
45786 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
45787 regex_internal.c, regexec.c.
45788 Add regex_internal.h too, but as a comment, since the libc version
45789 is currently broken in gnulib mode.
45791 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
45793 Support programs like Emacs that use gnulib but not gettext.
45794 * MODULES.html.sh (Internationalization functions): Add gettext-h.
45795 * modules/gettext-h: New file.
45796 * modules/gettext (Files): Remove lib/gettext.h.
45797 (Depends-on): Add gettext-h.
45798 (Makefile.am): Remove lib_SOURCES.
45799 * modules/argmatch, modules/c-stack, modules/closeout:
45800 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
45801 * modules/execute, modules/file-type, modules/getaddrinfo:
45802 * modules/getopt, modules/human, modules/javacomp:
45803 * modules/javaexec, modules/mkdir-p, modules/obstack:
45804 * modules/openat, modules/pagealign_alloc, modules/pipe:
45805 * modules/quotearg, modules/regex, modules/rpmatch:
45806 * modules/unicodeio, modules/userspec, modules/version-etc:
45807 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
45809 Depend on gettext-h, not gettext.
45811 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
45813 * gnulib-tool (func_import): Add support for 'public domain' license.
45814 * modules/alloca, modules/atexit, modules/memmove:
45815 Now public domain, not GPL.
45816 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
45817 * modules/realloc, modules/strerror, modules/strtod:
45820 2005-07-05 Bruno Haible <bruno@clisp.org>
45822 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
45823 autoconf CVS. Needed for mingw.
45825 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
45827 Remove the dependency of the strftime module on the tzset module.
45828 * modules/strftime (Depends-on): Remove dependency on tzset.
45830 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
45832 Remove the dependency of the strftime module on the tzset module.
45833 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
45834 gl_FUNC_TZSET_CLOBBER.
45836 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
45838 Remove the dependency of the strftime module on the tzset module.
45839 * lib/strftime.c (my_strftime)
45840 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
45841 Copy the input structure, to work around some of the bug with
45842 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
45843 Solaris releases, you should also use the tzset module, but we won't
45844 require it as a dependency any more since we don't want LGPLed code
45845 to depend on GPLed code.
45847 2005-07-02 Jim Meyering <jim@meyering.net>
45849 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
45850 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
45851 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
45852 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
45854 2005-07-02 Jim Meyering <jim@meyering.net>
45856 * lib/backupfile.c (backup_args): Change a `0' to NULL.
45858 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
45860 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
45861 declares only 'struct timespec;' (!).
45863 2005-07-01 Jim Meyering <jim@meyering.net>
45865 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
45866 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
45867 * lib/save-cwd.c, tempname.c:
45868 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
45869 and don't include <sys/file.h>).
45871 2005-06-29 Jim Meyering <jim@meyering.net>
45873 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
45874 type name. Use the variable name instead.
45875 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
45878 2005-06-28 Simon Josefsson <jas@extundo.com>
45880 * modules/check-version (Files): Add check-version.m4.
45882 2005-06-28 Simon Josefsson <jas@extundo.com>
45884 * m4/check-version.m4: New file, suggested by Jim Meyering
45885 <jim@meyering.net>.
45887 2005-06-28 Simon Josefsson <jas@extundo.com>
45889 * lib/check-version.h, lib/check-version.c: New files.
45891 2005-06-28 Simon Josefsson <jas@extundo.com>
45893 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
45894 collision with global variable. Better indentation. Don't
45895 increment buffer pointer beyond buffer end. Based on comments
45896 from Paul Eggert <eggert@cs.ucla.edu>.
45898 * lib/base64.h: Indent.
45900 2005-06-28 Simon Josefsson <jas@extundo.com>
45902 * doc/gnulib.texi (Library version handling): New section.
45904 2005-06-28 Jim Meyering <jim@meyering.net>
45906 * check-module (find_included_lib_files): Hard-code another
45907 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
45908 but modules/fts-lgpl (correctly) does not list those files.
45910 * modules/canonicalize (Files): Add lib/pathmax.h.
45912 2005-06-25 Simon Josefsson <jas@extundo.com>
45914 * modules/check-version: New file.
45916 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
45918 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
45919 initializer of struct addrinfo, as an indication that we don't
45920 care how many members the structure has.
45922 2005-06-24 Derek Price <derek@ximbiot.com>
45923 and Bruno Haible <bruno@clisp.org>
45925 Remove stat module & update lstat.
45926 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
45927 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45928 * m4/stat.m4: Remove this file.
45930 2005-06-24 Derek Price <derek@ximbiot.com>
45931 and Bruno Haible <bruno@clisp.org>
45933 Remove stat module & update lstat.
45934 * lib/stat.c: Remove this file...
45935 (slash_aware_lstat): ...moving this content and its support...
45936 * lib/lstat.c (rpl_lstat): ...into here.
45937 * lib/lstat.h: New file.
45939 2005-06-24 Derek Price <derek@ximbiot.com>
45940 and Bruno Haible <bruno@clisp.org>
45942 Remove stat module & update lstat.
45943 * config/srclist.txt (libc sources): Remove stat.
45945 2005-06-24 Derek Price <derek@ximbiot.com>
45946 and Bruno Haible <bruno@clisp.org>
45948 Remove stat module & update lstat.
45949 * MODULES.html.sh (stat): Remove.
45950 * MODULES.html: Regenerated.
45951 * modules/lstat (Description): Correct function name.
45952 (Files): Add "lstat.h".
45953 (Depends-on): Remove stat, add xalloc, stat-macros.
45954 * modules/stat: Remove this file.
45955 (Include): Add "lstat.h", remove <sys/stat.h>.
45957 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
45959 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
45960 (ranged_convert): Don't save conversion in a temporary struct.
45961 This causes a warning with GCC 4.0.0, and anyway in the typical
45962 case it's not worth the extra 100 bytes or so of code.
45963 (ranged_convert, __mktime_internal): When calling a function via a
45964 pointer P, use P () rather than (*P) (), as we now assume C89 or
45967 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
45969 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
45970 "who -r" failed to give output. Problem reported by Tim Waugh.
45972 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
45973 (xcalloc): Use it to avoid needless tests.
45974 Problem reported by Jim Meyering.
45976 2005-06-20 Derek Price <derek@ximbiot.com>
45978 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
45979 unnecessary for Autoconfs > 2.59c.
45981 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
45983 * lib/argp.h (__option_is_short): Check upper limit of
45984 __key. Isprint() requires its argument to have the value
45985 of an unsigned char or EOF.
45987 2005-06-16 Jim Meyering <jim@meyering.net>
45989 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
45990 when either N or S is zero.
45992 2005-06-16 Derek Price <derek@ximbiot.com>
45994 * m4/bison.m4: Declare YACC & YFLAGS precious.
45996 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
45998 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
45999 multibyte string or pattern, fall back on unibyte matching.
46000 Problem reported by James Youngman.
46002 2005-06-08 Bruno Haible <bruno@clisp.org>
46004 * modules/csharpcomp: New file.
46005 * MODULES.html.sh (C#): Add csharpcomp.
46007 2005-06-08 Bruno Haible <bruno@clisp.org>
46009 * m4/csharpcomp.m4: New file, from GNU gettext.
46011 2005-06-08 Bruno Haible <bruno@clisp.org>
46013 * lib/csharpcomp.h: New file, from GNU gettext.
46014 * lib/csharpcomp.c: New file, from GNU gettext.
46015 * lib/csharpcomp.sh.in: New file, from GNU gettext.
46017 2005-06-08 Bruno Haible <bruno@clisp.org>
46019 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
46022 2005-06-07 Derek Price <derek@ximbiot.com>
46025 * lib/glob_.h: Indent nested #ifdef.
46027 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
46029 Sync from coreutils.
46030 Use "file name" when talking about file names, instead of "filename"
46031 or "path", as per the GNU coding standards.
46032 * lib/mkdir-p.c: Renamed from makepath.c.
46033 (make_dir_parents): Renamed from make_path. All callers changed.
46034 * lib/mkdir-p.h: Likewise. All includers changed.
46035 * lib/filenamecat.c: Renamed from path-concat.c.
46036 (file_name_concat): Renamed from path_concat. All callers changed.
46037 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
46038 * lib/filenamecat.h: Likewise. All includers changed.
46039 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
46040 in comments or local variable names.
46041 * lib/basename.c: Likewise.
46042 * lib/canonicalize.c, canonicalize.h: Likewise.
46043 * lib/dirname.c, dirname.h: Likewise.
46044 * lib/euidaccess.c: Likewise.
46045 * lib/exclude.c: Likewise
46046 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
46047 * lib/fsusage.c, fsuage.h: Likewise.
46048 * lib/fts.c, fts_.h: Likewise.
46049 * lib/getcwd.c: Likewise.
46050 * lib/getloadavg.c: Likewise.
46051 * lib/mkstemp.c: Likewise.
46052 * lib/mountlist.c, mountlist.h: Likewise.
46053 * lib/openat.c, openat.h: Likewise.
46054 * lib/readlink-stub.c: Likewise.
46055 * lib/readutmp.c, readutmp.h: Likewise.
46056 * lib/rename.c: Likewise.
46057 * lib/rmdir.c: Likewise.
46058 * lib/same.c: Likewise.
46059 * lib/savedir.c: Likewise.
46060 * lib/stripslash.c: Likewise.
46061 * lib/tempname.c: Likewise.
46062 * lib/xreadlink.c: Likewise.
46063 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
46065 * lib/exclude.h: Likewise.
46067 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
46068 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
46069 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
46070 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
46071 * lib/pathmax.h: Include <limits.h> unconditionally, since other
46072 files have been getting away with it for years (MORE/BSD 4.3
46074 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
46075 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
46077 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
46078 Define to 256, not 255, as per modern POSIX.
46080 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
46082 Sync from coreutils.
46083 Use "file name" when talking about file names, instead of "filename"
46084 or "path", as per the GNU coding standards.
46085 * MODULES.html.sh: mkdir-p renamed from makepath.
46086 filenamecat renamed from path-concat.
46087 * modules/filenamecat: Renamed from modules/path-concat.
46088 (Files): filenamecat.h and filenamecat.c renamed from
46089 path-concat.h and path-concat.c.
46090 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
46091 (Include): filenamecat.h, not path-concat.h.
46092 * modules/mkdir-p: Renamed from modules/makepath.
46093 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
46095 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
46096 (Include): mkdir-p.h, not makepath.h.
46098 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
46100 Sync from coreutils.
46101 * m4/mkdir-p.m4: Renamed from makepath.m4.
46102 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
46103 Rename files from makepath.c to mkdir-p.c, and from
46104 makepath.h to mkdir-p.h.
46105 * m4/filenamecat.m4: Renamed from path-concat.m4.
46106 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
46107 Rename files from path-concat.c to filenamecat.c,
46108 and from path-concat.h to filenamecat.h.
46109 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
46110 "file name" in local variables or comments.
46111 * m4/rename.m4: Likewise.
46113 2005-06-01 Bruno Haible <bruno@clisp.org>
46115 * modules/csharpexec: New file.
46116 * MODULES.html.sh (C#): New section.
46118 2005-06-01 Bruno Haible <bruno@clisp.org>
46120 * m4/csharp.m4: New file, from GNU gettext.
46121 * m4/csharpexec.m4: New file, from GNU gettext.
46123 2005-06-01 Bruno Haible <bruno@clisp.org>
46125 * lib/csharpexec.h: New file, from GNU gettext.
46126 * lib/csharpexec.c: New file, from GNU gettext.
46127 * lib/csharpexec.sh.in: New file, from GNU gettext.
46129 2005-05-31 Derek Price <derek@ximbiot.com>
46130 Paul Eggert <eggert@cs.ucla.edu>
46133 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
46135 2005-05-31 Derek Price <derek@ximbiot.com>
46136 Paul Eggert <eggert@cs.ucla.edu>
46139 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
46141 2005-05-29 Derek Price <derek@ximbiot.com>
46143 * config/srclist.txt (glob_.h, glob.c): Add these files.
46145 2005-05-29 Derek Price <derek@ximbiot.com>
46147 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
46148 * modules/glob: New file.
46149 * modules/getlogin_r: Add link to POSIX spec in description.
46151 2005-05-29 Derek Price <derek@ximbiot.com>
46152 Paul Eggert <eggert@cs.ucla.edu>
46154 * m4/glob.m4: New file.
46156 2005-05-29 Derek Price <derek@ximbiot.com>
46157 Paul Eggert <eggert@cs.ucla.edu>
46159 * lib/glob_.h, lib/glob.c: New files.
46161 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
46163 * modules/fts (Files): Remove m4/inttypes-pri.m4.
46164 * modules/fts-lgpl (Depends-on): Remove gettext.
46166 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
46168 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
46169 and don't require gt_INTTYPES_PRI.
46171 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
46173 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
46175 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
46176 the configuration hassle isn't worth it.
46177 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
46178 (LONGEST_MODIFIER, PRIuMAX): Remove.
46180 2005-05-27 Bruno Haible <bruno@clisp.org>
46182 * lib/getlogin_r.h: Remove second include of <stddef.h>.
46184 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
46186 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
46187 _POSIX_PTHREAD_SEMANTICS for Solaris.
46189 2005-05-25 Derek Price <derek@ximbiot.com>
46191 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
46193 2005-05-25 Derek Price <derek@ximbiot.com>
46194 Paul Eggert <eggert@cs.ucla.edu>
46196 * modules/getlogin_r, m4/getlogin_r.m4: New files.
46197 * lib/getlogin_r.c, getlogin_r.h: New files.
46199 2005-05-25 Bruno Haible <bruno@clisp.org>
46200 Derek Price <derek@ximbiot.com>
46202 * lib/getlogin_r.h: Simplify API documentation.
46204 2005-05-23 Derek Price <derek@ximbiot.com>
46206 * modules/minmax (Files): Add m4/minmax.m4.
46207 (configure.ac): Add gl_MINMAX.
46209 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
46211 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
46212 so that unistd-safer.h (GPL'ed code) need not be included.
46214 2005-05-22 Bruno Haible <bruno@clisp.org>
46216 * m4/minmax.m4: New file.
46217 Based on a patch by Derek Price <derek@ximbiot.com>.
46219 2005-05-22 Bruno Haible <bruno@clisp.org>
46221 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
46222 (INT64_MIN): Fix definition.
46223 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
46225 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
46226 NEED_SIGNED_INT_TYPES.
46228 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
46229 HAVE_SYSTEM_INTTYPES.
46231 2005-05-22 Bruno Haible <bruno@clisp.org>
46233 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
46234 Also include <sys/param.h> if it defines MIN, MAX.
46235 Based on a patch by Derek Price <derek@ximbiot.com>.
46237 2005-05-21 Jim Meyering <jim@meyering.net>
46239 * modules/fts (Files): Add m4/inttypes-pri.m4.
46240 (Depends-on): Add lstat and remove gettext. Alphabetize.
46242 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
46245 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
46246 (setup_dir, free_dir): New functions.
46247 (enter_dir, leave_dir): Define trivial
46248 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
46249 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
46250 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
46251 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
46252 Move to fts-cycle.c.
46253 (fts_open): Use setup_dir.
46254 (fts_close): Use free_dir.
46255 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
46256 This adds a label and some gotos, but the alternatives were messier.
46257 Check for memory allocation failure when entering a dir.
46258 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
46259 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
46260 (FTS): New member fts_cycle, that is a union that contains the
46261 old active_dir_ht and cycle_state. All uses changed to mention
46262 fts_cycle.ht and fts_cycle.state.
46263 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
46264 fts.c, with the following changes:
46265 (setup_dir, free_dir): New functions.
46266 (enter_dir): Now returns bool. Return true if successful, false
46267 if memory exhausted. All callers changed.
46268 Do not bother partly cleaning up on
46269 memory allocation failure; that is free_dir's job.
46270 However, free ad if hash_insert fails, to avoid memory leak.
46271 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
46272 fts->fts_options to see which union member to use.
46274 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
46276 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
46277 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
46279 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
46281 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
46283 2005-05-20 Jim Meyering <jim@meyering.net>
46285 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
46286 Now a macro, to pacify GCC.
46288 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
46290 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
46293 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
46295 * lib/chown.c (rpl_chown): Return -1 on failure.
46297 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
46299 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
46300 Don't check for stddef.h.
46301 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
46302 don't use its results.
46303 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
46304 since we include them unconditionally. Don't require
46305 AM_STDBOOL_H, since stdbool is a prerequisite.
46306 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
46307 since we assume C89 or better.
46308 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
46309 as we don't use their results.
46310 Don't check for fchdir, memmove, memset, strrchr, as we use
46311 them unconditionally.
46312 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
46313 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
46315 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
46317 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
46318 Include <stddef.h> unconditionally, since we assume C89 now.
46319 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
46320 * lib/fts.c: Include fts_.h first, to check interface.
46321 Do not include intprops.h; no longer needed.
46322 Include cycle-check.h and hash.h, since fts_.h no longer does.
46323 Remove unnecessary casts of closedir to void.
46324 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
46325 decide whether to decrement nlinks.
46326 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
46327 (FTS): Use struct hash_table * instead of Hash_table, so that
46328 we no longer need to include hash.h here.
46330 2005-05-18 Jim Meyering <jim@meyering.net>
46332 * modules/dirfd (License): Change to LGPL. Most of the code
46333 is already in the public domain.
46335 2005-05-18 Jim Meyering <jim@meyering.net>
46337 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
46338 Reported by Yoann Vandoorselaere.
46340 2005-05-17 Jim Meyering <jim@meyering.net>
46342 * m4/fts.m4: New file, from coreutils.
46344 2005-05-17 Jim Meyering <jim@meyering.net>
46346 * lib/fts.c, lib/fts_.h: New files, from coreutils.
46348 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
46350 Sync from coreutils.
46351 * m4/unlinkdir.m4: New file.
46353 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
46355 Sync from coreutils.
46356 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
46357 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
46358 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
46359 White space changes only.
46360 * lib/makepath.c (make_path): Port to hosts where leading "//" is
46362 * lib/yesno.c: Include getline.h, not ctype.h.
46363 (yesno): Don't remove leading white space; POSIX doesn't allow it.
46364 Use getline to remove arbitrary restriction on response length.
46366 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
46368 * config/srclist-update: Spell out "Street" in FSF postal
46369 mail address; this is the style the FSF seems to prefer.
46371 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
46372 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
46373 this updates FSF postal mail address.
46375 Sync from coreutils.
46376 * modules/unlinkdir: New file.
46377 * modules/yesno (Depends-on): Add getline.
46378 * MODULES.html.sh (File system functions): Add unlinkdir.
46380 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
46382 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
46384 Change the initial comment to refer to GPL, not LGPL.
46385 gnulib-tool will change it to LGPL as needed.
46387 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
46388 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
46389 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
46390 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
46391 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
46392 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
46393 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
46394 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
46395 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
46396 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
46397 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
46398 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
46399 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
46400 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
46401 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
46402 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
46403 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
46404 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
46405 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
46406 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
46407 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
46408 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
46409 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
46410 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
46411 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
46412 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
46413 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
46414 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
46415 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
46416 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
46417 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
46418 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
46419 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
46420 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
46421 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
46422 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
46423 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
46424 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
46425 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
46426 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
46427 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
46428 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
46429 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
46430 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
46431 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
46432 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
46433 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
46434 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
46435 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
46436 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
46437 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
46438 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
46439 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
46440 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
46441 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
46442 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
46443 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
46444 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
46445 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
46446 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
46447 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
46448 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
46449 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
46450 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
46451 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
46452 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
46453 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
46454 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
46455 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
46456 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
46457 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
46458 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
46459 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
46460 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
46461 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
46462 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
46463 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
46464 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
46465 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
46466 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
46467 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
46468 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
46469 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
46470 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
46471 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
46472 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
46473 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
46474 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
46475 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
46476 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
46477 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
46478 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
46479 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
46480 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
46481 lib/yesno.c, lib/yesno.h:
46482 Update FSF postal mail address.
46484 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
46486 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
46487 tests/test-memmem.c, tests/test-stpncpy.c:
46488 Update FSF postal mail address.
46490 2005-05-13 Bruno Haible <bruno@clisp.org>
46492 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
46493 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
46494 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
46495 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
46496 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
46497 Add support for 64-bit integers in the MSVC compiler.
46499 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
46501 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
46503 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
46505 * gnulib-tool (func_import): Sort and uniquify recommended includes.
46507 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
46509 * doc/getdate.texi (General date syntax): Don't say that date
46510 date --iso-8601=ns generates acceptable dates; it doesn't yet.
46511 Problem reported by Nic Ferrier.
46513 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46515 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
46516 specified in ai_socktype. Fix invalid ai_protocol
46517 check. ai_protocol is usually set to 0 or depending on
46518 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
46519 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
46520 ai_socktype / ai_protocol in the returned addrinfo structure.
46522 2005-05-10 Simon Josefsson <jas@extundo.com>
46524 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
46525 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
46527 2005-05-10 Karl Berry <karl@gnu.org>
46529 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
46530 (from http://www.gnu.org/licenses).
46531 * doc/COPYING.LIB: also rename to COPYING.LESSER.
46532 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
46535 2005-05-10 Karl Berry <karl@gnu.org>
46537 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
46538 (COPYING.DOC): remove.
46540 * config/srclist-update: new FSF address.
46542 2005-05-10 Derek Price <derek@ximbiot.com>
46544 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
46547 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46548 Bruno Haible <bruno@clisp.org>
46550 * modules/inet_ntop: New file.
46551 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46554 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46555 Bruno Haible <bruno@clisp.org>
46557 * m4/inet_ntop.m4: New file.
46559 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46560 Bruno Haible <bruno@clisp.org>
46562 * lib/inet_ntop.h: New file.
46563 * lib/inet_ntop.c: New file, from glibc with modifications.
46565 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
46567 * modules/time_r (License): Change to LGPL.
46568 * modules/extensions (License): Change to LGPL. Actually,
46569 the license is more permissive than that, but currently gnulib-tool
46570 doesn't know how to handle more-permissive licenses.
46572 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
46573 Problem reported by Dave Love.
46575 2005-05-08 Jim Meyering <jim@meyering.net>
46577 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
46580 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
46582 * modules/argmatch (Depends-on): Add stdbool.
46583 * modules/backupfile (Depends-on): Likewise.
46584 * modules/chdir-long (Depends-on): Likewise.
46585 * modules/closeout (Depends-on): Likewise.
46586 * modules/cycle-check (Depends-on): Likewise.
46587 * modules/dirname (Depends-on): Likewise.
46588 * modules/fnmatch (Depends-on): Likewise.
46589 * modules/fsusage (Depends-on): Likewise.
46590 * modules/fwriteerror (Depends-on): Likewise.
46591 * modules/getcwd (Depends-on): Likewise.
46592 * modules/getloadavg (Depends-on): Likewise.
46593 * modules/hard-locale (Depends-on): Likewise.
46594 * modules/makepath (Depends-on): Likewise.
46595 * modules/mountlist (Depends-on): Likewise.
46596 * modules/nanosleep (Depends-on): Likewise.
46597 * modules/posixtm (Depends-on): Likewise.
46598 * modules/quotearg (Depends-on): Likewise.
46599 * modules/readtokens (Depends-on): Likewise.
46600 * modules/readtokens0 (Depends-on): Likewise.
46601 * modules/readutmp (Depends-on): Likewise.
46602 * modules/save-cwd (Depends-on): Likewise.
46603 * modules/strftime (Depends-on): Likewise.
46604 * modules/userspec (Depends-on): Likewise.
46605 * modules/utimecmp (Depends-on): Likewise.
46606 * modules/xgetcwd (Depends-on): Likewise.
46607 * modules/xnanosleep (Depends-on): Likewise.
46608 * modules/xstrtod (Depends-on): Likewise.
46609 * modules/yesno (Depends-on): Likewise.
46611 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
46613 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
46616 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46618 Merge from coreutils. Among other things,
46619 add bulletproofing for cases where stdin, stdout, or stderr are closed.
46620 * lib/fd-safer.c: New file.
46621 * lib/fcntl-safer.h, open-safer.c: Remove.
46622 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
46623 * lib/dup-safer.c: Include unistd-safer.h first.
46624 Don't include errno.h.
46625 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
46626 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
46627 * lib/file-type.c: Rely on file-type.h change.
46628 * lib/getloadavg.c: Include unistd-safer.h.
46629 (getloadavg): Use safer open.
46630 * lib/getusershell.c: Include "stdio-safer.h".
46631 (getusershell): Use safer fopen.
46632 * lib/long-options.c (long_options): Use NULL rather than 0.
46633 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
46635 * lib/modechange.c: Likewise.
46636 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
46637 (MODE_DONE): New constant.
46638 (struct mode_change): Remove 'next' member.
46639 (make_node_op_equals): New function; like the old one of the
46640 same name, except it allocates an array.
46641 (mode_compile, mode_create_from_ref): Use it.
46642 (mode_compile): Allocate result as an array, not a linked list.
46643 Parse octal string ourself, so that we catch mistakes like "+0".
46644 (mode_adjust): Arg is an array, not a linked list.
46645 * lib/modechange.c: Include stat-macros.h, xalloc.h.
46646 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
46647 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
46648 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
46649 Remove. This is now stat-macros.h's job.
46650 (talloc): Remove. All callers replaced by xalloc, so that
46651 our invokers don't have to worry about reporting memory failures.
46652 (make_node_op_equals): Remove.
46653 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46655 (struct mode_change): Moved here from modechange.h.
46656 (mode_append_entry): Remove.
46657 (mode_compile): Remove MASKED_OPS arg, since it encouraged
46658 apps to have incorrect behavior. Use simpler algorithm for head
46659 and tail. Don't futz with umask; that's now the job of mode_adjust.
46660 Detect more invalid usages rather than having somewhat-random behavior.
46661 Don't insert an "a=" action, as that leads to incorrect behavior.
46662 (mode_compile, mode_create_from_ref): Return NULL on error instead
46663 of an enum, since now there's only one way to have an error. All
46665 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
46666 at the correct time. Simplify calculation of "+u" and its ilk.
46667 Don't mishandle "+X".
46668 (mode_free): Remove "register" and localize decls.
46669 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
46670 (struct mode_change): Move to modechange.c; callers don't
46671 need to see this stuff.
46672 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
46673 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
46674 (mode_change, mode_adjust): Reflect the new signatures noted above.
46675 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
46676 that might redefine system include files.
46677 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
46678 (my_usleep): Use NULL rather than (void *) 0.
46679 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
46680 Use siginterrupt to specify that system calls should be interrupted.
46681 (rpl_nanosleep): Move initialization of suspended closer to call of
46683 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
46684 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
46685 (desirable_utmp_entry): New function.
46686 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
46687 using x2nrealloc, to simplify logic.
46688 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
46689 size calculation. Do not assume utmp file is a regular file.
46690 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
46691 (READ_UTMP_CHECK_PIDS): New constant.
46692 * lib/save-cwd.c: Include unistd-safer.h.
46693 (save_cwd): Use fd_safer.
46694 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
46695 [!_LIBC] Include "stat-macros.h" instead.
46696 * lib/unistd-safer.h (fd_safer): New decl.
46698 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46700 * modules/getloadavg (Depends-on): Add unistd-safer.
46701 * modules/getusershell (Depends-on): Add stdio-safer.
46702 * modules/lstat (Depends-on): Remove xalloc.
46703 * modules/mkstemp (Depends-on): Add stat-macros.
46704 * modules/modechange (Depends-on): Remove xstrtol.
46705 Add stat-macros, xalloc.
46706 * modules/save-cwd (Depends-on): Add unistd-safer.
46707 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
46708 * modules/unistd-safer (Files): Add lib/fd-safer.c
46709 (Makefile.am): Remove lib_SOURCES.
46711 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
46712 Remove fcntl-safer; unistd-safer supersedes it.
46714 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46716 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
46718 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
46719 (gl_PREREQ_CHOWN): Remove.
46720 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
46721 it. Don't require AC_HEADER_STAT.
46722 (gl_PREREQ_LSTAT): Remove.
46723 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
46724 Don't require AC_HEADER_STAT.
46725 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
46726 (gl_PREREQ_RMDIR): Remove.
46727 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
46728 mention stat-macros.h or AC_HEADER_STAT, since we'll make
46729 the stat-macros module a prerequisite.
46730 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
46731 * m4/filemode.m4 (gl_FILEMODE): Likewise.
46732 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
46733 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
46734 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
46736 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
46737 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
46739 * m4/fcntl-safer.m4: Remove.
46740 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
46741 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
46742 Invoke gl_PREREQ_FD_SAFER.
46743 (gl_PREREQ_FD_SAFER): New macro.
46744 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
46745 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
46746 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
46747 Remove duplicate call to AC_LIBOBJ(readutmp).
46748 (gl_PREREQ_READUTMP): Remove. All uses inlined.
46750 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
46751 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
46753 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
46755 * MODULES.html.sh (Misc): Add byteswap.
46757 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46759 * modules/getcwd (Depends-on): Add extensions.
46760 * modules/openat (Depends-on): Likewise.
46762 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46764 * modules/byteswap: New file.
46766 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46768 * m4/byteswap.m4: New file.
46770 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
46772 * lib/byteswap_.h: New file.
46774 2005-04-25 Karl Berry <karl@gnu.org>
46776 * m4/gettext.m4: Update from GNU gettext 0.14.4.
46778 2005-04-25 Albert Chin <china@thewrittenword.com>
46780 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
46783 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
46785 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
46786 (func_ln_if_changed) Remove forcibly for no error message
46787 in case file does not exist.
46789 2005-04-19 Simon Josefsson <jas@extundo.com>
46791 * gnulib-tool (Options): Make --symlink mean --symbolic.
46793 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
46795 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
46797 2005-04-16 Simon Josefsson <jas@extundo.com>
46799 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
46801 2005-04-15 Simon Josefsson <jas@extundo.com>
46803 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
46805 2005-04-15 Simon Josefsson <jas@extundo.com>
46807 * gnulib-tool: Rename --symlink to --symbolic.
46809 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
46811 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
46812 symbolic links to files instead of copying/moving. Add --aux-dir,
46813 specifying directory relative --dir where auxiliary build tools
46816 2005-04-14 Bruno Haible <bruno@clisp.org>
46818 * modules/allocsa (License): Change to LGPL.
46819 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
46821 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
46823 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
46824 that "UTC +1 second" continues to work. Problem reported
46825 by Dmitry V. Levin.
46826 (relunit_snumber): New rule.
46829 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
46831 * lib/getdate.y (universal_time_zone_table): New constant.
46832 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
46833 universal_time_zone_table.
46834 (lookup_zone): Prefer universal_time_zone_table to
46835 local_time_zone_table, so that "GMT" time stamps are allowed in
46836 London during the summer. Problem reported by Ian Abbott.
46838 2005-04-12 Jim Meyering <jim@meyering.net>
46840 * lib/human.c (humblock): Set *options even when returning due to
46841 xstrtoumax conversion failure. Thanks to a used-uninitialized
46842 warning from gcc-4.
46844 2005-04-09 Jim Meyering <jim@meyering.net>
46846 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
46847 -Wuninitialized: initialize tm0.tm_year.
46849 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
46851 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
46852 count, since there's no maximum. All uses changed.
46853 Add member dsts_seen.
46854 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
46856 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
46857 Use pc_rels_seen to decide whther a date is absolute.
46859 * lib/getdate.y (number): Don't overwrite year.
46860 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
46863 2005-04-02 Simon Josefsson <jas@extundo.com>
46865 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
46866 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
46868 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
46870 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
46871 where no absolute path name can be longer than PATH_MAX.
46873 2005-03-27 Jim Meyering <jim@meyering.net>
46875 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
46877 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
46879 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
46880 "one's complement" -> "ones' complement" in comment, as per Knuth.
46881 "value of type" -> "type or expression" in comment.
46882 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
46884 2005-03-26 Jim Meyering <jim@meyering.net>
46887 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
46888 Correct typos: s/or/of/.
46890 2005-03-26 Jim Meyering <jim@meyering.net>
46892 * modules/check-include-files: Move to ../ and rename to...
46893 * check-module: ...this.
46895 2005-03-25 Jim Meyering <jim@meyering.net>
46897 * modules/xvasprintf (Files): Add xalloc.h.
46899 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
46901 * modules/gettext (Files): config/config.rpath ->
46902 build-aux/config.rpath
46903 * modules/iconv (Files): Likewise.
46904 Problem reported by Oskar Liljeblad.
46906 2005-03-23 Jim Meyering <jim@meyering.net>
46908 * modules/check-include-files: New script to check for
46909 missing dependencies, multiple includes, etc.
46911 * modules/c-strtold (Depends-on): Add xalloc.
46912 * modules/c-strtod (Depends-on): Add xalloc.
46913 * modules/hash (Depends-on): Add xalloc.
46914 (Files): Remove lib/xalloc.h.
46916 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
46917 * modules/userspec (Files): Add lib/inttostr.h.
46919 2005-03-23 Jim Meyering <jim@meyering.net>
46921 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
46923 2005-03-22 Jim Meyering <jim@meyering.net>
46925 * modules/stat-macros: New module.
46926 * modules/canonicalize, modules/euidaccess, modules/file-type,
46927 * modules/filemode, modules/lchown, modules/makepath,
46928 * modules/rmdir, modules/stat: Depend on new stat-macros module
46929 rather than listing lib/stat-macros.h manually.
46930 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
46932 2005-03-22 Jim Meyering <jim@meyering.net>
46934 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
46936 2005-03-22 Bruno Haible <bruno@clisp.org>
46938 * config/srclist.txt: Replace target directory 'config' with
46940 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
46941 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
46944 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
46946 * modules/chdir-long (Depends-on): Add mempcpy.
46948 * modules/acl, modules/backupfile, modules/c-strtod,
46949 modules/c-strtold, modules/canon-host, modules/canonicalize,
46950 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
46951 modules/exclude, modules/exitfail, modules/file-type,
46952 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
46953 modules/getdate, modules/getline, modules/getpagesize,
46954 modules/getpass, modules/getugroups, modules/group-member,
46955 modules/hard-locale, modules/hash, modules/human, modules/idcache,
46956 modules/inttostr, modules/long-options, modules/makepath,
46957 modules/md5, modules/memcasecmp, modules/memcoll,
46958 modules/modechange, modules/mountlist, modules/path-concat,
46959 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
46960 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
46961 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
46962 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
46963 modules/strftime, modules/strndup, modules/strverscmp,
46964 modules/timespec, modules/unlocked-io, modules/userspec,
46965 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
46967 Remove lib_SOURCES line from Makefile.am section, as this is now
46968 done automatically by the corresponding Autoconf macro.
46970 2005-03-21 Jim Meyering <jim@meyering.net>
46972 Changes imported from coreutils.
46974 * lib/cycle-check.c: Don't include xalloc.h.
46976 * lib/path-concat.c: Don't include assert.h.
46977 (path_concat): Remove assertion that would have triggered
46978 for ABASE starting with more than one slash.
46979 Reported by Andreas Schwab.
46981 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
46982 properly when ABASE is an absolute file name.
46983 Correct the description of this function.
46984 Include <assert.h>.
46985 Add an assertion and a test driver.
46986 This fixes a bug introduced on 2004-07-02.
46987 Andreas Schwab reported the resulting failure of cp --parents:
46988 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
46990 2005-03-21 Jim Meyering <jim@meyering.net>
46992 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
46993 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
46995 2005-03-21 Jim Meyering <jim@meyering.net>
46996 and Paul Eggert <eggert@cs.ucla.edu>
46998 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
46999 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
47000 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
47001 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
47002 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
47003 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
47004 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
47005 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
47006 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
47007 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
47008 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
47009 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
47010 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
47011 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
47012 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
47013 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
47014 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
47017 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
47019 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
47020 (which shouldn't happen), generate nothing instead of returning 0
47021 immediately, so that nstrftime (NULL, ...) doesn't return 0.
47023 2005-03-16 Bruno Haible <bruno@clisp.org>
47025 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
47026 HAVE_LONGLONG_64BIT.
47028 2005-03-16 Bruno Haible <bruno@clisp.org>
47030 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
47031 HAVE_LONGLONG_64BIT.
47033 2005-03-16 Bruno Haible <bruno@clisp.org>
47035 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
47036 HAVE_LONGLONG_64BIT.
47038 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
47040 * lib/strftime.c (my_strftime): Prepend space to format so that we can
47041 reliably distinguish strftime failure from empty output on POSIX
47044 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
47046 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
47047 (iconv_string): Don't guess a size-zero buffer, as that might cause
47048 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
47049 result would be 'too large', where 'too large' is (heuristically)
47050 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
47051 overflow concerns. This will prevent some unwanted malloc failures
47052 when the inputs are very large.
47054 2005-03-15 Karl Berry <karl@gnu.org>
47056 * config/srclist.txt (config.rpath): from gettext.
47057 * config/config.rpath: update.
47059 2005-03-15 Bruno Haible <bruno@clisp.org>
47061 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
47064 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
47067 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
47070 2005-03-14 Simon Josefsson <jas@extundo.com>
47072 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
47075 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
47077 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
47078 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
47080 * lib/strtol.c: Likewise.
47082 2005-03-14 Jim Meyering <jim@meyering.net>
47084 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
47085 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
47086 to be nonzero so that we (and caller) can detect the difference
47087 between a valid zero-length expansion and an error return, even
47088 when the underlying strftime fails before writing anything into
47091 2005-03-14 Bruno Haible <bruno@clisp.org>
47093 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
47094 Update from GNU gettext 0.14.3.
47096 2005-03-10 Jim Meyering <jim@meyering.net>
47098 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
47100 2005-03-10 Jim Meyering <jim@meyering.net>
47102 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
47103 so that this module works on systems without fchdir.
47105 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
47107 Factor int-properties macros into a single file, except for
47108 glibc-related files.
47109 * lib/intprops.h: New file.
47110 * lib/getloadavg.c: Include it instead of limits.h.
47111 (INT_STRLEN_BOUND): Remove.
47112 * lib/human.c: Include intprops.h.
47113 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
47114 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
47116 * lib/inttostr.h: Include intprops.h instead of limits.h.
47117 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
47118 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
47119 for consistency with intprops.h.
47120 (time_t_is_integer, twos_complement_arithmetic): Use them.
47121 * lib/sig2str.h: Include <signal.h>, intprops.h.
47122 (INT_STRLEN_BOUND): Remove.
47123 * lib/strftime.c (TYPE_SIGNED): Remove.
47124 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
47125 * lib/strtol.c: Adjust comments to match intprops.h.
47126 * lib/userspec.c: Include intprops.h.
47127 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
47128 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
47129 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
47130 instead of rolling our own expressions.
47131 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
47133 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
47135 (my_strftime): Do not mishandle years close to INT_MAX, by doing
47136 the right thing even if adding 1900 would overflow. Similarly
47137 for tm_mon + 1 and tm_yday + 1.
47138 Make %Y always equivalent to %C%y, and similarly for %G and %g.
47139 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
47140 (DO_SIGNED_NUMBER): New macro.
47141 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
47143 2005-03-07 Bruno Haible <bruno@clisp.org>
47145 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
47147 2005-03-07 Bruno Haible <bruno@clisp.org>
47149 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
47151 2005-03-04 Derek R. Price <derek@ximbiot.com>
47153 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
47154 (func_import): Only replace files via --import when they have actually
47157 2005-03-03 Derek R. Price <derek@ximbiot.com>
47159 * m4/mmap-anon.m4: New file.
47160 * m4/pagealign_alloc.m4: New file.
47162 2005-03-03 Derek R. Price <derek@ximbiot.com>
47163 Bruno Haible <bruno@clisp.org>
47165 * modules/pagealign_alloc: New file.
47166 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
47168 2005-03-03 Derek R. Price <derek@ximbiot.com>
47169 Bruno Haible <bruno@clisp.org>
47171 * lib/pagealign_alloc.h: New file.
47172 * lib/pagealign_alloc.c: New file.
47174 2005-03-03 Bruno Haible <bruno@clisp.org>
47176 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
47177 Use an all-permissive copyright notice, recommended by RMS.
47179 2005-03-02 Bruno Haible <bruno@clisp.org>
47181 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
47182 of AIX, the replacement has to be done only after <string.h> is
47183 included, therefore not in config.h. stpncpy.h does the replacement,
47184 and stpncpy.c uses it.
47186 2005-03-02 Bruno Haible <bruno@clisp.org>
47188 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
47191 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
47193 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
47194 The workaround isn't strictly needed for POSIX conformance, and
47195 it's too much of a pain to configure and maintain. We'll ask
47196 people to fix their kernels instead.
47197 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
47198 (NANOSLEEP_BUG_WORKAROUND): Remove.
47199 (xnanosleep): Remove the workaround.
47201 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
47203 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
47204 Reported by Derek Price.
47205 (Include): Add "timespec.h".
47207 * modules/xnanosleep (Depends-on): Remove gethrxtime.
47209 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
47211 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
47212 to detect nanosleep bug.
47214 2005-03-01 Bruno Haible <bruno@clisp.org>
47216 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
47218 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
47220 * modules/gethrxtime: New file.
47221 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
47222 (Depends-on): Add gethrxtime.
47223 (configure.ac): Add gl_XNANOSLEEP.
47224 (Makefile.am): Remove lib_SOURCES line.
47226 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
47228 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
47229 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
47231 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
47233 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
47234 * lib/timespec.h (gettime): Return void, since it always
47235 succeeds now. All uses changed.
47236 * lib/gettime.c (gettime) Likewise.
47237 [HAVE_NANOTIME]: Prefer nanotime.
47238 Assume gettimeofday succeeds, as POSIX requires.
47239 Assime time () succeeds, since other code already does.
47240 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
47241 (timespec_subtract): Remove.
47242 (NANOSLEEP_BUG_WORKAROUND): New constant.
47243 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
47244 things considerably. Use it only on GNU/Linux hosts, since the
47245 workaround shouldn't be needed elsewhere.
47247 2005-02-24 Bruno Haible <bruno@clisp.org>
47249 * modules/gettext (Files): Add m4/glibc2.m4.
47251 2005-02-24 Bruno Haible <bruno@clisp.org>
47253 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
47254 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
47256 Update from GNU gettext 0.14.2.
47257 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
47259 2005-02-24 Bruno Haible <bruno@clisp.org>
47261 * lib/localcharset.c: Update from GNU gettext 0.14.2.
47262 * lib/config.charset: Update from GNU gettext 0.14.2.
47264 2005-02-24 Bruno Haible <bruno@clisp.org>
47266 * lib/gettext.h: Update from GNU gettext 0.14.2.
47268 2005-02-23 Simon Josefsson <jas@extundo.com>
47270 * m4/iconvme.m4: New file.
47272 2005-02-23 Jim Meyering <jim@meyering.net>
47274 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
47276 Thanks to Bruno Haible for catching it.
47278 2005-02-22 Simon Josefsson <jas@extundo.com>
47280 * modules/iconvme: New file.
47282 * MODULES.html.sh: Add iconvme.
47284 2005-02-22 Simon Josefsson <jas@extundo.com>
47286 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
47288 2005-02-22 Simon Josefsson <jas@extundo.com>
47290 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
47292 2005-02-22 Jim Meyering <jim@meyering.net>
47294 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
47297 2005-02-20 Neil Conway <neilc@samurai.com>
47299 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
47300 returned by OSX/Darwin if the specified buffer is not large
47301 enough for the hostname.
47303 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47305 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
47306 pass it to _help, otherwise the latter coredumps trying to
47307 dereference state.root_argp.
47309 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
47311 * modules/chdir-long (Depends-on): Add memrchr.
47312 * modules/memrchr (Files): Add lib/memrchr.h.
47313 (Include): "memrchr.h".
47315 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
47317 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
47319 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
47321 * lib/memrchr.h: New file.
47322 * lib/chdir-long.c: Include it.
47323 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
47324 Don't bother including stddef.h.
47326 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
47328 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
47330 Include <sys/types.h>, for dev_t.
47331 (ME_DUMMY, ME_REMOTE): Move from here....
47332 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
47333 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
47335 Include mountlist.h first, to test the interface.
47337 2005-01-29 Bruno Haible <bruno@clisp.org>
47339 * lib/progname.c (program_name): Initialize.
47340 Needed when linking statically on MacOS X.
47342 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
47344 Sync from coreutils.
47345 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
47346 (Depends-on): Add c-strtod.
47347 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
47349 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
47351 Sync from coreutils.
47352 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
47354 Remove files that are specific to coreutils.
47355 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
47357 2005-01-28 Bruno Haible <bruno@clisp.org>
47359 * modules/javacomp: New file.
47360 * MODULES.html.sh (Java): Add javacomp.
47362 2005-01-28 Bruno Haible <bruno@clisp.org>
47364 * m4/javacomp.m4: New file, from GNU gettext.
47366 2005-01-28 Bruno Haible <bruno@clisp.org>
47368 * lib/javacomp.sh.in: New file, from GNU gettext.
47369 * lib/javacomp.h: New file, from GNU gettext.
47370 * lib/javacomp.c: New file, from GNU gettext.
47372 2005-01-26 Simon Josefsson <jas@extundo.com>
47374 * lib/gai_strerror.c: Use GPL in header.
47376 2005-01-26 Bruno Haible <bruno@clisp.org>
47378 * modules/javaexec: New file.
47379 * MODULES.html.sh (Java): Add javaexec.
47381 2005-01-26 Bruno Haible <bruno@clisp.org>
47383 * m4/javaexec.m4: New file, from GNU gettext.
47385 2005-01-26 Bruno Haible <bruno@clisp.org>
47387 * lib/javaexec.sh.in: New file, from GNU gettext.
47388 * lib/javaexec.h: New file, from GNU gettext.
47389 * lib/javaexec.c: New file, from GNU gettext.
47391 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47393 * modules/lchown (Depends-on): Remove lchown.h
47395 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47397 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
47398 must be defined if the header file was not found, in order
47399 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
47401 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47403 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
47404 initializers for struct pentry_state.
47405 (__argp_error): Check return value of __asprintf
47406 (__argp_failure): Translate error message
47408 * lib/argp-parse.c: Removed braces around the expansion of N_()
47410 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
47412 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
47413 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
47414 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
47415 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
47416 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
47417 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
47418 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
47419 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
47420 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
47421 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
47422 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
47423 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
47424 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
47425 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
47426 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
47427 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
47428 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
47429 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
47430 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
47431 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
47432 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
47433 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
47434 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
47435 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
47436 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
47437 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
47438 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
47439 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
47440 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
47441 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
47442 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
47443 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
47444 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
47445 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
47446 xstrtol.m4, xstrtoumax.m4, yesno.m4:
47447 Use an all-permissive copyright notice, recommended by RMS.
47449 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
47451 * modules/chdir-long (Depends-on): Remove mempcpy.
47453 2005-01-21 Jim Meyering <jim@meyering.net>
47455 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
47456 same value as for Solaris 9.
47458 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
47459 component length. This included changing the parameter to be
47460 of type `char *' rather than `char const *'.
47461 * lib/chdir-long.h (chdir_long): Update prototype.
47463 * lib/openat.c (fdopendir, fstatat): New functions.
47464 * lib/openat.h: Include headers required for use of DIR and struct
47466 [AT_SYMLINK_NOFOLLOW]: Define.
47467 (fdopendir, fstatat): Add prototypes.
47469 2005-01-21 Bruno Haible <bruno@clisp.org>
47471 * modules/classpath: New file.
47472 * MODULES.html.sh (Java): Add classpath.
47474 2005-01-21 Bruno Haible <bruno@clisp.org>
47476 * lib/classpath.h: New file, from GNU gettext.
47477 * lib/classpath.c: New file, from GNU gettext.
47479 2005-01-20 Simon Josefsson <jas@extundo.com>
47481 * modules/version-etc-fsf: New file.
47483 2005-01-20 Simon Josefsson <jas@extundo.com>
47485 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
47486 * lib/version-etc.c: Remove version_etc_copyright.
47487 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
47488 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
47490 2005-01-20 Simon Josefsson <jas@extundo.com>
47492 * lib/base64.h (isbase64): Add.
47494 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
47495 using a unsigned prototype, don't inline.
47496 (base64_decode): Use it.
47498 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
47500 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
47503 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
47505 * lib/save-cwd.c (save_cwd): Remove code to support the case
47506 where fchdir is missing or flaky.
47508 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
47510 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
47512 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
47514 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
47515 AC_LIBSOURCES now does this.
47516 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
47517 with new ullong_max module.
47519 2005-01-19 Bruno Haible <bruno@clisp.org>
47521 * modules/sh-quote: New file.
47522 * MODULES.html.sh (Executing programs): Add sh-quote.
47524 2005-01-19 Bruno Haible <bruno@clisp.org>
47526 * lib/sh-quote.h: New file, from GNU gettext.
47527 * lib/sh-quote.c: New file, from GNU gettext.
47529 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
47531 Merge from coreutils.
47532 * m4/ullong_max.m4: New file.
47533 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
47534 (gl_MACROS): Assume localeconv exists.
47536 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
47538 Merge changes from coreutils, as described below in several
47539 changelogs dated today.
47541 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
47542 (O_DIRECTORY): Remove; not needed here, since "." must be
47543 a directory. All uses removed.
47544 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
47545 universal on Suns, and we also need to test for IRIX.
47546 Revamp code to use 'if' rather than '#if'.
47547 Avoid unnecessary comparison of cwd->desc to 0.
47549 * lib/utimens.c (futimens): Robustify the previous patch, by checking
47550 for known valid error numbers rather than observed invalid ones.
47552 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
47554 * modules/ullong_max: New file.
47556 * modules/chdir-long, modules/openat: New files.
47557 * modules/save-cwd (Depends-on): Depend on chdir-long.
47558 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
47560 2005-01-18 Jim Meyering <jim@meyering.net>
47562 Merge from coreutils.
47563 * m4/chdir-long.m4, m4/openat.m4: New files.
47564 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
47565 save-cwd.h. Add AC_LIBOBJ for save-cwd.
47566 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
47567 is sane and DOES follow symlinks. Besides, testing 20 different
47568 systems found no broken chown implementations.
47569 Prompted by a change in rsync's copy of this macro.
47570 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
47572 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
47574 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
47575 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
47576 NULL-means-set-to-current-time semantics.
47577 Remove temporary file immediately, rather than waiting
47578 for configure's at-exit trap code to do it.
47580 2005-01-18 Jim Meyering <jim@meyering.net>
47582 * lib/version-etc.c (version_etc_copyright): Update copyright date.
47584 * lib/utimens.c (futimens): Account for the fact that futimes
47585 can also fail with errno == ENOSYS or errno == ENOENT.
47586 Patch from Dmitry V. Levin.
47588 Change the name of the robust chdir function from chdir to chdir_long.
47589 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
47590 (restore_cwd): Use chdir_long, not chdir.
47591 * lib/chdir-long.c: Renamed from chdir.c.
47592 * lib/chdir-long.h: Renamed from chdir.h.
47593 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
47596 2005-01-18 Bruno Haible <bruno@clisp.org>
47598 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
47599 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
47600 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
47601 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
47602 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
47603 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
47604 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
47605 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
47606 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
47607 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
47608 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
47609 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
47610 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
47611 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
47612 Use an all-permissive copyright notice, recommended by RMS.
47614 2005-01-18 Bob Proulx <bob@proulx.com>
47616 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
47617 simplify offsetof() macro construct to avoid compile failure with
47618 native HP-UX 11.0 ANSI C compiler.
47620 2005-01-17 Bruno Haible <bruno@clisp.org>
47622 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
47623 redundant because stpncpy.m4 takes care of it.
47625 2005-01-17 Bruno Haible <bruno@clisp.org>
47627 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
47629 2005-01-17 Bruno Haible <bruno@clisp.org>
47631 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
47634 2005-01-17 Bruno Haible <bruno@clisp.org>
47636 * lib/fwriteerror.h (fwriteerror): Change specification to include
47638 * lib/fwriteerror.c: Include <stdbool.h>.
47639 (fwriteerror): At the end, close the file stream. Record whether
47640 stdout was already closed.
47642 2005-01-17 Bruno Haible <bruno@clisp.org>
47644 * lib/execute.c (environ): Declare if needed.
47645 * lib/pipe.c (environ): Likewise.
47646 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
47648 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47650 * modules/argp: Depend on vsnprintf
47652 2005-01-10 Jim Meyering <jim@meyering.net>
47654 * modules/closeout (Depends-on): Add atexit.
47656 2005-01-06 Bruno Haible <bruno@clisp.org>
47658 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
47660 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
47662 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
47663 definitions to be after all include files, to avoid collisions.
47664 Problem reported by Bob Proulx.
47666 2005-01-04 Jim Meyering <jim@meyering.net>
47668 Changes imported from coreutils.
47669 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
47670 as the mkstemp template, use a temporary directory and an
47671 8.3-friendly template to avoid trouble on systems like DJGPP.
47672 Reported by Juan M. Guerrero via Stepan Kasal.
47673 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
47674 close. Remove the temporary directory right away, rather than waiting
47675 for configure's at-exit trap code to do it.
47676 Suggestion from Stepan Kasal.
47678 2005-01-01 Simon Josefsson <jas@extundo.com>
47680 * gnulib-tool: Print #include directives when --import'ing.
47682 2004-12-28 Simon Josefsson <jas@extundo.com>
47684 * tests/test-base64.c: Include required header files. Remove
47687 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
47689 * modules/error (Depends-on): Remove gettext.
47691 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
47693 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
47694 not needed. This removes a dependency on the gettext module.
47695 [defined _LIBC]: Do not include <libintl.h>; not needed.
47697 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
47699 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
47700 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
47702 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
47704 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
47707 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
47709 * modules/getdate (Depends-on): Remove alloca-opt.
47711 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
47713 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
47715 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
47717 * lib/argp-parse.c: Include <stddef.h>.
47718 (alignof, alignto): New macros.
47719 (parser_init): Don't assume that void * is aligned sufficiently
47722 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
47723 need to extend the stack.
47724 (YYINITDEPTH): New macro, so that the initial stack isn't overly
47727 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47729 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
47731 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
47733 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
47734 (2004-10-24) change. Apparently this was a false alarm.
47736 * modules/getdate: Depend on alloca-opt, not alloca.
47738 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
47740 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
47741 Remove now-obsolete comment about AIX.
47742 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
47743 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
47744 (YYMAXDEPTH): New macro.
47746 2004-12-18 Simon Josefsson <jas@extundo.com>
47748 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
47750 2004-12-18 Bruno Haible <bruno@clisp.org>
47752 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
47754 2004-12-18 Bruno Haible <bruno@clisp.org>
47756 * lib/fatal-signal.c (fatal_signals): Make non-const.
47757 (init_fatal_signals): New function.
47758 (uninstall_handlers, install_handlers): Ignore signals that were set to
47760 (at_fatal_signal): Call init_fatal_signals.
47761 (init_fatal_signal_set): Likewise. Ignore signals that were set to
47763 Reported by Paul Eggert.
47765 2004-12-18 Bruno Haible <bruno@clisp.org>
47767 * doc/alloca.texi: New file.
47768 * doc/alloca-opt.texi: New file.
47770 2004-12-17 Jim Meyering <jim@meyering.net>
47772 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
47773 Otherwise, install-sh could exit with improper exit status when
47774 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
47776 2004-12-16 Simon Josefsson <jas@extundo.com>
47778 * tests/test-base64.c: Add license.
47780 2004-12-15 Stepan Kasal <address@hidden>
47782 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
47784 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
47786 * modules/getcwd (Files): Add m4/d-ino.m4.
47787 Suggested by Mark D. Baushke.
47789 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
47791 * lib/getdate.y (textint): New member "negative".
47792 (time_zone_hhmm): New function.
47793 Expect 14 shift-reduce conflicts, not 13.
47794 (o_colon_minutes): New rule.
47795 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
47796 (yylex): Set the "negative" member of signed numbers.
47798 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
47800 * doc/getdate.texi (Time of day items, Time zone items):
47801 Describe new formats +00:00, UTC+00:00.
47803 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
47805 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
47806 spurious "-l"s. Problem reported by Stepan Kasal.
47808 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
47810 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
47811 in Autoconf 2.59. Problem reported by Mark D. Baushke.
47813 2004-12-04 Simon Josefsson <jas@extundo.com>
47815 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
47816 Vandoorselaere <yoann@prelude-ids.org>.
47818 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
47820 Changes imported from coreutils.
47821 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
47823 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
47825 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
47827 Changes imported from coreutils.
47828 * lib/hard-locale.c: Assume <locale.h> exists.
47829 Include "strdup.h".
47830 (GLIBC_VERSION): New macro.
47831 (hard_locale): Assume setlocale exists.
47832 Rewrite to avoid #ifdef.
47833 Use strdup rather than malloc + strcpy.
47834 * lib/human.c: Assume <locale.h> exists.
47835 (human_readable): Assume localeconv exists.
47837 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
47839 * modules/hard-locale (Depends-on): Add strdup.
47841 2004-12-01 Jakub Jelinek <jakub@redhat.com>
47843 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
47844 convert T2, not T. (Imported from libc.)
47846 2004-11-30 Simon Josefsson <jas@extundo.com>
47848 * modules/restrict (License): Change to LGPL.
47850 2004-11-30 Simon Josefsson <jas@extundo.com>
47852 * m4/restrict.m4: Add copyright and copying conditions.
47854 2004-11-30 Simon Josefsson <jas@extundo.com>
47856 * m4/base64.m4: New file.
47858 2004-11-30 Simon Josefsson <jas@extundo.com>
47860 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
47863 * tests/test-base64.c: New file.
47865 * modules/base64: New file.
47867 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
47869 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
47870 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
47872 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
47874 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
47876 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
47877 (__getcwd.c): Don't restore errno; glibc doesn't.
47878 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
47879 first, falling back to our code only if its results look suspicious.
47880 Ensure that the resulting buffer is only as large as necessary.
47882 * lib/readutmp.c: Include readutmp.h first.
47883 Include <errno.h>, since readutmp.h no longer does that.
47884 * lib/readutmp.h: Don't include <errno.h>,
47885 <sys/param.h>, <time.h>; not needed to establish interface.
47886 (errno): Remove decl.
47887 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
47888 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
47889 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
47891 2004-11-28 Simon Josefsson <jas@extundo.com>
47893 * lib/base64.h, base64.c: New file.
47895 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
47897 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
47899 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
47901 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
47902 (Depends-on): Remove pathmax, same. Add mempcpy.
47903 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
47904 (Makefile.am): Append getcwd.h to lib_SOURCES.
47905 (Include): Add getcwd.h.
47906 (Maintainer): Change from Jim Meyering to "all, glibc",
47907 since getdate now uses intended-for-glibc code.
47908 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
47909 (Depends-on): Depend on getcwd. Do not depend on pathmax.
47911 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
47913 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
47914 HP's ANSI C compiler.
47915 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
47916 Declaring int functions causes warnings on some modern systems and
47917 shouldn't be needed to compile on ancient ones.
47918 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
47921 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
47922 with the following changes.
47923 (__set_errno): Parenthesize properly.
47924 Include <stdbool.h>.
47925 (MIN, MAX, MATCHING_INO): New macros.
47926 (__getcwd): Define with prototype, not K&R form.
47927 Use heuristics to allocate default buffer on stack if possible.
47928 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
47929 behavior, and to avoid the PATH_MAX limit when computing
47931 Use MATCHING_INO to compare inode number to file.
47932 Check for arithmetic overflow in size calculations.
47933 Fix bug in reallocation of dot array that caused getcwd to fail
47934 on directories nested deeper than 75.
47935 Be more careful about saving errno on error.
47936 Do not use realloc; use only free+malloc, as this is a bit
47937 more flexible and avoids a needless copy operation.
47938 Do not inspect st_dev and st_ino for symbolic links; POSIX
47939 doesn't specify the latter.
47940 Check for closedir errors.
47941 Avoid needless casts.
47942 Use "#ifdef weak_alias" around weak_alias, to be like other
47944 The following changes to getcwd.c have effect only when used in
47945 gnulib; they have no effect inside glibc proper.
47946 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
47947 as alloca isn't used.
47948 (alloca, __alloca): Likewise.
47949 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
47950 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
47951 unconditionally, as gnulib assumes C89 or better.
47952 Do not include <sys/param.h>.
47953 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
47954 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
47956 (NULL) [!defined NULL]: Remove; we assume C89 or better.
47957 Include <dirent.h> in a way that is compatible with modern Autoconf.
47958 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
47959 New macros, if not already defined.
47960 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
47961 Use "_LIBC", not "defined _LIBC", for consistency.
47962 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
47964 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
47965 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
47966 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
47967 credit only to Jim Meyering and adjust the copyright dates.
47968 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
47969 <stdlib.h>, <unistd.h>, "pathmax.h".
47970 Instead, include "xgetcwd.h" (first) and "getcwd.h".
47971 (INITIAL_BUFFER_SIZE): Remove.
47972 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
47974 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
47976 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
47977 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
47978 Use the _ONCE methods, for efficiency.
47979 Check for fcntl.h. In test program, include <errno.h>
47980 and <fcntl.h> if available. Remove old K&R cruft from
47981 test program. Check for common errors in GNU/Linux,
47982 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
47983 don't do AC_LIBOBJ, as that's getcwd.m4's job.
47984 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
47985 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
47987 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
47988 accommodate new getcwd.c.
47989 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
47990 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
47991 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
47992 that's all we need now.
47994 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47996 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
47997 argp-parse.c depends on getopt internals, that means we should
47998 always use our getopt, to be on the safe side.
47999 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
48000 order not to spoil the result of an eventual previous invocation
48001 of gl_GETOPT_SUBSTITUTE.
48003 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48005 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
48006 redefinition warnings. To avoid them, include the defines
48007 in `#if !defined __need_getopt ... #endif'. The only place
48008 where __getopt_argv_const is used is in definitions
48009 of getopt_long and getopt_long_only below, which are as well
48010 protected by `#ifndef __need_getopt'.
48011 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
48012 __need_getopt after including <stdio.h> and <unistd.h> These
48013 headers might have defined it.
48015 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
48017 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
48019 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
48021 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
48022 (futimens): New function, which uses futimes if available.
48023 (futimens, utimens): Support timespec==NULL, with same semantics
48024 as utime and utimens.
48025 * lib/utimens.h (futimens): New decl.
48027 2004-11-23 Jim Meyering <jim@meyering.net>
48029 * lib/getopt_.h: Remove trailing blanks.
48031 2004-11-23 Jim Meyering <jim@meyering.net>
48033 * lib/__fpending.c: Add comment.
48035 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
48037 * modules/canonicalize (Depends-on): Add xreadlink.
48038 Problem reported by James Youngman.
48040 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
48042 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
48044 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
48045 optopt): Use them instead of invoking ## directly; otherwise, the
48046 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
48048 2004-11-19 Bruno Haible <bruno@clisp.org>
48050 * lib/strtok_r.c: Move comments from here...
48051 * lib/strtok_r.h: ... to here.
48053 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
48055 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
48056 implementations that mishandle size_t overflow.
48058 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
48060 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
48061 might fail. Problem reported by Yoann Vandoorselaere.
48062 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
48063 implementations that mishandle size_t overflow.
48065 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
48067 * modules/canon-host (Depends-on): Add strdup.
48069 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
48071 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
48073 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
48075 * lib/canon-host.c: Include "strdup.h".
48076 (canon_host): Use getaddrinfo if available, so that IPv6 works.
48077 Use strdup instead of malloc/strcpy to duplicate strings.
48079 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
48080 (human_space_before_unit): New constant.
48081 * lib/human.c (human_readable): Support it.
48083 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
48084 (xgetcwd): Set errno correctly when failing.
48085 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
48086 the failure is actually due to a PATH_MAX problem.
48088 Further getopt changes to make it more likely that glibc will
48089 buy the changes back.
48090 * lib/getopt.c (POSIXLY_CORRECT): New constant.
48091 (getopt): Use it, so to preserve glibc semantic
48092 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
48093 when compiling for libc.
48094 * lib/getopt_.h (__getopt_argv_const): Bring it back.
48095 (getopt_long, getopt_long_only): Use it.
48097 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
48098 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
48099 (getopt): Argv is now char * const *, as per standard.
48100 (_getopt_internal_r, _getopt_internal): Argv is now char **,
48101 not char *__getopt_argv_const *.
48102 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
48103 _getopt_long_only_r): Likewise.
48104 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
48105 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
48106 _getopt_long_r, _getopt_long_only_r): Likewise.
48107 * lib/getopt_.h (__getopt_argv_const): Remove.
48108 (getopt): Argv is now char * const *, as per standard.
48110 * lib/getdate.y (tORDINAL): New token.
48111 (day, relunit): Allow it for relative times.
48112 (relative_time_table): Use tORDINAL for ordinals.
48114 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
48116 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
48117 Document that "second" isn't allowed as an ordinal number.
48119 2004-11-16 Jim Meyering <jim@meyering.net>
48121 * modules/closeout (Depends-on): Add fpending.
48123 2004-11-15 Jim Meyering <jim@meyering.net>
48125 * lib/closeout.c: Include "__fpending.h" once again.
48126 Include <stdbool.h>.
48127 (close_stdout): Don't fail just because stdout was closed initially,
48128 since some programs don't write to stdout in the normal course of
48129 operation (other than --version and --help), and we don't want this
48130 function to make e.g. `touch file >&-' fail.
48131 But do fail if it was closed and someone has tried to write to it.
48132 E.g., `printf foo >&-' must fail.
48134 2004-11-13 Jim Meyering <jim@meyering.net>
48136 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
48138 2004-11-12 Simon Josefsson <jas@extundo.com>
48140 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
48141 small doc fix is still pending.
48143 2004-11-11 Simon Josefsson <jas@extundo.com>
48145 * modules/strtok_r: New file.
48147 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48150 2004-11-11 Simon Josefsson <jas@extundo.com>
48152 * m4/strtok_r.m4: New file.
48154 * m4/getopt.m4: Replace opterr.
48156 2004-11-11 Simon Josefsson <jas@extundo.com>
48158 * lib/strtok_r.h, strtok_r.c: New file.
48160 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
48162 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
48163 of replacing opterr, getopt, etc. This should handle the
48164 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
48166 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
48168 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
48169 we can stop lying to compilers about the constness of argv when we
48170 are compiled outside glibc.
48171 (getopt, getopt_long, getopt_long_only): Use it.
48172 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
48173 _getopt_internal, getopt): Likewise.
48174 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
48175 _getopt_long_only_r): Likewise.
48176 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
48177 _getopt_long_r, _getopt_long_only_r): Likewise.
48179 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
48180 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
48181 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
48182 the other external symbols.
48183 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
48184 declaration, since the above renaming now works around collisions.
48186 2004-11-11 Jim Meyering <jim@meyering.net>
48188 * lib/linebreak.c: Remove trailing blanks.
48189 * lib/alloca_.h: Likewise.
48190 * lib/acosl.c: Likewise.
48191 * lib/euidaccess.c: Likewise.
48192 * lib/allocsa.h: Likewise.
48194 2004-11-10 Simon Josefsson <jas@extundo.com>
48196 * m4/getaddrinfo.m4: New file.
48198 2004-11-10 Simon Josefsson <jas@extundo.com>
48200 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
48202 2004-11-10 Simon Josefsson <jas@extundo.com>
48204 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
48207 * modules/getaddrinfo: New file.
48209 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
48211 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
48213 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
48215 * lib/mktime.c (SHR): New macro, which is a portable
48216 substitute for >> that should work even on Crays.
48217 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
48218 Problem reported by Mark D. Baushke in
48219 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
48220 * lib/getdate.y (SHR): Likewise.
48222 * lib/strftime.c (SHR): Likewise.
48224 * lib/quotearg.c (struct quoting_options): Use unsigned int for
48225 quote_these_too, so that right shifts are well defined. All uses
48228 2004-11-10 Jim Meyering <jim@meyering.net>
48230 Ensure that no close failure goes unreported.
48231 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
48232 return early when it seems there's nothing to flush.
48233 Don't include __fpending.h.
48235 2004-11-10 Jim Meyering <jim@meyering.net>
48237 * modules/closeout (Depends-on): Remove fpending.
48239 2004-11-10 Jim Meyering <jim@meyering.net>
48241 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
48243 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
48245 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
48247 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
48248 and AC_REQUIRE when possible, to avoid duplicate checks.
48249 Check for <wchar.h>.
48251 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
48253 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
48255 2004-11-09 Bruno Haible <bruno@clisp.org>
48257 * m4/sockpfaf.m4: New file.
48259 2004-11-05 Bruno Haible <bruno@clisp.org>
48261 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
48262 Reported by Mark D. Baushke <mdb@cvshome.org>.
48264 2004-11-04 Bruno Haible <bruno@clisp.org>
48266 2004-09-11 Bruno Haible <bruno@clisp.org>
48267 * allocsa.valgrind: New file.
48268 2004-02-06 Bruno Haible <bruno@clisp.org>
48269 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
48270 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
48271 Reported by Christopher Seip <chris.seip@hp.com>.
48273 2004-11-04 Bruno Haible <bruno@clisp.org>
48275 * modules/allocsa (Files): Add lib/allocsa.valgrind.
48276 (Makefile.am): Distribute it.
48278 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
48280 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
48281 with errno == ERANGE if the buffer is too small.
48282 Problem reported by Mark D. Baushke.
48284 2004-11-03 Albert Chin <china@thewrittenword.com>
48285 Paul Eggert <eggert@cs.ucla.edu>
48287 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
48288 equivalent, substitute $ac_type for equivalent type rather than
48289 blindly using uint32_t *always* which won't work if uint32_t is not
48290 available. Define _UINT32_T to work around typedef of uint32_t if
48291 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
48294 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
48296 * m4/jm-macros.m4: Sync from coreutils.
48297 (gl_MACROS): Check for mbrlen, for pathchk.
48298 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
48300 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
48302 * lib/xreadlink.c (MAXSIZE): New macro.
48303 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
48304 size does not exceed MAXSIZE. Avoid cast.
48305 As suggested by Mark D. Baushke in
48306 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
48307 if readlink fails with buffer size just under MAXSIZE, try again
48310 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
48312 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
48314 2004-11-02 Derek R. Price <derek@ximbiot.com>
48315 and Paul Eggert <eggert@cs.ucla.edu>
48317 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
48318 (get_date): Overparenthesize to avoid GCC warning.
48320 2004-11-02 Bruno Haible <bruno@clisp.org>
48322 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
48325 2004-11-02 Bruno Haible <bruno@clisp.org>
48327 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
48328 function returns void.
48330 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
48332 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
48333 fflush_unlocked, flockfile, funlockfile, funlockfile,
48334 fputs_unlocked, putc_unlocked.
48336 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
48338 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
48339 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
48342 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
48344 * modules/getdate (Files): Add doc/getdate.texi.
48345 (Depends-on): Add setenv, xalloc.
48347 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
48349 * lib/getdate.y: Add support for TZ="foo" within a date string.
48350 Fix some bugs near time_t boundaries. Reject dates with
48351 out-of-range components, e.g., "Sept 31".
48352 Include <stdlib.h>, "setenv.h", "xalloc.h".
48353 (ISDIGIT_LOCALE): Remove; unused.
48354 Note that the TZ and time functions used here are not reentrant.
48355 (mktime_ok, get_tz): New functions.
48356 (TZBUFSIZE): New constant.
48357 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
48358 This requires that we sometimes generate our own TZ="XXX..." setting.
48360 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
48362 * doc/getdate.texi: New file, from coreutils with modifications for
48363 the new TZ parsing.
48365 2004-10-27 Derek R. Price <derek@ximbiot.com>
48367 * lib/mktime.c (not_equal_tm): Remove redundant check.
48369 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
48371 * modules/regex (lib_SOURCES): Add regex.c.
48372 Reported by James Youngman in
48373 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
48375 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
48377 * lib/getdate.y: Use Bison 1.875 features, and some minor
48378 code cleanups. This change does not affect semantics.
48379 Don't include <stdlib.h>; no longer needed.
48380 Don't include unlocked-io.h; only the "#if TEST" code uses
48381 stdio, and performance isn't crucial there.
48382 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
48383 Bison 1.875 features as described below.
48384 All uses of "PC." replaced by "pc->".
48385 (YYSTYPE): Add a forward declaration.
48386 (yylex, yyerror): Use full prototypes in forward decls.
48387 Use "%pure-parser" rather than obsolescent "%pure_parser".
48388 Use %parse-param and %lex-param instead of obsolescent
48389 YYPARSE_PARAM and YYLEX_PARAM.
48390 (meridian_table, month_and_day_table, time_units_table,
48391 relative_time_table, time_zone_table, military_table,
48392 lookup_zone, lookup_word, get_date):
48393 Use NULL instead of 0 where appropriate.
48394 (to_hour): Avoid abort (), to avoid a dependency on
48396 (yyerror, yylex): Now accepts parser_control * arg.
48397 (main) [TEST]: Use '\0' rather than 0 for char.
48399 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
48401 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
48403 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
48405 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
48406 It's now the caller's responsibility to handle the case where
48407 !HAVE_GETPAGESIZE && !defined getpagesize.
48409 * lib/mktime.c (leapyear): Arg is long int, not int.
48411 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
48413 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
48415 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
48417 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
48418 missing. Problem reported by James Youngman.
48420 2004-10-16 Simon Josefsson <jas@extundo.com>
48422 * gnulib-tool: Fix comments. Fix parse problem.
48423 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
48425 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
48427 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
48428 implementation of getopt_long. Problem reported by Alexander Taler in:
48429 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
48431 2004-10-15 Bruno Haible <bruno@clisp.org>
48433 * gnulib-tool: Untabify. Initialize supplied_libname.
48434 (func_usage): More homogenous output.
48435 (func_modules_transitive_closure, func_modules_to_filelist,
48436 func_emit_lib_Makefile_am): New functions.
48437 (func_import): New function, extracted from big case statement. Use
48438 func_get_license, func_modules_transitive_closure,
48439 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
48440 opt_lgpl. Don't use test -a, as it's not portable.
48441 (func_create_testdir): Use func_modules_transitive_closure,
48442 func_modules_to_filelist, func_emit_lib_Makefile_am.
48444 2004-10-15 Bruno Haible <bruno@clisp.org>
48446 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
48448 2004-10-15 Bruno Haible <bruno@clisp.org>
48450 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
48451 the portions belonging to each module.
48452 Suggested by Derek Robert Price <derek@ximbiot.com>.
48454 2004-10-12 Simon Josefsson <jas@extundo.com>
48456 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
48457 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
48460 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
48462 * modules/vsnprintf: New file.
48464 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
48466 * m4/vsnprintf.m4: New file.
48468 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
48470 * lib/vsnprintf.h: New file.
48471 * lib/vsnprintf.c: New file.
48473 2004-10-11 Bruno Haible <bruno@clisp.org>
48475 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
48478 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
48480 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
48482 2004-10-07 Bruno Haible <bruno@clisp.org>
48484 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
48485 fits into the provided buffer.
48487 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
48489 * lib/diacrit.c, diacrit.h: Add GPL notice.
48491 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
48493 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
48494 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
48495 This avoids a potential constant-folding bug.
48497 2004-10-05 Bruno Haible <bruno@clisp.org>
48499 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
48500 for the declaration of strsep.
48502 2004-10-05 Bruno Haible <bruno@clisp.org>
48504 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
48506 2004-10-04 Simon Josefsson <jas@extundo.com>
48508 * modules/memmem: New file.
48509 * tests/test-memmem.c: New file.
48510 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
48512 2004-10-04 Simon Josefsson <jas@extundo.com>
48514 * m4/memmem.m4: New file.
48516 2004-10-04 Simon Josefsson <jas@extundo.com>
48518 * lib/memmem.h: New file.
48519 * lib/memmem.c: New file, taken from glibc.
48521 2004-10-04 Simon Josefsson <jas@extundo.com>
48523 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
48524 '#ifdef USE_UNLOCKED_IO'.
48526 2004-10-04 Simon Josefsson <jas@extundo.com>
48528 * config/srclist.txt: Add memmem from glibc.
48530 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48532 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
48534 * modules/argmatch, modules/argp, modules/closeout, modules/error,
48535 modules/exclude, modules/getdate, modules/getline,
48536 modules/getndelim2, modules/getpass, modules/getpass-gnu,
48537 modules/getusershell, modules/linebuffer, modules/md5,
48538 modules/mountlist, modules/posixtm, modules/readtokens,
48539 modules/readutmp, modules/regex, modules/sha1,
48540 modules/version-etc, modules/yesno:
48541 Remove dependency on unlocked-io.
48543 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48545 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
48547 * m4/unlocked-io.m4: Add copyright notice.
48548 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
48550 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48552 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
48553 * lib/xmalloc.c (xmemdup): Likewise.
48554 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
48555 XFREE): Remove these long-obsolescent macros.
48556 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
48557 * lib/xstrdup.c: Remove.
48559 * lib/regex.c (re_comp): Cast gettext return value to char *,
48560 Problem reported by Martin Neitzel via Mark D. Baushke.
48562 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
48564 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
48565 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
48566 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
48567 regex.c, sha1.c, version-etc.c, yesno.c:
48568 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
48569 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
48570 the includer's responsibility.
48572 Sync from coreutils.
48574 * lib/modechange.c (mode_compile): Don't decrement a pointer that
48575 points to the start of a string, as the C Standard says the
48576 resulting behavior is undefined.
48578 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
48579 simple -> simple_backups, numbered_existing ->
48580 numbered_existing_backups, numbered -> numbered_backups
48581 to avoid shadowing problems. All uses changed.
48582 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
48583 * lib/backupfile.c (check_extension, numbered_backup):
48584 Rename locals to avoid shadowing 'basename'.
48585 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
48588 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
48589 * lib/.cvsignore: Add getopt.h.
48591 2004-10-04 Bruno Haible <bruno@clisp.org>
48593 * modules/README: New file.
48594 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
48597 2004-10-02 Jim Meyering <jim@meyering.net>
48599 * lib/dirfd.h, getpagesize.h: Add copyright notice.
48601 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
48603 * modules/strsep: New file.
48605 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
48607 * m4/strsep.m4: New file.
48609 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
48611 * lib/strsep.h: New file.
48612 * lib/strsep.c: New file.
48614 2004-10-01 Simon Josefsson <jas@extundo.com>
48616 * lib/snprintf.c (snprintf): Handle size==0.
48618 2004-10-01 Simon Josefsson <jas@extundo.com>
48619 Bruno Haible <bruno@clisp.org>
48621 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
48622 (snprintf): Declare 'args'.
48624 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
48626 * lib/snprintf.c: Remove comments as to why each header is needed.
48628 2004-10-01 Bruno Haible <bruno@clisp.org>
48630 * MODULES.html.sh: Add strsep.
48632 2004-09-30 Simon Josefsson <jas@extundo.com>
48634 * modules/snprintf: New file.
48636 2004-09-30 Simon Josefsson <jas@extundo.com>
48638 * m4/snprintf.m4: New file.
48640 2004-09-30 Simon Josefsson <jas@extundo.com>
48642 * lib/snprintf.h, lib/snprintf.c: New files.
48644 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48646 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
48647 (hol_entry_help): Never translate an empty string.
48648 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
48649 * lib/argp.h (OPTION_NO_TRANS): New option.
48651 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
48653 * modules/argp (Maintainer): Replace Simon Josefsson
48654 by Sergey Poznyakoff.
48656 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
48658 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
48659 changes merged back into glibc.
48661 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
48663 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
48665 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
48667 * lib/xvasprintf.c: Include xalloc.h.
48668 (xvasprintf): Use xalloc_die, not xmalloc_die.
48670 2004-09-29 Bruno Haible <bruno@clisp.org>
48672 * modules/alloca-opt: New file, derived from modules/alloca.
48673 * modules/allocsa: Depend on alloca-opt instead of alloca.
48674 * modules/setenv: Likewise.
48675 * modules/vasnprintf: Likewise.
48676 * MODULES.html.sh: Add alloca-opt.
48678 2004-09-28 Simon Josefsson <jas@extundo.com>
48680 * gnulib-tool: New parameter --lgpl, to asseert that modules are
48681 LGPL, and to replace license template from GPL to LGPL.
48683 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
48685 * modules/dummy: Change license to LGPL.
48687 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
48689 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
48691 2004-09-24 Simon Josefsson <jas@extundo.com>
48693 * modules/minmax (License): Change from GPL to LGPL.
48695 2004-09-23 Simon Josefsson <jas@extundo.com>
48697 * gnulib-tool (--import): Typo.
48699 2004-09-23 Simon Josefsson <jas@extundo.com>
48701 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
48703 2004-09-22 Bruno Haible <bruno@clisp.org>
48705 * modules/*: Add 'License' field.
48706 * gnulib-tool: Accept --extract-license option.
48707 (func_get_license): New function.
48709 2004-09-21 Bruno Haible <bruno@clisp.org>
48711 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
48712 Reported by Simon Josefsson.
48714 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
48716 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
48717 gl_AC_TYPE_LONG_LONG.
48719 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
48721 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
48723 2004-09-18 Simon Josefsson <jas@extundo.com>
48724 and Paul Eggert <eggert@cs.ucla.edu>
48726 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
48727 calls with autoreconf. Define GL_LIB.
48729 2004-09-14 Karl Berry <karl@gnu.org>
48731 * config/srclist.txt: unsync setenv.c, sigh.
48733 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
48735 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
48736 Problem reported by Bruno Haible in:
48737 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
48739 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
48741 * config/srclist.txt: Comment out argp-pvh.c.
48743 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
48745 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
48746 in case some system header has #define'd it. Problem reported by
48747 Soeren D. Schulze in
48748 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
48750 2004-09-09 Karl Berry <karl@gnu.org>
48752 * regex.[ch]: delete from the root. These were supposed to be
48753 synced with emacs cvs, but this has not happened for about
48754 a year, and anyway nothing else uses emacs regex.[ch].
48755 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
48756 lib/regex[.ch] is untouched.
48758 2004-09-09 Bruno Haible <bruno@clisp.org>
48760 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
48762 2004-09-09 Bruno Haible <bruno@clisp.org>
48764 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
48766 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
48768 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
48770 * modules/xvasprintf: New file.
48771 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
48773 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
48775 * lib/xvasprintf.h: New file.
48776 * lib/xvasprintf.c: New file.
48777 * lib/xasprintf.c: New file.
48779 2004-09-08 Bruno Haible <bruno@clisp.org>
48781 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
48783 2004-09-08 Bruno Haible <bruno@clisp.org>
48785 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
48786 length is > INT_MAX.
48787 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
48790 2004-09-08 Bruno Haible <bruno@clisp.org>
48792 * lib/stdint_.h: New file, taken from GNU clisp.
48794 2004-09-08 Bruno Haible <bruno@clisp.org>
48795 Oskar Liljeblad <oskar@osk.mine.nu>
48797 * modules/stdint: New file.
48798 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
48800 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
48802 Import from coreutils.
48803 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
48804 strings on unbounded length. alloca's performance benefits aren't
48805 that important here.
48806 (V_STRDUP): Remove.
48807 (parse_with_separator): New function, with most of the internals
48808 of the old parse_user_spec. Allow user to omit both user and group,
48809 for compatibility with FreeBSD.
48810 Clone only the user name, not the entire spec.
48811 Do not set *uid, *gid unless entirely successful.
48812 Avoid memory leak in some failing cases.
48813 Fix regression for USER.GROUP reported by Dmitry V. Levin in
48814 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
48815 (parse_user_spec): Rewrite to use parse_with_separator.
48817 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
48819 * modules/userspec: Don't depend on alloca.
48821 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
48823 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
48825 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
48827 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
48828 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
48829 utimecmp, utimens, xnanosleep. Rename sha to sha1.
48831 2004-08-16 Simon Josefsson <jas@extundo.com>
48833 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
48834 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
48835 Add --dry-run for --import.
48836 Let user provided command line parameters override configure.ac
48839 2004-08-12 Simon Josefsson <jas@extundo.com>
48841 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
48842 as discussed with Paul Eggert in threads rooted at
48843 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
48845 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
48846 Before, the test was empty, and relied on ELIDE_CODE in source
48848 (gl_PREREQ_GETOPT): New macro.
48849 (gl_GETOPT): Use them.
48851 2004-08-12 Simon Josefsson <jas@extundo.com>
48853 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
48854 * lib/getopt_.h: Renamed from getopt.h.
48856 2004-08-12 Simon Josefsson <jas@extundo.com>
48858 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
48859 Change default library name from libfoo to libgnu.
48860 Now, if you have a configure.ac that says:
48863 gl_MODULES(error getopt etcetera)
48865 you can import all you need by running:
48866 ../gnulib/gnulib-tool --import
48868 * modules/getopt (Files): Rename getopt.h to getopt_.h.
48869 (Makefile.am): Rewrite, use logic from argz.
48870 (Include): Use <getopt.h> instead of "getopt.h".
48872 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48874 * modules/argp (Files): Add m4/unlocked-io.m4.
48875 (Depends-on): Add extensions.
48877 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48879 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
48880 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
48881 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
48882 Check for program_invocation_name, program_invocation_short_name,
48883 flockfile, funlockfile, features.h, _getopt_long_only_r.
48885 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48887 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
48888 its complicated substitute.
48889 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
48890 and program_invocation_name.
48891 (__argp_basename) [!_LIBC]: Remove; the only use was
48892 replaced by its body.
48893 (__argp_short_program_name): Change condition from
48894 !defined __argp_short_program_name to
48895 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
48896 to match argp-namefrob.h.
48897 (__argp_failure): Don't assume strerror_r returns char *.
48898 * lib/argp-parse.c (N_): Define unconditionally.
48899 (argp_default_options): Fill out initializers with 0 to avoid
48902 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
48904 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
48907 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
48909 Merge from coreutils.
48911 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
48913 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
48914 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
48916 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
48918 Merge from coreutils.
48920 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
48921 wmemchr or wmemcpy. Problem reported by Robert Dahlem
48922 for Reliant Unix 5.43.
48924 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
48925 (union fooround): Use uintmax_t, not long int.
48926 The rest is a merge from libc:
48927 [defined _LIBC]: Include <shlib-compat.h>.
48928 (_obstack) [defined _LIBC]: Remove after 2.3.4.
48930 * lib/settime.c (settime): Recode to avoid warning with
48933 * lib/strverscmp.c: Convert to UTF-8.
48935 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
48937 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48940 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
48942 * modules/xalloc-die: New file.
48943 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
48945 * modules/md5 (Files): Add m4/uint32_t.m4.
48946 * modules/sha1: Renamed from modules/sha.
48948 Rename lib/sha.h to lib/sha1.h.
48949 Rename lib/sha.c to lib/sha1.c.
48950 Rename m4/sha.m4 to m4/sha1.m4.
48951 (lib_SOURCES): Likewise.
48952 (configure.ac): Rename gl_SHA to gl_SHA1.
48953 (Include): sha.h -> sha1.h.
48955 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
48957 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
48958 * m4/sha1.m4: Renamed from sha.m4.
48959 (gl_SHA1): Renamed from gl_SHA. All uses changed.
48961 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
48963 * lib/obstack.h (obstack_empty_p):
48964 Don't assume that chunk->contents is suitably aligned.
48965 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
48966 Likewise. Problem reported by Benno in
48967 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
48969 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
48970 readable. This could be improved further but it'd take some work.
48972 2004-08-08 Simon Josefsson <jas@extundo.com>
48974 * modules/xgethostname (Depends-on): Remove exit and error (not
48977 * modules/getpass-gnu: Add getpass.h.
48978 (Depends-on): Add stdbool.
48979 * modules/getpass: Add getpass.h.
48981 2004-08-08 Simon Josefsson <jas@extundo.com>
48983 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
48984 Check getpass declaration.
48986 2004-08-08 Simon Josefsson <jas@extundo.com>
48988 * lib/xgethostname.c: Don't include error.h (not used).
48990 * lib/getpass.h: Add.
48991 * lib/getpass.c: Include getpass.h first.
48993 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
48995 * lib/xalloc-die.c: New file.
48996 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
48998 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
48999 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
49001 (_, N_, xalloc_die): Move to xalloc-die.c.
49002 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
49003 so that we needn't mess with xalloc_msg_memory_exhausted.
49005 * lib/sha1.h: Renamed from sha.h.
49006 (SHA1_H): Renamed from _SHA_H.
49007 (sha1_ctx): Renamed from sha_ctx.
49008 (sha1_init_ctx): Renamed from sha_init_ctx.
49009 (sha1_process_block): Renamed from sha_process_block.
49010 (sha1_process_bytes): Renamed from sha_process_bytes.
49011 (sha1_finish_ctx): Renamed from sha_finish_ctx.
49012 (sha1_read_ctx): Renamed from sha_read_ctx.
49013 (sha1_stream): Renamed from sha_stream.
49014 (sha1_buffer): Renamed from sha_buffer.
49015 * lib/sha1.c: Likewise; renamed from sha.c.
49016 Do not include <sys/types.h>.
49017 Include <stddef.h> rather than <stdlib.h>.
49019 2004-08-08 Bruno Haible <bruno@clisp.org>
49021 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
49022 FILESYSTEM_PREFIX_LEN.
49023 * lib/progreloc.c: Likewise.
49024 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
49026 2004-08-06 Simon Josefsson <jas@extundo.com>
49028 * modules/progname (Depends-on): Don't depend on stdbool.
49030 2004-08-06 Simon Josefsson <jas@extundo.com>
49032 * modules/getsubopt: New file.
49033 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49036 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
49038 More merge from coreutils.
49040 * m4/utimens.m4, m4/utimecmp.m4: New files.
49041 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
49042 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
49043 prereq.m4, sha.m4: Import changes from coreutils.
49045 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
49047 More merge from coreutils.
49048 * modules/raise, modules/readtokens0, modules/utimens:
49049 * modules/utimecmp, module/xnanosleep: New files.
49050 * modules/strftime: Add lib/strftime.h.
49051 Change include from <time.h> to "strftime.h".
49052 * modules/yesno: Add lib/yesno.h.
49053 * modules/backupfile: Remove lib/addext.c.
49054 * modules/euidaccess: Add stat-macros.h.
49055 * modules/canonicalize, modules/euidaccess,
49056 modules/filemode, modules/lchown, modules/makepath,
49057 modules/rmdir, modules/stat: Likewise.
49059 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
49062 * lib/argp-help.c (make_hol, hol_append): Don't assume that
49063 SIZE_MAX is a valid preprocessor constant.
49064 (__argp_basename): Change from "#ifndef _LIBC"
49065 to "#ifndef __argp_short_program_name", so that
49066 we don't compile these functions for tar.
49068 More merges from coreutils.
49069 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
49070 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
49071 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
49072 * lib/addext.c: Remove; no longer needed.
49073 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
49074 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
49075 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
49076 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
49077 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
49078 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
49079 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
49080 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
49081 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
49082 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
49083 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
49084 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
49085 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
49086 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
49087 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
49088 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
49089 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
49090 Import changes from coreutils.
49092 2004-08-05 Simon Josefsson <jas@extundo.com>
49094 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
49096 2004-08-05 Simon Josefsson <jas@extundo.com>
49098 * m4/getsubopt.m4: New file.
49100 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
49102 Merge from coreutils.
49104 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
49105 * m4/getcwd-path-max.m4: New files.
49107 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
49108 FILESYSTEM_PREFIX_LEN ->
49109 FILE_SYSTEM_PREFIX_LEN.
49110 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
49111 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
49112 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
49113 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
49115 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
49116 prerequisite modules now handle the DOS stuff.
49117 Don't check for unistd.h.
49119 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
49121 Merge from coreutils.
49123 * lib/.gdb-history: Remove; this doesn't belong here.
49125 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
49126 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
49127 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
49128 * lib/getcwd.c: New files.
49130 * lib/dirname.h: Include <stdbool.h>.
49131 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
49132 for consistency with POSIX terminology. All uses changed.
49133 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
49134 (strip_trailing_slashes): Use bool for booleans.
49135 * lib/stripslash.c (strip_trailing_slashes): Likewise.
49137 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
49138 sometimes returns a positive errno value even when it succeeds.
49139 (print_errno_message) [!LIBC]: Fall back on strerror if
49140 __strerror_r fails.
49142 * lib/path-concat.c (mempcpy): Don't define if a system header defines
49143 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
49144 (longest_relative_suffix): New function.
49145 (path_concat): Use it. Assume first argument is not NULL.
49146 Port to DOS. Omit redundant separators.
49147 Report an error instead of returning NULL.
49148 Use mempcpy instead of memcpy.
49149 (xpath_concat): Remove: not declared or used.
49151 * lib/same.h: Include <stdbool.h>
49152 (same_name): Return bool, not int.
49153 * lib/same.c (same_name): Likewise.
49154 (errno): Don't declare; we assume C89 or better now.
49156 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
49157 if not already defined.
49159 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
49160 * lib/dup-safer.c (errno): Likewise.
49162 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
49164 Merge from coreutils.
49165 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
49166 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
49167 * modules/path-concat: Don't depend on strdup.
49169 2004-08-03 Simon Josefsson <jas@extundo.com>
49171 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
49172 * lib/progname.h: Don't include stdbool.h.
49174 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
49176 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
49177 * MODULES.html.sh (func_all_modules): Remove fatal.
49179 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
49181 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
49183 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
49185 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
49188 2004-08-02 Simon Josefsson <jas@extundo.com>
49190 * lib/getsubopt.h: New file, with comments from Bruno Haible.
49191 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
49192 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
49194 2004-08-01 Simon Josefsson <jas@extundo.com>
49196 * lib/xgetdomainname.c: Include stdlib.h, for free().
49198 2004-07-19 Bruno Haible <bruno@clisp.org>
49200 * MODULES.html.sh (func_all_modules): Add dummy.
49202 2004-07-16 Simon Josefsson <jas@extundo.com>
49204 * modules/dummy: New file.
49206 2004-07-16 Simon Josefsson <jas@extundo.com>
49208 * lib/dummy.c: New file.
49210 2004-07-16 Bruno Haible <bruno@clisp.org>
49212 * lib/backupfile.h: Add extern "C" for C++.
49213 * lib/closeout.h: Likewise.
49214 * lib/copy-file.h: Likewise.
49215 * lib/findprog.h: Likewise.
49216 * lib/full-write.h: Likewise.
49217 * lib/pathname.h: Likewise.
49218 * lib/progname.h: Likewise.
49219 * lib/stpcpy.h: Likewise.
49220 * lib/stpncpy.h: Likewise.
49221 * lib/strcase.h: Likewise.
49222 * lib/strstr.h: Likewise.
49223 * lib/xalloc.h: Likewise.
49225 * lib/mbswidth.h: Add extern "C" for C++.
49226 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
49228 2004-07-13 Robert Millan <robertmh@gnu.org>
49230 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
49232 2004-07-09 Simon Josefsson <jas@extundo.com>
49234 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
49235 failed without this.)
49237 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
49239 * modules/chown (Files): Add lib/fchown-stub.c, since
49240 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
49242 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
49244 * lib/fchown-stub.c: New file.
49246 2004-06-24 Jim Meyering <jim@meyering.net>
49248 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
49250 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
49252 * modules/argz: Omit "#include".
49254 * MODULES.html.sh (func_all_modules): Add calloc, to match
49255 2004-06-01 addition of calloc module.
49257 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
49259 * m4/argz.m4: New file, which is autoupdated from libtool.
49261 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
49263 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
49266 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
49268 * config/srclist-update: Don't insist on "USA." before the
49269 close-comment, as libtool omits the period and puts the */ on a
49271 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
49272 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
49274 2004-06-22 Gary V. Vaughan <gary@gnu.org>
49276 * modules/argz: New file.
49277 * MODULES.html.sh (func_all_modules): Add argz.
49279 2004-06-12 Jim Meyering <jim@meyering.net>
49280 and Paul Eggert <eggert@cs.ucla.edu>
49282 * modules/hash (Files): Add lib/xalloc.h.
49283 * modules/pipe (Depends-on): Add wait-process.
49284 * modules/stat (Depends-on): Add xalloc.
49285 * modules/userspec (Files): Add lib/userspec.h.
49288 Upgrade from gettext-0.13.
49289 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
49290 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
49291 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
49293 2004-06-10 Jim Meyering <jim@meyering.net>
49295 * lib/calloc.c: New file.
49297 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
49299 * lib/getdate.y (yylex): Allow space between sign and number.
49300 Problem reported by Dan Jacobson.
49302 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
49304 Merge from coreutils CVS.
49306 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
49307 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
49308 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
49309 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
49310 xstrtol.m4: Fix copyright date and/or serial number.
49312 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
49313 See if we need an fchown replacement.
49314 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
49315 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
49316 and use the replacement function if we detect either defect.
49318 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
49321 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
49322 and Jim Meyering <jim@meyering.net>
49324 Merge from coreutils CVS.
49326 * lib/stat-macros.h: New file, with contents from file-type.h
49327 and coreutils' system.h.
49328 * lib/file-type.c: Include "stat-macros.h".
49329 * lib/file-type.h (file_type): Move all macro definitions to new file,
49332 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
49333 Wrap old code with this conditional.
49334 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
49335 function that does not dereference symlinks.
49336 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
49338 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
49339 dependency problems.
49340 (xreadlink): Accept new arg SIZE, for efficiency.
49341 All decls and uses changed.
49342 * lib/xreadlink.h: Include <stddef.h>, for size_t.
49344 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
49345 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
49347 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
49350 2004-06-01 Jim Meyering <jim@meyering.net>
49352 * m4/calloc.m4: New file.
49354 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
49356 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
49357 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
49358 Also, fix a typo in a diagnostic.
49360 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
49362 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
49363 or AC_FUNC_REALLOC.
49365 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
49367 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
49368 macros to be defined.
49369 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
49370 the allocator returns NULL because the requested size is zero.
49372 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
49374 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
49375 var. Add comment explaining why libc still defines it. This
49376 merges the following patch from glibc:
49377 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
49379 2004-05-20 Andreas Schwab <schwab@suse.de>
49381 * m4/free.m4: Replace free if it not known to work, not the other
49384 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
49386 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
49387 present in glibc since revision 1.1 of this file.
49388 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
49389 obstack_alignment_mask, obstack_alloc, obstack_base,
49390 obstack_blank, obstack_blank_fast, obstack_chunk_size,
49391 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
49392 obstack_grow0, obstack_init, obstack_int_grow,
49393 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
49394 obstack_next_free, obstack_object_size, obstack_ptr_grow,
49395 obstack_ptr_grow_fast, obstack_room): Remove declarations of
49396 nonexistent functions.
49398 2004-05-18 Karl Berry <karl@gnu.org>
49400 * config/srclist.txt: break link for vasnprintf.c.
49402 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
49404 Port obstack to the AS/400, where pointers are 16 bytes wide and
49405 you cannot cast an integer to a valid pointer. This patch is
49406 currently waiting to be integrated into glibc; see
49407 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
49409 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
49410 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
49411 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
49412 (struct obstack): temp member is now a union of a pointer and
49413 an integer, instead of an integer. All integer uses changed.
49414 This does not affect the physical layout of struct obstack,
49415 except on hosts (like the AS/400) where the size or alignment of
49416 void * is greater than that of ptrdiff_t.
49417 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
49418 __STDC__)]: Store temporary in pointer member of union, not
49420 * lib/obstack.c: Include <stddef.h>, for offsetof.
49421 (struct fooalign): Remove; it doesn't need a name.
49422 (union fooround): Change double to long double, and add void *.
49423 (DEFAULT_ALIGNMENT): Use offsetof to compute.
49424 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
49425 not a macro. Hence the values are always int; so remove all
49426 casts-to-int in uses.
49428 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
49430 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
49431 we can get this patch merged into glibc.
49433 2004-05-17 Derek R. Price <derek@ximbiot.com>
49434 Paul Eggert <eggert@cs.ucla.edu>
49436 * m4/argp: Depend on alloca.
49438 2004-05-17 Derek R. Price <derek@ximbiot.com>
49439 Paul Eggert <eggert@cs.ucla.edu>
49441 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
49444 2004-05-17 Bruno Haible <bruno@clisp.org>
49446 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
49447 precision that consists of a '.' followed by an empty digit string.
49448 Patch by Tor Lillqvist <tml@iki.fi>.
49450 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
49452 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
49453 for backward compatibility with older code. We need our own
49454 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
49455 it under some other name, and our alloca.h will define it.
49457 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
49458 Derek Price <derek@ximbiot.com>
49460 * lib/alloca.c: Include <alloca.h>, to get our interface.
49461 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
49462 include <alloca.h> first. Use C89 prototype for alloca; this
49463 requires including <stddef.h> for size_t. Use extern "C" if C++.
49464 Use #elif for simplicity, since we can assume C89 now.
49465 Don't try to source the system alloca.h since it will not be found
49466 and to prevent recursively including its replacement.
49467 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
49468 * lib/regex.c: Likewise.
49470 2004-05-16 Derek Price <derek@ximbiot.com>
49471 Paul Eggert <eggert@cs.ucla.edu>
49473 getline cleanup. This changes the getndelim2 API: both order of
49474 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
49477 * lib/getline.c: Don't include stddef.h or stdio.h, since our
49478 interface does that.
49479 (getline): Always use getdelim, so that we don't have two
49480 copies of this code.
49481 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
49483 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
49484 (GETNDELIM2_MAXIMUM): New macro.
49485 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
49486 instead of the old practice of delim2==0. All callers changed.
49487 Return -1 on overflow, instead of returning junk.
49488 Do not set *linesize unless allocation succeeds.
49489 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
49490 that we include sys/types.h.
49491 * lib/getnline.h: Likewise.
49492 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
49493 (getndelim2): Reorder arguments.
49494 * lib/getnline.c (getnline, getndelim):
49495 Don't discard the NMAX argument.
49496 (getnline): Invoke getndelim, to avoid code duplication.
49497 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
49498 of (size_t) -1 by callers of the getnline family.
49500 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
49502 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
49503 Check for gettimeofday.
49504 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
49505 Check for settimeofday, stime.
49507 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
49509 * lib/nanosleep.c (suspended): Change its type from int to
49510 sig_atomic_t volatile.
49511 (first_call): Make it private to rpl_nanosleep, and have it
49512 be zero initially as that's a bit faster.
49513 (my_usleep): Round up fractional times instead of truncating them,
49514 as this is the usual meaning for 'sleep'.
49516 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
49518 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
49519 (ENOSYS): Define if not defined.
49520 (settime): Fall back on stime if it exists and settimeofday fails.
49521 But don't bother with fallbacks if a method fails with errno == EPERM.
49523 2004-05-11 Jim Meyering <jim@meyering.net>
49525 Prior to this change, the save_cwd caller required read access to the
49526 current directory on most systems (ones with the fchdir function).
49528 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
49529 fails, try write-only, and finally, resort to using xgetcwd.
49531 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
49533 * lib/obstack.c, obstack.h: Import changes from libc.
49535 2004-04-28 Bruno Haible <bruno@clisp.org>
49537 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
49538 also implicitly appends .exe to executables.
49539 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
49540 accepts Windows pathnames.
49541 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
49542 Treat Cygwin like Windows, since it now accepts Windows pathnames.
49543 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
49544 Treat Cygwin like Windows, since it now accepts Windows pathnames.
49545 Reported by Derek Robert Price <derek@ximbiot.com>.
49547 2004-04-21 Karl Berry <karl@gnu.org>
49549 * config/srclist.txt (localcharset.c): break sync.
49551 2004-04-20 Paul Eggert <eggert@twinsun.com>
49553 * m4/host-os.m4: Add a copyright notice.
49555 2004-04-20 Jim Meyering <jim@meyering.net>
49557 Change UTILS_ to gl_ in AC_DEFINE'd names.
49558 Change utils_- and jm_-prefixed variables, too.
49559 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
49560 UTILS_FUNC_MKDIR_TRAILING_SLASH.
49561 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
49563 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
49564 Don't emit trailing blanks.
49565 Also rename jm_-prefixed variables to have gl_ prefix.
49567 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
49568 Also rename jm_-prefixed variables to have gl_ prefix.
49570 * m4/jm-macros.m4: Reflect the renamings.
49571 * m4/prereq.m4: Likewise.
49573 2004-04-20 Jim Meyering <jim@meyering.net>
49575 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
49578 2004-04-20 Jim Meyering <jim@meyering.net>
49579 Bruno Haible <bruno@clisp.org>
49581 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
49582 memory when realloc fails.
49584 2004-04-19 Jim Meyering <jim@meyering.net>
49586 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
49587 now that readutmp.c may call `free (0)'.
49589 2004-04-19 Bruno Haible <bruno@clisp.org>
49591 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
49592 * m4/inttypes_h.m4: Likewise.
49593 * m4/stdint_h.m4: Likewise.
49594 * m4/intmax_t.m4: Likewise.
49595 * m4/uintmax_t.m4: Likewise.
49597 2004-04-18 Jim Meyering <jim@meyering.net>
49599 * m4/prereq.m4: Don't forbid jm_ prefix.
49601 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
49602 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
49603 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
49604 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
49605 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
49606 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
49607 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
49608 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
49609 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
49610 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
49611 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
49612 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
49613 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
49614 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
49615 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
49616 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
49617 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
49618 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
49619 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
49621 2004-04-18 Jim Meyering <jim@meyering.net>
49623 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
49624 failure, don't leak memory and do call END_UTMP_ENT.
49626 2004-04-16 Jim Meyering <jim@meyering.net>
49628 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
49629 coreutils' stat program.
49630 (gl_PREREQ): Don't require jm_PREREQ_STAT.
49632 2004-04-11 Paul Eggert <eggert@twinsun.com>
49634 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
49636 (CHAR_BIT): Remove, since we assume C89.
49637 Include <stdint.h> if available, as per current Autoconf CVS advice.
49639 2004-03-31 Jim Meyering <jim@meyering.net>
49641 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
49642 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
49643 * m4/xalloc.m4: Likewise.
49645 2004-03-30 Paul Eggert <eggert@twinsun.com>
49647 Merge from coreutils.
49649 * m4/inttostr.m4: New file.
49650 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
49651 Require AM_STDBOOL_H and gl_TIMESPEC instead.
49652 Require gl_CLOCK_TIME.
49653 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
49655 2004-03-30 Paul Eggert <eggert@twinsun.com>
49657 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
49658 not bool, to be more consistent with Unix conventions.
49659 Suggested by Bruno Haible.
49661 Merge from coreutils.
49663 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
49664 * lib/umaxtostr.c: New files.
49666 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
49667 the usual <time.h> dance.
49668 (get_date): Change signature to support fractional time stamps.
49669 All callers changed.
49670 * lib/getdate.y: Include "getdate.h" first, as we can now
49671 assume C89 and don't need to worry about 'const'.
49672 Similarly, include "unlocked-io.h" near start, not in middle.
49673 Include <limits.h>.
49674 (textint.value): Use long int rather than int.
49675 (textint.digits): Use size_t rather than int.
49676 (BILLION, LOG10_BILLION): New constants.
49677 (parser_control): New member rel_ns. Members day_ordinal,
49678 time_zone, month, day, hour, minutes, rel_year, rel_month,
49679 rel_day, rel_hour, rel_minutes, rel_seconds
49680 are now long int, not int. Member seconds is now struct timespec,
49681 not int. New member timespec_seen. Members dates_seen, days_seen,
49682 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
49684 (%union.intval): Now long int, not int.
49685 New member timespec.
49686 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
49687 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
49688 (spec): Now is a timespec or an item list.
49689 (timespec, items): New nonterminals.
49690 (time, rel, relunit, number, get_date):
49691 Add support for fractional seconds.
49692 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
49693 (gmtime, localtime, mktime): Remove decls; not needed with C89.
49694 (to_hour): First arg is now long int, not int.
49695 (to_year): Returns long int, not int.
49696 Don't treat year -70 like 70.
49697 (tm_diff): Returns long int, not int.
49698 (lookup_word): Use bool instead of int when appropriate.
49699 (yylex): Use size_t for count, not int.
49700 Detect overflow when parsing large integer constants.
49701 Add support for fractions.
49702 (get_date): Make pointers 'const' if possible.
49703 Use more-portable code to detect integer overflow.
49704 (main) [TEST]: Adjust to above changes. Test for localtime failure.
49705 Don't use ctime; it's not reliable if the year has >4 digits.
49707 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
49708 This is for compatibility with BSD.
49710 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
49711 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
49712 From coreutils' system.h.
49714 * lib/userspec.c: Don't include "posixver.h".
49715 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
49716 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
49717 compatible extension. Simplify code by removing a boolean int
49718 that was always nonzero if a string was nonnull.
49720 2004-03-30 Jim Meyering <jim@meyering.net>
49722 Merge from coreutils.
49724 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
49725 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
49726 on some systems one must include <grp.h> before it.
49727 Reported by Christian Krackowizer.
49729 2004-03-30 Jim Meyering <jim@meyering.net>
49731 Merge from coreutils.
49733 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
49735 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
49736 an empty input stream.
49738 * lib/readtokens.c: Include <stdbool.h>.
49739 (readtoken): Use `size_t' rather than int/long.
49740 All callers adjusted.
49741 Use `bool' rather than `int' where appropriate.
49742 Use memset rather than an explicit loop.
49743 Use x2nrealloc rather than xrealloc.
49744 Allow the use of `\0' as a delimiter.
49745 (readtokens): Likewise.
49746 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
49748 2004-03-30 Jim Meyering <jim@meyering.net>
49750 * m4/realloc.m4: Remove file, since now it does no more than
49751 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
49752 the `configure.ac' section of module/realloc.
49753 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
49755 2004-03-30 Bruno Haible <bruno@clisp.org>
49757 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
49760 2004-03-29 Paul Eggert <eggert@twinsun.com>
49762 Merge changes to getloadavg.c from coreutils and Emacs.
49764 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
49765 Define to an expression, not to the empty string.
49766 Include cloexec.h and xalloc.h.
49767 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
49768 Use set_cloexec_flag rather than rolling our own.
49769 * lib/cloexec.c, lib/cloexec.h: New files.
49771 2004-03-29 Paul Eggert <eggert@twinsun.com>
49773 * m4/cloexec.m4: New file.
49775 2004-03-18 Paul Eggert <eggert@twinsun.com>
49777 * lib/getopt.h: Sync with libc CVS.
49779 2004-03-18 Paul Eggert <eggert@twinsun.com>
49780 Bruno Haible <bruno@clisp.org>
49782 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
49785 2004-03-18 Paul Eggert <eggert@twinsun.com>
49786 Bruno Haible <bruno@clisp.org>
49788 * lib/mbswidth.h: Include <wchar.h> only if
49789 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
49791 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
49793 2004-03-09 Paul Eggert <eggert@twinsun.com>
49795 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
49796 Sync with libc CVS.
49797 * lib/getopt_int.h: New file, also synced from libc.
49799 2004-03-09 Paul Eggert <eggert@twinsun.com>
49801 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
49802 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
49803 Bring back getopt.c, getopt.h, getopt1.c.
49805 2004-03-07 Paul Eggert <eggert@twinsun.com>
49807 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
49808 All uses changed. Check for sa_sigaction member; this fixes
49809 a bug first reported by Jason Andrade in
49810 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49812 2004-03-07 Paul Eggert <eggert@twinsun.com>
49814 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
49815 '#if' expressions. Unlike the code it replaces, it does not
49816 depend on (defined _SC_PAGESIZE). However, it does depend on
49817 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
49818 first reported by Jason Andrade in
49819 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
49821 2004-02-25 Simon Josefsson <jas@extundo.com>
49823 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
49825 2004-02-25 Simon Josefsson <jas@extundo.com>
49827 * lib/strdup.h: New file.
49828 * lib/strdup.c: Include it.
49829 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
49830 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
49832 2004-02-23 Karl Berry <karl@gnu.org>
49834 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
49835 (from fencepost.gnu.org:/gd/gnuorg).
49837 2004-02-23 Karl Berry <karl@gnu.org>
49839 * config/srclistvars.sh (GNUORG) [karl]: redefine.
49840 * config/srclist.txt: add maintain/standards documents.
49842 2004-02-18 Bruno Haible <bruno@clisp.org>
49844 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
49845 Reported by Derek Robert Price <derek@ximbiot.com>.
49847 2004-02-16 Karl Berry <karl@gnu.org>
49849 * config/mkinstalldirs, install-sh: update from automake.
49851 2004-02-06 Karl Berry <karl@gnu.org>
49853 * m4/po.m4: update from gettext 0.14.1.
49855 2004-02-06 Karl Berry <karl@gnu.org>
49857 * lib/config.charset: update from gettext 0.14.1.
49859 2004-02-05 Paul Eggert <eggert@twinsun.com>
49861 Add comments and code, prompted by suggestions from Bruno Haible
49863 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
49864 describing the enum quoting_style values.
49865 * lib/quotearg.c (quotearg_alloc): New function.
49866 (quotearg_buffer_restyled): Treat lone { and } as special.
49867 Treat = as special. Work around bug with older shells
49868 that "see" a '\' that is really the 2nd byte of a multibyte char.
49869 Quote empty string with shell_quoting_style.
49871 2004-02-03 Bruno Haible <bruno@clisp.org>
49873 * m4/pipe.m4: New file, from GNU gettext.
49875 2004-02-03 Bruno Haible <bruno@clisp.org>
49877 * lib/pipe.h: New file, from GNU gettext.
49878 * lib/pipe.c: New file, from GNU gettext.
49880 2004-01-27 Bruno Haible <bruno@clisp.org>
49882 * m4/execute.m4: New file, from GNU gettext.
49884 2004-01-27 Bruno Haible <bruno@clisp.org>
49886 * lib/execute.h: New file, from GNU gettext.
49887 * lib/execute.c: New file, from GNU gettext.
49888 * lib/w32spawn.h: New file, from GNU gettext.
49890 2004-01-24 Paul Eggert <eggert@twinsun.com>
49892 Merge from diffutils.
49894 * lib/file-type.c (file_type): Add typed memory objects.
49895 * lib/file-type.h (S_TYPEISTMO): New macro.
49897 * lib/c-stack.h (c_stack_action): Remove argv argument.
49898 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
49899 (die): Don't calculate message unless segv_action returns.
49900 (get_stack_location, min_address_from_argv, max_address_from_argv,
49901 volatile stack_base, volatile_stack_size): Remove.
49902 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
49903 that every segmentation violation is a stack overflow. (Ouch!)
49904 See Debian bug 136249 (still outstanding) for more info about why
49905 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
49907 2004-01-24 Paul Eggert <eggert@twinsun.com>
49909 Exit-status fix from coreutils.
49911 Use exit_failure consistently in place of EXIT_FAILURE,
49912 so that program exit statuses are consistent on failure.
49914 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
49915 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
49916 * lib/argmatch.h: Comment fix to match the above.
49917 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
49918 Now a macro referring to exit_failure, instead of a separate
49919 variable. Include "exitfail.h" to get it.
49920 * lib/xstrtol.h: Include "exitfail.h".
49921 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
49923 * lib/long-options.c (parse_long_options): Use prototype
49924 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
49927 2004-01-21 Jim Meyering <jim@meyering.net>
49929 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
49930 so as not to conflict with a different-sized __mktime_internal
49931 function in GNU libc.
49932 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
49933 Problem building statically-linked `ls' reported by Michael Brunnbauer.
49935 2004-01-20 Karl Berry <karl@gnu.org>
49937 * config/config.guess: update from config.
49939 * config/srclistvars.sh: GNUWWWLICENSES for karl.
49941 2004-01-20 Bruno Haible <bruno@clisp.org>
49943 Safer stack allocation.
49944 * lib/setenv.c: Include allocsa.h.
49945 (alloca): Remove fallback definition.
49946 (freea): Remove macro.
49947 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
49950 2004-01-20 Bruno Haible <bruno@clisp.org>
49952 * m4/eealloc.m4: New file, from GNU gettext.
49954 2004-01-20 Bruno Haible <bruno@clisp.org>
49956 * m4/allocsa.m4: New file, from GNU gettext.
49958 2004-01-20 Bruno Haible <bruno@clisp.org>
49960 * lib/xallocsa.h: New file, from GNU gettext.
49961 * lib/xallocsa.c: New file, from GNU gettext.
49963 2004-01-20 Bruno Haible <bruno@clisp.org>
49965 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
49967 2004-01-20 Bruno Haible <bruno@clisp.org>
49969 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
49970 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
49973 2004-01-20 Bruno Haible <bruno@clisp.org>
49975 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
49978 2004-01-20 Bruno Haible <bruno@clisp.org>
49980 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
49982 2004-01-20 Bruno Haible <bruno@clisp.org>
49984 * lib/eealloc.h: New file.
49986 2004-01-20 Bruno Haible <bruno@clisp.org>
49988 * lib/binary-io.h: Avoid warnings on Cygwin.
49990 2004-01-20 Bruno Haible <bruno@clisp.org>
49992 * lib/allocsa.h: New file, from GNU gettext.
49993 * lib/allocsa.c: New file, from GNU gettext.
49995 2004-01-18 Karl Berry <karl@gnu.org>
49997 * doc/gpl.texi, doc/lgpl.texi: new files.
49999 2004-01-18 Karl Berry <karl@gnu.org>
50001 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
50002 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
50004 2004-01-15 Paul Eggert <eggert@twinsun.com>
50006 Merge from coreutils.
50008 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
50009 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
50010 (gl_DEFAULT_POSIX2_VERSION): Move
50011 the documentation from 'configure' into 'config.hin',
50012 so that 'configure --help' isn't burdened by it and
50013 we don't have to worry about its formatting there.
50014 Reword the documentation so that it's more succinct
50015 and can be run together into a single paragraph.
50016 * m4/same.m4 (gl_SAME): Check for pathconf.
50018 2004-01-15 Paul Eggert <eggert@twinsun.com>
50020 Merge from coreutils.
50022 * lib/posixver.c: Include posixver.h.
50024 * lib/same.c: Include <stdbool.h>, <limits.h>.
50025 (_POSIX_NAME_MAX): Define if not defined.
50027 (same_name): If file names are silently truncated, report
50028 that the file names are the same if they are the same after
50029 the silent truncation.
50031 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
50032 conversion function.
50033 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
50034 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
50037 2004-01-15 Jim Meyering <jim@meyering.net>
50039 Merge from coreutils.
50041 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
50042 if no library is required.
50043 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
50044 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
50045 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
50046 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
50047 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
50048 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
50049 value, $ac_cv_search_crypt, if it's "none required".
50050 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
50051 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
50052 not gl_FUNC_GETLOADAVG.
50053 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
50054 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
50056 2004-01-15 Jim Meyering <jim@meyering.net>
50058 Merge from coreutils.
50060 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
50061 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
50062 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
50064 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
50065 optional configure-time default.
50067 * lib/version-etc.c (version_etc_copyright): Update copyright date.
50069 * lib/xreadlink.c (xreadlink): Correct outdated comment.
50071 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
50073 Merge from coreutils.
50075 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
50076 value, $ac_cv_search_nanosleep, if it's "none required".
50078 2004-01-14 Paul Eggert <eggert@twinsun.com>
50080 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
50081 with like-named macro in fnmatch.c.
50082 (EXT): Use an internal constant instead.
50084 Merge fnmatch patches from glibc.
50085 * lib/fnmatch.c (mbsinit): Remove define.
50086 Add libc_hidden_ver (__fnmatch, fnmatch).
50087 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
50088 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
50090 2004-01-14 Karl Berry <karl@gnu.org>
50092 * config/install-sh: update from automake.
50094 2004-01-13 Karl Berry <karl@gnu.org>
50096 * config/install-sh: update from automake.
50098 2004-01-09 Karl Berry <karl@gnu.org>
50100 * config/install-sh: update from automake.
50102 2004-01-05 Karl Berry <karl@gnu.org>
50104 * config/config.{sub,guess}: update from config.
50106 2003-12-31 Karl Berry <karl@gnu.org>
50108 * config/depcomp: update from automake.
50110 2003-12-14 Karl Berry <karl@gnu.org>
50112 * lib/config.charset: update from gettext-runtime.
50114 2003-12-03 Paul Eggert <eggert@twinsun.com>
50116 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
50117 Bug reported by Alfred M. Szmidt.
50119 2003-12-03 Bruno Haible <bruno@clisp.org>
50121 * m4/gettext.m4: Upgrade from gettext-0.13.
50122 * m4/po.m4: Upgrade from gettext-0.13.
50123 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
50124 * m4/intmax.m4: New file, from gettext-0.13.
50125 * m4/printf-posix.m4: New file, from gettext-0.13.
50127 2003-11-29 Karl Berry <karl@gnu.org>
50129 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
50131 2003-11-25 Paul Eggert <eggert@twinsun.com>
50132 Bruno Haible <bruno@clisp.org>
50134 * lib/printf-parse.h: Don't include sys/types.h.
50135 (ARG_NONE): New macro.
50136 (char_directive): Change type of *arg_index fields to size_t.
50137 * lib/printf-parse.c: Don't include sys/types.h.
50138 (SSIZE_MAX): Remove macro.
50139 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
50140 Remove unnecessary overflow check.
50141 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
50144 2003-11-25 Bruno Haible <bruno@clisp.org>
50146 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
50148 2003-11-25 Bruno Haible <bruno@clisp.org>
50150 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
50153 2003-11-24 Paul Eggert <eggert@twinsun.com>
50155 * modules/alloca: Remove dependency on xalloc.
50157 2003-11-24 Paul Eggert <eggert@twinsun.com>
50159 * lib/alloca.c: Remove dependency on xalloc module.
50160 (xalloc_die): Remove.
50161 (memory_full) [!defined emacs]: New macro.
50162 [!defined emacs]: Don't include xalloc.h.
50163 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
50164 address arithmetic overflows. Change datatypes a bit to avoid
50167 2003-11-22 Jim Meyering <jim@meyering.net>
50169 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
50172 2003-11-21 Karl Berry <karl@gnu.org>
50174 * config/config.{sub,guess}: update from config.
50176 2003-11-18 Karl Berry <karl@gnu.org>
50178 * config/config.{sub,guess}: update from config.
50180 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
50182 2003-11-17 Paul Eggert <eggert@twinsun.com>
50184 * README: Mention that S+T cannot overflow if S is the size of
50185 an existing object and T is sufficiently small.
50187 2003-11-17 Jim Meyering <jim@meyering.net>
50189 On systems without utime and without a utimes function capable of
50190 dealing with a NULL struct utimbuf* argument, this utime replacement
50191 could -- in unusual circumstances -- leak a file descriptor.
50192 * lib/utime.c: Include <unistd.h> and <errno.h>.
50193 (utime_null): Be sure to close `fd' and to preserve errno.
50194 Reported by Geoff Collyer via Arnold Robbins.
50196 2003-11-17 Bruno Haible <bruno@clisp.org>
50198 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
50199 (Depends-on): Add xsize.
50201 2003-11-17 Bruno Haible <bruno@clisp.org>
50203 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
50205 2003-11-17 Bruno Haible <bruno@clisp.org>
50207 * lib/vasnprintf.c (alloca): Remove fallback definition.
50208 (freea): Remove definition.
50209 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
50210 Reported by Paul Eggert.
50212 2003-11-16 Paul Eggert <eggert@twinsun.com>
50213 Bruno Haible <bruno@clisp.org>
50215 Protect against address arithmetic overflow.
50216 * lib/printf-args.h: Include stddef.h.
50217 (arguments): Change type of field 'count' to size_t.
50218 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
50219 'unsigned int' where appropriate.
50220 * lib/printf-parse.h: Include sys/types.h.
50221 (char_directive): Change type of *arg_index fields to ssize_t.
50222 (char_directives): Change type of fields 'count', max_*_length to
50224 * lib/printf-parse.c: Include sys/types.h and xsize.h.
50225 (SSIZE_MAX): Define fallback value.
50226 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
50227 instead of 'int' where appropriate. Check a_allocated, d_allocated
50228 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
50229 * lib/vasnprintf.c: Include xsize.h.
50230 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
50231 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
50232 overflow. Avoid wraparound when converting a width or precision from
50235 2003-11-16 Bruno Haible <bruno@clisp.org>
50237 Update from GNU gettext.
50238 * lib/printf-parse.c: Generalize to it can be compiled for wide
50240 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
50241 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
50242 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
50243 SNPRINTF): New macros.
50244 Don't include <alloca.h> if the file is used inside libintl.
50245 (local_wcslen): New function, for Solaris 2.5.1.
50246 (VASNPRINTF): Use it instead of wcslen.
50248 2003-11-16 Bruno Haible <bruno@clisp.org>
50250 * lib/xsize.h (xmax): New function.
50251 (xsum, xsum3, xsum4): Declare as "pure" functions.
50253 2003-11-12 Paul Eggert <eggert@twinsun.com>
50255 * modules/xalloc (Files): Undo latest change, since xalloc.h
50256 no longer needs SIZE_MAX or PTRDIFF_MAX.
50258 2003-11-12 Paul Eggert <eggert@twinsun.com>
50260 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
50263 2003-11-12 Paul Eggert <eggert@twinsun.com>
50265 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
50266 "return", to pacify some unknown compiler. Problem reported
50267 by Joerg Schilling.
50269 2003-11-12 Paul Eggert <eggert@twinsun.com>
50271 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
50272 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
50273 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
50274 heuristic is just as accurate as far as we know, and it removes a
50275 dependency on size_max.m4 and ptrdiff_max.m4.
50277 2003-11-11 Bruno Haible <bruno@clisp.org>
50279 * modules/xsize (Files): Add m4/size_max.m4.
50280 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
50282 2003-11-11 Bruno Haible <bruno@clisp.org>
50284 * m4/size_max.m4: New file.
50285 * m4/ptrdiff_max.m4: New file.
50286 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
50287 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
50288 (gl_XALLOC): Invoke it.
50290 2003-11-11 Bruno Haible <bruno@clisp.org>
50292 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
50293 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
50296 2003-11-10 Paul Eggert <eggert@twinsun.com>
50298 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
50299 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
50300 rejected some allocations of exactly SIZE_MAX - 2 bytes.
50302 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
50303 not (size_t) -1, since it's defined here.
50305 2003-11-09 Karl Berry <karl@gnu.org>
50307 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
50309 2003-11-06 Paul Eggert <eggert@twinsun.com>
50311 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
50312 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
50313 Reject sizes of exactly SIZE_MAX bytes.
50314 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
50315 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
50317 2003-11-05 Bruno Haible <bruno@clisp.org>
50319 * lib/xsize.h: Include limits.h, to avoid a possible collision with
50320 SIZE_MAX defined in <limits.h> on Solaris.
50322 2003-11-04 Jim Meyering <jim@meyering.net>
50324 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
50325 variable names, rather than @VAR@.
50326 * modules/poll: Likewise.
50328 2003-11-04 Bruno Haible <bruno@clisp.org>
50330 * modules/xsize: New file.
50331 * modules/linebreak: Depend on xsize.
50332 * MODULES.html.sh (func_all_modules): Add xsize.
50334 2003-11-04 Bruno Haible <bruno@clisp.org>
50336 * m4/xsize.m4: New file.
50338 2003-11-04 Bruno Haible <bruno@clisp.org>
50340 * lib/xsize.h: New file.
50341 * lib/linebreak.c: Include xsize.h.
50342 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
50343 argument for overflow.
50344 Suggested by Paul Eggert.
50346 2003-11-03 Karl Berry <karl@gnu.org>
50348 * config/config.{guess,sub}: update from config.
50350 2003-11-03 Jim Meyering <jim@meyering.net>
50352 * modules/userspec (lib_SOURCES): Add userspec.h.
50353 (Include): Add "userspec.h".
50354 Improve description.
50356 2003-11-03 Jim Meyering <jim@meyering.net>
50358 * lib/userspec.c: Include "userspec.h".
50359 * lib/userspec.h: New file.
50361 2003-11-03 Bruno Haible <bruno@clisp.org>
50363 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
50365 2003-11-03 Bruno Haible <bruno@clisp.org>
50367 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
50368 available, to avoid (extremely rare) race condition.
50369 Suggested by Paul Eggert.
50371 2003-11-02 Karl Berry <karl@gnu.org>
50373 * config/srclist.txt (vasprintf.c): sync broken, sigh.
50375 2003-10-31 Paul Eggert <eggert@twinsun.com>
50377 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
50378 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
50379 (read_filesystem_list): Set and use me_type_malloced.
50380 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
50381 whatever the type happens to be), for brevity and consistency.
50382 Check for size calculation overflow on Alphas running OSF/1.
50384 2003-10-31 Jim Meyering <jim@meyering.net>
50386 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
50388 * lib/linebuffer.c: Include <string.h> for declaration of memset.
50390 2003-10-30 Paul Eggert <eggert@twinsun.com>
50391 Bruno Haible <bruno@clisp.org>
50393 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
50394 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
50396 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
50398 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
50399 netbsd*-gnu*. Suggested by Robert Millan.
50401 2003-10-29 Paul Eggert <eggert@twinsun.com>
50403 * modules/group-member: Depend on stdbool.
50405 2003-10-29 Paul Eggert <eggert@twinsun.com>
50407 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
50409 2003-10-29 Paul Eggert <eggert@twinsun.com>
50411 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
50412 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
50413 after the 'gnu' in these cases. This fixes some bugs in the
50414 previous change, and is based on suggestions by Robert Millan.
50416 2003-10-29 Paul Eggert <eggert@twinsun.com>
50418 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
50419 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
50421 * lib/quotearg.c (quotearg_n_options): Use it.
50422 * lib/group-member.c: Include <stdbool.h>.
50423 (free_group_info): Arg is now const *; don't free arg.
50424 (get_group_info): Now returns bool and accepts struct group_info *,
50425 rather than returning a malloc'ed struct group_info *.
50426 All uses changed. Check for overflow in internal size calculation.
50428 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
50429 rather than xmalloc/xrealloc.
50430 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
50431 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
50432 conformance bug: the old code used a pointer after freeing the
50433 storage that it addressed.
50434 * lib/hash.c (hash_initialize): Simplify the code by using
50435 xalloc_oversized rather than doing it by hand.
50436 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
50437 the buffer preserved. Use free and xmalloc instead.
50438 * lib/quotearg.c (quotearg_n_options): Likewise.
50439 Use a simpler test for size overflow. Don't use xalloc_oversized
50440 because unsigned int might be wider than size_t (!); this suggests
50441 that we should switch from unsigned int to size_t for slot numbers.
50443 2003-10-28 Paul Eggert <eggert@twinsun.com>
50445 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
50446 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
50447 NetBSD kernels. Requested by Richard Stallman.
50449 2003-10-27 Paul Eggert <eggert@twinsun.com>
50451 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
50452 to allocate the returned structure. Do not allocate a subarray,
50453 as x2nrealloc will do that.
50454 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
50455 instead of xnrealloc.
50456 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
50458 2003-10-27 Bruno Haible <bruno@clisp.org>
50460 * lib/stdbool_.h: Better support for BeOS.
50462 2003-10-26 Paul Eggert <eggert@twinsun.com>
50464 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
50467 2003-10-26 Paul Eggert <eggert@twinsun.com>
50469 * lib/xalloc.h (xalloc_oversized): New static inline function, for
50470 callers that want to do their own size-overflow checking. Include
50471 <stdbool.h>, since xalloc_oversized returns bool.
50472 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
50473 to use xalloc_oversized.
50475 Add two functions x2realloc, x2nrealloc, for programs that grow
50476 arrays dynamically by doubling their sizes.
50477 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
50478 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
50481 Port to C99 semantics for 'inline' of external functions.
50482 Bug reported by Bruno Haible.
50483 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
50484 with the old contents of xnmalloc.
50485 (xnmalloc, xmalloc): Use it.
50486 (xnrealloc_inline): New static inline function,
50487 with the old contents of xnrealloc.
50488 (xnrealloc, xrealloc): Use it.
50490 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
50493 2003-10-26 Karl Berry <karl@gnu.org>
50495 * config/srclist.txt (COPYING.DOC): no longer available from
50496 /gd/gnuorg; don't know where the ultimate source is.
50498 2003-10-25 Paul Eggert <eggert@twinsun.com>
50500 Fix several address-calculation bugs in the hash modules,
50501 plus some minor code cleanup.
50503 * lib/hash.h: Include <stdbool.h>, for bool.
50504 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
50505 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
50506 hash_get_n_entries, hash_get_max_bucket_length,
50507 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
50508 hash_rehash): Use size_t rather than unsigned.
50509 * lib/hash.c (struct hash_table, hash_get_n_buckets,
50510 hash_get_n_buckets_used, hash_get_n_entries,
50511 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
50512 hash_get_entries, hash_do_for_each, hash_string, is_prime,
50513 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
50515 (SIZE_MAX): Define if not defined.
50516 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
50517 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
50519 Use const * when possible.
50520 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
50521 (check_tuning): Fix bug: if tuning parameters were very close to
50522 0 or 1, rounding errors could have caused subscript violations.
50523 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
50524 (hash_initialize): Add 'fail:' label
50525 to free table and return NULL, and use it to simplify code.
50526 Use calloc rather than clearing the storage ourself.
50527 (hash_initialize, hash_rehash): Check for arithmetic overflow in
50528 buffer size calculations.
50529 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
50530 Include <stddef.h>, for size_t.
50531 * lib/hash-pjw.c (hash_pjw): Likewise.
50532 Switch to method described by Bruno Haible.
50533 Include <limits.h>, for CHAR_BIT.
50534 (SIZE_BITS): New macro.
50536 2003-10-23 Paul Eggert <eggert@twinsun.com>
50538 * m4/getline.m4 (AM_FUNC_GETLINE):
50539 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
50540 hosts. Problem reported by Derek Robert Price in
50541 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
50542 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
50543 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
50545 2003-10-21 Paul Eggert <eggert@twinsun.com>
50547 * lib/getndelim2.c (getndelim2): When size calculation overflows,
50548 ceiling the allocation at NMAX bytes rather than silently
50549 discarding input bytes before NMAX is reached. This makes
50550 a difference only if NMAX exceeds SIZE_MAX / 2.
50552 * lib/obstack.c: Merge from glibc.
50553 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
50554 Add libc_hidden_def (_obstack_newchunk).
50555 (_obstack_free) [! defined _LIBC]: Remove.
50556 [defined _LIBC]: Make a strong alias from obstack_free, rather than
50557 a clone of the function body.
50558 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
50559 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
50561 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
50563 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
50566 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
50567 (obstack_ptr_grow_fast, obstack_int_grow_fast):
50568 Don't use lvalue casts, as GCC plans to remove support for them
50569 in GCC 3.5. Reported by Joseph S. Myers. This bug
50570 was also present in the non-GCC version, indicating that this
50571 code had always been buggy and had never been widely used.
50572 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
50573 Use the fast variant of each macro, rather than copying the
50574 definiens of the fast variant; that way, we'll be more likely to
50575 catch future bugs in the fast variants.
50577 2003-10-20 Bruno Haible <bruno@clisp.org>
50579 * modules/wait-process: New file.
50580 * MODULES.html.sh (func_all_modules): Add wait-process.
50582 2003-10-20 Bruno Haible <bruno@clisp.org>
50584 * m4/wait-process.m4: New file.
50586 2003-10-20 Bruno Haible <bruno@clisp.org>
50588 * lib/wait-process.h: New file, from GNU gettext.
50589 * lib/wait-process.c: New file, from GNU gettext.
50591 2003-10-19 Jim Meyering <jim@meyering.net>
50593 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
50596 2003-10-18 Karl Berry <karl@gnu.org>
50598 * config/config.guess: update from config.
50600 2003-10-16 Paul Eggert <eggert@twinsun.com>
50602 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
50603 (getgroups): First arg is int, not size_t.
50604 Don't let 'free' mangle errno.
50606 2003-10-16 Paul Eggert <eggert@twinsun.com>
50608 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
50610 2003-10-16 Karl Berry <karl@gnu.org>
50612 * config/config.{guess,sub}: update from config.
50614 2003-10-16 Jim Meyering <jim@meyering.net>
50616 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
50619 2003-10-15 Paul Eggert <eggert@twinsun.com>
50621 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
50622 (SIZE_MAX): Remove.
50623 (new_exclude, add_exclude_file): Initial size no longer needs to
50625 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
50626 our own address arithmetic overflow checking.
50628 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
50629 (fnmatch): Do not alloca more than 2000 wide characters;
50630 instead, use malloc for large buffers.
50631 Check for address arithmetic overflow, and return -1
50632 with errno set to ENOMEM in that case.
50633 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
50634 (NEW_PATTERN): Do not alloca more than 8000 bytes;
50635 instead, return -1. Check for address arithmetic overflow.
50637 2003-10-14 Paul Eggert <eggert@twinsun.com>
50639 Handle invalid suffixes and overflow independently, so that
50640 callers can treat them independently as needed. Fix some bugs in
50641 suffix handling, e.g., "100k@" was not diagnosed as an invalid
50642 suffix for a human-readable blocksize. The major caller-visible
50643 change is the addition of a new
50644 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
50645 that both overflow and suffix chars were found.
50647 * lib/human.c (humblock): Don't check separately for invalid suffix
50648 char; that is xstrtoumax's job (now that its bug is fixed).
50649 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
50650 INTMAX_MAX]: New macros.
50651 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
50652 TYPE_MAXIMUM): New macros.
50653 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
50654 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
50655 if overflow occurs, as it's what __strtol does and it's more useful
50657 (__xstrtol): If __strtol reports some error other than ERANGE,
50658 reflect it to the caller as LONGINT_INVALID. If it reports
50659 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
50660 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
50661 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
50663 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
50664 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
50665 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
50666 [defined UINTMAX_MAX]: New macros.
50668 2003-10-14 Bruno Haible <bruno@clisp.org>
50670 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
50672 2003-10-14 Bruno Haible <bruno@clisp.org>
50674 * m4/sig_atomic_t: New file, from GNU gettext.
50675 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
50677 2003-10-14 Bruno Haible <bruno@clisp.org>
50679 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
50680 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
50681 Also use volatile where needed.
50683 2003-10-12 Paul Eggert <eggert@twinsun.com>
50685 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
50686 Change maintainer from Bruno Haible to 'all'.
50688 2003-10-12 Paul Eggert <eggert@twinsun.com>
50690 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
50692 2003-10-12 Paul Eggert <eggert@twinsun.com>
50694 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
50695 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
50696 and define in terms of the other primitives.
50697 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
50698 (SIZE_MAX): Define if not already defined.
50699 (array_size_overflow): New function.
50700 (xalloc_die): Abort instead of exiting if 'error' returns.
50701 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
50702 (xmalloc, xrealloc): Use them.
50703 (xcalloc): Check for address arithmetic overflow.
50704 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
50705 a bit faster than strcpy.
50707 2003-10-10 Simon Josefsson <jas@extundo.com>
50709 * modules/argp (Depends-on): Add restrict and strcase.
50711 2003-10-10 Simon Josefsson <jas@extundo.com>
50713 * m4/argp.m4: Add AC_C_INLINE.
50715 2003-10-08 Paul Eggert <eggert@twinsun.com>
50717 Merge getpass from libc, plus a few fixes.
50719 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
50720 Include <stdbool.h>.
50721 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
50722 __fsetlocking to empty.
50723 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
50724 do include <bits/libc-lock.h>.
50725 Do not include <fcntl.h>; not needed.
50726 [_LIBC]: Include <wchar.h>.
50727 (NOTCANCEL_MODE): New macro.
50728 (flockfile, funlockfile) [_LIBC]: New macros.
50729 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
50730 [!_LIBC]: New macros.
50731 (call_fclose): New function.
50732 (getpass): Use it. Save tty stream separately; this simplifies the
50733 code and makes it more reliable if stdin happens to equal stdout.
50734 Invoke __fsetlocking on tty.
50735 Handle thread cancellation if needed.
50736 Namespace cleanup (use __tcgetattr, __getline).
50737 Use bool for Booleans.
50738 [USE_IN_LIBIO]: Handle wide streams.
50739 [!_LIBC]: Unconditionally do the fseek, since we don't know what
50740 stream might go where.
50742 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
50743 doesn't have to include <stdio.h> before us.
50744 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
50745 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
50746 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
50747 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
50748 if not declared, so that we can use getpass.c code from libc without
50750 (flockfile, ftrylockfile, funlockfile): New macros.
50752 2003-10-08 Paul Eggert <eggert@twinsun.com>
50754 * modules/getpass: Depend on stdbool.
50756 2003-10-08 Paul Eggert <eggert@twinsun.com>
50758 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
50760 2003-10-07 Karl Berry <karl@gnu.org>
50762 * config/config.{guess,sub}: update from config.
50764 2003-10-06 Jim Meyering <jim@meyering.net>
50765 Bruno Haible <bruno@clisp.org>
50767 This lets translators provide better translations for the
50768 "Written by ..." part of --version output.
50769 * lib/version-etc.h: Include stdarg.h.
50770 (version_etc_copyright): Declare as readonly.
50771 (version_etc): Make this function variadic with a NULL-terminated list
50772 of author name strings.
50773 (version_etc_va): New declaration.
50774 * lib/version-etc.c: Include stdarg.h, stdlib.h.
50775 (version_etc_copyright): Declare as readonly.
50776 (version_etc_va): New function. Provide a different translatable string
50777 for each possible number of authors < 10. Abbreviate when there are 10
50779 (version_etc): Make this function variadic. Call version_etc_va.
50780 Suggestion from Gary V. Vaughan.
50782 * lib/long-options.h (parse_long_options): Change prototype: the
50783 authors string is moved to the end and becomes variadic.
50784 * lib/long-options.c: Include stdarg.h.
50785 (parse_long_options): Make this function variadic, too.
50786 Call version_etc_va, not version_etc.
50788 2003-10-06 Bruno Haible <bruno@clisp.org>
50790 * modules/version-etc-2: Remove file.
50791 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
50793 2003-10-06 Bruno Haible <bruno@clisp.org>
50795 * modules/fatal-signal: New file.
50796 * MODULES.html.sh (func_all_modules): Add fatal-signal.
50798 2003-10-06 Bruno Haible <bruno@clisp.org>
50800 * m4/fatal-signal.m4: New file.
50801 * m4/signalblocking.m4: New file, from GNU gettext.
50803 2003-10-06 Bruno Haible <bruno@clisp.org>
50805 * lib/version-etc-2.h: Remove file.
50806 * lib/version-etc-2.c: Remove file.
50808 2003-10-06 Bruno Haible <bruno@clisp.org>
50810 * lib/fatal-signal.h: New file, from GNU gettext.
50811 * lib/fatal-signal.c: New file, from GNU gettext.
50813 2003-10-05 Paul Eggert <eggert@twinsun.com>
50815 * README: Rework advice for preventing empty .o files.
50816 Don't recommend ELIDE constructs. Recommend <stddef.h>,
50819 2003-10-04 Karl Berry <karl@gnu.org>
50821 * lib/argp*: update from libc.
50823 2003-10-04 Karl Berry <karl@gnu.org>
50825 * config/config.{guess,sub}: update from config.
50827 2003-10-02 Bruno Haible <bruno@clisp.org>
50829 * modules/lchown (Include): Add lchown.h.
50830 * modules/time_r (Include): Use "..." syntax.
50831 * modules/xgetdomainname (Include): Add xgetdomainname.h.
50833 2003-10-01 Simon Josefsson <jas@extundo.com>
50835 * MODULES.html.sh (func_all_modules): Move gethostname from section
50836 'based on' to section 'lacking' POSIX:2001.
50838 2003-10-01 Larry Jones <lawrence.jones@eds.com>
50840 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
50841 to output mode on the same stream.
50843 2003-09-29 Paul Eggert <eggert@twinsun.com>
50845 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
50846 Fix arg typo in previous patch.
50848 2003-09-28 Jim Meyering <jim@meyering.net>
50850 * lib/error.c: Correct cpp indentation.
50852 2003-09-27 Paul Eggert <eggert@twinsun.com>
50854 * modules/free: New file.
50856 2003-09-27 Paul Eggert <eggert@twinsun.com>
50858 * m4/free.m4: New file.
50860 2003-09-27 Paul Eggert <eggert@twinsun.com>
50862 * lib/minmax.h (MIN, MAX)
50863 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
50864 Omit the special code that used __typeof__, since we worry that
50865 it could be more trouble than it's worth. See:
50866 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
50867 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
50869 * lib/free.c: New file.
50871 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
50873 Trivial fixes to Makefile.am parts of module listings.
50874 * modules/strstr: Append strstr.h to lib_SOURCES.
50875 * modules/strcase: Likewise, for strcase.h.
50877 2003-09-27 Karl Berry <karl@gnu.org>
50879 * config/mkinstalldirs: update from automake.
50881 2003-09-26 Paul Eggert <eggert@twinsun.com>
50883 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
50884 (error_tail): Do not loop, reallocating temporary buffer, since
50885 the output cannot contain more wide characters than the input
50886 contains bytes, the size must be big enough already. This avoids
50887 one potential size overflow calculation. Check for size overflow
50888 when calculating temporary buffer size. Free temporary buffer
50889 when done, if it was allocated with malloc; this plugs a memory
50890 leak. Remove casts from void * to pointers, that are no longer
50891 needed now that we're assuming C89 or better.
50893 Merge error changes from glibc.
50895 * lib/error.c, error.h: Update copyright notice header to match glibc.
50896 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
50897 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
50898 Disable cancellation while printing error.
50899 * lib/error.h: Prepend __ to parameter names.
50901 2003-09-26 Jim Meyering <jim@meyering.net>
50903 * lib/error.c (error_tail): Move some declarations
50904 into inner scope where the local variables are used.
50906 2003-09-26 Bruno Haible <bruno@clisp.org>
50908 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
50910 Don't define stpncpy through config.h; it's now done through stpncpy.h.
50912 2003-09-26 Bruno Haible <bruno@clisp.org>
50914 * lib/stpncpy.h (gnu_stpncpy): New declaration.
50915 (stpncpy): Define as alias for gnu_stpncpy.
50916 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
50918 2003-09-25 Simon Josefsson <jas@extundo.com>
50920 * lib/xgetdomainname.h: New file.
50921 * lib/xgetdomainname.c: New file.
50923 2003-09-25 Simon Josefsson <jas@extundo.com>
50924 Bruno Haible <bruno@clisp.org>
50926 * modules/getdomainname: New file.
50927 * modules/xgetdomainname: New file.
50928 * MODULES.html.sh (func_all_modules): Add getdomainname,
50931 2003-09-25 Simon Josefsson <jas@extundo.com>
50932 Bruno Haible <bruno@clisp.org>
50934 * m4/getdomainname.m4: New file.
50936 2003-09-25 Simon Josefsson <jas@extundo.com>
50937 Bruno Haible <bruno@clisp.org>
50939 * lib/getdomainname.h: New file.
50940 * lib/getdomainname.c: New file.
50942 2003-09-25 Karl Berry <karl@gnu.org>
50944 * lib/argp-fmtstream.c, argp-help.c: update from libc.
50946 2003-09-25 Karl Berry <karl@gnu.org>
50948 * config/install-sh: update from automake.
50950 2003-09-25 Bruno Haible <bruno@clisp.org>
50952 * modules/version-etc-2: New file, from modules/version-etc with
50954 * MODULES.html.sh (func_all_modules): Add version-etc-2.
50956 2003-09-25 Bruno Haible <bruno@clisp.org>
50958 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
50959 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
50961 2003-09-24 Simon Josefsson <jas@extundo.com>
50963 * modules/xgethostname: Add xgethostname.h.
50965 2003-09-24 Paul Eggert <eggert@twinsun.com>
50967 * lib/linebuffer.c (freebuffer): Don't free the argument, just
50968 the buffer associated with the argument. Bug reported by
50971 2003-09-24 Paul Eggert <eggert@twinsun.com>
50973 * README: Document assumptions that 'int' is at least 32 bits
50974 wide, that integer arithmetic is 2's complement without overflow,
50975 that there are no holes in integer values, that adding sizes of
50976 two nonoverlapping objects can't overflow, and that all-bits-zero
50977 yields scalar zero. Fix spelling and capitalization typos.
50979 2003-09-19 Karl Berry <karl@gnu.org>
50981 * lib/argp.h: update from libc.
50983 2003-09-17 Paul Eggert <eggert@twinsun.com>
50985 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
50986 to avoid spurious warnings like "AC_RUN_IFELSE was called before
50987 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
50989 2003-09-17 Paul Eggert <eggert@twinsun.com>
50991 * gnulib-tool: Use "test -h", not "test -L", for portability
50992 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
50993 (tags_regexp): Remove, since \| doesn't conform to POSIX.
50994 (sed_extract_prog): Issue s commands one-by-one, rather than
50995 using \| in one s command.
50997 2003-09-16 Paul Eggert <eggert@twinsun.com>
50999 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
51000 input error, instead of returning NULL the next time we are called
51001 (and therefore losing track of errno).
51003 2003-09-16 Bruno Haible <bruno@clisp.org>
51005 * gnulib-tool (func_create_testdir): Warn about duplicated
51008 2003-09-15 Paul Eggert <eggert@twinsun.com>
51010 * modules/argmatch, modules/fatal, modules/obstack,
51011 modules/xalloc, modules/xgethostname: Sort dependencies by
51012 importance, not alphabetically.
51014 2003-09-15 Paul Eggert <eggert@twinsun.com>
51016 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
51017 fails, so that the caller gets the proper errno.
51019 * lib/readutmp.c (read_utmp): Likewise.
51020 Check for fstat error. Close stream and free storage
51023 2003-09-14 Karl Berry <karl@gnu.org>
51025 * config/srclist.txt (strdup.c): disable for c89 changes.
51027 2003-09-14 Jim Meyering <jim@meyering.net>
51029 * lib/getloadavg.c: Correct cpp indentation.
51030 * lib/strdup.c: Likewise.
51031 * lib/vasnprintf.c: Likewise.
51033 2003-09-14 Bruno Haible <bruno@clisp.org>
51035 * modules/fwriteerror: New file.
51036 * MODULES.html.sh (func_all_modules): Add fwriteerror.
51038 2003-09-14 Bruno Haible <bruno@clisp.org>
51040 * lib/fwriteerror.h: New file.
51041 * lib/fwriteerror.c: New file.
51043 2003-09-12 Paul Eggert <eggert@twinsun.com>
51045 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
51046 modules/xgethostname, modules/xalloc: Depend on exit.
51048 2003-09-12 Paul Eggert <eggert@twinsun.com>
51050 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
51052 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
51053 and AC_MINIX, too, so that their extensions are available.
51055 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
51056 This macro has been superseded by gl_BACKUPFILE.
51058 More patches to assume C89 or better.
51060 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
51062 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
51064 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
51065 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
51066 Include <string.h>, <stdlib.h> unconditionally.
51067 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
51068 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
51069 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
51070 headers or for string.h.
51071 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
51074 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
51076 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
51077 * m4/userspec.m4 (gl_USERSPEC): Likewise.
51078 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
51079 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
51080 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51081 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
51083 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
51084 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
51085 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
51087 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
51088 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
51089 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
51092 2003-09-12 Paul Eggert <eggert@twinsun.com>
51094 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
51095 * lib/obstack.c [!defined _LIBC]: Likewise.
51096 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
51097 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
51098 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
51100 More changes to assume C89 or better.
51102 * lib/error.c (error_tail): Assume vprintf.
51104 * lib/argmatch.c (getenv): Remove decl.
51105 * lib/progreloc.c (get_full_program_name): Define via prototype.
51106 * lib/setenv.c (clearenv): Likewise.
51107 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
51109 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
51110 (malloc, memcpy): Remove decls.
51111 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
51112 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
51113 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
51114 (memcpy): Remove macro.
51115 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
51116 (__P): Remove. All uses removed.
51117 (PTR): Remove. All uses changed to void *.
51118 (CHAR_BIT, NULL): Remove.
51119 (spaces, zeros, memset_space, memset_zero)
51120 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
51122 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
51123 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
51124 Define with prototype.
51125 Remove now-unnecessary prototype decl.
51126 (extra_args_spec): Assume ANSI C. All uses changed.
51127 (extra_args_spec_iso): Remove.
51128 (my_strftime, emacs_strftimeu): Define via prototype.
51129 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
51131 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
51132 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
51133 (strtoul, strtol): Remove decls.
51134 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
51136 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
51137 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
51138 (LOCALE_PARAM_PROTO): New macro.
51139 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
51140 (INTERNAL (strtol), strtol): Define with a prototype.
51141 (PARAMS): Remove. All uses removed.
51142 * lib/tempname.c: Include <string.h> unconditionally.
51143 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
51144 * lib/xgethostname.c (main): Define with a prototype.
51145 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
51146 Include <stdlib.h> unconditionally.
51147 (calloc, malloc, realloc, free): Remove decls.
51148 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
51149 Include <stdlib.h> unconditionally. Sort include file names.
51151 (xstrtod): Define with a prototype.
51152 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
51153 (strtol, strtoul): Remove decls.
51155 2003-09-11 Paul Eggert <eggert@twinsun.com>
51157 More patches to assume C89 or better.
51158 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
51159 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
51160 string.h, memchr, STDC_HEADERS.
51162 2003-09-11 Paul Eggert <eggert@twinsun.com>
51164 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
51165 Include <stdlib.h>, <string.h> unconditionally.
51166 Remove now-unnecessary cast to char *.
51167 * lib/strnlen.c: Include <string.h> unconditionally.
51168 * lib/yesno.c (yesno): Define with a prototype.
51170 2003-09-11 Bruno Haible <bruno@clisp.org>
51172 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
51174 2003-09-10 Jim Meyering <jim@meyering.net>
51176 * lib/error.c: Correct indentation of cpp directives.
51178 2003-09-10 Bruno Haible <bruno@clisp.org>
51180 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
51181 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
51182 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
51183 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
51184 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
51185 <stdlib.h> and <string.h> checks.
51186 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
51187 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
51189 2003-09-10 Bruno Haible <bruno@clisp.org>
51191 * lib/strcspn.c: Include <string.h> unconditionally.
51192 * lib/strpbrk.c: Include <string.h> unconditionally.
51193 * lib/strstr.c: Include <string.h> unconditionally.
51194 * lib/unicodeio.c: Include <string.h> unconditionally.
51195 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
51196 * lib/unsetenv.c: Likewise.
51197 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
51198 * lib/yesno.c: Include <stdlib.h> unconditionally.
51199 (rpmatch): Add prototype.
51201 2003-09-09 Paul Eggert <eggert@twinsun.com>
51203 More patches to assume C89 or better.
51204 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
51205 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
51206 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
51208 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
51210 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
51212 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
51214 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
51215 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
51216 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
51218 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
51219 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
51221 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
51223 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
51224 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
51225 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
51226 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
51227 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
51228 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
51230 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
51231 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
51232 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
51233 C headers, or for string.h.
51234 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
51235 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
51236 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
51237 headers, memory.h, stdlib.h, string.h, strings.h.
51238 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
51239 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
51240 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
51242 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
51243 headers, memory.h, string.h.
51244 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
51245 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
51247 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
51249 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
51250 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
51251 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
51252 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
51253 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
51255 2003-09-09 Paul Eggert <eggert@twinsun.com>
51259 * lib/acosl.c (main): Use a prototype.
51260 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
51263 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
51265 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
51266 (getopt, etopt_long, getopt_long_only, _getopt_internal)
51267 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
51269 * lib/getopt.c (const): Remove macro.
51270 Include <string.h> unconditionally.
51271 (my_index): Remove; all uses changed to strchr.
51272 (strlen): Remove decl.
51273 (exchange): Remove forward decl; no longer needed.
51274 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
51275 Define with prototype.
51276 * lib/getopt1.c (const): Remove macro.
51277 (getopt_long, getopt_long_only, main): Define with prototype.
51279 * lib/getugroups.c: Include <string.h> unconditionally.
51281 * lib/getusershell.c: Include <stdlib.h> unconditionally.
51282 (getusershell, setusershell, endusershell, readname, main):
51283 Define with prototypes.
51285 * lib/group-member.c: Include group-member.h first.
51286 Include <stdlib.h> unconditionally.
51288 * lib/hard-locale.c: Include hard-locale.h first.
51289 Include <stdlib.h>, <string.h> unconditionally.
51291 * lib/hash.c (free, malloc): Remove decls.
51292 Include <stdlib.h> unconditionally.
51294 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
51295 (getenv): Do not declare.
51297 * lib/idcache.c: Include <string.h> unconditionally.
51299 * lib/long-options.c: Include long-options.h first, to test interface.
51300 Include <stdlib.h> unconditionally.
51302 * lib/makepath.c: Include makepath.h first, to test interface.
51303 Include <stdlib.h> and <string.h> unconditionally.
51305 * lib/linebuffer.c: Include <stdlib.h>.
51306 (free): Remove decl.
51308 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
51309 stddef.h. rpl_malloc returns void *, not char *.
51310 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
51313 * lib/md5.h: Include <limits.h> unconditionally.
51314 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
51315 (__P): Remove; all uses removed.
51316 * lib/md5.c: Include "md5.h" first.
51317 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
51318 md5_buffer, md5_process_bytes, md5_process_block):
51319 Define with prototypes.
51320 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
51321 * lib/sha.c: Include "sha.h" first.
51322 Include <stdlib.h>, <string.h> unconditionally.
51324 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
51325 * lib/memcmp.c (__ptr_t): Likewise.
51326 * lib/memrchr.c (__ptr_t): Likewise.
51327 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
51328 Include <string.h> unconditionally.
51329 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
51330 * lib/memchr.c: Include <stdlib.h> unconditionally.
51331 * lib/memchr.c (LONG_MAX): Remove.
51332 * lib/memrchr.c (LONG_MAX): Likewise.
51333 * lib/memchr.c (__memchr): Define via a prototype.
51334 * lib/memrchr.c (__memrchr): Likewise.
51335 * lib/memcmp.c (__P): Remove, and remove all uses.
51336 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
51337 Remove forward decls; no longer needed.
51338 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
51339 Use types required by C89 in prototype.
51341 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
51342 * lib/savedir.c: Likewise.
51343 * lib/mkdir.c (free): Remove decl.
51344 * lib/rmdir.c (rmdir): Define with a prototype.
51345 * lib/savedir.c: Include savedir.h first, to test interface.
51347 * lib/mktime.c (STDC_HEADERS): Remove.
51348 Include <stdlib.h>, <string.h> unconditionally.
51350 * lib/modechange.c: Include <stdlib.h> unconditionally.
51351 (malloc): Remove decl.
51353 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
51354 (free): Remove decl.
51356 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
51357 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
51358 (This type really should be intptr_t, but that's a C99ism.)
51359 (_obstack_memcpy): Remove: all uses changed to memcpy.
51360 Include <string.h> unconditionally.
51361 (struct obstack): Assume __STDC__ for types of members
51362 chunkfun, freefun, extra_arg.
51363 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
51364 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
51365 obstack_begin, obstack_specify_allocation,
51366 obstack_specify_allocation_with_arg, obstack_chunkfun,
51367 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
51368 Remove unprototyped decls and the macros that use them.
51369 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
51370 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
51371 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
51372 (defined __STDC__ && __STDC__)]:
51373 Remove nonprototyped code.
51374 Include <stdlib.h> unconditionally.
51375 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
51376 _obstack_allocated_p, _obstack_free, obstack_free,
51377 _obstack_memory_used, print_and_abort):
51378 Define using prototypes.
51379 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
51380 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
51381 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
51382 obstack_next_free, obstack_object_size, obstack_room) [0]:
51383 Remove unused, unprototyped code.
51385 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
51387 * lib/physmem.c (physmem_total, physmem_available, main): Define
51390 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
51391 (main): Define with a prototype.
51393 * lib/posixver.c (getenv): Remove decl.
51395 * lib/putenv.c (malloc): Returns void *, not char *.
51396 Include <string.h> unconditionally.
51397 (strchr, memcpy, NULL): Do not define.
51399 * lib/readtokens.c: Include readtokens.h first, to test interface.
51400 Include <stdlib.h>, <string.h> unconditionally.
51401 (init_tokenbuffer): Define with a prototype.
51403 * lib/regex.c (PARAMS): Remove. All uses removed.
51404 All uses of _RE_ARGS removed, too.
51405 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
51407 (bzero): Assume memset exists.
51408 (memcmp, memcpy, NULL): Remove.
51409 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
51410 char, or assignments to local vars of type signed char.
51411 (init_syntax_once, PREFIX(extract_number_and_incr),
51412 PREFIX(print_partial_compiled_pattern),
51413 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
51414 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
51415 PREFIX(regex_grow_registers), PREFIX(regex_compile),
51416 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
51417 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
51418 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
51419 wcs_compile_range, byte_compile_range, truncate_wchar,
51420 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
51421 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
51422 count_mbs_length, wcs_re_match_2_internal,
51423 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
51424 PREFIX(alt_match_null_string_p),
51425 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
51426 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
51427 regfree, PREFIX(extract_number)): Define with prototype. Remove
51428 now-unnecessary declaration, if any.
51429 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
51431 Remove now-unnecessary casts among pointer types.
51432 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
51434 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
51435 (free): Remove decl.
51437 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
51439 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
51440 (free): Remove decl.
51442 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
51443 * lib/xgetcwd.c: Likewise.
51445 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
51446 (free): Remove decl.
51448 * lib/strchrnul.c (strchrnul): Define with a prototype.
51449 Fix bug: c_in was not converted to char before searching.
51451 The following changes are not K&R related:
51453 * lib/group-member.h: Include <sys/types.h>, so that this file is
51455 * lib/makepath.h: Likewise.
51457 * lib/getusershell.c (readname, default_index, line_size, readname):
51458 Use size_t, not int, for sizes.
51459 (readname): If the size overflows, report an error instead of
51462 2003-09-09 Paul Eggert <eggert@twinsun.com>
51464 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
51467 2003-09-09 Paul Eggert <eggert@twinsun.com>
51469 * README: New section: portability guidelines.
51471 2003-09-09 Derek Robert Price <derek@ximbiot.com>
51473 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
51476 2003-09-09 Derek Robert Price <derek@ximbiot.com>
51478 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
51480 2003-09-08 Paul Eggert <eggert@twinsun.com>
51482 Assume C89 or better; remove K&R cruft.
51483 A few of these changes were first proposed by Derek Robert Price
51484 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
51486 * lib/addext.c: Include <string.h> unconditionally.
51487 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
51488 Don't declare getenv or malloc.
51490 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
51491 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
51493 (find_stack_direction, alloca): Use prototypes.
51495 * lib/atexit.c (atexit): Define using a prototype.
51497 * lib/basename.c, dirname.c, stripslash.c:
51498 Include <string.h> unconditionally.
51500 * lib/bcopy.c: Include <stddef.h>.
51501 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
51503 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
51505 * lib/error.h (error, error_at_line, error_print_progname)
51506 [! (defined (__STDC__) && __STDC__)]: Remove decls.
51507 * lib/error.c: Include error.h first, to check interface.
51508 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
51509 (VA_START): Remove; all uses changeed to va_start.
51510 (exit, strerror): Remove decls.
51511 (error_print_progname): Prototype uncondionally.
51512 Don't include <errno.h>; no longer needed.
51513 (private_strerror): Remove.
51514 (error_tail): Always define.
51515 (error, error_at_line): Assume C89 or better; always use prototypes.
51516 * lib/fatal.c: Include "fatal.h" first, to test interface.
51517 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
51518 (VA_START): Remove; all uses changed to va_start.
51519 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
51521 (exit): Remove decl.
51522 (fatal): Prototype unconditionally. Assume va_start works.
51523 Abort at end, to pacify gcc.
51525 * lib/euidaccess.c (main): Define with a prototype.
51527 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
51529 * lib/exitfail.c: Include <stdlib.h> unconditionally.
51531 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
51533 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
51534 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
51535 (getenv): Remove decl.
51536 (fnmatch): Define using a prototype.
51537 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
51538 (FCT): Define using a prototype.
51540 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
51542 * lib/gethostname.c: Include <stddef.h>.
51543 (gethostname): Define with prototype. Length is size_t, not int.
51545 2003-09-08 Paul Eggert <eggert@twinsun.com>
51547 Assume C89 or better; remove K&R cruft.
51548 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
51549 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
51550 string.h, getenv, malloc.
51551 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
51553 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
51554 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
51555 do not check for strerror.
51556 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
51557 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
51558 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
51559 do not check for doprnt or vprintf.
51560 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
51561 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
51563 2003-09-08 Paul Eggert <eggert@twinsun.com>
51565 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
51566 getversion.c should have been removed then, but was accidentally
51569 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
51570 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
51572 2003-09-08 Karl Berry <karl@gnu.org>
51574 * config/config.sub, config.guess, srclistvars.sh: update from savannah
51575 config, forget about prep.
51577 * config/depcomp, missing: update from automake.
51579 2003-09-07 Paul Eggert <eggert@twinsun.com>
51581 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
51582 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
51584 2003-09-07 Paul Eggert <eggert@twinsun.com>
51586 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
51587 copy_tm_result. Bug reported by Simon Josefsson in
51588 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
51590 2003-09-06 Paul Eggert <eggert@twinsun.com>
51592 * m4/time_r.m4: New file.
51593 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
51594 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
51595 is. Check for timegm declaration.
51596 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
51597 Do not check for gmtime_r.
51598 Replace mktime if __mktime_internal does not exist and if mktime
51599 hasn't been replaced already.
51601 2003-09-06 Paul Eggert <eggert@twinsun.com>
51603 * lib/time_r.c, lib/time_r.h: New files.
51605 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
51607 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
51608 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
51610 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
51612 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
51613 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
51614 Include <time_r.h>.
51616 * lib/timegm.c: Switch to glibc implementation, with the following
51618 [defined HAVE_CONFIG_H]: Include <config.h>.
51619 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
51620 (__mktime_internal) [!defined _LIBC]: New decl.
51621 (__gmtime_r) [!defined _LIBC]: New macro and function.
51622 (timegm): Use a prototype, since gnulib assumes C89.
51623 Do not bother declaring tmp to be const, as it's not really usefu.
51624 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
51625 (timegm): Declare only if HAVE_DECL_TIMEGM.
51627 2003-09-06 Paul Eggert <eggert@twinsun.com>
51629 * MODULES.html.sh (func_all_modules): Add time_r.
51630 * modules/time_r: New file.
51631 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
51632 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
51634 2003-09-03 Paul Eggert <eggert@twinsun.com>
51636 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
51637 Bug reported by Lute Kamstra in
51638 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
51640 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
51641 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
51642 course with correspondingly smaller numbers for tomorrow and
51643 yesterday. From Tadayoshi Funaba. Originally installed into
51644 sh-utils on 1999-08-07, but the patch got lost (I guess during the
51647 2003-08-31 Simon Josefsson <jas@extundo.com>
51649 * modules/timegm: New file.
51650 * MODULES.html.sh (func_all_modules): Add timegm.
51652 2003-08-31 Simon Josefsson <jas@extundo.com>
51654 * m4/timegm.m4: New file.
51656 2003-08-31 Simon Josefsson <jas@extundo.com>
51658 * lib/timegm.h: New file.
51659 * lib/timegm.c: New file. Based on
51660 wget-1.8.2/src/http.c:mktime_from_utc.
51662 2003-08-31 Karl Berry <karl@gnu.org>
51664 * lib/argp.h: update from libc.
51666 2003-08-28 Bruno Haible <bruno@clisp.org>
51668 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
51669 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
51670 followed by '#define fnmatch fnmatch_posix' gives an error.
51672 2003-08-28 Bruno Haible <bruno@clisp.org>
51674 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
51675 warning on QNX, which defines O_BINARY to 000000.
51677 2003-08-27 Jim Meyering <jim@meyering.net>
51679 * m4/mkstemp.m4: Require that the system mkstemp be able to create
51680 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
51681 would fail after 32. Reported by Danny Levinson. Details here:
51682 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
51684 2003-08-24 Bruno Haible <bruno@clisp.org>
51686 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
51687 MSVC7 <stdio.h> is included later.
51689 2003-08-22 Simon Josefsson <jas@extundo.com>
51691 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
51693 2003-08-20 Karl Berry <karl@gnu.org>
51695 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
51697 2003-08-20 Bruno Haible <bruno@clisp.org>
51699 * modules/progname: New file.
51700 * MODULES.html.sh (func_all_modules): Add progname.
51702 2003-08-20 Bruno Haible <bruno@clisp.org>
51704 * lib/progname.h: New file, from GNU gettext.
51705 * lib/progname.c: New file, from GNU gettext.
51706 * lib/progreloc.c: New file, from GNU gettext.
51708 2003-08-19 Jim Meyering <jim@meyering.net>
51710 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
51711 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
51713 2003-08-19 Bruno Haible <bruno@clisp.org>
51715 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
51718 2003-08-19 Bruno Haible <bruno@clisp.org>
51720 * lib/xstrdup.c: Assume <string.h> exists.
51722 2003-08-18 Paul Eggert <eggert@twinsun.com>
51724 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
51727 2003-08-18 Jim Meyering <jim@meyering.net>
51729 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
51730 * m4/lib-ld.m4: Likewise.
51732 2003-08-18 Jim Meyering <jim@meyering.net>
51734 * lib/setenv.h: Indent nested cpp directive.
51735 * lib/vasnprintf.c: Remove trailing blanks.
51737 2003-08-17 Simon Josefsson <jas@extundo.com>
51739 * modules/xstrndup: New file.
51740 * MODULES.html.sh (func_all_modules): Add xstrndup.
51742 2003-08-17 Simon Josefsson <jas@extundo.com>
51744 * modules/argp: Fix autoconf macro name. Add more dependencies.
51746 2003-08-17 Simon Josefsson <jas@extundo.com>
51748 * m4/xstrndup.m4: New file.
51750 2003-08-17 Simon Josefsson <jas@extundo.com>
51752 * m4/argp.m4: New file.
51754 2003-08-17 Simon Josefsson <jas@extundo.com>
51755 Bruno Haible <bruno@clisp.org>
51757 * lib/xstrndup.h: New file.
51758 * lib/xstrndup.c: New file.
51760 2003-08-17 Bruno Haible <bruno@clisp.org>
51762 * modules/strndup (Files, Include): Add lib/strndup.h.
51764 2003-08-17 Bruno Haible <bruno@clisp.org>
51766 * modules/euidaccess (Files): Add lib/euidaccess.h.
51768 2003-08-17 Bruno Haible <bruno@clisp.org>
51770 * lib/strndup.h: New file.
51772 2003-08-17 Bruno Haible <bruno@clisp.org>
51774 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
51775 like AC_GNU_SOURCE.
51776 * modules/extensions (configure.ac): Comment out the invocation of
51777 gl_USE_SYSTEM_EXTENSIONS.
51779 2003-08-16 Paul Eggert <eggert@twinsun.com>
51781 Merges from coreutils, etc.
51782 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
51783 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
51784 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
51786 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
51787 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
51789 2003-08-16 Paul Eggert <eggert@twinsun.com>
51791 Document merge from coreutils.
51792 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
51793 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
51794 * modules/utime: Add m4/utimes-null.m4.
51796 2003-08-16 Paul Eggert <eggert@twinsun.com>
51798 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
51799 space, undoing this 2003-08-12 change:
51800 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51802 2003-08-16 Paul Eggert <eggert@twinsun.com>
51804 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
51805 strtoul.c from libc, undoing this 2003-08-12 change:
51806 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
51808 2003-08-16 Jim Meyering <jim@meyering.net>
51810 Merges from coreutils.
51811 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
51812 prefix. Adjust cache variables similarly. Create 500 rather than
51813 just 300 files, to exercise bug on Darwin6.5, too.
51814 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
51816 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
51817 AM_SYS_POSIX_TERMIOS.
51818 Reported by mkc@mathdogs.com.
51819 Also change use of $am_cv_sys_posix_termios
51820 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
51821 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
51822 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
51823 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
51824 in /proc/mounts until it finds one with matching device number. This
51825 is unnecessary when the FILE argument *is* a mount point. No stat call
51826 is necessary in that case. So, disable the statvfs-testing code on
51827 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
51828 as RedHat bug# 84846.
51829 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51830 to 1MB, so as not to render systems with no stack size limit (e.g.,
51831 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
51832 Include <unistd.h>. On some systems,
51833 it is required for the definition of _SC_PAGESIZE.
51835 2003-08-16 Jim Meyering <jim@meyering.net>
51837 Merge from coreutils.
51838 * lib/xstrtoimax.c: #else #if -> #elif.
51839 * lib/xstrtoumax.c: Likewise.
51841 2003-08-16 Jim Meyering <jim@meyering.net>
51843 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
51844 * m4/utimes.m4: Removed.
51845 * m4/utimes-null.m4: Renamed from utimes.m4.
51847 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
51848 to 1MB, so as not to render systems with no stack size limit (e.g.,
51849 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
51850 Include <unistd.h>. On some systems,
51851 it is required for the definition of _SC_PAGESIZE.
51853 2003-08-16 Jim Meyering <jim@meyering.net>
51854 and Paul Eggert <eggert@cs.ucla.edu>
51856 Merges from coreutils, etc.
51858 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
51859 using the latest version from cvs. This avoids problems with #line
51860 directives using a vendor (Sun) compiler.
51861 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
51862 Don't set GETGROUPS_LIB here; now it's
51863 done via getgroups.m4's wrapper function.
51864 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
51865 rather than just in sh-util/configure.in, so that the
51866 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
51868 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
51869 AC_FUNC_GETLOADAVG where to find getloadavg.c.
51870 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
51871 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
51872 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
51873 Remove code that is now done by the newly-required macros.
51874 Append $(EXEEXT) to DF_PROG.
51875 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
51876 Do not invoke or require the following here,
51877 since prereq.m4 or some gnulib .m4 now does this for us:
51878 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
51879 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
51880 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
51881 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
51882 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
51883 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
51884 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
51886 Do not replace the following functions, as this is now the job
51887 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
51888 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
51889 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
51890 atexit getpass, strdup, getpagesize.
51892 Do not check for the following functions, as this is now the job
51893 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
51894 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
51896 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
51897 Check for sys/sysctl.h.
51898 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
51899 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
51900 of checking for ssize_t ourselves.
51902 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
51903 Require every macro that gnulib/modules/* suggests for us.
51904 (jm_PREREQ_ADDEXT): New macro.
51905 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
51906 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
51908 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
51909 (gl_PHYSMEM): Use it.
51910 Also check for `table' function.
51911 Check for new headers and functions.
51912 Add check for sys/sysmp.h.
51913 With suggestions from Kaveh Ghazi.
51914 Ignore headers that are present but cannot be compiled. This
51915 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
51918 2003-08-15 Paul Eggert <eggert@twinsun.com>
51920 Document merge from coreutils.
51921 * modules/userspec: Depend on posixver.
51922 * modules/strftime: Depend on tzset.
51924 2003-08-15 Paul Eggert <eggert@twinsun.com>
51926 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
51927 rather than tab, after '#' in shell-script copyright notices.
51928 Suggested by Bruno Haible.
51930 2003-08-15 Paul Eggert <eggert@twinsun.com>
51932 * config/srclist-update: Use three spaces, rather than tab, after '#'
51933 in shell-script copyright notices. Suggested by Bruno Haible.
51934 Remove unnecessary parenthesization in regular expression.
51936 2003-08-15 Jim Meyering <jim@meyering.net>
51938 Merge from coreutils.
51939 * lib/xgethostname.c: Include <stdlib.h>.
51940 (xghostname): Don't exit for anything other than memory-related
51941 failure; just return NULL.
51942 * lib/userspec.c: Include "posixver.h".
51943 (parse_user_spec): Accept `.' as a separator only
51944 in pre-POSIX-200112 mode.
51945 * lib/strtoimax.c: Use #elif rather than #else #if.
51946 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
51947 Remove function, now that we can rely on a working tzset function.
51948 [!_LIBC]: Ensure that the required autoconf test has been run.
51949 [!defined _NL_CURRENT && HAVE_STRFTIME]:
51950 Use underlying_strftime for %r.
51951 * lib/sha.c: Merge in some clean-up and optimization changes from
51953 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
51954 Ensure that it is a multiple of 64.
51955 Rearrange loop exit tests so as to avoid performing an
51956 additional fread after encountering an error or EOF.
51957 * lib/realloc.c: Update copyright date.
51959 2003-08-15 Jim Meyering <jim@meyering.net>
51960 and Paul Eggert <eggert@twinsun.com>
51962 Merge from coreutils.
51963 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
51964 member but strut utmpx does not. Needed for AIX 4.3.3.
51965 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
51967 2003-08-15 Jim Meyering <jim@meyering.net>
51968 and Paul Eggert <eggert@cs.ucla.edu>
51970 Merges from coreutils, etc.
51971 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
51972 Require gl_FUNC_TZSET_CLOBBER.
51973 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
51974 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
51977 2003-08-14 Paul Eggert <eggert@twinsun.com>
51979 Help the merge from coreutils.
51980 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
51981 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
51982 * m4/tzset.m4: Use it too.
51984 2003-08-14 Paul Eggert <eggert@twinsun.com>
51986 * modules/tzset: New file.
51988 2003-08-14 Jim Meyering <jim@meyering.net>
51990 Merges from coreutils.
51991 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
51992 variable names, rather than @FNMATCH_H@.
51993 * modules/alloca: Likewise for $(ALLOCA_H).
51995 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
51996 the three copies of the literal target, `fnmatch.h'.
51997 * modules/alloca (alloca.h): Likewise.
51999 2003-08-14 Jim Meyering <jim@meyering.net>
52001 Merge from coreutils.
52002 * m4/tzset.m4: New file.
52003 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
52004 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
52005 otherwise, AIX 5.1 systems would end up using the latter.
52006 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
52007 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
52008 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
52009 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
52011 2003-08-14 Jim Meyering <jim@meyering.net>
52013 Merge from coreutils.
52014 * lib/obstack.h: Whitespace changes.
52015 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
52016 and xcalloc return values.
52017 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
52018 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
52019 hang on OSF/1 5.1 for DIR on both local and remote file systems.
52020 Reported by (and fix confirmed by) Nelson H. F. Beebe.
52021 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
52023 Use mntctl's return value to drive the entry-processing loop, since
52024 we can't rely on the value of the vmt_length member in the last
52025 entry. On some systems doing so could result in exhausting
52026 virtual memory. Based in part on a patch from Mike Jetzer.
52028 2003-08-14 Jim Meyering <jim@meyering.net>
52029 and Paul Eggert <eggert@twinsun.com>
52031 Merges from coreutils, plus other fixes.
52032 * lib/physmem.c: Merge in portability changes from gcc/libiberty
52033 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
52034 for credits and details. Thanks to Kaveh Ghazi for helping
52035 to keep these files in sync.
52036 (ARRAY_SIZE): Define it.
52037 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
52038 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
52039 (memcasecmp): Don't assume size_t fits in unsigned int.
52040 Remove casts and duplicate code.
52041 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
52042 (memcpy): Remove definition.
52043 Merge in some clean-up and optimization changes from glibc.
52044 [BLOCKSIZE]: Move definition to top of file.
52045 Ensure that it is a multiple of 64.
52046 Rearrange loop exit tests so as to avoid performing an
52047 additional fread after encountering an error or EOF.
52048 * lib/md5.h (md5_uintptr): Define.
52049 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
52050 return to the initial working directory. Preserve errno
52052 * lib/idcache.c: Include "xalloc.h".
52053 (xmalloc, xrealloc): Remove decls.
52054 (getuser): Remove casts no longer required in C89.
52055 * lib/human.c: Include stdio.h, for sprintf.
52056 * lib/group-member.c: Include "xalloc.h".
52057 (xmalloc, xrealloc): Remove decls.
52058 (get_group_info): Remove casts no longer required in C89.
52059 * lib/getusershell.c (readname): Remove casts no longer required in
52061 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
52062 * lib/getline.c: Whitespace fix, from coreutils.
52064 2003-08-13 Paul Eggert <eggert@twinsun.com>
52066 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
52069 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
52070 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
52071 Undo previous (whitespace-only) change.
52073 2003-08-13 Paul Eggert <eggert@twinsun.com>
52075 * lib/exclude.c: Include <ctype.h>
52076 (IN_CTYPE_DOMAIN): New macro.
52077 (is_space): New fn.
52078 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
52081 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
52082 Undo previous (whitespace-only) change.
52084 2003-08-13 Paul Eggert <eggert@twinsun.com>
52086 * config/srclist-update: Change update back to the old behavior,
52087 leaving whitespace alone. Use one 'sed' command rather than a
52089 (fixlicense): Now a variable, not a function.
52090 (remove_trailing_blanks): Remove.
52091 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
52092 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
52093 Undo previous (whitespace-only) change.
52095 2003-08-12 Paul Eggert <eggert@twinsun.com>
52097 Merge from coreutils.
52098 * modules/euidaccess: Add lib_SOURCES, include for new
52101 2003-08-12 Paul Eggert <eggert@twinsun.com>
52103 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
52104 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
52105 Normalize leading white space and remove trailing white space.
52107 Merge from coreutils
52108 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
52110 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
52111 0.12.1. These files are now being upgraded automatically by
52112 ../config/srclist-update.
52114 2003-08-12 Paul Eggert <eggert@twinsun.com>
52116 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
52117 Normalize leading white space and remove trailing white space.
52118 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
52119 notice, as per ../config/srclist-update.
52121 Merge from coreutils.
52122 * lib/euidaccess.h: New file.
52123 * lib/euidaccess.c: Include it.
52124 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
52125 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
52126 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
52128 2003-08-12 Paul Eggert <eggert@twinsun.com>
52130 * config/srclist-update: Add copyright notice.
52131 (remove_id_lines, remove_trailing_blanks): New constants.
52132 (fixfile): Use them to normalize spacing a bit in copied files.
52133 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
52134 Normalize leading white space and remove trailing white space.
52136 * config/texinfo.tex: Sync with texinfo.
52138 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
52139 strtoul.c from libc, to merge coreutils whitespace changes.
52141 * config/srclist.txt: Get the following m4 files from gettext:
52142 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
52143 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
52144 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
52147 2003-08-12 Karl Berry <karl@gnu.org>
52149 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
52152 2003-08-11 Paul Eggert <eggert@twinsun.com>
52154 * modules/gnu-source, m4/gnu-source.m4:
52155 Remove; we're assuming Autoconf 2.54 or later now.
52156 Suggested by Bruno Haible.
52157 * MODULES.html.sh (func_all_modules): Remove gnu-source.
52159 2003-08-11 Bruno Haible <bruno@clisp.org>
52161 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
52163 2003-08-11 Bruno Haible <bruno@clisp.org>
52165 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
52166 (vasnprintf): Use it instead of wcslen.
52168 2003-08-11 Bruno Haible <bruno@clisp.org>
52170 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
52171 value to ensure that _Bool promotes to int. Use #define for _Bool when
52172 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
52174 2003-08-10 Karl Berry <karl@gnu.org>
52176 * lib/regex.h: update from libc (whitespace fix).
52178 2003-08-09 Paul Eggert <eggert@twinsun.com>
52180 Merge some files from coreutils. These changes were
52181 originally made by Jim Meyering.
52182 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
52183 many older Unixes require this.
52184 * lib/alloca.c (alloca): Remove cast to argument of free;
52185 no longer needed in C89.
52186 * lib/alloca_.h, regex.h: Fix white space to match
52187 what GNU indent does.
52189 2003-08-09 Paul Eggert <eggert@twinsun.com>
52191 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
52192 apparently Emacs's Unicode mode got confused before my 2003-08-05
52195 2003-08-08 Paul Eggert <eggert@twinsun.com>
52197 * m4/extensions.m4: New file.
52198 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
52199 Require gl_USE_SYSTEM_EXTENSIONS.
52200 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
52201 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
52203 2003-08-08 Paul Eggert <eggert@twinsun.com>
52205 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
52206 * modules/extensions, modules/gnu-source: New files.
52207 * modules/timespec, modules/unlocked-io: Depend on extensions.
52209 2003-08-07 Paul Eggert <eggert@twinsun.com>
52211 * modules/restrict: New file.
52212 * MODULES.html.sh (func_all_modules): Add restrict.
52213 * modules/regex: Depend on restrict.
52215 2003-08-07 Paul Eggert <eggert@twinsun.com>
52217 * m4/restrict.m4: New file.
52218 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
52220 2003-08-07 Bruno Haible <bruno@clisp.org>
52222 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
52223 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
52225 2003-08-07 Bruno Haible <bruno@clisp.org>
52227 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
52228 makes the module 'getndelim2' compatible with the module 'getline'.
52230 2003-08-05 Paul Eggert <eggert@twinsun.com>
52232 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
52233 byte with "\201" to avoid glitches when editing that source file
52234 with multi-gnome-terminal.
52236 2003-08-05 Paul Eggert <eggert@twinsun.com>
52238 * lib/bumpalloc.h: Remove.
52240 2003-08-05 Paul Eggert <eggert@twinsun.com>
52242 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
52243 * modules/bumpalloc: Remove.
52245 2003-08-04 Paul Eggert <eggert@twinsun.com>
52247 * lib/getloadavg.c: Change copyright notice and spacing to conform to
52250 Merge from coreutils.
52251 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
52253 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
52254 from Karl Berry, implemented by Jim Meyering.
52255 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
52256 from Dmitry V. Levin.
52257 Remove anachronistic cast of xrealloc.
52258 * lib/fnmatch_.h (__const): Remove. Use 'const'.
52259 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
52260 type. Otherwise, it wouldn't compile with at least /bin/cc on
52261 ymp-cray-unicos9.0.2.X.
52262 Combine two mostly-identical uses of alloca into one.
52263 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
52265 2003-08-04 Dave Love <d.love@dl.ac.uk>
52269 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
52270 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
52271 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
52272 obsolete NLIST_NAME_UNION.
52273 [__GNU__]: Undef BSD and FSCALE.
52274 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
52276 2003-08-03 Paul Eggert <eggert@twinsun.com>
52278 * lib/stdbool_.h (_Bool): Make it signed char, instead of
52279 an enum type, so that it's guaranteed to promote to int. See:
52280 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
52282 2003-08-03 Karl Berry <karl@gnu.org>
52284 * config/depcomp: update from automake.
52286 2003-07-31 Paul Eggert <eggert@twinsun.com>
52288 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
52289 (strerror): Don't assume that a printable int fits in 14 bytes.
52291 2003-07-31 Bruno Haible <bruno@clisp.org>
52293 * modules/getpass-gnu: New file.
52294 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
52296 2003-07-31 Bruno Haible <bruno@clisp.org>
52298 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
52300 2003-07-24 Karl Berry <karl@gnu.org>
52302 * config/missing: update from automake.
52304 2003-07-24 Derek Robert Price <derek@ximbiot.com>
52305 Bruno Haible <bruno@clisp.org>
52307 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
52308 * lib/getline.c (getline, getdelim): Likewise.
52309 Remove _GNU_SOURCE define; now it's defined in config.h through
52312 2003-07-23 Karl Berry <karl@gnu.org>
52314 * config/config.sub: update from prep.
52316 2003-07-22 Paul Eggert <eggert@twinsun.com>
52318 * modules/xalloc (Depends-on): Add exitfail.
52319 * modules/xmemcoll: Likewise.
52321 2003-07-22 Paul Eggert <eggert@twinsun.com>
52323 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
52324 over-parenthesization in macros.
52326 Sync with coreutils.
52328 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
52331 Use `exit_failure' for xalloc and xmemcoll instead of their own
52332 private exit-failure variables.
52333 * lib/xalloc.h (xalloc_exit_failure): Remove.
52334 * lib/xmalloc.c: Likewise. Include exitfail.h.
52335 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
52336 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
52337 * lib/xmemcoll.c: Likewise. Include exitfail.h.
52338 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
52340 2003-07-20 Jim Meyering <jim@meyering.net>
52342 * modules/closeout (Depends-on): Add exitfail.
52343 Suggestion from Bruno Haible.
52345 2003-07-19 Karl Berry <karl@gnu.org>
52347 * config/config.sub: update from prep.
52349 2003-07-18 Paul Eggert <eggert@twinsun.com>
52351 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
52353 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
52354 to test that it can stand by itself. Include "exitfail.h".
52355 Clients should set exit_failure instead.
52356 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
52358 2003-07-18 Bruno Haible <bruno@clisp.org>
52360 * modules/getndelim2: New file.
52361 * modules/getline: Share files with module getndelim2.
52362 * modules/getnline: Depend on getndelim2 instead of sharing files with
52363 it. Add getnline.c to lib_SOURCES.
52364 * MODULES.html.sh (func_all_modules): Add getndelim2.
52366 2003-07-18 Bruno Haible <bruno@clisp.org>
52368 * m4/getndelim2.m4: New file.
52369 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
52370 invoke gl_PREREQ_GETNDELIM2.
52371 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
52372 gl_PREREQ_GETNDELIM2.
52373 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
52376 2003-07-18 Bruno Haible <bruno@clisp.org>
52378 * lib/getndelim2.h: New file.
52379 * lib/getndelim2.c: Make into a module of its own. Include config.h,
52381 (getndelim2): Make non-static. Change return type to ssize_t.
52382 * lib/getline.h: Change argument names.
52383 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
52384 * lib/getnline.c: Include getndelim2.h.
52386 2003-07-18 Andreas Schwab <schwab@suse.de>
52388 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
52390 2003-07-17 Karl Berry <karl@gnu.org>
52392 * config/config.sub: update from prep.
52394 2003-07-17 Bruno Haible <bruno@clisp.org>
52396 * modules/getnline: New file.
52397 * modules/getline: Add lib/getndelim2.c to source file list.
52398 * MODULES.html.sh (func_all_modules): Add getnline.
52400 2003-07-17 Bruno Haible <bruno@clisp.org>
52402 * m4/getnline.m4: New file.
52404 2003-07-17 Bruno Haible <bruno@clisp.org>
52406 * m4/Makefile.am.in: Remove file.
52407 * m4/Makefile.am: Remove file.
52408 * m4/Makefile.in: Remove file.
52410 2003-07-17 Bruno Haible <bruno@clisp.org>
52412 * lib/getnline.h: New file.
52413 * lib/getnline.c: New file.
52414 * lib/getndelim2.c: New file, extracted from getline.c.
52415 (getndelim2): Renamed from getdelim2, with added nmax argument.
52416 * lib/getline.c: Include getndelim2.c.
52417 (getdelim2): Moved out to getndelim2.c.
52418 (getline, getdelim): Update.
52420 2003-07-17 Bruno Haible <bruno@clisp.org>
52422 * lib/Makefile.am: Remove file.
52423 * lib/Makefile.in: Remove file.
52425 2003-07-17 Bruno Haible <bruno@clisp.org>
52427 * configure.in: Remove file.
52428 * Makefile.in: Remove file.
52430 2003-07-17 Bruno Haible <bruno@clisp.org>
52432 * MODULES.html.sh: Put the </BODY> right before </HTML>.
52434 2003-07-16 Karl Berry <karl@gnu.org>
52436 * config/srclist-update: was running fixlicense twice, which caused
52437 texinfo.tex to be nullified for some reason. Simplify,
52438 $gplsrc is no longer needed as far as I can see?
52440 2003-07-16 Jim Meyering <jim@meyering.net>
52442 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
52444 2003-07-15 Paul Eggert <eggert@twinsun.com>
52446 * config/srclist.txt: Get the following files from gettext-runtime/intl
52447 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
52448 ref-del.sin. From Bruno Haible.
52449 * config/srclist-update (fixfile): Change grep pattern again, since the
52450 previous fix didn't work (there was another trailing $). Use
52451 '[$]' to escape the $s.
52453 2003-07-15 Karl Berry <karl@gnu.org>
52455 * lib/vasnprintf.c: update from gettext.
52457 2003-07-15 Karl Berry <karl@gnu.org>
52459 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
52460 gets expanded when surrounded by '$'.
52462 2003-07-15 Jim Meyering <jim@meyering.net>
52464 * modules/save-cwd: Don't depend on error. From Derek Price.
52466 2003-07-15 Jim Meyering <jim@meyering.net>
52468 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
52470 2003-07-14 Simon Josefsson <jas@extundo.com>
52472 * modules/mempcpy: New file.
52473 * MODULES.html.sh (func_all_modules): Add mempcpy.
52475 2003-07-14 Simon Josefsson <jas@extundo.com>
52477 * m4/mempcpy.m4: New file.
52479 2003-07-14 Simon Josefsson <jas@extundo.com>
52481 * lib/mempcpy.h: New file.
52482 * lib/mempcpy.c: New file.
52484 2003-07-14 Paul Eggert <eggert@twinsun.com>
52486 * modules/getdate, modules/posixtm: Depend on mktime.
52488 2003-07-14 Paul Eggert <eggert@twinsun.com>
52490 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
52491 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
52492 unicodeio.c, unicodeio.h, unlocked-io.h:
52493 Switch from LGPL to GPL.
52495 2003-07-14 Paul Eggert <eggert@twinsun.com>
52497 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
52498 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
52499 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
52500 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
52501 vasprintf.c, vasprintf.h: Regenerate. These files are now being
52502 updated automatically by ../config/srclist-update. This changes
52503 their license from LPGL to GPL.
52505 2003-07-14 Paul Eggert <eggert@twinsun.com>
52507 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
52508 assumed to refer to the root of the most recent stable gettext version.
52509 * config/srclistvars.sh: Add defaults for eggert.
52510 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
52511 Match "This program" as well as "The program". This is needed
52514 2003-07-14 Jim Meyering <jim@meyering.net>
52516 Don't emit diagnostics. Let callers do that.
52517 * lib/save-cwd.c: Don't include "error.h".
52518 (save_cwd): Don't call error. Ensure that errno is valid
52519 when returning nonzero.
52521 * lib/save-cwd.h (restore_cwd): Update prototype.
52522 * lib/save-cwd.c (restore_cwd): Remove two parameters.
52523 Simplify. Don't call error upon failure. Let callers do that.
52524 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
52525 when auditing is enabled. But don't bother updating the #if.
52527 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
52529 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
52530 it breaks C++ compilation.
52531 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
52533 2003-07-10 Simon Josefsson <jas@extundo.com>
52535 * modules/strchrnul (Makefile.am): Add strchrnul.h.
52537 2003-07-10 Jim Meyering <jim@meyering.net>
52539 * m4/clock_time.m4: Remove trailing blank.
52540 * m4/intmax_t.m4: Likewise.
52542 2003-07-10 Jim Meyering <jim@meyering.net>
52544 * lib/vasnprintf.c: Remove trailing blanks.
52545 Make cpp indentation consistent.
52547 2003-07-09 Paul Eggert <eggert@twinsun.com>
52549 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
52550 posixver.c, strftime.c, strnlen.c, strverscmp.c:
52551 Switch from LGPL to GPL.
52553 2003-07-09 Paul Eggert <eggert@twinsun.com>
52555 * config/srclist.txt: Sort sublists. Add
52556 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
52557 that differ from gnulib for one reason or another; we'd like this list
52558 to be smaller but for now let's document what we have.
52560 2003-07-08 Paul Eggert <eggert@twinsun.com>
52562 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
52563 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
52564 and sweeter "eval x=$x".
52565 * config/srclist.txt: Get lib/argp* from glibc.
52567 2003-07-07 Paul Eggert <eggert@twinsun.com>
52569 * lib/mktime.c: Fix some boundary cases and remove need for floating
52572 Issue a compile-time diagnostic if time_t is floating point, or if
52573 two's complement arithmetic is not in effect, or if arithmetic
52574 right shift does not propagate the sign. These assumptions were
52575 all in the original code but they weren't checked.
52577 (TIME_T_MIDPOINT, verify): New macros.
52578 (__isleap): Remove; it has integer overflow problems.
52579 (leapyear): New function, without those problems.
52580 (ydhms_tm_diff): Remove; splitting into two parts.
52581 (ydhms_diff): New function, containing the arithmetic part of
52582 the old ydhms_tm_diff function. Issue a compile-time
52583 diagnostic if we are not using C99 integer division.
52584 Avoid casts when possible.
52585 (guess_time_tm): New function, containing the checking part of
52586 the old ydhms_tm_diff function. Return the new value, rather than
52587 the difference between it and the old. Accept a new argument T
52588 so that *T specifies the old value. Check for overflow in the result.
52590 (__mktime_internal): Use a time_t offset, not a long int offset.
52591 This undoes the 2003-06-04 change, which is no longer needed now
52592 that we have better overflow checking.
52593 (localtime_offset): Likewise.
52595 (__mktime_internal): Avoid harmful overflow on hosts where time_t
52596 and long are 64-bit but int is only 32-bit.
52597 (ydhms_diff): Use long int to store year1 and yday1.
52598 Issue a compile-time diagnostic if long int is not wide enough.
52600 (__mktime_internal): Use long int to store adjusted year and yday.
52601 Use plain C rather than preprocessor commands, if that doesn't
52603 Check for overflow (and try to repair) after each probe
52604 rather than checking only at the very end. This avoids some bugs
52605 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
52606 does not equal GMT offset at maximum time).
52607 Use integer to check for overflow rather than floating point; this
52608 is more portable to non-IEEE hosts, and is a tad faster.
52609 When we detect that we are oscillating between two values,
52610 don't check whether tm_isdst has the requested value, since
52611 we already know the answer. When tm_isdst has the wrong value,
52612 use a different heuristic to find the right one, based on the
52613 extreme values actually observed in practice in tz2003a,
52614 rather than the (overly optimistic) "previous 3 calendar quarters".
52616 (not_equal_tm, print_tm, check_result): Use "const T" rather than
52617 "T const" to accommodate glibc style.
52618 (check_result): Use less-confusing report format. "long" -> "long int.
52620 Don't loop if the iteration overflows time_t.
52621 Allow a negative step in the iteration.
52623 2003-07-06 Karl Berry <karl@gnu.org>
52625 * config/depcomp: update from automake.
52626 * config/config.sub: update from prep.
52628 2003-07-03 Karl Berry <karl@gnu.org>
52630 * config/config.guess: update from prep.
52632 2003-07-01 Paul Eggert <eggert@twinsun.com>
52634 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
52635 xreadlink.c now includes it unconditionally.
52637 2003-07-01 Paul Eggert <eggert@twinsun.com>
52639 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
52640 having it depend on HAVE_SYS_TYPES_H.
52642 2003-07-01 Bruno Haible <bruno@clisp.org>
52644 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
52645 <sys/types.h> should be sufficient.
52646 Reported by Paul Eggert.
52648 2003-06-26 Karl Berry <karl@gnu.org>
52650 * config/depcomp: update from automake.
52652 2003-06-26 Bruno Haible <bruno@clisp.org>
52654 * modules/human: Depend on module stdbool.
52656 2003-06-25 Bruno Haible <bruno@clisp.org>
52658 * modules/readlink: New file.
52659 * modules/xreadlink: Depend on it.
52660 * MODULES.html.sh (func_all_modules): Add readlink.
52662 2003-06-25 Bruno Haible <bruno@clisp.org>
52664 * m4/readlink.m4: New file.
52666 2003-06-25 Bruno Haible <bruno@clisp.org>
52668 * lib/readlink.c: New file.
52670 2003-06-22 Karl Berry <karl@gnu.org>
52672 * config/srclist.txt: update mkinstalldirs from automake.
52673 * config/mkinstalldirs: update.
52675 2003-06-22 Bruno Haible <bruno@clisp.org>
52677 Portability to mingw32.
52678 * m4/ssize_t.m4: New file, from GNU gettext.
52679 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
52680 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
52682 2003-06-22 Bruno Haible <bruno@clisp.org>
52684 * modules/safe-read: Add m4/ssize_t.m4.
52685 * modules/xreadlink: Add m4/ssize_t.m4.
52687 2003-06-20 Bruno Haible <bruno@clisp.org>
52689 Assume C89, so PARAMS isn't needed.
52690 * lib/unicodeio.h (PARAMS): Remove.
52691 * lib/unicodeio.c: Don't use PARAMS.
52693 2003-06-18 Karl Berry <karl@gnu.org>
52695 * config/config.{guess,sub}: update from prep.
52697 2003-06-18 Jim Meyering <jim@meyering.net>
52699 Merge changes from coreutils.
52700 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
52701 Remove explicit declarations of xmalloc and realloc.
52703 (read_utmp): Remove anachronistic cast of xmalloc.
52705 2003-06-17 Paul Eggert <eggert@twinsun.com>
52707 Assume C89, so PARAMS isn't needed.
52708 * lib/backupfile.h (PARAMS): Remove. All uses removed.
52709 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
52710 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
52711 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
52712 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
52713 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
52714 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
52715 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
52716 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
52717 lib/xstrtod.h, lib/xstrtol.h: Likewise.
52718 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
52719 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
52720 no longer needed. Anyway, config.h should always be included before any
52723 2003-06-11 Simon Josefsson <jas@extundo.com>
52725 * modules/sysexits: New file.
52726 * MODULES.html.sh (func_all_modules): Add sysexits.
52728 2003-06-11 Simon Josefsson <jas@extundo.com>
52730 * lib/sysexit_.h: New file.
52732 2003-06-11 Derek Price <derek@ximbiot.com>
52734 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
52737 2003-06-11 Bruno Haible <bruno@clisp.org>
52739 * m4/sysexits.m4: New file.
52741 2003-06-10 Simon Josefsson <jas@extundo.com>
52743 * lib/argp.h: New file, from glibc.
52744 * lib/argp-ba.c: New file, from glibc.
52745 * lib/argp-eexst.c: New file, from glibc.
52746 * lib/argp-fmtstream.c: New file, from glibc.
52747 * lib/argp-fmtstream.h: New file, from glibc.
52748 * lib/argp-fs-xinl.c: New file, from glibc.
52749 * lib/argp-help.c: New file, from glibc.
52750 * lib/argp-namefrob.h: New file, from glibc.
52751 * lib/argp-parse.c: New file, from glibc.
52752 * lib/argp-pv.c: New file, from glibc.
52753 * lib/argp-pvh.c: New file, from glibc.
52754 * lib/argp-xinl.c: New file, from glibc.
52756 2003-06-10 Simon Josefsson <jas@extundo.com>
52758 * modules/strchrnul: New file.
52760 2003-06-10 Simon Josefsson <jas@extundo.com>
52762 * modules/argp: New file.
52764 2003-06-10 Simon Josefsson <jas@extundo.com>
52766 * m4/strchrnul.m4: New file.
52768 2003-06-10 Simon Josefsson <jas@extundo.com>
52770 * lib/strchrnul.h: New file.
52771 * lib/strchrnul.c: New file.
52773 2003-06-10 Bruno Haible <bruno@clisp.org>
52775 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
52777 2003-06-07 Karl Berry <karl@gnu.org>
52779 * config/config.{guess,sub}: update from prep.
52781 2003-06-07 Jim Meyering <jim@meyering.net>
52783 * modules/strtod: Use $(...) notation, not @...@ for
52784 AC_REPLACE'd variables.
52785 * modules/localcharset: Likewise.
52787 2003-06-07 Jim Meyering <jim@meyering.net>
52789 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
52790 in place of my name in the copyright comment.
52791 Remove definition and uses of __P.
52794 * lib/stat.c: Don't declare xmalloc explicitly.
52795 Instead, include "xalloc.h".
52796 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
52797 xrealloc, and xcalloc return values.
52798 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
52800 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
52802 2003-06-07 Bruno Haible <bruno@clisp.org>
52804 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
52805 avoid AC_CONFIG_LINKS.
52806 * modules/fnmatch (Makefile.am): Use explicit creation rule for
52807 fnmatch.h, to avoid AC_CONFIG_LINKS.
52808 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
52810 2003-06-07 Bruno Haible <bruno@clisp.org>
52812 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
52813 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
52814 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52816 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
52817 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
52820 2003-06-06 Jim Meyering <jim@meyering.net>
52822 Merge from coreutils.
52823 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
52824 Consolidate declarations and initializations of *_base* locals.
52826 Merge from coreutils.
52827 This avoids a core dump on systems without GNU putenv,
52828 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
52829 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
52830 (unsetenv): New static function, from GNU libc.
52831 (rpl_putenv): Use it.
52833 * lib/modechange.c: Remove trailing blanks.
52835 Merge from coreutils.
52836 * lib/fsusage.c: Remove declaration of statfs.
52837 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
52839 * lib/posixtm.c: Include <stdbool.h> unconditionally.
52841 2003-06-06 Jim Meyering <jim@meyering.net>
52843 * lib/stdbool_.h: Renamed from stdbool.h.in.
52845 2003-06-06 Jim Meyering <jim@meyering.net>
52846 Bruno Haible <bruno@clisp.org>
52848 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
52849 Adjust Makefile.am snippet not to redirect directly to target.
52850 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
52852 2003-06-05 Paul Eggert <eggert@twinsun.com>
52854 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
52855 mismatch, look in future quarters as well as past. This fixes a
52856 bug when processing fall-backwards gaps immediately after a long
52857 period of daylight-saving time.
52859 * lib/mktime.c: Assume freestanding C89 or better.
52860 (HAVE_LIMITS_H): Remove. Assume it's 1.
52861 (__P): Remove; not used.
52862 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
52863 (mktime, not_equal_tm, print_tm, check_result,
52864 main): Use prototypes. Use const * where appropriate.
52865 (main): Fix typo in testing code that uncovered by above changes.
52866 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
52868 2003-06-04 Paul Eggert <eggert@twinsun.com>
52870 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
52871 locale.h, localeconv. This merges changes from coreutils.
52873 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
52874 It can be removed after the next Autoconf is released.
52875 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
52878 2003-06-04 Paul Eggert <eggert@twinsun.com>
52880 * lib/mktime.c: Fix Debian bug 177940
52881 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
52882 (localtime_offset): Now long int, not time_t, because we want it
52883 to be guaranteed to be signed. All uses changed.
52884 (__mktime_internal): If overflow would occur when adding offset,
52887 Merge 'human' changes from coreutils. Rewrite to support
52888 locale-specific notations like thousands separators.
52889 * lib/human.c: Simplify authorship notice.
52890 Include human.h immediately after config.h.
52891 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
52892 <limits.h>: Do not include, since human.h does.
52893 (SIZE_MAX, UINTMAX_MAX): New macros.
52894 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
52895 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
52896 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
52897 (power_letter): Renamed from suffixes.
52898 (generate_suffix_backwards): Remove.
52899 (adjust_value): Now takes int style (because of human.h changes)
52900 and long double value (for greater precision on some platforms).
52901 (group_number): New function.
52902 (human_readable): Use it. Use integer options, not enum.
52903 Put the options before the sizes in the arg list.
52904 Support all the new options.
52905 The old human_readable function has been removed;
52906 use inttostr.h instead.
52907 (human_readable, default_block_size, humblock):
52908 Use uintmax_t, not int, for block sizes.
52909 (human_readable_inexact, block_size_types): Remove.
52910 (block_size_opts): New constant.
52911 (human_options): Renamed from human_block_size, with new signature
52912 that allows block sizes up to UINTMAX_MAX. All callers changed.
52913 * lib/human.h: Add copyright and authorship notice.
52914 Include <limits.h> and <stdbool.h> unconditionally.
52915 (PARAMS): Remove. All uses removed.
52916 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
52917 (enum human_inexact_style): Remove tag; now a nameless enum.
52918 (human_floor, human_ceiling, human_round_to_even): Now have
52919 values 2, 0, 1 rather than -1, 1, 0.
52920 (human_group_digits, human_suppress_point_zero, human_autoscale,
52921 human_base_1024, human_SI, human_B): New constants.
52922 (human_readable_inexact, human_block_size): Remove.
52923 (human_readable): Size args are now uintmax_t, not int.
52924 (human_options): New decl.
52926 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
52927 unnecessary now that we assume C89 or better. This change
52928 imported from coreutils.
52930 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
52931 arbitrarily. This is the same patch as 2003-05-28, but it got lost
52932 in the 2003-05-30 sync from glibc.
52934 .h files should stand alone, but we shouldn't include <sys/types.h>
52935 if we can get away with just <stddef.h>.
52937 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
52938 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
52939 rather than <sys/types.h>, as we merely need size_t.
52940 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
52942 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
52943 Include <stdio.h>, to get FILE.
52944 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
52945 memcasecmp.h has included <stddef.h> and all we need is size_t.
52946 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
52947 our interface, instead of including <sys/types.h>
52949 2003-06-04 Paul Eggert <eggert@twinsun.com>
52951 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
52952 now, as glibc mktime is buggy on non-glibc systems.
52954 2003-06-03 Karl Berry <karl@gnu.org>
52956 * config/config.sub: update from prep.
52958 2003-06-02 Paul Eggert <eggert@twinsun.com>
52961 Fix some minor time-related bugs with POSIX time arguments.
52962 Some valid time stamps were being rejected (notably -1, and
52963 time stamps before 1900 on 64-bit hosts). And some invalid
52964 time stamps were being accepted, e.g. September 31.
52966 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
52967 that we can return (time_t) -1 successfully.
52968 * lib/posixtm.c: Likewise.
52969 [HAVE_STDBOOL_H]: Include <stdbool.h>.
52970 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
52971 (t): Remove static var.
52972 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
52973 of static var. All uses changed.
52974 (year): Do not reject years before 1900; they can occur with
52976 (posix_time_parse): Do not check for out-of-range components;
52977 that is now the caller's responsibility, since our checks were
52978 only approximations.
52979 (posixtime): Use mktime to check for out-of-range components,
52980 since it knows them exactly.
52981 If mktime returns (time_t) -1, check whether an error actually occurred
52982 by invoking localtime on -1.
52983 (main) [TEST_POSIXTIME]: Check for input data errors, and report
52984 posixtime failures better.
52985 Improve the test data (in comments only).
52987 2003-06-02 Karl Berry <karl@gnu.org>
52989 * config/mkinstalldirs (version): new variable.
52990 (--version): new option.
52991 (usage): improve message.
52993 2003-05-30 Karl Berry <karl@gnu.org>
52995 * lib/mktime.c: update from libc.
52997 2003-05-30 Bruno Haible <bruno@clisp.org>
52999 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
53000 * config/config.rpath: Upgrade to gettext-0.12.1.
53002 2003-05-30 Bruno Haible <bruno@clisp.org>
53004 * m4/gettext.m4: Upgrade to gettext-0.12.1.
53005 * m4/nls.m4: New file, from gettext-0.12.1.
53006 * m4/po.m4: New file, from gettext-0.12.1.
53007 * m4/progtest.m4: Upgrade to gettext-0.12.1.
53009 2003-05-30 Bruno Haible <bruno@clisp.org>
53011 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
53012 * lib/localcharset.h: Likewise.
53013 * lib/localcharset.c: Likewise.
53015 2003-05-29 Karl Berry <karl@gnu.org>
53017 * config/config.rpath: update from gettext.
53019 2003-05-28 Paul Eggert <eggert@twinsun.com>
53021 Assume the headers required for C89 freestanding compilers.
53022 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
53023 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
53024 * m4/human.m4 (gl_HUMAN): Likewise.
53025 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
53026 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
53027 * m4/userspec.m4 (gl_USERSPEC): Likewise.
53028 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
53029 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53030 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
53032 2003-05-28 Paul Eggert <eggert@twinsun.com>
53034 Assume the headers required for C89 freestanding compilers.
53035 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
53036 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
53037 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
53038 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
53039 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
53040 define, since <limits.h> is guaranteed to do that.
53041 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
53042 * lib/exclude.c: Include <stdbool.h> unconditionally.
53043 * lib/tempname.c: Include <stddef.h> unconditionally.
53044 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
53045 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
53046 <stddef.h> does that.
53047 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
53048 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
53049 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
53051 * lib/xstrtol.c: Likewise.
53052 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
53053 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
53055 * lib/addext.c (addext): Use assignment rather than cast, to avoid
53056 warnings on some platforms.
53058 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
53061 2003-05-26 Jim Meyering <jim@meyering.net>
53063 Merge in a change from coreutils:
53064 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
53065 that is guaranteed to be `no'. Use `no_such_member' to indicate
53066 that condition, rather than `-1' which is slightly misleading.
53067 Change the name of the cache variable to have the gl_ prefix.
53068 Prompted by a patch from Richard Dawe for DJGPP.
53070 2003-05-24 Karl Berry <karl@gnu.org>
53072 * config/config.guess: update from prep.
53074 2003-05-22 Karl Berry <karl@gnu.org>
53076 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
53078 2003-05-20 Karl Berry <karl@gnu.org>
53080 * config/config.guess: update from prep.
53082 2003-05-18 Karl Berry <karl@gnu.org>
53084 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
53085 might actually be set by the user.
53087 * config/depcomp, install-sh, mdate-sh: update from automake.
53089 2003-05-17 Bruno Haible <bruno@clisp.org>
53091 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
53092 invalid expansion for AC_EGREP_CPP.
53093 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
53094 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
53095 Suggested by Akim Demaille <akim@epita.fr> in
53096 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
53098 2003-05-12 Jim Meyering <jim@meyering.net>
53100 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
53101 the space-padded-by-default conversion specifiers, %e, %k, %l.
53103 2003-05-12 Bruno Haible <bruno@clisp.org>
53105 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
53106 the string is longer than 4 KB.
53108 2003-05-11 Karl Berry <karl@gnu.org>
53110 * config/config.{guess,sub}: update from prep.
53112 2003-05-09 Bruno Haible <bruno@clisp.org>
53114 * modules/error: Add m4/strerror_r.m4 to file list.
53116 2003-05-03 Bruno Haible <bruno@clisp.org>
53118 Upgrade to Unicode-4.0.
53119 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
53120 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
53121 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
53122 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
53123 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
53124 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
53125 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
53126 Change width of U+E0100..U+E01EF from 1 to 0.
53128 2003-04-25 Jim Meyering <jim@meyering.net>
53130 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
53131 of type size_t, not int.
53133 2003-04-25 Bruno Haible <bruno@clisp.org>
53135 * lib/copy-file.c: Include <stddef.h>, for size_t.
53137 2003-04-21 Paul Eggert <eggert@twinsun.com>
53139 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
53140 code which expansion is under static control. Patch imported from
53141 Akim Demaille's patch to Bison; see
53142 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
53144 2003-04-14 Bruno Haible <bruno@clisp.org>
53146 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
53148 2003-04-11 Jim Meyering <jim@meyering.net>
53150 Merge changes from Coreutils.
53152 2003-03-22 Jim Meyering <jim@meyering.net>
53154 * lib/strftime.c (widen): Cast alloca return value to proper type.
53156 2003-01-19 Ulrich Drepper <drepper@redhat.com>
53159 * lib/strftime.c (my_strftime): Handle very large width
53160 specifications for numeric values correctly. Improve checks for
53163 2003-01-19 Jim Meyering <jim@meyering.net>
53165 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
53167 (nl_get_alt_digit) [! defined my_strftime]: Define.
53168 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
53169 _nl_get_alt_digit and _nl_get_walt_digit.
53171 * lib/strftime.c (my_strftime): Merge in locale-related changes from
53172 libc. These changes have no effect outside of _LIBC.
53174 2003-04-10 Bruno Haible <bruno@clisp.org>
53176 * modules/findprog: New file.
53177 * MODULES.html.sh (func_all_modules): Add it.
53179 2003-04-10 Bruno Haible <bruno@clisp.org>
53181 * m4/findprog.m4: New file.
53182 * m4/eaccess.m4: New file.
53184 2003-04-10 Bruno Haible <bruno@clisp.org>
53186 * lib/findprog.h: New file, from GNU gettext.
53187 * lib/findprog.c: New file, from GNU gettext.
53189 2003-04-05 Jim Meyering <jim@meyering.net>
53191 Merge changes from Coreutils.
53193 * lib/exclude.h (PARAMS): Remove definition and uses.
53194 * lib/exclude.c: Remove uses of `PARAMS'.
53196 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
53197 Add test-cases for DOS filenames. Declare program_name.
53198 (main): Set up program_name. Patch by Rich Dawe.
53200 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
53202 Use mntctl's return value to drive the entry-processing loop, since
53203 we can't rely on the value of the vmt_length member in the last
53204 entry. On some systems doing so could result in exhausting
53205 virtual memory. Based in part on a patch from Mike Jetzer.
53207 2003-04-04 Bruno Haible <bruno@clisp.org>
53209 * modules/linebreak: New file.
53210 * MODULES.html.sh (func_all_modules): Add it.
53212 2003-04-04 Bruno Haible <bruno@clisp.org>
53214 * m4/linebreak.m4: New file.
53216 2003-04-04 Bruno Haible <bruno@clisp.org>
53218 * lib/linebreak.h: New file, from GNU gettext.
53219 * lib/linebreak.c: New file, from GNU gettext with slight
53221 * lib/lbrkprop.h: New file, from GNU gettext.
53223 2003-04-03 Bruno Haible <bruno@clisp.org>
53225 * modules/utf8-ucs4: New file.
53226 * modules/utf16-ucs4: New file.
53227 * modules/ucs4-utf8: New file.
53228 * modules/ucs4-utf16: New file.
53229 * MODULES.html.sh (func_all_modules): Add them.
53231 2003-04-03 Bruno Haible <bruno@clisp.org>
53233 * m4/utf-ucs4.m4: New file.
53234 * m4/ucs4-utf.m4: New file.
53236 2003-04-03 Bruno Haible <bruno@clisp.org>
53238 * lib/utf8-ucs4.h: New file, from GNU gettext.
53239 * lib/utf16-ucs4.h: New file, from GNU gettext.
53240 * lib/ucs4-utf8.h: New file, from GNU gettext.
53241 * lib/ucs4-utf16.h: New file, from GNU gettext.
53243 2003-04-02 Bruno Haible <bruno@clisp.org>
53245 * modules/binary-io: New file.
53246 * MODULES.html.sh (func_all_modules): Add it.
53248 2003-04-02 Bruno Haible <bruno@clisp.org>
53250 * lib/binary-io.h: New file, from GNU gettext.
53252 2003-04-01 Bruno Haible <bruno@clisp.org>
53254 * modules/pathname: New file.
53255 * MODULES.html.sh (func_all_modules): Add it.
53257 2003-04-01 Bruno Haible <bruno@clisp.org>
53259 * lib/pathname.h: New file, from GNU gettext.
53260 * lib/concatpath.c: New file, from GNU gettext.
53262 2003-03-30 Bruno Haible <bruno@clisp.org>
53264 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
53266 2003-03-30 Bruno Haible <bruno@clisp.org>
53268 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
53269 function chown() doesn't exist.
53271 2003-03-28 Bruno Haible <bruno@clisp.org>
53273 * modules/copy-file: New file.
53274 * MODULES.html.sh (func_all_modules): Add it.
53276 2003-03-28 Bruno Haible <bruno@clisp.org>
53278 * m4/copy-file.m4: New file.
53280 2003-03-28 Bruno Haible <bruno@clisp.org>
53282 * lib/copy-file.h: New file, from GNU gettext.
53283 * lib/copy-file.c: New file, from GNU gettext.
53285 2003-03-18 Jim Meyering <jim@meyering.net>
53287 * lib/quote.c (quote_n): Fix typo in comment.
53289 2003-03-18 Bruno Haible <bruno@clisp.org>
53291 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
53293 * m4/onceonly_2_57.m4: Likewise.
53295 2003-03-17 Bruno Haible <bruno@clisp.org>
53297 * m4/onceonly.m4: Require autoconf 2.54 or newer.
53298 (m4_quote): Remove macro.
53299 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
53301 2003-03-14 Jim Meyering <jim@meyering.net>
53303 Merge changes from Coreutils.
53304 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
53305 to be const, in order to avoid warnings.
53306 (obstack_room): Likewise.
53307 (obstack_empty_p): Likewise.
53309 2003-03-14 Bruno Haible <bruno@clisp.org>
53311 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
53312 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
53314 2003-03-13 Paul Eggert <eggert@twinsun.com>
53316 Merge changes from Bison.
53317 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
53318 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
53319 when compiling Bison 1.875's `bitset bset = obstack_alloc
53320 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
53321 * lib/hash.c: Include <stdbool.h> unconditionally.
53323 2003-03-13 Paul Eggert <eggert@twinsun.com>
53325 * m4/onceonly.m4 (m4_quote): New macro.
53326 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
53327 Quote AC_FOREACH variable-expansions properly.
53329 2003-03-13 Paul Eggert <eggert@twinsun.com>
53331 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
53333 2003-03-09 Paul Eggert <eggert@twinsun.com>
53335 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
53336 Reported by Bruce Becker; see:
53337 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
53339 2003-03-03 Paul Eggert <eggert@twinsun.com>
53340 Bruno Haible <bruno@clisp.org>
53342 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
53343 Reported by John Hughes, see
53344 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
53346 2003-02-20 Bruno Haible <bruno@clisp.org>
53348 * MODULES.html.sh (func_all_modules): Add poll.
53350 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
53352 * modules/poll: New file.
53354 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
53356 * lib/poll_.h: New file.
53357 * lib/poll.c: New file.
53359 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
53361 * m4/poll.m4: New file.
53363 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
53365 * modules/mathl: New file.
53367 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
53369 * lib/mathl.h: New file.
53370 * lib/acosl.c: New file.
53371 * lib/asinl.c: New file.
53372 * lib/atanl.c: New file.
53373 * lib/ceill.c: New file.
53374 * lib/cosl.c: New file.
53375 * lib/expl.c: New file.
53376 * lib/floorl.c: New file.
53377 * lib/frexpl.c: New file.
53378 * lib/ldexpl.c: New file.
53379 * lib/logl.c: New file.
53380 * lib/sincosl.c: New file.
53381 * lib/sinl.c: New file.
53382 * lib/sqrtl.c: New file.
53383 * lib/tanl.c: New file.
53384 * lib/trigl.c: New file.
53385 * lib/trigl.h: New file.
53387 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
53389 * m4/mathl.m4: New file.
53391 2003-02-18 Bruno Haible <bruno@clisp.org>
53393 * MODULES.html.sh (func_all_modules): Add mathl.
53395 2003-02-17 Bruno Haible <bruno@clisp.org>
53397 * modules/mkdtemp: New module.
53398 * MODULES.html.sh (func_all_modules): Add it.
53400 2003-02-17 Bruno Haible <bruno@clisp.org>
53402 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
53404 2003-02-17 Bruno Haible <bruno@clisp.org>
53406 * lib/mkdtemp.h: New file, from GNU gettext.
53407 * lib/mkdtemp.c: New file, from GNU gettext.
53409 2003-02-02 Jim Meyering <jim@meyering.net>
53411 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
53414 2003-01-31 Bruno Haible <bruno@clisp.org>
53416 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
53418 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
53420 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
53422 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
53425 2003-01-31 Bruno Haible <bruno@clisp.org>
53427 * lib/rename.c: #undef rename before defining rpl_rename.
53428 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
53430 2003-01-30 Bruno Haible <bruno@clisp.org>
53432 * modules/vasnprintf, modules/vasprintf: New modules.
53433 * MODULES.html.sh (func_all_modules): Add them.
53435 2003-01-30 Bruno Haible <bruno@clisp.org>
53437 * m4/signed.m4: New file, from GNU gettext.
53438 * m4/longdouble.m4: New file, from GNU gettext.
53439 * m4/wchar_t.m4: New file, from GNU gettext.
53440 * m4/wint_t.m4: New file, from GNU gettext.
53441 * m4/vasnprintf.m4: New file.
53442 * m4/vasprintf.m4: New file.
53444 2003-01-30 Bruno Haible <bruno@clisp.org>
53446 * lib/printf-args.h: New file, from GNU gettext.
53447 * lib/printf-args.c: New file, from GNU gettext.
53448 * lib/printf-parse.h: New file, from GNU gettext.
53449 * lib/printf-parse.c: New file, from GNU gettext.
53450 * lib/vasnprintf.h: New file, from GNU gettext.
53451 * lib/vasnprintf.c: New file, from GNU gettext.
53452 * lib/asnprintf.c: New file, from GNU gettext.
53453 * lib/vasprintf.h: New file, from GNU gettext with modifications.
53454 * lib/vasprintf.c: New file, from GNU gettext.
53455 * lib/asprintf.c: New file, from GNU gettext.
53457 2003-01-29 Bruno Haible <bruno@clisp.org>
53459 * modules/stpncpy: New module.
53460 * MODULES.html.sh (func_all_modules): Add it.
53462 2003-01-29 Bruno Haible <bruno@clisp.org>
53464 * m4/stpncpy.m4: New file.
53466 2003-01-29 Bruno Haible <bruno@clisp.org>
53468 * lib/stpncpy.h: New file, from GNU gettext with modifications.
53469 * lib/stpncpy.c: New file, from GNU gettext with modifications.
53471 2003-01-28 Bruno Haible <bruno@clisp.org>
53473 * modules/c-ctype: New module.
53474 * MODULES.html.sh (func_all_modules): Add it.
53476 2003-01-28 Bruno Haible <bruno@clisp.org>
53478 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
53480 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
53483 2003-01-27 Bruno Haible <bruno@clisp.org>
53485 * modules/xsetenv: New module.
53486 * MODULES.html.sh (func_all_modules): Add it.
53488 2003-01-27 Bruno Haible <bruno@clisp.org>
53490 * lib/xsetenv.h: New file, from GNU gettext.
53491 * lib/xsetenv.c: New file, from GNU gettext.
53493 2003-01-23 Jim Meyering <jim@meyering.net>
53495 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
53496 from working on systems without dirfd (at least Irix and OSF1/Tru64).
53498 2003-01-23 Bruno Haible <bruno@clisp.org>
53500 * modules/minmax: New module.
53501 * MODULES.html.sh (func_all_modules): Add it.
53503 2003-01-23 Bruno Haible <bruno@clisp.org>
53505 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
53508 2003-01-22 Bruno Haible <bruno@clisp.org>
53510 * modules/exit: New module.
53511 * MODULES.html.sh (func_all_modules): Add it.
53513 2003-01-22 Bruno Haible <bruno@clisp.org>
53515 * lib/exit.h: New file, from GNU gettext.
53517 2003-01-19 Bruno Haible <bruno@clisp.org>
53519 * gnulib-tool: Recognize option --extract-maintainer.
53520 (func_get_maintainer): New function.
53521 * modules/*: Add Maintainer entry.
53523 2003-01-16 Jim Meyering <jim@meyering.net>
53525 * m4/regex.m4: The `regex' struct is both input and output.
53526 Initialize it before each use. Patch by Tim Waugh.
53528 2003-01-16 Bruno Haible <bruno@clisp.org>
53530 * MODULES.html.sh: Add a table of contents. Add the module name as
53531 leftmost column. Add hyperlinks.
53533 2003-01-15 Bruno Haible <bruno@clisp.org>
53535 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
53537 2003-01-15 Bruno Haible <bruno@clisp.org>
53539 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
53540 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
53543 2003-01-15 Bruno Haible <bruno@clisp.org>
53545 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
53547 2003-01-15 Bruno Haible <bruno@clisp.org>
53549 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
53550 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
53552 2003-01-14 Jim Meyering <jim@meyering.net>
53554 * lib/same.c (same_name): Tweak a comment.
53556 2003-01-14 Bruno Haible <bruno@clisp.org>
53558 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
53559 when a string comparison is sufficient.
53561 2003-01-14 Bruno Haible <bruno@clisp.org>
53563 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
53566 2003-01-14 Bruno Haible <bruno@clisp.org>
53568 * lib/hash-pjw.c: Add comment about low quality of this function.
53570 2003-01-13 Bruno Haible <bruno@clisp.org>
53572 * modules/stpcpy: Distribute lib/stpcpy.h.
53573 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
53575 2003-01-13 Bruno Haible <bruno@clisp.org>
53577 * modules/*: Add a description.
53578 * modules/strpbrk: Fix Makefile.am snippet.
53579 * modules/strtoimax: Fix dependencies.
53580 * modules/strtoumax: Likewise.
53582 2003-01-13 Bruno Haible <bruno@clisp.org>
53584 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
53585 * modules/alloca (Makefile.am): All object files depend on alloca.h.
53586 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
53588 2003-01-13 Bruno Haible <bruno@clisp.org>
53590 * gnulib-tool (func_create_testdir): Store config/* files in the main
53592 * config.rpath: Move to ...
53593 * config/config.rpath: ... here.
53594 * modules/gettext: Contains config/config.rpath, not config.rpath.
53595 * modules/iconv: Likewise.
53597 2003-01-12 Paul Eggert <eggert@twinsun.com>
53599 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53600 to avoid collisions with libcurses and libreadline.
53602 * m4/getstr.m4: Remove.
53603 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
53605 2003-01-12 Paul Eggert <eggert@twinsun.com>
53607 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53608 to avoid collisions with libcurses and libreadline.
53610 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
53611 * lib/getstr.h, getstr.c: Remove.
53612 * lib/getline.c: Include "getline.h", to check interface.
53613 Move body of old getstr.c here: this defines MIN_CHUNK and
53614 declares getdelim2, which is renamed from getstr.
53615 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
53617 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
53619 * lib/linebuffer.h: Likewise.
53620 (readline): Remove backward-compatibility macro.
53622 2003-01-12 Paul Eggert <eggert@twinsun.com>
53624 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
53625 to avoid collisions with libcurses and libreadline.
53627 * MODULES.html.sh: Remove getstr.
53628 * modules/getline: Depend on unlocked-io, not getstr.
53630 2003-01-12 Jim Meyering <jim@meyering.net>
53632 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
53634 2003-01-10 Bruno Haible <bruno@clisp.org>
53636 * modules/alloca: Change Makefile.am requirements. Simplify Include
53637 requirements. Add lib/alloca_.h to file list.
53639 2003-01-10 Bruno Haible <bruno@clisp.org>
53641 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
53643 2003-01-10 Bruno Haible <bruno@clisp.org>
53645 * lib/alloca_.h: New file.
53646 * lib/getdate.y: Unconditionally include alloca.h.
53647 * lib/makepath.c: Likewise.
53648 * lib/setenv.c: Likewise.
53649 * lib/userspec.c: Likewise.
53651 2003-01-09 Karl Berry <karl@gnu.org>
53653 * MODULES.html.sh: include `dirname $0` in PATH, to find
53656 2003-01-09 Bruno Haible <bruno@clisp.org>
53658 * modules/stdbool: Change configure.ac, Makefile.am requirements.
53659 Simplify Include requirements. Add lib/stdbool.h.in to file list.
53661 2003-01-09 Bruno Haible <bruno@clisp.org>
53663 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
53665 2003-01-09 Bruno Haible <bruno@clisp.org>
53667 * lib/stdbool.h.in: New file.
53669 2003-01-09 Bruno Haible <bruno@clisp.org>
53671 * gnulib-tool (func_all_modules): Ignore files ending in ~.
53672 * MODULES.html.sh: Likewise.
53674 2003-01-08 Jim Meyering <jim@meyering.net>
53676 * lib/full-write.c: Undefine and define-away `const' after inclusion
53677 of errno.h, not before. Suggestion from Bruno Haible.
53679 2003-01-08 Bruno Haible <bruno@clisp.org>
53681 * modules/full-read: Depend on full-write.
53683 2003-01-08 Bruno Haible <bruno@clisp.org>
53685 * lib/safe-read.c: Include specification header first, to ensure its
53687 * lib/full-write.c: Likewise.
53689 2003-01-07 Jim Meyering <jim@meyering.net>
53691 * lib/full-write.c: Rework so that it may serve to define full_read,
53693 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
53695 2003-01-07 Bruno Haible <bruno@clisp.org>
53697 * lib/strtoimax.c: Include <stdint.h> as an alternative to
53699 * lib/xstrtol.h: Likewise.
53700 * lib/xstrtoimax.c: Likewise.
53701 * lib/xstrtoumax.c: Likewise.
53702 * lib/human.h: Likewise.
53704 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
53705 on systems that have <inttypes.h> but not <stdint.h>.
53707 2003-01-07 Bruno Haible <bruno@clisp.org>
53709 * MODULES.html.sh: Add copyright notice.
53710 (missed_files): Omit CVS directory entries.
53711 (func_module): Make it work with sed-3.02.
53712 * MODULES.txt: Remove file.
53714 2003-01-06 Jim Meyering <jim@meyering.net>
53716 * lib/version-etc.c: Update year in translatable copyright string.
53718 2003-01-03 Karl Berry <karl@gnu.org>
53720 * config/config.{guess,sub}: update from prep.
53722 2003-01-02 Karl Berry <karl@gnu.org>
53724 * doc/COPYING.DOC: belatedly updated to 1.2.
53726 2003-01-01 Karl Berry <karl@gnu.org>
53728 * gnulib-tool (func_verify_module): report module name $module in
53729 error message, not $1.
53730 * gnulib-tool (create-testdir): don't complain if destdir couldn't
53731 be created, only if it doesn't exist.
53732 * gnulib-tool (last_checkin_date): don't expand the $Date here.
53734 2002-12-31 Paul Eggert <eggert@twinsun.com>
53736 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
53738 2002-12-31 Paul Eggert <eggert@twinsun.com>
53740 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
53741 memcmp if strcoll doesn't work.
53743 2002-12-31 Bruno Haible <bruno@clisp.org>
53745 * lib/utime.c (utime_null): No need to call ftruncate if the file was
53748 2002-12-31 Bruno Haible <bruno@clisp.org>
53750 * lib/memcoll.c (STRCOLL): New macro.
53753 2002-12-31 Bruno Haible <bruno@clisp.org>
53755 * lib/localcharset.h: New file.
53756 * lib/localcharset.c: Include it.
53757 * lib/unicodeio.c: Likewise.
53759 2002-12-31 Bruno Haible <bruno@clisp.org>
53761 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
53762 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
53764 2002-12-31 Bruno Haible <bruno@clisp.org>
53766 * lib/getline.h: Include <stddef.h>, for size_t.
53768 * lib/unicodeio.h: Include <stddef.h>, for size_t.
53769 * lib/unicodeio.c: Don't include <stddef.h>.
53771 2002-12-31 Bruno Haible <bruno@clisp.org>
53773 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
53776 2002-12-24 Karl Berry <karl@gnu.org>
53778 * config/config.guess: update from prep.
53780 2002-12-24 Bruno Haible <bruno@clisp.org>
53782 General infrasructure.
53783 * m4/README: Rewritten.
53784 * m4/onceonly.m4: New file.
53785 * m4/onceonly_2_57.m4: New file.
53788 * m4/atexit.m4: New file.
53791 * m4/strtod.m4: New file.
53794 * m4/strtol.m4: New file.
53797 * m4/strtoul.m4: New file.
53800 * m4/memchr.m4: New file.
53803 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
53804 (jm_FUNC_MEMCMP): Invoke it.
53807 * m4/memcpy.m4: New file.
53810 * m4/memmove.m4: New file.
53813 * m4/memset.m4: New file.
53816 * m4/strcspn.m4: New file.
53819 * m4/strpbrk.m4: New file.
53822 * m4/strstr.m4: New file.
53825 * m4/strerror.m4: New file.
53828 * m4/mktime.m4: Renamed from jm-mktime.m4.
53829 (gl_PREREQ_MKTIME): New macro.
53830 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
53833 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
53834 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
53835 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
53838 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
53839 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
53840 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
53843 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
53844 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
53845 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
53847 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
53850 * m4/xalloc.m4: New file.
53853 * m4/alloca.m4: New file.
53856 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
53857 (jm_FUNC_PUTENV): Invoke it.
53860 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
53861 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
53862 when invoked twice.
53863 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
53867 * m4/memrchr.m4: New file.
53870 * m4/stpcpy.m4: New file.
53873 * m4/strcase.m4: New file.
53876 * m4/strdup.m4: New file.
53879 * m4/strnlen.m4: New file.
53882 * m4/strndup.m4: New file.
53885 * m4/xstrtod.m4: New file.
53888 * m4/xstrtol.m4: New file.
53891 * m4/getdate.m4: New file.
53893 Module unlocked-io.
53894 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
53895 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
53896 * m4/jm-glibc-io.m4n: Remove file.
53898 Module long-options.
53899 * m4/long-options.m4: New file.
53902 * m4/md5.m4: New file.
53905 * m4/sha.m4: New file.
53908 * m4/getstr.m4: New file.
53911 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
53912 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
53913 <sys/types.h>, for size_t. Use the function name gnu_getline, not
53914 simply getline. Infoke gl_PREREQ_GETLINE.
53917 * m4/obstack.m4: New file.
53920 * m4/hash.m4: New file.
53923 * m4/readtokens.m4: New file.
53926 * m4/strverscmp.m4: New file.
53929 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
53933 * m4/strtoll.m4: New file.
53936 * m4/strtoull.m4: New file.
53939 * m4/strtoimax.m4: New file.
53942 * m4/strtoumax.m4: New file.
53945 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
53946 jm_AC_PREREQ_XSTRTOIMAX.
53947 Moved the strtol prerequisites to strtol.m4.
53948 Moved the strtoll prerequisites to strtoll.m4.
53949 Moved the strtoimax prerequisites to strtoimax.m4.
53952 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
53953 jm_AC_PREREQ_XSTRTOUMAX.
53954 Moved the strtoul prerequisites to strtoul.m4.
53955 Moved the strtoull prerequisites to strtoull.m4.
53956 Moved the strtoumax prerequisites to strtoumax.m4.
53959 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
53960 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
53963 * m4/dup2.m4: New file.
53966 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
53967 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
53970 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
53971 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
53973 Module gettimeofday.
53974 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
53975 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
53976 gl_PREREQ_GETTIMEOFDAY.
53979 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
53980 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
53983 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
53984 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
53985 jm_AC_TYPE_UINTMAX_T.
53986 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
53989 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
53990 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
53993 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
53994 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
53997 * m4/timespec.m4 (gl_TIMESPEC): New macro.
53998 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
53999 * m4/st_mtim.m4: Indentation.
54002 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
54003 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
54004 gl_PREREQ_NANOSLEEP.
54007 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
54008 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
54009 (gl_REGEX): New macro.
54012 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
54013 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
54016 * m4/rmdir.m4: New file.
54019 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
54020 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
54021 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
54024 * m4/dirname.m4: New file.
54027 * m4/getopt.m4: New file.
54029 Module unistd-safer.
54030 * m4/unistd-safer.m4: New file.
54033 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
54035 (gl_PREREQ_FNMATCH_EXTRA): New macro.
54036 (gl_FUNC_FNMATCH_POSIX): New macro.
54037 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
54038 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
54042 * m4/exclude.m4: New file.
54045 * m4/human.m4: New file.
54051 * m4/backupfile.m4: New file.
54052 * m4/d-ino.m4: Indentation.
54055 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
54056 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
54057 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
54060 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
54064 * m4/euidaccess.m4: New file.
54067 * m4/file-type.m4: New file.
54070 * m4/fileblocks.m4: New file.
54073 * m4/filemode.m4: New file.
54076 * m4/isdir.m4: New file.
54079 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
54080 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
54083 * m4/makepath.m4: New file.
54086 * m4/modechange.m4: New file.
54089 * m4/mountlist.m4: New file.
54090 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
54093 Module path-concat.
54094 * m4/path-concat.m4: New file.
54097 * m4/pathmax.m4: New file.
54100 * m4/same.m4: New file.
54103 * m4/save-cwd.m4: New file.
54106 * m4/savedir.m4: New file.
54109 * m4/xgetcwd.m4: New file.
54110 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
54113 * m4/xreadlink.m4: New file.
54116 * m4/safe-read.m4: New file.
54119 * m4/safe-write.m4: New file.
54122 * m4/closeout.m4: New file.
54124 Module stdio-safer.
54125 * m4/stdio-safer.m4: New file.
54128 * m4/getpass.m4: New file.
54131 * m4/getugroups.m4: New file.
54133 Module group-member.
54134 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
54135 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
54138 * m4/idcache.m4: New file.
54141 * m4/userspec.m4: New file.
54144 * m4/clock_time.m4: New file.
54145 * m4/gettime.m4: New file.
54148 * m4/settime.m4: New file.
54151 * m4/posixtm.m4: New file.
54153 Module gethostname.
54154 * m4/gethostname.m4: New file.
54157 * m4/canon-host.m4: New file.
54160 * m4/codeset.m4: New file, from gettext-0.11.5.
54161 * m4/gettext.m4: New file, from gettext-0.11.5.
54162 * m4/glibc21.m4: New file, from gettext-0.11.5.
54163 * m4/iconv.m4: New file, from gettext-0.11.5.
54164 * m4/intdiv0.m4: New file, from gettext-0.11.5.
54165 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
54166 * m4/inttypes.m4: New file, from gettext-0.11.5.
54167 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
54168 * m4/isc-posix.m4: New file, from gettext-0.11.5.
54169 * m4/lcmessage.m4: New file, from gettext-0.11.5.
54170 * m4/lib-ld.m4: New file, from gettext-0.11.5.
54171 * m4/lib-link.m4: New file, from gettext-0.11.5.
54172 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
54173 * m4/progtest.m4: New file, from gettext-0.11.5.
54174 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
54175 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
54176 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
54178 Module localcharset.
54179 * m4/localcharset.m4: New file.
54181 Module hard-locale.
54182 * m4/hard-locale.m4: New file.
54185 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
54187 * m4/mbrtowc.m4: Add comment.
54190 * m4/memcasecmp.m4: New file.
54193 * m4/memcoll.m4: New file.
54196 * m4/unicodeio.m4: New file.
54199 * m4/rpmatch.m4: New file.
54202 * m4/yesno.m4: New file.
54205 * m4/exitfail.m4: New file.
54208 * m4/c-stack.m4 (gl_C_STACK): New macro.
54209 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
54212 * m4/error.m4 (gl_ERROR): New macro.
54213 (jm_PREREQ_ERROR): Use onceonly macros.
54216 * m4/fatal.m4: New file.
54219 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
54220 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
54222 Module getpagesize.
54223 * m4/getpagesize.m4: New file.
54225 Module getusershell.
54226 * m4/getusershell.m4: New file.
54229 * m4/physmem.m4: New file.
54232 * m4/posixver.m4: New file.
54235 * m4/quotearg.m4: New file.
54238 * m4/quote.m4: New file.
54241 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
54244 * m4/sig2str.m4: New file.
54247 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
54249 * m4/intmax_t.m4: New file.
54250 * m4/d-type.m4: Indentation.
54251 * m4/jm-macros.m4: Update.
54252 * m4/prereq.m4 (jm_PREREQ): Update.
54253 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
54254 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
54255 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
54256 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
54257 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
54258 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
54259 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
54260 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
54261 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
54262 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
54263 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
54264 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
54265 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
54266 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
54267 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
54268 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
54269 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
54270 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
54271 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
54273 2002-12-24 Bruno Haible <bruno@clisp.org>
54275 * MODULES.txt: Update according to m4/ changes.
54278 * config.rpath: New file, from gettext-0.11.5.
54280 * modules/*: New module descriptions.
54281 * gnulib-tool: New file.
54282 * MODULES.html.sh: New file.
54284 2002-12-21 Karl Berry <karl@gnu.org>
54286 * doc/fdl.texi: update to version 1.2.
54288 2002-12-19 Karl Berry <karl@gnu.org>
54290 * config/config.guess: update from prep.
54292 2002-12-18 Bruno Haible <bruno@clisp.org>
54294 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
54295 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
54297 2002-12-17 Bruno Haible <bruno@clisp.org>
54299 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
54300 stdlib.h, string.h.
54302 2002-12-17 Bruno Haible <bruno@clisp.org>
54304 * lib/canon-host.c (strdup): Remove unused declaration.
54306 * lib/fsusage.c: Include full_read.h.
54307 (get_fs_usage): Use full_read instead of safe_read.
54309 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
54311 2002-12-12 Karl Berry <karl@gnu.org>
54313 * config/config.guess: update from prep.
54315 2002-12-11 Bruno Haible <bruno@clisp.org>
54317 * m4/setenv.m4: New file, from gettext-0.11.5.
54319 2002-12-11 Bruno Haible <bruno@clisp.org>
54321 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
54323 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
54326 2002-12-11 Bruno Haible <bruno@clisp.org>
54328 * setenv.c (alloca): Fall back to malloc.
54329 (freea): New macro.
54330 (setenv): Use freea() to free memory allocated with alloca().
54332 2002-11-13 Bruno Haible <bruno@clisp.org>
54334 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
54335 function declarations.
54336 * unsetenv.c (unsetenv): Likewise.
54338 2002-03-04 Bruno Haible <bruno@clisp.org>
54340 Portability to AIX 4.3.3.
54341 * unsetenv.c: New file, extracted from setenv.c.
54342 * setenv.c: Move the unsetenv() function to unsetenv.c.
54344 2001-12-20 Bruno Haible <bruno@clisp.org>
54346 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
54347 use malloc instead. For SunOS 4.
54349 2001-12-11 Bruno Haible <bruno@clisp.org>
54351 * setenv.c: Declare alloca.
54352 (compar_fn_t): New typedef.
54353 (KNOWN_VALUE, STORE_VALUE): Use it.
54355 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
54358 2002-12-10 Paul Eggert <eggert@twinsun.com>
54360 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
54361 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
54362 Choose values that are less likely to collide with system fnmatch
54364 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
54365 defined (e.g., a pure POSIX system).
54366 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
54367 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
54369 2002-12-06 Paul Eggert <eggert@twinsun.com>
54371 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
54372 a pain in practice to deal with generated m4 files. This change
54373 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
54375 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
54376 and jm-glibc-io.m4, as they are no longer a special case.
54377 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
54378 kludge and the auto-generation stuff. Check only whether the
54379 functions are declared, not whether they exist, since older hosts
54380 that don't declare the functions can't use the optimization anyway.
54382 2002-12-06 Jim Meyering <jim@meyering.net>
54384 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
54386 Merge in changes from libc's misc/error.c, in preparation
54387 for the merge of gnulib's changes back into libc.
54389 * lib/error.c (_): Define only if not already defined.
54390 Move definition to follow all #include directives.
54391 Include unlocked-io.h only if !_LIBC.
54392 [_LIBC]: Include <libio/libioP.h>.
54393 [USE_IN_LIBIO]: Include <libio/iolibio.h>
54394 (fflush): Tweak definition to use INTUSE.
54397 2002-12-05 Paul Eggert <eggert@twinsun.com>
54399 * lib/alloca.c [defined emacs]: Include "lisp.h".
54400 (xalloc_die) [defined emacs]: New macro.
54401 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
54402 [! defined emacs]: Include <xalloc.h>.
54403 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
54404 (pointer): Typedef to POINTER_TYPE *.
54405 (malloc): Remove decl; we now always use xmalloc.
54406 (alloca): Use old-style definition, since Emacs needs this.
54407 Check for arithmetic overflow when computing combined size.
54409 2002-12-04 Paul Eggert <eggert@twinsun.com>
54411 Do not generate unlocked-io.h automatically, since it's easier to
54412 maintain it by hand.
54414 * lib/unlocked-io.h: New file, from GNU diffutils,
54415 but with proper copyright notice and attribution.
54416 * lib/gen-uio: Remove.
54417 * lib/Makefile.am: Add copyright notice.
54418 (libfetish_a_SOURCES): Add unlocked-io.h.
54419 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
54420 (DISTCLEANFILES, io_functions): Remove macros.
54421 (EXTRA_DIST): Remove gen_uio.
54422 (unlocked-io.h): Remove rule.
54424 2002-12-04 Jim Meyering <jim@meyering.net>
54426 Reflect the fact that stat.c and lstat.c are no longer generated.
54427 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
54428 (DISTCLEANFILES): Likewise.
54429 (EXTRA_DIST): Likewise.
54430 (all_local): Don't depend on stat.c or lstat.c.
54431 (stat.c, lstat.c): Remove rules.
54432 (EXTRA_DIST): Remove xstat.in.
54434 * lib/xstat.in: Remove file. Contents moved into stat.c.
54435 * lib/stat.c: New file. Contents mostly from xstat.in.
54436 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
54437 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
54439 * lib/safe-read.c: Rework so that it may serve to define safe_write,
54441 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
54443 2002-12-03 Jim Meyering <jim@meyering.net>
54445 * lib/safe-read.c, safe-write.c: Change variable names and comments,
54446 but not semantics, to minimize the differences between these two files.
54447 (safe_read): Change comment to mention SAFE_READ_ERROR.
54449 * lib/safe-read.c (IS_EINTR): Define.
54450 (safe_read): Use IS_EINTR in place of in-function cpp directives.
54452 2002-12-02 Jim Meyering <jim@meyering.net>
54454 * lib/safe-read.c (EINTR): Define.
54455 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
54456 (INT_MAX): Provide fallback.
54457 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
54459 * lib/safe-read.h (SAFE_READ_ERROR): Define.
54461 2002-12-02 Bruno Haible <bruno@clisp.org>
54463 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
54464 Define, taken from safe-read.c.
54465 (INT_MAX): Provide fallback.
54466 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
54467 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
54469 * lib/safe-read.c (EINTR): Remove definition.
54470 (safe_read): Don't use EINTR if it is absent.
54472 2002-12-01 Jim Meyering <jim@meyering.net>
54474 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
54476 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
54478 2002-11-27 Paul Eggert <eggert@twinsun.com>
54480 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
54481 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
54482 with `if (! (value < limit)) abort ();', for readability.
54484 2002-11-26 Karl Berry <karl@gnu.org>
54486 * lib/strdup.c: copy from libc again, with jim's ok.
54487 * lib/.cppi-disable: re-add strdup.c
54489 2002-11-25 Karl Berry <karl@gnu.org>
54491 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
54492 instead of "strtol.c".
54494 2002-11-25 Karl Berry <karl@gnu.org>
54496 * config/install-sh: update from automake for variable quoting, $0 in
54499 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
54500 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
54503 2002-11-25 Jim Meyering <jim@meyering.net>
54505 * lib/mktime.c: Sync from libc, now that it has the latest fix.
54507 2002-11-24 Karl Berry <karl@gnu.org>
54509 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
54510 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
54512 2002-11-24 Jim Meyering <jim@meyering.net>
54514 Update from coreutils:
54516 * lib/mktime.c: Merge in changes from libc.
54518 Avoid a link-time failure on some Linux systems.
54519 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
54521 (__mon_yday): Declare with the STATIC attribute.
54522 (__mktime_internal): Likewise.
54523 Based on a report from Greg Schafer.
54525 2002-11-23 Jim Meyering <jim@meyering.net>
54527 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
54528 Use `unsigned', not `int', as type of index.
54530 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
54532 * lib/fsusage.c: Remove unneeded parentheses around operands of
54535 2002-11-22 Paul Eggert <eggert@twinsun.com>
54537 * lib/quotearg.h: Allow multiple inclusion by surrounding with
54538 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
54539 so that we can be included first.
54540 (PARAMS): Remove; we now assume C89 or later. All uses removed.
54541 * lib/quotearg.c: Include quotearg.h immediately after config.h.
54542 No need to include stddef.h or sys/types.h any more.
54543 Surround local include files with "", not "<>".
54544 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
54545 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
54546 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
54547 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
54548 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
54549 (ISPRINT): Remove; no longer needed now that we assume C89.
54551 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
54554 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
54555 quotearg_char): Use SIZE_MAX rather than
54556 (size_t) -1 when we are talking about "infinity".
54558 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
54560 2002-11-22 Paul Eggert <eggert@twinsun.com>
54562 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
54563 hint that one should use `if (! x) abort ();' rather than `assert
54564 (x);', and anyway it's one less thing to worry about configuring.
54565 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
54566 hash_rehash, hash_insert): Use abort rather than assert.
54568 2002-11-22 Bruno Haible <bruno@clisp.org>
54570 * lib/safe-read.h: Assume C89. Add comments.
54571 (safe_read): Change return type to size_t.
54572 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
54573 byte counts > SSIZE_MAX correctly.
54574 * lib/safe-write.h: New file.
54575 * lib/safe-write.c: New file.
54576 * lib/full-read.h: New file.
54577 * lib/full-read.c: New file.
54578 * lib/full-write.h: Assume C89. Add comments.
54579 * lib/full-write.c: Include safe-write.h.
54580 (full_write): Rewritten to use safe_write.
54581 Suggested by Jim Meyering and Paul Eggert.
54583 2002-11-21 Jim Meyering <jim@meyering.net>
54585 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
54587 Merge in changes from the coreutils.
54589 2002-09-25 Paul Eggert <eggert@twinsun.com>
54590 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
54592 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
54593 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
54594 int. Work more efficiently if X is the same width as uintmax_t.
54595 Do not compare X to -1, to avoid bogus compiler warning.
54596 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
54597 Don't assume that f_frsize and f_bsize are the same type.
54599 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
54600 warning on FreeBSD.
54602 * lib/makepath.c (make_path): Restore umask *before* creating the final
54604 (make_path): Minor reformatting.
54606 * lib/xmalloc.c: Adjust to work with new autoconf macros,
54607 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
54608 HAVE_MALLOC/HAVE_REALLOC.
54610 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
54611 dummy ones. At least on GNU/Linux systems, `auto' means something
54613 From Michael Stone.
54615 2002-11-21 Bruno Haible <bruno@clisp.org>
54617 Remove case insensitive option matching.
54618 * lib/argmatch.h (argcasematch): Remove declaration.
54619 (ARGCASEMATCH): Remove macro.
54620 (__xargmatch_internal): Remove case_sensitive argument.
54621 (XARGMATCH): Update.
54622 (XARGCASEMATCH): Remove macro.
54623 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
54624 case_sensitive argument.
54625 (argcasematch): Remove function.
54626 (__xargmatch_internal): Remove case_sensitive argument.
54627 (main): Use XARGMATCH instead of XARGCASEMATCH.
54629 * lib/xmalloc.c: Change compile-time error message. Add comment about
54630 required autoconf version.
54632 2002-11-20 Paul Eggert <eggert@twinsun.com>
54634 Merge argmatch cleanups from Bison. Assume C89.
54636 * lib/argmatch.c: Include config.h here, not in argmatch.h.
54637 Include stdlib.h, for EXIT_FAILURE.
54638 Always include <string.h>, since we assume C89.
54639 (EXIT_FAILURE): Remove pre-C89 bug workaround.
54640 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
54641 Include <stddef.h> instead, since it's all we need for size_t.
54642 (PARAMS): Remove. All uses removed.
54643 (ARRAY_CARDINALITY): Do not bother to #undef.
54644 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
54645 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54646 Remove unnecessary parentheses.
54647 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
54648 Insert necessary parentheses.
54649 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
54650 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
54652 2002-11-19 Bruno Haible <bruno@clisp.org>
54654 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
54655 * lib/mbswidth.h: Include <stddef.h>, for size_t.
54657 * lib/mbswidth.h (PARAMS): Remove macro.
54658 (mbswidth, mbsnwidth): Use ANSI C function declarations.
54659 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
54661 * lib/gcd.h (PARAMS): Remove macro.
54662 (gcd): Use ANSI C function declarations.
54663 * lib/gcd.c (gcd): Likewise.
54665 2002-11-15 Bruno Haible <bruno@clisp.org>
54667 * lib/strcspn.c: Include <stddef.h>.
54668 (strcspn): Use ANSI C function declaration. Change return type to
54670 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
54671 (strpbrk): Use NULL.
54672 * lib/strpbrk.h (PARAMS): Remove macro.
54673 (strpbrk): Use ANSI C function declaration.
54674 * lib/strstr.c: Don't include <sys/types.h>.
54675 * lib/strstr.h (PARAMS): Remove macro.
54676 (strstr): Use ANSI C function declarations.
54678 2002-11-14 Karl Berry <karl@gnu.org>
54680 * config/mkinstalldirs: `do' on separate line, instead of
54683 2002-11-06 Bruno Haible <bruno@clisp.org>
54685 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
54686 * lib/gcd.c (gcd): Likewise.
54688 2002-11-05 Bruno Haible <bruno@clisp.org>
54690 * lib/gcd.h: New file, from gettext-0.11.5.
54691 * lib/gcd.c: New file, from gettext-0.11.5.
54693 2002-11-05 Bruno Haible <bruno@clisp.org>
54695 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54696 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54697 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54698 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
54700 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
54702 * lib/makepath.c: Include gettext.h instead of <locale.h> and
54705 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
54706 * lib/human.c: Include gettext.h instead of <libintl.h>.
54707 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
54708 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
54709 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
54710 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
54711 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
54712 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
54713 (textdomain): Remove definition.
54714 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
54716 * lib/long-options.c: Remove include of <libintl.h> and definition of
54718 * lib/same.c: Remove include of <libintl.h> and definition of _.
54720 2002-11-04 Owen Taylor <otaylor@redhat.com>
54722 * lib/config.charset: A few additions for Solaris.
54724 2002-11-04 Bruno Haible <haible@clisp.cons.org>
54726 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
54727 * lib/localcharset.c (locale_charset): Declare as extern "C".
54729 2002-11-04 Bruno Haible <haible@clisp.cons.org>
54731 * lib/config.charset: msdos in uk_UA uses CP1125.
54733 2002-11-04 Bruno Haible <bruno@clisp.org>
54735 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
54736 * lib/strcase.h: New file, from GNU gettext-0.11.5.
54737 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
54738 * lib/strstr.h: New file, from GNU gettext-0.11.5.
54739 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
54741 2002-11-04 Bruno Haible <bruno@clisp.org>
54743 * lib/localcharset.c (locale_charset): Don't return an empty string.
54745 2002-11-04 Bruno Haible <bruno@clisp.org>
54747 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
54750 2002-11-04 Bruno Haible <bruno@clisp.org>
54752 * lib/config.charset: Update for newest glibc. Add canonical names
54753 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
54755 2002-11-04 Bruno Haible <bruno@clisp.org>
54757 * lib/config.charset: Add support for NetBSD.
54759 2002-11-04 Bruno Haible <bruno@clisp.org>
54761 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
54763 2002-11-01 Bruno Haible <bruno@clisp.org>
54765 * configure.in: Add AC_CONFIG_AUX_DIR call.
54766 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
54768 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
54770 2002-09-28 Karl Berry <karl@gnu.org>
54772 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
54773 installed automake until the next release, since changes have been
54776 2002-09-25 Karl Berry <karl@gnu.org>
54778 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
54779 * lib/getopt*: copy from libc/posix.
54780 * lib/gettext.h: copy from gettext.
54781 * lib/.cppi-disable: add strdup.c, gettext.h.
54783 2002-09-25 Karl Berry <karl@gnu.org>
54785 * config/srclist.txt: enable gettext.h check.
54786 * config/config.{guess,sub}: update from prep.
54787 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
54788 from automake 1.6.3.
54791 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
54793 * regex.c (PATFETCH): Remove the translating fetch.
54794 (PATFETCH_RAW): Rename to PATFETCH.
54795 (set_image_of_range): New fun.
54796 (SET_RANGE_TABLE_WORK_AREA): Use it.
54797 (regex_compile): Don't translate the pattern chars so eagerly.
54798 Only do it when inserting an `exactn' bytecode or when handling
54800 (mutually_exclusive_p): Avoid empty statement.
54802 2002-07-06 Jim Meyering <meyering@lucent.com>
54804 * m4/README: Don't mention Makefile.am.in.
54805 Outline how I've tested changes to .m4 files. Yep, it's a pain.
54807 2002-07-01 Jim Meyering <meyering@lucent.com>
54809 * lib/c-stack.c: Include sys/time.h.
54810 From Volker Borchert.
54812 2002-06-26 Paul Eggert <eggert@twinsun.com>
54814 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
54816 2002-06-26 Paul Eggert <eggert@twinsun.com>
54818 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
54819 New macro. Use it uniformly instead of
54820 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
54821 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
54822 reported by Vin Shelton.
54824 2002-06-22 Paul Eggert <eggert@twinsun.com>
54826 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
54827 Do not assume SA_SIGINFO behavior.
54828 Bug reported by Jim Meyering on NetBSD 1.5.2.
54830 2002-06-22 Jim Meyering <meyering@lucent.com>
54832 * m4/c-stack.m4: New file, from diffutils-2.8.2.
54833 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
54835 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
54836 now that configure.ac uses AC_GNU_SOURCE.
54837 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
54838 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
54840 Update to latest tools. Suggestions from Paul Eggert.
54841 * m4/stdbool.m4: New file, from diffutils-2.8.2.
54842 * m4/gnu-source.m4: Update from diffutils-2.8.2.
54843 * m4/fnmatch.m4: Likewise.
54844 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
54845 to AC_HEADER_STDBOOL
54847 2002-06-22 Jim Meyering <meyering@lucent.com>
54849 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
54850 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
54852 2002-06-22 Jim Meyering <meyering@lucent.com>
54854 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
54856 * lib/exitfail.c, exitfail.h: Likewise.
54857 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
54859 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
54861 (EXTRA_DIST): Add fnmatch_loop.c.
54862 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
54864 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
54865 * lib/fnmatch.c: Update from diffutils-2.8.2.
54866 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
54867 * lib/fnmatch.h: Remove file.
54869 2002-06-21 Jim Meyering <meyering@lucent.com>
54871 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
54872 * m4/mbrtowc.m4: Likewise.
54874 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
54875 * m4/mbswidth.m4: Reflect name change:
54876 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
54877 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
54879 * m4/lib-link.m4: Update from gettext-0.11.2.
54880 * m4/gettext.m4: Likewise.
54882 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
54883 From Alfred M. Szmidt.
54885 2002-06-18 Paul Eggert <eggert@twinsun.com>
54887 * lib/file-type.h: Report an error if neither S_ISREG nor
54888 S_IFREG is defined, instead of using a test specific to glibc
54889 2.2. This should be safe, since POSIX requires S_ISREG and
54890 Unix Version 7 had S_IFREG. We don't need to check for
54891 <sys/types.h> since we don't use any symbols that it defines.
54893 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
54895 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
54896 $@-t, so that each temporary file name is unique and valid in the first
54897 8 characters, for operation under DOS.
54899 2002-06-15 Paul Eggert <eggert@twinsun.com>
54901 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
54903 2002-06-15 Jim Meyering <meyering@lucent.com>
54905 Work even with DJGPP 2.03, which lacks support for symlinks.
54907 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
54909 * lib/lchown.c (S_ISLNK): Likewise.
54911 2002-06-15 Jim Meyering <meyering@lucent.com>
54913 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
54914 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
54915 have been included before this file.
54917 2002-06-14 Jim Meyering <meyering@lucent.com>
54919 * lib/file-type.h: Use the version from diffutils-2.8.2.
54920 * lib/file-type.c: Likewise.
54922 2002-06-07 Jim Meyering <meyering@lucent.com>
54924 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
54925 They're needed at least for NetBSD 1.5.2.
54926 ($statxfs_includes): Include those same headers.
54927 ($statxfs_includes): Include sys/vfs.h if available.
54928 ($statxfs_includes): Likewise for sys/statvfs.h.
54929 Check for the following members in both structs statfs and statvfs:
54930 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
54932 2002-06-01 Jim Meyering <meyering@lucent.com>
54934 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
54935 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
54937 2002-05-28 Jim Meyering <meyering@lucent.com>
54939 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
54940 Reported by Volker Borchert.
54942 2002-05-27 Jim Meyering <meyering@lucent.com>
54944 Fix a problem seen only on nonconforming systems whereby ls.c's
54945 use of localtime, and then of gettimeofday would cause trouble:
54946 the localtime call used to initialize rpl_gettimeofday's save
54947 mechanism would clobber ls's current local time information so
54948 that in any long listing the first file would always be listed
54949 with date 1970-01-01. Analysis by Volker Borchert.
54951 * lib/gettimeofday.c (localtime): Undefine.
54952 (rpl_localtime): New function.
54954 2002-05-27 Jim Meyering <meyering@lucent.com>
54956 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
54959 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
54960 use the replacement function; it wouldn't resolve at link time.
54961 Reported by Volker Borchert.
54963 2002-05-22 Jim Meyering <meyering@lucent.com>
54965 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
54967 * lib/file-type.h: New file.
54968 * lib/file-type.c (file_type): New file/function. Extracted from
54971 2002-04-30 Jim Meyering <meyering@lucent.com>
54973 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
54975 2002-04-29 Paul Eggert <eggert@twinsun.com>
54977 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
54979 2002-04-29 Paul Eggert <eggert@twinsun.com>
54981 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
54982 Do not check for alloca.h (no longer used) or stdbool.h (was never
54983 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
54985 2002-04-29 Paul Eggert <eggert@twinsun.com>
54987 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
54989 2002-04-29 Jim Meyering <meyering@lucent.com>
54991 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
54992 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
54993 Use AC_FUNC_STRNLEN here instead.
54995 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
54996 With autoconf-2.53a, it's part of AC_PROG_CC.
54998 2002-04-28 Paul Eggert <eggert@twinsun.com>
55000 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
55001 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
55003 2002-04-28 Paul Eggert <eggert@twinsun.com>
55005 * lib/sig2str.h, lib/sig2str.c: New files.
55006 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
55008 2002-04-28 Paul Eggert <eggert@twinsun.com>
55010 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
55011 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
55012 of 127, since 64 is the largest conceivable number for ancient
55014 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
55016 2002-04-28 Jim Meyering <meyering@lucent.com>
55018 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
55020 2002-04-24 Jim Meyering <meyering@lucent.com>
55022 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
55023 (jm_PREREQ): Use it.
55025 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
55026 mach/mach.h fcntl.h.
55027 Check for this function: setlocale.
55029 2002-04-24 Jim Meyering <meyering@lucent.com>
55031 * lib/gettext.h: New file, from Gettext.
55032 * lib/Makefile.am (INCLUDES): Remove -I../intl.
55033 (libfetish_a_SOURCES): Add gettext.h.
55035 2002-04-16 Jim Meyering <meyering@lucent.com>
55037 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
55038 ut_pid, ut_id, ut_exit.
55040 2002-04-16 Jim Meyering <meyering@lucent.com>
55042 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
55043 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
55044 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
55046 2002-04-12 Jim Meyering <meyering@lucent.com>
55048 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
55049 now-bogus check for f_type in sys/mount.h. Instead, just test for the
55050 existence of the getmntinfo function. Needed for Darwin 5.3.
55052 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
55053 This is necessary at least on Darwin 5.3.
55055 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
55056 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
55057 strnlen.o in the library, and that makes some versions of ranlib
55060 2002-04-12 Jim Meyering <meyering@lucent.com>
55062 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
55064 2002-04-09 Jim Meyering <meyering@lucent.com>
55066 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
55067 to be more precise. Rather than saying we're checking whether the
55068 function `works', say what we're testing.
55069 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
55070 Reported by Bruno Haible.
55072 2002-03-10 Jim Meyering <meyering@lucent.com>
55074 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
55075 Suggestion from Santiago Vila.
55077 2002-03-08 Jim Meyering <meyering@lucent.com>
55079 * lib/rename.c: Mention that this wrapper is needed also on
55080 mips-dec-ultrix4.4 systems.
55082 2002-03-02 Jim Meyering <meyering@lucent.com>
55084 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
55085 not HAVE_CLOCK_SETTIME.
55087 2002-02-27 Paul Eggert <eggert@twinsun.com>
55089 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
55090 Check for clock_settime.
55092 2002-02-27 Paul Eggert <eggert@twinsun.com>
55094 * lib/nanosleep.h: Rename to....
55095 * lib/timespec.h: New name for nanosleep.h. All uses changed.
55097 * lib/gettime.c: New file.
55098 * lib/settime.c: New file.
55099 * lib/stime.c: Remove.
55101 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
55102 timespec.h. Remove nanosleep.h.
55104 2002-02-25 Paul Eggert <eggert@twinsun.com>
55106 * m4/acl.m4: New file.
55107 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
55108 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
55110 2002-02-25 Paul Eggert <eggert@twinsun.com>
55112 * lib/acl.c, lib/acl.h: New files.
55113 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
55115 2002-02-24 Jim Meyering <meyering@lucent.com>
55117 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
55118 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
55119 cause trouble. Reported by Nelson Beebe.
55121 2002-02-23 Paul Eggert <eggert@twinsun.com>
55123 * lib/path-concat.c (xpath_concat): Reorder code to pacify
55124 compilers that don't know that xalloc_die never returns.
55126 2002-02-20 Jim Meyering <meyering@lucent.com>
55128 * lib/getdate.c: Regenerate using bison-1.33.
55130 2002-02-17 Jim Meyering <meyering@lucent.com>
55132 * config/config.guess (main): Don't use `head -1'; it's no longer
55133 portable. Use `sed 1q' instead.
55135 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
55137 * m4/codeset.m4: Upgrade to gettext-0.11.
55138 * m4/gettext.m4: Upgrade to gettext-0.11.
55139 * m4/glibc21.m4: Upgrade to gettext-0.11.
55140 * m4/iconv.m4: Upgrade to gettext-0.11.
55141 * m4/isc-posix.m4: Upgrade to gettext-0.11.
55142 * m4/lcmessage.m4: Upgrade to gettext-0.11.
55143 * m4/lib-ld.m4: New file, from gettext-0.11.
55144 * m4/lib-link.m4: New file, from gettext-0.11.
55145 * m4/lib-prefix.m4: New file, from gettext-0.11.
55146 * m4/progtest.m4: Upgrade to gettext-0.11.
55148 2002-02-15 Paul Eggert <eggert@twinsun.com>
55150 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
55151 (jm_PREREQ): Use it.
55153 2002-02-15 Paul Eggert <eggert@twinsun.com>
55155 * lib/posixver.c, lib/posixver.h: New files.
55156 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
55158 2002-02-02 Paul Eggert <eggert@twinsun.com>
55159 Bruno Haible <bruno@clisp.org>
55161 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
55162 (fwrite_success_callback): New declaration.
55163 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
55164 print_unicode_char. Call failure callback instead of error.
55165 (fwrite_success_callback): New function.
55166 (exit_failure_callback): New function.
55167 (fallback_failure_callback): New function.
55168 (print_unicode_char): Call unicode_to_mb.
55170 2002-01-26 Jim Meyering <meyering@lucent.com>
55172 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
55173 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
55175 2002-01-26 Jim Meyering <meyering@lucent.com>
55177 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
55179 2002-01-22 Paul Eggert <eggert@twinsun.com>
55181 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
55183 2002-01-22 Jim Meyering <meyering@lucent.com>
55185 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
55186 Otherwise, some versions of automake would omit the rule that makes
55187 Makefile from Makefile.in.
55189 2002-01-21 Paul Eggert <eggert@twinsun.com>
55191 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
55192 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
55193 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
55194 (memcoll): Set errno to zero if there is no error.
55196 * lib/quotearg.c (quotearg_buffer_restyled):
55197 Fix bug with quoting buffers containing NUL when backslashing escapes.
55198 This bug was exposed by the other changes in this patch.
55199 (quotearg_n_options): New arg ARGSIZE.
55200 All callers changed.
55201 (quoting_options_from_style): New function.
55202 (quotearg_n_style): Use it.
55203 (quotearg_n_style_mem): New function.
55205 * lib/quotearg.h (quotearg_n_style_mem): New function.
55207 2002-01-19 Jim Meyering <meyering@lucent.com>
55209 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
55210 Remove useless quotes: DF_PROG="df".
55211 * m4/strnlen.m4: New file.
55213 2002-01-16 Paul Eggert <eggert@twinsun.com>
55215 * lib/backupfile.c (ISDIGIT): Comment fix.
55216 * lib/getdate.y (ISDIGIT): Likewise.
55217 * lib/posixtm.c (ISDIGIT, year): Likewise.
55218 * lib/strverscmp.c (ISDIGIT): Likewise.
55219 * lib/userspec.c (ISDIGIT): Likewise.
55221 2002-01-16 Jim Meyering <meyering@lucent.com>
55223 * lib/getdate.y: Add three semicolons, each just before a closing
55224 brace. Bison (as of version 1.31) no longer papers over that mistake.
55226 2002-01-05 Jim Meyering <meyering@lucent.com>
55228 * lib/version-etc.c (version_etc_copyright): Update copyright year.
55230 2001-12-19 Paul Eggert <eggert@twinsun.com>
55232 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
55233 not silently exit merely because the output buffer happens to
55234 have nothing pending.
55236 2001-12-18 Paul Eggert <eggert@twinsun.com>
55238 See the big note in ../ChangeLog.
55239 * lib/human.c (suffixes): Prefer K to k for 1024.
55240 (generate_suffix_backwards): New function.
55241 (human_readable_inexact): Use it.
55242 * lib/xstrtol.c (__xstrtol): If there is no number but there
55243 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
55244 Accept 'K' as well as 'k'.
55246 2001-12-15 Jim Meyering <meyering@lucent.com>
55248 * lib/regex.h (__restrict_arr): Update from libc.
55250 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
55251 as `remote' if the name starts with `//'. Suggested by Michael Stone.
55254 2001-12-14 Jim Meyering <meyering@lucent.com>
55256 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
55257 Suggestion from Bruno Haible.
55259 2001-12-10 Jim Meyering <meyering@lucent.com>
55261 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
55262 xrealloc, Instead, include "xalloc.h".
55263 (initbuffer): Don't cast xmalloc return value to char*.
55264 (readline): Reword comment.
55265 Don't cast xrealloc return value to char*
55266 Return NULL, not 0.
55268 2001-12-09 Jim Meyering <meyering@lucent.com>
55270 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
55271 about `signed and unsigned type in conditional expression'.
55272 * lib/posixtm.c (posix_time_parse): Likewise.
55274 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
55276 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
55277 to avoid a pedantic warning.
55279 * lib/getstr.c: Don't include assert.h.
55280 (getstr): Remove warning-evoking assertions.
55281 Return -1 if offset parameter is out of bounds.
55282 Change the type of a local from int to size_t.
55284 * lib/strftime.c (my_strftime_localtime_r): Include this function
55285 definition in the `#if ! HAVE_TM_GMTOFF' block.
55287 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
55288 Include xalloc.h instead.
55290 2001-12-02 Jim Meyering <meyering@lucent.com>
55292 * lib/tempname.c: Don't declare getenv, thus reverting the change of
55293 2001-11-18. It's no longer necessary, now that stdlib.h is always
55296 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
55297 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
55299 2001-11-30 Akim Demaille <akim@epita.fr>
55301 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
55302 before being defined.
55304 2001-11-27 Paul Eggert <eggert@twinsun.com>
55306 * lib/quotearg.h (quotearg_n, quotearg_n_style):
55307 First arg is int, not unsigned.
55308 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
55309 (SIZE_MAX, UINT_MAX): New macros.
55310 (quotearg_n_options): Abort if N is negative.
55311 Avoid overflow check on hosts where size_t is 64 bits and int
55312 is 32 bits, as overflow is impossible there.
55313 Fix off-by-one typo that caused unnecessary reallocation.
55315 2001-11-27 Jim Meyering <meyering@lucent.com>
55317 * lib/tempname.c: Merge with version from libc.
55318 * lib/regex.c: Likewise.
55320 * lib/tempname.c: Include stdlib.h unconditionally. On some old
55321 systems for which STDC_HEADERS is 0, it was not included, resulting in
55322 a warning about an integer-to-pointer conversion problem with getenv.
55323 Reported by Volker Borchert.
55325 2001-11-26 Jim Meyering <meyering@lucent.com>
55327 * lib/gtod.h: Remove file.
55328 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
55329 * lib/gettimeofday.c: Don't include gtod.h.
55330 (GTOD_init): Remove function.
55331 (rpl_gettimeofday): Do its job here instead, rather than aborting.
55332 Suggestion from Volker Borchert.
55334 2001-11-23 Jim Meyering <meyering@lucent.com>
55336 * lib/hash.h (struct hash_table): Don't define here. Merely declare
55338 * lib/hash.c (struct hash_table): Define it here instead.
55340 2001-11-22 Jim Meyering <meyering@lucent.com>
55342 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
55344 2001-11-20 Jim Meyering <meyering@lucent.com>
55346 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
55347 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
55349 2001-11-19 Jim Meyering <meyering@lucent.com>
55351 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
55352 directory. Use "conftestXXXXXX" as the template.
55353 Suggestion from Paul Eggert.
55355 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
55356 immediately, so the test doesn't mistakenly hit the max-open-files
55359 2001-11-18 Paul Eggert <eggert@twinsun.com>
55361 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
55362 (TEMPORARIES): New macro.
55363 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
55364 removes an artificial limitation (e.g. HP-UX 10.20, where
55367 2001-11-18 Jim Meyering <meyering@lucent.com>
55369 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
55371 2001-11-18 Jim Meyering <meyering@lucent.com>
55373 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
55376 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
55377 files will be created before anything else.
55379 2001-11-17 Paul Eggert <eggert@twinsun.com>
55381 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
55382 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
55384 2001-11-17 Jim Meyering <meyering@lucent.com>
55386 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
55387 Prompted by a report from Bob Proulx.
55389 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
55390 Instead, require UTILS_FUNC_MKSTEMP.
55392 2001-11-17 Jim Meyering <meyering@lucent.com>
55394 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
55395 Now, that's done as part of AC_FUNC_STRTOD.
55397 2001-11-17 Jim Meyering <meyering@lucent.com>
55399 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
55400 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
55401 rather than group writable. Patch by Juan F. Codagnone.
55403 * lib/readtokens.c: Remove explicit declarations of xmalloc and
55404 xrealloc, Instead, include "xalloc.h".
55406 * lib/mountlist.c: Include unlocked-io.h after all system headers.
55407 Remove explicit declarations of xmalloc, xrealloc,
55408 and xstrdup. Instead, include "xalloc.h".
55410 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
55412 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
55414 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
55416 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
55417 Reported by Padraig Brady.
55419 * lib/mkstemp.c: #undef mkstemp.
55421 (rpl_mkstemp): Rename from mkstemp.
55424 2001-11-16 Jim Meyering <meyering@lucent.com>
55426 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
55427 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
55428 determine the amount of total physical memory, use pstat_getstatic.
55429 HPUX-11 doesn't define _SC_PHYS_PAGES.
55430 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
55431 If sysconf couldn't be used to determine the amount of available
55432 physical memory, use both pstat_getstatic and pstat_getdynamic.
55433 Based on a patch from Bob Proulx.
55435 2001-11-10 Jim Meyering <meyering@lucent.com>
55437 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
55438 (jm_PREREQ): Use it.
55440 2001-11-09 Jim Meyering <meyering@lucent.com>
55442 * m4/jm-macros.m4: Require autoconf-2.52f.
55443 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
55444 Use these AC_-prefixed names, not the AM_-prefixed ones.
55446 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
55448 2001-11-05 Jim Meyering <meyering@lucent.com>
55450 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
55452 2001-11-04 Jim Meyering <meyering@lucent.com>
55454 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
55457 2001-11-03 Jim Meyering <meyering@lucent.com>
55459 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
55462 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
55463 know the name of the variable in the macro definition.
55465 2001-11-03 Jim Meyering <meyering@lucent.com>
55467 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
55468 in argmatch_to_argument call.
55470 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
55473 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
55474 e.g., a fault due to an attempt to free a NULL pointer.
55476 2001-11-01 Jim Meyering <meyering@lucent.com>
55478 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
55479 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
55481 2001-11-01 Jim Meyering <meyering@lucent.com>
55483 * lib/dirfd.c, lib/dirfd.h: New files.
55484 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
55486 * lib/hash.c (hash_print) [TESTING]: Clean up.
55488 2001-10-22 Paul Eggert <eggert@twinsun.com>
55490 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
55491 to avoid a warning if -Wall.
55493 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
55496 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
55497 (per RMS's instructions, this is now the canonical source)
55498 * lgpl/, gpl/: New directories.
55500 2001-10-21 Paul Eggert <eggert@twinsun.com>
55502 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
55504 2001-10-21 Jim Meyering <meyering@lucent.com>
55506 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
55507 this code would end up calling gettext even in packages built
55508 with --disable-nls.
55509 * lib/getopt.c (_): Likewise.
55510 * lib/regex.c (_): Likewise.
55512 2001-10-20 Paul Eggert <eggert@twinsun.com>
55514 * m4/error.m4 (jm_PREREQ_ERROR):
55515 Do not invoke AC_CHECK_FUNCS with strerror_r, as
55516 AC_FUNC_STRERROR_R does that.
55517 Check for strerror declaration.
55519 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
55520 are supposed to have them these days.
55521 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
55522 Merge changes from latest Autoconf CVS.
55523 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
55524 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
55525 POSIX decided to standardize on the int flavor of strerror_r.
55527 2001-10-20 Paul Eggert <eggert@twinsun.com>
55529 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
55530 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
55531 Use strerror_r that is only a macro, even if it is not a function.
55532 (strerror): Check for HAVE_DECL_STRERROR before declaring.
55533 (private_strerror): Use prototypes, not old-style function definition.
55534 (print_errno_message): New function.
55535 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
55536 char*-flavored one.
55537 (error_tail, error, error_at_line): Use it.
55539 2001-10-11 Jim Meyering <meyering@lucent.com>
55541 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
55542 and quote_n (1, ... to avoid clobbering a buffer.
55544 2001-10-05 Jim Meyering <meyering@lucent.com>
55546 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
55548 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
55549 * lib/hash-pjw.h: New file.
55551 2001-09-30 Jim Meyering <meyering@lucent.com>
55553 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
55554 `struct fsstat' has the `f_fstypename' member.
55555 Use that to define FS_TYPE, which is now used to make
55556 the getfsstat link test tighter.
55558 2001-09-30 Jim Meyering <meyering@lucent.com>
55560 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
55561 Include <sys/ucred.h>, for Apple Darwin.
55562 Include sys/mount.h and sys/fs_types.h only if available.
55564 (read_filesystem_list): Use FS_TYPE.
55566 2001-09-29 Paul Eggert <eggert@twinsun.com>
55568 * lib/exclude.c (excluded_filename): 0 -> false, since it's
55571 2001-09-29 Jim Meyering <meyering@lucent.com>
55573 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
55574 [one-argument getmntent function]): Include stdio.h before mntent.h.
55575 SunOS 4.1.x needs it for the declaration of `FILE'.
55576 Patch by Volker Borchert.
55578 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
55579 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
55580 sys/fs_types.h, and make the link-test for getfsstat guard #include
55581 directives with appropriate #if HAVE_*_H tests so that we can
55582 detect getfsstat on Apple Darwin1.3.7 systems.
55583 Reported by Nelson Beebe.
55584 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
55586 2001-09-28 Paul Eggert <eggert@twinsun.com>
55588 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
55589 #defines strtoimax. Also treat the other strto* functions
55592 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
55593 Check for strtoul and strtoumax,
55594 as those declarations are made even in the signed case.
55595 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
55596 Likewise, for strtol and strtoimax.
55598 2001-09-28 Paul Eggert <eggert@twinsun.com>
55600 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
55601 #defines strtoimax. Also treat the other strto* functions
55604 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
55605 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
55606 (strtoimax, strtoumax): Do not declare if already defined as a macro.
55608 2001-09-26 Jim Meyering <meyering@lucent.com>
55610 Most macros in unlocked-io.h had the wrong number of arguments.
55611 * lib/gen-uio: New script.
55612 (USE_UNLOCKED_IO): Define to 1 if not already defined.
55613 * lib/unlocked-io.hin: Remove file.
55614 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
55615 rather than trying to embed it here.
55616 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
55617 Reported by Padraig Brady.
55619 2001-09-25 Volker Borchert <bt@teknon.de>
55621 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
55624 2001-09-24 Jim Meyering <meyering@lucent.com>
55626 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
55628 2001-09-23 Jim Meyering <meyering@lucent.com>
55630 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
55631 instead of the mere test for existence of mntent.h. The latter
55632 would get a false-positive on AIX 3.4 systems.
55633 In the outer getmntent if-block, don't die if neither of the getmntent
55634 tests succeeds. Instead, just fall through and continue with the
55637 2001-09-23 Jim Meyering <meyering@lucent.com>
55639 * lib/mountlist.c: Remove useless parentheses in #if directives.
55640 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
55641 the deprecated MOUNTED symbol is no longer defined in mntent.h.
55643 2001-09-22 Jim Meyering <meyering@lucent.com>
55645 * m4/gettext.m4: New file. From gettext.
55646 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
55647 * m4/progtest.m4: Likewise
55648 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
55649 * m4/glibc21.m4: Likewise.
55651 * m4/libintl.m4: Remove. No longer used.
55653 2001-09-22 Jim Meyering <meyering@lucent.com>
55655 * lib/localcharset.c: Update from latest gettext.
55656 * lib/config.charset: Likewise.
55658 2001-09-20 Jim Meyering <meyering@lucent.com>
55660 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
55662 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
55665 2001-09-20 Jim Meyering <meyering@lucent.com>
55667 * lib/xstrtol.c (strtoimax): Guard declaration with
55668 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
55669 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
55670 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
55671 (strtoumax): Likewise, for completeness (it wasn't necessary).
55673 2001-09-17 Paul Eggert <eggert@twinsun.com>
55675 * lib/strtoimax.c (HAVE_LONG_LONG):
55676 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
55677 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
55678 to work around bug in IBM C compiler.
55680 2001-09-17 Jim Meyering <meyering@lucent.com>
55682 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
55683 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
55684 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
55685 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
55686 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
55687 whenever the right hand side need not be expanded by the shell.
55689 2001-09-16 Paul Eggert <eggert@twinsun.com>
55691 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
55692 library. It's not correct, as some older glibcs are buggy.
55693 fnmatch wasn't fixed until glibc 2.2.
55695 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
55696 special shell magic here.
55698 2001-09-16 Jim Meyering <meyering@lucent.com>
55700 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
55701 * m4/jm-macros.m4: Require it.
55703 2001-09-16 Jim Meyering <meyering@lucent.com>
55705 * lib/mkdir.c: New file.
55707 2001-09-15 Jim Meyering <meyering@lucent.com>
55709 * m4/jm-macros.m4: Check for help2man.
55711 2001-09-11 Jim Meyering <meyering@lucent.com>
55713 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
55714 The body, by Paul Eggert, was moved here from configure.in.
55715 * m4/jm-macros.m4: Require UTILS_HOST_OS.
55717 2001-09-04 Paul Eggert <eggert@twinsun.com>
55719 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
55720 (jm_PREREQ): Use it.
55722 2001-09-04 Paul Eggert <eggert@twinsun.com>
55724 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
55725 Use ssize_t, not int, to store result of readlink.
55726 Check for ssize_t overflow as well as size_t overflow,
55727 as POSIX says the result of readlink is implementation-defined
55728 when ssize_t overflows.
55729 Remove unnecessary cast to char*.
55730 Use free+malloc instead of realloc, as the storage doesn't need
55731 to be preserved and it's clearer and can be more efficient that way.
55732 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
55733 * lib/xreadlink.h (xreadlink): Update prototype.
55735 2001-09-04 Paul Eggert <eggert@twinsun.com>
55737 * lib/xgetcwd.c: Revert some of the previous change; intead,
55738 fix the HAVE_GETCWD_NULL code to behave more like the
55739 !HAVE_GETCWD_NULL code used to.
55741 Include "xalloc.h".
55742 (xgetcwd): Do not return NULL when memory is exhausted; instead,
55745 2001-09-03 Paul Eggert <eggert@twinsun.com>
55747 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
55748 sys/param.h, as pathmax.h includes them.
55750 2001-09-03 Paul Eggert <eggert@twinsun.com>
55752 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
55753 (jm_PREREQ_XGETCWD): New macro.
55755 * m4/getcwd.m4: New file.
55757 2001-09-03 Paul Eggert <eggert@twinsun.com>
55759 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
55760 like the HAVE_GETCWD_NULL code.
55761 Include pathmax.h if not HAVE_GETCWD.
55762 Do not include xalloc.h.
55763 (INITIAL_BUFFER_SIZE): New symbol.
55764 Do not use xmalloc / xrealloc, since the caller is responsible for
55765 handling errors. Preserve errno around `free' during failure.
55766 Do not overrun buffer when using getwd.
55768 2001-09-03 Paul Eggert <eggert@twinsun.com>
55770 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
55771 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
55774 2001-09-03 Paul Eggert <eggert@twinsun.com>
55776 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
55777 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
55778 spotted by Jim Meyering.
55780 2001-09-03 Jim Meyering <meyering@lucent.com>
55782 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
55785 2001-09-02 Jim Meyering <meyering@lucent.com>
55787 * lib/error.c: Update from GNU libc.
55789 2001-09-01 Jim Meyering <meyering@lucent.com>
55791 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
55794 2001-09-01 Jim Meyering <meyering@lucent.com>
55796 * lib/xreadlink.c: New file.
55797 * lib/xreadlink.h: New file.
55798 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
55801 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
55802 doesn't conflict with sparc Solaris 7's definition in
55803 /usr/include/sys/int_types.h.
55805 * lib/exclude.c: Use `""', not `<>' to #include non-system header
55807 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
55808 and strncasecmp as r-values. Unixware didn't have declarations.
55810 2001-08-31 Paul Eggert <eggert@twinsun.com>
55812 * lib/xstrtol.h: Add copyright notice.
55813 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
55814 LONGINT_INVALID_SUFFIX_CHAR.
55816 2001-08-31 Paul Eggert <eggert@twinsun.com>
55818 * lib/xstrtol.c (strtoimax): New decl.
55820 2001-08-31 Paul Eggert <eggert@twinsun.com>
55822 * lib/xgetcwd.c: Don't include pathmax.h.
55823 Include stdlib.h and unistd.h if available.
55825 (xmalloc, xstrdup, free): Remove decls.
55826 (xgetcwd): Don't assume sizes fit in unsigned.
55827 Check for overflow when computing sizes.
55828 Simplify reallocation code.
55830 2001-08-31 Paul Eggert <eggert@twinsun.com>
55832 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
55833 a directory's st_size can have an arbitrary value, so the old
55834 usage could waste an arbitrary amount of memory. All uses
55836 * lib/savedir.h: Update prototype.
55838 2001-08-31 Paul Eggert <eggert@twinsun.com>
55840 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
55842 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
55845 Also, make the following further changes to make this file's
55846 configuration more similar to that of strtol.c:
55847 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
55848 (strtoumax, uintmax_t, strtoull, strtol): Remove.
55849 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
55850 (strtoimax): Renamed from strtoumax. All uses of unsigned values
55851 changed to signed values.
55853 And make the following changes as well:
55854 Fix copyright notice, as 1999 was missing.
55855 (verify): New macro.
55856 (strtoimax): Check sizes at compile-time, not run-time.
55857 Prefer strtol to strtoll if both work.
55858 (main): Remove; it was not that useful and was a pain to maintain.
55860 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
55862 2001-08-31 Jim Meyering <meyering@lucent.com>
55864 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
55865 Use an initial, malloc'd, buffer of length 128 rather than
55866 a statically allocated one of length 1024.
55868 2001-08-30 Paul Eggert <eggert@twinsun.com>
55870 Simplify code, partly by assuming autoconf 2.52 semantics.
55872 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
55874 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
55875 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
55877 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
55878 Move AC_REQUIRE to next-to-top level, to avoid confusion.
55879 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
55880 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
55881 jm_AC_HEADER_INTTYPES_H.
55882 * m4/jm-macros.m4 (jm_MACROS): Likewise.
55884 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
55886 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
55887 Quote first arg of AC_DEFUN.
55888 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
55889 since they are needed to parse the include file even if we need
55890 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
55891 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
55892 but with opposite signedness.
55894 2001-08-30 Paul Eggert <eggert@twinsun.com>
55896 Merge 'exclude' changes from tar 1.13.22.
55897 This fixes one or two unlikely storage allocation overflow bugs,
55898 but doesn't change user-visible behavior otherwise.
55900 2001-08-30 Paul Eggert <eggert@twinsun.com>
55902 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
55903 (jm_PREREQ_EXCLUDE): New macro.
55905 2001-08-30 Paul Eggert <eggert@twinsun.com>
55907 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
55910 2001-08-30 Paul Eggert <eggert@twinsun.com>
55912 * lib/hash.c: Remove '2001' from copyright notice.
55914 2001-08-30 Paul Eggert <eggert@twinsun.com>
55916 * lib/full-write.h: New file.
55917 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
55918 * lib/full-write.c: Correct credits, as cccp.c no longer
55919 exists and anyway it was so heavily changed from the old cccp
55920 code as to be unrecognizable. Include full-write.h.
55921 (full_write) Return size_t, with short writes meaning failure.
55922 All callers changed. This fixes a bug with large buffers
55924 * lib/utime.c: Include full-write.h.
55926 2001-08-30 Paul Eggert <eggert@twinsun.com>
55928 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
55929 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
55930 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
55931 Include if available.
55932 (<xalloc.h>): Include
55933 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
55934 (verify): New macro. Use it to verify that EXCLUDE macros do not
55935 collide with FNM macros.
55936 (struct patopts): New struct.
55937 (struct exclude): Use it, as exclude patterns now come with options.
55938 (new_exclude): Support above changes.
55939 (new_exclude, add_exclude_file):
55940 Initial size must now be a power of two to simplify overflow checking.
55941 (free_exclude, fnmatch_no_wildcards): New function.
55942 (excluded_filename): No longer requires options arg, as the options
55943 are determined by add_exclude. Now returns bool, not int.
55944 (excluded_filename, add_exclude):
55945 Add support for the fancy new exclusion options.
55946 (add_exclude, add_exclude_file): Now takes int options arg.
55947 Check for arithmetic overflow when computing sizes.
55948 (add_exclude_file): xrealloc might modify errno, so don't
55949 realloc until after errno might be used.
55951 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
55953 (free_exclude): New decl.
55954 (add_exclude, add_exclude_file): Now takes int options arg.
55955 (excluded_filename): No longer requires options arg, as the options
55956 are determined by add_exclude. Now returns bool, not int.
55958 2001-08-30 Paul Eggert <eggert@twinsun.com>
55960 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
55962 2001-08-27 Jim Meyering <meyering@lucent.com>
55964 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
55966 * lib/version-etc.c (N_): Remove definition.
55967 Revert most of last change.
55968 Instead, simply don't mark the `Copyright...' string for translation.
55969 Based on advice from Paul Eggert.
55971 * lib/strtoxmax.c: Tweak comment.
55973 2001-08-26 Jim Meyering <meyering@lucent.com>
55975 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
55977 * m4/xstrtoimax.m4: New file.
55978 * m4/xstrtoumax.m4: Add comments explaining why we
55979 AC_REPLACE_FUNCS(strtol).
55981 2001-08-26 Jim Meyering <meyering@lucent.com>
55983 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
55984 of copyright with `%s' so translators don't get an untranslated
55986 (COPYRIGHT_YEAR): Define.
55987 (version_etc): Use fprintf rather than fputs.
55988 Suggestion from Ulrich Drepper.
55990 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
55992 * lib/strtoll.c: New file, from GNU libc.
55993 * lib/xstrtoimax.c: New file.
55995 * lib/xstrtol.h: Add xstrtoimax.
55996 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
55997 * lib/strtoimax.c: New file. Likewise, but first define
56000 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
56002 * lib/strtoxmax.c: ... then renamed to this.
56004 2001-08-18 Paul Eggert <eggert@twinsun.com>
56006 * m4/inttypes.m4: Add AC_PREREQ(2.13).
56007 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
56008 (jm_AC_TYPE_INTMAX_T): New macro.
56009 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
56011 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
56013 * m4/longlong.m4: Renamed from ulonglong.m4.
56014 * m4/inttypes.m4: Renamed from inttypes_h.m4.
56015 * m4/uintmax_t.m4: Removed.
56017 2001-08-13 Paul Eggert <eggert@twinsun.com>
56019 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
56020 Port to Solaris 8, where 'sed' requires a space after the 'r'
56021 command, and where sh dislikes "$/". Clean up the spacing a bit.
56022 Redirect output to $tmp just once.
56024 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
56026 * lib/addext.c (<errno.h>): Include.
56027 (errno): Declare if not defined.
56028 (addext): Work correctly when pathconf returns -1 and leaves
56029 errno alone because there is no limit. Also, work even if
56030 pathconf returns a value greater than SIZE_MAX.
56032 2001-08-12 Jim Meyering <meyering@lucent.com>
56034 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
56035 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
56036 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
56037 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
56038 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
56039 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
56040 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
56041 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
56042 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
56043 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
56044 utime.m4, utimes.m4, xstrtoumax.m4:
56045 Quote the first argument in each use of AC_DEFUN.
56047 2001-08-12 Jim Meyering <meyering@lucent.com>
56049 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
56050 Simply `return getcwd (NULL, 0);'.
56051 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
56052 Use 1300 as initial value for length, not PATH_MAX.
56054 * lib/pathmax.h: Clean up cpp syntax.
56056 2001-08-12 Jim Meyering <meyering@lucent.com>
56058 * lib/gettimeofday.c: New file.
56059 * lib/gtod.h: New file.
56060 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
56062 2001-08-05 Jim Meyering <meyering@lucent.com>
56064 * m4/jm-macros.m4: Require autoconf-2.52.
56066 2001-08-04 Jim Meyering <meyering@lucent.com>
56068 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
56069 stmt, to get in sync with glibc.
56071 2001-08-03 Paul Eggert <eggert@twinsun.com>
56073 The following changes are from gettext 0.10.39 as maintained by
56076 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
56077 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
56078 with inverted sense. All uses changed.
56080 * lib/mbswidth.c: Don't include <limits.h>.
56081 Include <stdlib.h> and <string.h> unconditionally.
56082 (iswcntrl, mbsinit, ISCNTRL): New macros.
56083 (mbsnwidth): Use K&R style function declarations.
56084 Don't bother checking for MB_LEN_MAX == 1, since the compiler
56085 can optimize it when MB_CUR_MAX == 1.
56086 The width of control characters is zero, not 1.
56088 2001-08-03 Paul Eggert <eggert@twinsun.com>
56090 The following changes are from gettext 0.10.39 as maintained by
56091 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
56093 * m4/codeset.m4: Upgrade to serial AM1.
56094 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
56095 all uses changed. Quote first arg of AC_DEFUN.
56096 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
56098 * m4/iconv.m4: Upgrade to serial AM2.
56099 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
56100 Add --with-libconv-prefix.
56101 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
56102 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
56103 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
56104 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
56105 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
56107 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
56108 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
56109 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
56110 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
56111 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
56112 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
56113 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
56114 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
56115 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
56117 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
56120 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
56121 not the default value.
56123 2001-06-25 Bruno Haible <haible@clisp.cons.org>
56124 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
56125 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
56126 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
56127 Also check for iswcntrl, used for wcwidth fallback.
56128 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
56131 2001-08-03 Jim Meyering <meyering@lucent.com>
56133 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
56134 as it was in the original. Reported by Paul Eggert.
56136 2001-07-16 Jim Meyering <meyering@lucent.com>
56138 * m4/gettimeofday.m4: New file.
56139 Prompted by a report from Bernhard Baehr.
56141 2001-07-15 Jim Meyering <meyering@lucent.com>
56143 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
56144 stuff. Now it's in ../Makefile.cfg.
56146 2001-07-15 Jim Meyering <meyering@lucent.com>
56148 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
56149 (BUILT_SOURCES): Add unlocked-io.h.
56150 (io_functions): Define.
56151 (unlocked-io.h): New rule.
56152 (DISTCLEANFILES): Add unlocked-io.h.
56153 (all-local): Depend on unlocked-io.h, to ensure it is created.
56155 * lib/unlocked-io.hin: New file
56157 * lib/regex.c: Update from glibc.
56159 2001-07-05 Jim Meyering <meyering@lucent.com>
56161 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
56163 (libfetish_a_SOURCES): Put all .h files here instead.
56164 Remove a thus-exposed (better checks in automake) duplicate and
56165 two unnecessary .h files.
56167 2001-07-04 Jim Meyering <meyering@lucent.com>
56169 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
56170 that generates jm-glibc-io.m4 so that it doesn't trigger any make
56173 2001-07-02 Jim Meyering <meyering@lucent.com>
56175 The following changes were prompted by suggestions from Bruno Haible.
56177 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
56179 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
56180 definition of EXTRA_DIST.
56181 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
56182 ensure that the generated file is created/updated whenever the list
56183 of $(unlocked_functions) is changed.
56184 (jm-glibc-io.m4): New rule.
56185 (unlocked-io.h): New rule -- currently unused.
56187 2001-06-24 Jim Meyering <meyering@lucent.com>
56189 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
56190 unmatched right bracket, rather than kludging it with an extra,
56191 falsely-matching quote in a comment. Patch by Akim Demaille.
56193 2001-06-11 Jim Meyering <meyering@lucent.com>
56195 * lib/regex.c: Update from GNU libc.
56197 2001-05-27 Jim Meyering <meyering@lucent.com>
56199 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
56200 Check for ut_type in struct utmp.
56202 2001-05-27 Jim Meyering <meyering@lucent.com>
56204 * lib/readutmp.h (UT_TYPE): Define.
56206 2001-05-24 Jim Meyering <meyering@lucent.com>
56208 * lib/argmatch.c: Include "quote.h".
56209 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
56210 quote function. Reported by Göran Uddeborg.
56212 2001-05-22 Jim Meyering <meyering@lucent.com>
56214 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
56215 now that we use the package-supplied version unconditionally.
56216 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
56218 2001-05-21 Jim Meyering <meyering@lucent.com>
56220 * m4/regex.m4: Change a couple backticks to single quotes to avoid
56221 shell syntax errors.
56223 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
56225 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
56227 2001-05-20 Paul Eggert <eggert@twinsun.com>
56229 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
56230 Don't bother to check library strftime, since
56231 we'll be using our own my_strftime function anyway.
56232 Define my_strftime instead of strftime.
56234 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
56236 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
56237 which is not yet declared.
56239 2001-05-15 Jim Meyering <meyering@lucent.com>
56241 * m4/regex.m4: Use proper quoting so brackets appear in the test
56243 Reported by, and with help from, Bruno Haible.
56245 2001-05-13 Jim Meyering <meyering@lucent.com>
56247 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
56250 2001-05-11 Paul Eggert <eggert@twinsun.com>
56252 dirname code cleanup. base_name now behaves more compatibly
56253 with POSIX basename when given file names that have trailing
56254 slashes, and similarly for dir_name. Add new primitives
56255 base_len and dir_len. Put the directory-name-related decls
56258 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
56259 * lib/backupfile.c (base_name): Likewise.
56260 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
56261 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
56262 * lib/makepath.c (strip_trailing_slashes): Likewise.
56263 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
56264 ISSLASH): Likewise.
56265 * lib/rename.c (strip_trailing_slashes): Likewise.
56266 * lib/same.c (base_name): Likewise.
56267 * lib/stripslash.c (ISSLASH): Likewise.
56269 * lib/addext.c: Include <dirname.h> after size_t is defined.
56270 * lib/backupfile.c: Likewise.
56272 * lib/addext.c (addext): Use base_len to trim redundant
56273 trailing slashes instead of doing it ourselves.
56274 But do not trim the last slash if it is not redundant.
56276 * lib/backupfile.c (find_backup_file_name,
56277 max_backup_version): Use base_len instead of rolling it ourselves.
56278 Handle the case of "" and (on DOS) "C:" correctly.
56280 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
56281 needed. Include <string.h>, <dirname.h>.
56282 (base_name): Allow file names ending in slashes, other than names
56283 that are all slashes. In this case, return the basename followed
56284 by the slashes. This is more general, and can be used in places
56285 where the original base_name purposely had an assertion failure.
56286 (base_len): New function.
56288 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
56289 Do not include <assert.h>; no longer needed.
56291 (memrchr): Remove decl.
56292 (dir_name_r): Remove.
56293 (dir_len): Renamed from dirlen. All callers changed.
56294 Rewrite in terms of base_name, for simplicity and consistency.
56295 (dir_name): Never return NULL. All callers changed.
56296 Do not include <stdlib.h> in test program; no longer needed.
56297 return 0; is fine for test program.
56299 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
56301 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
56303 * lib/path-concat.c (path_concat): Use base_len to compute
56304 base length, not strlen; this means we cannot rely on memcpy
56307 * lib/same.c (STREQ): Remove.
56308 (same_name): Handle the case where the basename ends in trailing '/'.
56310 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
56311 a slash was stripped. Do not strip the last slash after a
56312 file system prefix.
56314 2001-05-11 Paul Eggert <eggert@twinsun.com>
56316 * lib/Makefile.am (libfetish_a_SOURCES):
56317 Add strftime.c, since we now compile it on all hosts.
56319 * lib/strftime.c (my_strftime):
56320 Define to nstrftime if emacs, but only if my_strftime is not defined.
56321 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
56322 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
56323 Add one more extra argument: a nanoseconds value.
56326 (my_strftime function): Add %N format.
56327 (emacs_strftimeu): Renamed from emacs_strftime,
56328 with extra ut argument.
56330 2001-05-09 Paul Eggert <eggert@twinsun.com>
56332 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
56334 2001-04-21 Jim Meyering <meyering@lucent.com>
56336 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
56339 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
56341 * m4/ftruncate.m4: Check for chsize.
56342 Link with ftruncate.o unconditionally if ftruncate is missing.
56343 This was required when cross-compiling to i586-mingw32msvc.
56345 2001-04-08 Jim Meyering <meyering@lucent.com>
56347 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
56348 recomputed; that's necessary when the offset spans a DST transition.
56349 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
56351 2001-04-02 Jim Meyering <meyering@lucent.com>
56353 * lib/regex.h, regex.c: Update from GNU libc.
56355 2001-03-24 Jim Meyering <meyering@lucent.com>
56357 * m4/jm-macros.m4: Require autoconf-2.49d.
56359 2001-03-20 Bruno Haible <haible@clisp.cons.org>
56361 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
56363 2001-03-19 Paul Eggert <eggert@twinsun.com>
56365 * lib/version-etc.c (version_etc_copyright): Update to 2001.
56367 2001-03-17 Jim Meyering <meyering@lucent.com>
56369 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
56370 now that the version in autoconf is equivalent.
56371 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
56373 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
56374 Suggestion from Akim Demaille.
56376 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
56377 (jm_PREREQ_TEMPNAME): New function.
56379 2001-03-16 Paul Eggert <eggert@twinsun.com>
56381 * lib/tempname.c (uint64_t): Define to uintmax_t if
56382 not defined, and if UINT64_MAX is not defined.
56383 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
56384 Reported by John David Anglin.
56386 2001-03-15 Bruno Haible <haible@clisp.cons.org>
56388 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
56389 resolve alias if codeset is empty.
56390 * lib/config.charset (BeOS): Use wildcard syntax.
56392 2001-03-13 Jim Meyering <meyering@lucent.com>
56394 * lib/path-concat.c (path_concat)
56395 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
56396 concatenating e.g., `C:' and `foo'.
56399 2001-03-06 Bruno Haible <haible@clisp.cons.org>
56401 * lib/localcharset.c (locale_charset): Don't use
56402 setlocale(LC_CTYPE,NULL). Don't return NULL.
56403 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
56405 2001-03-06 Bruno Haible <haible@clisp.cons.org>
56407 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
56408 support for DOS/DJGPP.
56410 2001-03-01 Paul Eggert <eggert@twinsun.com>
56412 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
56413 lacks mkstemp. Compile our own tempname.c if we compile our own
56414 mkstemp.c, as mkstemp relies on tempname.
56416 2001-03-01 Jim Meyering <meyering@lucent.com>
56418 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
56419 AH_VERBATIM really does output its argument verbatim.
56421 2001-02-28 Paul Eggert <eggert@twinsun.com>
56423 * lib/Makefile.am (libfetish_a_SOURCES):
56424 Add dup-safer.c, fopen-safer.c.
56425 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
56427 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
56428 * lib/unistd-safer.h: New files.
56430 2001-02-25 Paul Eggert <eggert@twinsun.com>
56432 The mkstemp replacement is taken from glibc 2.2.2, with some
56433 portability fixes for use outside glibc, as follows:
56435 * lib/tempname.c (struct_stat64): New macro.
56436 (direxists, __gen_tempname): Use it.
56437 This avoids a portability problem with Solaris 8.
56439 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
56440 (<stddef.h>, <stdint.h>, <string.h>):
56441 Include only if STDC_HEADERS || _LIBC.
56442 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
56443 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
56444 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
56445 (__set_errno): Define this macro if <errno.h> doesn't.
56446 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
56447 Define these macros if <stdio.h> doesn't.
56448 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
56449 Define these macros if <sys/stat.h>
56450 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
56451 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
56452 __xstat64): Define if not _LIBC.
56453 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
56454 (__gen_tempname): Invoke gettimeofday only if
56455 HAVE_GETTIMEOFDAY || _LIBC;
56456 otherwise, fall back on plain "time".
56457 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
56459 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
56461 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
56463 2001-02-18 Paul Eggert <eggert@twinsun.com>
56465 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
56467 2001-02-17 Paul Eggert <eggert@twinsun.com>
56469 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
56470 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
56471 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
56472 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
56474 2001-02-17 Paul Eggert <eggert@twinsun.com>
56476 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
56477 Remove workaround macros for hosts that have mbrtowc but not
56478 mbstate_t, as we now insist on proper declarations for both
56479 before using mbrtowc.
56481 2001-02-17 Jim Meyering <meyering@lucent.com>
56483 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
56484 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
56485 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
56488 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
56489 rather than AC_CACHE_VAL.
56491 2001-02-17 Jim Meyering <meyering@lucent.com>
56493 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
56494 around included file name.
56496 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
56498 * lib/strftime.c: Update from GNU libc (the only changes were to
56501 2001-02-17 Jim Meyering <meyering@lucent.com>
56503 * lib/regex.c: Update from libc.
56505 2001-02-17 Bruno Haible <haible@clisp.cons.org>
56507 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
56510 2001-02-16 Paul Eggert <eggert@twinsun.com>
56512 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
56513 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
56514 Reported by Mark Hounschell via Paul Eggert.
56516 2001-02-07 Jim Meyering <meyering@lucent.com>
56518 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
56520 2001-02-05 Jim Meyering <meyering@lucent.com>
56522 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
56523 it includes the patch required for `large file' support with at least
56524 HP-UX's 10.20 /bin/cc.
56526 2001-02-03 Jim Meyering <meyering@lucent.com>
56528 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
56529 AS_IF, now that it works once again (mysteriously).
56530 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
56532 2001-01-30 Jim Meyering <meyering@lucent.com>
56534 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
56535 * m4/chown.m4: Rename conftestchown to conftest.chown.
56536 * m4/rename.m4: s/conftestdir/conftest.d1/ and
56537 s/conftestdir2/conftest.d2/.
56538 * m4/utimes.m4: s/conftestdata/conftest.data/
56539 Inspired by Pavel Roskin's change in autoconf.
56541 2001-01-30 Bruno Haible <haible@clisp.cons.org>
56543 * lib/config.charset: Update for FreeBSD 4.2.
56545 2001-01-27 Jim Meyering <meyering@lucent.com>
56547 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
56549 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
56551 2001-01-26 Jim Meyering <meyering@lucent.com>
56553 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
56554 quotearg.c includes it.
56556 2001-01-26 Jim Meyering <meyering@lucent.com>
56558 * lib/quotearg.c: Include stddef.h.
56559 * lib/quote.c: Include stddef.h.
56560 Reported by Axel Kittenberger.
56562 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
56563 line in double quotes so that it evokes a better diagnostic.
56564 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
56565 Reported by Axel Kittenberger.
56567 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
56569 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
56570 as if it was a `charset'.
56572 2001-01-21 Bruno Haible <haible@clisp.cons.org>
56574 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
56577 2001-01-21 Bruno Haible <haible@clisp.cons.org>
56579 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
56580 to avoid a warning. Add back 'const' to inptr.
56582 2001-01-20 Jim Meyering <meyering@lucent.com>
56584 Be sure that headers are checked before used in code compiled
56585 for the type checks.
56586 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
56587 In place of that, invoke jm_CHECK_ALL_TYPES.
56588 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
56589 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
56590 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
56591 The check for ssize_t was mistakenly run before the test for unistd.h.
56593 The configure-time check for stdbool.h was missing.
56594 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
56595 (jm_PREREQ_HASH): New function.
56597 2001-01-17 Jim Meyering <meyering@lucent.com>
56599 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
56600 for autoconf-2.49c.
56601 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
56603 2001-01-16 Jim Meyering <meyering@lucent.com>
56605 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
56608 2001-01-14 Jim Meyering <meyering@lucent.com>
56610 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
56611 foo and bar. Create conftestdir/ in the script, not in the C code.
56612 Remove directories in the script, not in the C code.
56613 Remove conftestdir{,2} before trying to create the directory.
56614 Make the entire configure script fail if the mkdir fails.
56616 2001-01-14 Jim Meyering <meyering@lucent.com>
56618 * lib/rename.c: New file. From Volker Borchert.
56619 Include stdlib.h, string.h or strings.h, and xalloc.h.
56620 Use strip_trailing_slashes rather than open-coding it.
56622 2001-01-03 Paul Eggert <eggert@twinsun.com>
56624 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
56626 2001-01-03 Jim Meyering <meyering@lucent.com>
56628 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
56629 of local `inptr' to avoid warning with some system declarations of
56632 2001-01-02 Volker Borchert <bt@teknon.de>
56634 * m4/rename.m4: New file.
56635 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
56637 2001-01-01 Jim Meyering <meyering@lucent.com>
56639 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
56640 even on systems with utmpx.h. It's necessary for the declaration of
56641 utmp's ut_user member. Reported by Andreas Jaeger.
56643 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
56644 available. They are required for the declarations of getgrgid and
56646 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
56647 Reported by Andreas Jaeger.
56649 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
56651 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
56652 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
56653 so `make install' also works in VPATH builds.
56655 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
56657 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
56658 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
56659 can be used in subdirectories.
56661 2000-12-29 Paul Eggert <eggert@twinsun.com>
56663 * lib/modechange.c: Do not assume that mode_t uses the
56664 traditional octal encoding. E.g. "chmod 1 FOO" should set
56665 the other-execute bit of FOO even if S_IXOTH != 1.
56667 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
56668 WOTH, XOTH, ALLM): New macros.
56669 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
56670 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
56672 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
56673 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
56675 No need to use uintmax_t; unsigned long is long enough.
56676 Don't bother to get suffix since we don't use it.
56678 2000-12-26 Jim Meyering <meyering@lucent.com>
56680 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
56681 better with autoheader.
56683 2000-12-24 Jim Meyering <meyering@lucent.com>
56685 * lib/hash.c (is_prime): Return explicit boolean values.
56686 (hash_get_first): Return NULL to appease Irix5.6's 89.
56687 Reported by Nelson Beebe.
56689 2000-12-19 Bruno Haible <haible@clisp.cons.org>
56691 * lib/localcharset.c (locale_charset): Add support for Win32.
56693 2000-12-18 Paul Eggert <eggert@twinsun.com>
56695 * lib/physmem.h, lib/physmem.c: New files.
56697 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
56698 (noinst_HEADERS): Add physmem.h.
56700 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
56701 't' for compatibility with Solaris 8 sort.
56703 2000-12-18 Bruno Haible <haible@clisp.cons.org>
56705 * lib/config.charset: Add support for BeOS.
56707 2000-12-17 Jim Meyering <meyering@lucent.com>
56709 * m4/dos.m4 (jm_AC_DOS): New file and macro.
56710 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
56712 2000-12-16 Jim Meyering <meyering@lucent.com>
56714 This bug had a serious impact on chown: `chown N:M FILE' (for integer
56715 N and M) would have treated it like `chown N:N FILE'.
56717 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
56719 2000-12-16 Jim Meyering <meyering@lucent.com>
56721 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
56722 SHELLS_FILE to a file name that's useful on djgpp systems.
56724 (ADDITIONAL_DEFAULT_SHELLS): Define.
56725 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
56726 Based mostly on a patch from Prashant TR.
56728 2000-12-16 Bruno Haible <haible@clisp.cons.org>
56730 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
56731 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
56732 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
56734 2000-12-08 Andreas Schwab <schwab@suse.de>
56736 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
56737 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
56739 2000-12-07 Jim Meyering <meyering@lucent.com>
56741 * lib/stripslash.c (ISSLASH): Define.
56742 (strip_trailing_slashes): Use ISSLASH rather than comparing against
56746 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
56747 (dir_name_r): Declare this function as static.
56748 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
56749 manifest itself on a name containing a mix of slashes and
56751 Make this function work with names starting with a DOS-style
56752 drive letter and colon prefix.
56753 (dir_name): Append `.' if necessary.
56754 Based mostly on patches from Prashant TR and Eli Zaretskii.
56756 * lib/dirname.h (dir_name_r): Remove prototype.
56758 2000-12-06 Paul Eggert <eggert@twinsun.com>
56760 * m4/off_t-format.m4: Remove this file.
56761 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
56763 2000-12-06 Jim Meyering <meyering@lucent.com>
56765 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
56766 replacement strtoull, we may well need the replacement strtoul, too.
56767 Check for declarations of strtoul and strtoull.
56768 Check for strtol. Mainly as a cue to cause automake to include
56769 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
56770 Check for limits.h -- strtol.c needs it.
56772 2000-12-05 Jim Meyering <meyering@lucent.com>
56774 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
56776 2000-12-04 Jim Meyering <meyering@lucent.com>
56778 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
56779 Also include memory.h, stdlib.h, unistd.h if appropriate.
56780 Reported by Andreas Jaeger (conflicting declaration of malloc).
56782 2000-12-02 Jim Meyering <meyering@lucent.com>
56784 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
56785 * m4/jm-macros.m4 (jm_MACROS): require it.
56787 2000-12-02 Jim Meyering <meyering@lucent.com>
56789 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
56791 2000-12-01 Paul Eggert <eggert@twinsun.com>
56793 * lib/memrchr.c: Include <config.h> before any system include file.
56795 2000-11-30 Jim Meyering <meyering@lucent.com>
56797 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
56799 2000-11-30 Jim Meyering <meyering@lucent.com>
56801 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
56803 2000-11-29 Paul Eggert <eggert@twinsun.com>
56805 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
56807 2000-11-26 Jim Meyering <meyering@lucent.com>
56809 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
56811 2000-11-22 Paul Eggert <eggert@twinsun.com>
56813 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
56814 size of (size_t) -1; it's not portable.
56816 2000-11-17 Jim Meyering <meyering@lucent.com>
56818 * lib/strstr.c: Update from GNU libc.
56820 2000-11-17 Akim Demaille <akim@epita.fr>
56822 * lib/obstack.h: Formatting changes.
56823 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
56824 prevent type checking.
56825 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
56826 cast the value to (void *): assigning a `foo *' to a `void *'
56828 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
56830 2000-11-16 Jim Meyering <meyering@lucent.com>
56832 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
56834 2000-11-11 Jim Meyering <meyering@lucent.com>
56836 * lib/error.c: Add a couple #includes, merging from GNU libc version.
56838 2000-11-10 Jim Meyering <meyering@lucent.com>
56840 * lib/obstack.h: Update from GNU libc.
56841 * lib/obstack.c: Likewise.
56843 2000-11-08 Bruno Haible <haible@clisp.cons.org>
56845 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
56847 2000-11-06 Paul Eggert <eggert@twinsun.com>
56849 * lib/getusershell.c (setusershell): Use rewind rather than
56850 fseek/fseeko, to avoid configuration hassles with fseeko.
56851 Don't bother opening SHELLS_FILE if shellstream is NULL;
56852 it's not necessary.
56854 2000-11-05 Jim Meyering <meyering@lucent.com>
56856 * lib/makepath.h (make_dir): Declare.
56857 * lib/makepath.c (make_dir): Remove `static' attribute.
56860 2000-11-04 Jim Meyering <meyering@lucent.com>
56862 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
56864 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
56866 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
56867 last one in a bucket, advance to the next bucket.
56869 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
56871 * lib/fnmatch.c: Do not comment out all the code if we are using
56872 the GNU C library, because in some cases we are replacing buggy
56873 code in the GNU C library itself.
56875 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
56877 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
56878 (regex_compile): Catch bogus \(\1\).
56880 2000-10-30 Paul Eggert <eggert@twinsun.com>
56882 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
56883 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
56884 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
56886 2000-10-30 Paul Eggert <eggert@twinsun.com>
56888 * lib/error.h, getline.h, modechange.h:
56889 Remove "2000" from Copyright line, as the file hasn't been
56890 changed this year other than in the copyright notice.
56892 * lib/xalloc.h: Add "2000" to Copyright line, as this file
56893 was changed this year.
56895 2000-10-29 Jim Meyering <meyering@lucent.com>
56897 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
56899 * m4/ls-mntd-fs.m4: Likewise
56901 2000-10-29 Jim Meyering <meyering@lucent.com>
56903 * lib/xstat.in: Fix grammar in comment.
56905 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
56907 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
56908 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
56909 doesn't define __restrict_arr.
56911 2000-10-28 Jim Meyering <meyering@lucent.com>
56913 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
56914 (jm_PREREQ_MEMCHR): New function.
56916 2000-10-28 Jim Meyering <meyering@lucent.com>
56918 * lib/memchr.c: Update from libc.
56919 Adjust for portability:
56920 [HAVE_STDLIB_H]: Include stdlib.h.
56921 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
56922 Undef __memchr, too.
56923 [!weak_alias]: Define __memchr to memchr.
56925 * lib/regex.c: Update from libc.
56926 * lib/regex.h: Likewise.
56927 * lib/getopt1.c: Likewise.
56928 * lib/memcmp.c: Likewise.
56930 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
56931 Avoid using fseek, when possible -- it's broken by design.
56932 Patch by Ulrich Drepper.
56934 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
56936 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
56937 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
56938 Giving in to popular pressure to shut up the compiler with casts.
56940 2000-10-26 Jim Meyering <meyering@lucent.com>
56942 * lib/strftime.c: Update from libc.
56944 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
56946 * regex.c: More `unsigned char' -> `re_char' changes.
56947 Also change several `int' into `re_wchar_t'.
56948 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
56949 (PUSH_FAILURE_POINTER): Don't cast any more.
56950 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
56951 We want GCC to complain, since this piece of code makes
56952 re_match non-reentrant, which *should* be fixed.
56953 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
56954 (EXTEND_BUFFER): Use RETALLOC.
56955 (SET_LIST_BIT): Don't cast.
56956 (re_wchar_t): New type.
56957 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
56958 that those two functions will always properly return.
56959 (IMMEDIATE_QUIT_CHECK): Cast to void.
56960 (analyse_first): Use recursion rather than an explicit stack.
56961 (re_compile_fastmap): Can't fail anymore.
56962 (re_search_2): Don't check re_compile_fastmap for failure.
56963 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
56964 Now also sets the new value (passed in a new argument).
56965 (re_match_2_internal): Use it.
56966 Also, use a new var `reg' of type size_t when looping through regs
56967 rather than reuse the inappropriate `mcnt'.
56969 2000-10-25 Jim Meyering <meyering@lucent.com>
56971 * lib/obstack.c: Update from libc.
56973 2000-10-24 Kenichi Handa <handa@etl.go.jp>
56975 * regex.c (regex_compile): Change the way of handling a range from
56976 a char less than 256 to a char not less than 256.
56978 2000-10-24 Andrew Innes <andrewi@gnu.org>
56980 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
56982 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
56983 so that re_search functions only quit when callers expect them to.
56985 2000-10-23 Jim Meyering <meyering@lucent.com>
56987 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
56988 wrong. That set_locale call must not have any side effects.
56991 2000-10-22 Jim Meyering <meyering@lucent.com>
56993 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
56994 [CYCLIC]: Remove now-unused definition.
56996 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
56997 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
56998 Suggestion from Ulrich Drepper.
57000 2000-10-21 Jim Meyering <meyering@lucent.com>
57002 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
57003 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
57004 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
57006 2000-10-21 Jim Meyering <meyering@lucent.com>
57008 * lib/dirname.c (memrchr): Declare if necessary.
57009 (dir_name): Remove the restriction that there be no
57010 trailing slashes. Now, this code skips past them, effectively
57012 [TEST_DIRNAME] (main): New unit tests.
57014 * lib/memrchr.c: New file from GNU libc.
57015 Undef __memrchr, too.
57016 [!weak_alias]: Define __memrchr to memrchr.
57017 Guard weak_alias use with `#ifdef weak_alias'.
57019 2000-10-21 Jim Meyering <meyering@lucent.com>
57021 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
57022 (dir_name): Use dir_name_r.
57023 * lib/dirname.h (dir_name_r): Declare it.
57025 2000-10-17 Jim Meyering <meyering@lucent.com>
57027 * lib/quote.h (PARAMS): Define and use.
57028 Reported by Akim Demaille.
57030 * lib/getopt.c: Update from libc.
57032 2000-10-16 Jim Meyering <meyering@lucent.com>
57034 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
57038 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
57040 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
57042 2000-09-25 Jim Meyering <meyering@lucent.com>
57044 * lib/md5.h (rol): Define (from GnuPG).
57046 * lib/sha.c: Give credit (GnuPG) where due.
57047 (M): Use rol rather than open-coding it.
57048 Add a FIXME comment.
57050 2000-09-21 Jim Meyering <meyering@lucent.com>
57052 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
57053 Reported by Michael Stone.
57055 2000-09-20 Jim Meyering <meyering@lucent.com>
57057 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
57058 (noinst_HEADERS): Add sha.h.
57059 Based on code from Scott G. Miller and from GnuPG.
57061 2000-09-18 Jim Meyering <meyering@lucent.com>
57063 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
57064 LIBS. Otherwise, everyone ends up linking with -lelf for some
57066 Reported by Mike Stone.
57068 2000-09-15 Jim Meyering <meyering@lucent.com>
57070 * lib/regex.c: Update from libc.
57072 2000-09-10 Jim Meyering <meyering@lucent.com>
57074 * lib/getopt.c (_getopt_internal): Update from glibc.
57076 2000-09-09 Jim Meyering <meyering@lucent.com>
57078 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
57079 think it should be used as a general replacement for isascii.
57080 * lib/fnmatch.c: Likewise.
57081 * lib/mbswidth.c: Likewise
57082 * lib/regex.c: Likewise.
57085 * lib/userspec.c: Include sys/param.h and limits.h.
57087 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
57088 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
57089 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
57090 UID, GID. Check range.
57092 2000-09-06 Jim Meyering <meyering@lucent.com>
57094 * lib/getopt.c (_getopt_internal): Update from glibc.
57096 2000-08-30 Jim Meyering <meyering@lucent.com>
57098 * lib/strftime.c: Merge in changes from GNU libc.
57100 2000-08-26 Jim Meyering <meyering@lucent.com>
57102 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
57103 * m4/fpending.m4: New file.
57105 2000-08-26 Jim Meyering <meyering@lucent.com>
57107 * lib/closeout.c: Include "__fpending.h".
57108 (close_stdout_status): Return right away if there's nothing to flush.
57110 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
57111 * lib/__fpending.c: New file.
57112 * lib/__fpending.h: New file.
57114 2000-08-20 Jim Meyering <meyering@lucent.com>
57116 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
57117 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
57118 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
57120 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
57122 Improve fileutils installation on systems where running
57123 programs (like install) can't be unlinked.
57124 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
57125 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
57127 2000-08-07 Paul Eggert <eggert@twinsun.com>
57129 Standardize on "memory exhausted" instead of "Memory exhausted"
57130 or "virtual memory exhausted".
57131 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
57132 "virtual memory exhausted".
57133 * lib/same.c (same_name): Invoke xalloc_die instead of printing
57135 * lib/userspec.c (parse_user_spec): Likewise.
57136 * lib/bumpalloc.h: comment fix
57137 * lib/same.c, userspec.c: Include xalloc.h.
57139 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
57140 not char *const and pointing to a constant array.
57141 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
57142 (xrealloc): Comment fix.
57144 * lib/userspec.c (parse_user_spec):
57145 Don't translate a message until just before returning,
57146 to avoid unnecessary translation.
57148 2000-08-07 Jim Meyering <meyering@lucent.com>
57150 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
57151 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
57152 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
57153 getgroups.c, gethostname.c, getopt.h, group-member.c,
57154 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
57155 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
57156 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
57157 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
57158 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
57159 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
57160 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
57161 yesno.c: Back out Copyright date changes for each file with no change
57162 this year. This eases coordination with other programs using the same
57163 source code modules. From Paul Eggert.
57165 2000-08-06 Paul Eggert <eggert@twinsun.com>
57167 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
57168 not char, for compatibility with glibc 2.1.3 strftime.c.
57170 2000-08-03 Greg McGary <greg@mcgary.org>
57172 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
57173 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
57174 (EXTEND_BUFFER): Use them.
57176 2000-08-01 Jim Meyering <meyering@lucent.com>
57178 * lib/dirname.c (ISSLASH): Define.
57179 (BACKSLASH_IS_PATH_SEPARATOR): Define.
57180 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
57181 both `\' and `/' may be use as path separators.
57182 Based on a patch from Prashant TR.
57184 2000-07-31 Paul Eggert <eggert@twinsun.com>
57186 * lib/quotearg.c (quotearg_n_options): Don't make the initial
57187 slot vector a constant, since it might get modified.
57189 2000-07-31 Jim Meyering <meyering@lucent.com>
57191 * lib/xmalloc.c: Use `virtual memory exhausted', not
57192 `Memory exhausted'.
57193 * lib/obstack.c (print_and_abort): Likewise.
57195 2000-07-30 Paul Eggert <eggert@twinsun.com>
57197 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
57198 buffer, so that the caller can always quote one small
57199 component of a "memory exhausted" message in slot 0.
57200 From a suggestion by Jim Meyering.
57202 2000-07-30 Jim Meyering <meyering@lucent.com>
57204 * lib/makepath.c (make_path): Quote the other instance, too.
57206 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
57207 (STATIC_BUF_SIZE): Define.
57208 (quotearg_n_options): Use only statically allocated storage when
57209 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
57210 than STATIC_BUF_SIZE.
57212 2000-07-29 Jim Meyering <meyering@lucent.com>
57214 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
57215 * lib/dirname.c (dir_name): Likewise.
57217 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
57220 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
57221 (dir_name): Assert that there are no trailing slashes.
57223 2000-07-29 Bruno Haible <haible@clisp.cons.org>
57225 * lib/mbswidth.h (mbswidth): Add a flags argument.
57226 (mbswidth): New declaration.
57227 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
57228 * lib/mbswidth.c (mbswidth): Add a flags argument.
57229 (mbsnwidth): New function.
57231 2000-07-24 Jim Meyering <meyering@lucent.com>
57233 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
57235 2000-07-23 Paul Eggert <eggert@twinsun.com>
57237 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
57239 2000-07-23 Paul Eggert <eggert@twinsun.com>
57241 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
57242 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
57243 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
57244 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
57245 invoke multibyte primitives.
57247 2000-07-23 Paul Eggert <eggert@twinsun.com>
57250 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
57251 so that mbstate_t is always defined.
57253 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
57254 be 1 in at least one GCC installation, and this configuration
57255 error is likely to be common. Ignoring MB_LEN_MAX hurts
57256 performance on hosts that have mbrtowc but have only unibyte
57257 locales, but I assume these hosts are rare.
57259 2000-07-23 Paul Eggert <eggert@twinsun.com>
57261 * lib/mbswidth.c (_XOPEN_SOURCE):
57262 Don't define; this causes problems on Solaris 7.
57263 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
57265 2000-07-23 Jim Meyering <meyering@lucent.com>
57267 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
57268 too: getgrgid, getpwuid, getuid.
57270 2000-07-23 Jim Meyering <meyering@lucent.com>
57272 * lib/basename.c (base_name): Add an assertion.
57274 2000-07-23 Bruno Haible <haible@clisp.cons.org>
57276 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
57277 shadow its mbsinit function.
57279 2000-07-17 Bruno Haible <haible@clisp.cons.org>
57281 * lib/mbswidth.h: New file.
57282 * lib/mbswidth.c: New file.
57283 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
57284 (noinst_HEADERS): Add mbswidth.h.
57286 2000-07-17 Bruno Haible <haible@clisp.cons.org>
57288 * lib/config.charset: Add support for FreeBSD. Improve support for
57291 2000-07-16 Bruno Haible <haible@clisp.cons.org>
57293 * m4/mbswidth.m4: New file.
57294 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
57296 2000-07-15 Jim Meyering <meyering@lucent.com>
57298 * lib/makepath.c: Include quote.h.
57299 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
57300 corresponding argument in a `quote (...)' call.
57301 Give better diagnostics.
57303 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
57304 (noinst_HEADERS): Add quote.h.
57306 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
57307 from tar's src/misc.c.
57308 * lib/quote.h: New file. Prototypes for same.
57310 2000-07-14 Paul Eggert <eggert@twinsun.com>
57312 From a suggestion by Bruno Haible.
57313 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
57314 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
57315 to decide whether to define the BeOS workaround macro;
57316 this adjusts to the change to AC_MBSTATE_T.
57318 2000-07-14 Jim Meyering <meyering@lucent.com>
57320 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
57321 jm_AC_TYPE_UINTMAX_T.
57323 2000-07-13 Paul Eggert <eggert@twinsun.com>
57325 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
57327 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
57328 quotearg_buffer_restyled): Add support for
57329 clocale_quoting_style. Undo previous change to
57330 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
57331 and "{RIGHT QUOTATION MARK}" msgids.
57333 2000-07-10 Paul Eggert <eggert@twinsun.com>
57335 From a suggestion by Bruno Haible.
57336 * m4/mbstate_t.m4 (AC_MBSTATE_T):
57337 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
57338 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
57339 and mbstate_t, to a single-part test that simply defines mbstate_t.
57340 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
57341 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
57343 2000-07-10 Jim Meyering <meyering@lucent.com>
57345 * m4/strerror_r.m4: Mirror the correction made in autoconf.
57347 * m4/gnu-source.m4: Output to confdefs.h directly.
57348 Suggestion from Akim Demaille.
57350 2000-07-09 Paul Eggert <eggert@twinsun.com>
57352 The old behavior of quoting `like this' doesn't look good with
57353 newer, ISO-style fonts. See:
57354 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
57356 Instead, quote "like this" by default. Let the translator
57357 tailor the locale-specific quoting behavior by providing
57358 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
57360 * lib/quotearg.c (N_): New macro.
57361 (gettext_default): New function.
57362 (quotearg_buffer_restyled): Use
57363 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
57364 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
57366 2000-07-09 Jim Meyering <meyering@lucent.com>
57368 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
57369 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
57371 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
57372 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
57374 2000-07-09 Jim Meyering <meyering@lucent.com>
57376 * lib/Most files: Update copyright dates to include 2000.
57378 2000-07-08 Jim Meyering <meyering@lucent.com>
57380 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
57382 (xgethostname): Remove now-unnecessary #ifdef.
57383 Move declaration of `err' into loop where it's used.
57385 2000-07-05 Paul Eggert <eggert@twinsun.com>
57386 and Bruno Haible <haible@clisp.cons.org>
57388 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
57389 only if the test for an object-type mbstate_t fails. This
57390 prevents us from mistakenly reporting that mbstate_t is a
57391 system object type after we "#define mbstate_t int" to work
57394 2000-07-05 Paul Eggert <eggert@twinsun.com>
57395 and Bruno Haible <haible@clisp.cons.org>
57397 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
57399 2000-07-05 Bruno Haible <haible@clisp.cons.org>
57401 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
57403 Include <ctype.h> for use of isalpha.
57405 2000-07-05 Bruno Haible <haible@clisp.cons.org>
57407 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
57408 by allocating a larger buffer. Test the gethostname return value for
57409 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
57410 returns an error and ENAMETOOLONG isn't defined.
57412 2000-07-05 Bruno Haible <haible@clisp.cons.org>
57414 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
57417 2000-07-04 Jim Meyering <meyering@lucent.com>
57419 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
57420 of the deprecated AC_CHECKING.
57422 2000-07-04 Jim Meyering <meyering@lucent.com>
57424 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
57425 Reported by Bruno Haible.
57427 2000-07-04 Jim Meyering <meyering@lucent.com>
57429 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
57430 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
57433 2000-07-03 Paul Eggert <eggert@twinsun.com>
57435 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
57436 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
57438 2000-07-03 Paul Eggert <eggert@twinsun.com>
57439 and Bruno Haible <haible@clisp.cons.org>
57441 * lib/quotearg.c (mbrtowc):
57442 Assign to *pwc, and return 1 only if result is nonzero.
57443 (iswprint): Use ISPRINT when substituting our own mbrtowc.
57445 2000-07-03 Jim Meyering <meyering@lucent.com>
57447 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
57449 2000-07-03 Jim Meyering <meyering@lucent.com>
57451 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
57452 This is necessary to get a definition of e.g., UTMP_FILE on
57456 2000-07-02 Jim Meyering <meyering@lucent.com>
57458 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
57460 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
57461 AC_LIBOBJ(function_name).
57462 * m4/chown.m4: Likewise.
57463 * m4/fnmatch.m4: Likewise.
57464 * m4/ftruncate.m4: Likewise.
57465 * m4/getgroups.m4: Likewise.
57466 * m4/getline.m4: Likewise.
57467 * m4/group-member.m4: Likewise.
57468 * m4/jm-macros.m4: Likewise.
57469 * m4/lstat.m4: Likewise.
57470 * m4/malloc.m4: Likewise.
57471 * m4/memcmp.m4: Likewise.
57472 * m4/nanosleep.m4: Likewise.
57473 * m4/putenv.m4: Likewise.
57474 * m4/realloc.m4: Likewise.
57475 * m4/regex.m4: Likewise.
57476 * m4/stat.m4: Likewise.
57477 * m4/strftime.m4: Likewise.
57479 2000-07-02 Jim Meyering <meyering@lucent.com>
57481 * lib/quotearg.c (mbstate_t): Don't define here.
57483 2000-07-02 Jim Meyering <meyering@lucent.com>
57485 * lib/nanosleep.c (SIGCONT): Define if not already defined.
57487 2000-07-01 Jim Meyering <meyering@lucent.com>
57489 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
57491 2000-07-01 Jim Meyering <meyering@lucent.com>
57493 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
57496 2000-07-01 Bruno Haible <haible@clisp.cons.org>
57498 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
57499 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
57501 2000-07-01 Bruno Haible <haible@clisp.cons.org>
57503 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
57504 per change in ../m4/ls-mntd-fs.m4.
57505 (read_filesystem_list): Ignore symbolic links.
57507 2000-06-29 Jim Meyering <meyering@lucent.com>
57509 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
57510 for declaration of strcmp.
57512 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
57514 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
57515 Avoid warning by casting result to `char *' to remove `const'.
57517 2000-06-28 Jim Meyering <meyering@lucent.com>
57519 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
57520 included by quotearg.c, for which we perform this test. From
57523 2000-06-27 Bruno Haible <haible@clisp.cons.org>
57525 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
57526 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
57527 <utmpx.h> exists, put readutmp.o into LIBOBJS.
57529 2000-06-27 Bruno Haible <haible@clisp.cons.org>
57531 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
57533 2000-06-26 Paul Eggert <eggert@twinsun.com>
57535 savedir now sets errno on failure and invokes xmalloc to get memory.
57536 Fix a couple of other minor bugs while we're at it.
57538 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
57539 (NAMLEN): Remove macro.
57540 (malloc, realloc): Remove decls.
57541 (stpcpy): Likewise.
57542 ("xalloc.h"): Include.
57543 (NAME_SIZE_DEFAULT): New macro.
57544 (savedir): Use xmalloc / xrealloc to allocate memory.
57545 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
57546 Skip "" directory entries.
57547 Use strlen to calculate directory entry length, since the old method
57548 is rarely used these days and isn't worth supporting.
57549 Don't use a pointer after freeing it.
57550 Check for integer overflow when calculating allocation size.
57551 Use memcpy to copy entries, instead of stpcpy.
57552 Set errno properly when returning NULL.
57553 Check for readdir error.
57555 2000-06-26 Jim Meyering <meyering@lucent.com>
57557 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
57559 2000-06-25 Jim Meyering <meyering@lucent.com>
57561 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
57562 Linux header bug when _XOPEN_SOURCE is defined to 500.
57564 2000-06-25 Bruno Haible <haible@clisp.cons.org>
57566 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
57569 2000-06-25 Bruno Haible <haible@clisp.cons.org>
57571 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
57573 Don't include <stdlib.h>. Don't declare malloc, realloc.
57575 2000-06-24 Jim Meyering <meyering@lucent.com>
57577 * m4/strerror_r.m4: Revive this file -- to try out an experimental
57578 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
57579 for which strerror does return char*, but which lacks a conveniently
57580 accessible declaration of the function. If the compile-test says
57581 strerror_r doesn't work, then resort to a `run'-test that works on
57582 BeOS and segfaults on DEC Unix.
57584 2000-06-24 Jim Meyering <meyering@lucent.com>
57586 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
57588 2000-06-23 Paul Eggert <eggert@twinsun.com>
57590 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
57591 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
57593 2000-06-23 Paul Eggert <eggert@twinsun.com>
57595 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
57596 (mbrtowc, mbstate_t): Define substitutes if
57597 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
57598 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
57599 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
57601 2000-06-23 Jim Meyering <meyering@lucent.com>
57603 * m4/afs.m4: Add missing AC_MSG_RESULT.
57604 Reported by Bruno Haible.
57606 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
57607 Suggestion from Bruno Haible.
57609 2000-06-23 Jim Meyering <meyering@lucent.com>
57611 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
57613 2000-06-21 Jim Meyering <meyering@lucent.com>
57615 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
57617 2000-06-21 Jim Meyering <meyering@lucent.com>
57619 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
57620 (noinst_HEADERS): Add getstr.h.
57622 * lib/getline.c (getstr): Move into a separate file.
57623 * lib/getstr.c (getstr): New file, extracted from getline.c, with
57624 the following changes: new parameter, delim2; both delim[12]
57625 parameters have type `int', not `char'. The latter would lose
57626 with 8-bit delimiters.
57627 * lib/getstr.h: New file.
57629 2000-06-21 Bruno Haible <haible@clisp.cons.org>
57631 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
57632 than 1024, return a memory chunk of least possible size, instead
57633 of size PATH_MAX + 2. In the loop, increment the size proportionally.
57634 Use free/xmalloc instead of xrealloc to avoid copying for very long
57637 2000-06-21 Bruno Haible <haible@clisp.cons.org>
57639 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
57642 2000-06-21 Bruno Haible <haible@clisp.cons.org>
57644 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
57645 address, not strdup. Include <stdlib.h> and don't declare free().
57647 2000-06-19 Jim Meyering <meyering@lucent.com>
57649 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
57651 2000-06-18 Jim Meyering <meyering@lucent.com>
57653 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
57655 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
57656 `checking whether...' message to be consistent with that of the
57659 2000-06-18 Jim Meyering <meyering@lucent.com>
57661 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
57662 Besides, these days every porting target provides a mkdir function.
57664 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
57665 needed. (this snippet comes from src/system.h).
57667 2000-06-16 Bruno Haible <haible@clisp.cons.org>
57669 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
57671 2000-06-15 Paul Eggert <eggert@twinsun.com>
57673 * lib/human.c (adjust_value): New function.
57674 (human_readable_inexact): Apply rounding style even when
57675 printing approximate values.
57677 2000-06-14 Paul Eggert <eggert@twinsun.com>
57679 * lib/human.c (human_readable_inexact): Allow an input block
57680 size that is not a multiple of the output block size, and vice versa.
57681 Reported by Piergiorgio Sartor.
57683 2000-06-14 Paul Eggert <eggert@twinsun.com>
57685 * lib/getdate.y (get_date): Apply relative times after time
57686 zone indicator, not before. Reported by Todd A. Jacobs.
57688 2000-06-13 Jim Meyering <meyering@lucent.com>
57690 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
57692 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
57694 2000-06-12 Paul Eggert <eggert@twinsun.com>
57696 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
57698 2000-06-12 Jim Meyering <meyering@lucent.com>
57700 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
57701 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
57703 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
57704 the optional argument, `lib'.
57706 2000-06-08 Jim Meyering <meyering@lucent.com>
57708 * m4/largefile.m4: Remove file (now that it's part of autoconf).
57710 2000-06-04 Paul Eggert <eggert@twinsun.com>
57712 Rewrite largefile configuration so that we don't need to run
57713 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
57714 AC_CANONICAL_HOST in configure.in -- jmm]
57716 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
57717 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
57718 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
57719 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
57720 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
57722 Instead of inspecting the output of getconf, try to compile the
57723 test program without and with the macro definition.
57724 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
57725 for getconf. Instead, check for the needed flags by compiling
57728 2000-06-04 Paul Eggert <eggert@twinsun.com>
57730 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
57732 2000-06-04 Jim Meyering <meyering@lucent.com>
57734 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
57735 SunOS 4.1.4 for which gid_t is an unsigned type.
57737 2000-06-03 Jim Meyering <meyering@lucent.com>
57739 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
57740 now that autoconf requires that.
57742 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
57743 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
57744 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
57746 2000-06-03 Jim Meyering <meyering@lucent.com>
57748 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
57750 2000-06-03 Bruno Haible <haible@clisp.cons.org>
57752 * m4/glibc21.m4: New file.
57753 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
57755 2000-06-03 Bruno Haible <haible@clisp.cons.org>
57757 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
57758 newer, don't install charset.alias.
57759 * lib/config.charset: Change the Linux/glibc rules so they become empty
57760 on glibc-2.1 or newer.
57762 2000-06-02 Jim Meyering <meyering@lucent.com>
57764 * lib/mountlist.c: Back out last change. Instead, do this...
57765 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
57766 me_dummy member using the same `ignore'-testing code.
57767 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
57771 2000-05-29 Jim Meyering <meyering@lucent.com>
57773 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
57774 mounts with the `ignore' attribute. Based on a patch from
57777 2000-05-28 Jim Meyering <meyering@lucent.com>
57779 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
57780 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57781 * m4/stat.m4: Likewise.
57782 * m4/lstat.m4: Likewise.
57783 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
57785 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
57786 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
57788 2000-05-26 Jim Meyering <meyering@lucent.com>
57790 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
57792 2000-05-24 Jim Meyering <meyering@lucent.com>
57794 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
57795 autoconf requires that.
57796 * m4/lib-check.m4: Likewise.
57797 * m4/jm-macros.m4: Likewise.
57798 * m4/strftime.m4: Likewise.
57800 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
57801 AC_CHECK_DECLS, now that autoconf requires that.
57803 2000-05-22 Jim Meyering <meyering@lucent.com>
57805 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57806 * m4/lstat.m4: Likewise.
57808 2000-05-22 Jim Meyering <meyering@lucent.com>
57810 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
57812 2000-05-20 Jim Meyering <meyering@lucent.com>
57814 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
57815 (jm_PREREQ): Use it.
57817 2000-05-18 Jim Meyering <meyering@lucent.com>
57819 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
57820 back, too, since it may have been modified by allocate_entry.
57821 (hash_delete): Rewrite to use neither the assignment operator
57822 nor the comma operator in an if-expression.
57824 2000-05-15 Paul Eggert <eggert@twinsun.com>
57827 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
57828 Remove; no longer needed.
57829 "quotearg.h": Add include.
57830 (file_name): Do not bother to explicitly initialize to NULL; it's less
57831 efficient on some hosts.
57832 (close_stdout_status): Remove test as to whether stdout was already
57833 closed; it breaks for the case "echo x | sort >&-".
57834 Quote file name colons.
57835 Do not assume that _("write error") lacks format strings.
57837 2000-05-15 Jim Meyering <meyering@lucent.com>
57839 * lib/version-etc.c (version_etc_copyright): Update the copyright
57840 string used in all --version output.
57842 2000-05-14 Jim Meyering <meyering@lucent.com>
57844 * lib/closeout.c (close_stdout_set_file_name): New function.
57845 (close_stdout_status): Use new file-scoped global.
57846 Return right away if fstat says the stdout file descriptor is invalid.
57847 * lib/closeout.h (close_stdout_set_file_name): Declare.
57849 2000-05-10 Jim Meyering <meyering@lucent.com>
57851 * lib/closeout.c [default_exit_status]: New file-scoped variable.
57852 (close_stdout_set_status): New function.
57853 * lib/closeout.h (close_stdout_set_status): Declare.
57855 2000-05-09 Jim Meyering <meyering@lucent.com>
57857 * m4/gettext.m4: Rename this...
57858 * m4/libintl.m4: ...to this.
57860 2000-05-08 Jim Meyering <meyering@lucent.com>
57862 * lib/long-options.c: Don't include closeout.h.
57863 (parse_long_options): Don't call close_stdout for --version.
57865 2000-05-06 Paul Eggert <eggert@twinsun.com>
57867 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
57868 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
57869 2.1.3 bug. This avoids a clash when files like regex.c define
57872 2000-05-06 Jim Meyering <meyering@lucent.com>
57874 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
57875 (AC_REPLACE_FUNCS): Add strnlen.
57877 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
57878 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
57880 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
57881 AC_SEARCH_LIBS call for nanosleep.
57882 (LIB_NANOSLEEP): Set and AC_SUBST.
57884 2000-05-06 Jim Meyering <meyering@lucent.com>
57886 * lib/strnlen.c: Undefine __strnlen and strnlen.
57887 [!weak_alias]: Define __strnlen to strnlen.
57889 * lib/atexit.c: New file, from libiberty.
57891 2000-05-06 Jim Meyering <meyering@lucent.com>
57893 * lib/closeout.c (close_stdout_status): Also check for errors on the
57896 2000-05-05 Jim Meyering <meyering@lucent.com>
57898 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
57899 AC_SEARCH_LIBS call for clock_gettime.
57900 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
57902 * m4/search-libs.m4: Update from autoconf.
57904 su doesn't work on Solaris 2.6.
57905 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
57906 <shadow.h>. Reported by Dragos Harabor.
57908 2000-05-05 Bruno Haible <haible@clisp.cons.org>
57910 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
57911 memcpy instead of xmalloc, xrealloc, path_concat.
57912 (locale_charset): Treat empty environment variables as absent.
57913 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
57915 2000-05-04 Jim Meyering <meyering@lucent.com>
57917 * lib/getopt.c: Update from glibc.
57918 * lib/obstack.c: Likewise.
57919 * lib/obstack.h: Likewise.
57920 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
57923 * lib/regex.h: Likewise.
57924 * lib/strndup.c: Likewise.
57925 * lib/strnlen.c: New file, from glibc.
57927 2000-05-03 Jim Meyering <meyering@lucent.com>
57929 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
57931 2000-05-02 Paul Eggert <eggert@twinsun.com>
57933 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
57934 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
57935 compile-time test, rather than inspecting host and OS, to
57936 decide whether to define _LARGEFILE_SOURCE.
57938 2000-05-01 Jim Meyering <meyering@lucent.com>
57940 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
57942 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
57943 Based on a patch from Bruno Haible.
57945 2000-05-01 Jim Meyering <meyering@lucent.com>
57947 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
57949 2000-04-29 Jim Meyering <meyering@lucent.com>
57951 * lib/path-concat.c: Declare strdup only if it's not defined.
57952 * lib/canon-host.c: Likewise.
57954 2000-04-28 Jim Meyering <meyering@lucent.com>
57956 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
57957 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
57958 is included first, then limits.h is included by locale.h by libintl.h.
57959 From John David Anglin.
57961 2000-04-25 Jim Meyering <meyering@lucent.com>
57963 * lib/makepath.c (S_IRWXUGO): Define.
57964 (make_path): Always perform explicit chmod if MODE specifies any
57965 of the `special' permission bits. Prompted by a bug report against
57966 install from Mate Wierdl and Joost van Baal.
57968 2000-04-18 Jim Meyering <meyering@lucent.com>
57970 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
57971 (jm_PREREQ): Use it.
57973 2000-04-18 Jim Meyering <meyering@lucent.com>
57975 * lib/README: New file.
57977 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
57978 getpagesize. For BeOS. Based on a patch from Bruno Haible.
57980 2000-04-17 Jim Meyering <meyering@lucent.com>
57983 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
57984 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
57985 Suggestion from Akim Demaille.
57987 2000-04-17 Jim Meyering <meyering@lucent.com>
57989 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
57990 the definition of it to rpl_strftime also defined-away the system's
57993 2000-04-15 Jim Meyering <meyering@lucent.com>
57995 Use `C' to denote so-called `contiguous' files, the same way
57997 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
57998 (ftypelet): Use S_ISCTG.
57999 From Michael Deutschmann.
58001 2000-04-14 Jim Meyering <meyering@lucent.com>
58003 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
58004 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
58007 2000-04-14 Jim Meyering <meyering@lucent.com>
58009 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
58011 2000-04-13 Jim Meyering <meyering@lucent.com>
58013 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
58014 AH_VERBATIM to insert required #ifndef into config.h.in.
58015 Suggestion from Akim Demaille.
58017 2000-04-12 Jim Meyering <meyering@lucent.com>
58019 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
58020 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
58021 Christian Krackowizer.
58023 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
58024 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
58025 (AC_SYS_LARGEFILE): Require.
58026 (AM_C_PROTOTYPES): Require.
58028 2000-04-08 Jim Meyering <meyering@lucent.com>
58030 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
58031 names don't conflict. Reported by Eli Zaretskii.
58033 2000-04-07 Jim Meyering <meyering@lucent.com>
58035 * lib/putenv.c: Move inclusion of errno.h so it follows that of
58036 sys/types.h, to work around system header problems on AIX 3.2.5.
58039 2000-04-07 Bruno Haible <haible@clisp.cons.org>
58041 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
58042 bug. Deal with the different error behavior of Irix iconv.
58044 2000-04-05 Paul Eggert <eggert@twinsun.com>
58046 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
58047 IRIX if the installer said otherwise.
58049 2000-04-05 Jim Meyering <meyering@lucent.com>
58051 Portability tweaks required for ultrix4.3.
58052 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
58053 (jm_CHECK_DECLS): Add getutent to the list of functions.
58054 (_jm_DECL_HEADERS): Add utmpx.h.
58055 From John David Anglin.
58057 * m4/strftime.m4: Back out the 2000-04-02 change.
58058 Instead of that change, simply undefine putenv in the test program.
58060 2000-04-05 Jim Meyering <meyering@lucent.com>
58062 Portability tweaks required for ultrix4.3.
58063 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
58065 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
58066 * lib/canon-host.c: Declare strdup.
58067 * lib/path-concat.c: Likewise.
58068 From John David Anglin.
58070 2000-04-04 Jim Meyering <meyering@lucent.com>
58072 Be more DOS 8.3-friendly.
58073 * lib/ref-add.sin: Renamed from ref-add.sed.in.
58074 * lib/ref-del.sin: Renamed from ref-del.sed.in.
58075 * lib/Makefile.am: Reflect renaming.
58076 Reported by Eli Zaretskii.
58078 Use a temporary file name that won't clash with `charset.alias'
58079 in the DOS 8.3 name space.
58080 * lib/Makefile.am (charset_tmp): Define.
58081 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
58082 (uninstall-local): Likewise.
58083 Reported by Eli Zaretskii.
58085 2000-04-03 Jim Meyering <meyering@lucent.com>
58087 * m4/gettext.m4: Fix typo in comment.
58089 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
58090 textutils/configure.in). Suggestion from Paul Eggert.
58091 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
58093 2000-04-02 Paul Eggert <eggert@twinsun.com>
58095 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
58096 variable in the shell rather than using putenv, which isn't
58097 portable. This avoids the configure-time inter-test dependency
58098 on the potentially-renamed putenv function.
58100 2000-03-30 Paul Eggert <eggert@twinsun.com>
58102 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
58103 before checking struct stat.st_blksize, so that
58104 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
58106 2000-03-29 Paul Eggert <eggert@twinsun.com>
58108 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
58109 since strftime.c uses HAVE_STRFTIME to decide whether to use
58110 the underlying strftime.
58112 2000-03-29 Paul Eggert <eggert@twinsun.com>
58114 * lib/time/strftime.c (my_strftime): Make sure we call the system
58115 strftime, not ourselves, when invoking the underlying strftime.
58117 2000-03-24 Jim Meyering <meyering@lucent.com>
58119 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
58120 (charset_alias): Define.
58121 (install-exec-local): Factor out common code.
58122 (uninstall-local): Split lines longer than 80.
58123 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
58124 (SUFFIXES): Define.
58125 (.sed.in.sed): New rule. Don't redirect directly to $@.
58126 (CLEANFILES): Add ref-add.sed and ref-del.sed.
58128 2000-03-19 Bruno Haible <haible@clisp.cons.org>
58130 * lib/config.charset: Output a line containing "Packages using this
58132 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
58133 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
58134 ref-del.sed): New rules.
58136 2000-03-17 Jim Meyering <meyering@lucent.com>
58138 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
58139 Otherwise, include <strings.h>
58141 2000-03-17 Bruno Haible <haible@clisp.cons.org>
58143 * lib/unicodeio.c (utf8_wctomb): New function.
58144 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
58145 format instead of in UCS-4 with platform dependent endianness.
58147 2000-03-10 Jim Meyering <meyering@lucent.com>
58149 * m4/lib-check.m4: Look for getspnam in -lgen, too.
58150 From Marco Franzen.
58152 2000-03-07 Paul Eggert <eggert@twinsun.com>
58154 * lib/savedir.c (savedir): Work even if directory size is
58155 negative; this can happen with some screwy NFS configurations.
58157 2000-03-06 Jim Meyering <meyering@lucent.com>
58159 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
58160 if it's NULL (because we ran out of memory). From Bruno Haible.
58162 2000-03-05 Jim Meyering <meyering@lucent.com>
58164 * lib/localcharset.c ("path-concat.h"): Include.
58165 (get_charset_aliases): Use path_concat instead of ANSI string
58168 * lib/unicodeio.h (PARAMS): Define.
58169 Use it to guard prototype.
58171 2000-03-04 Jim Meyering <meyering@lucent.com>
58173 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
58174 for lib/localcharset.c.
58176 2000-03-04 Jim Meyering <meyering@lucent.com>
58178 * lib/Makefile.am (install-exec-local): Create $(libdir) before
58179 installing into it.
58180 (uninstall-local): Uncomment this rule so `make distcheck' works
58183 * lib/unicodeio.c (<errno.h>): Include it.
58184 (errno): Declare if not defined.
58186 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
58188 * lib/config.charset: New version, incorporating remarks from a linux
58189 i18n mailing list. From Bruno Haible.
58191 2000-03-04 Bruno Haible <haible@clisp.cons.org>
58193 * m4/codeset.m4: New file.
58194 * m4/iconv.m4: New file.
58195 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
58197 2000-03-03 Jim Meyering <meyering@lucent.com>
58199 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
58201 2000-03-02 Jim Meyering <meyering@lucent.com>
58203 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
58204 the messages come out on separate lines.
58206 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
58207 rather than jm_CHECK_DECLARATIONS.
58208 * m4/decl.m4: Remove now-unused file.
58210 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
58213 2000-03-02 Jim Meyering <meyering@lucent.com>
58215 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
58217 2000-03-01 Jim Meyering <meyering@lucent.com>
58219 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
58220 * lib/unicodeio.c: Likewise.
58222 2000-03-01 Bruno Haible <haible@clisp.cons.org>
58224 * lib/config.charset: New file.
58225 * lib/localcharset.c: New file.
58226 * lib/unicodeio.h, lib/unicodeio.c: New files.
58227 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
58228 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
58229 (noinst_HEADERS): Add unicodeio.h.
58230 (all-local, install-exec-local, charset.alias): New targets.
58232 2000-02-28 Paul Eggert <eggert@twinsun.com>
58234 * lib/quotearg.c (ALERT_CHAR): New macro.
58235 (quotearg_buffer_restyled): Use it.
58237 2000-02-27 Jim Meyering <meyering@lucent.com>
58239 * m4/check-decl.m4: Add getenv to the list.
58241 2000-02-27 Jim Meyering <meyering@lucent.com>
58243 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
58244 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
58246 * lib/backupfile.c: Guard inclusion of stdlib.h with
58247 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
58248 Declare malloc if needed.
58250 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
58251 `#ifndef HAVE_DECL..'
58252 now that autoconf always defines the HAVE_DECL_ symbols.
58253 * lib/human.c: Likewise.
58254 * lib/same.c: Likewise.
58255 * lib/strtoumax.c: Likewise.
58257 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
58258 declaration check was not run.
58259 * lib/hash.c: Likewise.
58260 * lib/human.c: Likewise.
58261 * lib/same.c: Likewise.
58262 * lib/strtoumax.c: Likewise.
58264 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
58265 `.', then first look up the entire `.'-containing string as a login
58268 2000-02-23 Jim Meyering <meyering@lucent.com>
58270 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
58271 in place of my hack.
58273 2000-02-18 Paul Eggert <eggert@twinsun.com>
58275 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
58276 (textint): New typedef.
58277 (parser_control): Member year changed from int to textint.
58279 (YYSTYPE): Removed; replaced by %union with int and textint members.
58280 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
58281 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
58282 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
58283 (tSNUMBER, tUNUMBER): Now of type <textintval>.
58284 (date, number, to_year): Use width of number in digits, not its value,
58285 to determine whether it's a 2-digit year, or a 2-digit time.
58286 (yylex): Store number of digits of numeric tokens.
58287 Reported by John Kendall.
58289 (parser_control): Changed from struct parser_control to typedef (for
58290 consistency). All uses changed.
58292 (tID): Removed; not used.
58293 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
58295 2000-02-14 Paul Eggert <eggert@twinsun.com>
58297 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
58298 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
58300 2000-02-12 Jim Meyering <meyering@lucent.com>
58302 * lib/userspec.c (ISDIGIT): Define it.
58303 (isdigit): Remove definition.
58304 (is_number): Use ISDIGIT, not isdigit.
58305 <libintl.h>: Include.
58306 (_ and N_): Define.
58307 (parse_user_spec): Mark translatable strings.
58309 2000-02-10 Jim Meyering <meyering@lucent.com>
58311 With these changes, nanosleep.[ch] are finally enough like the other
58312 lib/* replacement files to compile on a few more losing systems.
58314 * lib/nanosleep.h: Don't include config.h.
58315 Remove prototype from declaration of nanosleep.
58316 (PARAMS): Remove now-unneeded definition.
58317 * lib/nanosleep.c: #undef nanosleep.
58318 (rpl_nanosleep): Rename from nanosleep.
58320 2000-02-10 Jim Meyering <meyering@lucent.com>
58322 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
58323 gnu_nanosleep to rpl_nanosleep.
58325 2000-02-09 Jim Meyering <meyering@lucent.com>
58327 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
58328 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
58330 2000-02-08 Akim Demaille <akim@epita.fr>
58332 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
58333 `[' and `]' and remove uses of `changequote'.
58334 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
58335 (AC_SYS_LARGEFILE): Likewise.
58336 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
58337 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
58339 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
58340 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
58341 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
58342 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
58344 2000-02-05 Jim Meyering <meyering@lucent.com>
58346 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
58347 Remove explicit use of AC_HEADER_TIME. It is required by
58348 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
58349 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
58350 in autoconf whereby the expansion of the latter ended up preceding
58351 the expansion of its prerequisite, AC_HEADER_TIME.
58352 Reported by Volker Borchert.
58354 2000-02-03 Jim Meyering <meyering@lucent.com>
58356 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
58358 2000-02-03 Jim Meyering <meyering@lucent.com>
58360 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
58361 rather than with `#if HAVE_UTMPNAME'.
58363 2000-02-02 Jim Meyering <meyering@lucent.com>
58365 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
58366 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
58367 Reported by Eli Zaretskii.
58369 2000-02-01 Jim Meyering <meyering@lucent.com>
58371 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
58373 2000-01-31 Jim Meyering <meyering@lucent.com>
58375 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
58376 functions. Add the time.h and sys/time.h headers along with the
58377 AC_REQUIRE'ment of AC_HEADER_TIME.
58379 2000-01-31 Jim Meyering <meyering@lucent.com>
58381 * lib/nanosleep.h (nanosleep): Guard declaration with
58382 `#if ! HAVE_DECL_NANOSLEEP'.
58383 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
58384 the declaration in that vendor's sys/timers.h.
58385 Reported by Christian Krackowizer.
58387 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
58388 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
58389 (ISPRINT): Likewise.
58390 Reported by Tom Tromey.
58392 2000-01-30 Jim Meyering <meyering@lucent.com>
58394 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
58396 * m4/prereq.m4 (utmp_includes): Define.
58397 Check for ut_user and ut_name members in both struct utmpx
58400 2000-01-30 Jim Meyering <meyering@lucent.com>
58402 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
58403 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
58404 header files where only utmpx.ut_user is declared.
58406 * lib/readutmp.h (UT_USER): Define.
58408 2000-01-29 Jim Meyering <meyering@lucent.com>
58410 * m4/lib-check.m4: New file containing library-related checks from
58411 fileutils and sh-utils (textutils had none).
58413 2000-01-28 Jim Meyering <meyering@lucent.com>
58415 * m4/perl.m4: Change format of warning message to look more like that
58416 from the missing script. Suggestion from François Pinard.
58418 2000-01-25 Jim Meyering <meyering@lucent.com>
58420 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
58421 well as time.h in the compile check.
58422 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
58423 Fix typo in cross-compiling case: s/yes/no/.
58425 2000-01-23 Jim Meyering <meyering@lucent.com>
58427 * m4/jm-macros.m4: Move df-related tests here from
58428 fileutils/configure.in
58430 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
58431 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
58433 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
58434 s/space/ac_fsusage_space/.
58435 (jm_FILE_SYSTEM_USAGE): Take two parameters.
58437 * m4/ftruncate.m4: New file (derived from part of
58438 fileutils/configure.in).
58439 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
58440 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
58442 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
58443 AC_SUBST these here, rather than just in sh-util/configure.in, so
58444 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
58446 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
58447 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
58448 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
58449 (AC_SUBST(POW_LIBM)): Likewise.
58450 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
58452 2000-01-23 Jim Meyering <meyering@lucent.com>
58454 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
58457 2000-01-22 Jim Meyering <meyering@lucent.com>
58459 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
58461 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
58463 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
58465 (AC_CHECK_HEADERS): Likewise for sh-utils.
58466 (AC_CHECK_HEADERS): Likewise for textutils.
58467 Merge the three lists of headers.
58469 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
58470 from fileutils' configure.in.
58472 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
58473 code. Moved tests into their own function (_jm_DECL_HEADERS) in
58476 * m4/check-decl.m4: Use #if rather than #ifdef.
58477 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
58478 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
58479 (_jm_DECL_HEADERS): Define new function.
58480 (jm_CHECK_DECLARATIONS): Require it.
58482 2000-01-22 Jim Meyering <meyering@lucent.com>
58484 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
58485 [! HAVE_DECL_STRTOULL]: Declare strtoull.
58486 Required for some AIX systems. Reported by Christian Krackowizer.
58487 [TESTING] (main): New function.
58489 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
58490 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
58493 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
58496 * lib/strverscmp.c (ISDIGIT): Define.
58497 (strverscmp): Use ISDIGIT, not isdigit.
58499 2000-01-19 Jim Meyering <meyering@lucent.com>
58501 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
58502 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
58503 defines `struct timespec' in <sys/time.h>
58505 * m4/c-bs-a.m4: Remove uses of changequote altogether.
58506 Thanks to Akim for explaining.
58508 2000-01-17 Paul Eggert <eggert@twinsun.com>
58510 * lib/nanosleep.c (nanosleep):
58511 Don't use SA_INTERRUPT to decide whether to call sigaction, as
58512 POSIX.1 doesn't require SA_INTERRUPT and some systems
58513 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
58514 it's been part of POSIX.1 since day 1 (in 1988).
58516 2000-01-17 Jim Meyering <meyering@lucent.com>
58518 * lib/interlock: Remove unused file. Reported by François Pinard.
58520 2000-01-16 Paul Eggert <eggert@twinsun.com>
58522 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
58523 alert, backslash, formfeed, and vertical tab unnecessarily in
58524 shell quoting style.
58526 2000-01-16 Jim Meyering <meyering@lucent.com>
58528 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
58529 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
58530 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
58531 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
58533 2000-01-16 Jim Meyering <meyering@lucent.com>
58535 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
58536 because the latter didn't work.
58538 2000-01-15 Jim Meyering <meyering@lucent.com>
58540 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
58541 (AC_REPLACE_FUNCS): Add memcpy and memset.
58542 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
58544 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
58546 2000-01-12 Jim Meyering <meyering@lucent.com>
58548 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
58549 (jm_PREREQ): Use it.
58550 (jm_PREREQ_READUTMP): New macro.
58551 (jm_PREREQ): Use it.
58553 2000-01-11 Paul Eggert <eggert@twinsun.com>
58555 Quote multibyte characters correctly.
58556 * m4/c-bs-a.m4: New file.
58557 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
58558 (jm_PREREQ): Use it.
58560 2000-01-11 Paul Eggert <eggert@twinsun.com>
58562 * m4/uintmax_t.m4: Port to autoconf 2.13.
58564 2000-01-08 Jim Meyering <meyering@ascend.com>
58566 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
58567 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
58569 2000-01-04 Jim Meyering <meyering@ascend.com>
58571 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
58572 jm_STRUCT_DIRENT_D_TYPE.
58573 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
58574 jm_STRUCT_DIRENT_D_INO.
58575 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
58577 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
58579 * m4/utime.m4: Likewise.
58581 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
58582 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
58584 2000-01-03 Paul Eggert <eggert@twinsun.com>
58586 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
58587 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
58589 2000-01-02 Jim Meyering <meyering@ascend.com>
58591 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
58592 remember if this is necessary.
58594 1999-12-26 Jim Meyering <meyering@ascend.com>
58596 * m4/jm-macros.m4: Use it here.
58597 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
58599 1999-12-23 Jim Meyering <meyering@ascend.com>
58601 * m4/jm-macros.m4: Check for clock_gettime (moved from
58602 fileutils/configure.in)
58603 Check for gettimeofday.
58605 1999-12-20 Jim Meyering <meyering@ascend.com>
58607 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
58608 autoconf-2.14a-1999-12-20.
58610 1999-12-19 Jim Meyering <meyering@ascend.com>
58612 * m4/lstat-slash.m4: New file.
58613 * m4/jm-macros.m4: Use the new macro:
58614 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58616 1999-12-07 Jim Meyering <meyering@ascend.com>
58618 * m4/perl.m4: Require that File::Compare be available, too.
58619 Too many systems seem to lack it.
58621 * m4/strftime.m4: Add checks for most of the cpp macros tested in
58622 GNU's strftime.c. Prompted by a patch from Paul Eggert.
58624 1999-11-18 Paul Eggert <eggert@twinsun.com>
58626 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
58627 problem with the QNX 4.25 shell, which doesn't propagate exit
58628 status of failed commands inside shell assignments.
58630 1999-11-17 Jim Meyering <meyering@ascend.com>
58632 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
58634 1999-11-07 Jim Meyering <meyering@ascend.com>
58636 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
58638 1999-11-06 Jim Meyering <meyering@ascend.com>
58640 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
58641 * m4/jm-macros.m4 (jm_MACROS): Use it here.
58643 1999-11-05 Jim Meyering <meyering@ascend.com>
58645 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
58646 configure.in of textutils, fileutils, and sh-utils into this one
58647 (shared between those packages) file.
58648 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
58649 AC_STRUCT_ST_BLKSIZE.
58651 1999-11-03 Jim Meyering <meyering@ascend.com>
58653 * m4/ssize_t.m4: Remove file. No longer needed since the new version
58654 of AC_CHECK_TYPE checks includes unistd.h.
58655 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
58656 Suggestion from Akim Demaille.
58658 1999-10-30 Jim Meyering <meyering@ascend.com>
58660 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
58662 * m4/ls-mntd-fs.m4: Likewise.
58663 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
58664 * m4/jm-winsz1.m4: Likewise.
58666 * m4/const.m4: Remove file, since the fix made it into the experimental
58667 version of autoconf.
58668 * m4/mktime.m4: Likewise.
58670 * m4/check-type.m4: Remove file, now that the latest version of
58671 AC_CHECK_TYPE takes a third arg to specify additional #includes.
58673 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
58674 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
58677 1999-10-04 Jim Meyering <meyering@ascend.com>
58679 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
58681 1999-09-22 Paul Eggert <eggert@twinsun.com>
58683 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
58684 2.95.1 bug with HP-UX 10.20.
58686 1999-09-17 Jim Meyering <meyering@ascend.com>
58688 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
58689 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
58690 due to missing strdup (against sh-utils-2.0).
58692 1999-08-29 Jim Meyering <meyering@ascend.com>
58694 * m4/jm-macros.m4: Require jm_BISON.
58695 * m4/bison.m4: New file.
58697 1999-08-17 Paul Eggert <eggert@twinsun.com>
58699 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
58700 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
58702 1999-08-05 Jim Meyering <meyering@ascend.com>
58704 * m4/getline.m4: Rename test file from conftestdata to conftest.data
58705 to avoid conflicts with `conftest' on 8+3 filesystems.
58706 Suggestion from Eli Zaretskii.
58708 1999-08-04 Jim Meyering <meyering@ascend.com>
58710 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
58711 fileutils and sh-utils (textutils's getline test was inadequate).
58712 (AM_FUNC_GETLINE): Run this test.
58713 (AC_CHECK_FUNCS): Check for getdelim.
58714 Reported by Bob Proulx.
58716 1999-08-02 Jim Meyering <meyering@ascend.com>
58718 * m4/jm-macros.m4: Add a comment.
58720 1999-08-01 Paul Eggert <eggert@twinsun.com>
58722 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
58723 <inttypes.h> defines strtoumax as a macro (and not as a
58726 1999-08-01 Paul Eggert <eggert@twinsun.com>
58728 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
58729 that we can shift, multiply and divide unsigned long long
58730 values; Ultrix cc can't do it.
58732 1999-08-01 Paul Eggert <eggert@twinsun.com>
58734 * m4/mktime.m4: New file, which is a preview of what should appear
58735 in the next public autoconf release.
58737 1999-08-01 Paul Eggert <eggert@twinsun.com>
58739 * m4/lfs.m4: Remove this file.
58740 * m4/largefile.m4: New file. It contains the old contents of
58741 lfs.m4, except that all names with prefix AC_LFS have been
58742 changed to use the prefix AC_SYS_LARGEFILE instead, to be
58743 compatible with future autoconf versions. Also, some minor m4
58744 quoting problems have been fixed.
58746 1999-08-01 Paul Eggert <eggert@twinsun.com>
58748 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
58749 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
58750 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
58751 and simplify the shell code.
58753 1999-08-01 Jim Meyering <meyering@ascend.com>
58755 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
58758 1999-07-20 Jim Meyering <meyering@ascend.com>
58760 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
58762 1999-07-15 Jim Meyering <meyering@ascend.com>
58764 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
58766 1999-05-22 Jim Meyering <meyering@ascend.com>
58768 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
58770 1999-05-20 Jim Meyering <meyering@ascend.com>
58772 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
58773 Add a colon after each `then' in case $4 is empty.
58775 1999-05-16 Jim Meyering <meyering@ascend.com>
58777 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
58779 1999-05-10 Jim Meyering <meyering@ascend.com>
58781 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
58783 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
58786 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
58788 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
58790 1999-05-04 Paul Eggert <eggert@twinsun.com>
58792 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
58793 not CPPFLAGS, so that linking works correctly in IRIX.
58795 1999-04-30 Paul Eggert <eggert@twinsun.com>
58797 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
58799 1999-04-20 Paul Eggert <eggert@twinsun.com>
58801 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
58802 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
58803 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
58804 jm_AC_TYPE_UNSIGNED_LONG_LONG.
58805 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
58807 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
58809 1999-04-20 Jim Meyering <meyering@ascend.com>
58811 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
58812 AC_REPLACE xstroull if necessary. From Paul Eggert.
58813 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
58815 1999-04-18 Jim Meyering <meyering@ascend.com>
58817 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
58818 * m4/jm-macros.m4: Use it.
58820 1999-04-06 Jim Meyering <meyering@ascend.com>
58822 * m4/strftime.m4: Remove test for %f.
58824 1999-03-29 Jim Meyering <meyering@ascend.com>
58826 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
58827 superset of the AC_TYPE_* checks in the textutils, fileutils,
58828 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
58831 1999-03-28 Jim Meyering <meyering@ascend.com>
58833 * m4/jm-macros.m4: Define GNU_PACKAGE here.
58834 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
58835 replaced e.g., in the *.sh files of the sh-utils.
58837 1999-03-20 Jim Meyering <meyering@ascend.com>
58839 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
58840 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
58841 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
58843 1999-03-19 Jim Meyering <meyering@ascend.com>
58845 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
58847 1999-03-12 Jim Meyering <meyering@ascend.com>
58849 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
58851 1999-03-07 Jim Meyering <meyering@ascend.com>
58853 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
58856 1999-02-17 Jim Meyering <meyering@ascend.com>
58858 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
58859 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
58861 1999-02-07 Jim Meyering <meyering@ascend.com>
58863 * m4/group-member.m4: New file -- extracted from sh-utils'
58866 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
58867 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
58869 1999-02-06 Jim Meyering <meyering@ascend.com>
58871 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
58872 * m4/fnmatch.m4: Likewise.
58873 * m4/getgroups.m4: Likewise.
58874 * m4/lstat.m4: Likewise.
58875 * m4/malloc.m4: Likewise.
58876 * m4/putenv.m4: Likewise.
58877 * m4/realloc.m4: Likewise.
58878 * m4/regex.m4: Likewise.
58879 * m4/stat.m4: Likewise.
58880 * m4/strftime.m4: Likewise.
58881 Suggestion from Alain Magloire.
58883 * m4/chown.m4: Use `.$ac_objext', not `.o'.
58884 * m4/fnmatch.m4: Likewise.
58885 * m4/getgroups.m4: Likewise.
58886 * m4/getline.m4: Likewise.
58887 * m4/lstat.m4: Likewise.
58888 * m4/malloc.m4: Likewise.
58889 * m4/memcmp.m4: Likewise.
58890 * m4/putenv.m4: Likewise.
58891 * m4/realloc.m4: Likewise.
58892 * m4/regex.m4: Likewise.
58893 * m4/stat.m4: Likewise.
58894 * m4/strftime.m4: Likewise.
58895 Suggestion from Alain Magloire.
58897 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
58900 * m4/regex.m4: Add a run-time Test for proper operation of
58901 re_compile_pattern.
58903 1999-01-31 Jim Meyering <meyering@ascend.com>
58905 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
58907 1999-01-30 Jim Meyering <meyering@ascend.com>
58909 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
58911 * m4/jm-mktime.m4: Make this a wrapper around the official
58912 AM_FUNC_MKTIME rather than my private copy, now that the official one
58914 * m4/mktime.m4: Remove file.
58916 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
58917 * m4/uptime.m4: Likewise.
58918 * m4/uintmax_t.m4: Likewise.
58920 1999-01-28 Jim Meyering <meyering@ascend.com>
58922 * m4/jm-macros.m4: Use jm_AFS.
58923 * m4/afs.m4: New file (from fileutils' configure.in).
58925 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
58926 * m4/chown.m4: Likewise.
58927 * m4/d-ino.m4: Likewise.
58928 * m4/d-type.m4: Likewise.
58929 * m4/fnmatch.m4: Likewise.
58930 * m4/getgroups.m4: Likewise.
58931 * m4/gettext.m4: Likewise.
58932 * m4/jm-mktime.m4: Likewise.
58933 * m4/jm-winsz2.m4: Likewise.
58934 * m4/lcmessage.m4: Likewise.
58935 * m4/ls-mntd-fs.m4: Likewise.
58936 * m4/malloc.m4: Likewise.
58937 * m4/memcmp.m4: Likewise.
58938 * m4/putenv.m4: Likewise.
58939 * m4/realloc.m4: Likewise.
58940 * m4/st_mtim.m4: Likewise.
58941 * m4/strftime.m4: Likewise.
58943 1999-01-16 Jim Meyering <meyering@ascend.com>
58945 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
58946 (ARGMATCH_DIE_DECL): Define.
58948 1999-01-12 Jim Meyering <meyering@ascend.com>
58950 * m4/Makefile.am.in: Rewrite to avoid using fmt.
58951 Reported by Lars Hecking.
58953 1999-01-10 Jim Meyering <meyering@ascend.com>
58955 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
58957 * m4/inttypes_h.m4: Likewise.
58958 * m4/lstat.m4: Likewise.
58959 * m4/malloc.m4: Likewise.
58960 * m4/readdir.m4: Likewise.
58961 * m4/realloc.m4: Likewise.
58962 * m4/st_dm_mode.m4: Likewise.
58963 * m4/stat.m4: Likewise.
58964 * m4/utimbuf.m4: Likewise.
58965 * m4/utimes.m4: Likewise.
58967 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
58968 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
58969 comments in config.h.in are meaningful.
58971 * m4/jm-macros.m4: Require autoconf-2.13 here.
58973 * m4/regex.m4: By default, don't use the included regex.c on systems
58974 with glibc 2. Suggestion from Uli Drepper.
58976 1999-01-02 Jim Meyering <meyering@ascend.com>
58978 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
58980 1998-12-18 Jim Meyering <meyering@ascend.com>
58982 * m4/Makefile.am.in (Makefile.am): Simplify rule.
58983 Based on a suggestion from Lars Hecking.
58985 1998-11-16 Paul Eggert <eggert@twinsun.com>
58987 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
58989 1998-11-16 Jim Meyering <meyering@ascend.com>
58991 * m4/lfs.m4: Double-quote the `uname...` expression.
58993 1998-11-14 Jim Meyering <meyering@ascend.com>
58995 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
58996 * m4/stat.m4: Likewise.
58998 1998-11-03 Jim Meyering <meyering@ascend.com>
59000 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
59001 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
59003 1998-10-18 Jim Meyering <meyering@ascend.com>
59005 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
59007 1998-10-17 Jim Meyering <meyering@ascend.com>
59009 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
59010 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
59011 calls for those previously hard-coded headers. Instead, take a new
59013 (jm_CHECK_DECLARATIONS): Reflect interface change.
59014 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
59015 (jm_CHECK_DECL_LOCALTIME_R): New macro.
59017 * m4/mktime.m4: Test for spring-forward gap before long-running test.
59019 1998-10-14 Jim Meyering <meyering@ascend.com>
59021 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
59022 instead of "TZ=America/Vancouver". From Paul Eggert.
59024 1998-10-11 Jim Meyering <meyering@ascend.com>
59026 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
59027 This adds a test for a recently added compatibility fix for mktime.c.
59028 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
59030 1998-09-27 Jim Meyering <meyering@ascend.com>
59032 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
59034 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
59035 ../configure.in, including a change from Gordon Matzigkeit to allow
59036 cross-compiling for the Hurd.
59038 * m4/glibc.m4: New file/macro to test for the GNU C Library
59039 versions 1 and 2. From Gordon Matzigkeit.
59042 1998-09-21 Jim Meyering <meyering@ascend.com>
59044 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
59046 1998-08-18 Paul Eggert <eggert@twinsun.com>
59048 Port nanosecond-resolution times to UnixWare 2.1.2 and
59049 pedantic Solaris 2.6.
59051 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
59053 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
59054 Generate name of ns member, instead of just 1 or undef.
59055 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
59057 1998-08-15 Jim Meyering <meyering@ascend.com>
59059 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
59060 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
59061 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
59062 instead of jm_TYPE_SSIZE_T.
59064 1998-08-12 Jim Meyering <meyering@ascend.com>
59066 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
59068 1998-08-02 Jim Meyering <meyering@ascend.com>
59070 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
59071 in acconfig.h manually.
59073 1998-07-31 Paul Eggert <eggert@twinsun.com>
59075 * m4/st_mtim.m4: New file.
59077 1998-07-28 Jim Meyering <meyering@ascend.com>
59079 * m4/utimes.m4: Undef stat.
59081 1998-07-25 Jim Meyering <meyering@ascend.com>
59083 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
59084 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
59086 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
59088 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
59089 uid and gid actually remain unchanged.
59091 1998-07-07 Jim Meyering <meyering@ascend.com>
59093 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
59095 1998-07-04 Jim Meyering <meyering@ascend.com>
59097 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
59098 to prove that this macro can be used in packages without regex.c.
59100 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
59102 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
59105 1998-07-03 Jim Meyering <meyering@ascend.com>
59107 * m4/gettext.m4: Add -lintl if it's found to be necessary.
59109 * m4/gettext.m4: New file -- from gettext-0.10.35.
59110 * m4/lcmessage.m4: Likewise.
59111 * m4/progtest.m4: Likewise.
59113 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
59114 * m4/jm-macros.m4: Require the new macro.
59116 1998-06-29 Jim Meyering <meyering@ascend.com>
59118 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
59119 for the definition of NGROUPS (used in a system header included
59122 1998-06-28 Jim Meyering <meyering@ascend.com>
59124 * m4/ls-mntd-fs.m4: New file.
59125 * m4/fstypename.m4: New file.
59127 * m4/jm-macros.m4: Require the new macro.
59128 * m4/jm-glibc-io.m4: New file.
59130 1998-05-19 Jim Meyering <meyering@ascend.com>
59132 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
59133 * m4/lchown.m4: New file.
59135 * m4/Makefile.am.in: New file.
59136 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
59138 1998-05-14 Jim Meyering <meyering@ascend.com>
59140 * m4/Makefile.am (EXTRA_DIST): Add them.
59141 * m4/jm-macros.m4: New file.
59142 * m4/utimbuf.m4: New file.
59144 1998-05-12 Jim Meyering <meyering@ascend.com>
59146 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
59148 1998-05-11 Jim Meyering <meyering@ascend.com>
59150 * m4/isc-posix.m4: New file.
59152 1998-05-10 Jim Meyering <meyering@ascend.com>
59154 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
59156 1998-05-09 Jim Meyering <meyering@ascend.com>
59158 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
59159 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
59162 * m4/ssize_t.m4: New file.
59163 * m4/mktime.m4: Remove file -- the new automake has this now.
59165 1998-04-26 Jim Meyering <meyering@ascend.com>
59167 * m4/assert.m4: New file.
59168 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
59170 1998-04-05 Jim Meyering <meyering@ascend.com>
59172 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
59173 (jm_PREREQ): Use it here.
59175 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
59177 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
59180 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
59182 * m4/prereq.m4: New file.
59183 * m4/error.m4: New file.
59184 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
59186 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
59188 * m4/getline.m4: Don't set am_cv_func_working_getline before the
59189 cache-check for the same variable -- that defeated the purpose of
59190 the test; the test program was never run. This was a problem only
59191 on systems with losing getline functions -- HP-UX 10.20 is one.
59192 Reported by Bjorn Helgaas.
59194 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
59196 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
59198 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
59200 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
59202 * m4/const.m4: New file. Use an initializer in this declaration
59203 typedef int charset[2]; const charset x;
59204 Reported by Bob Glickstein.
59206 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
59208 * m4/chown.m4: Fix reversed types on -1 args to chown.
59211 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
59213 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
59214 Add lseek and memchr.
59216 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
59217 T.E.Dickey <dickey@clark.net> said that some older preprocessors
59218 have a 20-character limit on names.
59220 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
59222 * m4/inttypes_h.m4: New file.
59223 * m4/uintmax_t.m4: New file.
59224 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
59233 Copyright (C) 1997-2009 Free Software Foundation, Inc.
59235 Copying and distribution of this file, with or without
59236 modification, are permitted provided the copyright notice
59237 and this notice are preserved.