1 2009-12-24 Bruno Haible <bruno@clisp.org>
3 New module 'unused-parameter'.
4 * build-aux/unused-parameter.h: New file, extracted from earlier
6 * modules/unused-parameter: New file.
7 * lib/unistr.h: Include unused-parameter.h.
8 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10 * modules/unistr/base (Depends-on): Add unused-parameter.
12 2009-12-24 Bruno Haible <bruno@clisp.org>
14 Add missing dependencies to 'extensions' module.
15 * m4/extensions.m4: Add comment.
16 * modules/accept4 (Depends-on): Add extensions.
17 * modules/dup3 (Depends-on): Likewise.
18 * modules/fcntl (Depends-on): Likewise.
19 * modules/futimens (Depends-on): Likewise.
20 * modules/mknod (Depends-on): Likewise.
21 * modules/pipe2 (Depends-on): Likewise.
22 * modules/stat-time (Depends-on): Likewise.
23 * modules/strcasestr-simple (Depends-on): Likewise.
24 * modules/strsignal (Depends-on): Likewise.
25 * modules/utimensat (Depends-on): Likewise.
26 * modules/localcharset (Depends-on): Likewise. Needed because of
28 * modules/wcrtomb (Depends-on): Likewise. Needed because of
30 * modules/wcsnrtombs (Depends-on): Likewise.
31 * modules/wcsrtombs (Depends-on): Likewise.
33 2009-12-24 Bruno Haible <bruno@clisp.org>
35 binary-io: Avoid gcc warning due to SET_BINARY.
36 * lib/binary-io.h (SET_BINARY): Cast the result to void.
37 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39 2009-12-24 Bruno Haible <bruno@clisp.org>
41 Avoid future namespace pollution on glibc systems.
42 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
43 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
44 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
47 2009-12-24 Bruno Haible <bruno@clisp.org>
49 Refactor common macros used in tests.
50 * tests/macros.h: New file.
51 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
52 and/or <stdlib.h>, if appropriate.
53 (ASSERT, SIZEOF): Remove macros.
54 * tests/test-areadlink-with-size.c: Likewise.
55 * tests/test-areadlinkat.c: Likewise.
56 * tests/test-areadlinkat-with-size.c: Likewise.
57 * tests/test-argmatch.c: Likewise.
58 * tests/test-argv-iter.c: Likewise.
59 * tests/test-array-mergesort.c: Likewise.
60 * tests/test-array_list.c: Likewise.
61 * tests/test-array_oset.c: Likewise.
62 * tests/test-avltree_list.c: Likewise.
63 * tests/test-avltree_oset.c: Likewise.
64 * tests/test-avltreehash_list.c: Likewise.
65 * tests/test-base64.c: Likewise.
66 * tests/test-binary-io.c: Likewise.
67 * tests/test-bitrotate.c: Likewise.
68 * tests/test-btowc.c: Likewise.
69 * tests/test-byteswap.c: Likewise.
70 * tests/test-c-ctype.c: Likewise.
71 * tests/test-c-stack.c: Likewise.
72 * tests/test-c-strcasecmp.c: Likewise.
73 * tests/test-c-strcasestr.c: Likewise.
74 * tests/test-c-strncasecmp.c: Likewise.
75 * tests/test-c-strstr.c: Likewise.
76 * tests/test-canonicalize-lgpl.c: Likewise.
77 * tests/test-canonicalize.c: Likewise.
78 * tests/test-carray_list.c: Likewise.
79 * tests/test-ceilf1.c: Likewise.
80 * tests/test-ceilf2.c: Likewise.
81 * tests/test-ceill.c: Likewise.
82 * tests/test-chown.c: Likewise.
83 * tests/test-cloexec.c: Likewise.
84 * tests/test-copy-acl.c: Likewise.
85 * tests/test-copy-file.c: Likewise.
86 * tests/test-count-one-bits.c: Likewise.
87 * tests/test-dprintf-posix.c: Likewise.
88 * tests/test-dup2.c: Likewise.
89 * tests/test-dup3.c: Likewise.
90 * tests/test-duplocale.c: Likewise.
91 * tests/test-fbufmode.c: Likewise.
92 * tests/test-fchdir.c: Likewise.
93 * tests/test-fchownat.c: Likewise.
94 * tests/test-fcntl-safer.c: Likewise.
95 * tests/test-fcntl.c: Likewise.
96 * tests/test-fdopendir.c: Likewise.
97 * tests/test-fdutimensat.c: Likewise.
98 * tests/test-fflush2.c: Likewise.
99 * tests/test-file-has-acl.c: Likewise.
100 * tests/test-filevercmp.c: Likewise.
101 * tests/test-flock.c: Likewise.
102 * tests/test-floorf1.c: Likewise.
103 * tests/test-floorf2.c: Likewise.
104 * tests/test-floorl.c: Likewise.
105 * tests/test-fnmatch.c: Likewise.
106 * tests/test-fopen.h: Likewise.
107 * tests/test-fpending.c: Likewise.
108 * tests/test-fprintf-posix.c: Likewise.
109 * tests/test-fpurge.c: Likewise.
110 * tests/test-freadable.c: Likewise.
111 * tests/test-freadahead.c: Likewise.
112 * tests/test-freading.c: Likewise.
113 * tests/test-freadptr.c: Likewise.
114 * tests/test-freadptr2.c: Likewise.
115 * tests/test-freadseek.c: Likewise.
116 * tests/test-freopen.c: Likewise.
117 * tests/test-frexp.c: Likewise.
118 * tests/test-frexpl.c: Likewise.
119 * tests/test-fseek.c: Likewise.
120 * tests/test-fseeko.c: Likewise.
121 * tests/test-fstatat.c: Likewise.
122 * tests/test-fstrcmp.c: Likewise.
123 * tests/test-fsync.c: Likewise.
124 * tests/test-ftell.c: Likewise.
125 * tests/test-ftello.c: Likewise.
126 * tests/test-func.c: Likewise.
127 * tests/test-futimens.c: Likewise.
128 * tests/test-fwritable.c: Likewise.
129 * tests/test-fwriting.c: Likewise.
130 * tests/test-getcwd.c: Likewise.
131 * tests/test-getdate.c: Likewise.
132 * tests/test-getdelim.c: Likewise.
133 * tests/test-getdtablesize.c: Likewise.
134 * tests/test-getgroups.c: Likewise.
135 * tests/test-getline.c: Likewise.
136 * tests/test-getndelim2.c: Likewise.
137 * tests/test-glob.c: Likewise.
138 * tests/test-hash.c: Likewise.
139 * tests/test-i-ring.c: Likewise.
140 * tests/test-iconv-utf.c: Likewise.
141 * tests/test-iconv.c: Likewise.
142 * tests/test-idpriv-drop.c: Likewise.
143 * tests/test-idpriv-droptemp.c: Likewise.
144 * tests/test-inet_ntop.c: Likewise.
145 * tests/test-inet_pton.c: Likewise.
146 * tests/test-isblank.c: Likewise.
147 * tests/test-isfinite.c: Likewise.
148 * tests/test-isinf.c: Likewise.
149 * tests/test-isnan.c: Likewise.
150 * tests/test-isnand.h: Likewise.
151 * tests/test-isnanf.h: Likewise.
152 * tests/test-isnanl.h: Likewise.
153 * tests/test-lchown.c: Likewise.
154 * tests/test-ldexpl.c: Likewise.
155 * tests/test-link.c: Likewise.
156 * tests/test-linkat.c: Likewise.
157 * tests/test-linked_list.c: Likewise.
158 * tests/test-linkedhash_list.c: Likewise.
159 * tests/test-localename.c: Likewise.
160 * tests/test-lseek.c: Likewise.
161 * tests/test-lstat.c: Likewise.
162 * tests/test-mbmemcasecmp.c: Likewise.
163 * tests/test-mbmemcasecoll.c: Likewise.
164 * tests/test-mbrtowc.c: Likewise.
165 * tests/test-mbscasecmp.c: Likewise.
166 * tests/test-mbscasestr1.c: Likewise.
167 * tests/test-mbscasestr2.c: Likewise.
168 * tests/test-mbscasestr3.c: Likewise.
169 * tests/test-mbscasestr4.c: Likewise.
170 * tests/test-mbschr.c: Likewise.
171 * tests/test-mbscspn.c: Likewise.
172 * tests/test-mbsinit.c: Likewise.
173 * tests/test-mbsncasecmp.c: Likewise.
174 * tests/test-mbsnrtowcs.c: Likewise.
175 * tests/test-mbspbrk.c: Likewise.
176 * tests/test-mbspcasecmp.c: Likewise.
177 * tests/test-mbsrchr.c: Likewise.
178 * tests/test-mbsrtowcs.c: Likewise.
179 * tests/test-mbsspn.c: Likewise.
180 * tests/test-mbsstr1.c: Likewise.
181 * tests/test-mbsstr2.c: Likewise.
182 * tests/test-mbsstr3.c: Likewise.
183 * tests/test-memchr.c: Likewise.
184 * tests/test-memchr2.c: Likewise.
185 * tests/test-memcmp.c: Likewise.
186 * tests/test-memmem.c: Likewise.
187 * tests/test-memrchr.c: Likewise.
188 * tests/test-mkdir.c: Likewise.
189 * tests/test-mkdirat.c: Likewise.
190 * tests/test-mkfifo.c: Likewise.
191 * tests/test-mkfifoat.c: Likewise.
192 * tests/test-mknod.c: Likewise.
193 * tests/test-nanosleep.c: Likewise.
194 * tests/test-nl_langinfo.c: Likewise.
195 * tests/test-obstack-printf.c: Likewise.
196 * tests/test-open.c: Likewise.
197 * tests/test-openat.c: Likewise.
198 * tests/test-pipe-filter-gi1.c: Likewise.
199 * tests/test-pipe-filter-gi2-main.c: Likewise.
200 * tests/test-pipe-filter-ii1.c: Likewise.
201 * tests/test-pipe-filter-ii2-main.c: Likewise.
202 * tests/test-pipe2.c: Likewise.
203 * tests/test-popen.h: Likewise.
204 * tests/test-posixtm.c: Likewise.
205 * tests/test-pread.c: Likewise.
206 * tests/test-printf-frexp.c: Likewise.
207 * tests/test-printf-frexpl.c: Likewise.
208 * tests/test-printf-posix.c: Likewise.
209 * tests/test-priv-set.c: Likewise.
210 * tests/test-quotearg.c: Likewise.
211 * tests/test-random_r.c: Likewise.
212 * tests/test-rawmemchr.c: Likewise.
213 * tests/test-rbtree_list.c: Likewise.
214 * tests/test-rbtree_oset.c: Likewise.
215 * tests/test-rbtreehash_list.c: Likewise.
216 * tests/test-readlink.c: Likewise.
217 * tests/test-remove.c: Likewise.
218 * tests/test-rename.c: Likewise.
219 * tests/test-renameat.c: Likewise.
220 * tests/test-rmdir.c: Likewise.
221 * tests/test-round1.c: Likewise.
222 * tests/test-roundf1.c: Likewise.
223 * tests/test-roundl.c: Likewise.
224 * tests/test-safe-alloc.c: Likewise.
225 * tests/test-sameacls.c: Likewise.
226 * tests/test-set-mode-acl.c: Likewise.
227 * tests/test-setenv.c: Likewise.
228 * tests/test-sigaction.c: Likewise.
229 * tests/test-signbit.c: Likewise.
230 * tests/test-sleep.c: Likewise.
231 * tests/test-snprintf-posix.c: Likewise.
232 * tests/test-snprintf.c: Likewise.
233 * tests/test-sprintf-posix.c: Likewise.
234 * tests/test-stat-time.c: Likewise.
235 * tests/test-stat.c: Likewise.
236 * tests/test-strcasestr.c: Likewise.
237 * tests/test-strchrnul.c: Likewise.
238 * tests/test-strerror.c: Likewise.
239 * tests/test-striconv.c: Likewise.
240 * tests/test-striconveh.c: Likewise.
241 * tests/test-striconveha.c: Likewise.
242 * tests/test-strsignal.c: Likewise.
243 * tests/test-strstr.c: Likewise.
244 * tests/test-strtod.c: Likewise.
245 * tests/test-strverscmp.c: Likewise.
246 * tests/test-symlink.c: Likewise.
247 * tests/test-symlinkat.c: Likewise.
248 * tests/test-trunc1.c: Likewise.
249 * tests/test-trunc2.c: Likewise.
250 * tests/test-truncf1.c: Likewise.
251 * tests/test-truncf2.c: Likewise.
252 * tests/test-truncl.c: Likewise.
253 * tests/test-uname.c: Likewise.
254 * tests/test-unlink.c: Likewise.
255 * tests/test-unlinkat.c: Likewise.
256 * tests/test-unsetenv.c: Likewise.
257 * tests/test-usleep.c: Likewise.
258 * tests/test-utimens.c: Likewise.
259 * tests/test-utimensat.c: Likewise.
260 * tests/test-vasnprintf-posix.c: Likewise.
261 * tests/test-vasnprintf-posix2.c: Likewise.
262 * tests/test-vasnprintf.c: Likewise.
263 * tests/test-vasprintf-posix.c: Likewise.
264 * tests/test-vasprintf.c: Likewise.
265 * tests/test-vdprintf-posix.c: Likewise.
266 * tests/test-vfprintf-posix.c: Likewise.
267 * tests/test-vprintf-posix.c: Likewise.
268 * tests/test-vsnprintf-posix.c: Likewise.
269 * tests/test-vsnprintf.c: Likewise.
270 * tests/test-vsprintf-posix.c: Likewise.
271 * tests/test-wcrtomb.c: Likewise.
272 * tests/test-wcsnrtombs.c: Likewise.
273 * tests/test-wcsrtombs.c: Likewise.
274 * tests/test-wctype.c: Likewise.
275 * tests/test-wcwidth.c: Likewise.
276 * tests/test-xfprintf-posix.c: Likewise.
277 * tests/test-xmemdup0.c: Likewise.
278 * tests/test-xprintf-posix.c: Likewise.
279 * tests/test-xvasprintf.c: Likewise.
280 * tests/unicase/test-locale-language.c: Likewise.
281 * tests/unicase/test-mapping-part1.h: Likewise.
282 * tests/unicase/test-predicate-part1.h: Likewise.
283 * tests/unicase/test-u8-casecmp.c: Likewise.
284 * tests/unicase/test-u8-casecoll.c: Likewise.
285 * tests/unicase/test-u8-casefold.c: Likewise.
286 * tests/unicase/test-u8-is-cased.c: Likewise.
287 * tests/unicase/test-u8-is-casefolded.c: Likewise.
288 * tests/unicase/test-u8-is-lowercase.c: Likewise.
289 * tests/unicase/test-u8-is-titlecase.c: Likewise.
290 * tests/unicase/test-u8-is-uppercase.c: Likewise.
291 * tests/unicase/test-u8-tolower.c: Likewise.
292 * tests/unicase/test-u8-totitle.c: Likewise.
293 * tests/unicase/test-u8-toupper.c: Likewise.
294 * tests/unicase/test-u16-casecmp.c: Likewise.
295 * tests/unicase/test-u16-casecoll.c: Likewise.
296 * tests/unicase/test-u16-casefold.c: Likewise.
297 * tests/unicase/test-u16-is-cased.c: Likewise.
298 * tests/unicase/test-u16-is-casefolded.c: Likewise.
299 * tests/unicase/test-u16-is-lowercase.c: Likewise.
300 * tests/unicase/test-u16-is-titlecase.c: Likewise.
301 * tests/unicase/test-u16-is-uppercase.c: Likewise.
302 * tests/unicase/test-u16-tolower.c: Likewise.
303 * tests/unicase/test-u16-totitle.c: Likewise.
304 * tests/unicase/test-u16-toupper.c: Likewise.
305 * tests/unicase/test-u32-casecmp.c: Likewise.
306 * tests/unicase/test-u32-casecoll.c: Likewise.
307 * tests/unicase/test-u32-casefold.c: Likewise.
308 * tests/unicase/test-u32-is-cased.c: Likewise.
309 * tests/unicase/test-u32-is-casefolded.c: Likewise.
310 * tests/unicase/test-u32-is-lowercase.c: Likewise.
311 * tests/unicase/test-u32-is-titlecase.c: Likewise.
312 * tests/unicase/test-u32-is-uppercase.c: Likewise.
313 * tests/unicase/test-u32-tolower.c: Likewise.
314 * tests/unicase/test-u32-totitle.c: Likewise.
315 * tests/unicase/test-u32-toupper.c: Likewise.
316 * tests/unicase/test-ulc-casecmp.c: Likewise.
317 * tests/unicase/test-ulc-casecoll.c: Likewise.
318 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
319 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
320 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
321 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
322 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
323 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
324 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
325 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
326 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
327 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
328 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
329 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
330 * tests/unictype/test-bidi_byname.c: Likewise.
331 * tests/unictype/test-bidi_name.c: Likewise.
332 * tests/unictype/test-bidi_of.c: Likewise.
333 * tests/unictype/test-bidi_test.c: Likewise.
334 * tests/unictype/test-block_list.c: Likewise.
335 * tests/unictype/test-block_of.c: Likewise.
336 * tests/unictype/test-block_test.c: Likewise.
337 * tests/unictype/test-categ_and.c: Likewise.
338 * tests/unictype/test-categ_and_not.c: Likewise.
339 * tests/unictype/test-categ_byname.c: Likewise.
340 * tests/unictype/test-categ_name.c: Likewise.
341 * tests/unictype/test-categ_none.c: Likewise.
342 * tests/unictype/test-categ_of.c: Likewise.
343 * tests/unictype/test-categ_or.c: Likewise.
344 * tests/unictype/test-categ_test_withtable.c: Likewise.
345 * tests/unictype/test-combining.c: Likewise.
346 * tests/unictype/test-decdigit.c: Likewise.
347 * tests/unictype/test-digit.c: Likewise.
348 * tests/unictype/test-mirror.c: Likewise.
349 * tests/unictype/test-numeric.c: Likewise.
350 * tests/unictype/test-pr_byname.c: Likewise.
351 * tests/unictype/test-pr_test.c: Likewise.
352 * tests/unictype/test-predicate-part1.h: Likewise.
353 * tests/unictype/test-scripts.c: Likewise.
354 * tests/unictype/test-sy_c_ident.c: Likewise.
355 * tests/unictype/test-sy_java_ident.c: Likewise.
356 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
357 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
358 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
359 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
360 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
361 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
362 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
363 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
364 * tests/uninorm/test-canonical-decomposition.c: Likewise.
365 * tests/uninorm/test-compat-decomposition.c: Likewise.
366 * tests/uninorm/test-composition.c: Likewise.
367 * tests/uninorm/test-decomposing-form.c: Likewise.
368 * tests/uninorm/test-decomposition.c: Likewise.
369 * tests/uninorm/test-u8-nfc.c: Likewise.
370 * tests/uninorm/test-u8-nfd.c: Likewise.
371 * tests/uninorm/test-u8-nfkc.c: Likewise.
372 * tests/uninorm/test-u8-nfkd.c: Likewise.
373 * tests/uninorm/test-u8-normcmp.c: Likewise.
374 * tests/uninorm/test-u8-normcoll.c: Likewise.
375 * tests/uninorm/test-u16-nfc.c: Likewise.
376 * tests/uninorm/test-u16-nfd.c: Likewise.
377 * tests/uninorm/test-u16-nfkc.c: Likewise.
378 * tests/uninorm/test-u16-nfkd.c: Likewise.
379 * tests/uninorm/test-u16-normcmp.c: Likewise.
380 * tests/uninorm/test-u16-normcoll.c: Likewise.
381 * tests/uninorm/test-u32-nfc.c: Likewise.
382 * tests/uninorm/test-u32-nfd.c: Likewise.
383 * tests/uninorm/test-u32-nfkc.c: Likewise.
384 * tests/uninorm/test-u32-nfkd.c: Likewise.
385 * tests/uninorm/test-u32-normalize-big.c: Likewise.
386 * tests/uninorm/test-u32-normcmp.c: Likewise.
387 * tests/uninorm/test-u32-normcoll.c: Likewise.
388 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
389 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
390 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
391 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
392 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
393 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
394 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
395 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
396 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
397 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
398 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
399 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
400 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
401 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
402 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
403 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
404 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
405 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
406 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
407 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
408 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
409 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
410 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
411 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
412 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
413 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
414 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
415 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
416 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
417 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
418 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
419 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
420 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
421 * tests/uniwidth/test-u8-strwidth.c: Likewise.
422 * tests/uniwidth/test-u8-width.c: Likewise.
423 * tests/uniwidth/test-u16-strwidth.c: Likewise.
424 * tests/uniwidth/test-u16-width.c: Likewise.
425 * tests/uniwidth/test-u32-strwidth.c: Likewise.
426 * tests/uniwidth/test-u32-width.c: Likewise.
427 * tests/uniwidth/test-uc_width.c: Likewise.
428 * tests/uniwidth/test-uc_width2.c: Likewise.
429 * modules/acl-tests (Files): Add tests/macros.h.
430 * modules/areadlink-tests (Files): Likewise.
431 * modules/areadlink-with-size-tests (Files): Likewise.
432 * modules/areadlinkat-tests (Files): Likewise.
433 * modules/areadlinkat-with-size-tests (Files): Likewise.
434 * modules/argmatch-tests (Files): Likewise.
435 * modules/argv-iter-tests (Files): Likewise.
436 * modules/array-list-tests (Files): Likewise.
437 * modules/array-mergesort-tests (Files): Likewise.
438 * modules/array-oset-tests (Files): Likewise.
439 * modules/avltree-list-tests (Files): Likewise.
440 * modules/avltree-oset-tests (Files): Likewise.
441 * modules/avltreehash-list-tests (Files): Likewise.
442 * modules/base64-tests (Files): Likewise.
443 * modules/binary-io-tests (Files): Likewise.
444 * modules/bitrotate-tests (Files): Likewise.
445 * modules/btowc-tests (Files): Likewise.
446 * modules/byteswap-tests (Files): Likewise.
447 * modules/c-ctype-tests (Files): Likewise.
448 * modules/c-stack-tests (Files): Likewise.
449 * modules/c-strcase-tests (Files): Likewise.
450 * modules/c-strcasestr-tests (Files): Likewise.
451 * modules/c-strstr-tests (Files): Likewise.
452 * modules/canonicalize-lgpl-tests (Files): Likewise.
453 * modules/canonicalize-tests (Files): Likewise.
454 * modules/carray-list-tests (Files): Likewise.
455 * modules/ceilf-tests (Files): Likewise.
456 * modules/ceill-tests (Files): Likewise.
457 * modules/chown-tests (Files): Likewise.
458 * modules/cloexec-tests (Files): Likewise.
459 * modules/copy-file-tests (Files): Likewise.
460 * modules/count-one-bits-tests (Files): Likewise.
461 * modules/dprintf-posix-tests (Files): Likewise.
462 * modules/dup2-tests (Files): Likewise.
463 * modules/dup3-tests (Files): Likewise.
464 * modules/duplocale-tests (Files): Likewise.
465 * modules/fbufmode-tests (Files): Likewise.
466 * modules/fchdir-tests (Files): Likewise.
467 * modules/fcntl-safer-tests (Files): Likewise.
468 * modules/fcntl-tests (Files): Likewise.
469 * modules/fdopendir-tests (Files): Likewise.
470 * modules/fdutimensat-tests (Files): Likewise.
471 * modules/fflush-tests (Files): Likewise.
472 * modules/filevercmp-tests (Files): Likewise.
473 * modules/flock-tests (Files): Likewise.
474 * modules/floorf-tests (Files): Likewise.
475 * modules/floorl-tests (Files): Likewise.
476 * modules/fnmatch-tests (Files): Likewise.
477 * modules/fopen-safer-tests (Files): Likewise.
478 * modules/fopen-tests (Files): Likewise.
479 * modules/fpending-tests (Files): Likewise.
480 * modules/fprintf-posix-tests (Files): Likewise.
481 * modules/fpurge-tests (Files): Likewise.
482 * modules/freadable-tests (Files): Likewise.
483 * modules/freadahead-tests (Files): Likewise.
484 * modules/freading-tests (Files): Likewise.
485 * modules/freadptr-tests (Files): Likewise.
486 * modules/freadseek-tests (Files): Likewise.
487 * modules/freopen-tests (Files): Likewise.
488 * modules/frexp-nolibm-tests (Files): Likewise.
489 * modules/frexp-tests (Files): Likewise.
490 * modules/frexpl-nolibm-tests (Files): Likewise.
491 * modules/frexpl-tests (Files): Likewise.
492 * modules/fseek-tests (Files): Likewise.
493 * modules/fseeko-tests (Files): Likewise.
494 * modules/fstrcmp-tests (Files): Likewise.
495 * modules/fsync-tests (Files): Likewise.
496 * modules/ftell-tests (Files): Likewise.
497 * modules/ftello-tests (Files): Likewise.
498 * modules/func-tests (Files): Likewise.
499 * modules/futimens-tests (Files): Likewise.
500 * modules/fwritable-tests (Files): Likewise.
501 * modules/fwriting-tests (Files): Likewise.
502 * modules/getcwd-tests (Files): Likewise.
503 * modules/getdate-tests (Files): Likewise.
504 * modules/getdelim-tests (Files): Likewise.
505 * modules/getdtablesize-tests (Files): Likewise.
506 * modules/getgroups-tests (Files): Likewise.
507 * modules/getline-tests (Files): Likewise.
508 * modules/getndelim2-tests (Files): Likewise.
509 * modules/glob-tests (Files): Likewise.
510 * modules/hash-tests (Files): Likewise.
511 * modules/i-ring-tests (Files): Likewise.
512 * modules/iconv-tests (Files): Likewise.
513 * modules/iconv_open-utf-tests (Files): Likewise.
514 * modules/idpriv-drop-tests (Files): Likewise.
515 * modules/idpriv-droptemp-tests (Files): Likewise.
516 * modules/inet_ntop-tests (Files): Likewise.
517 * modules/inet_pton-tests (Files): Likewise.
518 * modules/isblank-tests (Files): Likewise.
519 * modules/isfinite-tests (Files): Likewise.
520 * modules/isinf-tests (Files): Likewise.
521 * modules/isnan-tests (Files): Likewise.
522 * modules/isnand-nolibm-tests (Files): Likewise.
523 * modules/isnand-tests (Files): Likewise.
524 * modules/isnanf-nolibm-tests (Files): Likewise.
525 * modules/isnanf-tests (Files): Likewise.
526 * modules/isnanl-nolibm-tests (Files): Likewise.
527 * modules/isnanl-tests (Files): Likewise.
528 * modules/lchown-tests (Files): Likewise.
529 * modules/ldexpl-tests (Files): Likewise.
530 * modules/link-tests (Files): Likewise.
531 * modules/linkat-tests (Files): Likewise.
532 * modules/linked-list-tests (Files): Likewise.
533 * modules/linkedhash-list-tests (Files): Likewise.
534 * modules/localename-tests (Files): Likewise.
535 * modules/lseek-tests (Files): Likewise.
536 * modules/lstat-tests (Files): Likewise.
537 * modules/mbmemcasecmp-tests (Files): Likewise.
538 * modules/mbmemcasecoll-tests (Files): Likewise.
539 * modules/mbrtowc-tests (Files): Likewise.
540 * modules/mbscasecmp-tests (Files): Likewise.
541 * modules/mbscasestr-tests (Files): Likewise.
542 * modules/mbschr-tests (Files): Likewise.
543 * modules/mbscspn-tests (Files): Likewise.
544 * modules/mbsinit-tests (Files): Likewise.
545 * modules/mbsncasecmp-tests (Files): Likewise.
546 * modules/mbsnrtowcs-tests (Files): Likewise.
547 * modules/mbspbrk-tests (Files): Likewise.
548 * modules/mbspcasecmp-tests (Files): Likewise.
549 * modules/mbsrchr-tests (Files): Likewise.
550 * modules/mbsrtowcs-tests (Files): Likewise.
551 * modules/mbsspn-tests (Files): Likewise.
552 * modules/mbsstr-tests (Files): Likewise.
553 * modules/memchr-tests (Files): Likewise.
554 * modules/memchr2-tests (Files): Likewise.
555 * modules/memcmp-tests (Files): Likewise.
556 * modules/memmem-tests (Files): Likewise.
557 * modules/memrchr-tests (Files): Likewise.
558 * modules/mkdir-tests (Files): Likewise.
559 * modules/mkfifo-tests (Files): Likewise.
560 * modules/mkfifoat-tests (Files): Likewise.
561 * modules/mknod-tests (Files): Likewise.
562 * modules/nanosleep-tests (Files): Likewise.
563 * modules/nl_langinfo-tests (Files): Likewise.
564 * modules/obstack-printf-tests (Files): Likewise.
565 * modules/open-tests (Files): Likewise.
566 * modules/openat-tests (Files): Likewise.
567 * modules/pipe-filter-gi-tests (Files): Likewise.
568 * modules/pipe-filter-ii-tests (Files): Likewise.
569 * modules/pipe2-tests (Files): Likewise.
570 * modules/popen-safer-tests (Files): Likewise.
571 * modules/popen-tests (Files): Likewise.
572 * modules/posixtm-tests (Files): Likewise.
573 * modules/pread-tests (Files): Likewise.
574 * modules/printf-frexp-tests (Files): Likewise.
575 * modules/printf-frexpl-tests (Files): Likewise.
576 * modules/printf-posix-tests (Files): Likewise.
577 * modules/priv-set-tests (Files): Likewise.
578 * modules/quotearg-tests (Files): Likewise.
579 * modules/random_r-tests (Files): Likewise.
580 * modules/rawmemchr-tests (Files): Likewise.
581 * modules/rbtree-list-tests (Files): Likewise.
582 * modules/rbtree-oset-tests (Files): Likewise.
583 * modules/rbtreehash-list-tests (Files): Likewise.
584 * modules/readlink-tests (Files): Likewise.
585 * modules/remove-tests (Files): Likewise.
586 * modules/rename-tests (Files): Likewise.
587 * modules/renameat-tests (Files): Likewise.
588 * modules/rmdir-tests (Files): Likewise.
589 * modules/round-tests (Files): Likewise.
590 * modules/roundf-tests (Files): Likewise.
591 * modules/roundl-tests (Files): Likewise.
592 * modules/safe-alloc-tests (Files): Likewise.
593 * modules/setenv-tests (Files): Likewise.
594 * modules/sigaction-tests (Files): Likewise.
595 * modules/signbit-tests (Files): Likewise.
596 * modules/sleep-tests (Files): Likewise.
597 * modules/snprintf-posix-tests (Files): Likewise.
598 * modules/snprintf-tests (Files): Likewise.
599 * modules/sprintf-posix-tests (Files): Likewise.
600 * modules/stat-tests (Files): Likewise.
601 * modules/stat-time-tests (Files): Likewise.
602 * modules/strcasestr-tests (Files): Likewise.
603 * modules/strchrnul-tests (Files): Likewise.
604 * modules/strerror-tests (Files): Likewise.
605 * modules/striconv-tests (Files): Likewise.
606 * modules/striconveh-tests (Files): Likewise.
607 * modules/striconveha-tests (Files): Likewise.
608 * modules/strsignal-tests (Files): Likewise.
609 * modules/strstr-tests (Files): Likewise.
610 * modules/strtod-tests (Files): Likewise.
611 * modules/strverscmp-tests (Files): Likewise.
612 * modules/symlink-tests (Files): Likewise.
613 * modules/symlinkat-tests (Files): Likewise.
614 * modules/trunc-tests (Files): Likewise.
615 * modules/truncf-tests (Files): Likewise.
616 * modules/truncl-tests (Files): Likewise.
617 * modules/uname-tests (Files): Likewise.
618 * modules/unicase/cased-tests (Files): Likewise.
619 * modules/unicase/ignorable-tests (Files): Likewise.
620 * modules/unicase/locale-language-tests (Files): Likewise.
621 * modules/unicase/tolower-tests (Files): Likewise.
622 * modules/unicase/totitle-tests (Files): Likewise.
623 * modules/unicase/toupper-tests (Files): Likewise.
624 * modules/unicase/u8-casecmp-tests (Files): Likewise.
625 * modules/unicase/u8-casecoll-tests (Files): Likewise.
626 * modules/unicase/u8-casefold-tests (Files): Likewise.
627 * modules/unicase/u8-is-cased-tests (Files): Likewise.
628 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
629 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
630 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
631 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
632 * modules/unicase/u8-tolower-tests (Files): Likewise.
633 * modules/unicase/u8-totitle-tests (Files): Likewise.
634 * modules/unicase/u8-toupper-tests (Files): Likewise.
635 * modules/unicase/u16-casecmp-tests (Files): Likewise.
636 * modules/unicase/u16-casecoll-tests (Files): Likewise.
637 * modules/unicase/u16-casefold-tests (Files): Likewise.
638 * modules/unicase/u16-is-cased-tests (Files): Likewise.
639 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
640 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
641 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
642 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
643 * modules/unicase/u16-tolower-tests (Files): Likewise.
644 * modules/unicase/u16-totitle-tests (Files): Likewise.
645 * modules/unicase/u16-toupper-tests (Files): Likewise.
646 * modules/unicase/u32-casecmp-tests (Files): Likewise.
647 * modules/unicase/u32-casecoll-tests (Files): Likewise.
648 * modules/unicase/u32-casefold-tests (Files): Likewise.
649 * modules/unicase/u32-is-cased-tests (Files): Likewise.
650 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
651 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
652 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
653 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
654 * modules/unicase/u32-tolower-tests (Files): Likewise.
655 * modules/unicase/u32-totitle-tests (Files): Likewise.
656 * modules/unicase/u32-toupper-tests (Files): Likewise.
657 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
658 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
659 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
660 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
661 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
662 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
663 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
664 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
665 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
666 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
667 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
668 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
669 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
670 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
671 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
672 * modules/unictype/bidicategory-name-tests (Files): Likewise.
673 * modules/unictype/bidicategory-of-tests (Files): Likewise.
674 * modules/unictype/bidicategory-test-tests (Files): Likewise.
675 * modules/unictype/block-list-tests (Files): Likewise.
676 * modules/unictype/block-of-tests (Files): Likewise.
677 * modules/unictype/block-test-tests (Files): Likewise.
678 * modules/unictype/category-C-tests (Files): Likewise.
679 * modules/unictype/category-Cc-tests (Files): Likewise.
680 * modules/unictype/category-Cf-tests (Files): Likewise.
681 * modules/unictype/category-Cn-tests (Files): Likewise.
682 * modules/unictype/category-Co-tests (Files): Likewise.
683 * modules/unictype/category-Cs-tests (Files): Likewise.
684 * modules/unictype/category-L-tests (Files): Likewise.
685 * modules/unictype/category-Ll-tests (Files): Likewise.
686 * modules/unictype/category-Lm-tests (Files): Likewise.
687 * modules/unictype/category-Lo-tests (Files): Likewise.
688 * modules/unictype/category-Lt-tests (Files): Likewise.
689 * modules/unictype/category-Lu-tests (Files): Likewise.
690 * modules/unictype/category-M-tests (Files): Likewise.
691 * modules/unictype/category-Mc-tests (Files): Likewise.
692 * modules/unictype/category-Me-tests (Files): Likewise.
693 * modules/unictype/category-Mn-tests (Files): Likewise.
694 * modules/unictype/category-N-tests (Files): Likewise.
695 * modules/unictype/category-Nd-tests (Files): Likewise.
696 * modules/unictype/category-Nl-tests (Files): Likewise.
697 * modules/unictype/category-No-tests (Files): Likewise.
698 * modules/unictype/category-P-tests (Files): Likewise.
699 * modules/unictype/category-Pc-tests (Files): Likewise.
700 * modules/unictype/category-Pd-tests (Files): Likewise.
701 * modules/unictype/category-Pe-tests (Files): Likewise.
702 * modules/unictype/category-Pf-tests (Files): Likewise.
703 * modules/unictype/category-Pi-tests (Files): Likewise.
704 * modules/unictype/category-Po-tests (Files): Likewise.
705 * modules/unictype/category-Ps-tests (Files): Likewise.
706 * modules/unictype/category-S-tests (Files): Likewise.
707 * modules/unictype/category-Sc-tests (Files): Likewise.
708 * modules/unictype/category-Sk-tests (Files): Likewise.
709 * modules/unictype/category-Sm-tests (Files): Likewise.
710 * modules/unictype/category-So-tests (Files): Likewise.
711 * modules/unictype/category-Z-tests (Files): Likewise.
712 * modules/unictype/category-Zl-tests (Files): Likewise.
713 * modules/unictype/category-Zp-tests (Files): Likewise.
714 * modules/unictype/category-Zs-tests (Files): Likewise.
715 * modules/unictype/category-and-not-tests (Files): Likewise.
716 * modules/unictype/category-and-tests (Files): Likewise.
717 * modules/unictype/category-byname-tests (Files): Likewise.
718 * modules/unictype/category-name-tests (Files): Likewise.
719 * modules/unictype/category-none-tests (Files): Likewise.
720 * modules/unictype/category-of-tests (Files): Likewise.
721 * modules/unictype/category-or-tests (Files): Likewise.
722 * modules/unictype/category-test-withtable-tests (Files): Likewise.
723 * modules/unictype/combining-class-tests (Files): Likewise.
724 * modules/unictype/ctype-alnum-tests (Files): Likewise.
725 * modules/unictype/ctype-alpha-tests (Files): Likewise.
726 * modules/unictype/ctype-blank-tests (Files): Likewise.
727 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
728 * modules/unictype/ctype-digit-tests (Files): Likewise.
729 * modules/unictype/ctype-graph-tests (Files): Likewise.
730 * modules/unictype/ctype-lower-tests (Files): Likewise.
731 * modules/unictype/ctype-print-tests (Files): Likewise.
732 * modules/unictype/ctype-punct-tests (Files): Likewise.
733 * modules/unictype/ctype-space-tests (Files): Likewise.
734 * modules/unictype/ctype-upper-tests (Files): Likewise.
735 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
736 * modules/unictype/decimal-digit-tests (Files): Likewise.
737 * modules/unictype/digit-tests (Files): Likewise.
738 * modules/unictype/mirror-tests (Files): Likewise.
739 * modules/unictype/numeric-tests (Files): Likewise.
740 * modules/unictype/property-alphabetic-tests (Files): Likewise.
741 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
742 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
743 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
745 * modules/unictype/property-bidi-block-separator-tests (Files):
747 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
749 * modules/unictype/property-bidi-common-separator-tests (Files):
751 * modules/unictype/property-bidi-control-tests (Files): Likewise.
752 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
754 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
756 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
758 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
759 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
761 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
762 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
764 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
765 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
766 * modules/unictype/property-bidi-segment-separator-tests (Files):
768 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
769 * modules/unictype/property-byname-tests (Files): Likewise.
770 * modules/unictype/property-combining-tests (Files): Likewise.
771 * modules/unictype/property-composite-tests (Files): Likewise.
772 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
773 * modules/unictype/property-dash-tests (Files): Likewise.
774 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
775 * modules/unictype/property-default-ignorable-code-point-tests (Files):
777 * modules/unictype/property-deprecated-tests (Files): Likewise.
778 * modules/unictype/property-diacritic-tests (Files): Likewise.
779 * modules/unictype/property-extender-tests (Files): Likewise.
780 * modules/unictype/property-format-control-tests (Files): Likewise.
781 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
782 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
783 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
784 * modules/unictype/property-hex-digit-tests (Files): Likewise.
785 * modules/unictype/property-hyphen-tests (Files): Likewise.
786 * modules/unictype/property-id-continue-tests (Files): Likewise.
787 * modules/unictype/property-id-start-tests (Files): Likewise.
788 * modules/unictype/property-ideographic-tests (Files): Likewise.
789 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
790 * modules/unictype/property-ids-trinary-operator-tests (Files):
792 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
793 * modules/unictype/property-iso-control-tests (Files): Likewise.
794 * modules/unictype/property-join-control-tests (Files): Likewise.
795 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
796 * modules/unictype/property-line-separator-tests (Files): Likewise.
797 * modules/unictype/property-logical-order-exception-tests (Files):
799 * modules/unictype/property-lowercase-tests (Files): Likewise.
800 * modules/unictype/property-math-tests (Files): Likewise.
801 * modules/unictype/property-non-break-tests (Files): Likewise.
802 * modules/unictype/property-not-a-character-tests (Files): Likewise.
803 * modules/unictype/property-numeric-tests (Files): Likewise.
804 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
805 * modules/unictype/property-other-default-ignorable-code-point-tests
807 * modules/unictype/property-other-grapheme-extend-tests (Files):
809 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
810 * modules/unictype/property-other-id-start-tests (Files): Likewise.
811 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
812 * modules/unictype/property-other-math-tests (Files): Likewise.
813 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
814 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
815 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
816 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
817 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
818 * modules/unictype/property-private-use-tests (Files): Likewise.
819 * modules/unictype/property-punctuation-tests (Files): Likewise.
820 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
821 * modules/unictype/property-radical-tests (Files): Likewise.
822 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
823 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
824 * modules/unictype/property-space-tests (Files): Likewise.
825 * modules/unictype/property-terminal-punctuation-tests (Files):
827 * modules/unictype/property-test-tests (Files): Likewise.
828 * modules/unictype/property-titlecase-tests (Files): Likewise.
829 * modules/unictype/property-unassigned-code-value-tests (Files):
831 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
832 * modules/unictype/property-uppercase-tests (Files): Likewise.
833 * modules/unictype/property-variation-selector-tests (Files): Likewise.
834 * modules/unictype/property-white-space-tests (Files): Likewise.
835 * modules/unictype/property-xid-continue-tests (Files): Likewise.
836 * modules/unictype/property-xid-start-tests (Files): Likewise.
837 * modules/unictype/property-zero-width-tests (Files): Likewise.
838 * modules/unictype/scripts-tests (Files): Likewise.
839 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
840 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
841 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
842 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
843 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
844 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
845 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
846 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
847 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
848 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
849 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
850 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
851 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
852 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
853 * modules/uninorm/composition-tests (Files): Likewise.
854 * modules/uninorm/decomposing-form-tests (Files): Likewise.
855 * modules/uninorm/decomposition-tests (Files): Likewise.
856 * modules/uninorm/filter-tests (Files): Likewise.
857 * modules/uninorm/nfc-tests (Files): Likewise.
858 * modules/uninorm/nfd-tests (Files): Likewise.
859 * modules/uninorm/nfkc-tests (Files): Likewise.
860 * modules/uninorm/nfkd-tests (Files): Likewise.
861 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
862 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
863 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
864 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
865 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
866 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
867 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
868 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
869 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
870 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
871 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
872 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
873 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
874 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
875 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
876 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
877 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
878 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
879 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
880 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
881 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
882 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
883 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
884 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
885 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
886 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
887 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
888 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
889 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
890 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
891 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
892 * modules/uniwidth/u8-width-tests (Files): Likewise.
893 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
894 * modules/uniwidth/u16-width-tests (Files): Likewise.
895 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
896 * modules/uniwidth/u32-width-tests (Files): Likewise.
897 * modules/uniwidth/width-tests (Files): Likewise.
898 * modules/unlink-tests (Files): Likewise.
899 * modules/unsetenv-tests (Files): Likewise.
900 * modules/usleep-tests (Files): Likewise.
901 * modules/utimens-tests (Files): Likewise.
902 * modules/utimensat-tests (Files): Likewise.
903 * modules/vasnprintf-posix-tests (Files): Likewise.
904 * modules/vasnprintf-tests (Files): Likewise.
905 * modules/vasprintf-posix-tests (Files): Likewise.
906 * modules/vasprintf-tests (Files): Likewise.
907 * modules/vdprintf-posix-tests (Files): Likewise.
908 * modules/vfprintf-posix-tests (Files): Likewise.
909 * modules/vprintf-posix-tests (Files): Likewise.
910 * modules/vsnprintf-posix-tests (Files): Likewise.
911 * modules/vsnprintf-tests (Files): Likewise.
912 * modules/vsprintf-posix-tests (Files): Likewise.
913 * modules/wcrtomb-tests (Files): Likewise.
914 * modules/wcsnrtombs-tests (Files): Likewise.
915 * modules/wcsrtombs-tests (Files): Likewise.
916 * modules/wctype-tests (Files): Likewise.
917 * modules/wcwidth-tests (Files): Likewise.
918 * modules/xmemdup0-tests (Files): Likewise.
919 * modules/xprintf-posix-tests (Files): Likewise.
920 * modules/xvasprintf-tests (Files): Likewise.
922 2009-12-24 Eric Blake <ebb9@byu.net>
924 test-nanosleep: fix typo
925 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
927 Reported by Bruno Haible.
929 2009-12-24 Bruno Haible <bruno@clisp.org>
931 Reduce namespace pollution on glibc systems.
932 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
933 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
935 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
936 <getopt.h> on glibc systems.
937 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
939 * lib/fcntl.c: Include <unistd.h> here instead.
941 2009-12-24 Bruno Haible <bruno@clisp.org>
943 * lib/stdlib.in.h (includes): Fix typo in today's commit.
945 2009-12-24 Eric Blake <ebb9@byu.net>
947 tests: add signature checks
948 * tests/signature.h (SIGNATURE_CHECK): New file.
949 * modules/atexit-tests (Files): Use it.
950 * modules/btowc-tests (Files): Likewise.
951 * modules/canonicalize-lgpl-tests (Files): Likewise.
952 * modules/ceilf-tests (Files): Likewise.
953 * modules/ceill-tests (Files): Likewise.
954 * modules/chown-tests (Files): Likewise.
955 * modules/dprintf-posix-tests (Files): Likewise.
956 * modules/dup2-tests (Files): Likewise.
957 * modules/dup3-tests (Files): Likewise.
958 * modules/duplocale-tests (Files): Likewise.
959 * modules/fchdir-tests (Files): Likewise.
960 * modules/fcntl-tests (Files): Likewise.
961 * modules/fdopendir-tests (Files): Likewise.
962 * modules/fflush-tests (Files): Likewise.
963 * modules/flock-tests (Files): Likewise.
964 * modules/floorf-tests (Files): Likewise.
965 * modules/floorl-tests (Files): Likewise.
966 * modules/fnmatch-tests (Files): Likewise.
967 * modules/fopen-tests (Files): Likewise.
968 * modules/fprintf-posix-tests (Files): Likewise.
969 * modules/freopen-tests (Files): Likewise.
970 * modules/frexp-nolibm-tests (Files): Likewise.
971 * modules/frexp-tests (Files): Likewise.
972 * modules/frexpl-nolibm-tests (Files): Likewise.
973 * modules/frexpl-tests (Files): Likewise.
974 * modules/fseek-tests (Files): Likewise.
975 * modules/fseeko-tests (Files): Likewise.
976 * modules/fsync-tests (Files): Likewise.
977 * modules/ftell-tests (Files): Likewise.
978 * modules/ftello-tests (Files): Likewise.
979 * modules/futimens-tests (Files): Likewise.
980 * modules/getaddrinfo-tests (Files): Likewise.
981 * modules/getcwd-tests (Files): Likewise.
982 * modules/getdelim-tests (Files): Likewise.
983 * modules/getdtablesize-tests (Files): Likewise.
984 * modules/getgroups-tests (Files): Likewise.
985 * modules/gethostname-tests (Files): Likewise.
986 * modules/getline-tests (Files): Likewise.
987 * modules/getopt-posix-tests (Files): Likewise.
988 * modules/gettimeofday-tests (Files): Likewise.
989 * modules/glob-tests (Files): Likewise.
990 * modules/iconv-tests (Files): Likewise.
991 * modules/inet_ntop-tests (Files): Likewise.
992 * modules/inet_pton-tests (Files): Likewise.
993 * modules/isblank-tests (Files): Likewise.
994 * modules/lchown-tests (Files): Likewise.
995 * modules/ldexpl-tests (Files): Likewise.
996 * modules/link-tests (Files): Likewise.
997 * modules/linkat-tests (Files): Likewise.
998 * modules/lseek-tests (Files): Likewise.
999 * modules/lstat-tests (Files): Likewise.
1000 * modules/mbrtowc-tests (Files): Likewise.
1001 * modules/mbsinit-tests (Files): Likewise.
1002 * modules/mbsnrtowcs-tests (Files): Likewise.
1003 * modules/mbsrtowcs-tests (Files): Likewise.
1004 * modules/memchr-tests (Files): Likewise.
1005 * modules/memcmp-tests (Files): Likewise.
1006 * modules/memmem-tests (Files): Likewise.
1007 * modules/memrchr-tests (Files): Likewise.
1008 * modules/mkdir-tests (Files): Likewise.
1009 * modules/mkfifo-tests (Files): Likewise.
1010 * modules/mkfifoat-tests (Files): Likewise.
1011 * modules/mknod-tests (Files): Likewise.
1012 * modules/nanosleep-tests (Files): Likewise.
1013 * modules/nl_langinfo-tests (Files): Likewise.
1014 * modules/obstack-printf-tests (Files): Likewise.
1015 * modules/open-tests (Files): Likewise.
1016 * modules/openat-tests (Files): Likewise.
1017 * modules/perror-tests (Files): Likewise.
1018 * modules/pipe2-tests (Files): Likewise.
1019 * modules/poll-tests (Files): Likewise.
1020 * modules/popen-tests (Files): Likewise.
1021 * modules/posix_spawn-tests (Files): Likewise.
1022 * modules/posix_spawnp-tests (Files): Likewise.
1023 * modules/pread-tests (Files): Likewise.
1024 * modules/printf-posix-tests (Files): Likewise.
1025 * modules/pty-tests (Files): Likewise.
1026 * modules/random_r-tests (Files): Likewise.
1027 * modules/rawmemchr-tests (Files): Likewise.
1028 * modules/readlink-tests (Files): Likewise.
1029 * modules/remove-tests (Files): Likewise.
1030 * modules/rename-tests (Files): Likewise.
1031 * modules/renameat-tests (Files): Likewise.
1032 * modules/rmdir-tests (Files): Likewise.
1033 * modules/round-tests (Files): Likewise.
1034 * modules/roundf-tests (Files): Likewise.
1035 * modules/roundl-tests (Files): Likewise.
1036 * modules/select-tests (Files): Likewise.
1037 * modules/setenv-tests (Files): Likewise.
1038 * modules/sigaction-tests (Files): Likewise.
1039 * modules/sleep-tests (Files): Likewise.
1040 * modules/snprintf-posix-tests (Files): Likewise.
1041 * modules/snprintf-tests (Files): Likewise.
1042 * modules/sprintf-posix-tests (Files): Likewise.
1043 * modules/stat-tests (Files): Likewise.
1044 * modules/strcasestr-tests (Files): Likewise.
1045 * modules/strchrnul-tests (Files): Likewise.
1046 * modules/strerror-tests (Files): Likewise.
1047 * modules/strsignal-tests (Files): Likewise.
1048 * modules/strstr-tests (Files): Likewise.
1049 * modules/strtod-tests (Files): Likewise.
1050 * modules/strverscmp-tests (Files): Likewise.
1051 * modules/symlink-tests (Files): Likewise.
1052 * modules/symlinkat-tests (Files): Likewise.
1053 * modules/times-tests (Files): Likewise.
1054 * modules/trunc-tests (Files): Likewise.
1055 * modules/truncf-tests (Files): Likewise.
1056 * modules/truncl-tests (Files): Likewise.
1057 * modules/tsearch-tests (Files): Likewise.
1058 * modules/uname-tests (Files): Likewise.
1059 * modules/unlink-tests (Files): Likewise.
1060 * modules/unsetenv-tests (Files): Likewise.
1061 * modules/usleep-tests (Files): Likewise.
1062 * modules/utimensat-tests (Files): Likewise.
1063 * modules/vasprintf-tests (Files): Likewise.
1064 * modules/vdprintf-posix-tests (Files): Likewise.
1065 * modules/vfprintf-posix-tests (Files): Likewise.
1066 * modules/vprintf-posix-tests (Files): Likewise.
1067 * modules/vsnprintf-posix-tests (Files): Likewise.
1068 * modules/vsnprintf-tests (Files): Likewise.
1069 * modules/vsprintf-posix-tests (Files): Likewise.
1070 * modules/wcrtomb-tests (Files): Likewise.
1071 * modules/wcsnrtombs-tests (Files): Likewise.
1072 * modules/wcsrtombs-tests (Files): Likewise.
1073 * modules/wcwidth-tests (Files): Likewise.
1074 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
1075 * tests/test-isinf.c (isinf): Likewise.
1076 * tests/test-isnan.c (isnan): Likewise.
1077 * tests/test-signbit.c (signbit): Likewise.
1078 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
1079 declaration, either as macro or with correct signature.
1080 (select): Ensure function under test is declared with correct
1081 signature in correct header.
1082 * tests/test-atexit.c (atexit): Likewise.
1083 * tests/test-btowc.c (btowc): Likewise.
1084 * tests/test-canonicalize-lgpl.c (realpath)
1085 (canonicalize_file_name): Likewise.
1086 * tests/test-ceilf1.c (ceilf): Likewise.
1087 * tests/test-ceill.c (ceill): Likewise.
1088 * tests/test-chown.c (chown): Likewise.
1089 * tests/test-dprintf-posix.c (dprintf): Likewise.
1090 * tests/test-dup2.c (dup2): Likewise.
1091 * tests/test-dup3.c (dup3): Likewise.
1092 * tests/test-duplocale.c (duplocale): Likewise.
1093 * tests/test-fchdir.c (fchdir): Likewise.
1094 * tests/test-fchownat.c (fchownat): Likewise.
1095 * tests/test-fcntl.c (fcntl): Likewise.
1096 * tests/test-fdopendir.c (fdopendir): Likewise.
1097 * tests/test-fflush.c (fflush): Likewise.
1098 * tests/test-flock.c (flock): Likewise.
1099 * tests/test-floorf1.c (floorf): Likewise.
1100 * tests/test-floorl.c (floorl): Likewise.
1101 * tests/test-fnmatch.c (fnmatch): Likewise.
1102 * tests/test-fopen.c (fopen): Likewise.
1103 * tests/test-fprintf-posix.c (fprintf): Likewise.
1104 * tests/test-freopen.c (freopen): Likewise.
1105 * tests/test-frexp.c (frexp): Likewise.
1106 * tests/test-frexpl.c (frexpl): Likewise.
1107 * tests/test-fseek.c (fseek): Likewise.
1108 * tests/test-fseeko.c (fseeko): Likewise.
1109 * tests/test-fstatat.c (fstatat): Likewise.
1110 * tests/test-fsync.c (fsync): Likewise.
1111 * tests/test-ftell.c (ftell): Likewise.
1112 * tests/test-ftello.c (ftello): Likewise.
1113 * tests/test-futimens.c (futimens): Likewise.
1114 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
1115 (gai_strerror): Likewise.
1116 * tests/test-getcwd.c (getcwd): Likewise.
1117 * tests/test-getdelim.c (getdelim): Likewise.
1118 * tests/test-getdtablesize.c (getdtablesize): Likewise.
1119 * tests/test-getgroups.c (getgroups): Likewise.
1120 * tests/test-gethostname.c (gethostname): Likewise.
1121 * tests/test-getline.c (getline): Likewise.
1122 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
1124 * tests/test-gettimeofday.c (gettimeofday): Likewise.
1125 * tests/test-glob.c (glob, globfree): Likewise.
1126 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
1127 * tests/test-inet_ntop.c (inet_ntop): Likewise.
1128 * tests/test-inet_pton.c (inet_pton): Likewise.
1129 * tests/test-isblank.c (isblank): Likewise.
1130 * tests/test-lchown.c (lchown): Likewise.
1131 * tests/test-ldexpl.c (ldexpl): Likewise.
1132 * tests/test-link.c (link): Likewise.
1133 * tests/test-linkat.c (linkat): Likewise.
1134 * tests/test-lseek.c (lseek): Likewise.
1135 * tests/test-lstat.c (lstat): Likewise.
1136 * tests/test-mbrtowc.c (mbrtowc): Likewise.
1137 * tests/test-mbsinit.c (mbsinit): Likewise.
1138 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
1139 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
1140 * tests/test-memchr.c (memchr): Likewise.
1141 * tests/test-memcmp.c (memcmp): Likewise.
1142 * tests/test-memmem.c (memmem): Likewise.
1143 * tests/test-memrchr.c (memrchr): Likewise.
1144 * tests/test-mkdir.c (mkdir): Likewise.
1145 * tests/test-mkdirat.c (mkdirat): Likewise.
1146 * tests/test-mkfifo.c (mkfifo): Likewise.
1147 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
1148 * tests/test-mknod.c (mknod): Likewise.
1149 * tests/test-nanosleep.c (nanosleep): Likewise.
1150 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
1151 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
1153 * tests/test-open.c (open): Likewise.
1154 * tests/test-openat.c (openat): Likewise.
1155 * tests/test-perror.c (perror): Likewise.
1156 * tests/test-pipe2.c (pipe2): Likewise.
1157 * tests/test-poll.c (poll): Likewise.
1158 * tests/test-popen.c (popen, pclose): Likewise.
1159 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
1160 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
1161 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
1162 (posix_spawn_file_actions_destroy)
1163 (posix_spawn_file_actions_addclose)
1164 (posix_spawn_file_actions_addopen)
1165 (posix_spawn_file_actions_adddup2): Likewise.
1166 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
1167 * tests/test-pread.c (pread): Likewise.
1168 * tests/test-printf-posix.c (printf): Likewise.
1169 * tests/test-pty.c (openpty, forkpty): Likewise.
1170 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
1171 (random_r): Likewise.
1172 * tests/test-rawmemchr.c (rawmemchr): Likewise.
1173 * tests/test-readlink.c (readlink): Likewise.
1174 * tests/test-remove.c (remove): Likewise.
1175 * tests/test-rename.c (rename): Likewise.
1176 * tests/test-renameat.c (renameat): Likewise.
1177 * tests/test-rmdir.c (rmdir): Likewise.
1178 * tests/test-round1.c (round): Likewise.
1179 * tests/test-roundf1.c (roundf): Likewise.
1180 * tests/test-roundl.c (roundl): Likewise.
1181 * tests/test-setenv.c (setenv): Likewise.
1182 * tests/test-sigaction.c (sigaction): Likewise.
1183 * tests/test-sleep.c (sleep): Likewise.
1184 * tests/test-snprintf.c (snprintf): Likewise.
1185 * tests/test-sprintf-posix.c (sprintf): Likewise.
1186 * tests/test-stat.c (stat): Likewise.
1187 * tests/test-stpncpy.c (stpncpy): Likewise.
1188 * tests/test-strcasestr.c (strcasestr): Likewise.
1189 * tests/test-strchrnul.c (strchrnul): Likewise.
1190 * tests/test-strerror.c (strerror): Likewise.
1191 * tests/test-strsignal.c (strsignal): Likewise.
1192 * tests/test-strstr.c (strstr): Likewise.
1193 * tests/test-strtod.c (strtod): Likewise.
1194 * tests/test-strverscmp.c (strverscmp): Likewise.
1195 * tests/test-symlink.c (symlink): Likewise.
1196 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
1197 * tests/test-times.c (times): Likewise.
1198 * tests/test-trunc1.c (trunc): Likewise.
1199 * tests/test-truncf1.c (truncf): Likewise.
1200 * tests/test-truncl.c (truncl): Likewise.
1201 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
1203 * tests/test-uname.c (uname): Likewise.
1204 * tests/test-unlink.c (unlink): Likewise.
1205 * tests/test-unlinkat.c (unlinkat): Likewise.
1206 * tests/test-unsetenv.c (unsetenv): Likewise.
1207 * tests/test-usleep.c (usleep): Likewise.
1208 * tests/test-utimensat.c (utimensat): Likewise.
1209 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
1210 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
1211 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
1212 * tests/test-vprintf-posix.c (vprintf): Likewise.
1213 * tests/test-vsnprintf.c (vsnprintf): Likewise.
1214 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
1215 * tests/test-wcrtomb.c (wcrtomb): Likewise.
1216 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
1217 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
1218 * tests/test-wcwidth.c (wcwidth): Likewise.
1220 build: pull in conditional headers during GNULIB_POSIXCHECK
1221 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
1222 definitions from any conditionally-included headers.
1223 * lib/stdlib.in.h (includes): Likewise.
1224 * lib/unistd.in.h (includes): Likewise.
1226 2009-12-24 Bruno Haible <bruno@clisp.org>
1228 * tests/test-argv-iter.c: Include header file being tested immediately
1230 * tests/test-base64.c: Likewise.
1231 * tests/test-flock.c: Likewise.
1232 * tests/test-fsync.c: Likewise.
1233 * tests/test-getdate.c: Likewise.
1234 * tests/test-getndelim2.c: Likewise.
1235 * tests/test-isfinite.c: Likewise.
1236 * tests/test-isinf.c: Likewise.
1237 * tests/test-strerror.c: Likewise.
1238 * tests/test-strsignal.c: Likewise.
1240 2009-12-23 Eric Blake <ebb9@byu.net>
1242 unistd: work around cygwin bug
1243 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
1244 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
1245 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
1247 2009-12-23 Bruno Haible <bruno@clisp.org>
1249 localename: More tests.
1250 * tests/test-localename.c (SIZEOF): New macro.
1251 (categories): New variable.
1252 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
1253 test_locale_name_default): Add test w.r.t. thread locale.
1254 (test_locale_name_thread): New function.
1257 localename: Make aware of thread locale.
1258 * lib/localename.h (gl_locale_name_thread): New declaration.
1259 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
1260 behaviour with respect to thread locale.
1261 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
1262 <langinfo.h>, glthread/lock.h.
1263 (SIZE_BITS): New macro.
1264 (string_hash): New function.
1265 (struct hash_node): New type.
1266 (HASH_TABLE_SIZE): New macro.
1267 (struniq_hash_table, struniq_lock): New variables.
1268 (struniq): New function.
1269 (gl_locale_name_thread): New function.
1270 (gl_locale_name): Invoke it.
1271 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
1272 * modules/localename (Depends-on): Add lock.
1273 Reported by Mike Gran <spk121@yahoo.com>.
1275 2009-12-23 Eric Blake <ebb9@byu.net>
1278 * modules/va-args: New file.
1279 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
1280 * MODULES.html.sh (Core language properties): Mention it.
1282 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
1283 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
1284 named alias for __attribute__((__unused__)).
1285 * lib/chown.c: Update client.
1286 * lib/fchmodat.c: Likewise.
1287 * lib/fts.c: Likewise.
1288 * lib/getdate.y: Likewise.
1289 * lib/getgroups.c: Likewise.
1290 * lib/getopt.c: Likewise.
1291 * lib/getugroups.c: Likewise.
1292 * lib/mkdir.c: Likewise.
1293 * lib/mkfifo.c: Likewise.
1294 * lib/mkfifoat.c: Likewise.
1295 * lib/mknod.c: Likewise.
1296 * lib/mknodat.c: Likewise.
1297 * lib/readlink.c: Likewise.
1298 * lib/se-context.in.h: Likewise.
1299 * lib/se-selinux.in.h: Likewise.
1300 * lib/sockets.c: Likewise.
1301 * lib/symlink.c: Likewise.
1302 * lib/symlinkat.c: Likewise.
1303 * lib/unicodeio.c: Likewise.
1304 * lib/unistr.h: Likewise.
1305 * tests/test-areadlink.c: Likewise.
1306 * tests/test-areadlinkat.c: Likewise.
1307 * tests/test-filenamecat.c: Likewise.
1308 * tests/test-fseeko.c: Likewise.
1309 * tests/test-ftello.c: Likewise.
1310 * tests/test-getdate.c: Likewise.
1311 * tests/test-getgroups.c: Likewise.
1312 * tests/test-gethostname.c: Likewise.
1313 * tests/test-quotearg.c: Likewise.
1314 * tests/test-version-etc.c: Likewise.
1315 * tests/test-xalloc-die.c: Likewise.
1316 * tests/test-xfprintf-posix.c: Likewise.
1317 * tests/test-xprintf-posix.c: Likewise.
1318 * tests/test-xvasprintf.c: Likewise.
1320 tests: avoid compiler warnings
1321 * tests/test-fcntl.c (main): Delete unused parameters.
1322 * tests/test-freopen-safer.c (main): Likewise.
1323 * tests/test-xalloc-die.c (main): Mark unused parameters.
1324 * tests/test-fseeko.c (main): Likewise.
1325 * tests/test-ftello.c (main): Likewise.
1326 * tests/test-nanosleep.c (main): Avoid declaration warning.
1327 * tests/test-sleep.c (main): Likewise.
1328 * tests/test-unsetenv.c (main): Silence warning about string
1330 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1332 2009-12-23 Bruno Haible <bruno@clisp.org>
1334 * tests/test-localename.c (test_locale_name): New function, extracted
1335 from main. Also test mixed situations.
1336 (test_locale_name_posix, test_locale_name_environ,
1337 test_locale_name_default): New functions.
1338 (main): Invoke them all.
1339 * modules/localename-tests (configure.ac): Test for newlocale.
1341 2009-12-23 Bruno Haible <bruno@clisp.org>
1343 unistd: Ensure getcwd gets declared before being overridden.
1344 * lib/unistd.in.h: Conditionally include <io.h>.
1346 2009-12-22 Bruno Haible <bruno@clisp.org>
1348 wchar: Diagnose broken combination of glibc and gcc versions and flags.
1349 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
1350 (gl_WCHAR_H): Invoke it.
1351 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
1352 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
1353 Reported by Karl Berry <karl@freefriends.org>.
1355 2009-12-22 Eric Blake <ebb9@byu.net>
1357 math, unistd: avoid redundant includes
1358 * lib/math.in.h (isnan): No need to re-include <math.h>.
1359 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
1361 getsubopt: work around cygwin bug
1362 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
1363 avoid conflicting with system getsubopt.
1364 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
1367 getopt: synchronize from glibc
1368 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
1369 parameter order. Adjust all callers.
1370 (_getopt_internal_r, main): Adjust quoting in error messages.
1371 Drop considerations for outdated POSIX 1003.2 error message.
1372 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
1374 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
1376 test-getopt: test stderr behavior
1377 * modules/getopt-posix-tests (Depends-on): Add dup2.
1378 * tests/test-getopt.c (ASSERT): Avoid stderr.
1379 (main): Move stderr to a temporary file.
1380 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
1381 Instead, add parameter to inform caller if output occurred.
1382 (test_getopt): Adjust all existing tests to expect silence, and
1383 add new tests of leading ":".
1384 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
1385 glibc shortcomings with leading "-:" or "+:" in optstring.
1386 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1388 * doc/posix-functions/getopt.texi (getopt): Likewise.
1390 test-getopt: enhance test
1391 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
1393 * tests/test-getopt.c (OPTIND_MIN): Move...
1394 * tests/test-getopt.h (OPTIND_MIN): ...here.
1395 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
1396 Require that optind=0 works, since modern BSD supports it in
1397 addition to optreset, and since coreutils expects it.
1398 (test_getopt_long_only): New test.
1399 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
1400 glibc shortcomings with 'W;', and enforcement of optind=0.
1401 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
1404 2009-12-21 Bruno Haible <bruno@clisp.org>
1406 localename: Improvements for MacOS X and Cygwin.
1407 * lib/localename.h (gl_locale_name_environ): New declaration.
1408 * lib/localename.c (gl_locale_name_environ): New function, extracted from
1409 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
1410 (gl_locale_name_posix): Invoke it.
1411 (gl_locale_name_default): Add comments. Use Windows native API also on
1414 2009-12-21 Bruno Haible <bruno@clisp.org>
1416 Update list of Win32 locale ids.
1417 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
1418 (LANG_SAMI): Renamed from LANG_SAAMI.
1419 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
1420 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
1421 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
1422 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
1423 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
1424 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
1425 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
1426 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
1427 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
1428 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
1429 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
1430 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
1431 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
1432 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
1433 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
1434 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
1435 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
1436 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
1437 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
1438 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
1439 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
1440 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
1441 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
1442 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
1443 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
1444 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
1445 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
1446 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
1447 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
1448 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
1449 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
1450 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
1451 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
1452 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
1453 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
1454 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
1455 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
1456 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
1457 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
1458 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
1459 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
1460 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
1461 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
1462 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
1463 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
1464 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
1465 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
1466 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
1467 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
1468 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
1469 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
1470 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
1471 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
1472 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
1473 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
1474 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
1475 Add more languages and countries for Sami, Sorbian. Add more countries
1476 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
1477 for Pashto. Change country for Syriac, Tswana.
1479 2009-12-21 Eric Blake <ebb9@byu.net>
1481 test-utimens: avoid spurious failure
1482 * tests/test-chown.h (nap): Factor...
1483 * tests/nap.h: ...into new file.
1484 * tests/test-lchown.h (nap): Avoid duplication.
1485 * tests/test-utimens-common.h (nap): Use shared implementation,
1486 necessary on file systems with 1-second resolution.
1487 * modules/chown-tests (Files): Include new file.
1488 * modules/fdutimensat-tests (Files): Likewise.
1489 * modules/futimens-tests (Files): Likewise.
1490 * modules/lchown-tests (Files): Likewise.
1491 * modules/openat-tests (Files): Likewise.
1492 * modules/utimens-tests (Files): Likewise.
1493 * modules/utimensat-tests (Files): Likewise.
1495 2009-12-19 Eric Blake <ebb9@byu.net>
1497 futimens, utimensat: work around Linux bug
1498 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
1499 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
1500 * lib/utimensat.c (rpl_utimensat): Work around it.
1501 * lib/futimens.c (rpl_futimens): Adjust comment.
1503 utimens: work around Linux ctime bug
1504 * lib/utimens.c (detect_ctime_bug): New helper function.
1505 (update_timespec): Differentiate between workaround needed for
1506 this bug vs. what is needed for systems that lack utimensat.
1507 (fdutimens, lutimens): Work around bug.
1509 utimens: check for ctime update
1510 * tests/test-utimens-common.h (check_ctime): Define.
1511 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
1512 * tests/test-futimens.h (test_futimens): Likewise.
1513 * tests/test-lutimens.h (test_lutimens): Likewise.
1514 * doc/posix-functions/futimens.texi (futimens): Document the bug.
1515 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
1517 2009-12-19 Bruno Haible <bruno@clisp.org>
1519 dprintf-posix: Check against memory leak fixed on 2009-12-15.
1520 * tests/test-dprintf-posix2.sh: New file.
1521 * tests/test-dprintf-posix2.c: New file.
1522 * modules/dprintf-posix-tests (Files): Add them.
1523 (configure.ac): Check for getrlimit and setrlimit.
1524 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
1526 2009-12-19 Bruno Haible <bruno@clisp.org>
1528 fprintf-posix: Check against memory leak fixed on 2009-12-15.
1529 * tests/test-fprintf-posix3.sh: New file.
1530 * tests/test-fprintf-posix3.c: New file.
1531 * modules/fprintf-posix-tests (Files): Add them.
1532 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
1534 2009-12-19 Eric Blake <ebb9@byu.net>
1536 dirfd: fix prototype
1537 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
1538 * lib/dirfd.c (dirfd): Likewise.
1540 canonicalize: reduce memory usage
1541 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
1543 Reported by Solar Designer <solar@openwall.com>.
1545 2009-12-19 Bruno Haible <bruno@clisp.org>
1547 New module attribute 'Applicability'.
1548 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
1549 * gnulib-tool: New option --extract-applicability.
1550 (func_usage): Document it.
1551 (sed_extract_prog): Recognize it.
1552 (func_get_applicability): New function.
1553 (func_import): Generalize handling of 'link-warning' module.
1554 * modules/link-warning (Applicability): New section.
1555 * modules/arg-nonnull (Applicability): New section.
1556 Repoted by Simon Josefsson <simon@josefsson.org>.
1558 2009-12-19 Bruno Haible <bruno@clisp.org>
1561 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
1562 * lib/fseeko.c (rpl_fseeko): Likewise.
1564 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
1566 * lib/gl_list.h: Fix typo in comment.
1568 2009-12-16 Eric Blake <ebb9@byu.net>
1570 fcntl: use to simplify other modules
1571 * modules/cloexec (Depends-on): Add fcntl.
1572 * modules/fchdir (Depends-on): Likewise.
1573 * modules/fd-safer-flag (Depends-on): Likewise.
1574 * modules/unistd-safer (Depends-on): Likewise.
1575 * modules/dup3 (configure.ac): Set module indicator.
1576 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
1578 * lib/fchdir.c (_gl_register_dup): Fix comment.
1579 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
1580 * lib/dup-safer.c (dup_safer): Likewise.
1581 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
1582 * lib/dup3.c (dup3): Likewise.
1583 * tests/test-fchdir.c (main): Enhance test.
1584 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
1586 fcntl: port portions of fcntl to mingw
1587 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
1588 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
1589 replacement for mingw.
1590 * modules/fcntl (Description): Update.
1591 (Depends-on): Add dup2.
1592 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
1593 * modules/fcntl-h (Makefile.am): Substitute it.
1594 * lib/fcntl.in.h (fcntl): Update declaration.
1595 (F_DUPFD, F_GETFD): New macros, when needed.
1596 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
1597 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
1598 * tests/test-fcntl.c (check_flags, main): Enhance test for items
1601 fcntl: work around cygwin bug in F_DUPFD
1602 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
1603 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
1604 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
1605 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
1606 * doc/posix-functions/fcntl.texi (fcntl): Document it.
1608 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
1609 * modules/fcntl (Files): List new files.
1610 (configure.ac): Run a test.
1611 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
1612 * lib/fcntl.c (rpl_fcntl): Likewise.
1613 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
1614 (gl_FCNTL_H): Always replace fcntl.h.
1615 * modules/fcntl-h (Makefile.am): Substitute witnesses.
1616 * lib/fcntl.in.h (fcntl): Declare replacement.
1617 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
1618 needed, plus a witness.
1619 * doc/posix-functions/fcntl.texi (fcntl): Document this.
1620 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
1621 * tests/test-fcntl.c: New file.
1622 * modules/fcntl-tests: Likewise.
1624 binary-io: avoid potential compilation warning
1625 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
1628 fflush: avoid compilation error on NetBSD
1629 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
1630 between off_t and fpos_t, since the latter is sometimes a struct.
1631 * lib/fseeko.c (rpl_fseeko): Likewise.
1632 Reported by Alexander Nasonov <alnsn@yandex.ru>.
1634 2009-12-15 Eric Blake <ebb9@byu.net>
1636 fcntl-h, stdio, sys_ioctl: fix declarations
1637 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
1638 function must not take arguments.
1639 * lib/sys_ioctl.in.h (ioctl): Likewise.
1640 * lib/fcntl.in.h (openat): Likewise. Declare extern.
1641 (open): Add a link warning.
1643 2009-12-15 Jim Meyering <meyering@redhat.com>
1645 areadlink, areadlink-with-size: relax license to LGPLv2+
1646 * modules/areadlink (License): Relax to LGPLv2+.
1647 * modules/areadlink-with-size (License): Likewise.
1649 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
1650 Bruno Haible <bruno@clisp.org>
1652 *printf: Fix memory leak.
1653 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
1654 * lib/vfprintf.c (vfprintf): Likewise.
1655 * lib/dprintf.c (dprintf): Likewise.
1656 * lib/vdprintf.c (vdprintf): Likewise.
1658 2009-12-14 Eric Blake <ebb9@byu.net>
1660 accept4: adjust module dependencies
1661 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
1663 utimens: one more try at avoiding compiler warning
1664 * lib/utimens.c (lutimens): Lower scope of result.
1666 2009-12-13 Bruno Haible <bruno@clisp.org>
1668 Move the malloc checking from module 'list' to new module 'xlist'.
1669 * modules/xlist: New file.
1670 * lib/gl_xlist.h: New file.
1671 * lib/gl_xlist.c: New file.
1672 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
1673 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
1674 gl_list_add_last, gl_list_add_before, gl_list_add_after,
1675 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
1676 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
1677 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
1678 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
1679 gl_sortedlist_nx_add): New declarations.
1680 (struct gl_list_implementation): Rename and change methods accordingly.
1681 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
1682 (gl_list_nx_create): Renamed from gl_list_create.
1683 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
1684 (gl_list_nx_set_at): Renamed from gl_list_set_at.
1685 (gl_list_nx_add_first): Renamed from gl_list_add_first.
1686 (gl_list_nx_add_last): Renamed from gl_list_add_last.
1687 (gl_list_nx_add_before): Renamed from gl_list_add_before.
1688 (gl_list_nx_add_after): Renamed from gl_list_add_after.
1689 (gl_list_nx_add_at): Renamed from gl_list_add_at.
1690 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
1691 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
1692 gl_list_create_empty.
1693 (gl_list_nx_create): Renamed from gl_list_create.
1694 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
1695 (gl_list_nx_set_at): Renamed from gl_list_set_at.
1696 (gl_list_nx_add_first): Renamed from gl_list_add_first.
1697 (gl_list_nx_add_last): Renamed from gl_list_add_last.
1698 (gl_list_nx_add_before): Renamed from gl_list_add_before.
1699 (gl_list_nx_add_after): Renamed from gl_list_add_after.
1700 (gl_list_nx_add_at): Renamed from gl_list_add_at.
1701 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
1702 * lib/gl_array_list.c: Don't include xalloc.h.
1703 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
1704 NULL upon out-of-memory.
1705 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
1707 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
1708 Change return type to 'int'.
1709 (gl_array_nx_set_at): Renamed from gl_array_set_at.
1710 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
1711 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
1713 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
1715 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
1717 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
1719 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
1721 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
1723 (gl_array_list_implementation): Update.
1724 * lib/gl_carray_list.c: Don't include xalloc.h.
1725 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
1726 Return NULL upon out-of-memory.
1727 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
1729 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
1730 Change return type to 'int'.
1731 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
1732 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
1733 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
1735 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
1737 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
1739 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
1740 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
1741 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
1743 (gl_carray_list_implementation): Update.
1744 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
1745 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
1746 gl_linked_create_empty. Return NULL upon out-of-memory.
1747 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
1749 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
1750 Change return type to 'int'. Return -1 upon out-of-memory.
1751 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
1753 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
1755 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
1757 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
1758 NULL upon out-of-memory.
1759 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
1761 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
1763 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
1765 * lib/gl_linked_list.c: Don't include xalloc.h.
1766 (gl_linked_list_implementation): Update.
1767 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
1768 (add_to_bucket): Change return type to 'int'.
1769 (gl_linkedhash_list_implementation): Update.
1770 * lib/gl_anytree_list1.h (free_subtree): New function.
1771 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
1772 gl_tree_create_empty. Return NULL upon out-of-memory.
1773 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
1774 Change return type to 'int'. Return -1 upon out-of-memory.
1775 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
1777 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
1778 (gl_tree_remove_node): New function, moved here from
1779 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
1780 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
1782 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
1783 malloc, not xmalloc. Return NULL upon out-of-memory.
1784 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
1786 (gl_tree_remove_node_from_tree): New function, extracted from
1787 gl_tree_remove_node.
1788 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
1790 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
1792 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
1794 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
1796 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
1797 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
1798 not xmalloc. Return NULL upon out-of-memory.
1799 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
1801 (gl_tree_remove_node_from_tree): New function, extracted from
1802 gl_tree_remove_node.
1803 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
1805 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
1807 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
1809 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
1811 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
1812 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
1813 gl_anytree_list1.h before gl_anyavltree_list2.h.
1814 (gl_avltree_list_implementation): Update.
1815 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
1816 gl_anytree_list1.h before gl_anyavltree_list2.h.
1817 (gl_rbtree_list_implementation): Update.
1818 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
1819 Change return type to 'int'. Return -1 upon out-of-memory. Use
1821 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
1822 (gl_avltreehash_list_implementation): Update.
1823 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
1824 (gl_rbtreehash_list_implementation): Update.
1825 * modules/array-list (Depends-on): Remove xalloc.
1826 * modules/carray-list (Depends-on): Likewise.
1827 * modules/linked-list (Depends-on): Likewise.
1828 * modules/linkedhash-list (Depends-on): Likewise.
1829 * modules/avltree-list (Depends-on): Likewise.
1830 * modules/rbtree-list (Depends-on): Likewise.
1831 * modules/avltreehash-list (Depends-on): Likewise.
1832 * modules/rbtreehash-list (Depends-on): Likewise.
1834 * modules/xsublist: New file.
1835 * lib/gl_xsublist.h: New file.
1836 * lib/gl_xsublist.c: New file.
1837 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
1838 (gl_sublist_nx_create): New declaration.
1839 * lib/gl_sublist.c: Don't include xalloc.h.
1840 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
1841 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
1842 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
1843 Change return type to 'int'. Return -1 upon out-of-memory.
1844 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
1846 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
1847 NULL upon out-of-memory.
1848 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
1850 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
1851 NULL upon out-of-memory.
1852 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
1853 NULL upon out-of-memory.
1854 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
1856 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
1857 (gl_sublist_list_implementation): Update.
1858 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
1860 * modules/sublist (Depends-on): Remove xalloc.
1862 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
1863 * tests/test-carray_list.c: Likewise.
1864 * tests/test-linked_list.c: Likewise.
1865 * tests/test-linkedhash_list.c: Likewise.
1866 * tests/test-avltree_list.c: Likewise.
1867 * tests/test-rbtree_list.c: Likewise.
1868 * tests/test-avltreehash_list.c: Likewise.
1869 * tests/test-rbtreehash_list.c: Likewise.
1870 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
1871 * modules/carray-list-tests (Makefile.am): Likewise.
1872 * modules/linked-list-tests (Makefile.am): Likewise.
1873 * modules/linkedhash-list-tests (Makefile.am): Likewise.
1874 * modules/avltree-list-tests (Makefile.am): Likewise.
1875 * modules/rbtree-list-tests (Makefile.am): Likewise.
1876 * modules/avltreehash-list-tests (Makefile.am): Likewise.
1877 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
1879 * NEWS: Mention the changes.
1881 * lib/clean-temp.c: Include gl_xlist.h.
1882 * modules/clean-temp (Depends-on): Add xlist.
1884 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
1885 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
1887 * tests/test-array_oset.c: Include gl_xlist.h.
1888 * modules/array-oset-tests (Depends-on): Add xlist.
1890 Reported by José E. Marchesi <jemarch@gnu.org>.
1892 2009-12-13 Bruno Haible <bruno@clisp.org>
1894 Move the malloc checking from module 'oset' to new module 'xoset'.
1895 * modules/xoset: New file.
1896 * lib/gl_xoset.h: New file.
1897 * lib/gl_xoset.c: New file.
1898 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
1900 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
1901 (struct gl_oset_implementation): Rename and change methods accordingly.
1902 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
1903 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
1904 'int'. Mark as __warn_unused_result__.
1905 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
1906 gl_oset_create_empty.
1907 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
1909 * lib/gl_array_oset.c: Don't include xalloc.h.
1910 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
1911 malloc, not xmalloc.
1912 (grow): Change return type to 'int'. Don't call xalloc_die.
1913 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
1915 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
1917 (gl_array_oset_implementation): Update.
1918 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
1919 gl_tree_create_empty.
1920 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
1922 * lib/gl_avltree_oset.c: Don't include xalloc.h.
1923 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
1925 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
1927 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
1929 (gl_avltree_oset_implementation): Update.
1930 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
1931 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
1933 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
1935 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
1937 (gl_rbtree_oset_implementation): Update.
1938 * modules/array-oset (Depends-on): Remove xalloc.
1939 * modules/avltree-oset (Depends-on): Likewise.
1940 * modules/rbtree-oset (Depends-on): Likewise.
1941 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
1942 * tests/test-avltree_oset.c: Likewise.
1943 * tests/test-rbtree_oset.c: Likewise.
1944 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
1945 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
1946 * modules/rbtree-oset-tests (Makefile.am): Likewise.
1947 * NEWS: Mention the change.
1949 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
1951 maint.mk: allow a project to override release-prep commands
1952 * top/maint.mk (alpha, beta, stable): Move release-preparatory
1953 commands into a new rule.
1954 (release-prep): New rule.
1955 (release-prep-hook): New overridable variable.
1957 2009-12-13 Bruno Haible <bruno@clisp.org>
1959 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
1961 2009-12-13 Jim Meyering <meyering@redhat.com>
1963 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
1964 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
1966 2009-12-12 Bruno Haible <bruno@clisp.org>
1969 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
1971 2009-12-12 Karl Berry <karl@gnu.org>
1973 * config/srclist.txt (strtoll.c): tab changes, no more sync.
1975 2009-12-12 Bruno Haible <bruno@clisp.org>
1977 * m4/po.m4: Undo incorrect untabification.
1979 2009-12-12 Bruno Haible <bruno@clisp.org>
1981 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
1982 * modules/c-strtod (Depends-on): Add locale.
1983 * modules/c-strtold (Depends-on): Likewise.
1985 2009-12-12 Bruno Haible <bruno@clisp.org>
1987 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
1989 2009-12-11 Eric Blake <ebb9@byu.net>
1991 setenv: relax requirement in light of POSIX ruling
1992 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
1994 * tests/test-setenv.c (main): Relax test.
1995 * tests/test-unsetenv.c (main): Likewise.
1996 * doc/posix-functions/setenv.texi (setenv): Document this.
1997 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
1999 2009-12-11 Bruno Haible <bruno@clisp.org>
2001 New module 'fd-safer-flag'.
2002 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
2003 * lib/dup-safer.c (dup_safer_flag): Remove function.
2004 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
2005 * lib/fd-safer.c (fd_safer_flag): Remove function.
2006 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
2007 * modules/cloexec (configure.ac): Drop indicator macro.
2008 * modules/fd-safer-flag: New file.
2009 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
2010 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
2011 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
2013 2009-12-11 Bruno Haible <bruno@clisp.org>
2015 Tests for module 'nl_langinfo'.
2016 * modules/nl_langinfo-tests: New file.
2017 * tests/test-nl_langinfo.sh: New file.
2018 * tests/test-nl_langinfo.c: New file.
2020 New module 'nl_langinfo'.
2021 * lib/nl_langinfo.c: New file.
2022 * m4/nl_langinfo.m4: New file.
2023 * modules/nl_langinfo: New file.
2024 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
2026 2009-12-11 Bruno Haible <bruno@clisp.org>
2028 Tests for module 'langinfo'.
2029 * modules/langinfo-tests: New file.
2030 * tests/test-langinfo.c: New file.
2032 New module 'langinfo'.
2033 * lib/langinfo.in.h: New file.
2034 * m4/langinfo_h.m4: New file.
2035 * modules/langinfo: New file.
2036 * doc/posix-headers/langinfo.texi: Mention the new module.
2038 2009-12-11 Bruno Haible <bruno@clisp.org>
2040 * lib/config.charset: Untabify.
2042 2009-12-11 Bruno Haible <bruno@clisp.org>
2044 * modules/unistd-safer (configure.ac): Drop indicator macro.
2046 2009-12-11 Bruno Haible <bruno@clisp.org>
2048 Move pipe2-safer code to its own file.
2049 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
2050 * lib/pipe-safer.c (pipe2_safer): Remove function.
2051 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
2052 (Makefile.am): Add it to lib_SOURCES.
2054 2009-12-10 Bruno Haible <bruno@clisp.org>
2056 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
2058 2009-12-10 Bruno Haible <bruno@clisp.org>
2060 Declare which arguments expect non-NULL values, for GCC and clang.
2061 * build-aux/arg-nonnull.h: New file.
2062 * modules/arg-nonnull: New file.
2063 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
2064 (inet_ntop, inet_pton): Use it.
2065 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
2066 (closedir, dirfd, opendir, scandir, alphasort): Use it.
2067 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
2068 (open, openat): Use it.
2069 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
2071 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
2072 (getopt, getopt_long, getopt_long_only): Use it.
2073 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
2074 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
2076 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
2077 (iconv_open): Use it.
2078 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
2079 (strtoimax, strtoumax): Use it.
2080 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
2081 (duplocale): Use it.
2082 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
2083 (frexp, frexpl): Use it.
2084 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
2085 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
2086 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
2087 (tsearch, tfind, tdelete, twalk): Use it.
2088 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
2089 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
2090 sigpending): Use it.
2091 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
2092 (posix_spawn, posix_spawnp, posix_spawnattr_init,
2093 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
2094 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
2095 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
2096 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
2097 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
2098 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
2099 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
2100 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
2101 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
2103 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
2104 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
2105 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
2106 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
2107 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
2108 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
2109 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
2110 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
2111 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
2112 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
2113 strtoull, unsetenv): Use it.
2114 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
2115 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
2116 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
2117 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2118 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2119 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
2120 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
2121 (strcasecmp, strncasecmp): Use it.
2122 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
2123 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
2124 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
2125 rpl_setsockopt): Use it.
2126 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
2127 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
2128 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
2129 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
2130 (gettimeofday): Use it.
2131 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
2133 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
2135 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
2136 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
2137 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
2138 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
2139 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
2140 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
2141 unlinkat, write): Use it.
2142 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
2143 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
2144 * lib/argv-iter.h: Include arg-nonnull.h.
2145 (_ATTRIBUTE_NONNULL_): Remove macro.
2146 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
2147 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
2148 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
2150 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
2151 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
2152 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
2153 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
2154 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
2155 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
2156 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
2157 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
2158 * modules/arpa_inet (Depends-on): Add arg-nonnull.
2159 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
2160 * modules/dirent (Depends-on): Add arg-nonnull.
2161 (Makefile.am): Insert arg-nonnull.h into dirent.h.
2162 * modules/fcntl-h (Depends-on): Add arg-nonnull.
2163 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
2164 * modules/fnmatch (Depends-on): Add arg-nonnull.
2165 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
2166 * modules/getopt-posix (Depends-on): Add arg-nonnull.
2167 (Makefile.am): Insert arg-nonnull.h into getopt.h.
2168 * modules/glob (Depends-on): Add arg-nonnull.
2169 (Makefile.am): Insert arg-nonnull.h into glob.h.
2170 * modules/iconv_open (Depends-on): Add arg-nonnull.
2171 (Makefile.am): Insert arg-nonnull.h into iconv.h.
2172 * modules/inttypes (Depends-on): Add arg-nonnull.
2173 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
2174 * modules/locale (Depends-on): Add arg-nonnull.
2175 (Makefile.am): Insert arg-nonnull.h into locale.h.
2176 * modules/math (Depends-on): Add arg-nonnull.
2177 (Makefile.am): Insert arg-nonnull.h into math.h.
2178 * modules/netdb (Depends-on): Add arg-nonnull.
2179 (Makefile.am): Insert arg-nonnull.h into netdb.h.
2180 * modules/search (Depends-on): Add arg-nonnull.
2181 (Makefile.am): Insert arg-nonnull.h into search.h.
2182 * modules/signal (Depends-on): Add arg-nonnull.
2183 (Makefile.am): Insert arg-nonnull.h into signal.h.
2184 * modules/spawn (Depends-on): Add arg-nonnull.
2185 (Makefile.am): Insert arg-nonnull.h into spawn.h.
2186 * modules/stdio (Depends-on): Add arg-nonnull.
2187 (Makefile.am): Insert arg-nonnull.h into stdio.h.
2188 * modules/stdlib (Depends-on): Add arg-nonnull.
2189 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
2190 * modules/string (Depends-on): Add arg-nonnull.
2191 (Makefile.am): Insert arg-nonnull.h into string.h.
2192 * modules/strings (Depends-on): Add arg-nonnull.
2193 (Makefile.am): Insert arg-nonnull.h into strings.h.
2194 * modules/sys_socket (Depends-on): Add arg-nonnull.
2195 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
2196 * modules/sys_stat (Depends-on): Add arg-nonnull.
2197 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
2198 * modules/sys_time (Depends-on): Add arg-nonnull.
2199 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
2200 * modules/sys_times (Depends-on): Add arg-nonnull.
2201 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
2202 * modules/sys_utsname (Depends-on): Add arg-nonnull.
2203 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
2204 * modules/time (Depends-on): Add arg-nonnull.
2205 (Makefile.am): Insert arg-nonnull.h into time.h.
2206 * modules/unistd (Depends-on): Add arg-nonnull.
2207 (Makefile.am): Insert arg-nonnull.h into unistd.h.
2208 * modules/wchar (Depends-on): Add arg-nonnull.
2209 (Makefile.am): Insert arg-nonnull.h into wchar.h.
2210 * modules/argv-iter (Depends-on): Add arg-nonnull.
2211 * tests/test-canonicalize.c (null_ptr): New function.
2213 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
2215 * tests/test-memmem.c (null_ptr): New function.
2217 Reported by Jim Meyering.
2219 2009-12-10 Bruno Haible <bruno@clisp.org>
2221 Use spaces for indentation, not tabs.
2222 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
2223 * m4/*.m4: Untabify.
2224 * build-aux/*.h: Untabify.
2225 * tests/**/*.[hc]: Untabify.
2226 * README: New section "Indent with spaces, not TABs", based on
2227 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
2228 * NEWS: Mention the change.
2230 2009-12-10 Bruno Haible <bruno@clisp.org>
2232 pty test: Fix link error.
2233 * modules/pty-tests (Makefile.am): Add the default LDADD value to
2236 2009-12-07 Simon Josefsson <simon@josefsson.org>
2238 * modules/pty: New file.
2239 * modules/pty-tests: New file.
2240 * m4/pty.m4: New file.
2241 * tests/test-pty.c: New file.
2242 * doc/glibc-headers/pty.texi: Modified.
2243 * doc/glibc-functions/forkpty.texi: Modified.
2244 * doc/glibc-functions/openpty.texi: Modified.
2246 2009-12-10 Bruno Haible <bruno@clisp.org>
2248 Avoid syntax error in C++ mode.
2249 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
2251 2009-12-10 Bruno Haible <bruno@clisp.org>
2253 Use sed with option -e.
2254 * gnulib-tool (func_version, func_emit_copyright_notice,
2255 func_emit_initmacro_end, func_import, func_create_testdir): Pass
2257 * modules/link-warning (Makefile.am): Likewise.
2259 2009-12-10 Jim Meyering <meyering@redhat.com>
2261 mgetgroups: do not write bytes beyond end of malloc'd buffer
2262 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
2263 username, we call getgroups with a one-element-shorter buffer,
2264 but still told it the length was original, max_n_groups.
2266 2009-12-09 Eric Blake <ebb9@byu.net>
2268 cloexec: relax license
2269 * modules/cloexec (Maintainer): Add myself.
2270 (License): Use LGPL, not GPL.
2272 link-warning: optimize generation
2273 * modules/link-warning (Makefile.am): Reduce process usage.
2275 2009-12-09 Bruno Haible <bruno@clisp.org>
2277 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
2278 workaround was added on 2009-11-17.
2280 2009-12-09 Jim Meyering <meyering@redhat.com>
2281 Bruno Haible <bruno@clisp.org>
2283 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
2284 * modules/link-warning (Makefile.am): Make the comment-removing sed
2285 command more robust in the face of bootstrap-prepended comment lines.
2287 2009-12-09 Bruno Haible <bruno@clisp.org>
2289 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
2292 2009-12-09 Simon Josefsson <simon@josefsson.org>
2293 Bruno Haible <bruno@clisp.org>
2295 * build-aux/link-warning.h: Add copyright notice.
2296 * modules/link-warning (Makefile.am): Generate link-warning.h from
2297 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
2298 * NEWS: Mention change in link-warning module.
2299 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
2300 * modules/dirent (Makefile.am): Add dependency to dirent.h.
2301 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
2302 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
2303 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
2304 * modules/math (Makefile.am): Add dependency to math.h.
2305 * modules/search (Makefile.am): Add dependency to search.h.
2306 * modules/signal (Makefile.am): Add dependency to signal.h.
2307 * modules/spawn (Makefile.am): Add dependency to spawn.h.
2308 * modules/stdio (Makefile.am): Add dependency to stdio.h.
2309 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
2310 * modules/string (Makefile.am): Add dependency to string.h.
2311 * modules/strings (Makefile.am): Add dependency to strings.h.
2312 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
2313 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
2314 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
2315 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
2316 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
2317 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
2318 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
2319 * modules/unistd (Makefile.am): Add dependency to unistd.h.
2320 * modules/wchar (Makefile.am): Add dependency to wchar.h.
2322 2009-12-09 Bruno Haible <bruno@clisp.org>
2324 fchdir: Optimize away rpl_fstat when possible.
2325 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
2326 REPLACE_OPEN_DIRECTORY.
2327 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
2329 2009-12-09 Bruno Haible <bruno@clisp.org>
2331 * lib/fchdir.c: Update comment.
2333 2009-12-09 Bruno Haible <bruno@clisp.org>
2335 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
2337 2009-12-08 Eric Blake <ebb9@byu.net>
2339 fchdir: avoid memory leak on re-registration.
2340 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
2342 2009-12-08 Jim Meyering <meyering@redhat.com>
2344 init.sh: avoid Solaris 10 /bin/sh portability problem
2345 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
2347 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
2348 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
2350 tests/init.sh relied on that, accepting a --set-path=DIR argument,
2351 and two tests used that idiom.
2352 * tests/init.sh: Update suggested usage comments.
2353 (path_prepend_): New function, to be used in place
2354 of the --src-path=DIR option.
2355 (setup_): Move PATH-prepending code into path_prepend_.
2356 * tests/test-pread.sh: Adapt to new usage.
2357 * tests/test-xalloc-die.sh: Likewise.
2359 2009-12-08 Simon Josefsson <simon@josefsson.org>
2361 * doc/gnulib.texi (Glibc pty.h): Add.
2362 * doc/glibc-functions/forkpty.texi: Add.
2363 * doc/glibc-functions/openpty.texi: Add.
2364 Suggested by Bruno Haible.
2366 2009-12-08 Eric Blake <ebb9@byu.net>
2368 fchdir: fix logic bugs
2369 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
2370 * tests/test-fchdir.c (main): Enhance test.
2371 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
2374 dup2: fix logic bugs
2375 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
2376 REPLACE_DUP2 to decide when rpl_dup2 is needed.
2377 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
2379 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
2381 2009-12-07 Eric Blake <ebb9@byu.net>
2383 unlink: fix m4 detection
2384 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
2386 unistd-safer: add unit test
2387 * modules/unistd-safer-tests: New file.
2388 * tests/test-dup-safer.c: Likewise.
2389 * tests/test-cloexec.c (setmode): Avoid compiler warning.
2390 * tests/test-dup2.c (setmode): Likewise.
2391 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
2393 cloexec: preserve text vs. binary across dup_cloexec
2394 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
2396 * modules/dup2-tests (Depends-on): Add binary-io.
2397 * modules/cloexec-tests (Depends-on): Likewise.
2398 * tests/test-dup2.c (setmode, is_mode): New helpers.
2399 (main): Add tests that translation mode is preserved.
2400 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
2401 Reported by Bruno Haible.
2403 mgetgroups: reduce duplicate listings
2404 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
2406 * tests/test-chown.h (test_chown): Simplify client.
2407 * tests/test-lchown.h (test_lchown): Likewise.
2409 2009-12-06 Bruno Haible <bruno@clisp.org>
2411 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
2414 2009-12-06 Bruno Haible <bruno@clisp.org>
2416 * lib/progname.c: Include stdio.h, stdlib.h.
2417 (set_program_name): Reject a NULL argument.
2419 2009-12-05 Eric Blake <ebb9@byu.net>
2421 pipe2-safer: new module
2422 * modules/pipe2-safer: New file.
2423 * lib/unistd-safer.h (pipe2_safer): New prototype.
2424 * lib/unistd--.h (pipe2): New wrapper.
2425 * lib/pipe-safer.c (pipe2_safer): New function.
2426 * modules/pipe (Depends-on): Add pipe2-safer.
2427 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
2429 stdlib-safer: preserve cloexec flag for mkostemp[s]
2430 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
2433 unistd-safer: allow preservation of cloexec status via flag
2434 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
2436 * lib/dup-safer.c (dup_safer_flag): New function.
2437 * lib/fd-safer.c (fd_safer_flag): Likewise.
2438 * modules/cloexec (configure.ac): Set witness.
2440 test-dup2: enhance test
2441 * modules/dup2-tests (Depends-on): Add cloexec.
2442 * tests/test-dup2.c (main): Enhance test.
2444 cloexec: add dup_cloexec
2445 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
2446 header and comments.
2447 * lib/cloexec.c (set_cloexec_flag): Add comments.
2448 (dup_cloexec): New function, with mingw implementation borrowed
2450 * lib/w32spawn.h (dup_noinherit): ...here.
2451 * modules/execute (Depends-on): Add cloexec.
2452 * modules/pipe (Depends-on): Likewise.
2453 * modules/cloexec (Depends-on): Add dup2.
2454 * modules/cloexec-tests (Files): New file.
2455 * tests/test-cloexec.c: Likewise.
2457 test-xalloc-die: fix test for mingw
2458 * modules/xalloc-die-tests (Files): Add tests/init.sh.
2459 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
2460 directory and .exe suffix off argv[0] output.
2462 test-fseeko: fix test for mingw
2463 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
2464 than undefining fseek, so test will pass on mingw.
2466 2009-12-05 Bruno Haible <bruno@clisp.org>
2468 * lib/progname.h (set_program_name): Clarify specification.
2469 * lib/progname.c (set_program_name): Likewise.
2470 Reported by Jim Meyering.
2472 2009-12-05 Jim Meyering <meyering@redhat.com>
2474 maint.mk: backslash-escape parens in default regexp
2475 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
2476 backslash-escape the literal parentheses.
2478 maint.mk: news-date-check: use grep -E
2479 * top/maint.mk (today): Define a Make variable, not a...
2480 (news-date-check): ...shell variable.
2481 (news-date-regexp): Use the Make variable.
2482 Use grep's -E option. Change the failing diagnostic to mention
2483 the variable, $(news-date-regexp).
2485 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
2487 maintainer-makefile: allow customization of NEWS entry format
2488 * top/maint.mk (news-date-regexp): New overridable variable.
2489 (news-date-check): Use it.
2491 2009-12-04 Eric Blake <ebb9@byu.net>
2493 mgetgroups: add xgetgroups, and avoid ENOSYS failures
2494 * lib/mgetgroups.h (xgetgroups): New prototype.
2495 * lib/mgetgroups.c (xgetgroups): New wrapper.
2496 (mgetgroups): Handle ENOSYS.
2497 * modules/mgetgroups (Depends-on): Add realloc.
2498 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
2500 mgetgroups: avoid argument promotion issues with -1
2501 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
2503 * tests/test-chown.h (getegid, test_chown): Likewise.
2504 * tests/test-lchown.h (getegid, test_lchown): Likewise.
2506 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
2508 exclude: Fix header file problems.
2509 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
2511 2009-12-01 Jim Meyering <meyering@redhat.com>
2513 fts: fts_open: do not let an empty string cause immediate failure
2514 This is required in support of GNU rm, for which the command
2515 "rm A '' B" must process and remove both A and B, in spite of
2516 the empty string argument.
2517 * lib/fts.c (fts_open): Do not let the presence of an empty string
2518 cause fts_open to fail immediately. Most fts-using tools must be
2519 able to process all arguments, in order, and can be expected to
2520 diagnose such arguments themselves.
2522 2009-11-30 Eric Blake <ebb9@byu.net>
2524 utimens: fix compilation error
2525 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
2526 Declare variable at right scope.
2528 2009-11-29 Jim Meyering <meyering@redhat.com>
2530 bootstrap: handle perl-5.11's changed --version output
2531 * build-aux/bootstrap (get_version): Handle perl separately,
2532 since perl-5.11's --version output is different.
2534 2009-11-28 Jim Meyering <meyering@redhat.com>
2536 userspec: depend on the inttostr module, too
2537 * modules/userspec (Depends-on): Add inttostr.
2539 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
2540 * lib/userspec.c (parse_with_separator): Do not accept a user ID
2541 number of MAXUID when it evaluates to (uid_t) -1.
2542 Likewise for group ID. Reported by Matt McCutchen in
2543 <http://savannah.gnu.org/bugs/?28113>
2545 userspec: reformat to use spaces, not TABs
2546 * lib/userspec.c: Expand TABs to spaces.
2547 Add Emacs' "indent-tabs-mode: nil" hint.
2549 2009-11-27 Eric Blake <ebb9@byu.net>
2551 getopt-gnu: flush out another BSD bug
2552 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
2553 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
2555 * tests/test-getopt.h (test_getopt): End lists with NULL.
2556 * tests/test-getopt_long.h (test_getopt_long): Likewise.
2557 (test_getopt_long_posix): Enhance test.
2558 * modules/getopt-posix-tests (Depends-on): Add stdbool.
2559 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
2561 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2564 2009-11-27 Simon Josefsson <simon@josefsson.org>
2566 * modules/idpriv-droptemp-tests (Notice): Fix text.
2568 2009-11-27 Jim Meyering <meyering@redhat.com>
2570 test-xalloc-die: avoid spurious failure due to libtool argv difference
2571 In a libtool-enabled project, this test would fail due to a difference
2572 in the emitted program name, e.g.,
2573 -test-xalloc-die: memory exhausted
2574 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
2575 Use program to avoid that.
2576 * modules/xalloc-die-tests (Depends-on): Add progname.
2577 * tests/test-xalloc-die.c: Include progname.h".
2578 (program_name): Remove decl.
2579 (main): Call set_program_name.
2580 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
2582 2009-11-26 Richard Jones <rjones@redhat.com>
2584 w32sock: leave win32 error in place.
2585 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
2587 2009-11-26 Eric Blake <ebb9@byu.net>
2589 init.sh: suggest to use skip_ and fail_ functions in comments
2590 * tests/init.sh: Add a sentence.
2592 2009-11-25 Bruno Haible <bruno@clisp.org>
2594 init.sh: add documentation in comments
2595 * tests/init.sh: Add some developer and user documentation.
2597 2009-11-26 Jim Meyering <meyering@redhat.com>
2599 init.sh: accommodate even those who specify bogus srcdir manually
2600 * tests/init.sh: Normally, srcdir is guaranteed by automake and
2601 configure-time tests to be sanitized, so that there is no need to
2602 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
2603 (with no double quotes) suffices. However, since tests may be
2604 invoked manually, and since you may explicitly set srcdir to the
2605 name of a directory containing spaces, do quote its uses here.
2606 * tests/test-pread.sh: Likewise.
2607 Suggested by Bruno Haible.
2609 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
2610 * tests/test-pread.sh: Write no data into the pipe, because
2611 test-pread actually reads none. This avoids a diagnostic,
2612 "bash: echo: write error: Broken pipe", that arises in the unusual
2613 event something is ignoring SIGPIPE, and might be interpreted
2614 as some sort of failure. Reported by Bruno Haible.
2616 2009-11-25 Jim Meyering <meyering@redhat.com>
2618 test-pread: cover failure with ESPIPE and EINVAL
2619 * tests/test-pread.c (main): Test for failure, too.
2620 * tests/test-pread.sh: Invoke with stdin on a pipe.
2621 Suggested by Eric Blake.
2623 pread: improvement and fix
2624 * modules/pread (Depends-on): Depend on lseek, for portability to
2625 e.g., mingw. Suggested by Eric Blake.
2626 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
2628 unistd.in.h: correct declaration of pread
2629 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
2630 Reported by Richard W.M. Jones.
2632 test-pread.sh: distribute the test script
2633 * modules/pread-tests (Files): Include test-pread.sh.
2635 test-pread.sh: clean up
2636 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
2637 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
2638 That is unnecessary, since it's always ".".
2639 Suggestion from Eric Blake.
2641 test-pread.sh: make executable
2642 * tests/test-pread.sh: Set executable bit.
2643 Reported by Eric Blake.
2645 correct typo in test-pread.sh
2646 * tests/test-pread.sh: Add #! line.
2649 * tests/test-pread.c: New file.
2650 * tests/test-pread.sh: Likewise.
2651 * modules/pread-tests: Likewise.
2654 * modules/pread: New file.
2655 * lib/unistd.in.h (pread): Define/declare.
2656 * lib/pread.c (pread): New file.
2657 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
2658 * modules/unistd (Makefile.am): Substitute witnesses.
2659 * doc/posix-functions/pread.texi (pread): Update.
2660 * MODULES.html.sh: Add pread.
2662 2009-11-25 Jim Meyering <meyering@redhat.com>
2664 tests/init.sh: new file to be used via most *.sh tests
2665 * tests/init.sh: New file.
2667 2009-11-25 Eric Blake <ebb9@byu.net>
2669 utimens: work around older Linux failure with symlinks
2670 * lib/utimens.c (lutimensat_works_really): New variable.
2671 (fdutimens, lutimens): Use it to manage kernels that support
2672 nanosecond times on files, but not on symlinks.
2673 Reported by OndÅ™ej VaÅ¡Ãk.
2675 utimes: fix configure grammar
2676 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
2678 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
2680 regex: Fix fastmap for multibyte character ranges.
2681 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
2682 characters when a multibyte character range is included.
2684 2009-11-22 Andy Wingo <wingo@pobox.com>
2686 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
2687 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
2689 2009-11-24 Bruno Haible <bruno@clisp.org>
2691 doc: Most *_l functions exist in MacOS X 10.5.
2692 * doc/posix-functions/duplocale.texi: Update platforms list.
2693 * doc/posix-functions/freelocale.texi: Likewise.
2694 * doc/posix-functions/newlocale.texi: Likewise.
2695 * doc/posix-functions/uselocale.texi: Likewise.
2696 * doc/posix-functions/isalnum_l.texi: Likewise.
2697 * doc/posix-functions/isalpha_l.texi: Likewise.
2698 * doc/posix-functions/isblank_l.texi: Likewise.
2699 * doc/posix-functions/iscntrl_l.texi: Likewise.
2700 * doc/posix-functions/isdigit_l.texi: Likewise.
2701 * doc/posix-functions/isgraph_l.texi: Likewise.
2702 * doc/posix-functions/islower_l.texi: Likewise.
2703 * doc/posix-functions/isprint_l.texi: Likewise.
2704 * doc/posix-functions/ispunct_l.texi: Likewise.
2705 * doc/posix-functions/isspace_l.texi: Likewise.
2706 * doc/posix-functions/isupper_l.texi: Likewise.
2707 * doc/posix-functions/iswalnum_l.texi: Likewise.
2708 * doc/posix-functions/iswalpha_l.texi: Likewise.
2709 * doc/posix-functions/iswblank_l.texi: Likewise.
2710 * doc/posix-functions/iswcntrl_l.texi: Likewise.
2711 * doc/posix-functions/iswctype_l.texi: Likewise.
2712 * doc/posix-functions/iswdigit_l.texi: Likewise.
2713 * doc/posix-functions/iswgraph_l.texi: Likewise.
2714 * doc/posix-functions/iswlower_l.texi: Likewise.
2715 * doc/posix-functions/iswprint_l.texi: Likewise.
2716 * doc/posix-functions/iswpunct_l.texi: Likewise.
2717 * doc/posix-functions/iswspace_l.texi: Likewise.
2718 * doc/posix-functions/iswupper_l.texi: Likewise.
2719 * doc/posix-functions/iswxdigit_l.texi: Likewise.
2720 * doc/posix-functions/isxdigit_l.texi: Likewise.
2721 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
2722 * doc/posix-functions/strcasecmp_l.texi: Likewise.
2723 * doc/posix-functions/strcoll_l.texi: Likewise.
2724 * doc/posix-functions/strfmon_l.texi: Likewise.
2725 * doc/posix-functions/strftime_l.texi: Likewise.
2726 * doc/posix-functions/strncasecmp_l.texi: Likewise.
2727 * doc/posix-functions/strxfrm_l.texi: Likewise.
2728 * doc/posix-functions/tolower_l.texi: Likewise.
2729 * doc/posix-functions/toupper_l.texi: Likewise.
2730 * doc/posix-functions/towctrans_l.texi: Likewise.
2731 * doc/posix-functions/towlower_l.texi: Likewise.
2732 * doc/posix-functions/towupper_l.texi: Likewise.
2733 * doc/posix-functions/wcscoll_l.texi: Likewise.
2734 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
2735 * doc/posix-functions/wctrans_l.texi: Likewise.
2736 * doc/posix-functions/wctype_l.texi: Likewise.
2737 * doc/glibc-functions/strptime_l.texi: Likewise.
2738 * doc/glibc-functions/strtod_l.texi: Likewise.
2739 * doc/glibc-functions/strtof_l.texi: Likewise.
2740 * doc/glibc-functions/strtol_l.texi: Likewise.
2741 * doc/glibc-functions/strtold_l.texi: Likewise.
2742 * doc/glibc-functions/strtoll_l.texi: Likewise.
2743 * doc/glibc-functions/strtoul_l.texi: Likewise.
2744 * doc/glibc-functions/strtoull_l.texi: Likewise.
2745 * doc/glibc-functions/wcsftime_l.texi: Likewise.
2746 * doc/glibc-functions/wcstod_l.texi: Likewise.
2747 * doc/glibc-functions/wcstof_l.texi: Likewise.
2748 * doc/glibc-functions/wcstol_l.texi: Likewise.
2749 * doc/glibc-functions/wcstold_l.texi: Likewise.
2750 * doc/glibc-functions/wcstoll_l.texi: Likewise.
2751 * doc/glibc-functions/wcstoul_l.texi: Likewise.
2752 * doc/glibc-functions/wcstoull_l.texi: Likewise.
2754 2009-11-24 Bruno Haible <bruno@clisp.org>
2756 duplocale: Fix logic bug.
2757 * lib/duplocale.c: Don't include <langinfo.h>.
2758 (_NL_LOCALE_NAME): Remove macro.
2759 (rpl_duplocale): Use setlocale instead of nl_langinfo.
2760 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
2762 2009-11-23 Jim Meyering <meyering@redhat.com>
2764 test-update-copyright: don't hard-code /usr/bin/perl
2765 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
2766 perl to print the current year. Gilles Espinasse reported that
2767 the replaced use of perl was hard-coded as /usr/bin/perl.
2769 2009-11-23 Bruno Haible <bruno@clisp.org>
2771 duplocale: Add support for glibc 2.3.x.
2772 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
2774 2009-11-22 Bruno Haible <bruno@clisp.org>
2776 vasnprintf: Tiny optimization.
2777 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
2780 2009-11-22 Bruno Haible <bruno@clisp.org>
2782 Tests for module 'duplocale'.
2783 * modules/duplocale-tests: New file.
2784 * tests/test-duplocale.c: New file.
2786 New module 'duplocale'.
2787 * m4/duplocale.m4: New file.
2788 * lib/locale.in.h (duplocale): New declaration.
2789 * lib/duplocale.c: New file.
2790 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
2791 gl_LOCALE_H_DEFAULTS): New macros.
2792 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
2793 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
2794 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
2796 * modules/duplocale: New file.
2797 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
2799 2009-11-22 Bruno Haible <bruno@clisp.org>
2801 * modules/locale-tests (configure.ac): Test for newlocale function.
2802 * tests/test-locale.c: When the system has extended locale functions,
2803 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
2805 locale: Make locale_t available when possible.
2806 * lib/locale.in.h: Include <xlocale.h> when it exists.
2807 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
2808 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
2809 * modules/locale (Depends-on): Add extensions.
2810 (Makefile.am): Also substitute HAVE_XLOCALE_H.
2811 * doc/posix-headers/locale.texi: Document the problem with locale_t.
2813 2009-11-22 Bruno Haible <bruno@clisp.org>
2816 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
2818 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
2819 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
2820 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2822 2009-11-22 Bruno Haible <bruno@clisp.org>
2824 error: account for the possibility of freopen (stdout).
2825 * lib/error.c: Include <unistd.h>.
2826 (flush_stdout): New function, extracted from error and error_at_line.
2827 Determine stdout's fd dynamically.
2828 (error, error_at_line): Invoke flush_stdout.
2829 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
2830 * modules/error (Depends-on): Add unistd.
2832 2009-11-22 Bruno Haible <bruno@clisp.org>
2834 diffseq: Add comment.
2835 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
2837 2009-11-22 Jim Meyering <meyering@redhat.com>
2839 c-stack: avoid defining an unused static function
2840 * lib/c-stack.c (find_stack_direction): Do not define this function
2841 when it will not be used.
2843 diffseq: avoid spurious gcc warnings
2844 * lib/diffseq.h (IF_LINT2): Define.
2845 (compareseq): Use it to initialize two members of "part".
2846 This avoids two used-uninitialized warnings.
2848 2009-11-21 Jim Meyering <meyering@redhat.com>
2850 c-stack: avoid "ignoring return value of `write'" warning
2851 * lib/c-stack.c: Include "ignore-value.h".
2852 (die): Explicitly ignore each write return value.
2853 * modules/c-stack (Depends-on): Add ignore-value.
2855 2009-11-21 Bruno Haible <bruno@clisp.org>
2857 diffseq: reduce scope of variable 'best'.
2858 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
2859 variable, earlier used for two different purposes.
2861 2009-11-21 Jim Meyering <meyering@redhat.com>
2863 diffseq: remove useless assignment to "best"
2864 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
2865 assignment. At that point "best" is already guaranteed to be zero.
2867 2009-11-20 Eric Blake <ebb9@byu.net>
2869 build: mention ftp redirector in release announcements
2870 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
2871 values that used to come from cfg.mk; mention FTP redirect URL.
2872 * build-aux/announce-gen: Mention the mirror list.
2873 Suggested by Karl Berry.
2875 nanosleep: improve port to mingw
2876 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
2877 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
2878 LIB_NANOSLEEP, but only when needed.
2879 * modules/select (Link): Document LIBSOCKET.
2880 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
2883 nanosleep: work around cygwin bug
2884 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
2885 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
2887 (getnow): Delete, not needed.
2888 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
2890 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
2891 clock-time, gettime.
2892 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
2894 * modules/nanosleep-tests: New test.
2895 * tests/test-nanosleep.c: New file.
2897 sleep: work around cygwin bug
2898 * lib/sleep.c (rpl_sleep): Work around the bug.
2899 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
2900 (gl_PREREQ_SLEEP): Delete unused macro.
2901 * modules/sleep (Depends-on): Add verify.
2902 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
2903 * modules/unistd (Makefile.am): Substitute witness.
2904 * lib/unistd.in.h (sleep): Update prototype.
2905 * doc/posix-functions/sleep.texi (sleep): Document the bug.
2906 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
2907 * modules/sleep-tests (Depends-on): Check for alarm.
2909 2009-11-20 Jim Meyering <meyering@redhat.com>
2911 maint.mk: improve sc_prohibit_magic_number_exit
2912 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
2913 so it does not match uses like System.exit(1).
2914 Add comments showing how to correct all offenders.
2916 2009-11-19 Eric Blake <ebb9@byu.net>
2918 xalloc-die-tests: add missing library
2919 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
2921 test-xvasprintf: silence compiler warnings
2922 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
2923 empty string from gcc.
2925 2009-11-19 Jim Meyering <meyering@redhat.com>
2927 xfreopen: new module, from coreutils
2928 * modules/xfreopen: New module.
2929 * lib/xfreopen.c: New file.
2930 * lib/xfreopen.h: New file.
2931 * MODULES.html.sh (File stream based Input/Output"): Add it.
2933 2009-11-19 Eric Blake <ebb9@byu.net>
2935 manywarnings: depend on warnings
2936 * modules/manywarnings (Depends-on): Add warnings.
2938 build: avoid compiler warnings
2939 * lib/select.c (rpl_select): Delete unused variable.
2940 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
2942 2009-11-18 Eric Blake <ebb9@byu.net>
2944 tests: avoid false negative with --with-packager
2945 * tests/test-version-etc.sh: Discard packager information.
2946 * tests/test-argp-version-etc-1.sh: Likewise.
2947 Reported by Mike Frysinger.
2949 utimens: fix regression on Solaris
2950 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
2951 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
2952 can only change fd timestamps via futimesat. Instead, use an
2953 additional witness macro to avoid BSD bug.
2954 Reported by Jim Meyering.
2956 2009-11-17 Eric Blake <ebb9@byu.net>
2958 usleep: use it to simplify tests
2959 * modules/stat-time-tests (Depends-on): Add usleep.
2960 (configure.ac): Drop usleep check.
2961 * modules/chown-tests (Depends-on, configure.ac): Likewise.
2962 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
2963 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
2964 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
2965 * modules/openat-tests (Depends-on, configure.ac): Likewise.
2966 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
2967 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
2968 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
2970 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
2971 * tests/test-lchown.h (nap): Likewise.
2972 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
2973 * tests/test-stat-time.c (nap): Likewise.
2974 * tests/test-utimens-common.h (nap): Update comments.
2977 * modules/usleep: New file.
2978 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
2979 * lib/usleep.c (usleep): Likewise.
2980 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
2981 * modules/unistd (Makefile.am): Substitute witnesses.
2982 * lib/unistd.in.h (usleep): Add declaration.
2983 * doc/pastposix-functions/usleep.texi (usleep): Document this.
2984 * MODULES.html.sh (Date and time): Likewise.
2985 * modules/usleep-tests (Depends-on): New test.
2986 * tests/test-usleep.c: New file.
2988 chown: work around OpenBSD bug
2989 * lib/chown.c (rpl_chown): Work around the bug.
2990 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
2991 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
2992 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
2993 * modules/chown (Depends-on): Add stdbool.
2994 * modules/lchown (Depends-on): Likewise.
2995 * doc/posix-functions/chown.texi (chown): Document the bug.
2996 * doc/posix-functions/lchown.texi (lchown): Likewise.
2997 * tests/test-lchown.h (test_chown): Relax test.
2999 mkstemp: avoid conflict with C++ keyword template
3000 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
3001 * lib/mkostemp.c (mkostemp): Likewise.
3002 * lib/mkostemps.c (mkostemps): Likewise.
3003 * lib/mkstemp.c (mkstemp): Likewise.
3004 * lib/mkstemps.c (mkstemps): Likewise.
3006 xalloc-die-tests: optimize
3007 * tests/test-xalloc-die.sh: Reduce number of processes.
3009 2009-11-17 Simon Josefsson <simon@josefsson.org>
3011 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
3012 patch from ludo@gnu.org (Ludovic Courtès).
3014 2009-11-17 Jim Meyering <meyering@redhat.com>
3016 version-etc: use proper license string
3017 * modules/version-etc (License): Use LGPL, not LGPLv3+.
3018 * modules/version-etc-fsf: Likewise.
3020 2009-11-17 Simon Josefsson <simon@josefsson.org>
3022 * tests/test-xalloc-die.sh: Add license. Check that nothing is
3023 printed to stdout. Deal with EOL differences.
3025 2009-11-17 Eric Blake <ebb9@byu.net>
3027 unsetenv: work around Solaris bug
3028 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
3029 * lib/unsetenv.c (rpl_unsetenv): Work around it.
3030 Reported by Jim Meyering.
3032 vasnprintf: avoid compiler warnings
3033 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
3035 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
3037 2009-11-17 Simon Josefsson <simon@josefsson.org>
3039 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
3040 settings since xalloc-die is no longer the self test,
3043 2009-11-17 Jim Meyering <meyering@redhat.com>
3045 test-xalloc-die.sh: make the code agree with the commit log
3046 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
3047 at the end, just in case you happen to have a test-xalloc-die
3048 program in some other PATH directory.
3050 test-xalloc-die.sh: fix a portability bug
3051 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
3052 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
3053 Otherwise, argv[0] (as often seen in diagnostics) would be too
3054 system-dependent, sometimes with, and sometimes without the leading "./".
3056 version-etc-fsf: relax license to LGPLv3+
3057 * modules/version-etc-fsf (License): Relax license.
3059 2009-11-16 Eric Blake <ebb9@byu.net>
3061 xalloc-die-tests: avoid printing null pointer
3062 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
3064 * tests/test-xalloc-die.c (program_name): Declare.
3065 * tests/test-xalloc-die.sh (tmpfiles): New file.
3067 setenv, unsetenv: work around various bugs
3068 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
3069 (setenv) [HAVE_SETENV]: Work around bugs.
3070 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
3071 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
3073 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
3074 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
3075 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
3076 * modules/stdlib (Makefile.am): Update substitutions.
3077 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
3078 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
3079 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
3080 * modules/setenv-tests: New test.
3081 * modules/unsetenv-tests: Likewise.
3082 * tests/test-setenv.c: New file.
3083 * tests/test-unsetenv.c: Likewise.
3085 2009-11-16 Jim Meyering <meyering@redhat.com>
3087 version-etc: relax license to LGPLv3+
3088 * modules/version-etc (License): Relax license.
3090 better AC_REQUIRE expanded-before-required-warning avoidance
3091 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
3092 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
3093 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
3094 which is no longer needed.
3096 2009-11-16 Eric Blake <ebb9@byu.net>
3098 test-freading: clean up temporary file
3099 * tests/test-freading.c (main): Remove file on success, and use
3100 ASSERT more liberally.
3101 Reported by Jim Meyering.
3103 2009-11-16 Jim Meyering <meyering@redhat.com>
3105 avoid new AC_REQUIRE expanded-before-required warnings
3106 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
3108 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
3109 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
3111 2009-11-15 Simon Josefsson <simon@josefsson.org>
3113 * tests/test-xalloc-die.c: New file.
3114 * modules/xalloc-die-tests: New file.
3115 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
3116 XFAIL_TESTS so it can be appended by modules.
3118 2009-11-15 Simon Josefsson <simon@josefsson.org>
3120 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
3121 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
3123 2009-11-14 Eric Blake <ebb9@byu.net>
3125 fnmatch: avoid compiler warning
3126 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
3127 to silence compiler warning about mismatch signedness in ?:.
3128 Reported by Robert Millan.
3130 intprops: add double-inclusion guard
3131 * lib/intprops.h: Allow idempotent includes.
3132 Suggested by Bruce Korb.
3134 openat: detect Solaris fchownat bug
3135 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
3136 penalizing glibc chownat when only lchownat is broken.
3137 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
3138 trailing slash bugs.
3139 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
3140 * modules/openat-tests (Files): Include more files.
3141 (Depends-on): Add mgetgroups, sleep, stat-time.
3142 (configure.ac): Add additional checks.
3143 (Makefile.am): Build new test.
3144 * tests/test-fchownat.c: New file.
3146 lchown: detect Solaris and FreeBSD bug
3147 * lib/lchown.c (rpl_lchown): Work around bug.
3148 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
3149 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3150 * modules/unistd (Makefile.am): Populate it.
3151 * lib/unistd.in.h (lchown): Update declaration.
3152 * doc/posix-functions/lchown.texi (lchown): Document the bug.
3153 * modules/lchown-tests: New file.
3154 * tests/test-lchown.h (test_lchown): Likewise.
3155 * tests/test-lchown.c (main): Likewise.
3157 chown: detect Solaris and FreeBSD bug
3158 * lib/chown.c (rpl_chown): Work around bug.
3159 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
3160 (gl_PREREQ_CHOWN): Delete.
3161 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3162 * modules/unistd (Makefile.am): Populate it.
3163 * lib/unistd.in.h (chown): Update declaration.
3164 * lib/lchown.c (chown): Update client.
3165 * modules/lchown (Depends-on): Add lstat.
3166 * doc/posix-functions/chown.texi (chown): Document the bug.
3167 * doc/posix-functions/getgroups.texi (getgroups): Document
3169 * modules/chown-tests: New file.
3170 * tests/test-chown.h (test_chown): Likewise.
3171 * tests/test-chown.c (main): Likewise.
3173 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
3175 gnulib-tool: correctly detect absence of m4 directories
3176 * gnulib-tool: Avoid extra newline on data passed to wc -l.
3178 2009-11-14 Jim Meyering <meyering@redhat.com>
3180 maint.mk: Prohibit inclusion of "xalloc.h" without use.
3181 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
3183 2009-11-14 John W. Eaton <jwe@gnu.org>
3185 strftime.h: wrap funtion declaration in extern "C" block
3186 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
3188 2009-11-13 Eric Blake <ebb9@byu.net>
3190 getgroups: avoid compiler warning
3191 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
3193 getgroups: work around FreeBSD bug
3194 * lib/getgroups.c (rpl_getgroups): Work around the bug.
3195 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
3196 * doc/posix-functions/getgroups.texi (getgroups): Document it.
3197 * tests/test-getgroups.c (main): Fix buffer overrun.
3199 getgroups: avoid compilation failure
3200 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
3201 * modules/getgroups (Depends-on): Add stdint.
3203 2009-11-13 Jim Meyering <meyering@redhat.com>
3205 test-getgroups: avoid compilation failure
3206 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
3208 2009-11-13 Eric Blake <ebb9@byu.net>
3210 mgetgroups: new module, taken from coreutils
3211 * modules/mgetgroups: New file.
3212 * lib/mgetgroups.h: Likewise.
3213 * lib/mgetgroups.c (mgetgroups): Likewise.
3214 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
3215 * MODULES.html.sh (Users and groups): Mention it.
3217 getgroups: don't expose GETGROUPS_T to user
3218 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
3219 an element at a time if GETGROUPS_T is wrong size.
3220 * lib/getugroups.h (getugroups): Change signature.
3221 * lib/unistd.in.h (getgroups): Likewise.
3222 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
3223 signature needs fixing.
3224 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
3226 * modules/group-member (Depends-on): Add getgroups.
3227 * lib/group-member.c (group_info, get_group_info): Use gid_t.
3228 (group_member): Rely on getgroups replacement.
3229 * lib/getugroups.c (getugroups): Use gid_t.
3230 * tests/test-getgroups.c (main): Likewise.
3231 * NEWS: Mention the signature change.
3232 * doc/posix-functions/getgroups.texi (getgroups): Mention the
3233 problem with signature.
3234 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
3235 GETGROUPS_T is still useful for setgroups.
3237 getgroups, getugroups: provide stubs for mingw
3238 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
3239 * lib/getugroups.c (getugroups): Likewise.
3240 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
3241 function. Modernize replacement scheme.
3242 (gl_PREREQ_GETGROUPS): Delete.
3243 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
3244 * modules/getgroups (configure.ac): Declare witness.
3245 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
3246 * modules/unistd (Depends-on): Substitute witness.
3247 * lib/unistd.in.h (getgroups): Declare replacement.
3249 getgroups: avoid calling exit
3250 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
3252 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
3254 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
3255 exiting, in the rare case of malloc failure.
3257 getgroups: fix logic error
3258 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
3259 has more than 20 groups.
3260 * modules/getgroups-tests: New test.
3261 * tests/test-getgroups.c: New file.
3263 2009-11-13 Simon Josefsson <simon@josefsson.org>
3265 * tests/test-base64.c: Improve.
3267 2009-11-13 Simon Josefsson <simon@josefsson.org>
3269 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
3270 Blake <ebb9@byu.net>.
3272 2009-11-13 Simon Josefsson <simon@josefsson.org>
3274 * tests/test-xvasprintf.c: Add %s%s related checks.
3276 2009-11-12 Eric Blake <ebb9@byu.net>
3278 version-etc: match standards.texi style
3279 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
3280 and use <> only for URLs.
3282 2009-11-10 Kamil Dudka <kdudka@redhat.com>
3284 fts: do not fail on a submount during traversal
3285 * lib/fts.c (fts_build): Read the stat info again after opening
3286 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
3287 Original report at http://bugzilla.redhat.com/501848.
3289 2009-11-12 Jim Meyering <meyering@redhat.com>
3291 bootstrap: sync from coreutils
3292 * build-aux/bootstrap (bootstrap_epilogue): New function.
3293 Use git_modules_config in one more place. This make bootstrap's
3294 --gnulib-srcdir option more useful for testing.
3296 bootstrap: generalize autoheader check
3297 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
3300 2009-11-11 Eric Blake <ebb9@byu.net>
3302 mkfifoat: use new modules for Solaris and BSD bugs
3303 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
3304 * lib/mkfifoat.c (mknodat): Split...
3305 * lib/mknodat.c (mknodat): ...into new file.
3306 * modules/mkfifoat (Files): Ship new file.
3307 (Depends-on): Add mkfifo, mknod.
3308 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
3309 (Depends-on): Add symlink.
3310 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
3311 redundant with test_mkfifo.h.
3312 (do_mkfifoat, do_mknodat): New helpers.
3315 * modules/mknod: New file.
3316 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
3317 * lib/mknod.c (mknod): Likewise.
3318 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
3320 * modules/sys_stat (Makefile.am): Substitute them.
3321 * lib/sys_stat.in.h (mknod): Declare replacement.
3322 * MODULES.html.sh (Support for systems lacking POSIX:2008):
3324 * doc/posix-functions/mknod.texi (mknod): Likewise.
3325 * modules/mknod-tests: New test.
3326 * tests/test-mknod.c: Likewise.
3329 * modules/mkfifo: New file.
3330 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
3331 * lib/mkfifo.c (mkfifo): Likewise.
3332 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
3334 * modules/sys_stat (Makefile.am): Substitute them.
3335 * lib/sys_stat.in.h (mkfifo): Declare replacement.
3336 * MODULES.html.sh (Support for systems lacking POSIX:2008):
3338 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
3339 * modules/mkfifo-tests: New test.
3340 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
3341 from test-mkfifoat.c.
3342 * tests/test-mkfifo.c: New file.
3344 readlink: detect FreeBSD bug
3345 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
3347 * doc/posix-functions/readlink.texi (readlink): Document the bug.
3348 * tests/test-readlink.h (test_readlink): Enhance test.
3350 symlink: detect FreeBSD bug
3351 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
3353 * doc/posix-functions/symlink.texi (symlink): Document the bug.
3354 * tests/test-symlink.h (test_symlink): Enhance test.
3356 2009-11-10 Eric Blake <ebb9@byu.net>
3358 link: detect FreeBSD bug
3359 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
3361 * doc/posix-functions/link.texi (link): Document the bug.
3362 * tests/test-link.h (test_link): Enhance test.
3363 * tests/test-linkat.c (main): Update caller.
3365 unlink, remove: detect FreeBSD bug
3366 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
3368 * doc/posix-functions/unlink.texi (unlink): Document the bug.
3369 * doc/posix-functions/remove.texi (remove): Likewise.
3370 * tests/test-unlink.h (test_unlink): Enhance test.
3371 * tests/test-remove.c (main): Likewise.
3373 2009-11-09 Eric Blake <ebb9@byu.net>
3375 rename: detect FreeBSD bug
3376 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
3378 * modules/renameat-tests (Depends-on): Add filenamecat.
3379 * tests/test-rename.h (test_rename): Allow one more errno.
3380 * tests/test-renameat.c (main): Likewise.
3381 * doc/posix-functions/rename.texi (rename): Document the bug.
3383 open: detect FreeBSD bug
3384 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
3386 * doc/posix-functions/open.texi (open): Document the bug.
3387 * doc/posix-functions/utimes.texi (utimes): Likewise.
3388 * tests/test-open.h (test_open): Add parameters, and test symlink
3390 * tests/test-open.c (main): Adjust caller.
3391 * tests/test-fcntl-safer.c (main): Likewise.
3392 * modules/open-tests (Depends-on): Add stdbool, symlink.
3393 * modules/fcntl-safer-tests (Depends-on): Likewise.
3394 * tests/test-openat.c (main): Add test-open tests.
3396 stat: detect FreeBSD bug
3397 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
3399 * doc/posix-functions/stat.texi (stat): Document the bug.
3400 * tests/test-stat.h (test_stat_func): Add argument.
3401 * tests/test-stat.c (main): Adjust caller.
3402 * tests/test-fstatat.c (main): Likewise.
3403 * modules/stat-tests (Depends-on): Add stdbool, symlink.
3404 Reported by Jim Meyering.
3406 2009-11-09 James Youngman <jay@gnu.org>
3408 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
3409 * lib/strftime.c: Correct placement of #include "ignore-value.h".
3411 2009-11-08 Jim Meyering <meyering@redhat.com>
3413 utimens: remove invalid futimesat call
3414 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
3415 It used the file descriptor of the target file as the DIR_FD
3416 parameter and NULL as the file name. That caused failure with
3417 errno == EFAULT on FreeBSD-8.0-rc2
3419 2009-11-07 Eric Blake <ebb9@byu.net>
3421 fflush, freadseek: use fseeko, not fseek
3422 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
3423 (clear_ungetc_buffer): Avoid potential problems on large files.
3424 * lib/freadseek.c (freadseek): Likewise.
3425 * modules/freadseek (Depends-on): Add fseeko.
3426 * modules/fseek (configure.ac): Set a witness.
3427 * tests/test-fflush.c (main): Use fseeko.
3428 * tests/test-fpurge.c (fseek): Disable link warning.
3429 * tests/test-freadable.c (fseek): Likewise.
3430 * tests/test-freading.c (fseek): Likewise.
3431 * tests/test-fseeko.c (fseek): Likewise.
3432 * tests/test-ftell.c (fseek): Likewise.
3433 * tests/test-ftello.c (fseek): Likewise.
3434 * tests/test-fwritable.c (fseek): Likewise.
3435 * tests/test-fwriting.c (fseek): Likewise.
3437 2009-11-06 Simon Josefsson <simon@josefsson.org>
3439 * modules/memchr (Depends-on): Drop getpagesize dependency.
3441 2009-11-06 Simon Josefsson <simon@josefsson.org>
3443 * build-aux/pmccabe2html: Disable execute bit. Suggested by
3444 Reported by Ludovic Courtès.
3445 * build-aux/pmccabe2html: Improve example usage.
3446 * build-aux/pmccabe2html: Drop #! header. Doc fix.
3448 2009-11-06 Jim Meyering <meyering@redhat.com>
3450 do-release-commit-and-tag: New module.
3451 Automate the release-commit and tag process.
3452 * build-aux/do-release-commit-and-tag: New script, from coreutils.
3453 * modules/do-release-commit-and-tag: New file.
3454 * MODULES.html.sh (Support for maintaining and releasing): Add it.
3456 2009-11-06 Simon Josefsson <simon@josefsson.org>
3458 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
3459 because test-select.c uses inet_pton.
3461 2009-11-06 Simon Josefsson <simon@josefsson.org>
3463 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
3464 GETADDRINFO_LIB. Bump serial number.
3465 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
3466 Suggested by Eric Blake <ebb9@byu.net>.
3468 2009-11-05 Eric Blake <ebb9@byu.net>
3470 strtod: detect darwin bug
3471 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
3472 Reported by Leo Davis.
3474 freopen-safer: new module
3475 * modules/freopen-safer: New module.
3476 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
3477 * lib/freopen-safer.c (freopen_safer): New file.
3478 * lib/stdio-safer.h (freopen_safer): New declaration.
3479 * lib/stdio--.h (freopen): New override.
3480 * MODULES.html.sh (File stream based Input/Output): Mention it.
3481 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
3482 freopen-safer module.
3483 * doc/posix-functions/stderr.texi (stderr): Likewise.
3484 * doc/posix-functions/stdin.texi (stdin): Likewise.
3485 * doc/posix-functions/stdout.texi (stdout): Likewise.
3486 * modules/freopen-safer-tests: New test.
3487 * tests/test-reopen-safer.c: New file.
3489 2009-11-05 Jim Meyering <meyering@redhat.com>
3491 maint.mk: Prohibit inclusion of "close-stream.h" without use.
3492 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
3494 2009-11-05 Simon Josefsson <simon@josefsson.org>
3496 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
3498 2009-11-05 Simon Josefsson <simon@josefsson.org>
3500 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
3502 2009-11-05 Simon Josefsson <simon@josefsson.org>
3505 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
3506 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3508 2009-11-05 Simon Josefsson <simon@josefsson.org>
3510 * tests/test-func.c: Also test value of __func__.
3512 2009-11-05 Simon Josefsson <simon@josefsson.org>
3514 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
3515 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
3517 2009-11-05 Bruno Haible <bruno@clisp.org>
3520 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
3521 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
3522 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
3524 2009-11-05 Bruno Haible <bruno@clisp.org>
3526 Tests for module 'inet_pton'.
3527 * modules/inet_pton-tests: New file.
3528 * tests/test-inet_pton.c: New file.
3530 2009-11-05 Bruno Haible <bruno@clisp.org>
3532 Tests for module 'inet_ntop'.
3533 * modules/inet_ntop-tests: New file.
3534 * tests/test-inet_ntop.c: New file.
3536 2009-11-04 Eric Blake <ebb9@byu.net>
3538 stdlib-safer: wrap all mkstemp variants
3539 * modules/mkostemp (configure.ac): Set witness.
3540 * modules/mkostemps (configure.ac): Likewise.
3541 * modules/mkstemps (configure.ac): Likewise.
3542 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
3543 (mkstemps_safer): Wrap more functions.
3544 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
3546 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
3547 (mkstemps_safer): Implement the wrappers.
3549 mkstemps, mkostemps: new modules
3550 * modules/mkostemps: New module.
3551 * modules/mkstemps: Likewise.
3552 * lib/mkostemps.c (mkostemps): New file.
3553 * lib/mkstemps.c (mkstemps): Likewise.
3554 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
3555 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
3556 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
3557 * modules/stdlib (Makefile.am): Substitute them.
3558 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
3559 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
3560 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
3561 * doc/gnulib.texi (Glibc stdlib.h): Include them.
3562 * MODULES.html.sh (File system functions): Mention them.
3564 tempname: resync from glibc
3565 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
3566 same values for __GT_FILE as glibc. Abort even when assertions
3568 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
3569 match its value otherwise. Allow idempotent inclusion.
3570 * lib/mkdtemp.c (mkdtemp): Adjust caller.
3571 * lib/mkostemp.c (mkostemp): Likewise.
3572 * lib/mkstemp.c (mkstemp): Likewise.
3573 * lib/tmpfile.c (tmpfile): Likewise.
3574 * NEWS: Document this.
3576 utimens: fix use of futimens on older Linux
3577 * lib/utimens.c (fdutimens): Use updated, rather than original,
3578 timespec to avoid bug in older Linux kernel.
3579 Reported by Simon Josefsson.
3581 2009-11-04 Bruno Haible <bruno@clisp.org>
3583 Make num_processors more flexible and consistent.
3584 * lib/nproc.h (enum nproc_query): New type.
3585 (num_processors): Add a 'query' argument.
3586 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
3587 (num_processors): Add a 'query' argument. Test the value of the
3588 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
3589 mingw, count the number of CPUs available for the current process.
3590 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
3591 Check for sched_getaffinity and sched_getaffinity_np.
3592 * modules/nproc (Depends-on): Add c-ctype, extensions.
3593 * NEWS: Mention the change.
3595 2009-11-03 Bruno Haible <bruno@clisp.org>
3597 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
3599 2009-11-03 Jim Meyering <meyering@redhat.com>
3601 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
3602 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
3605 2009-11-02 Eric Blake <ebb9@byu.net>
3607 mktime, timegm: share common declaration
3608 * lib/mktime-internal.h: New file.
3609 * lib/mktime.c: Use it rather than open-coding a declaration.
3610 * lib/timegm.c: Likewise.
3611 * modules/mktime (Files): Ship it.
3612 * modules/timegm (Files): Likewise.
3613 Suggested by Bruno Haible.
3615 test-update-copyright: update test to match script changes
3616 * tests/test-update-copyright.sh: Avoid hard-coding perl
3617 location. Don't update *.bak created by earlier runs.
3619 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
3620 Simon Josefsson <simon@josefsson.org>
3621 Bruno Haible <bruno@clisp.org>
3623 Fix link error on Solaris 8.
3624 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
3625 also in libnsl. Define also INET_PTON_LIB.
3626 * modules/inet_pton (Link): New section.
3628 2009-11-02 Simon Josefsson <simon@josefsson.org>
3629 Bruno Haible <bruno@clisp.org>
3631 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
3632 * modules/inet_ntop (Link): New section.
3633 Reported by Boyan Kasarov <bkasarov@gmail.com>.
3635 2009-11-02 Eric Blake <ebb9@byu.net>
3637 maint: avoid compiler warnings in m4 macros
3638 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
3639 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
3641 2009-11-02 Simon Josefsson <simon@josefsson.org>
3643 * m4/pmccabe2html.m4: Remove file.
3644 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
3645 function. Change maintainer.
3646 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
3647 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
3650 2009-10-31 Eric Blake <ebb9@byu.net>
3652 fseeko: fix m4 regression
3653 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
3654 regression from 2009-10-27.
3655 Reported by Ralf Wildenhues.
3657 2009-10-31 Jim Meyering <meyering@redhat.com>
3659 inttostr: aesthetics and improved (compile-time) safety
3660 Define inttype_is_signed rather than inttype_is_unsigned,
3661 since the sole use is via "#if inttype_is_signed".
3662 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
3663 inttype_is_unsigned.
3664 * lib/offtostr.c (inttype_is_signed): Likewise.
3665 * lib/uinttostr.c (inttype_is_signed): Likewise.
3666 * lib/umaxtostr.c (inttype_is_signed): Likewise.
3667 * lib/inttostr.c (inttostr): Use verify to cross-check the
3668 inttype_is_signed value and the signedness of the actual type.
3669 * modules/inttostr (Depends-on): Add verify.
3671 2009-10-30 Eric Blake <ebb9@byu.net>
3673 build: avoid compiler warnings
3674 * lib/fchmodat.c (lchmod): Mark unused variables.
3675 * lib/getopt.c (_getopt_initialize): Likewise.
3676 * lib/mktime.c (__mktime_internal): Provide prototype.
3677 * lib/inttostr.c (inttostr): Avoid compiler warning even with
3678 older gcc that do not understand #pragma GCC diagnostic.
3679 * lib/uinttostr.c (inttype_is_unsigned): Define.
3680 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
3682 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3684 stat: fix compilation on AIX
3685 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
3686 only see struct stat64.
3688 2009-10-30 Eric Blake <ebb9@byu.net>
3690 exclude: make more robust
3691 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
3692 rather than masking a coding bug.
3693 Suggested by Bruno Haible.
3695 2009-10-30 Jim Meyering <meyering@redhat.com>
3697 perl scripts: remove #!/usr/bin/perl in favor of more portable...
3698 Rather than putting #!/usr/bin/perl on the first line,
3699 start with a variant of what's recommended by "man perlrun" that
3700 invokes the first "perl" program from your shell's search path.
3701 * build-aux/gitlog-to-changelog: Replace #!... as above.
3702 Add a "Local Variables" perl mode setting.
3703 Prompted by a patch from Ludovic Courtès.
3704 Improved by Eric Blake.
3705 * build-aux/useless-if-before-free: Likewise.
3706 * build-aux/announce-gen: Likewise.
3707 * build-aux/update-copyright: Likewise.
3709 2009-10-29 Eric Blake <ebb9@byu.net>
3711 filenamecat-lgpl: adjust clients
3712 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
3714 * modules/renameat (Depends-on): Likewise.
3716 filenamecat: split into filenamecat-lgpl
3717 * modules/filenamecat-lgpl: New module.
3718 * modules/filenamecat (Files): Move library-safe files into
3720 (Depends-on): Add filenamecat-lgpl.
3721 (configure.ac): Declare witness.
3722 * lib/filenamecat.h (file_name_concat): Only declare when using
3724 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
3726 * lib/filenamecat-lgpl.c: ...into new file.
3727 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
3728 (gl_FILE_NAME_CONCAT): Use it.
3729 * MODULES.html.sh (File system functions): Mention new module.
3731 argp: avoid memory leak
3732 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
3733 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
3734 base_name, since the latter malloc()s and can call exit().
3735 Leak introduced 2006-07-03.
3737 dirname-lgpl: adjust clients that don't need full dirname
3738 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
3739 * modules/filenamecat (Depends-on): Likewise.
3740 * modules/linkat (Depends-on): Likewise.
3741 * modules/mkancesdirs (Depends-on): Likewise.
3742 * modules/mkdir (Depends-on): Likewise.
3743 * modules/openat (Depends-on): Likewise.
3744 * modules/savewd (Depends-on): Likewise.
3745 * modules/rename (Depends-on): Likewise.
3746 (License): Relax license.
3747 * modules/mkdir-tests (Depends-on): Drop progname.
3748 (Makefile.am): Delete unneeded LDADD.
3749 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
3751 dirname: split into dirname-lgpl
3752 * modules/dirname-lgpl: New module.
3753 * modules/dirname (Files): Move library-safe files into
3755 (Depends-on): Add dirname-lgpl.
3756 (configure.ac): Declare witness.
3757 * modules/double-slash-root (License): Relax license.
3758 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
3760 * lib/dirname.c (dir_len, mdir_name): Move...
3761 * lib/dirname-lgpl.c: ...into new file.
3762 * lib/basename.c (last_component, base_len): Move...
3763 * lib/basename-lgpl.c: ...into new file.
3764 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
3765 (gl_DIRNAME): Use it.
3766 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
3768 * modules/dirname-tests (Depends-on): Add progname.
3769 * tests/test-dirname.c (program_name): Delete.
3771 mkdir: make safe for libraries
3772 * modules/mkdir (Depends-on): Drop xalloc.
3773 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
3776 tests: avoid some compiler warnings
3777 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
3779 * tests/test-memchr.c (main): Avoid type mismatch.
3780 * tests/test-arpa_inet.c (main): Avoid unused parameters.
3781 * tests/test-base64.c (main): Likewise.
3782 * tests/test-getdelim.c (main): Likewise.
3783 * tests/test-gethostname.c (main): Likewise.
3784 * tests/test-getline.c (main): Likewise.
3785 * tests/test-netinet_in.c (main): Likewise.
3786 * tests/test-select.c (open_server_socket, main): Likewise.
3787 * tests/test-select-stdin.c (main): Likewise.
3788 * tests/test-sockets.c (main): Likewise.
3789 * tests/test-strsignal.c (main): Likewise.
3790 * tests/test-sys_select.c (main): Likewise.
3791 * tests/test-sys_socket.c (main): Likewise.
3792 * tests/test-u64.c (main): Likewise.
3793 * tests/test-xfprintf-posix.c (main): Likewise.
3794 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
3796 sockets: avoid compiler warning
3797 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
3799 maint: detect usage(1) and other suspicious exits
3800 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
3802 2009-10-29 Jim Meyering <meyering@redhat.com>
3804 timespec: long-to-int truncation could make timespec_cmp malfunction
3805 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
3806 a multiple of 2^32 nanoseconds as no difference.
3808 2009-10-28 Jim Meyering <meyering@redhat.com>
3810 fprintftime: wrap macro code argument in "do {...} while(0)"
3811 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
3812 cpy macro must be a statement that can be followed by a semicolon.
3813 Now that the else clause contains a comment and is hence longer
3814 than one line, I require curly braces. That in turn requires
3815 that we wrap this code block in the standard do...while(0).
3817 fprintftime: remove stray semicolon from previous change
3818 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
3820 fprintftime: avoid a warning about ignored fwrite return value
3821 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
3822 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
3824 * modules/fprintftime (Depends-on): Add ignore-value.
3826 exclude: avoid an unwarranted warning
3827 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
3829 2009-10-27 Eric Blake <ebb9@byu.net>
3831 fseek: avoid compilation failure when fflush is replaced
3832 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
3833 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
3835 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
3836 module is not in use; since REPLACE_FSEEK worked otherwise.
3837 (GNULIB_FTELLO): Likewise for ftell.
3838 Reported by Ian Beckwith and others.
3840 2009-10-27 Bruno Haible <bruno@clisp.org>
3842 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
3843 Reported by Jim Meyering.
3845 2009-10-27 Jim Meyering <jim@meyering.net>
3846 Bruno Haible <bruno@clisp.org>
3848 Avoid warning despite dropping the return value of fwrite.
3849 * lib/unicodeio.c: Include ignore-value.h.
3850 (fwrite_success_callback): Explicitly ignore fwrite's return value.
3851 * modules/unicodeio (Depends-on): Add ignore-value.
3853 2009-10-26 Eric Blake <ebb9@byu.net>
3855 areadlinkat: fix fallback path
3856 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
3859 2009-10-22 Pádraig Brady <P@draigBrady.com>
3861 Use a better IO block size for modern systems
3862 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
3863 * lib/md2.c: Likewise.
3864 * lib/md4.c: Likewise.
3865 * lib/md5.c: Likewise.
3866 * lib/sha1.c: Likewise.
3867 * lib/sha256.c: Likewise.
3868 * lib/sha512.c: Likewise.
3870 2009-10-22 Eric Blake <ebb9@byu.net>
3872 tests: avoid several compiler warnings
3873 * tests/test-getcwd.c (main): Avoid buffer underflow.
3874 * tests/test-getdate.c (main): String literals are not safe with
3875 putenv, so use setenv. Declare unused argument.
3876 * modules/getdate-tests (Depends-on): Add setenv.
3877 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
3878 problems with string literals in char *.
3879 * tests/test-hash.c (main): Avoid shadowing declaration.
3880 (insert_new): Treat string literals as char const *.
3881 * tests/test-getopt.h (test_getopt): Likewise.
3882 (getopt_loop): Alter types to minimize casting elsewhere.
3883 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
3884 (test_getopt_long_posix): Likewise.
3885 (do_getopt_long): Add wrapper to minimize casting.
3886 * tests/test-atexit.c (clear_temp_file): Use void.
3887 * tests/test-areadlink-with-size.c (main): Declare unused
3889 * tests/test-areadlink.c (main): Likewise.
3890 * tests/test-areadlinkat-with-size.c (main): Likewise.
3891 * tests/test-areadlinkat.c (main): Likewise.
3892 * tests/test-canonicalize-lgpl.c (main): Likewise.
3893 * tests/test-canonicalize.c (main): Likewise.
3894 * tests/test-dirent-safer.c (main): Likewise.
3895 * tests/test-dirname.c (main): Likewise.
3896 * tests/test-dup2.c (main): Likewise.
3897 * tests/test-fchdir.c (main): Likewise.
3898 * tests/test-fcntl-h.c (main): Likewise.
3899 * tests/test-fcntl-safer.c (main): Likewise.
3900 * tests/test-fdopendir.c (main): Likewise.
3901 * tests/test-fdutimensat.c (main): Likewise.
3902 * tests/test-fflush.c (main): Likewise.
3903 * tests/test-filenamecat.c (main): Likewise.
3904 * tests/test-filevercmp.c (main): Likewise.
3905 * tests/test-fopen-safer.c (main): Likewise.
3906 * tests/test-fopen.c (main): Likewise.
3907 * tests/test-fpending.c (main): Likewise.
3908 * tests/test-fpurge.c (main): Likewise.
3909 * tests/test-freading.c (main): Likewise.
3910 * tests/test-fstatat.c (main): Likewise.
3911 * tests/test-fsync.c (main): Likewise.
3912 * tests/test-futimens.c (main): Likewise.
3913 * tests/test-getndelim2.c (main): Likewise.
3914 * tests/test-gettimeofday.c (main): Likewise.
3915 * tests/test-getopt.c (main): Likewise.
3916 * tests/test-i-ring.c (main): Likewise.
3917 * tests/test-inttypes.c (main): Likewise.
3918 * tests/test-link.c (main): Likewise.
3919 * tests/test-lstat.c (main): Likewise.
3920 * tests/test-math.c (main): Likewise.
3921 * tests/test-md5.c (main): Likewise.
3922 * tests/test-memchr2.c (main): Likewise.
3923 * tests/test-memrchr.c (main): Likewise.
3924 * tests/test-mkdir.c (main): Likewise.
3925 * tests/test-mkdirat.c (main): Likewise.
3926 * tests/test-mkfifoat.c (main): Likewise.
3927 * tests/test-open.c (main): Likewise.
3928 * tests/test-openat-safer.c (main): Likewise.
3929 * tests/test-openat.c (main): Likewise.
3930 * tests/test-quotearg.c (main): Likewise.
3931 * tests/test-rawmemchr.c (main): Likewise.
3932 * tests/test-readlink.c (main): Likewise.
3933 * tests/test-remove.c (main): Likewise.
3934 * tests/test-rename.c (main): Likewise.
3935 * tests/test-renameat.c (main): Likewise.
3936 * tests/test-rmdir.c (main): Likewise.
3937 * tests/test-sha1.c (main): Likewise.
3938 * tests/test-signal.c (main): Likewise.
3939 * tests/test-sigaction.c (main): Likewise.
3940 * tests/test-stat.c (main): Likewise.
3941 * tests/test-stat-time.c (main): Likewise.
3942 * tests/test-stddef.c (main): Likewise.
3943 * tests/test-stdint.c (main): Likewise.
3944 * tests/test-stdio.c (main): Likewise.
3945 * tests/test-stdlib.c (main): Likewise.
3946 * tests/test-strchrnul.c (main): Likewise.
3947 * tests/test-strerror.c (main): Likewise.
3948 * tests/test-string.c (main): Likewise.
3949 * tests/test-strtod.c (main): Likewise.
3950 * tests/test-strverscmp.c (main): Likewise.
3951 * tests/test-symlink.c (main): Likewise.
3952 * tests/test-symlinkat.c (main): Likewise.
3953 * tests/test-sys_stat.c (main): Likewise.
3954 * tests/test-sys_time.c (main): Likewise.
3955 * tests/test-time.c (main): Likewise.
3956 * tests/test-unistd.c (main): Likewise.
3957 * tests/test-unlink.c (main): Likewise.
3958 * tests/test-unlinkat.c (main): Likewise.
3959 * tests/test-utimens.c (main): Likewise.
3960 * tests/test-utimensat.c (main): Likewise.
3961 * tests/test-version-etc.c (main): Likewise.
3962 * tests/test-wchar.c (main): Likewise.
3963 * tests/test-wctype.c (main): Likewise.
3964 * tests/test-xprintf-posix.c (main): Likewise.
3965 * tests/test-posixtm.c (main): Likewise.
3966 (STREQ): Delete unused macro.
3967 * tests/test-linkat.c (main): Declare unused arguments. Avoid
3969 * tests/test-memchr.c (main): Likewise.
3971 2009-10-21 Eric Blake <ebb9@byu.net>
3973 areadlinkat: avoid failure on older glibc
3974 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
3975 rather than mis-comparing 0 against FUNC_RESULT of char*.
3977 2009-10-21 Bruno Haible <bruno@clisp.org>
3979 * modules/stpncpy (License): Relicense under LGPLv2+.
3980 Reported by David Lutterkort <lutter@redhat.com>.
3982 2009-10-20 Eric Blake <ebb9@byu.net>
3984 utimensat: work around Solaris 9 bug
3985 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
3986 has trailing slash bugs.
3987 * tests/test-lutimens.h (test_lutimens): Enhance test.
3988 * tests/test-utimens.h (test_utimens): Likewise.
3989 * doc/posix-functions/utime.texi (utime): Enhance documentation.
3990 * doc/posix-functions/utimes.texi (utimes): Likewise.
3991 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
3992 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
3993 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
3994 * doc/posix-functions/futimens.texi (futimens): Likewise.
3996 fdutimensat: new module
3997 * modules/fdutimensat: New file.
3998 * lib/fdutimensat.c (fdutimensat): Likewise.
3999 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
4000 * MODULES.html.sh (File system functions): Mention module.
4001 * modules/fdutimensat-tests: New test.
4002 * tests/test-fdutimensat.c: Likewise.
4004 doc: regenerate INSTALL
4005 * doc/INSTALL: Reflect recent autoconf update.
4006 * doc/INSTALL.ISO: Likewise.
4007 * doc/INSTALL.UTF-8: Likewise.
4009 2009-10-20 Pádraig Brady <P@draigBrady.com>
4011 acl: warn if ACL support is not detected
4012 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
4014 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
4016 * lib/nproc.h: Add extern "C" block for C++.
4018 2009-10-18 Reuben Thomas <rrt@sc3d.org>
4019 Bruno Haible <bruno@clisp.org>
4021 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
4022 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
4023 * doc/posix-functions/isalpha.texi: Likewise.
4024 * doc/posix-functions/isblank.texi: Likewise.
4025 * doc/posix-functions/iscntrl.texi: Likewise.
4026 * doc/posix-functions/isdigit.texi: Likewise.
4027 * doc/posix-functions/isgraph.texi: Likewise.
4028 * doc/posix-functions/islower.texi: Likewise.
4029 * doc/posix-functions/isprint.texi: Likewise.
4030 * doc/posix-functions/ispunct.texi: Likewise.
4031 * doc/posix-functions/isspace.texi: Likewise.
4032 * doc/posix-functions/isupper.texi: Likewise.
4033 * doc/posix-functions/isxdigit.texi: Likewise.
4035 2009-10-18 Bruno Haible <bruno@clisp.org>
4037 Tests for module 'isblank'.
4038 * modules/isblank-tests: New file.
4039 * tests/test-isblank.c: New file.
4041 New module 'isblank'.
4042 * lib/isblank.c: New file.
4043 * m4/isblank.m4: New file.
4044 * modules/isblank: New file.
4045 * doc/posix-functions/isblank.texi: Mention the new module.
4047 2009-10-18 Bruno Haible <bruno@clisp.org>
4050 * lib/ctype.in.h: New file.
4051 * m4/ctype.m4: New file.
4052 * modules/ctype: New file.
4053 * doc/posix-headers/ctype.texi: Mention the new module.
4055 2009-10-18 Jim Meyering <meyering@redhat.com>
4057 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
4058 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
4059 right after its initialization, rather than farther down.
4060 Keeping these in close proximity makes it easier to ensure
4061 that each such variable is initialized. E.g.,
4064 AC_SUBST([LIB_CLOCK_GETTIME])
4066 This change also increments these serial numbers.
4067 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
4068 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
4069 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4071 2009-10-18 Bruno Haible <bruno@clisp.org>
4073 Don't let environment variables perturb build.
4074 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
4075 (gl_PREREQ_GETHRXTIME): ... not here.
4077 2009-10-18 Bruno Haible <bruno@clisp.org>
4079 Avoid symlink attack in localcharset module.
4080 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
4081 (O_NOFOLLOW): Define fallback.
4082 (get_charset_aliases): Don't open the file if it is a symbolic link.
4083 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
4085 (gl_FCNTL_H): Require it.
4086 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
4087 * modules/localcharset (Files): Add m4/fcntl_h.m4.
4088 Reported by Fergal Glynn <fglynn@veracode.com>.
4090 2009-10-18 Bruno Haible <bruno@clisp.org>
4092 Implement nproc for mingw.
4093 * lib/nproc.c: Include <windows.h>
4094 (num_processors): On native Windows platforms, try GetSystemInfo.
4096 2009-10-18 Bruno Haible <bruno@clisp.org>
4098 Implement nproc for IRIX.
4099 * lib/nproc.c: Include <sys/sysmp.h>.
4100 (num_processors): On IRIX systems, try sysmp.
4101 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
4103 2009-10-18 Bruno Haible <bruno@clisp.org>
4105 Implement nproc for HP-UX.
4106 * lib/nproc.c: Include <sys/pstat.h>
4107 (num_processors): On HP-UX systems, try pstat_getdynamic.
4108 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
4111 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
4112 Bruno Haible <bruno@clisp.org>
4114 Implement nproc for NetBSD, OpenBSD.
4115 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
4116 (ARRAY_SIZE): New macro.
4117 (num_processors): On BSD systems, try sysctl of HW_NCPU.
4118 * m4/nproc.m4: New file.
4119 * modules/nproc (Files): Add m4/nproc.m4.
4120 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
4121 (Makefile.am): Instead, augment lib_SOURCES.
4123 2009-10-18 Bruno Haible <bruno@clisp.org>
4125 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
4126 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
4129 2009-10-16 Eric Blake <ebb9@byu.net>
4131 utimensat: new module
4132 * modules/utimensat: New file.
4133 * lib/utimensat.c (utimensat): Likewise.
4134 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4135 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
4136 so we can work around Linux bugs.
4137 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4138 * modules/sys_stat (Makefile.am): Substitute them.
4139 * lib/sys_stat.in.h (utimensat): Declare it.
4140 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4141 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4142 * modules/utimensat-tests: New test.
4143 * tests/test-utimensat.c: Likewise.
4145 utimens: let lutimens work on non-symlinks
4146 * lib/utimens.c (lutimens): Fall back to utimens rather than
4147 failing with ENOSYS, when file is not a symlink.
4148 (utimens): Reduce redirection.
4149 * tests/test-lutimens.h (test_lutimens): Update test to cover
4151 * tests/test-utimens.h (test_utimens): Update test to cover
4153 * tests/test-utimens.c (main): Update caller.
4155 utimens: cache whether utimensat syscall works
4156 * lib/utimens.c (utimensat_works_really): New cache variable.
4157 (fdutimens, lutimens): Use it to avoid failing syscall.
4159 test-stat-time, test-utimens: improve portability
4160 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
4161 ext4 on alpha, and for cygwin.
4162 * tests/test-utimens-common.h: New file.
4163 (nap): Factor delays into single function.
4164 * tests/test-lutimens.h (test_lutimens): Use new header.
4165 * tests/test-futimens.h (test_futimens): Likewise.
4166 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
4167 timestamps to occur from same machine, as was done previously for
4169 * modules/utimens-tests (Files): Ship new file.
4170 * modules/futimens-tests (Files): Likewise.
4171 Reported in part by Jim Meyering.
4173 sys_stat: sort replacement declarations
4174 * lib/sys_stat.in.h: Sort declarations.
4175 * lib/futimens.c (futimens): Fix typo.
4177 2009-10-15 Jim Meyering <meyering@redhat.com>
4179 don't let environment settings perturb build
4180 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
4181 could cause a configure-time and/or build-time malfunction.
4182 Typically, a configure-time function-in-library test is performed
4187 prefix_saved_LIBS=$LIBS
4188 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
4189 [test "$ac_cv_search_FUNC" = "none required" ||
4190 LIB_VAR=$ac_cv_search_FUNC])
4191 LIBS=$prefix_saved_LIBS
4193 However, in each of the files affected by this change, the LIB_VAR=
4194 initialization was omitted. Thus, when set in the environment, its
4195 value would propagate into generated Makefiles when FUNC is not found
4197 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
4198 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
4199 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
4201 2009-10-14 Eric Blake <ebb9@byu.net>
4203 fchdir: avoid infinite recursion in mingw
4204 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
4207 test-stat-time: port to mingw
4208 * tests/test-stat-time.c (force_unlink): Return a value.
4209 (test_ctime) [W32]: Fix compilation error.
4210 (nap): Don't call usleep with too large an argument. Use
4212 * doc/pastposix-functions/usleep.texi (usleep): Document the
4215 2009-10-13 Jim Meyering <meyering@redhat.com>
4217 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
4218 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
4219 * modules/pipe-filter-ii: Likewise.
4220 * modules/sys_socket-tests: Likewise.
4221 * modules/tsearch-tests: Likewise.
4222 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
4223 (check): Depend on it.
4225 2009-10-12 Eric Blake <ebb9@byu.net>
4227 utimens-tests: port to NFS file systems
4228 * tests/test-utimens.h (test_utimens): Refactor utimecmp
4229 comparisons to avoid spurious failures from timestamp drift
4230 between NFS machines.
4232 2009-10-12 Eric Blake <ebb9@byu.net>
4234 stat-time-tests: minor cleanups
4235 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
4236 * tests/test-stat-time.c (nap): Separate assignment from call.
4237 Suggested by Paolo Bonzini and Bruno Haible.
4239 sys_stat: guarantee struct timespec
4240 * lib/sys_stat.in.h (includes): Always include <time.h>
4241 * modules/sys_stat (Depends-on): Add time.
4242 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
4243 mode_t permission values.
4244 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
4245 get at subsecond timestamps.
4247 2009-10-10 Eric Blake <ebb9@byu.net>
4249 futimens: new module
4250 * modules/futimens: New file.
4251 * lib/futimens.c (futimens): Likewise.
4252 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
4253 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
4254 we can work around Linux bugs.
4255 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
4256 * modules/sys_stat (Makefile.am): Substitute them.
4257 * lib/sys_stat.in.h (futimens): Declare it.
4258 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4259 * doc/posix-functions/futimens.texi (futimens): Likewise.
4260 * modules/futimens-tests: New test.
4261 * tests/test-futimens.c: Likewise.
4263 utimens: introduce fdutimens
4264 * lib/utimens.h (fdutimens): New prototype.
4265 * lib/utimens.c (gl_futimens): Move guts...
4266 (fdutimens): ...to new interface.
4267 * tests/test-utimens.c (do_fdutimens): Use it.
4269 utimens: add UTIME_NOW and UTIME_OMIT support
4270 * lib/utimens.c (validate_timespec, update_timespec): New helper
4272 (gl_futimens, lutimens): Use them.
4273 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
4275 (Link): Mention resulting library dependency.
4276 * modules/utimecmp (Link): Likewise.
4277 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
4278 (Makefile.am): Pick up library dependency.
4279 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
4281 * tests/test-sys_stat.c: Test the definitions.
4282 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
4283 * NEWS: Document library dependency.
4285 utimecmp: support symlink timestamps
4286 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
4287 hashing when possible. Use pathconf when available.
4288 (SYSCALL_RESOLUTION): Recognize tighter resolution.
4289 * modules/utimecmp (Depends-on): Add lstat.
4291 utimens: add lutimens interface
4292 * lib/utimens.c (lutimens): New function.
4293 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
4294 * lib/utimens.h (lutimens): Declare new interface.
4295 * tests/test-utimens.c (main): Enhance test.
4296 * tests/test-lutimens.h (test_lutimens): New file.
4297 * modules/utimens-tests (Files): Distribute it.
4298 (Depends-on): Add symlink.
4299 (configure.ac): Check for usleep.
4301 utimens: validate futimens usage
4302 * lib/utimens.c (gl_futimens): Require valid fd up front, using
4303 fewer syscalls on failure later on. Avoid compiler warning on
4305 * modules/utimens (Depends-on): Add dup2.
4308 * modules/utimens-tests: New test.
4309 * tests/test-utimens.h: New file.
4310 * tests/test-futimens.h: Likewise.
4311 * tests/test-utimens.c: Likewise.
4313 doc: mention timestamp portability issues
4314 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
4316 * doc/posix-functions/utime.texi (utime): Likewise.
4317 * doc/posix-functions/utimes.texi (utimes): Likewise.
4318 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
4320 * doc/posix-functions/futimens.texi (futimens): Mention utimens
4322 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4323 Mention weakness with symlink timestamps.
4324 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
4325 to utimensat/futimens instead.
4326 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
4328 test-dup2: enhance test
4329 * tests/test-dup2.c (main): Also check AT_FDCWD.
4331 test-stat-time: avoid more spurious failures
4332 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
4333 xfs; and avoid race if the two timestamps cross quantization edge.
4335 relocatable: prefer 'file system' over 'filesystem'
4336 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
4337 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
4338 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
4339 * doc/relocatable.texi (Enabling Relocatability): Likewise.
4340 * lib/relocatable.c (compute_curr_prefix): Likewise.
4342 2009-10-10 Jim Meyering <meyering@redhat.com>
4344 stat-time-tests: check for the usleep function
4345 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
4347 2009-10-10 Bruno Haible <bruno@clisp.org>
4349 * modules/xnanosleep: Put the Link section after the Include section.
4351 2009-10-09 Eric Blake <ebb9@byu.net>
4353 dup2: work around FreeBSD 6.1 bug
4354 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
4355 * doc/posix-functions/dup2.texi (dup2): Document it.
4356 Reported by Nelson H. F. Beebe and Jim Meyering.
4358 test-stat-time: port to buggy NFS clients
4359 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
4360 (test_ctime): Also skip test if mtime and ctime are skewed.
4362 maint: prefer 'file system' over 'filesystem'
4363 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
4364 * doc/posix-functions/lstat.texi (lstat): Likewise.
4365 * lib/file-has-acl.c (file_has_acl): Likewise.
4366 * lib/fwriteerror.c [TEST]: Likewise.
4367 * tests/test-areadlink.h (test_areadlink): Likewise.
4368 * tests/test-areadlinkat-with-size.c (main): Likewise.
4369 * tests/test-areadlinkat.c (main): Likewise.
4370 * tests/test-canonicalize-lgpl.c (main): Likewise.
4371 * tests/test-canonicalize.c (main): Likewise.
4372 * tests/test-fstatat.c (main): Likewise.
4373 * tests/test-linkat.c (main): Likewise.
4374 * tests/test-lstat.h (test_lstat_func): Likewise.
4375 * tests/test-mkdir.h (test_mkdir): Likewise.
4376 * tests/test-readlink.h (test_readlink): Likewise.
4377 * tests/test-remove.c (main): Likewise.
4378 * tests/test-rename.h (test_rename): Likewise.
4379 * tests/test-renameat.c (main): Likewise.
4380 * tests/test-rmdir.h (test_rmdir_func): Likewise.
4381 * tests/test-symlink.h (test_symlink): Likewise.
4382 * tests/test-symlinkat.c (main): Likewise.
4383 * tests/test-unlink.h (test_unlink_func): Likewise.
4384 * tests/test-unlinkat.c (main): Likewise.
4386 maint: make realtime library usage explicit
4387 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
4388 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
4389 * modules/settime (Link): Likewise.
4390 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
4392 test-stat-time: speed up execution
4393 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
4395 (nap): New helper function.
4396 (prepare_test): Use it to reduce sleep time.
4397 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
4399 * modules/stat-time-tests (configure.ac): Check for usleep.
4401 2009-10-09 Jim Meyering <meyering@redhat.com>
4403 selinux-h: always use getfilecon wrappers
4404 * lib/getfilecon.c: New file.
4405 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
4406 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
4407 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
4408 (fgetfilecon): Provide a stub.
4409 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
4410 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
4411 file unconditionally.
4412 When <selinux/selinux.h> is found, arrange to use wrappers.
4413 * modules/selinux-h (Files): Add getfilecon.c.
4414 (Makefile.am): Substitute include-next-related bits
4415 into the now-always-generated selinux/selinux.h file.
4416 * doc/glibc-functions/lgetfilecon.texi: New file.
4417 * doc/glibc-functions/fgetfilecon.texi: New file.
4418 * doc/glibc-functions/getfilecon.texi: New file.
4419 * doc/glibc-functions/getfilecon-desc.texi: New file.
4420 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
4421 which to pull in the new files.
4422 * MODULES.html.sh (Misc): Add selinux-h.
4424 2009-10-08 Jim Meyering <meyering@redhat.com>
4426 unistd: fix comment typo
4427 * lib/unistd.in.h (euidaccess): Fix a comment typo.
4429 2009-10-08 Eric Blake <ebb9@byu.net>
4431 areadlink: use SIZE_MAX consistently
4432 * modules/areadlink (Depends-on): Add stdint.
4433 * modules/areadlink-with-size (Depends-on): Likewise.
4434 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
4435 gives NULL; drop sys/types, since unistd gives size_t; and add
4436 stdint for SIZE_MAX.
4437 (SIZE_MAX): Rely on headers.
4438 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
4440 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
4441 (SIZE_MAX): Likewise.
4442 (INITIAL_BUF_SIZE): Turn into enum.
4443 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
4445 2009-10-08 Jim Meyering <meyering@redhat.com>
4447 areadlinkat: avoid compilation failure
4448 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
4449 Fix typo in comment.
4451 2009-10-07 Eric Blake <ebb9@byu.net>
4453 areadlinkat-with-size: new module
4454 * modules/areadlinkat-with-size: New module.
4455 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
4456 * lib/areadlink.h (areadlinkat): Declare it.
4457 * MODULES.html.sh (File system functions): Mention it.
4458 * modules/areadlinkat-with-size-tests: New test.
4459 * tests/test-areadlinkat-with-size.c: New file.
4461 xreadlinkat: new module
4462 * modules/xreadlinkat: New module.
4463 * lib/xreadlinkat.c (xreadlinkat): New file.
4464 * lib/xreadlink.h (xreadlinkat): Declare it.
4465 * MODULES.html.sh (File system functions): Mention it.
4467 areadlinkat: new module
4468 * lib/at-func.c (FUNC_FAIL): New define.
4469 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
4470 * modules/areadlinkat: New module.
4471 * lib/linkat.c (areadlinkat): Move...
4472 * lib/areadlinkat.c (areadlinkat): ...to new file.
4473 * lib/areadlink.h (areadlinkat): Declare it.
4474 * modules/linkat (Depends-on): Add areadlinkat.
4475 * MODULES.html.sh (File system functions): Mention it.
4476 * modules/areadlinkat-tests: New test.
4477 * tests/test-areadlinkat.c: New file.
4479 areadlink, areadlink-with-size: add tests
4480 * modules/areadlink-tests: New test.
4481 * modules/areadlink-with-size-tests: Likewise.
4482 * tests/test-areadlink.h: New file.
4483 * tests/test-areadlink.c: Likewise.
4484 * tests/test-areadlink-with-size.c: Likewise.
4486 maint: minor cleanups
4487 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
4488 _UNUSED_PARAMETER_ instead.
4489 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
4490 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
4491 * modules/linkat-tests (Files): Distribute test-link.h.
4493 openat, utimens: whitespace cleanup
4494 * lib/openat.c: Prefer space throughout, rather than mix of 8
4496 * lib/at-func.c: Likewise.
4497 * lib/utimens.c: Likewise.
4499 openat: avoid using wrong fd
4500 * lib/openat.c (openat_permissive): Reject user's fd if saving the
4501 working directory chooses same fd.
4502 * lib/at-func.c (AT_FUNC_NAME): Likewise.
4504 mkdir, mkdirat: fix cygwin 1.5.x bug
4505 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
4506 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
4507 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
4509 (gl_PREREQ_MKDIR): Delete unused macro.
4510 * modules/mkdir (Files): Track file rename.
4511 (configure.ac): Update macro name.
4512 * modules/openat (Depends-on): Add mkdir.
4513 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
4515 mkdir, mkdirat: add tests
4516 * modules/mkdir-tests: New test.
4517 * tests/test-mkdir.h: New file.
4518 * tests/test-mkdir.c: Likewise.
4519 * tests/test-mkdirat.c: Likewise.
4520 * modules/openat-tests (Files): Add new files.
4521 (Makefile.am): Run new test.
4523 2009-10-06 Eric Blake <ebb9@byu.net>
4525 doc: tweak *at function documentation
4526 * doc/posix-functions/faccessat.texi (faccessat): Mention
4527 known issue with replacement.
4528 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
4529 * doc/posix-functions/linkat.texi (linkat): Likewise.
4530 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
4531 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
4532 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4533 * doc/posix-functions/renameat.texi (renameat): Likewise.
4534 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4536 openat: fix GNU/Hurd bug in unlinkat
4537 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
4539 * doc/posix-functions/unlink.texi (unlink): Document this.
4540 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
4542 fdopendir: fix GNU/Hurd bug
4543 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
4544 allowing non-directory fds.
4545 * lib/fdopendir.c (rpl_fdopendir): Work around it.
4546 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
4547 * modules/dirent (Makefile.am): Substitute it.
4548 * lib/dirent.in.h (fdopendir): Declare replacement.
4549 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
4550 * tests/test-fdopendir.c (main): Test something other than
4551 /dev/null, since on Hurd that behaves like a directory.
4553 test-symlink: port to GNU/Hurd
4554 * tests/test-symlink.h (test_symlink): Relax expected errno.
4556 doc: tweak more cygwin information
4557 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
4558 now compatible with glibc.
4559 * doc/posix-functions/getopt.texi (getopt): Likewise.
4561 getopt-gnu: add another test
4562 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
4563 guarantee behavior relied on by m4.
4564 * tests/test-getopt.c (main): Use it.
4565 * modules/getopt-posix-tests (Depends-on): Add setenv.
4566 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
4568 getopt: fix compilation on darwin
4569 * lib/getopt.in.h (includes): Leave breadcrumbs during system
4571 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
4572 Reported by Ludovic Courtès.
4574 2009-10-06 Bruno Haible <bruno@clisp.org>
4576 * modules/size_max (Description): Discourage its use.
4577 Reported by Simon Josefsson.
4579 2009-10-06 Jim Meyering <meyering@redhat.com>
4581 linkat: avoid compilation failure
4582 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
4584 2009-10-05 Eric Blake <ebb9@byu.net>
4586 linkat: support Linux 2.6.17
4587 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
4588 linkat on Linux, but allow cache variable override.
4589 * lib/linkat.c (rpl_linkat): Define override.
4590 * modules/linkat (Depends-on): Add symlinkat.
4591 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
4592 * modules/unistd (Makefile.am): Substitute it.
4593 * lib/unistd.in.h (linkat): Declare replacement.
4594 Reported by Pádraig Brady.
4596 quotearg: port test to systems with C.UTF-8 locale
4597 * tests/test-quotearg.c (struct result_strings): Add another
4598 member, differentiating between C.ASCII and C.UTF-8 handling.
4599 (compare_strings): Add parameter.
4600 (main): Adjust all callers.
4602 getopt: avoid clash with FreeBSD _getopt_internal
4603 * lib/getopt.in.h (_getopt_internal): Override the name.
4604 * lib/getopt_int.h (includes): Pick up any overrides.
4605 Reported by Reuben Thomas.
4607 hash: allow C89 compilation
4608 * lib/hash.c (check_tuning): Move declaration before statement.
4609 Reported by Reuben Thomas.
4611 2009-10-05 Karl Berry <karl@gnu.org>
4613 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
4615 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
4616 Bruno Haible <bruno@clisp.org>
4618 * lib/uname.c (uname): Use a table-driven algorithm to compute
4619 Windows NT versions.
4621 2009-10-04 Bruno Haible <bruno@clisp.org>
4623 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
4624 program_invocation_short_name.
4625 * modules/progname (configure.ac): Test for presence of
4626 program_invocation_short_name.
4627 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
4629 2009-10-04 Bruno Haible <bruno@clisp.org>
4631 * lib/progname.c (set_program_name): Fix comment.
4632 Reported by Jim Meyering.
4634 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
4635 Bruno Haible <bruno@clisp.org>
4637 * lib/uname.c: Include <string.h>.
4638 (uname): Do only one call to GetVersionEx in the common case.
4640 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
4641 Bruno Haible <bruno@clisp.org>
4643 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
4644 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
4645 (uname): Add support for Windows CE and various non-x86 CPU types.
4647 2009-10-03 Bruno Haible <bruno@clisp.org>
4649 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
4650 invocation to tests/configure.ac.
4651 Reported by Ian Beckwith <ianb@erislabs.net>.
4653 2009-10-02 Eric Blake <ebb9@byu.net>
4655 fchdir: avoid compiler warning
4656 * lib/fchdir.c (canonicalize_file_name)
4657 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
4659 test-open: support mingw errno values
4660 * tests/test-open.h (test_open): Relax test.
4661 * tests/test-fopen.h (test_fopen): Likewise.
4662 * tests/test-openat-safer.c (main): Likewise.
4664 open: fix opening directory on mingw
4665 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
4667 test-open: on GNU/Hurd, /dev/null is a directory
4668 * tests/test-fopen.h (main): Rename...
4669 (test_fopen): ...to this. Use a guaranteed non-directory when
4670 confirming open behavior on trailing slash.
4671 * tests/test-openat-safer.c (main): Likewise.
4672 * tests/test-open.h (main): Likewise....
4673 (test_open): ...to this.
4674 * tests/test-fopen.c (main): Adjust caller.
4675 * tests/test-fopen-safer.c (main): Likewise.
4676 * tests/test-open.c (main): Likewise.
4677 * tests/test-fcntl-safer.c (main): Likewise.
4678 Reported by Samuel Thibault.
4680 rename, fchdir: don't ignore chdir failure
4681 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
4682 * lib/rename.c (rpl_rename) [W32]: Likewise.
4683 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
4684 an empty destination directory if source cannot be renamed,
4685 although there is still possibility for failure.
4686 * doc/posix-functions/rename.texi (rename): Document the race.
4687 Reported by Jim Meyering.
4689 maint: cleanup whitespace in recent commits
4690 * lib/rename.c (rpl_rename): Remove tabs.
4691 * tests/test-link.h (test_link): Likewise.
4692 * lib/fchdir.c (get_name): Likewise.
4693 Reported by Jim Meyering.
4695 2009-10-02 Ben Pfaff <blp@gnu.org>
4697 relocatable-prog-wrapper: Add missing dependency on
4699 * modules/relocatable-prog-wrapper: Add dependency.
4700 Reported by Ian Beckwith <ianb@erislabs.net>.
4702 2009-10-02 Eric Blake <ebb9@byu.net>
4704 renameat: fix Solaris bugs
4705 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
4707 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
4708 * modules/stdio (Makefile.am): Substitute it.
4709 * lib/stdio.in.h (renameat): Declare replacement.
4710 * lib/renameat.c (rpl_renameat): Implement fix.
4712 renameat: new module
4713 * modules/renameat: New file.
4714 * lib/renameat.c (renameat): Likewise.
4715 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
4716 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
4717 * modules/stdio (Makefile.am): Substitute them.
4718 * lib/stdio.in.h (renameat): Declare it.
4719 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4720 * doc/posix-functions/renameat.texi (renameat): Likewise.
4721 * modules/renameat-tests: New test.
4722 * tests/test-renameat.c: Likewise.
4724 rename: fix mingw bugs
4725 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
4726 directory overwrite bugs.
4728 rename: fix another cygwin 1.5 bug
4729 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
4731 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
4732 unnecessary cygwin workarounds. Also work around bug with moving
4733 full directory onto an empty one.
4734 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
4736 rename-dest-slash: merge into rename module
4737 * modules/rename-dest-slash (Status): Mark obsolete.
4738 (Depends-on): Add rename.
4739 (Files): Let rename do it all.
4740 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
4741 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
4742 * m4/rename-dest-slash.m4: ...so this file can be deleted.
4743 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
4744 * lib/rename.c (rpl_rename): Update comments.
4746 rename: fix cygwin 1.5.x bugs
4747 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
4748 * lib/rename.c (rpl_rename): Work around them.
4749 * modules/rename (Depends-on): Add same-inode.
4751 rename: fix Solaris 10 bug
4752 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
4753 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
4756 rename: fix Solaris 9 bug
4757 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
4758 on non-directory. Avoid calling exit.
4759 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
4761 * modules/rename-tests (Depends-on): Drop lstat.
4762 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
4763 (gl_PREREQ_RENAME): Delete unused macro.
4765 rename-dest-slash: fix NetBSD bug
4766 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
4768 * modules/rename-dest-slash (Depends-on): Add same-inode.
4770 rename-tests: new test, exposes several platform bugs
4771 * modules/rename-tests: New file.
4772 * tests/test-rename.h: Likewise.
4773 * tests/test-rename.c: Likewise.
4774 * doc/posix-functions/rename.texi (rename): Improve documentation,
4775 including bugs that will eventually be fixed in gnulib.
4777 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
4779 * lib/uname.c: Include <stdlib.h>
4780 (uname): Assume version info is available.
4782 2009-10-02 Jim Meyering <meyering@redhat.com>
4784 gnu-web-doc-update: correct --help output
4785 * build-aux/gnu-web-doc-update: Make --help output relevant.
4787 gnu-web-doc-update: add standard options
4788 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
4790 gnu-web-doc-update: New module.
4791 Use this script to automatically update the on-line web documentation
4792 for your GNU project at http://www.gnu.org/software/$pkg/manual/
4793 * modules/gnu-web-doc-update: New file, from coreutils.
4794 * build-aux/gnu-web-doc-update: New script.
4796 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
4798 link: LoadLibrary is not needed.
4799 * lib/link.c: Use GetModuleHandle.
4801 2009-10-01 Eric Blake <ebb9@byu.net>
4803 getopt: bump serial number
4804 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
4807 tests: tighten link, rmdir, and remove tests
4808 * tests/test-link.h (includes): No need to use <config.h> here.
4809 Clean up if directory hard link was created, otherwise test for
4811 * tests/test-linkat.c (main): Simplify.
4812 * tests/test-remove.c (main): Enhance test for trailing '.'.
4813 * tests/test-rmdir.h (test_rmdir_func): Likewise.
4815 2009-10-01 Jim Meyering <meyering@redhat.com>
4817 maint.mk: requiring "make major" was annoying, for a "minor" release.
4818 What is intended is "stable", to contrast with alpha and beta,
4819 so require "make stable", not "make major".
4820 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
4821 (get_tool_versions): Likewise.
4822 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
4824 2009-09-30 Ben Pfaff <blp@gnu.org>
4826 Fix broken build of replacement for Windows tmpfile().
4827 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
4828 flags argument added along with the 'mkostemp' module.
4830 2009-09-28 Bruno Haible <bruno@clisp.org>
4832 Avoid identifier clash with POSIX function 'remove' defined as a macro.
4833 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
4835 (gl_list_remove): Update.
4836 * lib/gl_list.c (gl_list_remove): Update.
4837 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
4839 (gl_oset_remove): Update.
4840 * lib/gl_list.c (gl_oset_remove): Update.
4841 Reported by Eric Blake.
4843 2009-09-28 Eric Blake <ebb9@byu.net>
4845 doc: mention yet more cygwin 1.7 status
4846 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
4848 * doc/glibc-functions/execvpe.texi (execvpe): New file.
4849 * doc/gnulib.texi (Glibc unistd.h): Mention it.
4851 argp: fix test failure
4852 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
4853 that are not upper-case. Pass correct range to tolower.
4855 2009-09-27 Jim Meyering <meyering@redhat.com>
4857 test-yesno: work around sparc-dash here-document infelicity
4858 Without this change, the literal \177 byte in a here document
4859 would make dash 0.5.5.1-3 access uninitialized memory.
4860 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
4861 Instead, use a marker, "@", and filter through tr to create the desired
4862 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
4864 2009-09-27 Bruno Haible <bruno@clisp.org>
4866 Disable untested support for new flavours of ACLs on AIX.
4867 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
4869 * lib/set-mode-acl.c (qset_acl): Likewise.
4871 2008-12-07 Bruno Haible <bruno@clisp.org>
4873 Add support for new flavours of ACLs on AIX. (Untested.)
4874 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
4875 (file_has_acl): Add support for newer AIX.
4876 * lib/set-mode-acl.c (qset_acl): Likewise.
4877 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
4878 Rainer Tammer <tammer@tammer.net>.
4880 2009-09-26 Eric Blake <ebb9@byu.net>
4882 argp: fix compilation of getopt
4883 * lib/getopt.in.h (includes): Use different guard than glibc.
4884 Reported by Sergey Poznyakoff.
4886 doc: mention more cygwin 1.7 status
4887 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
4889 * doc/posix-functions/execl.texi (execl): Likewise.
4890 * doc/posix-functions/execle.texi (execle): Likewise.
4891 * doc/posix-functions/execlp.texi (execlp): Likewise.
4892 * doc/posix-functions/execv.texi (execv): Likewise.
4893 * doc/posix-functions/execve.texi (execve): Likewise.
4894 * doc/posix-functions/execvp.texi (execvp): Likewise.
4895 * doc/glibc-functions/canonicalize_file_name.texi
4896 (canonicalize_file_name): Cygwin 1.7 now provides this.
4897 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
4898 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
4899 on AT_SYMLINK_NOFOLLOW.
4901 2009-09-24 Eric Blake <ebb9@byu.net>
4903 test-linkat: make test more robust
4904 * tests/test-linkat.c (main): Avoid collision with EEXIST.
4906 getopt: fix inclusion guards for cygwin
4907 * modules/getopt-posix (Depends-on): Add include-next.
4908 (Makefile.am): Substitute more items in replacement header.
4909 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
4911 * lib/getopt.in.h (includes): Use split inclusion guard, and
4912 prefer <getopt.h> over include <unistd.h> when one is present.
4913 (option): Also override name of 'struct option'.
4915 same-inode: revert prior change; it is not yet ready
4916 * NEWS: Undo mention of this change.
4917 * lib/same-inode.h (same-inode.h): Undo tri-state change.
4918 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
4919 * lib/cycle-check.c (cycle_check): Likewise.
4920 * lib/same.c (same_name): Likewise.
4921 * lib/at-func2.c (at_func2): Likewise.
4923 2009-09-23 Eric Blake <ebb9@byu.net>
4926 * modules/linkat: New file.
4927 * lib/at-func2.c (at_func2): Likewise.
4928 * lib/linkat.c (linkat): Likewise.
4929 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4930 * lib/openat-priv.h (at_func2): Add declaration.
4931 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
4932 * modules/unistd (Makefile.am): Substitute them.
4933 * lib/unistd.in.h (linkat): Declare it.
4934 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
4935 * doc/posix-functions/linkat.texi (linkat): Likewise.
4936 * doc/posix-functions/link.texi (link): Tweak wording.
4937 * tests/test-link.c (main): Move guts...
4938 * tests/test-link.h (test_link): ...into new file.
4939 * modules/linkat-tests: New test.
4940 * tests/test-linkat.c: Likewise.
4941 * modules/link-tests (Files): Ship new file.
4942 (Depends-on): Add stdbool.
4944 dirname: add library-safe mdir_name
4945 * lib/dirname.h (mdir_name): New prototype.
4946 * lib/dirname.c (dir_name): Move guts...
4947 (mdir_name): ...to new function that avoids xalloc_die.
4949 fchdir: another mingw fix
4950 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
4951 * lib/fchdir.c (get_name): New helper method; skips canonicalize
4952 on mingw (where it has not yet been ported), and make it optional
4954 (_gl_register_fd): Use it.
4956 same-inode: make SAME_INODE tri-state, to port to mingw
4957 * NEWS: Mention this change.
4958 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
4959 st_ino always being 0.
4960 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
4961 * lib/cycle-check.c (cycle_check): Likewise.
4962 * lib/same.c (same_name): Likewise.
4964 lstat: avoid mingw compilation error
4965 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
4966 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
4968 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
4970 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
4971 the checks for lstat.
4972 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
4974 link: fix test failure on Solaris 9
4975 * lib/link.c (rpl_link): Don't assume link will catch bogus
4976 trailing slash on source.
4978 test-symlinkat: enhance test
4979 * tests/test-readlink.c (main): Move guts...
4980 * tests/test-readlink.h (test_readlink): ...into new file.
4981 * tests/test-symlink.c (main): Move guts...
4982 * tests/test-symlink.h (test_symlink): ...into new file.
4983 * tests/test-symlinkat.c (main): Use new files for further
4985 (do_symlink, do_readlink): New helper functions.
4986 * modules/symlink-tests (Files): Ship new file.
4987 (Depends-on): Add stdbool.
4988 * modules/readlink-tests (Files): Ship new file.
4989 (Depends-on): Add stdbool.
4990 * modules/symlinkat-tests (Files): Use new files.
4992 2009-09-23 Eric Blake <ebb9@byu.net>
4994 readlink: document portability issue with symlink length
4995 * doc/posix-functions/lstat.texi (lstat): Mention that some file
4996 systems have bogus st_size on symlinks, and mention the
4997 areadlink-with-size module.
4998 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
4999 * doc/posix-functions/readlink.texi (readlink): Mention the
5000 areadlink module, and ERANGE failure.
5001 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5002 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
5004 readlink: fix Solaris 9 bug with trailing slash
5005 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
5006 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
5007 * doc/posix-functions/readlink.texi (readlink): Document this.
5008 * modules/readlink-tests: New test.
5009 * tests/test-readlink.c: Likewise.
5011 readlink: fix cygwin 1.5.x bug with return type
5012 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
5013 * lib/unistd.in.h (readlink): Use ssize_t.
5014 * lib/readlink.c (readlink): Likewise.
5015 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5016 * modules/unistd (Makefile.am): Substitute it.
5017 * lib/unistd.in.h (readlink): Declare replacement.
5018 * doc/posix-functions/readlink.texi (readlink): Document this.
5020 symlink: use throughout gnulib
5021 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
5022 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
5023 symlink is not used.
5024 * modules/symlinkat (Depends-on): Add symlink.
5025 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5026 * modules/canonicalize-tests (Depends-on): Likewise.
5027 * modules/lstat-tests (Depends-on): Likewise.
5028 * modules/openat-tests (Depends-on): Likewise.
5029 * modules/remove-tests (Depends-on): Likewise.
5030 * modules/rmdir-tests (Depends-on): Likewise.
5031 * modules/unlink-tests (Depends-on): Likewise.
5032 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
5033 * tests/test-canonicalize.c (symlink): Likewise.
5034 * tests/test-fstatat.c (symlink): Likewise.
5035 * tests/test-lstat.c (symlink): Likewise.
5036 * tests/test-remove.c (symlink): Likewise.
5037 * tests/test-rmdir.c (symlink): Likewise.
5038 * tests/test-unlink.c (symlink): Likewise.
5039 * tests/test-unlinkat.c (symlink): Likewise.
5041 symlink: new module, for Solaris 9 bug
5042 * modules/symlink: New file.
5043 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
5044 * lib/symlink.c: Likewise.
5045 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
5046 * modules/unistd (Makefile.am): Substitute them.
5047 * lib/unistd.in.h (symlink): Declare replacement.
5048 * MODULES.html.sh (File system functions): Mention it.
5049 * doc/posix-functions/symlink.texi (symlink): Likewise.
5050 * modules/symlink-tests: New test.
5051 * tests/test-symlink.c: Likewise.
5053 2009-09-23 Bruno Haible <bruno@clisp.org>
5055 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
5057 Test case: gnulib-tool --import --with-tests atexit inttypes.
5058 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
5060 2009-09-23 Bruno Haible <bruno@clisp.org>
5062 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
5063 subcommand, not in a subshell.
5065 2009-09-22 Eric Blake <ebb9@byu.net>
5067 unistd: sort replacement declarations
5068 * lib/unistd.in.h: Sort declarations.
5070 open, openat: minor optimization
5071 * lib/open.c (open): If open succeeded, len is non-zero.
5072 * lib/openat.c (rpl_openat): Likewise.
5074 link-follow: ensure correct result
5075 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
5076 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
5077 distinguish between possible failures.
5079 2009-09-21 Eric Blake <ebb9@byu.net>
5081 fts: avoid compiler warning
5082 * lib/fts.c (dirent_inode_sort_may_be_useful)
5083 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
5085 2009-09-19 Bruno Haible <bruno@clisp.org>
5087 * lib/progreloc.c (canonicalize_file_name): New declaration.
5089 2009-09-19 Eric Blake <ebb9@byu.net>
5092 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
5094 openat: fix openat bugs on Solaris 9
5095 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
5096 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
5097 * modules/openat (Depends-on): Add open.
5098 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
5099 * modules/fcntl-h (Makefile.am): Substitute it.
5100 * lib/fcntl.in.h (openat): Declare replacement.
5101 * doc/posix-functions/openat.texi (openat): Document this.
5103 openat: move fstatat and unlinkat into correct files
5104 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
5106 * lib/openat.c (fstatat, unlinkat): Move...
5107 * lib/fstatat.c (fstatat): ...into correct files.
5108 * lib/unlinkat.c (unlinkat): Likewise.
5110 openat: fix unlinkat bugs on Solaris 9
5111 * lib/unlinkat.c (unlinkat): New file.
5112 * modules/openat (Depends-on): Add unlink.
5113 (Files): Distribute it.
5114 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
5115 trailing slash behavior is broken.
5116 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5117 * modules/unistd (Makefile.am): Substitute it.
5118 * lib/unistd.in.h (unlinkat): Declare replacement.
5119 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
5121 openat: fix fstatat bugs on Solaris 9
5122 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
5124 * doc/posix-functions/fstatat.texi (fstatat): Document this.
5126 test-unlinkat: enhance test, to expose Solaris 9 bug
5127 * tests/test-unlink.c (main): Factor guts...
5128 * tests/test-unlink.h (test_rmdir_func): ...into new file.
5129 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
5130 * tests/test-rmdir.c (main): Adjust caller.
5131 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
5132 (unlinker): New helper function.
5133 (rmdirat): Enhance check.
5134 * modules/rmdir-tests (Depends-on): Add stdbool.
5135 * modules/unlink-tests (Depends-on): Likewise.
5136 (Files): Add test-unlink.h.
5137 * modules/openat-tests (Files): Likewise.
5138 (Depends-on): Add unlinkdir.
5140 test-fstatat: new test, to expose Solaris 9 bugs
5141 * tests/test-stat.c (main): Factor guts...
5142 * tests/test-stat.h (test_stat_func): ...into new file.
5143 * tests/test-lstat.c (main): Factor guts...
5144 * tests/test-lstat.h (test_lstat_func): ...into new file.
5145 * tests/test-fstatat.c: New file.
5146 * modules/stat-tests (Files): Add test-stat.h.
5147 * modules/lstat-tests (Files): Add test-lstat.h.
5148 (Depends-on): Add stdbool.
5149 * modules/openat-tests (Depends-on): Add pathmax.
5150 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
5151 (Makefile.am): Run new test.
5153 remove: new module, for mingw and Solaris 9 bugs
5154 * modules/remove: New file.
5155 * lib/remove.c: Likewise.
5156 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
5157 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
5158 * modules/stdio (Makefile.am): Use them.
5159 * lib/stdio.in.h (remove): Declare replacement.
5160 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5161 * doc/posix-functions/remove.texi (remove): Likewise.
5162 * modules/remove-tests: New test.
5163 * tests/test-remove.c: Likewise.
5165 unlink: new module, for Solaris 9 bug
5166 * modules/unlink: New file.
5167 * lib/unlink.c: Likewise.
5168 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
5169 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
5170 * modules/unistd (Makefile.am): Use them.
5171 * lib/unistd.in.h (stat): Declare replacement.
5172 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5173 * doc/posix-functions/unlink.texi (unlink): Likewise.
5174 * modules/unlink-tests: New test.
5175 * tests/test-unlink.c: Likewise.
5177 lstat: fix Solaris 9 bug
5178 * lib/lstat.c (lstat): Also check for trailing slash on
5179 non-symlink, non-directories. Use stat module to simplify logic.
5180 * doc/posix-functions/lstat.texi (lstat): Document it.
5181 * modules/lstat-tests (Depends-on): Add errno, same-inode.
5182 (configure.ac): Check for symlink.
5183 * tests/test-lstat.c (main): Add more tests.
5185 stat: add as dependency to other modules
5186 * modules/chown (Depends-on): Add stat.
5187 * modules/euidaccess (Depends-on): Likewise.
5188 * modules/fchdir (Depends-on): Likewise.
5189 * modules/isdir (Depends-on): Likewise.
5190 * modules/link (Depends-on): Likewise.
5191 * modules/lstat (Depends-on): Likewise.
5192 * modules/mkdir-p (Depends-on): Likewise.
5193 * modules/modechange (Depends-on): Likewise.
5194 * modules/open (Depends-on): Likewise.
5195 * modules/readlink (Depends-on): Likewise.
5196 * modules/same (Depends-on): Likewise.
5198 stat: fix Solaris 9 bug
5199 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
5201 * lib/stat.c (rpl_stat): Work around it.
5202 * doc/posix-functions/stat.texi (stat): Update documentation.
5204 stat: new module, for mingw bug
5205 * modules/stat: New file.
5206 * lib/stat.c: Likewise.
5207 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
5208 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5209 * modules/sys_stat (Makefile.am): Use them.
5210 * lib/sys_stat.in.h (stat): Declare replacement.
5211 * lib/openat.c (fstatat): Deal with lstat and stat being function
5213 * modules/openat (Depends-on): Add inline.
5214 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
5215 * doc/posix-functions/stat.texi (stat): Likewise.
5216 * modules/stat-tests: New test.
5217 * tests/test-stat.c: Likewise.
5219 2009-09-19 Jim Meyering <meyering@redhat.com>
5221 syntax-check: detect unnecessary inclusion of canonicalize.h
5222 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
5224 2009-09-19 Eric Blake <ebb9@byu.net>
5226 canonicalize-lgpl: adjust clients to use correct header
5227 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
5228 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
5229 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
5230 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
5231 * lib/progreloc.c (includes): Likewise.
5233 2009-09-19 Jim Meyering <meyering@redhat.com>
5235 test-posixtm.c: correct a comment
5236 * tests/test-posixtm.c: Correct first-line comment.
5237 Spotted by Eric Blake.
5239 2009-09-16 Jim Meyering <meyering@redhat.com>
5241 posixtm-tests: make T const-correct; add a test case
5242 * tests/test-posixtm.c (T): Declare const.
5243 Add a test for -(2^31+1).
5244 Remove useless can-succeed-only-in-2002 test.
5246 posixtm-tests: adjust the sole failing test
5247 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
5248 expected output matches what mktime now produces. Cross-checked via
5249 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
5251 posixtm: move #ifdef'd tests into a new module
5252 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
5253 * tests/test-posixtm.c: ... this new file.
5254 * modules/posixtm-tests: New module.
5256 2009-09-19 Eric Blake <ebb9@byu.net>
5258 openat: simplify use of at-func.c
5259 * lib/at-func.c (includes): Include prerequisites here, to
5260 simplify requirements on client files.
5261 * lib/openat-priv.h: Add double-inclusion guard.
5262 * lib/faccessat.c (includes): Simplify.
5263 * lib/fchmodat.c (includes): Likewise.
5264 * lib/fchownat.c (includes): Likewise.
5265 * lib/mkdirat.c (includes): Likewise.
5266 * lib/mkfifoat.c (includes): Likewise.
5267 * lib/symlinkat.c (includes): Likewise.
5269 openat: allow return of fd 0
5270 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
5271 * modules/save-cwd (Depends-on): Replace fcntl-safer with
5273 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
5274 <fcntl.h>; this module does not leak fds.
5275 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
5276 must be allowed to return 0, leaving openat_safer to add the
5278 (openat_permissive): Avoid writing to just-opened fd 2 if
5279 restoring the current directory fails.
5280 * lib/openat-die.c (openat_restore_fail): Add comment.
5281 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
5282 (save_cwd): Guarantee safe fd, but without use of open_safer.
5283 * tests/test-openat.c: New test.
5284 * modules/openat-tests (Files, Makefile.am): Distribute and build
5287 relocatable-prog-wrapper: fix build
5288 * modules/relocatable-prog-wrapper (Files): Update name of
5289 canonicalize m4 file, broken on 2009-09-17.
5290 Reported by emad hajjar <aleppos@hotmail.com>.
5292 2009-09-19 Bruno Haible <bruno@clisp.org>
5294 * lib/safe-alloc.h: Use the standard header with GPL copyright.
5295 * lib/safe-alloc.c: Likewise.
5296 Reported by Ian Beckwith <ianb@erislabs.net>.
5298 2009-09-18 Bruno Haible <bruno@clisp.org>
5300 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
5301 Reported by <erobles@sensacd.com.mx>.
5303 2009-09-17 Eric Blake <ebb9@byu.net>
5305 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
5306 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
5307 slashes when checking if last component is missing.
5308 * tests/test-canonicalize.c (main): Test this.
5310 canonicalize, canonicalize-lgpl: honor // if distinct from /
5311 * modules/canonicalize (Files): Add double-slash-root.m4.
5312 * modules/canonicalize-lgpl (Files): Likewise.
5313 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
5314 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
5315 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
5316 fallback definition.
5317 (canonicalize_filename_mode): Use it to protect //.
5318 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
5319 (__realpath): Likewise.
5320 * tests/test-canonicalize.c (main): Test this.
5321 * tests/test-canonicalize-lgpl.c (main): Likewise.
5322 * modules/canonicalize-tests (Depends-on): Add same-inode.
5323 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
5325 canonicalize-lgpl: fix glibc bug with trailing slash
5326 * m4/canonicalize-lgpl.m4: Move contents...
5327 * m4/canonicalize.m4: ...here.
5328 (gl_CANONICALIZE_LGPL): Factor realpath check...
5329 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
5330 glibc 2.3.5 bug, fixed 2005-04-27.
5331 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
5332 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
5333 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
5334 * modules/canonicalize-lgpl (Files): Manage file rename.
5335 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
5336 * modules/stdlib (Makefile.am): Substitute witness.
5337 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
5339 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
5340 replacement is required.
5341 * lib/canonicalize.c (canonicalize_file_name): Likewise.
5342 * doc/glibc-functions/canonicalize_file_name.texi
5343 (canonicalize_file_name): Document this.
5344 * doc/posix-functions/realpath.texi (realpath): Likewise.
5346 canonicalize-lgpl: reject non-directory with trailing slash
5347 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
5348 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
5349 catches failures in glibc 2.3.5.
5350 * tests/test-canonicalize.c (main): Likewise.
5352 canonicalize-lgpl: use native realpath if it works
5353 * lib/canonicalize-lgpl.c (realpath): Guard with
5354 FUNC_REALPATH_WORKS.
5355 * lib/stdlib.in.h (realpath): Make declaration optional based on
5357 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
5358 native realpath works.
5359 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
5360 * modules/stdlib (Makefile.am): Substitute witness.
5362 canonicalize, canonicalize-lgpl: use <stdlib.h>
5363 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
5364 (Include): Mention <stdlib.h>.
5365 (configure.ac): Mention functions we provide.
5366 * modules/canonicalize (configure.ac): Likewise.
5367 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
5368 realpath if canonicalize_file_name is missing.
5369 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
5370 * modules/stdlib (Makefile.am): Substitute witnesses.
5371 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
5372 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
5373 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
5374 * NEWS: Document this.
5375 * doc/glibc-functions/canonicalize_file_name.texi
5376 (canonicalize_file_name): Likewise.
5377 * doc/posix-functions/realpath.texi (realpath): Likewise.
5378 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
5380 test-canonicalize: consolidate into single C program
5381 * tests/test-canonicalize.sh: Delete; move setup into...
5382 * tests/test-canonicalize.c (main): ...the program, making it
5383 easier to run in debugger. Add some tests.
5384 * modules/canonicalize-tests (Files): Remove unused file.
5385 (Depends-on): Add progname.
5386 (configure.ac, Makefile.am): Simplify.
5388 test-canonicalize-lgpl: consolidate into single C program
5389 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
5390 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
5391 easier to run in debugger. Add some tests.
5392 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
5393 (configure.ac, Makefile.am): Simplify.
5395 canonicalize: avoid resolvepath
5396 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
5398 * lib/canonicalize.c (includes): Simplify.
5399 (canonicalize_file_name): Drop resolvepath implementation.
5400 * modules/canonicalize (Depends-on): Drop filenamecat.
5402 canonicalize: don't lose errno
5403 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
5406 canonicalize: simplify errno handling
5407 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
5410 canonicalize, canonicalize-lgpl: update module dependencies
5411 * modules/canonicalize (Depends-on): Add extensions, lstat,
5413 (Files): Drop pathmax.h.
5414 (configure.ac): Adjust macro name.
5415 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
5416 lstat, stdlib, sys_stat.
5417 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
5418 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
5420 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
5421 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
5422 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
5423 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
5424 declaration, if available.
5425 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
5426 we can rely on the readlink module.
5427 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
5428 (includes): Use <unistd.h> unconditionally.
5430 2009-09-17 Eric Blake <ebb9@byu.net>
5432 maint: make Include sections of modules consistent
5433 * modules/alloca: Use only header name; no need to list #include.
5434 * modules/alloca-opt: Likewise.
5435 * modules/arpa_inet: Likewise.
5436 * modules/canon-host: Likewise.
5437 * modules/configmake: Likewise.
5438 * modules/dirent: Likewise.
5439 * modules/eealloc: Likewise.
5440 * modules/environ: Likewise.
5441 * modules/fchdir: Likewise.
5442 * modules/fcntl: Likewise.
5443 * modules/fcntl-h: Likewise.
5444 * modules/gethrxtime: Likewise.
5445 * modules/gettime: Likewise.
5446 * modules/ignore-value: Likewise.
5447 * modules/inet_ntop: Likewise.
5448 * modules/inet_pton: Likewise.
5449 * modules/inttypes: Likewise.
5450 * modules/isnand-nolibm: Likewise.
5451 * modules/isnanf-nolibm: Likewise.
5452 * modules/mbchar: Likewise.
5453 * modules/mbfile: Likewise.
5454 * modules/mbiter: Likewise.
5455 * modules/mbuiter: Likewise.
5456 * modules/netdb: Likewise.
5457 * modules/netinet_in: Likewise.
5458 * modules/nproc: Likewise.
5459 * modules/pagealign_alloc: Likewise.
5460 * modules/poll: Likewise.
5461 * modules/printf-frexp: Likewise.
5462 * modules/pthread: Likewise.
5463 * modules/putenv: Likewise.
5464 * modules/random_r: Likewise.
5465 * modules/relocatable-prog: Likewise.
5466 * modules/search: Likewise.
5467 * modules/select: Likewise.
5468 * modules/selinux-h: Likewise.
5469 * modules/settime: Likewise.
5470 * modules/signal: Likewise.
5471 * modules/size_max: Likewise.
5472 * modules/socklen: Likewise.
5473 * modules/ssize_t: Likewise.
5474 * modules/stdarg: Likewise.
5475 * modules/stdbool: Likewise.
5476 * modules/stddef: Likewise.
5477 * modules/stdint: Likewise.
5478 * modules/stdio: Likewise.
5479 * modules/stdlib: Likewise.
5480 * modules/string: Likewise.
5481 * modules/strings: Likewise.
5482 * modules/sys_file: Likewise.
5483 * modules/sys_ioctl: Likewise.
5484 * modules/sys_select: Likewise.
5485 * modules/sys_socket: Likewise.
5486 * modules/sys_stat: Likewise.
5487 * modules/sys_time: Likewise.
5488 * modules/sys_times: Likewise.
5489 * modules/sys_utsname: Likewise.
5490 * modules/sys_wait: Likewise.
5491 * modules/sysexits: Likewise.
5492 * modules/time: Likewise.
5493 * modules/times: Likewise.
5494 * modules/tmpfile: Likewise.
5495 * modules/trim: Likewise.
5496 * modules/unistd: Likewise.
5497 * modules/wchar: Likewise.
5498 * modules/wctype: Likewise.
5500 2009-09-17 Bruno Haible <bruno@clisp.org>
5502 Make getdate.y compile on QNX and NetBSD 5 / i386.
5503 * m4/getdate.m4 (gl_GETDATE): Conditionally define
5504 TIME_T_FITS_IN_LONG_INT.
5505 * lib/getdate.y (long_time_t): New type.
5506 (relative_time): Change type of 'seconds' field to long_time_t.
5507 (get_date): Update types of local variables. Check against overflow
5508 during conversion from long_time_t to time_t.
5509 Reported by Matt Kraai <kraai@ftbfs.org>
5510 and Hasso Tepper <hasso@netbsd.org>.
5512 2009-09-17 Bruno Haible <bruno@clisp.org>
5514 * modules/COPYING: Update copyright years.
5515 * modules/README: Likeiwse.
5516 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
5517 Reported by Ian Beckwith <ianb@erislabs.net>.
5519 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
5521 * users.txt: Update references for gnuit package.
5523 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
5525 * m4/getdelim.m4: Fix typo in copyright line.
5527 2009-09-17 Bruno Haible <bruno@clisp.org>
5529 * lib/atoll.c: Use the standard header with GPL copyright.
5530 * lib/argz.in.h: Likewise.
5531 * lib/glob.c: Likewise.
5532 * lib/glob-libc.h: Likewise.
5533 * lib/random_r.c: Likewise.
5534 * lib/siglist.h: Likewise.
5535 * lib/strsignal.c: Likewise.
5536 Reported by Ian Beckwith <ianb@erislabs.net>.
5538 2009-09-17 Eric Blake <ebb9@byu.net>
5540 rmdir: ensure correct dependency order
5541 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
5543 2009-09-17 Bruno Haible <bruno@clisp.org>
5545 Disable assertion that fails on NetBSD 5 / i386.
5546 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
5547 Reported by Sam Steingold <sds@gnu.org>
5548 and Hasso Tepper <hasso@netbsd.org>.
5550 2009-09-16 Eric Blake <ebb9@byu.net>
5552 unlinkdir: port to mingw
5553 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
5554 on which no one can unlink a directory.
5556 stdlib: sort witness names
5557 * modules/stdlib (Makefile.am): Sort replacements.
5558 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
5559 * lib/stdlib.in.h: Likewise.
5561 parse-duration-tests: avoid link failure
5562 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
5564 Reported by Tom G. Christensen.
5566 openat-tests: ensure unlinkat behaves like rmdir
5567 * tests/test-rmdir.c (main): Factor guts...
5568 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
5569 * modules/rmdir-tests (Files): Ship new file.
5570 * modules/openat-tests: New test.
5571 * tests/test-unlinkat.c: Likewise.
5573 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
5574 * modules/rmdir-errno (Status, Notice): Now obsolete.
5576 rmdir: work around cygwin 1.5.x and mingw bugs
5577 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
5578 * lib/rmdir.c (rmdir): Work around it.
5579 * modules/rmdir (Status, Notice): No longer obsolete.
5580 (Files): Add dos.m4.
5581 (Depends-on): Add unistd.
5582 (configure.ac): Set witnesses.
5583 (License): Relax to LGPLv2+.
5584 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
5585 * modules/unistd (Makefile.am): Substitute witnesses.
5586 * lib/unistd.in.h (rmdir): Declare replacement.
5587 * doc/posix-functions/rmdir.texi (rmdir): Document this.
5588 * modules/rmdir-tests: New tests.
5589 * tests/test-rmdir.c: Likewise.
5591 2009-09-15 Eric Blake <ebb9@byu.net>
5593 fchdir: improve use of replacement functions
5594 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
5595 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
5596 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
5598 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
5599 * modules/sys_stat (Makefile.am): Substitute correct witness.
5600 * modules/dirent (Makefile.am): Likewise.
5601 * modules/unistd (Makefile.am): Likewise.
5602 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
5603 * lib/unistd.in.h (dup): Likewise.
5604 * lib/sys_stat.in.h (fstat): Likewise.
5606 maint: ignore gnulib-tool temp files
5607 * .gitignore: Ignore files created during gnulib-tool --test.
5609 2009-09-13 Jim Meyering <meyering@redhat.com>
5611 posixtm: don't reject a time that specify "60" as the number of seconds
5612 * lib/posixtm.c (posixtime): The code to reject invalid dates
5613 would also reject a time specified with the .60 suffix.
5614 But POSIX allows that, in order to accommodate leap seconds.
5616 (main): Adjust tests accordingly.
5617 * modules/posixtm (Depends-on): Add stpcpy.
5619 2009-09-11 Jim Meyering <meyering@redhat.com>
5621 announce-gen: include [$release_type] in emitted Subject:
5622 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
5623 e.g., [stable] in the emitted Subject: line.
5625 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5627 Remove obsolete macros from several modules.
5628 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
5629 obsolete Autoconf macros with their modern counterparts.
5630 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
5631 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
5632 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
5633 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
5634 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
5635 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
5636 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
5637 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5638 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
5639 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
5640 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5641 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5642 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
5643 * m4/sockets.m4 (gl_SOCKETS): Likewise.
5644 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
5645 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
5646 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
5647 * m4/time_r.m4 (gl_TIME_R): Likewise.
5648 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
5649 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
5650 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
5652 Fix copyright header in build-aux scripts.
5653 * build-aux/git-version-gen: Fix copyright header to match GPLv3
5655 * build-aux/ncftpput-ftp: Likewise.
5656 * build-aux/update-copyright: Likewise.
5658 2009-09-09 Eric Blake <ebb9@byu.net>
5660 test-link: allow Linux choice of errno
5661 * tests/test-link.c (main): Relax test for alternate error.
5663 strndup: fix improper m4 caching
5664 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
5665 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
5666 (gl_PREREQ_STRNDUP): Delete.
5667 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
5668 * modules/string (Makefile.am): Substitute it.
5669 * lib/string.in.h (strndup): Modernize prototype.
5671 getcwd: port to mingw
5672 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
5673 different from the POSIX assumptions made throughout the getcwd
5674 module; fortunately, the mingw getcwd does not need replacement.
5675 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
5676 * modules/getcwd-tests: New test.
5677 * tests/test-getcwd.c: Likewise.
5679 link: fix platform bugs
5680 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
5681 * lib/link.c (link): Work around them. Fix related mingw bug.
5682 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
5683 * modules/unistd (Makefile.am): Substitute it.
5684 * lib/unistd.in.h (link): Declare replacement.
5685 * doc/posix-functions/link.texi (link): Document this.
5686 * modules/link (Depends-on): Add strdup-posix, sys_stat.
5688 test-link: consolidate into single C program, test more cases
5689 * tests/test-link.sh: Delete.
5690 * tests/test-link.c: Test more error conditions. Exposes bugs on
5691 at least Cygwin and Solaris.
5692 * modules/link-tests (Files): Remove unused file.
5693 (Depends-on): Add errno, sys_stat.
5694 (Makefile.am): Simplify.
5696 2009-09-08 Bruno Haible <bruno@clisp.org>
5698 Work around towlower, towupper bug on mingw.
5699 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
5700 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
5701 * doc/posix-functions/towlower.texi: Mention the mingw bug.
5702 * doc/posix-functions/towupper.texi: Likewise.
5703 Reported by Eric Blake.
5705 2009-09-08 Jim Meyering <meyering@redhat.com>
5707 build: don't try to run autoheader if we don't use it
5708 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
5709 is not used in configure.ac.
5711 2009-09-08 Eric Blake <ebb9@byu.net>
5713 euidaccess: fix compilation error
5714 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
5716 rawmemchr: relax license
5717 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
5719 Reported by Jim Meyering.
5721 mkfifoat: new module
5722 * modules/mkfifoat: New file.
5723 * lib/mkfifoat.c: Likewise.
5724 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
5725 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
5726 * modules/sys_stat (Makefile.am): Use them.
5727 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
5728 * MODULES.html.sh (File system functions): Mention module.
5729 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
5730 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
5731 * modules/mkfifoat-tests: New test.
5732 * tests/test-mkfifoat.c: Likewise.
5734 strchrnul: relax license
5735 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
5737 Reported by Jim Meyering.
5739 2009-09-08 Eric Blake <ebb9@byu.net>
5741 fstatat: fix compilation on Solaris
5742 * lib/fstatat.c (includes): Add fcntl.h.
5743 Reported by Pádraig Brady.
5745 2009-09-07 Eric Blake <ebb9@byu.net>
5747 rename: modernize replacement
5748 * modules/rename (Depends-on): Add stdio.
5749 (configure.ac): Declare witness.
5750 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
5751 stdio take care of replacement.
5752 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
5753 * modules/stdio (Makefile.am): Substitute them.
5754 * lib/stdio.in.h (rename): Declare replacement.
5755 * lib/rename.c (includes): Allow cross-compilation to non-windows
5757 * doc/posix-functions/rename.texi (rename): Improve
5760 stdio: sort witness names
5761 * modules/stdio (Makefile.am): Sort replacements.
5762 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
5763 * lib/stdio.in.h: Likewise.
5765 getcwd: minor cleanups
5766 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
5767 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
5769 openat: provide more convenience names
5770 * modules/faccessat (configure.ac): Add C witness.
5771 * lib/unistd.in.h (readlinkat): Fix typo.
5772 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
5773 convenience wrappers.
5774 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
5775 wrappers in syntax checks.
5777 2009-09-06 Eric Blake <ebb9@byu.net>
5779 doc: fix comments in recent patches
5780 * lib/faccessat.c: Mention correct function.
5781 * lib/fchmodat.c: Likewise.
5782 * lib/fchownat.c: Likewise.
5783 * lib/symlinkat.c: Likewise.
5784 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
5787 faccessat, symlinkat: continue cleanup of previous patch
5788 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
5789 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
5790 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
5791 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
5792 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
5793 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
5796 2009-09-06 Bruno Haible <bruno@clisp.org>
5798 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
5799 (fstatat): Declare if GNULIB_FSTATAT is set.
5800 (mkdirat): Declare if GNULIB_MKDIRAT is set.
5801 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
5802 (unlinkat): Declare if GNULIB_UNLINKAT is set.
5803 * modules/fcntl-h (Files): Remove m4/openat.m4.
5804 * modules/sys_stat (Files): Remove m4/openat.m4.
5805 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
5806 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
5807 * modules/unistd (Files): Remove m4/openat.m4.
5808 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
5810 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
5811 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
5812 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
5813 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
5814 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
5816 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
5817 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
5818 Don't require gl_OPENAT_DEFAULTS.
5819 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
5820 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
5821 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
5822 (gl_OPENAT_DEFAULTS): Remove macro.
5824 2009-09-06 Bruno Haible <bruno@clisp.org>
5826 * modules/openat (configure.ac): Remove unneeded witness.
5828 2009-09-06 Bruno Haible <bruno@clisp.org>
5830 Set errno to ENOSYS when a function is entirely unsupported.
5831 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
5833 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
5834 * modules/chown (Depends-on): Remove errno.
5836 2009-09-06 Bruno Haible <bruno@clisp.org>
5838 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
5840 2009-09-06 Bruno Haible <bruno@clisp.org>
5842 * lib/sys_stat.in.h: Fix preprocessor command indentation.
5844 2009-09-06 Ben Pfaff <blp@gnu.org>
5845 Bruno Haible <bruno@clisp.org>
5847 Work around a glibc bug in strtok_r.
5848 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
5849 Undefine if UNDEFINE_STRTOK_R is set.
5850 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
5851 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5852 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
5853 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
5854 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
5856 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
5858 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
5861 * lib/exclude.c: Include wctype.h
5863 2009-09-06 Akim Demaille <demaille@gostai.com>
5865 bootstrap: improve error message
5866 * build-aux/bootstrap (find_tool): Upon failure, report the list
5868 Honor the initial value of the envvar.
5870 2009-09-05 Eric Blake <ebb9@byu.net>
5872 symlinkat: new module
5873 * modules/symlinkat: New file.
5874 * lib/symlinkat.c: Likewise.
5875 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
5876 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
5877 * modules/unistd (Makefile.am): Use them.
5878 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
5879 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
5880 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
5881 * MODULES.html.sh (File system functions): Mention module.
5882 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
5883 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
5884 * modules/symlinkat-tests: New test.
5885 * tests/test-symlinkat.c: Likewise.
5887 test-openat-safer: add more checks
5888 * tests/test-openat-safer.c (main): Check more code paths.
5890 2009-09-05 Jim Meyering <meyering@redhat.com>
5892 syntax-check: detect unnecessary inclusion of openat.h
5893 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
5895 2009-09-05 Bruno Haible <bruno@clisp.org>
5897 Support towlower, towupper.
5898 * doc/posix-functions/towlower.texi: Mention module wctype.
5899 * doc/posix-functions/towupper.texi: Likewise.
5900 * lib/wctype.in.h (towlower, towupper): New functions.
5901 * tests/test-wctype.c: Include stdio.h, stdlib.h.
5902 (ASSERT): New macro.
5904 (main): Test also towlower, towupper. Test WEOF argument.
5905 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5907 2009-09-05 Bruno Haible <bruno@clisp.org>
5909 Fix conversion behaviour when the input is invalid.
5910 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
5911 mark occurring in first pass of indirect conversion.
5912 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
5914 Found by clang's static analyzer.
5916 2009-09-05 Bruno Haible <bruno@clisp.org>
5918 * tests/test-striconveh.c (main): Test indirect conversion on platforms
5919 where direct conversion is possible.
5921 2009-09-04 Eric Blake <ebb9@byu.net>
5923 openat: fail with ENOENT on empty name
5924 * lib/openat-proc.c (openat_proc_name): Special-case the empty
5927 link-follow: fix logic bug in prior patch
5928 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
5929 reversed sense of yes and no in prior patch. Avoid confusing
5930 compilation failure with desired semantics.
5932 link-follow: accomodate mingw and cross-compilation
5933 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
5934 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
5935 cross-compilation results to -1, to make linkat easier to
5936 implement when cross-compiling. Trivially support mingw.
5937 * modules/link-follow (configure.ac): Call new name.
5938 * NEWS: Mention this.
5940 2009-09-03 Eric Blake <ebb9@byu.net>
5942 faccessat: compile replacement
5943 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
5946 fts: fix compilation error
5947 * lib/fts.c (includes): Re-add "openat.h", for
5948 openat_needs_fchdir.
5950 faccessat: new module
5951 * modules/faccessat: New file.
5952 * lib/faccessat.c: Likewise.
5953 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
5954 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
5955 * modules/unistd (Makefile.am): Use it.
5956 * lib/unistd.in.h (faccessat): Declare it.
5957 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
5958 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
5959 * MODULES.html.sh (File system functions): Mention it.
5960 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
5961 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
5963 euidaccess: prefer POSIX over non-standard implementation
5964 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
5965 * lib/euidaccess.c (euidaccess): Use it if available.
5967 openat: make template easier to use
5968 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
5969 AT_FUNC_F2 to be undefined.
5970 (VALIDATE_FLAG): New macro; use it to reject bad flags.
5971 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
5972 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
5973 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
5974 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
5976 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
5977 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
5978 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
5981 openat: declare in POSIX headers
5982 * NEWS: Mention this.
5983 * modules/openat (configure.ac): Declare witnesses.
5984 (Depends-on): Add fcntl-h, sys_stat, unistd.
5985 (Include): Mention correct headers.
5986 * modules/fcntl-h (Depends-on): Add link-warning.
5987 (Files): Add openat.m4.
5988 (Makefile.am): Substitute witnesses.
5989 * modules/sys_stat (Files, Makefile.am): Likewise.
5990 * modules/unistd (Files, Makefile.am): Likewise.
5991 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
5992 (gl_OPENAT_DEFAULTS): New macro.
5993 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
5994 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
5995 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
5996 (SYS_STAT_H): Remove unused variable.
5997 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
5998 * lib/fcntl--.h (includes): Remove unneeded header.
5999 * lib/openat-safer.c (includes): Likewise.
6000 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
6001 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
6002 appropriate headers.
6003 (__OPENAT_PREFIX): Delete.
6004 * lib/fcntl.in.h (openat): Provide declaration.
6005 (AT_FDCWD): Fix Solaris bug.
6006 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
6007 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
6008 * lib/fchmodat.c (includes): Adjust to find declaration.
6009 * lib/fchownat.c (includes): Likewise.
6010 * lib/mkdirat.c (includes): Likewise.
6011 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
6014 2009-09-02 Eric Blake <ebb9@byu.net>
6016 errno: use consistently
6017 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
6018 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
6019 * lib/canonicalize.c (ELOOP): Likewise.
6020 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
6021 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
6022 * lib/lchown.c (EOPNOTSUPP): Likewise.
6023 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
6024 * lib/savewd.c (ESTALE): Likewise.
6025 * lib/settime.c (ENOSYS): Likewise.
6026 * lib/utimens.c (ENOSYS): Likewise.
6027 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
6028 * lib/chdir-safer.c (ELOOP): Likewise.
6029 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
6030 * modules/c-stack (Depends-on): Add errno.
6031 * modules/canonicalize (Depends-on): Likewise.
6032 * modules/chdir-safer (Depends-on): Likewise.
6033 * modules/fdopendir (Depends-on): Likewise.
6034 * modules/inet_ntop (Depends-on): Likewise.
6035 * modules/inet_pton (Depends-on): Likewise.
6036 * modules/lchown (Depends-on): Likewise.
6037 * modules/openat (Depends-on): Likewise.
6038 * modules/savewd (Depends-on): Likewise.
6039 * modules/settime (Depends-on): Likewise.
6040 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
6042 fts: avoid leaking fds
6043 * modules/fts (Depends-on): Add cloexec.
6044 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
6047 fts: make directory fds more robust
6048 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
6049 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
6051 backupfile, chdir-long, fts, savedir: make safer
6052 * lib/backupfile.c (includes): Use "dirent--.h", since
6053 numbered_backup can write to stderr during readdir.
6054 * lib/savedir.c (includes): Likewise.
6055 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
6056 emulation can write to stderr on failure.
6057 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
6058 * lib/getcwd.c: Document why opendir_safer is unused.
6059 * lib/glob.c: Likewise.
6060 * lib/scandir.c: Likewise.
6061 * lib/openat-proc.c: Likewise, for open_safer.
6062 * modules/backupfile (Depends-on): Add dirent-safer.
6063 * modules/savedir (Depends-on): Likewise.
6064 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
6065 * modules/chdir-long (Depends-on): Add openat-safer.
6067 openat-safer: new module
6068 * modules/openat-safer: New file.
6069 * lib/openat-safer.c: Likewise.
6070 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
6071 * lib/fcntl-safer.h (openat_safer): Declare.
6072 * lib/fcntl--.h (openat): Override.
6073 * MODULES.html.sh (File descriptor based I/O): Mention it.
6074 * lib/openat.h: Add double-inclusion guards.
6075 * lib/openat.c (includes): Only include "fcntl-safer.h", not
6076 "fcntl--.h", so we can implement openat.
6077 * modules/openat-safer-tests: New test.
6078 * tests/test-openat-safer.c: New file.
6080 dirent-safer: new module
6081 * modules/dirent-safer: New file.
6082 * lib/dirent--.h: Likewise.
6083 * lib/dirent-safer.h: Likewise.
6084 * lib/opendir-safer.c: Likewise.
6085 * m4/dirent-safer.m4: Likewise.
6086 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
6087 * modules/dirent-safer-tests: New test.
6088 * tests/test-dirent-safer.c: New file.
6089 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
6091 fdopendir: optimize on mingw
6092 * lib/unistd.in.h (_gl_directory_name): New prototype.
6093 * lib/fchdir.c (_gl_directory_name): Implement it.
6094 (fchdir): Use it to simplify implementation.
6095 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
6096 fchdir, when available, to avoid calling [f]chdir().
6098 fdopendir: split into its own module
6099 * lib/openat.c (fdopendir): Move...
6100 * lib/fdopendir.c: ...into new file.
6101 * modules/fdopendir: New module.
6102 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
6103 * modules/openat (Depends-on): Add fdopendir.
6104 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
6106 * modules/savedir (Depends-on): Only need fdopendir, not full
6108 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
6109 * lib/openat.h (fdopendir): Drop prototype.
6110 * lib/dirent.in.h (fdopendir): Provide prototype.
6111 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
6112 * modules/dirent (Makefile.am): Substitute them.
6113 * MODULES.html.sh (File system functions): Mention it.
6114 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
6115 * modules/fdopendir-tests: New file.
6116 * tests/test-fdopendir.c: Likewise.
6118 fchdir: use more consistent macro convention
6119 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
6120 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
6121 REPLACE_FCHDIR, rather than relying on config.h macros.
6122 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
6123 inside a single make-time REPLACE_FCHDIR block, rather than using
6124 the config.h FCHDIR_REPLACEMENT.
6125 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
6126 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
6127 Manage fstat replacement.
6128 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
6130 * modules/sys_stat (Files): Add m4/unistd_h.m4.
6131 (Makefile.am): Substitute REPLACE_FCHDIR.
6132 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
6134 * lib/dup-safer.c (dup_safer): Likewise.
6135 * lib/dup2.c (rpl_dup2): Likewise.
6136 * lib/dup3.c (rpl_dup3): Likewise.
6137 * lib/open.c (rpl_open): Likewise.
6139 fchdir: simplify error handling, and support dup3
6140 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
6141 stdbool, malloc-posix, realloc-posix.
6142 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
6143 (ensure_dirs_slot): Return false on allocation failure.
6145 (_gl_register_dup): New function.
6146 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
6147 (_gl_register_fd): Close fd on allocation failure.
6148 * lib/fcntl.in.h (_gl_register_fd): Update signature.
6149 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
6151 (rpl_dup2_fchdir): Delete prototype.
6152 * lib/open.c (open): Update caller.
6153 * lib/dup2.c (dup2): Track fchdir metadata.
6154 * lib/dup3.c (dup3): Likewise.
6155 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
6156 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
6158 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6160 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
6161 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
6162 don't pass arguments to AC_OUTPUT.
6164 2009-09-02 Bruno Haible <bruno@clisp.org>
6166 * modules/mkdtemp (License): Relicense under LGPLv2+.
6167 Reported by Paolo Bonzini.
6169 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6171 Replace uses of obsolete autoconf macros in Jim's modules.
6172 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
6173 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
6174 can evoke a warning from autoconf when run with -Wobsolete
6175 enabled. They were declared obsolete for good reasons (see
6176 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
6177 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
6178 should not continue using the deprecated macros.
6179 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
6180 obsolete Autoconf macros with modern counterparts.
6181 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6182 * m4/dos.m4 (gl_AC_DOS): Likewise.
6183 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
6184 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
6185 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
6186 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
6187 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
6188 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
6189 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
6190 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
6191 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
6193 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
6194 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
6195 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
6196 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
6197 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
6198 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
6200 2009-09-01 Eric Blake <ebb9@byu.net>
6202 fchdir: fix off-by-one bug in previous patch
6203 * lib/fchdir.c (rpl_fstat): Use correct bounds.
6204 (_gl_unregister_fd): Delete useless if.
6206 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
6208 maint.mk: sort the list of syntax-check rules
6209 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
6210 easier to get a sense of progress when the rules are run sequentially
6211 and take a long time.
6213 2009-09-01 Simon Josefsson <simon@josefsson.org>
6215 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
6216 * modules/netinet_in: Likewise.
6217 * modules/sys_file: Likewise.
6218 * modules/sys_ioctl: Likewise.
6219 * modules/sys_select: Likewise.
6220 * modules/sys_socket: Likewise.
6221 * modules/sys_stat: Likewise.
6222 * modules/sys_time: Likewise.
6223 * modules/sys_times: Likewise.
6224 * modules/sys_utsname: Likewise.
6225 * modules/sys_wait: Likewise.
6227 2009-09-01 Jim Meyering <meyering@redhat.com>
6229 fts: help ensure that return values are not ignored
6230 * lib/fts_.h (__GNUC_PREREQ): Define.
6231 (__attribute_warn_unused_result__): Define.
6232 (fts_children, fts_close, fts_open, fts_read): Declare with
6233 __attribute_warn_unused_result__.
6235 fts: fts_close now fails also when closing a dir file descriptor fails
6236 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
6237 and propagate to caller, along with errno.
6239 announce-gen: correct formatting in --help output
6240 * build-aux/announce-gen (usage): Move the one-line description in
6241 --help output "up", to where it belongs, just after Usage:.
6243 2009-08-31 Eric Blake <ebb9@byu.net>
6245 fchdir: port to mingw
6246 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
6247 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
6248 opened, then use a substitute.
6249 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
6251 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
6252 (_gl_register_fd): No need to check stat if open already filters
6254 (fchdir): Fix error condition to match POSIX.
6255 * modules/fchdir (Depends-on): Add sys_stat.
6256 * doc/posix-functions/open.texi (open): Document the limitation.
6257 * modules/fchdir-tests: New file.
6258 * tests/test-fchdir.c: Likewise.
6260 canonicalize: allow cross-testing from cygwin to mingw
6261 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
6262 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
6263 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
6265 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
6266 target does not support symlinks.
6267 * tests/test-canonicalize-lgpl.sh: Likewise.
6269 chown: avoid compilation warning on mingw
6270 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
6271 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
6273 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
6274 * modules/chown (Depends-on): Add errno.
6276 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
6278 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
6281 2009-08-31 Jim Meyering <meyering@redhat.com>
6283 canonicalize: remove useless initialization
6284 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
6285 initialization of local, "end".
6287 2009-08-30 Bruno Haible <bruno@clisp.org>
6289 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
6290 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
6293 2009-08-30 Bruno Haible <bruno@clisp.org>
6295 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
6296 /usr/xpg4/bin/tr when it exists.
6297 * tests/test-pipe-filter-gi1.sh: Likewise.
6299 2009-08-30 Bruno Haible <bruno@clisp.org>
6301 Work around deficient /usr/bin/id program on Solaris.
6302 * tests/test-file-has-acl.sh (ID): New variable.
6303 * tests/test-set-mode-acl.sh (ID): Likewise.
6304 * tests/test-copy-acl.sh (ID): Likewise.
6305 * tests/test-copy-file.sh (ID): Likewise.
6307 2009-08-30 Bruno Haible <bruno@clisp.org>
6309 New module 'xstriconveh'.
6310 * lib/xstriconveh.h: New file.
6311 * lib/xstriconveh.c: New file.
6312 * modules/xstriconveh: New file.
6314 2009-08-30 Bruno Haible <bruno@clisp.org>
6316 Make it easier to use mem_cd_iconveh.
6317 * lib/striconveh.h (iconveh_t): New type.
6318 (iconveh_open, iconveh_close): New declarations.
6319 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
6320 with a single 'const iconveh_t *' argument.
6321 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
6322 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
6323 with a single 'const iconveh_t *' argument.
6324 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
6325 * tests/test-striconveh.c (main): Update.
6326 * NEWS: Mention the change.
6328 2009-08-30 Bruno Haible <bruno@clisp.org>
6330 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
6333 2009-08-30 Bruno Haible <bruno@clisp.org>
6335 Work around iconv_open problem on Solaris.
6336 * lib/iconv_open-solaris.gperf: New file.
6337 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
6338 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
6339 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
6340 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
6341 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
6342 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
6344 2009-08-29 Jim Meyering <meyering@redhat.com>
6346 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
6347 * top/maint.mk (cvs-check): Remove target; it was just an alias
6348 to the better-named vc-diff-check.
6349 (maintainer-distcheck): Remove rule. It was used only from
6350 the (alpha/beta/major) target, and all of its commands but one
6351 were coreutils-specific.
6352 (vc-dist): Remove rule.
6353 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
6354 Run vc-diff-check, not vc-dist.
6355 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
6357 2009-08-27 Bruno Haible <bruno@clisp.org>
6359 * tests/test-bitrotate.c (main): Remove test that uses a shift count
6362 2009-08-27 Bruno Haible <bruno@clisp.org>
6364 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
6366 * doc/func.texi: Document the SunPRO C bug.
6368 2009-08-27 Bruno Haible <bruno@clisp.org>
6370 Fix link error on Solaris.
6371 * tests/test-parse-duration.c (xstrdup): Remove function.
6373 2009-08-26 Pádraig Brady <P@draigbrady.com>
6375 ignore-value: handle pointer types, too
6376 * lib/ignore-value.h (__attribute__): Remove definition.
6377 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
6378 of a more concise and more-often effective "(void) i" statement.
6379 (ignore_ptr): New function to suppress warnings from functions that
6380 return pointers, and to make it explicit that one function doesn't
6383 2009-08-25 Bruno Haible <bruno@clisp.org>
6385 dup2: work around a Linux bug.
6386 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
6387 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
6388 * doc/posix-functions/dup2.texi: Mention the Linux bug.
6389 Reported by Simon Josefsson.
6391 2009-08-25 Jim Meyering <meyering@redhat.com>
6393 libguestfs uses gnulib
6394 * users.txt: Add libguestfs.
6396 2009-08-24 Eric Blake <ebb9@byu.net>
6398 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
6399 * lib/pipe2.c (includes): Add binary-io.h.
6400 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
6402 2009-08-24 Bruno Haible <bruno@clisp.org>
6404 Tolerate declared but missing accept4 syscall.
6405 * lib/accept4.c (accept4): Invoke original accept4 function first, if
6407 * lib/sys_socket.in.h (accept4): If the function is already present,
6409 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
6410 * modules/accept4 (Makefile.am): Compile accept4.c always.
6411 Reported by Paolo Bonzini and Eric Blake.
6413 2009-08-23 Bruno Haible <bruno@clisp.org>
6415 New module 'accept4'.
6416 * lib/sys_socket.in.h (accept4): New declaration.
6417 * lib/accept4.c: New file.
6418 * m4/accept4.m4: New file.
6419 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
6420 GNULIB_ACCEPT4, HAVE_ACCEPT4.
6421 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
6423 * modules/accept4: New file.
6424 * doc/glibc-functions/accept4.texi: Mention the new module.
6426 2009-08-24 Jim Meyering <meyering@redhat.com>
6428 progname: also set global program_invocation_name, when possible
6429 Before this change, a libtool-enabled program that calls glibc's
6430 error function would report the program name as
6431 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
6432 * modules/progname (configure.ac): Check for a declaration of
6433 program_invocation_name.
6434 * lib/progname.c: Include <errno.h>.
6435 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
6436 Set program_invocation_name.
6438 2009-08-23 Bruno Haible <bruno@clisp.org>
6440 * lib/dup3.c: Include <string.h>.
6442 2009-08-23 Bruno Haible <bruno@clisp.org>
6444 * lib/dup3.c (dup3): Test only once whether the system actually exists.
6445 * lib/pipe2.c (pipe2): Likewise.
6446 Suggested by Eric Blake.
6448 2009-08-23 Bruno Haible <bruno@clisp.org>
6450 Tolerate declared but missing dup3 syscall.
6451 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
6452 * lib/unistd.in.h (dup3): If the function is already present,
6454 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
6455 * modules/dup3 (Makefile.am): Compile dup3.c always.
6456 Reported by Paolo Bonzini.
6458 2009-08-23 Bruno Haible <bruno@clisp.org>
6460 Tolerate declared but missing pipe2 syscall.
6461 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
6463 * lib/unistd.in.h (pipe2): If the function is already present,
6465 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
6466 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
6467 Reported by Paolo Bonzini.
6469 2009-08-23 Bruno Haible <bruno@clisp.org>
6471 * lib/pipe2.c (pipe2): Move #ifs inside function.
6473 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
6475 quotearg: document limitations of quote_these_too
6476 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
6477 those limitations are created.
6478 * lib/quotearg.h (set_char_quoting): Document that digits and
6479 letters that are special after backslash are not permitted.
6480 (quotearg_char): Cross-reference set_char_quoting documentation.
6482 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
6484 quotearg: implement custom_quoting_style
6485 * lib/quotearg.c: (struct quoting_options): Add left_quote and
6487 (set_custom_quoting): New public function.
6488 (quotearg_buffer_restyled): Add left_quote and right_quote
6489 arguments, handle them very much like locale quoting, and update
6491 (quotearg_n_custom): New public function.
6492 (quotearg_n_custom_mem): New public function.
6493 (quotearg_custom): New public function.
6494 (quotearg_custom_mem): New public function.
6495 * lib/quotearg.h: Prototype and document new public functions.
6496 (enum quoting_style): For escape_quoting_style and
6497 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
6498 ignored even though they're otherwise like c_quoting_style.
6499 Add custom_quoting_style member and document with comparison to
6500 clocale_quoting_style.
6501 * tests/test-quotearg.c (custom_quotes): New array.
6502 (custom_results): New array.
6503 (main): Extend to test custom quoting.
6505 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
6507 quotearg: fix right quote escaping when it's in quote_these_too
6508 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
6509 quote, be sure to prepend only one backslash.
6510 * tests/test-quotearg.c (use_quote_double_quotes): New function.
6513 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
6515 quotearg-tests: test escaping of embedded locale quotes
6516 * tests/test-quotearg.c (struct result_strings): Add member for
6518 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
6519 (inputs): Add new input.
6520 (results_g): Add expected results.
6521 (flag_results): Likewise.
6522 (locale_results): Likewise.
6523 (compare_strings): Check those.
6525 2009-08-23 Bruno Haible <bruno@clisp.org>
6527 Tests for module 'dup3'.
6528 * modules/dup3-tests: New file.
6529 * tests/test-dup3.c: New file.
6532 * lib/unistd.in.h (dup3): New declaration.
6533 * lib/dup3.c: New file.
6534 * m4/dup3.m4: New file.
6535 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
6537 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
6538 * modules/dup3: New file.
6539 * doc/glibc-functions/dup3.texi: Mention the new module.
6541 2009-08-23 Bruno Haible <bruno@clisp.org>
6543 Tweak the dup2 test.
6544 * tests/test-dup2.c (main): Create the test file empty. Verify that an
6545 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
6546 the test file is still empty. Fix argument order of lseek.
6548 2009-08-23 Bruno Haible <bruno@clisp.org>
6550 Avoid test link errors when the modules getopt-gnu, gettext are used.
6551 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
6552 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6554 2009-08-23 Bruno Haible <bruno@clisp.org>
6556 Fix getdtablesize() on mingw.
6557 * lib/getdtablesize.c (getdtablesize): Implement differently.
6558 * lib/unistd.in.h (getdtablesize): Improve comment.
6560 2009-08-23 Bruno Haible <bruno@clisp.org>
6562 New module 'mkostemp'.
6563 Based on Ulrich Drepper's 2007-08-10 change in glibc.
6564 * lib/stdlib.in.h (mksotemp): New declaration.
6565 * lib/mkostemp.c: New file, from glibc with modifications.
6566 * lib/tempname.h (GT_FILE): Remove outdated comment.
6567 (gen_tempname): Add flags argument.
6568 * lib/tempname.c (__GT_BIGFILE): Remove macro.
6569 (__GT_FILE): Map to 1.
6570 (small_open, large_open): Remove macros.
6571 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
6572 * lib/mkstemp.c (mkstemp): Update.
6573 * lib/mkdtemp.c (mkdtemp): Likewise.
6574 * m4/mkostemp.m4: New file.
6575 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
6577 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
6579 * modules/mkostemp: New file, based on modules/mkstemp.
6580 * doc/glibc-functions/mkostemp.texi: Mention the new module.
6581 * NEWS: Mention the change.
6583 2009-08-23 Bruno Haible <bruno@clisp.org>
6585 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
6586 Reported by Eric Blake.
6588 2009-08-23 Bruno Haible <bruno@clisp.org>
6590 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
6591 Reported by Eric Blake.
6593 2009-08-23 Bruno Haible <bruno@clisp.org>
6595 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
6596 * modules/pipe2 (Depends-on): Likewise.
6598 2009-08-23 Eric Blake <ebb9@byu.net>
6600 fcntl-h: add O_TTY_INIT support
6601 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
6602 * tests/test-fcntl-h.c (o): Test it.
6603 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6605 fcntl-h: rename from fcntl, in preparation for fcntl(2)
6606 * modules/fcntl: Move <fcntl.h> header replacement...
6607 * modules/fcntl-h: ...to new name, so as not to collide with
6608 like-named function.
6609 * tests/test-fcntl.c: Rename...
6610 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
6611 * modules/fcntl-tests: Rename...
6612 * modules/fcntl-h-tests: ...to this. Update test file name.
6613 * modules/chdir-long (Depends-on): Update clients.
6614 * modules/chdir-safer (Depends-on): Likewise.
6615 * modules/fcntl-safer (Depends-on): Likewise.
6616 * modules/fts (Depends-on): Likewise.
6617 * modules/mkancesdirs (Depends-on): Likewise.
6618 * modules/mkdir-p (Depends-on): Likewise.
6619 * modules/open (Depends-on): Likewise.
6620 * modules/savewd (Depends-on): Likewise.
6621 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
6622 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
6624 2009-08-22 Bruno Haible <bruno@clisp.org>
6626 * modules/binary-io (License): Relicense under LGPL.
6627 * modules/pipe2 (License): Likewise.
6629 2009-08-22 Bruno Haible <bruno@clisp.org>
6631 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
6633 * lib/pipe-filter-gi.c (filter_init): Likewise.
6634 Reported by Eric Blake.
6636 2009-08-22 Bruno Haible <bruno@clisp.org>
6638 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
6639 * modules/pipe (Depends-on): Add pipe2.
6641 2009-08-22 Bruno Haible <bruno@clisp.org>
6643 Tests for module 'pipe2'.
6644 * modules/pipe2-tests: New file.
6645 * tests/test-pipe2.c: New file.
6648 * lib/unistd.in.h (pipe2): New declaration.
6649 * lib/pipe2.c: New file.
6650 * m4/pipe2.m4: New file.
6651 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
6653 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
6654 * modules/pipe2: New file.
6655 * doc/glibc-functions/pipe2.texi: Mention the new module.
6657 2009-08-22 Bruno Haible <bruno@clisp.org>
6659 Reference some new glibc functions.
6660 * doc/glibc-functions/accept4.texi: New file.
6661 * doc/glibc-functions/dup3.texi: New file.
6662 * doc/glibc-functions/mkostemp.texi: New file.
6663 * doc/glibc-functions/pipe2.texi: New file.
6664 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
6665 (Glibc sys/socket.h): Refer to accept4.
6666 (Glibc unistd.h): Refer to dup3, pipe2.
6667 Reported by Eric Blake.
6669 2009-08-22 Jim Meyering <meyering@redhat.com>
6670 Bruno Haible <bruno@clisp.org>
6672 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
6673 This makes it so packages using automake-1.11's silent-rules option
6674 can print e.g., a single "GEN configmake.h" line, rather than
6675 the 30+ statements that perform the job. If you want to see the
6676 actual commands, you can still run "make V=1".
6677 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
6678 so that make output is abbreviated when those variables are defined
6680 * modules/argz: Likewise.
6681 * modules/arpa_inet: Likewise.
6682 * modules/byteswap: Likewise.
6683 * modules/configmake: Likewise.
6684 * modules/dirent: Likewise.
6685 * modules/errno: Likewise.
6686 * modules/fcntl: Likewise.
6687 * modules/float: Likewise.
6688 * modules/fnmatch: Likewise.
6689 * modules/getopt-posix: Likewise.
6690 * modules/glob: Likewise.
6691 * modules/iconv_open: Likewise.
6692 * modules/inttypes: Likewise.
6693 * modules/localcharset: Likewise.
6694 * modules/locale: Likewise.
6695 * modules/math: Likewise.
6696 * modules/netdb: Likewise.
6697 * modules/netinet_in: Likewise.
6698 * modules/poll: Likewise.
6699 * modules/posix_spawnp-tests: Likewise.
6700 * modules/sched: Likewise.
6701 * modules/search: Likewise.
6702 * modules/selinux-h: Likewise.
6703 * modules/signal: Likewise.
6704 * modules/spawn: Likewise.
6705 * modules/stdarg: Likewise.
6706 * modules/stdbool: Likewise.
6707 * modules/stddef: Likewise.
6708 * modules/stdint: Likewise.
6709 * modules/stdio: Likewise.
6710 * modules/stdlib: Likewise.
6711 * modules/string: Likewise.
6712 * modules/strings: Likewise.
6713 * modules/sys_file: Likewise.
6714 * modules/sys_ioctl: Likewise.
6715 * modules/sys_select: Likewise.
6716 * modules/sys_socket: Likewise.
6717 * modules/sys_stat: Likewise.
6718 * modules/sys_time: Likewise.
6719 * modules/sys_times: Likewise.
6720 * modules/sys_utsname: Likewise.
6721 * modules/sys_wait: Likewise.
6722 * modules/sysexits: Likewise.
6723 * modules/time: Likewise.
6724 * modules/unistd: Likewise.
6725 * modules/wchar: Likewise.
6726 * modules/wctype: Likewise.
6728 2009-08-22 Jim Meyering <meyering@redhat.com>
6730 announce-gen: detect write failure
6731 * build-aux/announce-gen: Add Coda at end.
6732 Remove equivalent-but-more-verbose block at top.
6734 2009-08-19 Akim Demaille <demaille@gostai.com>
6736 bootstrap: --help to stdout.
6737 * bootstrap (usage): Don't send --help to stderr.
6738 Use a here doc instead of a long string.
6740 2009-08-21 Eric Blake <ebb9@byu.net>
6742 test-popen-safer: split from test-popen
6743 * tests/test-popen.c (main): Move...
6744 * tests/test-popen.h: ...into new file.
6745 * tests/test-popen-safer2.c: New file.
6746 * modules/popen-tests (Files): Add test-popen.h.
6747 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
6748 Suggested by Bruno Haible.
6750 test-fcntl-safer: split from test-open
6751 * tests/test-open.c (main): Move...
6752 * tests/test-open.h: ...into new file.
6753 * tests/test-fcntl-safer.c: New file.
6754 * modules/open-tests (Files): Add test-open.h.
6755 * modules/fcntl-safer-tests: New file.
6756 Suggested by Bruno Haible.
6758 test-fopen-safer: split from test-fopen
6759 * tests/test-fopen.c (main): Move...
6760 * tests/test-fopen.h: ...into new file.
6761 * tests/test-fopen-safer.c: New file.
6762 * modules/fopen-tests (Files): Add test-fopen.h.
6763 * modules/fopen-safer-tests: New file.
6764 Suggested by Bruno Haible.
6766 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
6768 popen-safer: test O_CLOEXEC at run-time.
6769 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
6771 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
6773 fcntl: move more flags to the header
6774 * lib/cloexec.c: Do not define FD_CLOEXEC here.
6775 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
6776 * lib/fcntl.in.h: Do both things here.
6778 2009-08-21 Jim Meyering <meyering@redhat.com>
6780 consistently remove $@-t before redirecting to it
6781 * modules/argz: Remove $@-t and $@ before redirecting to the former.
6782 * modules/alloca-opt: Likewise.
6783 * modules/byteswap: Likewise.
6784 * modules/fnmatch: Likewise.
6785 * modules/getopt-posix: Likewise.
6786 * modules/glob: Likewise.
6787 * modules/poll: Likewise.
6788 * modules/posix_spawnp-tests: Likewise.
6789 * modules/sys_socket: Likewise.
6790 * modules/sysexits: Likewise.
6792 2009-08-21 Eric Blake <ebb9@byu.net>
6794 popen: simplify access to original popen
6795 * lib/popen.c (rpl_popen): No need to worry about popen being a
6797 Reported by Bruno Haible.
6799 2009-08-20 Eric Blake <ebb9@byu.net>
6801 build: avoid some compiler warnings
6802 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
6803 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
6805 (new_exclude_segment, excluded_file_pattern_p)
6806 (excluded_file_name_p): Reduce scope.
6807 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
6808 old-style declaration.
6810 2009-08-20 Simon Josefsson <simon@josefsson.org>
6812 * tests/test-exclude1.sh: Handle Windows EOL.
6813 * tests/test-exclude2.sh: Likewise.
6814 * tests/test-exclude3.sh: Likewise.
6815 * tests/test-exclude4.sh: Likewise.
6816 * tests/test-exclude5.sh: Likewise.
6817 * tests/test-exclude6.sh: Likewise.
6818 * tests/test-exclude7.sh: Likewise.
6820 2009-08-19 Akim Demaille <demaille@gostai.com>
6822 bootstrap: find sha1sum when named gsha1sum.
6823 * bootstrap (find_tool): New.
6827 2009-08-20 Jim Meyering <meyering@redhat.com>
6829 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
6830 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
6831 expression that converts "." in a file name to "\." in the resulting
6832 regexp. Start with a dummy statement, so that prior shell variable
6833 definitions are expanded portably. Reported by Simon Josefsson.
6835 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
6837 Fix polling for writeability of a screen buffer.
6838 * lib/poll.c: Distinguish input and screen buffers for the
6839 Win32 implementation.
6840 * lib/select.c: Likewise.
6842 2009-08-19 Eric Blake <ebb9@byu.net>
6844 popen-safer: prevent popen from clobbering std descriptors
6845 * modules/popen-safer: New file.
6846 * lib/popen-safer.c: Likewise.
6847 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
6848 * lib/stdio--.h (popen): Provide override.
6849 * lib/stdio-safer.h (popen_safer): Provide declaration.
6850 * tests/test-popen.c (includes): Partially test this.
6851 * modules/popen-safer-tests: New file, for more tests.
6852 * tests/test-popen-safer.c: Likewise.
6853 * MODULES.html.sh (file stream based Input/Output): Mention it.
6855 tests: test some of the *-safer modules
6856 * modules/fopen-safer (Depends-on): Add fopen.
6857 * modules/fcntl-safer (Depends-on): Add fcntl.
6858 * modules/stdlib-safer (Depends-on): Add stdlib.
6859 (configure.ac): Set indicator.
6860 * modules/unistd-safer (configure.ac): Likewise.
6861 * modules/tmpfile-safer (configure.ac): Likewise.
6862 (Depends-on): Add tmpfile.
6863 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
6865 * tests/test-fopen.c (includes): Test safer versions when they are
6867 * tests/test-open.c (includes): Likewise.
6869 popen: fix cygwin 1.5 bug when stdin closed
6870 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
6871 * modules/popen: New file.
6872 * modules/popen-tests: Likewise.
6873 * tests/test-popen.c: Likewise.
6874 * m4/popen.m4: Likewise.
6875 * lib/popen.c: Likewise.
6876 * lib/stdio.in.h (popen): New declaration.
6877 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
6878 * modules/stdio (Makefile.am): Likewise.
6879 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
6881 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
6883 maint.mk: give full control over update-copyright exclusions
6884 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
6885 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
6886 (update-copyright): Don't force inclusion of top-level
6887 ChangeLog. Don't force exclusion of all COPYING files, but make
6888 them the default exclusion instead.
6890 2009-08-16 Bruno Haible <bruno@clisp.org>
6892 Fix test failures on Solaris 10.
6893 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
6894 tests when Solaris iconv() is used.
6895 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
6896 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
6897 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
6898 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
6899 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
6901 2009-08-16 Bruno Haible <bruno@clisp.org>
6903 Fix test failures on Solaris 10.
6904 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
6905 'tr' program and pass it as first argument.
6906 * tests/test-pipe-filter-gi1.sh: Likewise.
6907 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
6908 program as first argument.
6909 * tests/test-pipe-filter-gi1.c (main): Likewise.
6911 2009-08-16 Eric Blake <ebb9@byu.net>
6913 fpurge: fix previous commits
6914 * modules/fpurge (Makefile.am): Make replacement conditional,
6915 partially reverting 2007-04-29 change; missed in previous
6917 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
6920 2009-08-16 Bruno Haible <bruno@clisp.org>
6922 Clarify fpurge's effect on the file position.
6923 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
6924 * tests/test-fpurge.c (main): Make a second pass for checking the file
6927 2009-08-16 Bruno Haible <bruno@clisp.org>
6929 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
6930 declaration of fpurge is missing.
6931 * tests/test-fpurge.c (main): Check that the file has not more contents
6932 than expected. Close the file before removing it.
6934 2009-08-15 Eric Blake <ebb9@byu.net>
6936 fpurge: don't wrap working cygwin implementation
6937 * lib/fpurge.c (fpurge): Fix comment typo.
6938 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
6939 1.7 to avoid replacement.
6940 * tests/test-fpurge.c (main): Enhance test.
6942 2009-08-15 Eric Blake <ebb9@byu.net>
6943 and Jim Meyering <meyering@redhat.com>
6945 test-update-copyright: skip if perl is insufficient
6946 * tests/test-update-copyright.sh: Failure to run maintainer tool
6947 should not cause testsuite failure on cygwin 1.5.
6949 2009-08-14 Eric Blake <ebb9@byu.net>
6951 doc: mention more functions added in cygwin 1.7.0
6952 * doc/posix-headers/limits.texi (limits.h): Update for recent
6954 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
6955 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6956 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
6957 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
6958 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
6960 2009-08-14 Eric Blake <ebb9@byu.net>
6962 maint.mk: simplify update-copyright rule
6963 * top/maint.mk (update-copyright-local): Delete, and document how
6964 to do it in cfg.mk instead.
6965 (update-copyright-exclude-regexp): Delete, and document how to do
6966 it in .x-update-copyright instead.
6967 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
6970 2009-08-14 Bruno Haible <bruno@clisp.org>
6972 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
6974 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
6976 maint.mk: support update-copyright-env
6977 * top/maint.mk (update-copyright-env): Define place-holder.
6978 (update-copyright): Expand $(update-copyright-env) before
6979 invoking update-copyright.
6981 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
6983 update-copyright: implement forced reformatting
6984 * build-aux/update-copyright: Implement and document
6985 UPDATE_COPYRIGHT_FORCE.
6986 * tests/test-update-copyright.sh: Test it.
6988 2009-08-14 Eric Blake <ebb9@byu.net>
6989 and Bruno Haible <bruno@clisp.org>
6991 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
6992 * tests/test-locale.c: Revert previous patch related to NULL.
6993 * tests/test-stdio.c: Likewise.
6994 * tests/test-stdlib.c: Likewise.
6995 * tests/test-string.c: Likewise.
6996 * tests/test-unistd.c: Likewise.
6997 * modules/time-tests (Depends-on): Add verify.
6998 * modules/wchar-tests (Depends-on): Likewise.
6999 * tests/test-time.c: Test for NULL compliance.
7000 * tests/test-wchar.c: Likewise.
7001 * modules/locale (Depends-on): Add stddef.
7002 * modules/stdio (Depends-on): Likewise.
7003 * modules/stdlib (Depends-on): Likewise.
7004 * modules/string (Depends-on): Likewise.
7005 * modules/time (Depends-on): Likewise.
7006 * modules/unistd (Depends-on): Likewise.
7007 * modules/wchar (Depends-on): Likewise.
7008 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
7009 * lib/stdlib.in.h (includes): Likewise.
7010 * lib/string.in.h (includes): Likewise.
7011 * lib/time.in.h (includes): Likewise.
7012 * lib/unistd.in.h (includes): Likewise.
7013 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
7015 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
7016 * m4/stddef_h.m4: New file.
7017 * modules/stddef: Likewise.
7018 * lib/stddef.in.h: Likewise.
7019 * modules/stddef-tests: Likewise.
7020 * tests/test-stddef.c: Likewise.
7021 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
7022 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
7023 * doc/posix-headers/locale.texi (locale.h): Likewise.
7024 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
7025 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
7026 * doc/posix-headers/string.texi (string.h): Likewise.
7027 * doc/posix-headers/time.texi (time.h): Likewise.
7028 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
7029 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
7031 2009-08-14 Eric Blake <ebb9@byu.net>
7033 doc: improve git diff of texinfo files
7034 * .gitattributes: Add rule for *.texi files, with hint on how to
7036 Copied from m4, and based on a report by Bruno Haible.
7038 2009-08-14 Bruno Haible <bruno@clisp.org>
7040 Disable multithread support by default on Cygwin 1.5.x for real.
7041 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
7043 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
7045 update-copyright: much ado about intervals
7046 * build-aux/update-copyright: Implement and document
7047 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
7048 of copyright year intervals.
7049 Also, document UPDATE_COPYRIGHT_YEAR.
7050 * tests/test-update-copyright.sh: Test it.
7052 update-copyright: convert 2-digit to 4-digit years
7053 * build-aux/update-copyright: Implement and document.
7054 * tests/test-update-copyright.sh: Update.
7056 2009-08-14 Jim Meyering <meyering@redhat.com>
7058 test-exclude: avoid coreutils "make check" failure
7059 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
7060 just as in test-argmatch.c.
7062 2009-08-13 Eric Blake <ebb9@byu.net>
7064 test-dup2: fix bad assumption
7065 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
7066 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
7068 test-version-etc: fix CRLF portability issue
7069 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
7071 * tests/test-argp-version-etc-1.sh: Likewise.
7073 getopt: update client modules
7074 * modules/argp (Depends-on): Use getopt-gnu.
7075 * modules/git-merge-changelog (Depends-on): Likewise.
7076 * modules/long-options (Depends-on): Likewise.
7077 * modules/xstrtol (Depends-on): Likewise.
7079 2009-08-13 Simon Josefsson <simon@josefsson.org>
7081 * tests/test-version-etc.sh: Don't fail on different
7082 project/version. Don't fail on CRLF differences. Rewrite to use
7083 multiple -e instead of multiple sed forks, suggested by Eric Blake
7085 * tests/test-argp-version-etc-1.sh: Likewise.
7087 2009-08-13 Simon Josefsson <simon@josefsson.org>
7089 * tests/test-version-etc.sh: Don't fail on different
7092 2009-08-12 Bruno Haible <bruno@clisp.org>
7094 Tests for modules 'getopt-posix', 'getopt-gnu'.
7095 * modules/getopt-posix-tests: New file.
7096 * tests/test-getopt.c: New file.
7097 * tests/test-getopt.h: New file.
7098 * tests/test-getopt_long.h: New file.
7100 New modules 'getopt-posix', 'getopt-gnu'.
7101 * modules/getopt-gnu: New file, renamed from modules/getopt.
7102 * modules/getopt-posix: New file.
7103 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
7104 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
7105 (gl_GETOPT): Remove macro.
7106 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
7107 Disable the test against BSD systems that declare optreset. Test
7108 against mingw bug. Test against lack of support of optional arguments
7110 * doc/glibc-headers/getopt.texi: Update module name and list of
7112 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
7113 'getopt-gnu' and more portability problems.
7114 * NEWS: Mention the changes.
7116 2009-08-12 Bruno Haible <bruno@clisp.org>
7118 Ensure that optarg etc. get declared by <unistd.h>.
7119 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
7120 AC_USE_SYSTEM_EXTENSIONS.
7121 * modules/getopt (Depends-on): Add 'extensions'.
7123 2009-08-12 Bruno Haible <bruno@clisp.org>
7125 Avoid test link errors.
7126 * modules/pipe-filter-ii-tests (Makefile.am): Define
7127 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
7128 * modules/pipe-filter-gi-tests (Makefile.am): Define
7129 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
7130 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7132 2009-08-12 Bruno Haible <bruno@clisp.org>
7134 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
7135 gl_GETOPT_SUBSTITUTE before.
7136 (gl_GETOPT): Use it.
7137 * m4/argp.m4 (gl_ARGP): Update.
7138 Reported by Sergey Poznyakoff.
7140 * m4/getopt.m4: Reorder macros.
7141 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
7142 (gl_GETOPT_SUBSTITUTE): Remove macro.
7144 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
7146 Minor improvement in gitlog-to-changelog
7148 * build-aux/gitlog-to-changelog: New option `--format' makes
7149 output format string configurable.
7151 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
7153 Optimize exclude: use hash tables for non-wildcard patterns.
7155 * lib/exclude.c: Include hash.h and mbuiter.h
7156 (struct exclude_pattern, exclude_segment): New data types.
7157 (struct exclude): Rewrite.
7158 (fnmatch_pattern_has_wildcards): New function.
7159 (new_exclude_segment, free_exclude_segment): New functions.
7160 (excluded_file_pattern_p, excluded_file_name_p): New functions.
7161 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
7162 * lib/exclude.h (is_fnmatch_pattern): New prototype.
7163 * modules/exclude: Depend on hash and mbuiter.
7165 * modules/exclude-tests: New file.
7166 * tests/test-exclude.c: New file.
7167 * tests/test-exclude1.sh: New file.
7168 * tests/test-exclude2.sh: New file.
7169 * tests/test-exclude3.sh: New file.
7170 * tests/test-exclude4.sh: New file.
7171 * tests/test-exclude5.sh: New file.
7172 * tests/test-exclude6.sh: New file.
7173 * tests/test-exclude7.sh: New file.
7175 2009-08-12 Bruno Haible <bruno@clisp.org>
7177 Ensure that getopt() gets declared by <unistd.h>.
7178 * lib/unistd.in.h: Conditionally include getopt.h.
7179 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
7180 Set GNULIB_UNISTD_H_GETOPT.
7181 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7182 GNULIB_UNISTD_H_GETOPT.
7183 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
7185 2009-08-12 Bruno Haible <bruno@clisp.org>
7188 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
7189 gl_replace_getopt instead of GETOPT_H.
7191 2009-08-12 Bruno Haible <bruno@clisp.org>
7193 * m4/getopt.m4: Add comments.
7195 2009-08-12 Bruno Haible <bruno@clisp.org>
7197 Disable multithread support by default on Cygwin 1.5.x.
7198 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
7199 set gl_use_threads=no if not specified otherwise.
7201 2009-08-11 Bruno Haible <bruno@clisp.org>
7203 Avoid compilation error on NetBSD 5.0.
7204 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
7205 * tests/test-stdio.c: Likewise.
7206 * tests/test-stdlib.c: Likewise.
7207 * tests/test-string.c: Likewise.
7208 * tests/test-unistd.c: Likewise.
7209 Reported by Greg Troxel <gdt@ir.bbn.com>
7210 at <https://savannah.gnu.org/support/?106973>.
7212 2009-08-11 Bruno Haible <bruno@clisp.org>
7214 * modules/dup2-tests (Depends-on): Remove close.
7216 Undo 2009-07-19 commit.
7217 * modules/acl-tests (Depends-on): Remove close.
7218 * modules/binary-io-tests (Depends-on): Likewise.
7219 * modules/closein-tests (Depends-on): Likewise.
7220 * modules/flock-tests (Depends-on): Likewise.
7221 * modules/fsync-tests (Depends-on): Likewise.
7222 * modules/lseek-tests (Depends-on): Likewise.
7223 * modules/pipe-tests (Depends-on): Likewise.
7224 * modules/posix_spawn-tests (Depends-on): Likewise.
7225 * modules/posix_spawnp-tests (Depends-on): Likewise.
7226 * modules/stat-time-tests (Depends-on): Likewise.
7227 * modules/yesno-tests (Depends-on): Likewise.
7229 2009-08-10 Bruno Haible <bruno@clisp.org>
7231 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
7233 2009-08-10 Bruno Haible <bruno@clisp.org>
7236 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
7238 2009-08-10 Bruno Haible <bruno@clisp.org>
7240 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
7241 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
7242 not only the first time.
7243 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
7244 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
7245 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
7246 is 1, not only the the first time.
7248 2009-08-10 Bruno Haible <bruno@clisp.org>
7250 Make it possible to use module 'gethostname' without module 'close'.
7251 * lib/unistd.in.h (close): Evoke a link error only if
7252 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
7253 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7254 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7255 * modules/unistd (Makefile.am): Substitute
7256 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7257 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
7258 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
7259 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
7260 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7261 * modules/sys_ioctl (Makefile.am): Substitute
7262 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7263 * modules/socket (configure.ac): On native Windows, set
7264 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
7265 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
7266 Reported by Sam Steingold <sds@gnu.org>.
7268 2009-08-10 Bruno Haible <bruno@clisp.org>
7270 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
7271 * modules/ioctl (configure.ac): Likewise.
7273 2009-08-10 Bruno Haible <bruno@clisp.org>
7275 Avoid collision between gnulib wrapper and libintl wrapper.
7276 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
7277 already defined in intl/printf.c.
7278 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
7279 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
7281 2009-08-09 Bruno Haible <bruno@clisp.org>
7283 Make <sys/select.h> really self-contained, also on Solaris 10.
7284 * lib/sys_select.in.h: Include <string.h>.
7285 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
7287 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
7288 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
7289 Reported by Jim Meyering.
7291 2009-08-09 Bruno Haible <bruno@clisp.org>
7293 Avoid warnings from 'aclocal' that are due to a use of macro name
7294 AM_XGETTEXT_OPTION that is not defined in automake.
7295 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
7297 * modules/error (configure.ac): Likewise.
7298 * modules/propername (configure.ac): Likewise.
7299 * modules/vasprintf (configure.ac): Likewise.
7300 * modules/verror (configure.ac): Likewise.
7301 * modules/xprintf (configure.ac): Likewise.
7302 * modules/xvasprintf (configure.ac): Likewise.
7304 2009-08-08 Bruno Haible <bruno@clisp.org>
7306 Avoid compilation error in C++ mode.
7307 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
7308 Reported by Sam Steingold <sds@gnu.org>.
7310 2009-08-08 Bruno Haible <bruno@clisp.org>
7312 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
7313 for the various Unix platforms.
7314 * doc/posix-headers/limits.texi: Update platforms list regarding
7316 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7318 2009-08-07 Jim Meyering <meyering@redhat.com>
7320 selinux-at: fix typo in a comment
7321 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
7322 Spotted by Paolo Bonzini.
7324 selinux-at: remove redundant m4 code, add documentation
7325 * modules/selinux-at (configure.ac): Remove redundant code.
7326 LIB_SELINUX is already set via the dependent module, selinux-h.
7327 (Include): Add quotes around selinux-at.h.
7328 * lib/selinux-at.h: Add documentation.
7329 Reported by Bruno Haible in
7330 http://marc.info/?l=gnulib-bug&m=124958988300749
7332 2009-08-07 Bruno Haible <bruno@clisp.org>
7334 Avoid link error on MacOS X 10.3 and 10.4.
7335 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
7337 * lib/argp-pv.c (argp_program_version): Likewise.
7338 Reported by Simon Josefsson.
7340 2009-08-07 Simon Josefsson <simon@josefsson.org>
7342 * tests/test-version-etc.sh: Use $EXEEXT.
7344 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
7346 update-copyright: update documentation to point to maint.mk
7347 * build-aux/update-copyright: Here.
7349 2009-08-06 Jim Meyering <meyering@redhat.com>
7351 maint.mk: support update-copyright-local
7352 * top/maint.mk (update-copyright-local): Define place-holder.
7353 (update-copyright): Depend on $(update-copyright-local).
7355 2009-08-06 Jim Meyering <meyering@redhat.com>
7357 selinux-at: new module
7358 Initially written for coreutils, this module will soon be
7359 used by findutils, too.
7360 * MODULES.html.sh [Misc]: Add selinux-at.
7361 * lib/selinux-at.h: New file, from coreutils.
7362 * lib/selinux-at.c: Likewise.
7363 * modules/selinux-at: Likewise.
7364 (License): Change from LGPL to GPL, since it depends
7365 on the GPL'd openat module.
7368 * README: Remove references to cogito.
7369 Remove cvs-repo-updating instructions from 2007.
7370 Don't imply that CVS is better if you have limited disk space.
7372 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
7374 update-copyright: support C-style comments
7375 * build-aux/update-copyright: Implement and document.
7376 * tests/test-update-copyright.sh: Test.
7378 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
7380 update-copyright: support omitted "(C)"
7381 * build-aux/update-copyright: Implement and document. Also,
7382 allow variable whitespace before "(C)".
7383 * tests/test-update-copyright.sh: Test.
7385 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
7387 update-copyright: don't trip on non-FSF copyright statements
7388 * build-aux/update-copyright: Fix so that the first correctly
7389 formatted FSF copyright statement is recognized no matter what
7390 appears before it. Update documentation.
7391 * tests/test-update-copyright.sh: Test that.
7393 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
7395 update-copyright: clean up code a little
7396 * build-aux/update-copyright: Append "_re" to the name of any
7397 variable holding a regular expression.
7398 Replace "old" and "new" with "stmt" in variable names.
7399 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
7401 Format code more consistently.
7403 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
7405 update-copyright-tests: improve portability
7406 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
7407 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
7409 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
7411 update-copyright: support @copyright{} and ©
7412 * build-aux/update-copyright: Implement and document.
7413 * tests/test-update-copyright.sh: Test.
7415 2009-08-04 Jim Meyering <meyering@redhat.com>
7417 update-copyright-tests: correctly test EOL=\r\n handling
7418 * tests/test-update-copyright.sh: Put \r at the end of some lines
7419 for the dos-eol tests. Based on a patch by Joel E. Denny.
7421 maint.mk: make update-copyright exclusion list more configurable
7422 * top/maint.mk (update-copyright): Default to excluding COPYING,
7423 but allow an override, in case someone does want to update that file.
7425 maint.mk: don't update copyright date in COPYING
7426 * top/maint.mk (update-copyright): Exclude COPYING.
7428 maint.mk: add a copyright-updating rule
7429 * top/maint.mk (update-copyright): New rule.
7430 Derived from coreutils/Makefile.am.
7432 update-copyright: rename some variables
7433 * build-aux/update-copyright: Rename a few variables for clarity.
7434 Tweak syntax. List Joel E. Denny as coauthor.
7436 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
7438 update-copyright: fix bug for 2-digit last year and add tests
7439 * build-aux/update-copyright: Fix bug.
7440 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
7442 * modules/update-copyright-tests: New
7443 * tests/test-update-copyright.sh: New.
7445 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
7447 update-copyright: handle leading tabs in line prefix
7448 * build-aux/update-copyright: Count leading tabs as 8 spaces
7449 when computing margin. This helps with the formatting of
7450 ChangeLogs, for example.
7451 Fix documentation a little.
7453 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
7455 update-copyright: support EOL=\r\n
7456 * build-aux/update-copyright: Implement that.
7458 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
7460 update-copyright: automatically format copyright statements
7461 * build-aux/update-copyright: Implement that.
7462 Also, be a little more predictable and safer by always failing
7463 when the full copyright format is not perfectly recognized as an
7464 unbroken whole. Discussed at
7465 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
7466 Rewrite documentation.
7468 2009-08-03 Bruno Haible <bruno@clisp.org>
7470 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
7472 2009-08-02 Bruno Haible <bruno@clisp.org>
7474 Tests for module 'uname'.
7475 * modules/uname-tests: New file.
7476 * tests/test-uname.c: New file.
7479 * lib/uname.c: New file.
7480 * m4/uname.m4: New file.
7481 * modules/uname: New file.
7482 * doc/posix-functions/uname.texi: Mention the new module.
7484 2009-08-02 Bruno Haible <bruno@clisp.org>
7486 Tests for module 'sys_utsname'.
7487 * modules/sys_utsname-tests: New file.
7488 * tests/test-sys_utsname.c: New file.
7490 New module 'sys_utsname'.
7491 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
7492 * m4/sys_utsname_h.m4: New file.
7493 * modules/sys_utsname: New file.
7494 * doc/posix-headers/sys_utsname.texi: Mention the new module.
7496 2009-08-02 Bruno Haible <bruno@clisp.org>
7498 Implicitly initialize the sockets library.
7499 * lib/gethostname.c: Include sockets.h.
7500 (rpl_gethostname): Invoke gl_sockets_startup.
7501 * lib/socket.c: Include sockets.h.
7502 (rpl_socket): Invoke gl_sockets_startup.
7503 * modules/gethostname (Depends-on): Add sockets.
7504 * modules/socket (Depends-on): Likewise.
7505 * tests/test-poll.c: Don't include sockets.h.
7506 (main): Don't invoke gl_sockets_startup.
7507 * tests/test-select.c: Don't include sockets.h.
7508 (main): Don't invoke gl_sockets_startup.
7510 2009-08-02 Bruno Haible <bruno@clisp.org>
7512 Allow multiple calls to gl_sockets_startup.
7513 * lib/sockets.c (initialized_sockets_version): New variable.
7514 (gl_sockets_startup): Do nothing if already called for this or a higher
7516 (gl_sockets_cleanup): Reset initialized_sockets_version.
7518 2009-08-03 Simon Josefsson <simon@josefsson.org>
7520 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
7521 different project/version.
7523 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
7524 Bruno Haible <bruno@clisp.org>
7526 Tests for module 'pipe-filter-gi'.
7527 * modules/pipe-filter-gi-tests: New file.
7528 * tests/test-pipe-filter-gi1.sh: New file.
7529 * tests/test-pipe-filter-gi1.c: New file.
7530 * tests/test-pipe-filter-gi2.sh: New file.
7531 * tests/test-pipe-filter-gi2-main.c: New file.
7532 * tests/test-pipe-filter-gi2-child.c: New file.
7534 New module 'pipe-filter-gi'.
7535 * lib/pipe-filter-gi.c: New file.
7536 * modules/pipe-filter-gi: New file.
7538 2009-08-02 Bruno Haible <bruno@clisp.org>
7539 Paolo Bonzini <bonzini@gnu.org>
7541 Tests for module 'pipe-filter-ii'.
7542 * modules/pipe-filter-ii-tests: New file.
7543 * tests/test-pipe-filter-ii1.sh: New file.
7544 * tests/test-pipe-filter-ii1.c: New file.
7545 * tests/test-pipe-filter-ii2.sh: New file.
7546 * tests/test-pipe-filter-ii2-main.c: New file.
7547 * tests/test-pipe-filter-ii2-child.c: New file.
7549 New module 'pipe-filter-ii'.
7550 * lib/pipe-filter.h: New file.
7551 * lib/pipe-filter-ii.c: New file.
7552 * lib/pipe-filter-aux.h: New file.
7553 * modules/pipe-filter-ii: New file.
7555 2009-08-02 Simon Josefsson <simon@josefsson.org>
7557 * lib/gc-libgcrypt.c: Change copyright to FSF.
7558 * lib/gc-gnulib.c: Likewise.
7560 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
7562 * lib/gethostname.c: Include limits.h.
7564 2009-08-02 Simon Josefsson <simon@josefsson.org>
7565 Bruno Haible <bruno@clisp.org>
7567 Ensure HOST_NAME_MAX as part of the gethostname module.
7568 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
7569 define also HOST_NAME_MAX.
7570 * tests/test-gethostname.c: Include <limits.h>.
7571 (main): Check also HOST_NAME_MAX.
7572 * doc/posix-headers/limits.texi: Document the mingw problem.
7574 2009-08-02 Bruno Haible <bruno@clisp.org>
7576 * lib/gethostname.c (gethostname): Fix handling of large len argument.
7579 2009-03-31 Simon Josefsson <simon@josefsson.org>
7581 * lib/gethostname.c: Add Windows wrapper.
7582 * m4/gethostname.m4: Look for gethostname in -lws2_32.
7583 * modules/gethostname: Depend on sys_socket & errno, for also
7584 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
7585 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
7587 2009-07-31 Jim Meyering <meyering@redhat.com>
7589 getloadavg: fix symbol name in comment
7590 * lib/getloadavg.c: Correct a typo I introduced when adding
7591 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
7592 Matt Kraai spotted the problem.
7594 2009-07-29 Matt Kraai <mkraai@beckman.com>
7596 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
7597 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
7598 code also if ! defined N_NAME_POINTER.
7599 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
7600 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
7601 but the n_name member is a 12-byte array.
7603 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
7605 update-copyright: generalize comment handling
7606 * build-aux/update-copyright: Handle copyright statements
7607 within more comment styles.
7609 Report any file with an external copyright holder or parse failure.
7611 2009-07-29 Jim Meyering <meyering@redhat.com>
7613 mktime: correct setting of REPLACE_MKTIME
7614 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
7616 update-copyright: new module
7617 * modules/update-copyright: New file.
7618 * build-aux/update-copyright: New file.
7619 * MODULES.html.sh (maint+release support): Add update-copyright.
7621 2009-07-27 Bruno Haible <bruno@clisp.org>
7623 Fix compilation error when <ctime> is used and mktime is replaced.
7624 * lib/time.in.h (mktime): New declaration.
7625 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
7626 REPLACE_MKTIME instead of defining mktime in config.h.
7627 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
7628 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
7629 Reported by Ross McFarland <rwmcfa1@neces.com>.
7631 2009-07-27 Bruno Haible <bruno@clisp.org>
7633 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
7634 Reported by Matt Kraai <mkraai@beckman.com>.
7636 2009-07-25 Jim Meyering <meyering@redhat.com>
7638 maint.mk: avoid warnings about missing files
7639 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
7640 diagnostic when .prev-version does not exist.
7641 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
7642 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
7644 Suggestions from Simon Josefsson.
7646 2009-07-25 Bruno Haible <bruno@clisp.org>
7648 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
7649 defined as macros. Needed on QNX 6.4.1.
7650 Reported by Matt Kraai <mkraai@beckman.com>.
7652 2009-07-23 Jim Meyering <meyering@redhat.com>
7654 maint.mk: invoke "make dist" with a working value of XZ_OPT
7655 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
7657 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
7659 Make fseeko.c compile on QNX.
7660 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
7662 2009-07-22 Peter Simons <simons@cryp.to>
7664 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
7665 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
7666 * lib/md4.h: Likewise.
7667 * lib/md5.h: Likewise.
7668 * lib/sha1.h: Likewise.
7669 * lib/sha256.h: Likewise.
7670 * lib/sha512.h: Likewise.
7672 tests-sha1: don't assign literal string to 'char *' variable
7673 * tests/test-sha1.c (main): Declare locals with "const" to match
7674 attributes of the right hand side.
7676 2009-07-21 Eric Blake <ebb9@byu.net>
7678 dup2: fix more mingw problems
7679 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
7681 * doc/posix-functions/dup2.texi (dup2): Document the bug.
7682 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
7683 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
7684 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
7687 2009-07-21 Jim Meyering <meyering@redhat.com>
7689 vc-list-files: avoid failure when /bin/sh is dash
7690 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
7691 On some Debian based systems, /bin/sh is a symlink to dash, and running
7692 this command would omit the "/" following each 'tests' prefix:
7693 dash -x build-aux/vc-list-files -C . tests
7694 That is because bash and dash work differently:
7695 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
7699 2009-07-21 Eric Blake <ebb9@byu.net>
7701 dup2-tests: test previous patch
7702 * modules/dup2-tests: New file.
7703 * tests/test-dup2.c: Likewise.
7704 * tests/test-open.c (main): Avoid unspecified behavior.
7705 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
7708 dup2: work around mingw and cygwin 1.5 bug
7709 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
7710 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
7711 * modules/unistd (Makefile.am): Substitute it.
7712 * lib/unistd.in.h (dup2): Declare the replacement.
7713 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
7714 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
7715 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
7716 * modules/execute (Depends-on): Add dup2.
7717 * modules/fseterr (Depends-on): Likewise.
7718 * modules/pipe (Depends-on): Likewise.
7719 * modules/posix_spawn-internal (Depends-on): Likewise.
7721 2009-07-21 Bruno Haible <bruno@clisp.org>
7723 * modules/.gitattributes: New file.
7725 2009-07-20 Bruno Haible <bruno@clisp.org>
7727 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
7730 2009-07-20 Eric Blake <ebb9@byu.net>
7732 test-pipe: make a bit more robust.
7733 * tests/test-pipe.c (myerr): Allow error messages regardless of
7734 what we do to stderr.
7735 (test_pipe): Rearrange to avoid deadlock.
7736 (child_main): Try a larger read, to ensure we avoided deadlock.
7737 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
7738 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
7741 2009-07-19 Jim Meyering <meyering@redhat.com>
7743 fts: avoid false-positive cycle-detection
7744 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
7745 for each new command line argument.
7747 2009-07-19 Bruno Haible <bruno@clisp.org>
7749 Fix build error on mingw with the modules sys_select and unistd.
7750 * modules/acl-tests (Depends-on): Add close.
7751 * modules/binary-io-tests (Depends-on): Likewise.
7752 * modules/closein-tests (Depends-on): Likewise.
7753 * modules/flock-tests (Depends-on): Likewise.
7754 * modules/fsync-tests (Depends-on): Likewise.
7755 * modules/lseek-tests (Depends-on): Likewise.
7756 * modules/pipe-tests (Depends-on): Likewise.
7757 * modules/posix_spawn-tests (Depends-on): Likewise.
7758 * modules/posix_spawnp-tests (Depends-on): Likewise.
7759 * modules/stat-time-tests (Depends-on): Likewise.
7760 * modules/yesno-tests (Depends-on): Likewise.
7762 2009-07-19 Bruno Haible <bruno@clisp.org>
7765 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
7766 macros, not at the compiler macros.
7767 * lib/pipe.c: Likewise.
7768 * lib/execute.c: Likewise.
7769 * lib/spawni.c: Likewise.
7771 2009-07-19 Bruno Haible <bruno@clisp.org>
7773 Fix handling of closed stdin/stdout/stderr on mingw.
7774 * lib/w32spawn.h: Include unistd.h.
7775 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
7776 file descriptor with O_NOINHERIT flag.
7777 (fd_safer_noinherit): New function, based on fd-safer.c.
7778 (dup_safer_noinherit): New function, based on dup-safer.c.
7779 (undup_safer_noinherit): New function.
7780 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
7781 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
7782 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
7783 instead of fd_safer.
7784 * tests/test-pipe.c: Include <windows.h>.
7785 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
7787 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
7789 (test_pipe): Pass an extra argument for disambiguation.
7790 (main): Invoke parent_main or child_main.
7792 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
7795 2009-07-18 Eric Blake <ebb9@byu.net>
7797 test-pipe: fix mingw build
7798 * tests/test-pipe.c (main): Avoid fcntl on mingw.
7800 2009-07-18 Bruno Haible <bruno@clisp.org>
7802 * modules/pipe-tests (Makefile.am): Fix typo.
7804 2009-07-18 Eric Blake <ebb9@byu.net>
7806 error: fix mingw build
7807 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
7808 Reported by Bruno Haible.
7810 error: avoid undefined use of stdout
7811 * lib/error.c (error, error_at_line): Check that fd 1 is open
7812 before flushing stdout. Avoids a crash on cygwin when libsigsegv
7813 is handling faults and the close_stdout module wants to report the
7814 detection of closed stdout as an error.
7816 2009-07-17 Eric Blake <ebb9@byu.net>
7818 pipe: be robust in face of closed fds
7819 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
7820 should cause child to misbehave.
7821 * modules/pipe-tests: New module.
7822 * tests/test-pipe.c: New file.
7823 * tests/test-pipe.sh: New file.
7824 Reported by Akim Demaille.
7826 2009-07-14 Bruno Haible <bruno@clisp.org>
7828 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
7829 Reported by anonymous kc.
7831 2009-07-07 Jim Meyering <meyering@redhat.com>
7833 maint.mk: don't look for translatable strings in *.m4 or *.mk
7834 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
7835 when searching for translatable strings.
7837 2009-07-05 Jim Meyering <meyering@redhat.com>
7839 remove superfluous parentheses in STREQ definition
7840 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
7841 * lib/getugroups.c (STREQ): Likewise.
7842 * lib/fnmatch.c (STREQ): Likewise.
7843 Spotted by Bruno Haible.
7845 2009-07-04 Jim Meyering <meyering@redhat.com>
7847 argv-iter: new module
7848 * MODULES.html.sh: Add argv-iter.
7849 * lib/argv-iter.c, lib/argv-iter.h: New files.
7850 * modules/argv-iter: New file.
7851 * modules/argv-iter-tests: New file.
7852 * tests/test-argv-iter.c: Test it.
7854 2009-07-04 Bruno Haible <bruno@clisp.org>
7857 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
7858 contains more exact copies of a given entry than file2, leave the extra
7859 copies unpaired rather than aborting.
7860 Reported by Eric Blake.
7862 2009-07-02 Bruno Haible <bruno@clisp.org>
7864 Speedup git-merge-changelog for git cherry-pick.
7865 * lib/git-merge-changelog.c (struct entries_mapping): New type.
7866 (entries_mapping_get): New function, extracted from compute_mapping.
7867 (entries_mapping_reverse_get): New function.
7868 (compute_mapping): Add a 'full' argument. Return the result in a
7869 'struct entries_mapping'.
7870 (main): Update. Access the mappings through entries_mapping_get.
7871 Reported by Eric Blake.
7873 2009-07-02 Bruno Haible <bruno@clisp.org>
7875 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
7878 2009-07-02 Bruno Haible <bruno@clisp.org>
7880 Speed up approximate search for matching ChangeLog entries.
7881 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
7882 argument. Call fstrcmp_bounded instead of fstrcmp.
7883 (compute_mapping, try_split_merged_entry, main): Update callers.
7885 2009-07-02 Bruno Haible <bruno@clisp.org>
7887 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
7889 2009-06-30 Bruno Haible <bruno@clisp.org>
7891 Reduce the number of uc_is_cased calls.
7892 * lib/unicase.h (casing_suffix_context_t): Add
7893 'first_char_except_ignorable' field.
7894 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
7895 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
7896 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
7898 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
7899 case-ignorable characters.
7900 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
7901 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
7902 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
7903 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
7904 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
7906 2009-06-30 Bruno Haible <bruno@clisp.org>
7908 Tests for module 'unicase/ignorable'.
7909 * modules/unicase/ignorable-tests: New file.
7910 * tests/unicase/test-ignorable.c: New file, generated by
7913 Tests for module 'unicase/cased'.
7914 * modules/unicase/cased-tests: New file.
7915 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
7916 * tests/unicase/test-predicate-part1.h: New file, derived from
7917 tests/unictype/test-predicate-part1.h.
7918 * tests/unicase/test-predicate-part2.h: New file, same as
7919 tests/unictype/test-predicate-part2.h.
7921 Fix evaluation of "Before C" condition of FINAL_SIGMA.
7922 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
7923 (output_casing_properties): New function.
7925 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
7926 * lib/unicase/cased.c: Include unictype/bitmap.h.
7927 (uc_is_cased): Define through a bitmap lookup.
7928 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
7929 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
7930 (uc_is_case_ignorable): Define through a bitmap lookup.
7931 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
7932 lib/unictype/bitmap.h.
7933 (Depends-on): Add inline. Clean up.
7934 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
7935 lib/unictype/bitmap.h.
7936 (Depends-on): Add inline. Clean up.
7937 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
7939 * tests/unicase/test-u16-tolower.c (main): Likewise.
7940 * tests/unicase/test-u32-tolower.c (main): Likewise.
7942 2009-06-30 Bruno Haible <bruno@clisp.org>
7944 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
7945 * lib/unicase/u16-casemap.c: Likewise.
7946 * lib/unicase/u32-casemap.c: Likewise.
7948 2009-06-29 Bruno Haible <bruno@clisp.org>
7950 Define u32_casefold as a wrapper around u32_ct_casefold.
7951 * lib/unicase/u32-casefold.c: Update.
7952 * modules/unicase/u32-casefold (Depends-on): Add
7953 unicase/u32-ct-casefold, unicase/empty-prefix-context,
7954 unicase/empty-suffix-context. Clean up.
7956 Define u16_casefold as a wrapper around u16_ct_casefold.
7957 * lib/unicase/u16-casefold.c: Update.
7958 * modules/unicase/u16-casefold (Depends-on): Add
7959 unicase/u16-ct-casefold, unicase/empty-prefix-context,
7960 unicase/empty-suffix-context. Clean up.
7962 Define u8_casefold as a wrapper around u8_ct_casefold.
7963 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
7964 * lib/unicase/u8-casefold.c: Update.
7965 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
7966 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7968 Define u32_totitle as a wrapper around u32_ct_totitle.
7969 * lib/unicase/u32-totitle.c: Update.
7970 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
7971 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7973 Define u16_totitle as a wrapper around u16_ct_totitle.
7974 * lib/unicase/u16-totitle.c: Update.
7975 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
7976 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7978 Define u8_totitle as a wrapper around u8_ct_totitle.
7979 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
7981 (FUNC): Delegate to U_CT_TOTITLE.
7982 * lib/unicase/u8-totitle.c: Update.
7983 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
7984 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
7986 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
7988 * modules/unicase/u32-tolower (Depends-on): Add
7989 unicase/empty-prefix-context, unicase/empty-suffix-context.
7991 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
7993 * modules/unicase/u16-tolower (Depends-on): Add
7994 unicase/empty-prefix-context, unicase/empty-suffix-context.
7996 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
7997 * modules/unicase/u8-tolower (Depends-on): Add
7998 unicase/empty-prefix-context, unicase/empty-suffix-context.
8000 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
8002 * modules/unicase/u32-toupper (Depends-on): Add
8003 unicase/empty-prefix-context, unicase/empty-suffix-context.
8005 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
8007 * modules/unicase/u16-toupper (Depends-on): Add
8008 unicase/empty-prefix-context, unicase/empty-suffix-context.
8010 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
8011 * modules/unicase/u8-toupper (Depends-on): Add
8012 unicase/empty-prefix-context, unicase/empty-suffix-context.
8014 New module 'unicase/u32-ct-casefold'.
8015 * lib/unicase/u32-ct-casefold.c: New file.
8016 * modules/unicase/u32-ct-casefold: New file.
8018 New module 'unicase/u16-ct-casefold'.
8019 * lib/unicase/u16-ct-casefold.c: New file.
8020 * modules/unicase/u16-ct-casefold: New file.
8022 New module 'unicase/u8-ct-casefold'.
8023 * lib/unicase/u8-ct-casefold.c: New file.
8024 * lib/unicase/u-ct-casefold.h: New file, derived from
8025 lib/unicase/u-casefold.h.
8026 * modules/unicase/u8-ct-casefold: New file.
8028 New module 'unicase/u32-ct-totitle'.
8029 * lib/unicase/u32-ct-totitle.c: New file.
8030 * modules/unicase/u32-ct-totitle: New file.
8032 New module 'unicase/u16-ct-totitle'.
8033 * lib/unicase/u16-ct-totitle.c: New file.
8034 * modules/unicase/u16-ct-totitle: New file.
8036 New module 'unicase/u8-ct-totitle'.
8037 * lib/unicase/u8-ct-totitle.c: New file.
8038 * lib/unicase/u-ct-totitle.h: New file, derived from
8039 lib/unicase/u-totitle.h.
8040 * modules/unicase/u8-ct-totitle: New file.
8042 New module 'unicase/u32-ct-tolower'.
8043 * lib/unicase/u32-ct-tolower.c: New file.
8044 * modules/unicase/u32-ct-tolower: New file.
8046 New module 'unicase/u16-ct-tolower'.
8047 * lib/unicase/u16-ct-tolower.c: New file.
8048 * modules/unicase/u16-ct-tolower: New file.
8050 New module 'unicase/u8-ct-tolower'.
8051 * lib/unicase/u8-ct-tolower.c: New file.
8052 * modules/unicase/u8-ct-tolower: New file.
8054 New module 'unicase/u32-ct-toupper'.
8055 * lib/unicase/u32-ct-toupper.c: New file.
8056 * modules/unicase/u32-ct-toupper: New file.
8058 New module 'unicase/u16-ct-toupper'.
8059 * lib/unicase/u16-ct-toupper.c: New file.
8060 * modules/unicase/u16-ct-toupper: New file.
8062 New module 'unicase/u8-ct-toupper'.
8063 * lib/unicase/u8-ct-toupper.c: New file.
8064 * modules/unicase/u8-ct-toupper: New file.
8066 Add context arguments to u*_casemap functions.
8067 * lib/unicase/unicasemap.h: Include unicase.h.
8068 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
8069 suffix_context arguments.
8070 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
8072 (FUNC): Add prefix_context and suffix_context arguments. Use
8073 uc_is_cased and uc_is_case_ignorable.
8074 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
8075 * lib/unicase/u16-casemap.c: Likewise.
8076 * lib/unicase/u32-casemap.c: Likewise.
8077 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
8078 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
8079 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
8080 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
8081 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
8082 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
8084 New module 'unicase/u32-suffix-context'.
8085 * lib/unicase/u32-suffix-context.c: New file.
8086 * modules/unicase/u32-suffix-context: New file.
8088 New module 'unicase/u16-suffix-context'.
8089 * lib/unicase/u16-suffix-context.c: New file.
8090 * modules/unicase/u16-suffix-context: New file.
8092 New module 'unicase/u8-suffix-context'.
8093 * lib/unicase/u8-suffix-context.c: New file.
8094 * lib/unicase/u-suffix-context.h: New file.
8095 * modules/unicase/u8-suffix-context: New file.
8097 New module 'unicase/empty-suffix-context'.
8098 * lib/unicase/empty-suffix-context.c: New file.
8099 * modules/unicase/empty-suffix-context: New file.
8101 New module 'unicase/u32-prefix-context'.
8102 * lib/unicase/u32-prefix-context.c: New file.
8103 * modules/unicase/u32-prefix-context: New file.
8105 New module 'unicase/u16-prefix-context'.
8106 * lib/unicase/u16-prefix-context.c: New file.
8107 * modules/unicase/u16-prefix-context: New file.
8109 New module 'unicase/u8-prefix-context'.
8110 * lib/unicase/u8-prefix-context.c: New file.
8111 * lib/unicase/u-prefix-context.h: New file.
8112 * lib/unicase/context.h: New file.
8113 * modules/unicase/u8-prefix-context: New file.
8115 New module 'unicase/empty-prefix-context'.
8116 * lib/unicase/empty-prefix-context.c: New file.
8117 * modules/unicase/empty-prefix-context: New file.
8119 New module 'unicase/ignorable'.
8120 * lib/unicase/ignorable.c: New file.
8121 * modules/unicase/ignorable: New file.
8123 New module 'unicase/cased'.
8124 * lib/unicase/caseprop.h: New file.
8125 * lib/unicase/cased.c: New file.
8126 * modules/unicase/cased: New file.
8128 New functions for case mapping of substrings.
8129 * lib/unicase.h (casing_prefix_context_t): New type.
8130 (unicase_empty_prefix_context): New variable.
8131 (u8_casing_prefix_context, u16_casing_prefix_context,
8132 u32_casing_prefix_context, u8_casing_prefixes_context,
8133 u16_casing_prefixes_context, u32_casing_prefixes_context): New
8135 (casing_suffix_context_t): New type.
8136 (unicase_empty_suffix_context): New variable.
8137 (u8_casing_suffix_context, u16_casing_suffix_context,
8138 u32_casing_suffix_context, u8_casing_suffixes_context,
8139 u16_casing_suffixes_context, u32_casing_suffixes_context,
8140 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8141 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8142 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
8145 2009-06-28 Jim Meyering <meyering@redhat.com>
8147 boostrap: indent only with spaces
8148 * build-aux/bootstrap: Indent only with spaces, never TABs.
8150 bootstrap: split long lines
8151 * build-aux/bootstrap: Keep line length < 80.
8153 bootstrap: sync from coreutils
8154 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
8155 just as autoreconf does. Verify a list of prerequisite
8156 package-name,version-number pairs if defined in bootstrap.conf.
8157 Refer to README-prereq, if prerequisites are not satisfied.
8159 2009-06-27 Eric Blake <ebb9@byu.net>
8161 tests: add test for bogus NULL definition
8162 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
8163 * tests/test-stdlib.c: Likewise.
8164 * tests/test-string.c: Likewise.
8165 * tests/test-locale.c: Likewise.
8166 * tests/test-unistd.c: Likewise.
8167 * modules/stdio-tests (Depends-on): Add verify.
8168 * modules/stdlib-tests (Depends-on): Likewise.
8169 * modules/string-tests (Depends-on): Likewise.
8170 * modules/locale-tests (Depends-on): Likewise.
8171 * modules/unistd-tests (Depends-on): Likewise.
8173 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
8175 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
8176 self-explaining comment.
8177 * m4/selinux-selinux-h: Update serial.
8178 (gl_LIBSELINUX): New macro, adding a warning for missing development
8179 packages to code extracted from...
8180 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
8181 Add warning for missing development packages here, too.
8183 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
8185 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
8187 2009-06-25 Eric Blake <ebb9@byu.net>
8189 version-etc: fix regression
8190 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
8192 (version_etc): Use it, to catch bugs with trailing NULL.
8193 * lib/version-etc.c (version_etc_arn): Delete unused argument.
8194 (version_etc_va): Fix logic bug.
8195 * modules/version-etc-tests: Add test.
8196 * tests/test-version-etc.c: New file.
8197 * tests/test-version-etc.sh: Likewise.
8199 2009-06-25 Sam Steingold <sds@gnu.org>
8201 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
8204 2009-06-25 Eric Blake <ebb9@byu.net>
8206 fpurge: migrate into <stdio.h>
8207 * lib/fpurge.h: Delete...
8208 * lib/stdio.in.h (fpurge): ...and declare here, instead.
8209 * lib/fpurge.c (fpurge): Change declaring header.
8210 * modules/fpurge (Files): Drop deleted file.
8211 (Depends-on): Add stdio.
8212 (configure.ac): Set witness.
8213 * modules/stdio (Makefile.am): Support fpurge macros.
8214 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8215 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
8216 * lib/fflush.c: Update client.
8217 * tests/test-fpurge.c: Likewise.
8218 * NEWS: Mention the change.
8220 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
8222 * lib/argp-version-etc.c (program_authors): Add const
8224 * lib/version-etc.c: Fix typos in the comments.
8225 * modules/argp-version-etc: Depends on version-etc.
8227 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
8229 argp-version-etc: new module.
8231 * lib/argp-version-etc.c: New file.
8232 * lib/argp-version-etc.h: New file.
8233 * modules/argp-version-etc: New file.
8234 * modules/argp-version-etc-tests: New file.
8235 * tests/test-argp-version-etc.c: New test.
8236 * tests/test-argp-version-etc-1.sh: New test.
8238 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
8240 Provide additional interfaces and documentation for version-etc
8243 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
8245 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
8248 2009-06-24 Bruno Haible <bruno@clisp.org>
8250 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
8251 HAVE_LIB${NAME} macro.
8252 Reported by Sam Steingold <sds@gnu.org>.
8254 2009-06-23 Simon Josefsson <simon@josefsson.org>
8256 * modules/hash-tests (test_hash_LDADD): Link to libintl when
8259 2009-06-21 Bruno Haible <bruno@clisp.org>
8261 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
8263 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
8264 together with LIB${NAME}, LTLIB${NAME}.
8265 Reported by Sam Steingold <sds@gnu.org>.
8267 2009-06-20 Jim Meyering <meyering@redhat.com>
8269 tests: make sc_require_test_exit_idiom more generic
8270 * top/maint.mk (Exit_witness_file): New overridable variable.
8271 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
8272 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
8274 2009-06-19 Jim Meyering <meyering@redhat.com>
8276 hash: reverse order of src/dst parameters in an internal interface
8277 * lib/hash.c (transfer_entries): Reverse order of parameters to
8278 put DST before SRC. Adjust callers.
8280 tests: test-hash: avoid wholesale duplication
8281 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
8282 Instead, use a loop and add a single conditional.
8284 tests: test-hash: allow seed selection via a command line argument
8285 * tests/test-hash.c (get_seed): New function.
8288 2009-06-19 Eric Blake <ebb9@byu.net>
8290 hash: avoid memory leak on allocation failure
8291 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
8292 failure. Factor repeated algorithm...
8293 (transfer_entries): ...into new helper routine.
8294 (hash_delete): React to hash_rehash return value.
8296 hash: reduce memory pressure in hash_rehash no-op case
8297 * lib/hash.c (next_prime): Avoid overflow.
8298 (hash_initialize): Factor bucket size computation...
8299 (compute_bucket_size): ...into new helper function.
8300 (hash_rehash): Use new function and open coding to reduce memory
8301 pressure, and avoid a memory leak in USE_OBSTACK code.
8302 Reported by Jim Meyering.
8304 2009-06-18 Eric Blake <ebb9@byu.net>
8306 hash: make rotation more obvious
8307 * modules/hash (Depends-on): Add bitrotate and stdint.
8308 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
8309 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
8310 (SIZE_MAX): Rely on headers for definition.
8311 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
8312 (raw_hasher): Use rotr_sz.
8313 Suggested by Jim Meyering.
8315 hash: fix memory leak in last patch
8316 * lib/hash.c (hash_rehash): Avoid memory leak.
8318 hash: avoid no-op rehashing
8319 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
8321 hash: provide default callback functions
8322 * lib/hash.c (raw_hasher, raw_comparator): New functions.
8323 (hash_initialize): Use them as defaults.
8324 * tests/test-hash.c (main): Test this.
8326 hash: minor optimization
8327 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
8329 (hash_initialize): Document this promise.
8330 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
8331 * tests/test-hash.c (hash_compare_strings): Test this.
8333 2009-06-18 Bruno Haible <bruno@clisp.org>
8335 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
8336 going to be replaced anyway.
8338 2009-06-18 Bruno Haible <bruno@clisp.org>
8340 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
8342 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
8345 2009-06-18 Eric Blake <ebb9@byu.net>
8347 hash: check for resize before insertion
8348 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
8349 threshold before insertion, so that a pathological hash_rehash
8350 that fills every bucket can still trigger another rehash.
8352 2009-06-18 Jim Meyering <meyering@redhat.com>
8354 hash-tests: add a loop around the small tests
8355 * tests/test-hash.c (main): Repeat small tests with selected
8356 small initial table sizes.
8358 2009-06-17 Eric Blake <ebb9@byu.net>
8360 hash: minor cleanups
8361 * lib/hash.h (hash_entry): Make opaque, by moving...
8362 * lib/hash.c (hash_entry): ...here.
8363 (hash_insert): Clarify restrictions on what can be inserted.
8364 (hash_get_next): Clarify when it is safe to remove an element
8366 (check_tuning): Skip verification when tuning is known safe.
8367 (hash_initialize): Clarify restrictions on tuning.
8369 2009-06-17 Jim Meyering <jim@meyering.net>
8370 and Eric Blake <ebb9@byu.net>
8372 hash-tests: new module
8373 * modules/hash-tests: New file.
8374 * tests/test-hash.c: New file.
8376 2009-06-17 Eric Blake <ebb9@byu.net>
8378 strstr-simple: document new module
8379 * MODULES.html.sh: Document new module.
8381 strstr, strcasestr: replace on platforms with broken memchr
8382 * modules/strstr: Split into...
8383 * modules/strstr-simple: ...new module that does not care about
8384 performance, but does care about glibc bug.
8385 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
8386 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
8387 if platform memchr is broken, per Debian bug 521737.
8388 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
8390 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
8391 * doc/posix-functions/strstr.texi (strstr): Document the fix.
8392 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
8393 * modules/mountlist (Depends-on): Add strstr-simple.
8394 * modules/gen-uni-tables (Depends-on): Likewise.
8395 * modules/argz (Depends-on): Add strstr.
8397 2009-06-17 Bruno Haible <bruno@clisp.org>
8399 * modules/posix_spawn-internal (Depends-on): Add errno.
8401 2009-06-17 Bruno Haible <bruno@clisp.org>
8403 Define missing ESTALE on Interix 3.5.
8404 * lib/errno.in.h (ESTALE): Assign a value if missing.
8405 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
8406 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
8408 * doc/posix-headers/errno.texi: Mention the Interix bug.
8409 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
8411 2009-06-15 Eric Blake <ebb9@byu.net>
8413 memchr, memchr2: add valgrind exception
8414 * lib/memchr.valgrind: New file.
8415 * lib/memchr2.valgrind: New file.
8416 * modules/memchr (Files): Distribute valgrind file.
8417 * modules/memchr2 (Files): Likewise.
8419 docs: memchr is no longer obsolete
8420 * MODULES.html.sh: Move memchr from obsolete to string.h section.
8421 * lib/string.in.h (memchr): Simplify logic.
8423 2009-06-14 Jim Meyering <meyering@redhat.com>
8425 link-follow: fix the "checking..." message to not mention trailing slash
8426 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
8427 never considered trailing slashes.
8429 2009-06-14 Bruno Haible <bruno@clisp.org>
8431 * m4/memchr.m4: Mention also the bug on IA-64.
8432 * doc/posix-functions/memchr.texi: Likewise.
8434 2009-06-12 Eric Blake <ebb9@byu.net>
8436 memchr: detect broken x86_64 and alpha implementations
8437 * modules/memchr-tests (Depends-on): Move mmap detection...
8438 * modules/memchr (Depends-on): ...here.
8439 (configure.ac): Set indicator.
8440 * lib/string.in.h (memchr): Declare replacement.
8441 * modules/string (Makefile.am): Trigger replacement.
8442 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
8443 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
8445 * doc/posix-functions/memchr.texi (memchr): Document the bug.
8446 * modules/getpagesize (License): Relax license.
8448 2009-06-11 Bruno Haible <bruno@clisp.org>
8450 * lib/idpriv.h: Add more references.
8452 2009-06-08 Bruno Haible <bruno@clisp.org>
8454 Tests for module 'idpriv-droptemp'.
8455 * modules/idpriv-droptemp-tests: New file.
8456 * tests/test-idpriv-droptemp.sh: New file.
8457 * tests/test-idpriv-droptemp.su.sh: New file.
8458 * tests/test-idpriv-droptemp.c: New file.
8460 New module 'idpriv-droptemp'.
8461 * lib/idpriv-droptemp.c: New file.
8462 * modules/idpriv-droptemp: New file.
8464 2009-06-08 Bruno Haible <bruno@clisp.org>
8466 Tests for module 'idpriv-drop'.
8467 * modules/idpriv-drop-tests: New file.
8468 * tests/test-idpriv-drop.sh: New file.
8469 * tests/test-idpriv-drop.su.sh: New file.
8470 * tests/test-idpriv-drop.c: New file.
8472 New module 'idpriv-drop'.
8473 * lib/idpriv.h: New file.
8474 * lib-idpriv-drop.c: New file.
8475 * m4/idpriv.m4: New file.
8476 * modules/idpriv-drop: New file.
8478 2009-06-08 Bruno Haible <bruno@clisp.org>
8480 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
8481 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8482 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8483 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8484 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8485 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8486 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8488 2009-06-08 Eric Blake <ebb9@byu.net>
8490 test-strstr: use memory fence, when possible
8491 * tests/test-strstr.c (main): Use memory fence, in order to be
8492 more likely to trigger Debian bug 521737.
8493 * modules/strstr-tests (Files): Pull in additional files.
8495 memchr: no longer obsolete, for wider field testing
8496 * modules/memchr (Status, Notice): Delete, this module is no
8498 * modules/vasnprintf (Depends-on): Add memchr.
8500 2009-06-07 Jim Meyering <meyering@redhat.com>
8502 hash: declare some functions with the warn_unused_result attribute
8503 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
8505 2009-06-07 Bruno Haible <bruno@clisp.org>
8507 * tests/test-alignof.c: Don't test int64_t if it does not exist.
8508 Reported by Eric Blake.
8510 2009-06-06 Eric Blake <ebb9@byu.net>
8512 test-alignof: fix typo with long double
8513 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
8516 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
8518 Escape non-texinfo { and }s.
8519 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
8522 2009-06-04 Jim Meyering <meyering@redhat.com>
8524 gitlog-to-changelog: don't infloop on an empty commit log
8525 * build-aux/gitlog-to-changelog: Warn about an empty log message.
8526 Reported by Boris Petersen <transacid@centerim.org>.
8528 2009-06-03 Mike Frysinger <vapier@gentoo.org>
8530 version-etc: extend for packagers
8531 Add three new configure options, intended for packagers:
8532 --with-packager="packager name"
8533 --with-packager-version="packager-specific version"
8534 --with-packager-bug-reports="packager bug reporting"
8535 An example with coreutils:
8537 --with-packager=Gentoo \
8538 --with-packager-bug-report=http://bugs.gentoo.org/ \
8539 --with-packager-version="patchset 1.6"
8540 $ ./src/ls --version | head -n3
8541 ls (GNU coreutils) 7.1-dirty
8542 Packaged by Gentoo (patchset 1.6)
8543 Copyright (C) 2009 Free Software Foundation, Inc.
8544 Note that the bug reporting info via --help doesn't show up because
8545 coreutils uses its own custom emit_bug_reporting_address() implementation
8546 in src/system.h. If it didn't, it'd look like:
8547 $ ./src/ls --help | tail -n4
8548 Report bugs to <bug-coreutils@gnu.org>.
8549 Report Gentoo bugs to <http://bugs.gentoo.org/>.
8550 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
8551 General help using GNU software: <http://www.gnu.org/gethelp/>.
8552 * lib/version-etc.c: Print new information, if provided.
8553 * m4/version-etc.m4: New file.
8554 * modules/version-etc (Files): Add m4/version-etc.m4.
8555 (configure.ac): Add gl_VERSION_ETC.
8557 2009-05-31 Bruno Haible <bruno@clisp.org>
8559 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
8561 * modules/alignof-tests (Dependencies): Add stdint.
8562 Reported by Eric Blake.
8564 2009-05-31 Bruno Haible <bruno@clisp.org>
8566 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
8567 restriction due to compiler bugs.
8568 Reported by Eric Blake.
8570 2009-05-31 Simon Josefsson <simon@josefsson.org>
8571 Bruno Haible <bruno@clisp.org>
8573 Fix test-alignof failure.
8574 * lib/alignof.h (alignof_slot): New macro.
8575 (alignof_type): New macro, with the same semantics as the previous
8577 (alignof): Alias to alignof_slot.
8578 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
8579 check that the results are usable as constant expressions.
8581 2009-05-31 Bruno Haible <bruno@clisp.org>
8583 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
8584 * tests/test-memchr.c (main): Check that memchr does not read past the
8585 first occurrence of the byte.
8586 * tests/test-strstr.c (main): Update comment.
8587 Suggested by Eric Blake.
8589 2009-05-30 Bruno Haible <bruno@clisp.org>
8591 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
8592 detail how to use dumpbin.
8593 Reported by David Byron <dbyron@dbyron.com>.
8595 2009-06-02 Simon Josefsson <simon@josefsson.org>
8597 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
8599 2009-06-02 Simon Josefsson <simon@josefsson.org>
8601 * m4/manywarnings.m4: Add GCC 4.4 warnings.
8603 2009-05-28 Bruno Haible <bruno@clisp.org>
8605 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
8608 2009-05-28 Simon Josefsson <simon@josefsson.org>
8610 * gnulib-tool (func_import): Transform license on build-aux/ files too.
8612 2009-05-27 Simon Josefsson <simon@josefsson.org>
8614 * gnulib-tool (sed_transform_main_lib_file)
8615 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
8618 2009-05-26 Simon Josefsson <simon@josefsson.org>
8620 * tests/test-strstr.c: Add another self-test.
8621 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
8622 strdup. Suggested by Eric Blake <ebb9@byu.net>.
8624 2009-05-23 Bruno Haible <bruno@clisp.org>
8626 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
8629 2009-05-21 Bruno Haible <bruno@clisp.org>
8631 Simplify use of mode_t varargs.
8632 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
8633 uses 'mode_t' or 'int'.
8634 * lib/openat.c (openat): Likewise.
8635 * lib/open-safer.c (open_safer): Likewise.
8636 * m4/mode_t.m4: New file.
8637 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
8638 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
8639 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
8640 * modules/open (Files): Add m4/mode_t.m4.
8641 * modules/openat (Files): Likewise.
8642 * modules/fcntl-safer (Files): Likewise.
8643 Suggested by Eric Blake.
8645 2009-05-21 Pádraig Brady <P@draigbrady.com>
8647 * doc/glibc-functions/fallocate.texi: New file.
8648 * doc/gnulib.texi: Include it.
8650 2009-05-21 Eric Blake <ebb9@byu.net>
8651 Bruno Haible <bruno@clisp.org>
8653 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
8655 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
8657 2009-05-21 Eric Blake <ebb9@byu.net>
8658 Bruno Haible <bruno@clisp.org>
8660 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
8661 include_next. Fix of 2008-11-20 commit.
8662 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
8663 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
8664 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
8666 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
8667 instead of NEXT_MATH_H.
8669 2009-05-21 Bruno Haible <bruno@clisp.org>
8671 Avoid redefinition warnings for SIZE_MAX.
8672 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
8673 Reported by Simon Josefsson.
8675 2009-05-21 Bruno Haible <bruno@clisp.org>
8677 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
8680 2009-05-20 Bruno Haible <bruno@clisp.org>
8682 Make zeroptr.h work on mingw.
8683 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
8685 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
8686 * modules/memchr2-tests (configure.ac): Likewise.
8687 * modules/memcmp-tests (configure.ac): Likewise.
8688 * modules/memmem-tests (configure.ac): Likewise.
8689 * modules/memrchr-tests (configure.ac): Likewise.
8690 Reported by Simon Josefsson.
8692 2009-05-20 Simon Josefsson <simon@josefsson.org>
8694 * tests/test-glob.c: Include string.h for strcmp prototype.
8696 2009-05-20 Simon Josefsson <simon@josefsson.org>
8698 * modules/getdelim (Depends-on): Add explicit stdint, although it
8699 was implicitly already pulled in via realloc-posix.
8700 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
8702 2009-05-20 Simon Josefsson <simon@josefsson.org>
8704 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
8705 G. Christensen" <tgc@jupiterrise.com>.
8706 * m4/sys_socket_h.m4: Check for sa_family_t.
8707 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
8708 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
8709 * tests/test-sys_socket.c: Check that sa_family_t works.
8711 2009-05-18 Eric Blake <ebb9@byu.net>
8713 maint.mk: allow gnulib_dir in VPATH build
8714 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
8716 2009-05-15 Jim Meyering <meyering@redhat.com>
8718 maint.mk: Give gnulib_dir a default definition.
8719 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
8720 Thus, most packages no longer need to specify this variable in cfg.mk
8722 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
8724 rename.m4: fix typos that would make non-mingw cross-configure fail
8725 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
8727 2009-05-13 Eric Blake <ebb9@byu.net>
8729 mmap-anon: avoid out-of-order autoconf expansion
8730 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
8731 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
8732 * modules/memchr-tests (Depends-on): Add extensions.
8733 * modules/memchr2-tests (Depends-on): Add extensions.
8734 * modules/memcmp-tests (Depends-on): Add extensions.
8735 * modules/memmem-tests (Depends-on): Add extensions.
8736 * modules/memrchr-tests (Depends-on): Add extensions.
8738 2009-05-13 Bruno Haible <bruno@clisp.org>
8740 Make some tests ISO C 99 compliant.
8741 * tests/zerosize-ptr.h: New file.
8742 * tests/test-memchr.c: Include zerosize-ptr.h.
8743 (main): Use a zero-size object pointer instead of NULL.
8744 * tests/test-memchr2.c: Include zerosize-ptr.h.
8745 (main): Use a zero-size object pointer instead of NULL.
8746 * tests/test-memcmp.c: Include zerosize-ptr.h.
8747 (main): Use a zero-size object pointer instead of NULL.
8748 * tests/test-memmem.c: Include zerosize-ptr.h.
8749 (main): Use a zero-size object pointer instead of NULL.
8750 * tests/test-memrchr.c: Include zerosize-ptr.h.
8751 (main): Use a zero-size object pointer instead of NULL.
8752 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
8754 (Depends-on): Add getpagesize.
8755 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
8756 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
8758 (Depends-on): Add getpagesize.
8759 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
8760 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
8762 (Depends-on): Add getpagesize.
8763 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
8764 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
8766 (Depends-on): Add getpagesize.
8767 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
8768 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
8770 (Depends-on): Add getpagesize.
8771 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
8773 2009-05-12 Bruno Haible <bruno@clisp.org>
8775 Tests for module 'alignof'.
8776 * modules/alignof-tests: New file.
8777 * tests/test-alignof.c: New file.
8779 2009-05-12 Bruno Haible <bruno@clisp.org>
8782 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
8783 vendor compilers that are always correct.
8785 2009-05-12 Bruno Haible <bruno@clisp.org>
8787 Make the MAP_ANONYMOUS detection work on HP-UX 11.
8788 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
8789 not whether its fully works.
8791 2009-05-12 Bruno Haible <bruno@clisp.org>
8793 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
8795 2009-05-12 Jim Meyering <meyering@redhat.com>
8797 * top/maint.mk: Adjust backslash alignment.
8799 2009-05-11 Simon Josefsson <simon@josefsson.org>
8801 * top/maint.mk: Make $(srcdir)/build-aux configurable.
8803 2009-05-11 Eric Blake <ebb9@byu.net>
8805 argp: avoid undefined behavior
8806 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
8809 2009-05-08 Simon Josefsson <simon@josefsson.org>
8811 * tests/test-vc-list-files-git.sh: Do git config of user.email and
8812 user.name to prevent git commit from complaining.
8814 2009-05-10 Bruno Haible <bruno@clisp.org>
8816 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
8817 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
8818 it rewrites every file name only once.
8819 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
8821 2009-05-08 Bruno Haible <bruno@clisp.org>
8823 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
8826 2009-05-08 Simon Josefsson <simon@josefsson.org>
8828 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
8829 sockaddr_storage test.
8831 2009-05-07 Simon Josefsson <simon@josefsson.org>
8833 * modules/sys_socket (Makefile.am): Substitute
8834 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
8835 * m4/sys_socket_h.m4: Check for sockaddr_storage.
8836 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
8837 * tests/test-sys_socket.c: Check sockaddr_storage.
8839 2009-05-08 Bruno Haible <bruno@clisp.org>
8841 New module 'alignof'.
8842 * lib/alignof.h: New file.
8843 * modules/alignof: New file.
8845 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
8846 Bruno Haible <bruno@clisp.org>
8848 Fix test-file-has-acl on FreeBSD.
8849 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
8850 mask is implicitly added.
8851 * tests/test-file-has-acl.c: Include <signal.h>.
8852 (main): Terminate the test after 5 seconds.
8853 * modules/acl-tests (configure.ac): Check for alarm function.
8855 2009-05-04 Bruno Haible <bruno@clisp.org>
8857 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
8858 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
8859 * modules/errno (configure.ac): Drop AC_REQUIRE.
8860 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
8861 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
8863 2009-05-04 Simon Josefsson <simon@josefsson.org>
8865 * modules/glob-tests: New module.
8866 * tests/test-glob.c: Add.
8868 2009-05-04 Simon Josefsson <simon@josefsson.org>
8870 * modules/fnmatch-tests: New module.
8871 * tests/test-fnmatch.c: Add.
8873 2009-05-04 Eric Blake <ebb9@byu.net>
8875 maint: make the new no-submodule-changes rule VPATH-safe
8876 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
8878 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
8879 Bruno Haible <bruno@clisp.org>
8881 acl: Fix infinite loop on FreeBSD.
8882 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
8883 of return value from acl_get_entry.
8884 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
8887 2009-05-03 Bruno Haible <bruno@clisp.org>
8889 * lib/acl-internal.h (acl_entries): Clarify return value.
8890 * lib/acl_entries.c (acl_entries): Likewise.
8892 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
8894 Bug fix in acl module.
8895 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
8897 2009-05-03 Bruno Haible <bruno@clisp.org>
8899 Create gperf-generated file in the source dir, not in the build dir.
8900 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
8901 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
8902 * modules/unicase/locale-language (unicase/locale-languages.h):
8904 * modules/unicase/special-casing (unicase/special-casing-table.h):
8906 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
8907 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
8908 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
8909 Reported by Ralf Wildenhues.
8911 2009-05-03 Bruno Haible <bruno@clisp.org>
8913 * modules/fnmatch (Description, configure.ac): Taken from
8915 * modules/fnmatch-posix: Turn into a symbolic reference to the
8916 'fnmatch' module, and deprecate.
8917 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
8919 2009-05-03 Bruno Haible <bruno@clisp.org>
8921 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
8922 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
8923 Reported by Ralf Wildenhues.
8925 2009-05-04 Simon Josefsson <simon@josefsson.org>
8927 * m4/fnmatch.m4: Fix fnmatch re-define.
8929 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
8931 priv-set: new module and tests; adapt write-any-file
8932 * lib/priv-set.c: New file.
8933 * lib/priv-set.h: New file.
8934 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
8935 * lib/write-any-file.c: Simplify by using priv-set module.
8936 * m4/priv-set.m4: New file.
8937 * modules/priv-set: New file.
8938 * modules/unlinkdir: Add dependency on priv-set module.
8939 * modules/write-any-file: Likewise.
8941 Tests for module 'priv-set'.
8942 * modules/priv-set-tests: New file.
8943 * tests/test-priv-set.c: New file.
8945 2009-05-03 Jim Meyering <meyering@redhat.com>
8946 Bruno Haible <bruno@clisp.org>
8948 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
8949 use the converted UTF-8 variant of the name instead.
8951 2009-05-03 Jim Meyering <meyering@redhat.com>
8953 tests: tighten some getdate tests
8954 * tests/test-getdate.c (main): Tighten tests: require equality,
8955 not just greater than. Set TZ envvar to UTC0.
8957 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
8959 getdate: correctly interpret "next monday" when run on a Monday
8960 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
8961 that e.g., "next tues" (when run on a tuesday) results in a date
8962 that is one week in the future, and not today's date.
8963 I.e., add a week when the wday is the same as the current one.
8964 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
8965 and earlier by Martin Bernreuther and Jan Minář.
8966 * tests/test-getdate.c (main): Check that "next DAY" is always in
8967 the future and that "last DAY" is always in the past.
8969 2009-05-02 Jim Meyering <meyering@redhat.com>
8971 build: ensure that a release build fails when a submodule is unclean
8972 * top/maint.mk (no-submodule-changes): New rule.
8973 (alpha beta major): Depend on it.
8975 2009-05-02 Bruno Haible <bruno@clisp.org>
8977 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
8978 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
8979 shell variable gl_fnmatch_required to detect which variant is
8981 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
8982 gl_FUNC_FNMATCH_POSIX.
8983 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
8984 exclude fnmatch-posix.
8986 2009-05-02 Bruno Haible <bruno@clisp.org>
8988 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
8989 * modules/mbsrtowcs (License): Change to LGPLv2+.
8990 * modules/strnlen1 (License): Likewise.
8991 Reported by Simon Josefsson.
8993 2009-05-02 Bruno Haible <bruno@clisp.org>
8995 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
8997 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
8998 gnulib-tool was called with option --source-base=lib.
9000 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9002 Use automake *-local hooks without commands, for extensibility.
9003 * modules/localcharset (Makefile.am): Rename install-exec-local
9004 rule to install-exec-localcharset, and make it a prerequisite of
9005 install-exec-local. Likewise, rename the uninstall-local rule to
9006 uninstall-localcharset, and make it a prerequisite of the former.
9008 2009-05-01 Bruno Haible <bruno@clisp.org>
9010 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
9011 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
9012 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
9013 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
9014 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
9015 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
9016 m4/locale-zh.m4, m4/codeset.m4.
9018 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
9019 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
9020 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
9023 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
9024 REPLACE_WCRTOMB if mbstate_t must be replaced.
9025 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
9026 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
9028 2009-05-01 Bruno Haible <bruno@clisp.org>
9030 Avoid compiler warnings when redefining macros defined by <libintl.h>.
9031 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
9032 dngettext, dcngettext, textdomain, bindtextdomain,
9033 bind_textdomain_codeset): Undefine before redefining.
9035 2009-04-30 Bruno Haible <bruno@clisp.org>
9037 Fix bug introduced on 2009-04-25.
9038 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
9039 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
9040 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
9042 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
9044 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
9046 Reported by Elbert_Pol <elbert.pol@gmail.com>.
9048 2009-04-28 Bruno Haible <bruno@clisp.org>
9051 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
9052 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
9053 * lib/unicase.h (u*_casexfrm): Likewise.
9054 Reported by Paolo Bonzini.
9056 2009-04-28 Bruno Haible <bruno@clisp.org>
9058 Fix a compilation error.
9059 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
9060 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
9061 Reported by Jim Meyering.
9063 2009-04-27 Bruno Haible <bruno@clisp.org>
9065 New module 'libunistring'.
9066 * modules/libunistring: New file.
9067 * m4/libunistring.m4: New file.
9068 * MODULES.html.sh (Unicode string functions): Add it.
9070 2009-04-27 Eric Blake <ebb9@byu.net>
9072 maint.mk: allow package-specific header to provide <config.h>
9073 * top/maint.mk (sc_require_config_h): New variable.
9074 (sc_require_config_h, sc_require_config_h_first): Use it.
9076 2009-04-27 Simon Josefsson <simon@josefsson.org>
9078 * top/maint.mk (sc_avoid_if_before_free): Except
9079 useless-if-before-free script.
9081 2009-04-27 Eric Blake <ebb9@byu.net>
9083 maintainer-makefile: depend on all required helper scripts
9084 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
9085 useless-if-before-free.
9086 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
9087 version, rather than assuming gnulib checkout is available.
9088 Reported by Simen Josefsson.
9090 2009-04-26 Bruno Haible <bruno@clisp.org>
9092 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
9093 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
9096 2009-04-26 Bruno Haible <bruno@clisp.org>
9098 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
9099 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
9100 AC_LIB_HAVE_LINKFLAGS.
9102 2009-04-26 Bruno Haible <bruno@clisp.org>
9104 Simplify calling convention of u*_conv_from_encoding.
9105 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
9106 u32_conv_from_encoding): Expect a resultbuf argument and return the
9107 result directly as a pointer.
9108 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
9109 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
9110 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
9111 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
9112 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
9113 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
9115 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
9116 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
9117 * lib/vasnprintf.c (VASNPRINTF): Update.
9118 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
9119 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
9120 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
9121 * NEWS: Mention the change.
9123 2009-04-26 Bruno Haible <bruno@clisp.org>
9125 Simplify calling convention of u*_conv_to_encoding.
9126 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
9127 u32_conv_to_encoding): Expect a resultbuf argument and return the
9128 result directly as a pointer.
9129 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
9130 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
9131 freeing scaled_offsets if mem_iconveha failed.
9132 * lib/unicase/u-casexfrm.h (FUNC): Update.
9133 * lib/uninorm/u-normxfrm.h (FUNC): Update.
9134 * lib/vasnprintf.c (VASNPRINTF): Update.
9135 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
9136 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
9137 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
9138 * NEWS: Mention the change.
9140 2009-04-26 Bruno Haible <bruno@clisp.org>
9142 Avoid test failures on AIX and OSF/1.
9143 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
9145 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
9146 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
9148 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
9149 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
9150 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
9151 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
9152 * doc/posix-functions/malloc.texi: Document the portability problem
9153 related to malloc(0).
9155 2009-04-26 Bruno Haible <bruno@clisp.org>
9157 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
9158 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
9159 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
9161 2009-04-25 Bruno Haible <bruno@clisp.org>
9163 Avoid link error when creating a namespace clean library.
9164 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
9165 as macro with arguments if already defined as an alias.
9166 * lib/signbitf.c (gl_signbitf): Don't undefine.
9167 * lib/signbitd.c (gl_signbitd): Don't undefine.
9168 * lib/signbitl.c (gl_signbitl): Don't undefine.
9170 2009-04-25 Jim Meyering <meyering@redhat.com>
9172 vc-list-files: fix another quoting bug
9173 * build-aux/vc-list-files: Avoid sed backslash expansion
9174 of pathological directory names.
9176 2009-04-25 Eric Blake <ebb9@byu.net>
9178 vc-list-files: fix shell quoting error
9179 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
9182 2009-04-25 Jim Meyering <meyering@redhat.com>
9184 vc-list-files: restore lost functionality with subdir argument
9185 * build-aux/vc-list-files: When given a non-"." sub-directory
9186 argument, substitute the $dir/ prefix back onto each resulting name.
9187 Otherwise, coreutils' root_tests check would fail.
9189 2009-04-24 Eric Blake <ebb9@byu.net>
9191 vc-list-files: ignore git symlinks
9192 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
9193 than ls-files, to ignore git symlinks.
9195 maint.mk: import improvements from m4
9196 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
9197 (move_if_change): Delete unused macro.
9198 (news-date-check, vc-diff-check): Support VPATH builds.
9199 (announcement): Likewise. Split --bootstrap-tools list...
9200 (boostrap-tools): ...into separate list, which can be overridden
9202 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
9203 requiring dependency on useless-if-before-free module.
9204 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
9205 Support VPATH builds.
9207 2009-04-24 Jim Meyering <meyering@redhat.com>
9209 maint.mk: remove coreutils-specific rules and variables
9210 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
9211 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
9212 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
9214 maint.mk: remove obsolete rule
9215 * top/maint.mk (rel-check): Remove rule.
9216 (WGET, WGETFLAGS): Remove now-unused variables.
9218 2009-04-24 Simon Josefsson <simon@josefsson.org>
9220 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
9223 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
9224 '$(PATH_SEPARATOR)' instead of ':'.
9226 2009-04-24 Simon Josefsson <simon@josefsson.org>
9228 * lib/getopt1.c (main): Use 'const' for static array.
9230 2009-04-24 Simon Josefsson <simon@josefsson.org>
9232 * top/maint.mk: Sync with coreutils.
9233 * NEWS: Explain incompatibilities.
9235 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
9236 Bruno Haible <bruno@clisp.org>
9238 Fix cross-compilation results.
9239 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
9240 statement, as third argument of AC_TRY_RUN.
9241 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9242 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
9244 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
9245 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
9247 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9248 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
9249 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
9251 2009-04-20 Bruno Haible <bruno@clisp.org>
9253 Avoid test failure on mingw.
9254 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
9256 2009-04-20 Bruno Haible <bruno@clisp.org>
9258 Avoid compilation error on mingw.
9259 * modules/localename-tests (Depends-on): Add locale.
9261 2009-04-19 Bruno Haible <bruno@clisp.org>
9263 Support for building a shared library on Windows platforms.
9264 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
9265 (main): Test the presence of UNINORM_NFC here.
9266 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
9267 (main): Test the presence of UNINORM_NFD here.
9268 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
9269 (main): Test the presence of UNINORM_NFKC here.
9270 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
9271 (main): Test the presence of UNINORM_NFKD here.
9273 2009-04-19 Bruno Haible <bruno@clisp.org>
9275 Avoid a compiler warning.
9276 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
9277 Change type of variable 'sequence'.
9279 2009-04-19 Bruno Haible <bruno@clisp.org>
9281 * modules/configmake (Makefile.am): When the contents of configmake.h
9282 does not change, arrange to preserve its modification time.
9284 2009-04-17 Simon Josefsson <simon@josefsson.org>
9286 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
9289 2009-04-16 Jim Meyering <meyering@redhat.com>
9291 useless-if-before-free: improve conversion code
9292 * build-aux/useless-if-before-free: Adjust code-in-comment to match
9293 "...!= 0" as well as "...!= NULL". emacs has one of the former.
9295 2009-04-14 Bruno Haible <bruno@clisp.org>
9297 * modules/fcntl (Depends-on): Add extensions.
9298 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
9300 2009-04-12 Ben Pfaff <blp@gnu.org>
9302 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
9303 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
9305 2009-03-20 Ben Pfaff <blp@gnu.org>
9307 Make rename replace existing destinations on Windows.
9308 * m4/rename.m4: Add test for Mingw.
9309 * lib/rename.c: Add rename replacement that uses MoveFileEx with
9310 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
9311 * doc/posix-functions/rename.texi: Document.
9313 2009-04-10 Bruno Haible <bruno@clisp.org>
9315 New include file "iconveh.h".
9316 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
9317 * lib/striconveh.h: Include it.
9318 (enum iconv_ilseq_handler): Remove definition.
9319 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
9321 * lib/striconveha.c: Include striconveh.h.
9322 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
9323 * modules/striconveh (Files): Add lib/iconveh.h.
9324 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
9327 2009-04-10 Bruno Haible <bruno@clisp.org>
9329 * lib/uniconv.h: Update comment.
9331 2009-04-10 Bruno Haible <bruno@clisp.org>
9333 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
9335 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
9336 * lib/unistr/u16-mbtouc-aux.c: Likewise.
9337 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
9338 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
9339 "unistring-notinline.h", so that the function gets defined always.
9340 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
9341 * lib/unistr/u8-uctomb.c: Likewise.
9342 * lib/unistr/u16-mbtouc.c: Likewise.
9343 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
9344 * lib/unistr/u16-uctomb.c: Likewise.
9345 * lib/unistr/u32-mbtouc.c: Likewise.
9346 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
9347 * lib/unistr/u32-uctomb.c: Likewise.
9349 2009-04-10 Bruno Haible <bruno@clisp.org>
9351 Mark 'utime' obsolete.
9352 * modules/utime (Status, Notice): New sections.
9353 Suggested by Jim Meyering.
9355 Fix cross-compile guess for utime test.
9356 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
9358 * doc/posix-functions/utime.texi: Give more precisions.
9359 Reported by Jan <ipif@ymail.com>.
9361 2009-04-09 Kamil Dudka <kdudka@redhat.com>
9363 filevercmp: correct today's change
9364 * lib/filevercmp.c: Also handle coreutils' test inputs.
9365 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
9367 Fix regression in 'filevercmp' module. Thanks Sven Joachim
9369 * lib/filevercmp.c: Special handle for "", "." and "..".
9370 * tests/test-filevercmp.c: Enlarge the set suite.
9372 2009-04-07 Jim Meyering <meyering@redhat.com>
9374 useless-if-before-free: show how to remove braced useless free, too
9375 * build-aux/useless-if-before-free: still only in a comment, though.
9377 2009-04-07 Reuben Thomas <rrt@sc3d.org>
9379 maint.mk: import changes to syntax-check macros from coreutils
9380 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
9381 Use them in the relevant macros.
9383 2009-04-06 Bruno Haible <bruno@clisp.org>
9385 Fix unportable use of bit-fields.
9386 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
9387 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
9388 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
9390 2009-04-06 Bruno Haible <bruno@clisp.org>
9392 Avoid test failures on AIX and OSF/1.
9393 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
9394 that malloc(0) = NULL.
9395 * tests/unicase/test-u8-tolower.c (check): Likewise.
9396 * tests/unicase/test-u8-totitle.c (check): Likewise.
9397 * tests/unicase/test-u8-toupper.c (check): Likewise.
9398 * tests/unicase/test-u16-casefold.c (check): Likewise.
9399 * tests/unicase/test-u16-tolower.c (check): Likewise.
9400 * tests/unicase/test-u16-totitle.c (check): Likewise.
9401 * tests/unicase/test-u16-toupper.c (check): Likewise.
9402 * tests/unicase/test-u32-casefold.c (check): Likewise.
9403 * tests/unicase/test-u32-tolower.c (check): Likewise.
9404 * tests/unicase/test-u32-totitle.c (check): Likewise.
9405 * tests/unicase/test-u32-toupper.c (check): Likewise.
9406 * tests/uninorm/test-u8-nfc.c (check): Likewise.
9407 * tests/uninorm/test-u8-nfd.c (check): Likewise.
9408 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
9409 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
9410 * tests/uninorm/test-u16-nfc.c (check): Likewise.
9411 * tests/uninorm/test-u16-nfd.c (check): Likewise.
9412 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
9413 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
9414 * tests/uninorm/test-u32-nfc.c (check): Likewise.
9415 * tests/uninorm/test-u32-nfd.c (check): Likewise.
9416 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
9417 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
9419 2009-04-05 Bruno Haible <bruno@clisp.org>
9421 Work around an autoconf limitation.
9422 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
9423 comment line if it would be longer than 3 KB.
9425 2009-04-05 Bruno Haible <bruno@clisp.org>
9427 Avoid test failure with libiconv-1.13.
9428 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
9429 of the expected test results.
9431 2009-04-05 Bruno Haible <bruno@clisp.org>
9433 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
9434 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
9435 that it should be installed.
9437 2009-04-05 Bruno Haible <bruno@clisp.org>
9439 * gnulib-tool: New option --copy-file.
9440 (func_usage): Document it.
9441 (func_dest_tmpfilename): Moved out of func_import.
9442 (func_add_file, func_update_file): New functions, extracted from
9444 (func_import): Update.
9446 2009-04-05 Karl Berry <karl@gnu.org>
9448 * README: prominently mention gnulib-tool.
9449 Rearrange sections so getting the code is near the top.
9451 2009-04-05 Bruno Haible <bruno@clisp.org>
9453 * lib/unicase.h: Mention u*_cmp2.
9454 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
9455 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
9456 * lib/unicase/ulc-casecmp.c: Likewise.
9457 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
9458 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
9459 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
9461 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
9462 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
9464 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
9467 * lib/uninorm.h: Mention u*_cmp2.
9468 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
9469 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
9470 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
9471 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
9472 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
9474 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
9476 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
9479 New module 'unistr/u32-cmp2'.
9480 * lib/unistr/u32-cmp2.c: New file.
9481 * modules/unistr/u32-cmp2: New file.
9483 New module 'unistr/u16-cmp2'.
9484 * lib/unistr/u16-cmp2.c: New file.
9485 * modules/unistr/u16-cmp2: New file.
9487 New module 'unistr/u8-cmp2'.
9488 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
9489 * lib/unistr/u8-cmp2.c: New file.
9490 * lib/unistr/u-cmp2.h: New file.
9491 * modules/unistr/u8-cmp2: New file.
9493 2009-04-05 Bruno Haible <bruno@clisp.org>
9495 * lib/unictype.h (uc_property_is_valid): New macro.
9496 * tests/unictype/test-pr_byname.c (main): Use it.
9498 * lib/unistr.h: Doc fixes.
9499 * lib/uniconv.h: Doc fixes.
9500 * lib/unictype.h: Doc fixes.
9502 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
9504 Port coreutils 7.2 to Solaris 8.
9506 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
9507 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
9508 for Solaris 8. This is a bit of a hack, as it means it's the
9509 caller's responsibility to add -lnsl if needed, but most likely it
9510 won't be needed since only getaddrinfo uses this and getaddrinfo
9511 isn't needed on Solaris 8.
9513 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
9514 problem to Solaris 8 encountered with coreutils 7.2, which
9515 resulted in a message "fnmatch.c:292: warning: passing argument 4
9516 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
9517 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
9519 2009-04-03 Simon Josefsson <simon@josefsson.org>
9521 * m4/ld-version-script.m4: Add FIXME comment.
9523 2009-04-02 Simon Josefsson <simon@josefsson.org>
9525 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
9528 2009-04-02 Bruno Haible <bruno@clisp.org>
9530 * Makefile (info, html, dvi, pdf): Combine the rules.
9531 Suggested by Jim Meyering.
9533 2009-04-01 Bruno Haible <bruno@clisp.org>
9535 * Makefile (info, html, dvi, pdf): New targets.
9536 Reported by Reuben Thomas <rrt@sc3d.org>.
9538 2009-04-01 Bruno Haible <bruno@clisp.org>
9540 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
9541 can be put into PATH.
9542 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
9544 2009-04-01 Bruno Haible <bruno@clisp.org>
9546 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
9548 2009-04-01 Bruno Haible <bruno@clisp.org>
9550 Rename module 'visibility'.
9551 * modules/lib-symbol-visibility: Renamed from modules/visibility.
9552 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
9553 * doc/gnulib.texi: Update.
9554 * MODULES.html.sh (Misc): Update.
9555 * NEWS: Mention the change.
9557 2009-04-01 Simon Josefsson <simon@josefsson.org>
9559 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
9560 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
9561 Eric Blake <ebb9@byu.net> for review.
9562 * MODULES.html.sh: Add lib-msvc-compat.
9563 * doc/gnulib.texi: Link to new section.
9564 * m4/ld-output-def.m4: New file.
9565 * doc/ld-output-def.texi: New file.
9567 2009-04-01 Simon Josefsson <simon@josefsson.org>
9569 Rename ld-version-script to lib-symbol-versions. Suggested by
9570 Bruno Haible <bruno@clisp.org>.
9571 * modules/ld-version-script: Renamed to lib-symbol-versions.
9572 * doc/ld-version-script.texi: Fix module name.
9573 * MODULES.html.sh: Add lib-symbol-versions.
9575 2009-03-31 Simon Josefsson <simon@josefsson.org>
9577 * modules/u64-tests: New file.
9578 * tests/test-u64.c: New file.
9580 2009-03-04 Simon Josefsson <simon@josefsson.org>
9582 * MODULES.html.sh: Mention u64.
9583 * modules/u64: New module.
9584 * modules/crypto/sha512: Depend on u64 module instead of providing
9587 2009-03-27 Eric Blake <ebb9@byu.net>
9589 test-strerror: make debugging EAI_SYSTEM easier
9590 * modules/getaddrinfo-tests (Depends-on): Add strerror.
9591 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
9592 failure was EAI_SYSTEM.
9594 2009-03-25 Bruno Haible <bruno@clisp.org>
9596 Fix a problem with --enable-relocatable on Solaris 7.
9597 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
9600 2009-03-25 Eric Blake <ebb9@byu.net>
9602 test-sockets: avoid gcc warning
9603 * tests/test-sockets.c (main): Silence compiler warning.
9605 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
9607 New modules nproc, pthread, contributed by Glen Lenker.
9609 * MODULES.html.sh: Add pthread, nproc.
9610 * lib/nproc.c: New file.
9611 * lib/nproc.h: New file.
9612 * lib/pthread.in.h: New file.
9613 * m4/pthread.m4: New file.
9614 * modules/nproc: New file.
9615 * modules/pthread: New file.
9617 2009-03-24 Simon Josefsson <simon@josefsson.org>
9619 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
9622 2009-03-24 Kamil Dudka <kdudka@redhat.com>
9624 filevercmp: handle simple~ and numbered.~3~ backup suffixes
9625 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
9626 * tests/test-filevercmp.c: Add tests for backup suffixes.
9628 2009-03-24 Simon Josefsson <simon@josefsson.org>
9630 * modules/stdlib (Depends-on): Add stdint, needed when defining
9631 struct random_data on, for example, HP-UX 10.20. Reported by
9632 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9634 2009-03-24 Simon Josefsson <simon@josefsson.org>
9636 * lib/readline.c (readline): Call fflush on stdout after printing
9639 2009-03-20 Bruno Haible <bruno@clisp.org>
9641 Remove dependency from 'close' module to -lws2_32 on native Windows.
9642 * lib/close-hook.h: New file.
9643 * lib/close-hook.c: New file.
9644 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
9646 (_gl_close_fd_maybe_socket): Remove function.
9647 (rpl_close): Invoke execute_all_close_hooks instead of
9648 _gl_close_fd_maybe_socket.
9649 * lib/sockets.c: Include close-hook.h, w32sock.h.
9650 (close_fd_maybe_socket): New function, essentially from lib/close.c.
9651 (close_sockets_hook): New variable.
9652 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
9653 (gl_sockets_cleanup): Unregister it.
9654 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
9655 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
9656 * modules/close-hook: New file.
9657 * modules/close (Files): Remove lib/w32sock.h.
9658 (Depends-on): Add close-hook.
9659 (Link): Remove section.
9660 * modules/sockets (Files): Add lib/w32sock.h.
9661 (Depends-on): Add close-hook.
9662 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
9664 * NEWS: Mention that LIB_CLOSE is gone.
9666 2009-03-23 Eric Blake <ebb9@byu.net>
9668 signal-tests: test previous patch
9669 * tests/test-signal.c: New file.
9670 * modules/signal-tests: Likewise.
9672 signal.h: always support 'volatile sig_atomic_t'
9673 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
9674 (gl_SIGNAL_H_DEFAULTS): Add a default.
9675 * modules/signal (Makefile.am): Substitute if needed.
9676 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
9677 users can blindly add volatile.
9678 * doc/posix-headers/signal.texi (signal.h): Document it.
9679 Reported by Matthew Woehlke.
9681 2009-03-23 Jim Meyering <meyering@redhat.com>
9683 pathmax: PATH_MAX: use pathconf only when available
9684 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
9685 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
9686 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
9687 This avoids a link failure in a PSP cross-compilation environment
9688 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
9690 * lib/vasnprintf.c (divide): Fix typo in comment.
9692 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9694 * gnulib-tool (func_filter_filelist): Fix comment.
9696 2009-03-20 Bruno Haible <bruno@clisp.org>
9698 Make sockets.h self-contained.
9699 * lib/sockets.c: Include sockets.h first.
9700 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
9702 2009-03-19 Eric Blake <ebb9@byu.net>
9704 doc: mention more functions added in cygwin 1.7.0
9705 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
9707 * doc/posix-functions/log2f.texi: Likewise.
9709 2009-03-19 Jim Meyering <meyering@redhat.com>
9711 fsusage: avoid syntax error due to statement-before-declaration
9712 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
9713 after all declarations. Reported by Matthew Woehlke in
9714 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
9716 2009-03-18 Eric Blake <ebb9@byu.net>
9718 build-aux/compile: sync from automake
9719 * build-aux/compile: New file, from automake.
9720 * config/srclist.txt: Mention build-aux/compile.
9722 2009-03-17 Bruno Haible <bruno@clisp.org>
9724 * lib/git-merge-changelog.c: Fix typo in comment.
9725 Reported by Reuben Thomas <rrt@sc3d.org>.
9727 2009-03-17 Reuben Thomas <rrt@sc3d.org>
9729 * m4/regex.m4: update and improve help for
9730 --without-included-regex.
9732 2009-03-17 Simon Josefsson <simon@josefsson.org>
9734 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
9735 failure on missing include files.
9737 2009-03-17 Eric Blake <ebb9@byu.net>
9739 doc: mention more functions added in cygwin 1.7.0
9740 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
9742 * doc/posix-functions/fwscanf.texi: Likewise.
9743 * doc/posix-functions/swprintf.texi: Likewise.
9744 * doc/posix-functions/swscanf.texi: Likewise.
9745 * doc/posix-functions/vfwprintf.texi: Likewise.
9746 * doc/posix-functions/vfwscanf.texi: Likewise.
9747 * doc/posix-functions/vswprintf.texi: Likewise.
9748 * doc/posix-functions/vswscanf.texi: Likewise.
9749 * doc/posix-functions/vwprintf.texi: Likewise.
9750 * doc/posix-functions/vwscanf.texi: Likewise.
9751 * doc/posix-functions/wcscasecmp.texi: Likewise.
9752 * doc/posix-functions/wcsdup.texi: Likewise.
9753 * doc/posix-functions/wcsftime.texi: Likewise.
9754 * doc/posix-functions/wcsncasecmp.texi: Likewise.
9755 * doc/posix-functions/wprintf.texi: Likewise.
9756 * doc/posix-functions/wscanf.texi: Likewise.
9757 * doc/glibc-functions/gethostbyname2.texi: Likewise.
9759 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9761 maint.mk: really add $(AM_MAKEFLAGS)
9762 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
9763 was inadvertently omitted in the last commit.
9764 Spotted by Bruno Haible.
9766 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
9767 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
9768 $(AM_MAKEFLAGS)' rather than plain `make'.
9770 gnulib-tool: execute $MAKE not make
9771 * gnulib-tool: Default $MAKE to 'make'.
9772 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
9773 than make. Initialize $MAKE in the do-autobuild script.
9775 gnulib-tool: use $MAKE not make in generated files
9776 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
9777 make, in generated files. Initialize $MAKE in the do-autobuild
9780 * top/GNUmakefile (_have-git-version-gen): Fix typo.
9782 GNUmakefile: disable parallelism only for multiple, recursive targets
9783 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
9784 additions in the Makefile.
9785 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
9787 (.NOTPARALLEL): Only disable parallel builds if multiple targets
9788 are listed on the command line and at least one of them is
9789 listed in $(ALL_RECURSIVE_TARGETS).
9791 2009-03-14 Bruno Haible <bruno@clisp.org>
9793 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
9794 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
9795 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
9796 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
9797 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
9798 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
9799 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
9801 * modules/unistr/u8-strchr (Depends-on): Likewise.
9802 * modules/unistr/u8-strrchr (Depends-on): Likewise.
9803 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
9805 * modules/unistr/u16-strchr (Depends-on): Likewise.
9806 * modules/unistr/u16-strrchr (Depends-on): Likewise.
9808 2009-03-12 Bruno Haible <bruno@clisp.org>
9810 Work around select() bug on Interix 3.5.
9811 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
9812 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
9813 * m4/select.m4: New file.
9814 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
9815 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
9816 * modules/select (Files): Add m4/select.m4.
9817 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
9818 * modules/nanosleep (Depends-on): Add select.
9819 * modules/poll (Depends-on): Likewise.
9820 * doc/posix-functions/select.texi: Mention the Interix bug.
9821 Reported by Markus Duft <mduft@gentoo.org>.
9823 * lib/select.c: Renamed from lib/winsock-select.c.
9824 * modules/select (Files): Add lib/select.c, remove
9825 lib/winsock-select.c.
9826 (configure.ac): Update.
9828 2009-03-12 Jim Meyering <meyering@redhat.com>
9830 avoid gcc warnings about unused macro definitions
9831 * lib/readtokens.c (STREQ): Remove unused definition.
9832 * lib/xmalloc.c (SIZE_MAX): Likewise.
9833 * lib/openat-die.c (N_): Likewise.
9834 * lib/mountlist.c (SIZE_MAX): Remove definition.
9835 Instead, include <stdint.h>.
9836 * lib/readutmp.c: Likewise.
9837 * modules/readutmp (Depends-on): Add stdint.
9838 * modules/mountlist (Depends-on): Add stdint.
9839 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
9841 2009-03-10 Bruno Haible <bruno@clisp.org>
9843 Tests for module 'mbmemcasecoll'.
9844 * modules/mbmemcasecoll-tests: New file.
9845 * tests/test-mbmemcasecoll1.sh: New file.
9846 * tests/test-mbmemcasecoll2.sh: New file.
9847 * tests/test-mbmemcasecoll3.sh: New file.
9848 * tests/test-mbmemcasecoll.c: New file.
9850 New module 'mbmemcasecoll'.
9851 * lib/mbmemcasecoll.h: New file.
9852 * lib/mbmemcasecoll.c: New file.
9853 * modules/mbmemcasecoll: New file.
9855 * tests/test-mbmemcasecmp.h: New file, extracted from
9856 tests/test-mbmemcasecmp.c.
9857 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
9858 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
9860 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
9862 2009-03-09 Bruno Haible <bruno@clisp.org>
9864 Tests for module 'mbmemcasecmp'.
9865 * modules/mbmemcasecmp-tests: New file.
9866 * tests/test-mbmemcasecmp1.sh: New file.
9867 * tests/test-mbmemcasecmp2.sh: New file.
9868 * tests/test-mbmemcasecmp3.sh: New file.
9869 * tests/test-mbmemcasecmp.c: New file.
9871 New module 'mbmemcasecmp'.
9872 * lib/mbmemcasecmp.h: New file.
9873 * lib/mbmemcasecmp.c: New file.
9874 * modules/mbmemcasecmp: New file.
9876 2009-03-09 Bruno Haible <bruno@clisp.org>
9878 Tests for module 'unicase/ulc-casecoll'.
9879 * modules/unicase/ulc-casecoll-tests: New file.
9880 * tests/unicase/test-ulc-casecoll1.sh: New file.
9881 * tests/unicase/test-ulc-casecoll2.sh: New file.
9882 * tests/unicase/test-ulc-casecoll.c: New file.
9884 New module 'unicase/ulc-casecoll'.
9885 * lib/unicase.h (ulc_casecoll): New declaration.
9886 * lib/unicase/ulc-casecoll.c: New file.
9887 * modules/unicase/ulc-casecoll: New file.
9889 New module 'unicase/ulc-casexfrm'.
9890 * lib/unicase.h (ulc_casexfrm): New declaration.
9891 * lib/unicase/ulc-casexfrm.c: New file.
9892 * modules/unicase/ulc-casexfrm: New file.
9894 2009-03-09 Bruno Haible <bruno@clisp.org>
9896 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
9899 * m4/mbscasecmp.m4: Remove file.
9900 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
9901 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
9903 * m4/mbscasestr.m4: Remove file.
9904 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
9905 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
9907 * m4/mbschr.m4: Remove file.
9908 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
9909 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
9911 * m4/mbscspn.m4: Remove file.
9912 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
9913 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
9915 * m4/mbslen.m4: Remove file.
9916 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
9917 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
9919 * m4/mbsncasecmp.m4: Remove file.
9920 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
9921 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
9923 * m4/mbsnlen.m4: Remove file.
9924 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
9925 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
9927 * m4/mbspbrk.m4: Remove file.
9928 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
9929 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
9931 * m4/mbspcasecmp.m4: Remove file.
9932 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
9933 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
9935 * m4/mbsrchr.m4: Remove file.
9936 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
9937 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
9939 * m4/mbssep.m4: Remove file.
9940 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
9941 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
9943 * m4/mbsspn.m4: Remove file.
9944 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
9945 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
9947 * m4/mbsstr.m4: Remove file.
9948 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
9949 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
9951 * m4/mbstok_r.m4: Remove file.
9952 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
9953 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
9955 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
9957 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
9958 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
9960 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
9962 2009-03-08 Bruno Haible <bruno@clisp.org>
9964 Tests for module 'unicase/ulc-casecmp'.
9965 * modules/unicase/ulc-casecmp-tests: New file.
9966 * tests/unicase/test-ulc-casecmp1.sh: New file.
9967 * tests/unicase/test-ulc-casecmp2.sh: New file.
9968 * tests/unicase/test-ulc-casecmp.c: New file.
9970 New module 'unicase/ulc-casecmp'.
9971 * lib/unicase.h (ulc_casecmp): New declaration.
9972 * lib/unicase/ulc-casecmp.c: New file.
9973 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
9975 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
9976 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
9977 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
9978 * modules/unicase/ulc-casecmp: New file.
9980 Tests for module 'unicase/u32-is-cased'.
9981 * modules/unicase/u32-is-cased-tests: New file.
9982 * tests/unicase/test-u32-is-cased.c: New file.
9984 Tests for module 'unicase/u16-is-cased'.
9985 * modules/unicase/u16-is-cased-tests: New file.
9986 * tests/unicase/test-u16-is-cased.c: New file.
9988 Tests for module 'unicase/u8-is-cased'.
9989 * modules/unicase/u8-is-cased-tests: New file.
9990 * tests/unicase/test-u8-is-cased.c: New file.
9991 * tests/unicase/test-is-cased.h: New file.
9993 New module 'unicase/u32-is-cased'.
9994 * lib/unicase/u32-is-cased.c: New file.
9995 * modules/unicase/u32-is-cased: New file.
9997 New module 'unicase/u16-is-cased'.
9998 * lib/unicase/u16-is-cased.c: New file.
9999 * modules/unicase/u16-is-cased: New file.
10001 New module 'unicase/u8-is-cased'.
10002 * lib/unicase/u8-is-cased.c: New file.
10003 * lib/unicase/u-is-cased.h: New file.
10004 * modules/unicase/u8-is-cased: New file.
10006 Tests for module 'unicase/u32-is-casefolded'.
10007 * modules/unicase/u32-is-casefolded-tests: New file.
10008 * tests/unicase/test-u32-is-casefolded.c: New file.
10010 Tests for module 'unicase/u16-is-casefolded'.
10011 * modules/unicase/u16-is-casefolded-tests: New file.
10012 * tests/unicase/test-u16-is-casefolded.c: New file.
10014 Tests for module 'unicase/u8-is-casefolded'.
10015 * modules/unicase/u8-is-casefolded-tests: New file.
10016 * tests/unicase/test-u8-is-casefolded.c: New file.
10017 * tests/unicase/test-is-casefolded.h: New file.
10019 New module 'unicase/u32-is-casefolded'.
10020 * lib/unicase/u32-is-casefolded.c: New file.
10021 * modules/unicase/u32-is-casefolded: New file.
10023 New module 'unicase/u16-is-casefolded'.
10024 * lib/unicase/u16-is-casefolded.c: New file.
10025 * modules/unicase/u16-is-casefolded: New file.
10027 New module 'unicase/u8-is-casefolded'.
10028 * lib/unicase/u8-is-casefolded.c: New file.
10029 * modules/unicase/u8-is-casefolded: New file.
10031 Tests for module 'unicase/u32-is-titlecase'.
10032 * modules/unicase/u32-is-titlecase-tests: New file.
10033 * tests/unicase/test-u32-is-titlecase.c: New file.
10035 Tests for module 'unicase/u16-is-titlecase'.
10036 * modules/unicase/u16-is-titlecase-tests: New file.
10037 * tests/unicase/test-u16-is-titlecase.c: New file.
10039 Tests for module 'unicase/u8-is-titlecase'.
10040 * modules/unicase/u8-is-titlecase-tests: New file.
10041 * tests/unicase/test-u8-is-titlecase.c: New file.
10042 * tests/unicase/test-is-titlecase.h: New file.
10044 New module 'unicase/u32-is-titlecase'.
10045 * lib/unicase/u32-is-titlecase.c: New file.
10046 * modules/unicase/u32-is-titlecase: New file.
10048 New module 'unicase/u16-is-titlecase'.
10049 * lib/unicase/u16-is-titlecase.c: New file.
10050 * modules/unicase/u16-is-titlecase: New file.
10052 New module 'unicase/u8-is-titlecase'.
10053 * lib/unicase/u8-is-titlecase.c: New file.
10054 * modules/unicase/u8-is-titlecase: New file.
10056 Tests for module 'unicase/u32-is-lowercase'.
10057 * modules/unicase/u32-is-lowercase-tests: New file.
10058 * tests/unicase/test-u32-is-lowercase.c: New file.
10060 Tests for module 'unicase/u16-is-lowercase'.
10061 * modules/unicase/u16-is-lowercase-tests: New file.
10062 * tests/unicase/test-u16-is-lowercase.c: New file.
10064 Tests for module 'unicase/u8-is-lowercase'.
10065 * modules/unicase/u8-is-lowercase-tests: New file.
10066 * tests/unicase/test-u8-is-lowercase.c: New file.
10067 * tests/unicase/test-is-lowercase.h: New file.
10069 New module 'unicase/u32-is-lowercase'.
10070 * lib/unicase/u32-is-lowercase.c: New file.
10071 * modules/unicase/u32-is-lowercase: New file.
10073 New module 'unicase/u16-is-lowercase'.
10074 * lib/unicase/u16-is-lowercase.c: New file.
10075 * modules/unicase/u16-is-lowercase: New file.
10077 New module 'unicase/u8-is-lowercase'.
10078 * lib/unicase/u8-is-lowercase.c: New file.
10079 * modules/unicase/u8-is-lowercase: New file.
10081 Tests for module 'unicase/u32-is-uppercase'.
10082 * modules/unicase/u32-is-uppercase-tests: New file.
10083 * tests/unicase/test-u32-is-uppercase.c: New file.
10085 Tests for module 'unicase/u16-is-uppercase'.
10086 * modules/unicase/u16-is-uppercase-tests: New file.
10087 * tests/unicase/test-u16-is-uppercase.c: New file.
10089 Tests for module 'unicase/u8-is-uppercase'.
10090 * modules/unicase/u8-is-uppercase-tests: New file.
10091 * tests/unicase/test-u8-is-uppercase.c: New file.
10092 * tests/unicase/test-is-uppercase.h: New file.
10094 New module 'unicase/u32-is-uppercase'.
10095 * lib/unicase/u32-is-uppercase.c: New file.
10096 * modules/unicase/u32-is-uppercase: New file.
10098 New module 'unicase/u16-is-uppercase'.
10099 * lib/unicase/u16-is-uppercase.c: New file.
10100 * modules/unicase/u16-is-uppercase: New file.
10102 New module 'unicase/u8-is-uppercase'.
10103 * lib/unicase/u8-is-uppercase.c: New file.
10104 * modules/unicase/u8-is-uppercase: New file.
10106 New module 'unicase/u32-is-invariant'.
10107 * lib/unicase/u32-is-invariant.c: New file.
10108 * modules/unicase/u32-is-invariant: New file.
10110 New module 'unicase/u16-is-invariant'.
10111 * lib/unicase/u16-is-invariant.c: New file.
10112 * modules/unicase/u16-is-invariant: New file.
10114 New module 'unicase/u8-is-invariant'.
10115 * lib/unicase/u8-is-invariant.c: New file.
10116 * lib/unicase/invariant.h: New file.
10117 * lib/unicase/u-is-invariant.h: New file.
10118 * modules/unicase/u8-is-invariant: New file.
10120 Tests for module 'unicase/u32-casecoll'.
10121 * modules/unicase/u32-casecoll-tests: New file.
10122 * tests/unicase/test-u32-casecoll.c: New file.
10124 Tests for module 'unicase/u16-casecoll'.
10125 * modules/unicase/u16-casecoll-tests: New file.
10126 * tests/unicase/test-u16-casecoll.c: New file.
10128 Tests for module 'unicase/u8-casecoll'.
10129 * modules/unicase/u8-casecoll-tests: New file.
10130 * tests/unicase/test-u8-casecoll.c: New file.
10132 New module 'unicase/u32-casecoll'.
10133 * lib/unicase/u32-casecoll.c: New file.
10134 * modules/unicase/u32-casecoll: New file.
10136 New module 'unicase/u16-casecoll'.
10137 * lib/unicase/u16-casecoll.c: New file.
10138 * modules/unicase/u16-casecoll: New file.
10140 New module 'unicase/u8-casecoll'.
10141 * lib/unicase/u8-casecoll.c: New file.
10142 * lib/unicase/u-casecoll.h: New file.
10143 * modules/unicase/u8-casecoll: New file.
10145 New module 'unicase/u32-casexfrm'.
10146 * lib/unicase/u32-casexfrm.c: New file.
10147 * modules/unicase/u32-casexfrm: New file.
10149 New module 'unicase/u16-casexfrm'.
10150 * lib/unicase/u16-casexfrm.c: New file.
10151 * modules/unicase/u16-casexfrm: New file.
10153 New module 'unicase/u8-casexfrm'.
10154 * lib/unicase/u8-casexfrm.c: New file.
10155 * lib/unicase/u-casexfrm.h: New file.
10156 * modules/unicase/u8-casexfrm: New file.
10158 Tests for module 'unicase/u32-casecmp'.
10159 * modules/unicase/u32-casecmp-tests: New file.
10160 * tests/unicase/test-u32-casecmp.c: New file.
10162 Tests for module 'unicase/u16-casecmp'.
10163 * modules/unicase/u16-casecmp-tests: New file.
10164 * tests/unicase/test-u16-casecmp.c: New file.
10166 Tests for module 'unicase/u8-casecmp'.
10167 * modules/unicase/u8-casecmp-tests: New file.
10168 * tests/unicase/test-u8-casecmp.c: New file.
10169 * tests/unicase/test-casecmp.h: New file.
10171 New module 'unicase/u32-casecmp'.
10172 * lib/unicase/u32-casecmp.c: New file.
10173 * modules/unicase/u32-casecmp: New file.
10175 New module 'unicase/u16-casecmp'.
10176 * lib/unicase/u16-casecmp.c: New file.
10177 * modules/unicase/u16-casecmp: New file.
10179 New module 'unicase/u8-casecmp'.
10180 * lib/unicase/u8-casecmp.c: New file.
10181 * lib/unicase/u-casecmp.h: New file.
10182 * modules/unicase/u8-casecmp: New file.
10184 Tests for module 'unicase/u32-casefold'.
10185 * modules/unicase/u32-casefold-tests: New file.
10186 * tests/unicase/test-u32-casefold.c: New file.
10188 Tests for module 'unicase/u16-casefold'.
10189 * modules/unicase/u16-casefold-tests: New file.
10190 * tests/unicase/test-u16-casefold.c: New file.
10192 Tests for module 'unicase/u8-casefold'.
10193 * modules/unicase/u8-casefold-tests: New file.
10194 * tests/unicase/test-u8-casefold.c: New file.
10196 New module 'unicase/u32-casefold'.
10197 * lib/unicase/u32-casefold.c: New file.
10198 * modules/unicase/u32-casefold: New file.
10200 New module 'unicase/u16-casefold'.
10201 * lib/unicase/u16-casefold.c: New file.
10202 * modules/unicase/u16-casefold: New file.
10204 New module 'unicase/u8-casefold'.
10205 * lib/unicase/u8-casefold.c: New file.
10206 * lib/unicase/u-casefold.h: New file.
10207 * modules/unicase/u8-casefold: New file.
10209 New module 'unicase/tocasefold'.
10210 * lib/unicase/casefold.h: New file.
10211 * lib/unicase/tocasefold.c: New file.
10212 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
10213 * modules/unicase/tocasefold: New file.
10215 Tests for module 'unicase/u32-totitle'.
10216 * modules/unicase/u32-totitle-tests: New file.
10217 * tests/unicase/test-u32-totitle.c: New file.
10219 Tests for module 'unicase/u16-totitle'.
10220 * modules/unicase/u16-totitle-tests: New file.
10221 * tests/unicase/test-u16-totitle.c: New file.
10223 Tests for module 'unicase/u8-totitle'.
10224 * modules/unicase/u8-totitle-tests: New file.
10225 * tests/unicase/test-u8-totitle.c: New file.
10227 New module 'unicase/u32-totitle'.
10228 * lib/unicase/u32-totitle.c: New file.
10229 * modules/unicase/u32-totitle: New file.
10231 New module 'unicase/u16-totitle'.
10232 * lib/unicase/u16-totitle.c: New file.
10233 * modules/unicase/u16-totitle: New file.
10235 New module 'unicase/u8-totitle'.
10236 * lib/unicase/u8-totitle.c: New file.
10237 * lib/unicase/u-totitle.h: New file.
10238 * modules/unicase/u8-totitle: New file.
10240 Tests for module 'unicase/u32-tolower'.
10241 * modules/unicase/u32-tolower-tests: New file.
10242 * tests/unicase/test-u32-tolower.c: New file.
10244 Tests for module 'unicase/u16-tolower'.
10245 * modules/unicase/u16-tolower-tests: New file.
10246 * tests/unicase/test-u16-tolower.c: New file.
10248 Tests for module 'unicase/u8-tolower'.
10249 * modules/unicase/u8-tolower-tests: New file.
10250 * tests/unicase/test-u8-tolower.c: New file.
10252 New module 'unicase/u32-tolower'.
10253 * lib/unicase/u32-tolower.c: New file.
10254 * modules/unicase/u32-tolower: New file.
10256 New module 'unicase/u16-tolower'.
10257 * lib/unicase/u16-tolower.c: New file.
10258 * modules/unicase/u16-tolower: New file.
10260 New module 'unicase/u8-tolower'.
10261 * lib/unicase/u8-tolower.c: New file.
10262 * modules/unicase/u8-tolower: New file.
10264 Tests for module 'unicase/u32-toupper'.
10265 * modules/unicase/u32-toupper-tests: New file.
10266 * tests/unicase/test-u32-toupper.c: New file.
10268 Tests for module 'unicase/u16-toupper'.
10269 * modules/unicase/u16-toupper-tests: New file.
10270 * tests/unicase/test-u16-toupper.c: New file.
10272 Tests for module 'unicase/u8-toupper'.
10273 * modules/unicase/u8-toupper-tests: New file.
10274 * tests/unicase/test-u8-toupper.c: New file.
10276 New module 'unicase/u32-toupper'.
10277 * lib/unicase/u32-toupper.c: New file.
10278 * modules/unicase/u32-toupper: New file.
10280 New module 'unicase/u16-toupper'.
10281 * lib/unicase/u16-toupper.c: New file.
10282 * modules/unicase/u16-toupper: New file.
10284 New module 'unicase/u8-toupper'.
10285 * lib/unicase/u8-toupper.c: New file.
10286 * modules/unicase/u8-toupper: New file.
10288 New module 'unicase/u32-casemap'.
10289 * lib/unicase/u32-casemap.c: New file.
10290 * modules/unicase/u32-casemap: New file.
10292 New module 'unicase/u16-casemap'.
10293 * lib/unicase/u16-casemap.c: New file.
10294 * modules/unicase/u16-casemap: New file.
10296 New module 'unicase/u8-casemap'.
10297 * lib/unicase/unicasemap.h: New file.
10298 * lib/unicase/u8-casemap.c: New file.
10299 * lib/unicase/u-casemap.h: New file.
10300 * modules/unicase/u8-casemap: New file.
10302 New module 'unicase/special-casing'.
10303 * lib/unicase/special-casing.h: New file.
10304 * lib/unicase/special-casing.c: New file.
10305 * lib/unicase/special-casing-table.gperf: New file, generated by
10307 * modules/unicase/special-casing: New file.
10309 Tests for module 'unicase/locale-language'.
10310 * modules/unicase/locale-language-tests: New file.
10311 * tests/unicase/test-locale-language.sh: New file.
10312 * tests/unicase/test-locale-language.c: New file.
10314 New module 'unicase/locale-language'.
10315 * lib/unicase/locale-language.c: New file.
10316 * lib/unicase/locale-languages.gperf: New file.
10317 * modules/unicase/locale-language: New file.
10319 Generate more tables for case conversion and case folding.
10320 * lib/gen-uni-tables.c (SCC_*): New enum items.
10321 (struct special_casing_rule): New type.
10322 (casing_rules, num_casing_rules, allocated_casing_rules): New
10324 (add_casing_rule, fill_casing_rules): New functions.
10325 (struct casefold_rule): New type.
10326 (casefolding_rules, num_casefolding_rules,
10327 allocated_casefolding_rules): New variables.
10328 (fill_casefolding_rules): New function.
10329 (unicode_casefold): New variable.
10330 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
10331 sort_casing_rules, output_casing_rules): New functions.
10332 (main): Accept to more arguments: SpecialCasing.txt and
10333 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
10334 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
10335 Output mapping for casefolding.
10337 * lib/unicase.h: Include stdbool.h, uninorm.h.
10338 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
10339 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
10340 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
10342 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
10344 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
10345 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
10347 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
10348 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
10349 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
10350 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
10352 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
10354 2009-03-08 Bruno Haible <bruno@clisp.org>
10356 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
10357 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
10358 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
10359 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
10361 2009-03-07 Bruno Haible <bruno@clisp.org>
10363 Adjust u*_normcmp, u*_normcoll API.
10364 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
10365 u16_normcoll, u32_normcoll): Change failure conventions.
10366 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
10367 errno and return -1.
10368 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
10370 2009-03-07 Bruno Haible <bruno@clisp.org>
10372 Tests for module 'uninorm/u32-normcoll'.
10373 * modules/uninorm/u32-normcoll-tests: New file.
10374 * tests/uninorm/test-u32-normcoll.c: New file.
10376 Tests for module 'uninorm/u16-normcoll'.
10377 * modules/uninorm/u16-normcoll-tests: New file.
10378 * tests/uninorm/test-u16-normcoll.c: New file.
10380 Tests for module 'uninorm/u8-normcoll'.
10381 * modules/uninorm/u8-normcoll-tests: New file.
10382 * tests/uninorm/test-u8-normcoll.c: New file.
10384 2009-03-07 Bruno Haible <bruno@clisp.org>
10386 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
10387 tests/uninorm/test-u32-normcmp.c.
10388 * tests/uninorm/test-u32-normcmp.c: Include it.
10389 (test_nonascii): New function, extracted from main. Add some more
10391 (main): Invoke test_ascii and test_nonascii.
10392 * modules/uninorm/u32-normcmp-tests (Files): Add
10393 tests/uninorm/test-u32-normcmp.h.
10394 (Depends-on): Remove uninorm/u32-normcmp.
10396 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
10397 tests/uninorm/test-u16-normcmp.c.
10398 * tests/uninorm/test-u16-normcmp.c: Include it.
10399 (test_nonascii): New function, extracted from main. Add some more
10401 (main): Invoke test_ascii and test_nonascii.
10402 * modules/uninorm/u16-normcmp-tests (Files): Add
10403 tests/uninorm/test-u16-normcmp.h.
10404 (Depends-on): Remove uninorm/u16-normcmp.
10406 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
10407 tests/uninorm/test-u8-normcmp.c.
10408 * tests/uninorm/test-u8-normcmp.c: Include it.
10409 (test_nonascii): New function, extracted from main. Add some more
10411 (main): Invoke test_ascii and test_nonascii.
10412 * modules/uninorm/u8-normcmp-tests (Files): Add
10413 tests/uninorm/test-u8-normcmp.h.
10414 (Depends-on): Remove uninorm/u8-normcmp.
10416 2009-03-07 Bruno Haible <bruno@clisp.org>
10418 New module 'uninorm/u32-normcoll'.
10419 * lib/uninorm/u32-normcoll.c: New file.
10420 * modules/uninorm/u32-normcoll: New file.
10422 New module 'uninorm/u16-normcoll'.
10423 * lib/uninorm/u16-normcoll.c: New file.
10424 * modules/uninorm/u16-normcoll: New file.
10426 New module 'uninorm/u8-normcoll'.
10427 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
10429 * lib/uninorm/u8-normcoll.c: New file.
10430 * lib/uninorm/u-normcoll.h: New file.
10431 * modules/uninorm/u8-normcoll: New file.
10433 New module 'uninorm/u32-normxfrm'.
10434 * lib/uninorm/u32-normxfrm.c: New file.
10435 * modules/uninorm/u32-normxfrm: New file.
10437 New module 'uninorm/u16-normxfrm'.
10438 * lib/uninorm/u16-normxfrm.c: New file.
10439 * modules/uninorm/u16-normxfrm: New file.
10441 New module 'uninorm/u8-normxfrm'.
10442 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
10444 * lib/uninorm/u8-normxfrm.c: New file.
10445 * lib/uninorm/u-normxfrm.h: New file.
10446 * modules/uninorm/u8-normxfrm: New file.
10448 2009-03-07 Bruno Haible <bruno@clisp.org>
10450 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
10451 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
10452 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
10454 2009-03-07 Bruno Haible <bruno@clisp.org>
10456 New module 'memxfrm'.
10457 * lib/memxfrm.h: New file.
10458 * lib/memxfrm.c: New file.
10459 * modules/memxfrm: New file.
10461 2009-03-07 Bruno Haible <bruno@clisp.org>
10463 New module 'memcmp2'.
10464 * lib/memcmp2.h: New file.
10465 * lib/memcmp2.c: New file.
10466 * modules/memcmp2: New file.
10468 2009-03-07 Bruno Haible <bruno@clisp.org>
10470 Tests for module 'uninorm/decomposing-form'.
10471 * modules/uninorm/decomposing-form-tests: New file.
10472 * tests/uninorm/test-decomposing-form.c: New file.
10474 New module 'uninorm/decomposing-form'.
10475 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
10476 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
10477 Add 'decomposing_variant' field.
10478 * lib/uninorm/decomposing-form.c: New file.
10479 * lib/uninorm/nfc.c (uninorm_nfc): Update.
10480 * lib/uninorm/nfd.c (uninorm_nfd): Update.
10481 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
10482 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
10483 * modules/uninorm/decomposing-form: New file.
10484 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
10485 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
10487 2009-03-07 Bruno Haible <bruno@clisp.org>
10489 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
10492 2009-03-06 Bruno Haible <bruno@clisp.org>
10494 Tests for module 'uninorm/u32-normcmp'.
10495 * tests/uninorm/test-u32-normcmp.c: New file.
10496 * modules/uninorm/u32-normcmp-tests: New file.
10498 Tests for module 'uninorm/u16-normcmp'.
10499 * tests/uninorm/test-u16-normcmp.c: New file.
10500 * modules/uninorm/u16-normcmp-tests: New file.
10502 Tests for module 'uninorm/u8-normcmp'.
10503 * tests/uninorm/test-u8-normcmp.c: New file.
10504 * modules/uninorm/u8-normcmp-tests: New file.
10506 New module 'uninorm/u32-normcmp'.
10507 * lib/uninorm/u32-normcmp.c: New file.
10508 * modules/uninorm/u32-normcmp: New file.
10510 New module 'uninorm/u16-normcmp'.
10511 * lib/uninorm/u16-normcmp.c: New file.
10512 * modules/uninorm/u16-normcmp: New file.
10514 New module 'uninorm/u8-normcmp'.
10515 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
10517 * lib/uninorm/u8-normcmp.c: New file.
10518 * lib/uninorm/u-normcmp.h: New file.
10519 * modules/uninorm/u8-normcmp: New file.
10521 2009-03-06 Bruno Haible <bruno@clisp.org>
10523 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
10524 Reported by Eric Blake.
10526 2009-03-06 Eric Blake <ebb9@byu.net>
10527 Bruno Haible <bruno@clisp.org>
10529 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
10530 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
10532 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
10533 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
10535 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
10537 2009-03-06 Eric Blake <ebb9@byu.net>
10539 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
10540 to avoid compiler warnings.
10541 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
10543 2009-03-05 Bruno Haible <bruno@clisp.org>
10545 * tests/test-ftell.c (main): Disable test beyond end of file on
10547 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
10549 2009-03-05 Kamil Dudka <kdudka@redhat.com>
10551 * lib/filevercmp.c: Move hidden files up in ordering.
10552 * tests/test-filevercmp.c: Add tests for hidden files.
10554 2009-03-04 Bruno Haible <bruno@clisp.org>
10556 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
10557 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
10559 Reported by Simon Josefsson.
10561 2009-03-03 Bruno Haible <bruno@clisp.org>
10563 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
10564 Reported by Simon Josefsson.
10566 * doc/ld-version-script.texi: Update node reference.
10568 2009-03-03 Bruno Haible <bruno@clisp.org>
10570 * modules/visibility (License): Change to 'unlimited'.
10571 Suggested by Simon Josefsson.
10573 2009-03-03 Jim Meyering <meyering@redhat.com>
10575 unlinkdir: cannot_unlink_dir may modify process state
10576 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
10577 it's neither thread-safe nor appropriate for use in a library.
10579 2009-03-03 Eric Blake <ebb9@byu.net>
10581 test-closein: silence test under Darwin
10582 * tests/test-closein.sh: Ignore stderr from cat, since we don't
10583 care if it dies from EPIPE or EBADF.
10585 2009-03-03 Bruno Haible <bruno@clisp.org>
10587 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
10589 * doc/visibility.texi: Fix @node and @section.
10591 2009-03-03 Simon Josefsson <simon@josefsson.org>
10593 * doc/gnulib.texi: Link to sections for ld version script and
10595 * doc/visibility.texi: Add @node and @section.
10596 * modules/ld-version-script: New module.
10597 * m4/ld-version-script.m4: New file.
10598 * doc/ld-version-script.texi: New file.
10600 2009-03-02 David Lutterkort <lutter@redhat.com>
10602 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
10603 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10605 2009-03-02 Bruno Haible <bruno@clisp.org>
10607 * doc/visibility.texi: Mention libtool's -export-symbols option.
10609 2009-03-02 Jim Meyering <meyering@redhat.com>
10611 announce-gen: new option: --no-print-checksums
10612 * build-aux/announce-gen (usage): Describe it.
10613 (print_checksums): Print a newline here, not in the [*] footnote.
10616 2009-03-01 Bruno Haible <bruno@clisp.org>
10618 Use socklen_t in the native Windows replacements prototypes.
10619 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
10621 * lib/getsockopt.c (rpl_getsockopt): Likewise.
10622 * lib/setsockopt.c (rpl_setsockopt): Likewise.
10623 * modules/getsockopt (Depends-on): Add socklen.
10624 * modules/setsockopt (Depends-on): Add socklen.
10626 2009-03-01 Bruno Haible <bruno@clisp.org>
10628 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
10631 2009-03-01 Eric Blake <ebb9@byu.net>
10632 Bruno Haible <bruno@clisp.org>
10634 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
10636 * lib/wait-process.c (wait_subprocess): Omit error message about
10637 deadly signal sent to the child of termsigp != NULL.
10639 2009-03-01 Eric Blake <ebb9@byu.net>
10641 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
10643 2009-03-01 Bruno Haible <bruno@clisp.org>
10645 Avoid a gcc warning.
10646 * tests/test-sched.c (b): Make global.
10647 Reported by Eric Blake.
10649 2009-01-19 Martin Lambers <marlam@marlam.de>
10651 Provide POSIX semantics for socket timeout options on W32.
10652 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
10653 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
10654 * modules/setsockopt: Depend on sys_time module for struct timeval.
10655 * modules/getsockopt: Depend on sys_time module for struct timeval.
10657 2009-03-01 Simon Josefsson <simon@josefsson.org>
10659 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
10660 __USE_GNU, for consistency with netdb.in.h.
10661 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10663 2009-03-01 Bruno Haible <bruno@clisp.org>
10665 More support for FreeMiNT.
10666 * lib/fseeko.c (rpl_fseeko): Complete last commit.
10667 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10669 2009-03-01 Bruno Haible <bruno@clisp.org>
10671 More support for FreeMiNT.
10672 * lib/fpurge.c (fpurge): Correct last commit.
10673 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10675 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10677 Fix unportable awk script in vc-list-files.
10678 * build-aux/vc-list-files: In the replacement awk script, use
10679 substr with a second argument of 1, not zero.
10680 Report by Simon Josefsson.
10682 2009-02-28 Bruno Haible <bruno@clisp.org>
10684 More support for FreeMiNT.
10685 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
10687 * lib/fwriting.c (fwriting): Likewise.
10688 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
10690 2009-02-28 Bruno Haible <bruno@clisp.org>
10692 * tests/test-freadseek.c (main): Disable test beyond end of file on
10694 * tests/test-ftello.c (main): Likewise.
10695 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
10697 2009-02-28 Bruno Haible <bruno@clisp.org>
10699 Add tentative support for FreeMiNT.
10700 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
10701 * lib/fpurge.c (fpurge): Likewise.
10702 * lib/freadable.c (freadable): Likewise.
10703 * lib/freading.c (freading): Likewise.
10704 * lib/freadptr.c (freadptr): Likewise.
10705 * lib/freadseek.c (freadptrinc): Likewise.
10706 * lib/fseeko.c (rpl_fseeko): Likewise.
10707 * lib/fseterr.c (fseterr): Likewise.
10708 * lib/fwritable.c (fwritable): Likewise.
10709 * lib/fwriting.c (fwriting): Likewise.
10710 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
10712 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
10714 2009-02-28 Bruno Haible <bruno@clisp.org>
10716 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
10718 Reported by Jim Meyering.
10720 2009-02-28 Bruno Haible <bruno@clisp.org>
10722 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
10723 Mention the results of these tests on various platforms.
10724 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
10726 * doc/posix-functions/printf.texi: Likewise.
10727 * doc/posix-functions/snprintf.texi: Likewise.
10728 * doc/posix-functions/sprintf.texi: Likewise.
10729 * doc/posix-functions/vfprintf.texi: Likewise.
10730 * doc/posix-functions/vprintf.texi: Likewise.
10731 * doc/posix-functions/vsnprintf.texi: Likewise.
10732 * doc/posix-functions/vsprintf.texi: Likewise.
10733 * doc/glibc-functions/obstack_printf.texi: Likewise.
10734 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
10736 2009-02-28 Bruno Haible <bruno@clisp.org>
10738 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
10739 Reported by Loïc Minier <lool@dooz.org>.
10741 2009-02-27 Bruno Haible <bruno@clisp.org>
10743 * gnulib-tool (func_import): Make the sed expression used to create the
10744 sed script for updating the .gitignore file POSIX compliant.
10745 Reported by Eric Blake.
10747 2009-02-27 Bruno Haible <bruno@clisp.org>
10749 * gnulib-tool (sed): Don't alias as "sed --posix".
10750 Reported by Eric Blake.
10752 2009-02-27 Bruno Haible <bruno@clisp.org>
10754 Avoid test link errors.
10755 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
10756 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
10757 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
10758 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
10759 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10761 2009-02-27 Bruno Haible <bruno@clisp.org>
10763 Avoid spurious "(cached)" in configure output.
10764 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
10765 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
10766 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10767 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10768 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10769 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
10770 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10771 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
10772 Reported by Eric Blake.
10774 2009-02-27 Eric Blake <ebb9@byu.net>
10776 printf: fix regression in previous patch
10777 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
10779 2009-02-27 Bruno Haible <bruno@clisp.org>
10781 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
10783 * lib/stdint.in.h: Likewise.
10784 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
10786 2009-02-27 Eric Blake <ebb9@byu.net>
10788 doc: mention more functions added in cygwin 1.7.0
10789 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
10791 * doc/posix-functions/open_wmemstream.texi: Likewise.
10792 * doc/posix-functions/wcsnlen.texi: Likewise.
10793 * doc/posix-functions/wcsnrtombs.texi: Likewise.
10794 * doc/posix-functions/wcstod.texi: Likewise.
10795 * doc/posix-functions/wcstof.texi: Likewise.
10796 * doc/posix-functions/wcstoimax.texi: Likewise.
10797 * doc/posix-functions/wcstok.texi: Likewise.
10798 * doc/posix-functions/wcstoumax.texi: Likewise.
10800 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
10801 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
10802 * doc/posix-functions/fprintf.texi: Update.
10803 * doc/posix-functions/printf.texi: Update.
10804 * doc/posix-functions/snprintf.texi: Update.
10805 * doc/posix-functions/sprintf.texi: Update.
10806 * doc/posix-functions/vfprintf.texi: Update.
10807 * doc/posix-functions/vprintf.texi: Update.
10808 * doc/posix-functions/vsnprintf.texi: Update.
10809 * doc/posix-functions/vsprintf.texi: Update.
10810 * doc/glibc-functions/obstack_printf.texi: Update.
10811 * doc/glibc-functions/obstack_vprintf.texi: Update.
10813 2009-02-26 Eric Blake <ebb9@byu.net>
10815 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
10816 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
10817 compilation bug by using runtime conversion.
10818 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
10819 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
10820 * modules/ceill-tests (Files): Use nan.h.
10821 * modules/floorl-tests (Files): Likewise.
10822 * modules/frexpl-tests (Files): Likewise.
10823 * modules/isnanl-tests (Files): Likewise.
10824 * modules/ldexpl-tests (Files): Likewise.
10825 * modules/roundl-tests (Files): Likewise.
10826 * modules/truncl-tests (Files): Likewise.
10827 * tests/test-ceill.c (main): Use a working NaN.
10828 * tests/test-floorl.c (main): Likewise.
10829 * tests/test-frexpl.c (main): Likewise.
10830 * tests/test-isnan.c (test_long_double): Likewise.
10831 * tests/test-isnanl.h (main): Likewise.
10832 * tests/test-ldexpl.h (main): Likewise.
10833 * tests/test-roundl.h (main): Likewise.
10834 * tests/test-truncl.h (main): Likewise.
10835 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
10837 2009-02-26 Eric Blake <ebb9@byu.net>
10838 Bruno Haible <bruno@clisp.org>
10840 Work around a *printf bug with %ls on Solaris.
10841 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
10842 precision is specified, sprintf stops converting the wide string
10843 argument when the number of bytes that have been produced by this
10844 conversion equals or exceeds the precision.
10845 * doc/posix-functions/fprintf.texi: Update.
10846 * doc/posix-functions/printf.texi: Update.
10847 * doc/posix-functions/snprintf.texi: Update.
10848 * doc/posix-functions/sprintf.texi: Update.
10849 * doc/posix-functions/vfprintf.texi: Update.
10850 * doc/posix-functions/vprintf.texi: Update.
10851 * doc/posix-functions/vsnprintf.texi: Update.
10852 * doc/posix-functions/vsprintf.texi: Update.
10853 * doc/glibc-functions/obstack_printf.texi: Update.
10854 * doc/glibc-functions/obstack_vprintf.texi: Update.
10856 2009-02-26 Eric Blake <ebb9@byu.net>
10858 stdlib: favor compiler check of random.h
10859 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
10860 to avoid an ObjC random.h installed by Swarm.
10862 2009-02-26 Bruno Haible <bruno@clisp.org>
10864 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
10865 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
10866 Reported by Gary V. Vaughan <gary@gnu.org>.
10868 2009-02-26 Bruno Haible <bruno@clisp.org>
10870 Fix *printf behaviour regarding the %ls directive.
10871 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
10872 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
10873 NEED_PRINTF_DIRECTIVE_LS.
10874 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
10875 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10876 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10877 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
10878 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
10879 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
10880 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
10881 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10882 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10883 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10884 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10885 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
10886 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10887 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10888 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10889 * doc/posix-functions/fprintf.texi: Update.
10890 * doc/posix-functions/printf.texi: Update.
10891 * doc/posix-functions/snprintf.texi: Update.
10892 * doc/posix-functions/sprintf.texi: Update.
10893 * doc/posix-functions/vfprintf.texi: Update.
10894 * doc/posix-functions/vprintf.texi: Update.
10895 * doc/posix-functions/vsnprintf.texi: Update.
10896 * doc/posix-functions/vsprintf.texi: Update.
10897 * doc/glibc-functions/obstack_printf.texi: Update.
10898 * doc/glibc-functions/obstack_vprintf.texi: Update.
10899 Reported by Eric Blake.
10901 2009-02-25 Bruno Haible <bruno@clisp.org>
10903 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
10905 Reported by Gary V. Vaughan <gary@gnu.org>.
10907 2009-02-25 Bruno Haible <bruno@clisp.org>
10909 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
10910 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
10911 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
10912 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
10913 Reported by Gary V. Vaughan <gary@gnu.org>.
10915 2009-02-25 Bruno Haible <bruno@clisp.org>
10917 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
10918 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
10919 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
10920 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
10921 Reported by Gary V. Vaughan <gary@gnu.org>.
10923 2009-02-25 Eric Blake <ebb9@byu.net>
10925 tests: skip fseek/ftell tests if ungetc is broken
10926 * m4/ungetc.m4: New file.
10927 * modules/fseek-tests: Split test, so ungetc dependency is
10928 separate from rest of test.
10929 * modules/fseeko-tests: Likewise.
10930 * modules/ftell-tests: Likewise.
10931 * modules/ftello-tests: Likewise.
10932 * tests/test-fseek.c (main): Isolate ungetc dependency.
10933 * tests/test-fseeko.c (main): Likewise.
10934 * tests/test-ftell.c (main): Likewise.
10935 * tests/test-ftello.c (main): Likewise.
10936 * tests/test-fseek2.sh: New file.
10937 * tests/test-fseeko2.sh: Likewise.
10938 * tests/test-ftell2.sh: Likewise.
10939 * tests/test-ftello2.sh: Likewise.
10941 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
10943 test-getaddrinfo: fix usage of skip return code 77
10944 * tests/test-gettaddrinfo.c: Return skip code 77 only
10945 for first occurance of skip (4x77 is not 77)
10947 2009-02-25 Gary V. Vaughan <gary@gnu.org>
10949 strtod: avoid C99 decl-after-statement
10950 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
10952 2009-02-24 Eric Blake <ebb9@byu.net>
10954 strtod: detect HP-UX 11.31 bug
10955 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
10956 Reported by Gary V. Vaughan.
10958 2009-02-23 Bruno Haible <bruno@clisp.org>
10960 Fix invalid read past end of memory block.
10961 * lib/vasnprintf.c (DCHAR_SET): Define.
10962 (local_wcslen): Define only when needed.
10963 (local_strnlen, local_wcsnlen): New functions.
10964 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
10965 directives that involve a conversion ourselves.
10966 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
10967 wcsnlen, mbrtowc, wcrtomb.
10968 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
10969 * tests/test-vasprintf-posix.c (test_function): Likewise.
10970 * tests/test-snprintf-posix.h (test_function): Likewise.
10971 * tests/test-sprintf-posix.h (test_function): Likewise.
10972 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10974 2009-02-22 Bruno Haible <bruno@clisp.org>
10976 Implement new clarified decomposition of Hangul syllables.
10977 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
10978 of type LTV, return only a pairwise decomposition.
10979 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
10981 * tests/uninorm/test-decomposition.c (main): Updated expected result.
10982 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
10983 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
10985 2009-02-22 Bruno Haible <bruno@clisp.org>
10987 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
10988 zero-length results and shrink excess allocated memory.
10989 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
10990 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
10991 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
10992 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
10993 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
10994 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
10995 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
10996 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
10997 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
10998 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
10999 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
11000 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
11002 2009-02-21 Bruno Haible <bruno@clisp.org>
11004 * doc/gnulib.texi: Include safe-alloc.texi earlier.
11005 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
11006 spaces after a period. Put a space between a macro name and its
11007 argument list. Trivial rewordings.
11008 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
11009 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
11010 (main): Return 0 explicitly.
11012 2009-02-21 Bruno Haible <bruno@clisp.org>
11014 Tests for module 'uninorm/filter'.
11015 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
11016 * modules/uninorm/filter-tests: New file.
11018 New module 'uninorm/filter'.
11019 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
11020 uninorm_filter_flush, uninorm_filter_free): New declarations.
11021 * lib/uninorm/uninorm-filter.c: New file.
11022 * modules/uninorm/filter: New file.
11024 2009-02-21 Bruno Haible <bruno@clisp.org>
11026 Tests for module 'uninorm/nfkc'.
11027 * tests/uninorm/test-nfkc.c: New file.
11028 * tests/uninorm/test-u8-nfkc.c: New file.
11029 * tests/uninorm/test-u16-nfkc.c: New file.
11030 * tests/uninorm/test-u32-nfkc.c: New file.
11031 * tests/uninorm/test-u32-nfkc-big.sh: New file.
11032 * tests/uninorm/test-u32-nfkc-big.c: New file.
11033 * modules/uninorm/nfkc-tests: New file.
11035 New module 'uninorm/nfkc'.
11036 * lib/uninorm/nfkc.c: New file.
11037 * modules/uninorm/nfkc: New file.
11039 Tests for module 'uninorm/nfkd'.
11040 * tests/uninorm/test-nfkd.c: New file.
11041 * tests/uninorm/test-u8-nfkd.c: New file.
11042 * tests/uninorm/test-u16-nfkd.c: New file.
11043 * tests/uninorm/test-u32-nfkd.c: New file.
11044 * tests/uninorm/test-u32-nfkd-big.sh: New file.
11045 * tests/uninorm/test-u32-nfkd-big.c: New file.
11046 * modules/uninorm/nfkd-tests: New file.
11048 New module 'uninorm/nfkd'.
11049 * lib/uninorm/nfkd.c: New file.
11050 * modules/uninorm/nfkd: New file.
11052 Tests for module 'uninorm/nfc'.
11053 * tests/uninorm/test-nfc.c: New file.
11054 * tests/uninorm/test-u8-nfc.c: New file.
11055 * tests/uninorm/test-u16-nfc.c: New file.
11056 * tests/uninorm/test-u32-nfc.c: New file.
11057 * tests/uninorm/test-u32-nfc-big.sh: New file.
11058 * tests/uninorm/test-u32-nfc-big.c: New file.
11059 * modules/uninorm/nfc-tests: New file.
11061 New module 'uninorm/nfc'.
11062 * lib/uninorm/nfc.c: New file.
11063 * modules/uninorm/nfc: New file.
11065 Tests for module 'uninorm/nfd'.
11066 * tests/uninorm/test-nfd.c: New file.
11067 * tests/uninorm/test-u8-nfd.c: New file.
11068 * tests/uninorm/test-u16-nfd.c: New file.
11069 * tests/uninorm/test-u32-nfd.c: New file.
11070 * tests/uninorm/test-u32-nfd-big.sh: New file.
11071 * tests/uninorm/test-u32-nfd-big.c: New file.
11072 * tests/uninorm/test-u32-normalize-big.h: New file.
11073 * tests/uninorm/test-u32-normalize-big.c: New file.
11074 * tests/uninorm/NormalizationTest.txt: New file, created from
11075 Unicode 5.1.0 NormalizationTest.txt.
11076 * modules/uninorm/nfd-tests: New file.
11078 New module 'uninorm/nfd'.
11079 * lib/uninorm/nfd.c: New file.
11080 * modules/uninorm/nfd: New file.
11082 New module 'uninorm/u32-normalize'.
11083 * lib/uninorm/u32-normalize.c: New file.
11084 * modules/uninorm/u32-normalize: New file.
11086 New module 'uninorm/u16-normalize'.
11087 * lib/uninorm/u16-normalize.c: New file.
11088 * modules/uninorm/u16-normalize: New file.
11090 New module 'uninorm/u8-normalize'.
11091 * lib/uninorm/u8-normalize.c: New file.
11092 * lib/uninorm/normalize-internal.h: New file.
11093 * lib/uninorm/u-normalize-internal.h: New file.
11094 * modules/uninorm/u8-normalize: New file.
11096 New module 'uninorm/decompose-internal'.
11097 * lib/uninorm/decompose-internal.c: New file.
11098 * modules/uninorm/decompose-internal: New file.
11100 Tests for module 'uninorm/composition'.
11101 * tests/uninorm/test-composition.c: New file.
11102 * modules/uninorm/composition-tests: New file.
11104 New module 'uninorm/composition'.
11105 * lib/uninorm/composition.c: New file.
11106 * lib/uninorm/composition-table.gperf: New file, generated by
11108 * modules/uninorm/composition: New file.
11110 Tests for module 'uninorm/compat-decomposition'.
11111 * tests/uninorm/test-compat-decomposition.c: New file.
11112 * modules/uninorm/compat-decomposition-tests: New file.
11114 New module 'uninorm/compat-decomposition'.
11115 * lib/uninorm/decompose-internal.h: New file.
11116 * lib/uninorm/compat-decomposition.c: New file.
11117 * modules/uninorm/compat-decomposition: New file.
11119 Tests for module 'uninorm/canonical-decomposition'.
11120 * tests/uninorm/test-canonical-decomposition.c: New file.
11121 * modules/uninorm/canonical-decomposition-tests: New file.
11123 New module 'uninorm/canonical-decomposition'.
11124 * lib/uninorm/canonical-decomposition.c: New file.
11125 * modules/uninorm/canonical-decomposition: New file.
11127 Tests for module 'uninorm/decomposition'.
11128 * tests/uninorm/test-decomposition.c: New file.
11129 * modules/uninorm/decomposition-tests: New file.
11131 New module 'uninorm/decomposition'.
11132 * lib/uninorm/decomposition.c: New file.
11133 * modules/uninorm/decomposition: New file.
11135 New module 'uninorm/decomposition-table'.
11136 * lib/uninorm/decomposition-table.h: New file.
11137 * lib/uninorm/decomposition-table.c: New file.
11138 * lib/uninorm/decomposition-table1.h: New file, generated by
11140 * lib/uninorm/decomposition-table2.h: New file, generated by
11142 * modules/uninorm/decomposition-table: New file.
11144 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
11145 (UC_DECOMP_*): New enumeration items.
11146 (get_decomposition): New function.
11147 (struct decomp_table): New type.
11148 (output_decomposition, output_decomposition_tables): New functions.
11149 (unicode_composition_exclusions): New variable.
11150 (fill_composition_exclusions, debug_output_composition_tables): New
11152 (main): Accept one more argument. Invoke fill_composition_exclusions.
11153 Output decomposition and composition tables.
11155 New module 'uninorm/base'.
11156 * lib/uninorm.h: New file.
11157 * lib/unictype.h: Update comment.
11158 * modules/uninorm/base: New file.
11160 2009-02-21 David Lutterkort <lutter@redhat.com>
11162 Tests for module 'safe-alloc'.
11163 * tests/test-safe-alloc.c: New file.
11164 * modules/safe-alloc-tests: New file.
11166 New module 'safe-alloc'.
11167 * lib/safe-alloc.h: New file.
11168 * lib/safe-alloc.c: New file.
11169 * m4/safe-alloc.m4: New file.
11170 * modules/safe-alloc: New file.
11171 * doc/safe-alloc.texi: New file.
11172 * doc/gnulib.texi: Include it.
11173 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
11176 2009-02-18 Bruno Haible <bruno@clisp.org>
11178 Fix link error on non-glibc systems.
11179 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
11181 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11183 2009-02-18 Jim Meyering <meyering@redhat.com>
11185 fts: avoid used-uninitialized error due to recent change
11186 * lib/fts.c (fts_read): Guard uses of the new member,
11187 parent->fts_n_dirs_remaining, since it's not relevant for
11188 the parent of a directory specified on the command-line.
11190 2009-02-17 James Youngman <jay@gnu.org>
11191 Bruno Haible <bruno@clisp.org>
11193 * m4/include_next.m4: Reformulate comment.
11195 2009-02-16 Jim Meyering <meyering@redhat.com>
11197 fts: add #if guards so that the fts_lgpl module still builds
11198 * lib/fts.c: Guard just-added hash-table-using parts with
11199 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
11200 Reported by Simon Josefsson.
11202 2009-02-15 Bruno Haible <bruno@clisp.org>
11204 * modules/array-mergesort-tests: New file.
11205 * tests/test-array-mergesort.c: New file.
11207 New module 'array-mergesort'.
11208 * modules/array-mergesort: New file.
11209 * lib/array-mergesort.h: New file.
11211 2009-02-15 Bruno Haible <bruno@clisp.org>
11213 Fix 2009-02-07 commit.
11214 * lib/gen-uni-tables.c (output_predicate, output_category,
11215 output_combclass, output_bidi_category, output_decimal_digit,
11216 output_digit, output_numeric, output_mirror, output_scripts,
11217 output_ident_category, output_simple_mapping): Fix format directives.
11218 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
11220 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
11222 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
11223 fixes are available from IBM.
11225 2009-02-13 Jim Meyering <meyering@redhat.com>
11227 fts: arrange not to stat non-directories in more cases
11228 This makes GNU find (when it doesn't need to stat each file)
11229 *much* more efficient at traversing reiserfs file systems.
11230 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
11231 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
11232 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
11233 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
11234 (leaf_optimization_applies): New function.
11235 (LCO_hash, LCO_compare): New helper functions.
11236 (link_count_optimize_ok): New function.
11237 (fts_stat): Initialize new member (if dir).
11238 (fts_read): Decrement parent's fts_n_dirs_remaining count if
11239 we've just stat'ed a directory. Skip the stat call when possible.
11241 Note this AFS-related exchange:
11242 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
11243 and note find's pioctl call in find/fstype.c.
11244 But that is necessary only if you want to enable the
11245 optimization for AFS, and for now, I don't.
11247 fts: move a function definition "up" (no semantic change)
11248 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
11249 "up" to precede upcoming use of a related function.
11251 2009-02-11 Jim Meyering <meyering@redhat.com>
11253 fts: correct internal computation of nlinks (optimization-related)
11254 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
11255 whether the current entry is a directory, so don't test it.
11257 2009-02-10 Bruno Haible <bruno@clisp.org>
11259 Tests for module 'uniwbrk/ulc-wordbreaks'.
11260 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
11261 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
11262 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
11264 Tests for module 'uniwbrk/u32-wordbreaks'.
11265 * modules/uniwbrk/u32-wordbreaks-tests: New file.
11266 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
11268 Tests for module 'uniwbrk/u16-wordbreaks'.
11269 * modules/uniwbrk/u16-wordbreaks-tests: New file.
11270 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
11272 Tests for module 'uniwbrk/u8-wordbreaks'.
11273 * modules/uniwbrk/u8-wordbreaks-tests: New file.
11274 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
11276 2009-02-10 Bruno Haible <bruno@clisp.org>
11278 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
11280 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
11281 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
11282 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
11284 2009-02-10 Simon Josefsson <simon@josefsson.org>
11286 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
11287 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
11289 2009-02-10 Bruno Haible <bruno@clisp.org>
11291 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
11292 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
11293 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
11294 * lib/unilbrk/u8-possible-linebreaks.c: Update.
11295 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
11296 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
11298 2009-02-09 Simon Josefsson <simon@josefsson.org>
11300 * lib/sockets.h (gl_fd_to_handle): New function.
11302 * tests/test-sockets.c: Call gl_fd_to_handle.
11304 2009-02-09 Bruno Haible <bruno@clisp.org>
11306 * doc/havelib.texi: Document the conventions on bi-arch systems.
11308 2009-02-08 Bruno Haible <bruno@clisp.org>
11310 Document the AC_LIB_LINKFLAGS macro.
11311 * doc/havelib.texi: New file, mostly written on 2005-05-24.
11312 * doc/gnulib.texi: Include it.
11314 2009-02-08 Bruno Haible <bruno@clisp.org>
11316 Fix wrong order of sections, compared to TOC.
11317 * doc/gnulib.texi: Include relocatable-maint.texi after the
11318 "Regular expressions" node, not before.
11320 2009-02-08 Bruno Haible <bruno@clisp.org>
11322 Tests for module 'unicase/totitle'.
11323 * modules/unicase/totitle-tests: New file.
11325 Tests for module 'unicase/tolower'.
11326 * modules/unicase/tolower-tests: New file.
11328 Tests for module 'unicase/toupper'.
11329 * modules/unicase/toupper-tests: New file.
11330 * tests/unicase/test-mapping-part1.h: New file.
11331 * tests/unicase/test-mapping-part2.h: New file.
11333 New module 'unicase/totitle'.
11334 * modules/unicase/totitle: New file.
11335 * lib/unicase/totitle.c: New file.
11337 New module 'unicase/tolower'.
11338 * modules/unicase/tolower: New file.
11339 * lib/unicase/tolower.c: New file.
11341 New module 'unicase/toupper'.
11342 * modules/unicase/toupper: New file.
11343 * lib/unicase/toupper.c: New file.
11344 * lib/unicase/simple-mapping.h: New file.
11346 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
11347 (mapping_table): New structure.
11348 (output_simple_mapping): New function.
11349 (main): Invoke output_simple_mapping_test and output_simple_mapping.
11350 * modules/gen-uni-tables (Description): Update.
11351 * lib/unicase/toupper.h: New file, automatically generated by
11353 * lib/unicase/tolower.h: New file, automatically generated by
11355 * lib/unicase/totitle.h: New file, automatically generated by
11357 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
11359 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
11361 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
11364 New module 'unicase/base'.
11365 * modules/unicase/base: New file.
11366 * lib/unicase.h: New file.
11368 2009-02-08 Bruno Haible <bruno@clisp.org>
11370 New module 'uniwbrk/ulc-wordbreaks'.
11371 * modules/uniwbrk/ulc-wordbreaks: New file.
11372 * lib/uniwbrk/ulc-wordbreaks.c: New file.
11374 New module 'uniwbrk/u32-wordbreaks'.
11375 * modules/uniwbrk/u32-wordbreaks: New file.
11376 * lib/uniwbrk/u32-wordbreaks.c: New file.
11378 New module 'uniwbrk/u16-wordbreaks'.
11379 * modules/uniwbrk/u16-wordbreaks: New file.
11380 * lib/uniwbrk/u16-wordbreaks.c: New file.
11382 New module 'uniwbrk/u8-wordbreaks'.
11383 * modules/uniwbrk/u8-wordbreaks: New file.
11384 * lib/uniwbrk/u8-wordbreaks.c: New file.
11385 * lib/uniwbrk/u-wordbreaks.h: New file.
11387 New module 'uniwbrk/table'.
11388 * modules/uniwbrk/table: New file.
11389 * lib/uniwbrk/wbrktable.h: New file.
11390 * lib/uniwbrk/wbrktable.c: New file.
11392 New module 'uniwbrk/wordbreak-property'.
11393 * modules/uniwbrk/wordbreak-property: New file.
11394 * lib/uniwbrk/wordbreak-property.c: New file.
11396 * lib/gen-uni-tables.c (WBP_*): New enum items.
11397 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
11398 (unicode_org_wbp): New variable.
11399 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
11401 (wbp_table): New structure.
11402 (output_wbp, output_wbrk_tables): New functions.
11403 (main): Accept additional argument. Invoke fill_org_wbp,
11404 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
11405 output_wbrk_tables.
11406 * modules/gen-uni-tables (Description): Update.
11407 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
11410 New module 'uniwbrk/base'.
11411 * modules/uniwbrk/base: New file.
11412 * lib/uniwbrk.h: New file.
11414 2009-02-08 Bruno Haible <bruno@clisp.org>
11416 Update to Unicode 5.1.0.
11417 * lib/gen-uni-tables.c (is_property_alphabetic): Include
11419 (is_property_default_ignorable_code_point): Don't include characters
11420 of category Cc or Cs and not-a-characters.
11421 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
11422 U+0D79, U+109E, U+109F, U+A60C.
11423 * lib/unictype/bidi_of.h: Regenerated.
11424 * lib/unictype/blocks.h: Regenerated.
11425 * lib/unictype/categ_C.h: Regenerated.
11426 * lib/unictype/categ_Cf.h: Regenerated.
11427 * lib/unictype/categ_Cn.h: Regenerated.
11428 * lib/unictype/categ_L.h: Regenerated.
11429 * lib/unictype/categ_Ll.h: Regenerated.
11430 * lib/unictype/categ_Lm.h: Regenerated.
11431 * lib/unictype/categ_Lo.h: Regenerated.
11432 * lib/unictype/categ_Lu.h: Regenerated.
11433 * lib/unictype/categ_M.h: Regenerated.
11434 * lib/unictype/categ_Mc.h: Regenerated.
11435 * lib/unictype/categ_Me.h: Regenerated.
11436 * lib/unictype/categ_Mn.h: Regenerated.
11437 * lib/unictype/categ_N.h: Regenerated.
11438 * lib/unictype/categ_Nd.h: Regenerated.
11439 * lib/unictype/categ_Nl.h: Regenerated.
11440 * lib/unictype/categ_No.h: Regenerated.
11441 * lib/unictype/categ_P.h: Regenerated.
11442 * lib/unictype/categ_Pd.h: Regenerated.
11443 * lib/unictype/categ_Pe.h: Regenerated.
11444 * lib/unictype/categ_Pf.h: Regenerated.
11445 * lib/unictype/categ_Pi.h: Regenerated.
11446 * lib/unictype/categ_Po.h: Regenerated.
11447 * lib/unictype/categ_Ps.h: Regenerated.
11448 * lib/unictype/categ_S.h: Regenerated.
11449 * lib/unictype/categ_Sk.h: Regenerated.
11450 * lib/unictype/categ_Sm.h: Regenerated.
11451 * lib/unictype/categ_So.h: Regenerated.
11452 * lib/unictype/categ_of.h: Regenerated.
11453 * lib/unictype/combining.h: Regenerated.
11454 * lib/unictype/ctype_alnum.h: Regenerated.
11455 * lib/unictype/ctype_alpha.h: Regenerated.
11456 * lib/unictype/ctype_graph.h: Regenerated.
11457 * lib/unictype/ctype_lower.h: Regenerated.
11458 * lib/unictype/ctype_print.h: Regenerated.
11459 * lib/unictype/ctype_punct.h: Regenerated.
11460 * lib/unictype/ctype_upper.h: Regenerated.
11461 * lib/unictype/decdigit.h: Regenerated.
11462 * lib/unictype/digit.h: Regenerated.
11463 * lib/unictype/mirror.h: Regenerated.
11464 * lib/unictype/numeric.h: Regenerated.
11465 * lib/unictype/pr_alphabetic.h: Regenerated.
11466 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
11467 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
11468 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
11469 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
11470 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
11471 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
11472 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
11473 * lib/unictype/pr_combining.h: Regenerated.
11474 * lib/unictype/pr_dash.h: Regenerated.
11475 * lib/unictype/pr_decimal_digit.h: Regenerated.
11476 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
11477 * lib/unictype/pr_deprecated.h: Regenerated.
11478 * lib/unictype/pr_diacritic.h: Regenerated.
11479 * lib/unictype/pr_extender.h: Regenerated.
11480 * lib/unictype/pr_format_control.h: Regenerated.
11481 * lib/unictype/pr_grapheme_base.h: Regenerated.
11482 * lib/unictype/pr_grapheme_extend.h: Regenerated.
11483 * lib/unictype/pr_grapheme_link.h: Regenerated.
11484 * lib/unictype/pr_id_continue.h: Regenerated.
11485 * lib/unictype/pr_id_start.h: Regenerated.
11486 * lib/unictype/pr_ideographic.h: Regenerated.
11487 * lib/unictype/pr_ignorable_control.h: Regenerated.
11488 * lib/unictype/pr_lowercase.h: Regenerated.
11489 * lib/unictype/pr_math.h: Regenerated.
11490 * lib/unictype/pr_numeric.h: Regenerated.
11491 * lib/unictype/pr_other_alphabetic.h: Regenerated.
11492 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
11493 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
11494 * lib/unictype/pr_other_id_continue.h: Regenerated.
11495 * lib/unictype/pr_other_lowercase.h: Regenerated.
11496 * lib/unictype/pr_other_math.h: Regenerated.
11497 * lib/unictype/pr_punctuation.h: Regenerated.
11498 * lib/unictype/pr_sentence_terminal.h: Regenerated.
11499 * lib/unictype/pr_soft_dotted.h: Regenerated.
11500 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
11501 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
11502 * lib/unictype/pr_unified_ideograph.h: Regenerated.
11503 * lib/unictype/pr_uppercase.h: Regenerated.
11504 * lib/unictype/pr_xid_continue.h: Regenerated.
11505 * lib/unictype/pr_xid_start.h: Regenerated.
11506 * lib/unictype/pr_zero_width.h: Regenerated.
11507 * lib/unictype/scripts.h: Regenerated.
11508 * lib/unictype/scripts_byname.gperf: Regenerated.
11509 * lib/unictype/sy_java_ident.h: Regenerated.
11510 * lib/unilbrk/lbrkprop1.h: Regenerated.
11511 * lib/unilbrk/lbrkprop2.h: Regenerated.
11512 * tests/unictype/test-categ_C.c: Regenerated.
11513 * tests/unictype/test-categ_Cf.c: Regenerated.
11514 * tests/unictype/test-categ_Cn.c: Regenerated.
11515 * tests/unictype/test-categ_L.c: Regenerated.
11516 * tests/unictype/test-categ_Ll.c: Regenerated.
11517 * tests/unictype/test-categ_Lm.c: Regenerated.
11518 * tests/unictype/test-categ_Lo.c: Regenerated.
11519 * tests/unictype/test-categ_Lu.c: Regenerated.
11520 * tests/unictype/test-categ_M.c: Regenerated.
11521 * tests/unictype/test-categ_Mc.c: Regenerated.
11522 * tests/unictype/test-categ_Me.c: Regenerated.
11523 * tests/unictype/test-categ_Mn.c: Regenerated.
11524 * tests/unictype/test-categ_N.c: Regenerated.
11525 * tests/unictype/test-categ_Nd.c: Regenerated.
11526 * tests/unictype/test-categ_Nl.c: Regenerated.
11527 * tests/unictype/test-categ_No.c: Regenerated.
11528 * tests/unictype/test-categ_P.c: Regenerated.
11529 * tests/unictype/test-categ_Pd.c: Regenerated.
11530 * tests/unictype/test-categ_Pe.c: Regenerated.
11531 * tests/unictype/test-categ_Pf.c: Regenerated.
11532 * tests/unictype/test-categ_Pi.c: Regenerated.
11533 * tests/unictype/test-categ_Po.c: Regenerated.
11534 * tests/unictype/test-categ_Ps.c: Regenerated.
11535 * tests/unictype/test-categ_S.c: Regenerated.
11536 * tests/unictype/test-categ_Sk.c: Regenerated.
11537 * tests/unictype/test-categ_Sm.c: Regenerated.
11538 * tests/unictype/test-categ_So.c: Regenerated.
11539 * tests/unictype/test-ctype_alnum.c: Regenerated.
11540 * tests/unictype/test-ctype_alpha.c: Regenerated.
11541 * tests/unictype/test-ctype_graph.c: Regenerated.
11542 * tests/unictype/test-ctype_lower.c: Regenerated.
11543 * tests/unictype/test-ctype_print.c: Regenerated.
11544 * tests/unictype/test-ctype_punct.c: Regenerated.
11545 * tests/unictype/test-ctype_upper.c: Regenerated.
11546 * tests/unictype/test-decdigit.h: Regenerated.
11547 * tests/unictype/test-digit.h: Regenerated.
11548 * tests/unictype/test-numeric.h: Regenerated.
11549 * tests/unictype/test-pr_alphabetic.c: Regenerated.
11550 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
11551 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
11552 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
11553 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
11554 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
11555 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
11556 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
11557 * tests/unictype/test-pr_combining.c: Regenerated.
11558 * tests/unictype/test-pr_dash.c: Regenerated.
11559 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
11560 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
11561 * tests/unictype/test-pr_deprecated.c: Regenerated.
11562 * tests/unictype/test-pr_diacritic.c: Regenerated.
11563 * tests/unictype/test-pr_extender.c: Regenerated.
11564 * tests/unictype/test-pr_format_control.c: Regenerated.
11565 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
11566 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
11567 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
11568 * tests/unictype/test-pr_id_continue.c: Regenerated.
11569 * tests/unictype/test-pr_id_start.c: Regenerated.
11570 * tests/unictype/test-pr_ideographic.c: Regenerated.
11571 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
11572 * tests/unictype/test-pr_lowercase.c: Regenerated.
11573 * tests/unictype/test-pr_math.c: Regenerated.
11574 * tests/unictype/test-pr_numeric.c: Regenerated.
11575 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
11576 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
11578 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
11579 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
11580 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
11581 * tests/unictype/test-pr_other_math.c: Regenerated.
11582 * tests/unictype/test-pr_punctuation.c: Regenerated.
11583 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
11584 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
11585 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
11586 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
11587 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
11588 * tests/unictype/test-pr_uppercase.c: Regenerated.
11589 * tests/unictype/test-pr_xid_continue.c: Regenerated.
11590 * tests/unictype/test-pr_xid_start.c: Regenerated.
11591 * tests/unictype/test-pr_zero_width.c: Regenerated.
11593 Update to Unicode 5.1.0.
11594 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
11595 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
11596 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
11597 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
11598 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
11599 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
11600 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
11601 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
11602 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
11603 (nonspacing_table_ind): Update.
11604 * tests/uniwidth/test-uc_width2.sh: Update expected result.
11606 Update to Unicode 5.1.0.
11607 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
11609 * lib/uniname/uniname.c (unicode_character_name,
11610 unicode_name_character): Add the range 0x1Fxxx to the code transform.
11611 * lib/uniname/uninames.h: Regenerated.
11612 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
11614 2009-02-07 Bruno Haible <bruno@clisp.org>
11616 Merge gen-ctype and gen-lbrk into a single program.
11617 * lib/gen-uni-tables.c: New file, incorporating
11618 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
11619 Add directory prefixes to the names of the generated files.
11620 * lib/unictype/gen-ctype.c: Remove file.
11621 * lib/unilbrk/gen-lbrk.c: Remove file.
11622 * modules/gen-uni-tables: New file.
11623 * modules/unictype/gen-ctype: Remove file.
11624 * modules/unilbrk/gen-lbrk: Remove file.
11626 2009-02-07 Bruno Haible <bruno@clisp.org>
11628 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
11630 New module 'unistr/u32-strcoll'.
11631 * modules/unistr/u32-strcoll: New file.
11632 * lib/unistr/u32-strcoll.c: New file.
11634 New module 'unistr/u16-strcoll'.
11635 * modules/unistr/u16-strcoll: New file.
11636 * lib/unistr/u16-strcoll.c: New file.
11638 New module 'unistr/u8-strcoll'.
11639 * modules/unistr/u8-strcoll: New file.
11640 * lib/unistr/u8-strcoll.c: New file.
11641 * lib/unistr/u-strcoll.h: New file.
11643 2009-02-07 Bruno Haible <bruno@clisp.org>
11645 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
11646 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
11647 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
11648 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
11649 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
11650 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
11652 2009-02-07 Bruno Haible <bruno@clisp.org>
11655 * lib/unictype/gen-ctype.c (output_predicate, output_category,
11656 output_combclass, output_bidi_category, output_decimal_digit,
11657 output_digit, output_numeric, output_mirror, output_scripts,
11658 output_ident_category): Use proper width specifier in format strings.
11660 2009-02-07 Bruno Haible <bruno@clisp.org>
11662 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
11665 2009-02-07 Jim Meyering <meyering@redhat.com>
11667 regex: avoid compilation failure with upcoming gcc-4.4
11668 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
11669 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
11670 "... error: integer overflow in preprocessor expression".
11672 2009-02-05 Ben Pfaff <blp@gnu.org>
11674 Fix link errors on Windows when close module is used.
11675 * modules/close: Add $(LIB_CLOSE) to Link section.
11676 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
11677 $(LIB_CLOSE) on Windows.
11679 2009-02-05 Jim Meyering <meyering@redhat.com>
11681 still avoid unused-parameter warnings, but do it cleanly
11682 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
11683 (get_fs_usage): Cast to void instead.
11684 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
11685 (dev_from_mount_options, read_file_system_list): Cast to void.
11686 Prompted by Bruno Haible.
11688 2009-02-04 Jim Meyering <meyering@redhat.com>
11690 fsusage.c: correct copyright year
11691 * lib/fsusage.c: Reflect year in which the change is pushed into
11693 avoid misc. warnings
11694 * lib/fsusage.c (UNUSED_PARAM): Define.
11695 (get_fs_usage): Mark parameter "disk" as unused.
11696 * lib/getugroups.c (getgrent): Use "void" in prototype.
11697 * lib/mountlist.c: Mark unused parameters.
11698 (read_file_system_list): Declare a local with "const".
11699 * lib/nanosleep.c (getnow): Declare static.
11700 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
11702 dirfd: set errno upon failure
11703 * lib/dirfd.c: Include <errno.h>.
11704 Set errno to ENOTSUP when returning -1.
11705 * modules/dirfd (Depends-on): Add errno.
11706 Suggested by John Kodis <kodis@comcast.net>.
11708 2009-02-01 Bruno Haible <bruno@clisp.org>
11710 Don't assume sizeof (long) >= sizeof (void *).
11711 * lib/memcmp.c: Include stdint.h.
11712 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
11713 srcp2 to 'const byte *'.
11714 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
11715 types to uintptr_t.
11716 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
11717 * modules/memcmp (Depends-on): Add stdint.
11718 Reported by Ozkan Sezer <sezeroz@gmail.com>.
11720 2009-01-30 Eric Blake <ebb9@byu.net>
11722 fix more require-before-expand issues
11723 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
11724 expand, AC_PROG_AWK.
11725 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
11727 2009-01-28 Eric Blake <ebb9@byu.net>
11729 version-etc: use consistent URL formatting
11730 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
11731 Improve formatting. Use fputs for string without %.
11733 2009-01-28 Jim Meyering <meyering@redhat.com>
11735 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
11736 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
11737 "underquoted definition of NAME" from autoconf-2.59.
11739 2009-01-28 Bruno Haible <bruno@clisp.org>
11741 * doc/gnulib.texi: Add "Obsolete modules" to index.
11743 2009-01-28 Jim Meyering <meyering@redhat.com>
11745 useless-if-before-free: recognize more variants
11746 * build-aux/useless-if-before-free: Also recognize e.g.,
11747 if (NULL != p) free (p);
11749 2009-01-27 Mark McLoughlin <markmc@redhat.com>
11751 test-getaddrinfo: skip (don't fail) this test when there's no network
11752 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
11753 on the presumption that it means you lack network access.
11755 2009-01-26 Jim Meyering <meyering@redhat.com>
11757 fflush: avoid warnings on modern systems
11758 * lib/fflush.c (rpl_fflush): Move declarations of locals,
11759 pos and result, into scopes where they're used.
11761 2009-01-26 Eric Blake <ebb9@byu.net>
11763 Silence warning reintroduced by recent extensions patch.
11764 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
11765 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
11768 Backport improved autoconf semantics of AC_DEFUN_ONCE.
11769 * m4/00gnulib.m4: New file.
11770 * gnulib-tool (func_get_filelist): Always use it.
11771 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
11772 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
11774 2009-01-25 Bruno Haible <bruno@clisp.org>
11776 Make test-quotearg work on MacOS X and AIX.
11777 * tests/test-quotearg.sh: New file.
11778 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
11779 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
11780 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
11781 include <libintl.h>.
11782 (fake_locale): Remove variable.
11783 (gettext, dgettext, dcgettext): Remove functions.
11784 (main): Instead of setting a fake locale, set a real locale. Call
11785 textdomain and bindtextdomain.
11786 * modules/quotearg-tests (Files): Add the new files.
11787 (Depends-on): Add gettext, setenv, unsetenv.
11788 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
11789 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
11790 Augment TESTS_ENVIRONMENT.
11792 2009-01-25 Bruno Haible <bruno@clisp.org>
11794 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
11795 fr_FR.ISO8859-1 locale on MacOS X.
11796 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
11797 ja_JP.eucJP locale on MacOS X.
11798 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
11799 zh_CN.GB18030 locale on MacOS X.
11801 2009-01-25 Bruno Haible <bruno@clisp.org>
11803 Avoid link errors on MacOS X 10.3.
11804 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
11805 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
11807 2009-01-25 Bruno Haible <bruno@clisp.org>
11809 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
11810 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
11811 * modules/pipe (Files): Remove m4/posix_spawn.m4.
11812 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
11813 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
11814 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
11815 posix_spawnattr_init, posix_spawnattr_setsigmask,
11816 posix_spawnattr_setflags, posix_spawnattr_destroy.
11818 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
11819 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
11820 * modules/execute (Files): Remove m4/posix_spawn.m4.
11821 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
11822 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
11823 posix_spawnattr_init, posix_spawnattr_setsigmask,
11824 posix_spawnattr_setflags, posix_spawnattr_destroy.
11826 2009-01-25 Bruno Haible <bruno@clisp.org>
11828 * lib/glthread/threadlib.c: Include <stdlib.h>.
11830 2009-01-25 Bruno Haible <bruno@clisp.org>
11832 * lib/glthread/threadlib.c (dummy): New declaration.
11834 2009-01-25 Bruno Haible <bruno@clisp.org>
11836 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
11837 multibyte characters also for the GB18030 encoding. Don't crash when
11838 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
11840 2009-01-25 Bruno Haible <bruno@clisp.org>
11842 Avoid redefining 'struct random_data' on OSF/1 5.1.
11843 * lib/stdlib.in.h: Include <random.h> if it exists.
11844 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
11845 HAVE_RANDOM_H. Include <random.h> when testing whether
11846 'struct random_data' exists.
11847 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
11849 2009-01-25 Bruno Haible <bruno@clisp.org>
11851 Don't install charset.alias on MacOS X >= 10.3.
11852 * lib/localcharset.c (DARWIN7): New macro.
11853 (get_charset_aliases): Hardcode the result for Darwin7.
11854 * modules/localcharset (install-exec-local): Don't install
11855 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
11857 2009-01-25 Bruno Haible <bruno@clisp.org>
11859 Don't install charset.alias on mingw and Cygwin.
11860 * modules/localcharset (install-exec-local): Don't install
11861 charset.alias on mingw and Cygwin, if the file does not yet exist.
11862 The result for these platforms is hardcoded in localcharset.c.
11864 2009-01-25 Bruno Haible <bruno@clisp.org>
11866 Make it possible again to use AC_GNU_SOURCE together with gnulib.
11867 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
11868 before requiring AC_USE_SYSTEM_EXTENSIONS.
11870 2009-01-25 Jim Meyering <meyering@redhat.com>
11872 c-strtod: avoid warnings
11873 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
11874 "assignment discards qualifiers from pointer target type" warnings.
11876 2009-01-24 Bruno Haible <bruno@clisp.org>
11878 Add support for non-UTF-8 locales on MacOS X.
11879 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
11880 canonical encodings. For Darwin 7 and newer, don't map traditional
11881 encodings to UTF-8.
11882 Reported by Vincent Lefevre <vincent@vinc17.org>
11883 at <http://savannah.gnu.org/bugs/?25235>.
11885 2009-01-24 Bruno Haible <bruno@clisp.org>
11887 * doc/gnulib.texi (Obsolete modules): New section.
11888 Reported by Mike Frysinger <vapier@gentoo.org>.
11890 2009-01-24 Bruno Haible <bruno@clisp.org>
11892 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
11895 2009-01-24 Bruno Haible <bruno@clisp.org>
11897 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
11898 Reported by Eric Blake.
11900 2009-01-24 Bruno Haible <bruno@clisp.org>
11902 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
11903 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
11904 Reported by Gary V. Vaughan <gary@gnu.org>.
11906 2009-01-24 Bruno Haible <bruno@clisp.org>
11908 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
11910 2009-01-23 Bruno Haible <bruno@clisp.org>
11912 Make c-strtod, c-strtold usable in libraries.
11913 * lib/c-strtod.c: Include string.h instead of xalloc.h.
11914 (C_STRTOD): Call strdup instead of xstrdup.
11915 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
11916 * modules/c-strtold (Depends-on): Likewise.
11917 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
11918 * NEWS: Mention the change.
11919 Reported by Michael Gold <mgold@ncf.ca>.
11921 2009-01-23 Jim Meyering <meyering@redhat.com>
11923 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
11924 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
11925 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
11927 2009-01-23 Simon Josefsson <simon@josefsson.org>
11929 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
11931 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
11932 * modules/version-etc (Description): Update.
11934 2009-01-22 Bruno Haible <bruno@clisp.org>
11936 Cache the C locale object.
11937 * lib/c-strtod.c (c_locale_cache): New variable.
11938 (c_locale): New function.
11939 (C_STRTOD): Use it, and don't call freelocale.
11940 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
11941 Suggested by Paolo Bonzini.
11943 2009-01-21 Bruno Haible <bruno@clisp.org>
11945 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
11946 conditions other than overflow.
11948 2009-01-21 Bruno Haible <bruno@clisp.org>
11950 * lib/c-strtod.c: Include errno.h.
11951 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
11952 value from STRTOD_L and STRTOD.
11954 2009-01-21 Bruno Haible <bruno@clisp.org>
11955 and Jim Meyering <meyering@redhat.com>
11957 nanosleep: skip configure test (fail it) for apple universal builds
11958 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
11959 universal builds, assume that nanosleep does not work.
11960 * modules/nanosleep (Depends-on): Add multiarch.
11962 mktime: skip configure test (fail it) for apple universal builds
11963 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
11964 universal builds, assume that mktime does not work.
11965 * modules/mktime (Depends-on): Add multiarch.
11967 2009-01-21 Eric Blake <ebb9@byu.net>
11969 multiarch: avoid expand-before-require warning
11970 * modules/multiarch (configure.ac): Require, rather than expand,
11972 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
11973 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
11974 enforce that all clients require it. Partial reversion of
11977 error: avoid expand-before-require warning
11978 * modules/errno (configure.ac): Require, rather than expand,
11980 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
11981 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
11982 enforce that all clients require it.
11984 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
11985 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
11986 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
11987 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
11989 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
11992 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
11994 regex: do not depend on obsolete modules.
11995 * modules/regex: Remove memcmp and memmove.
11997 2009-01-20 Bruno Haible <bruno@clisp.org>
11999 Make the 'link' module link on Windows NT 4.
12000 * lib/link.c (_WIN32_WINNT): Don't define.
12001 (CreateHardLinkFuncType): New type.
12002 (CreateHardLinkFunc, initialized): New variables.
12003 (initialize): New function.
12004 (link): Invoke CreateHardLink indirectly through the function pointer.
12006 2009-01-20 Bruno Haible <bruno@clisp.org>
12008 Fix compilation failure on mingw.
12009 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
12011 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
12013 * doc/c-strtod.texi: Mention a couple of restrictions.
12015 2009-01-20 Jim Meyering <meyering@redhat.com>
12017 gettimeofday: move more declarations out of functions
12018 * lib/gettimeofday.c: Move extern declarations of tzset and
12019 gmtime out of containing functions. Prompted by Bruno Haible.
12021 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
12023 regex: do not depend on obsolete modules.
12024 * modules/regex: Remove memcmp and memmove.
12026 2009-01-19 Bruno Haible <bruno@clisp.org>
12028 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
12029 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
12030 gl_BIGENDIAN, not AC_C_BIGENDIAN.
12031 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
12032 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
12034 2009-01-19 Bruno Haible <bruno@clisp.org>
12036 * tests/test-link.c: Include <errno.h>.
12037 (main): Exit with code 77 when a hard link cannot be created due to
12039 * tests/test-link.sh: Skip test when a hard link cannot be created due
12040 to the file system.
12041 Suggested by Eric Blake.
12043 2009-01-19 Martin Lambers <marlam@marlam.de>
12045 * modules/link-tests: New file.
12046 * tests/test-link.sh: New file.
12047 * tests/test-link.c: New file.
12049 2009-01-19 Eric Blake <ebb9@byu.net>
12051 doc: mention another function added in cygwin 1.7.0
12052 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
12053 Another new function in cygwin 1.7.
12055 2009-01-19 Bruno Haible <bruno@clisp.org>
12057 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
12058 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
12059 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
12060 gl_BIGENDIAN, not AC_C_BIGENDIAN.
12061 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
12062 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
12063 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
12064 * m4/md4.m4 (gl_MD4): Likewise.
12065 * m4/md5.m4 (gl_MD5): Likewise.
12066 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
12067 * m4/sha1.m4 (gl_SHA1): Likewise.
12068 * m4/sha256.m4 (gl_SHA256): Likewise.
12069 * m4/sha512.m4 (gl_SHA512): Likewise.
12071 2009-01-19 Bruno Haible <bruno@clisp.org>
12073 * modules/uniname/uniname-tests (Depends-on): Add progname.
12074 * tests/uniname/test-uninames.c: Include progname.h.
12075 (main): Call set_program_name.
12077 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
12078 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
12079 (main): Call set_program_name.
12081 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
12082 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
12083 (main): Call set_program_name.
12085 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
12086 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
12087 (main): Call set_program_name.
12089 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
12090 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
12091 (main): Call set_program_name.
12093 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
12094 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
12095 (main): Call set_program_name.
12097 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
12098 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
12099 (main): Call set_program_name.
12101 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
12102 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
12103 (main): Call set_program_name.
12105 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
12106 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
12107 (main): Call set_program_name.
12109 2009-01-19 Eric Blake <ebb9@byu.net>
12111 test-unistd: test previous patch
12112 * tests/test-unistd.c: Test *_FILENO macros.
12114 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
12115 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
12116 Guarantee a definition.
12117 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
12118 * modules/unistd-safer (Depends-on): Add dependency on unistd.
12119 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
12120 * lib/dup-safer.c (STDERR_FILENO): Likewise.
12121 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
12123 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
12124 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
12125 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
12127 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
12128 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
12129 (STDERR_FILENO): Likewise.
12130 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
12131 (STDERR_FILENO): Likewise.
12132 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
12133 (STDERR_FILENO): Likewise.
12134 Reported by Elbert Pol.
12136 2009-01-19 Eric Blake <ebb9@byu.net>
12138 doc: mention more functions added in cygwin 1.7.0
12139 * doc/posix-functions/abort.texi (abort): Update wording related
12141 * doc/posix-functions/daylight.texi (daylight): Likewise.
12142 * doc/posix-functions/optarg.texi (optarg): Likewise.
12143 * doc/posix-functions/optarg.texi (opterr): Likewise.
12144 * doc/posix-functions/optarg.texi (optind): Likewise.
12145 * doc/posix-functions/optarg.texi (optopt): Likewise.
12146 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
12147 worked in 1.5.x, and was withdrawn in 1.7.
12148 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
12149 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
12151 * doc/posix-functions/perror.texi (perror): Likewise.
12152 * doc/posix-functions/printf.texi (printf): Likewise.
12153 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
12154 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
12155 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12156 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12157 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
12158 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
12159 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
12161 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
12163 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
12165 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
12166 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
12168 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
12169 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
12170 * doc/posix-functions/confstr.texi (confstr): Likewise.
12171 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
12172 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
12173 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
12174 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
12175 * doc/posix-functions/fputws.texi (fputws): Likewise.
12176 * doc/posix-functions/fwide.texi (fwide): Likewise.
12177 * doc/posix-functions/getwc.texi (getwc): Likewise.
12178 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
12179 * doc/posix-functions/putwc.texi (putwc): Likewise.
12180 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
12181 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
12182 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
12183 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
12184 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
12185 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
12186 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
12187 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
12188 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
12189 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
12190 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
12192 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
12194 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
12195 * lib/ioctl.c: Include <sys/ioctl.h>.
12197 2009-01-19 Simon Josefsson <simon@josefsson.org>
12199 * modules/getdate-tests (Depends-on): Add progname.
12200 * tests/test-getdate.c: Use progname module, to avoid link errors
12201 on non-glibc systems.
12203 2009-01-18 Simon Josefsson <simon@josefsson.org>
12205 * modules/filenamecat-tests (Depends-on): Add progname.
12206 * modules/fstrcmp-tests (Depends-on): Likewise.
12208 * tests/test-filenamecat.c: Use progname module, to avoid link
12209 errors on non-glibc systems.
12210 * tests/test-fstrcmp.c: Likewise.
12212 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
12214 gettimeofday: avoid warning: nested extern declaration of 'localtime'
12215 * lib/gettimeofday.c: Move extern declaration out of function.
12217 2009-01-18 Bruno Haible <bruno@clisp.org>
12219 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
12220 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
12221 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
12223 2009-01-18 Bruno Haible <bruno@clisp.org>
12225 * lib/strftime.c (MEMPCPY): Remove unused macro.
12226 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
12228 2009-01-18 Martin Lambers <marlam@marlam.de>
12231 * lib/unistd.in.h (link): New declaration.
12232 * lib/link.c: New file.
12233 * m4/link.m4: New file.
12234 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
12236 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
12237 * modules/link: New file.
12238 * doc/posix-functions/link.texi: Mention the new module.
12240 2009-01-18 Bruno Haible <bruno@clisp.org>
12242 * tests/test-avltree_list.c (main): Call set_program_name.
12243 * tests/test-avltree_oset.c (main): Likewise.
12244 * tests/test-obstack-printf.c: Include progname.h.
12245 (main): Call set_program_name.
12246 * tests/test-quotearg.c: Include progname.h.
12247 (main): Call set_program_name.
12248 * tests/test-xmemdup0.c: Include progname.h.
12249 (main): Call set_program_name.
12251 2009-01-18 Bruno Haible <bruno@clisp.org>
12253 New module 'alphasort'.
12254 * lib/dirent.in.h (alphasort): New declaration.
12255 * lib/alphasort.c: New file, from glibc with modifications.
12256 * m4/alphasort.m4: New file.
12257 * modules/alphasort: New file.
12258 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
12260 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
12262 * doc/posix-functions/alphasort.texi: Mention the new module and the
12263 portability problems.
12265 2009-01-18 Bruno Haible <bruno@clisp.org>
12267 New module 'scandir'.
12268 * lib/dirent.in.h (scandir): New declaration.
12269 * lib/scandir.c: New file, from glibc with modifications.
12270 * m4/scandir.m4: New file.
12271 * modules/scandir: New file.
12272 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
12274 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
12276 * doc/posix-functions/scandir.texi: Mention the new module and the
12277 portability problems.
12279 2009-01-17 Bruno Haible <bruno@clisp.org>
12281 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
12282 Update documentation.
12283 (func_remove_suffix): Escape all dots in the suffix. Update
12285 (func_filter_filelist): Update documentation.
12286 Reported by Ralf Wildenhues.
12288 2009-01-17 Bruno Haible <bruno@clisp.org>
12290 * modules/dprintf-posix-tests: New file.
12291 * tests/test-dprintf-posix.sh: New file.
12292 * tests/test-dprintf-posix.c: New file.
12294 New modules 'dprintf', 'dprintf-posix'.
12295 * lib/stdio.in.h (dprintf): New declaration.
12296 * lib/dprintf.c: New file.
12297 * m4/dprintf.m4: New file.
12298 * m4/dprintf-posix.m4: New file.
12299 * modules/dprintf: New file.
12300 * modules/dprintf-posix: New file.
12301 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
12302 HAVE_DPRINTF, REPLACE_DPRINTF.
12303 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
12304 HAVE_DPRINTF, REPLACE_DPRINTF.
12305 * doc/posix-functions/dprintf.texi: Mention the new modules.
12307 2009-01-17 Bruno Haible <bruno@clisp.org>
12309 * modules/vdprintf-posix-tests: New file.
12310 * tests/test-vdprintf-posix.sh: New file.
12311 * tests/test-vdprintf-posix.c: New file.
12313 New modules 'vdprintf', 'vdprintf-posix'.
12314 * lib/stdio.in.h (vdprintf): New declaration.
12315 * lib/vdprintf.c: New file.
12316 * m4/vdprintf.m4: New file.
12317 * m4/vdprintf-posix.m4: New file.
12318 * modules/vdprintf: New file.
12319 * modules/vdprintf-posix: New file.
12320 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
12321 HAVE_VDPRINTF, REPLACE_VDPRINTF.
12322 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
12323 HAVE_VDPRINTF, REPLACE_VDPRINTF.
12324 * doc/posix-functions/vdprintf.texi: Mention the new modules.
12326 2009-01-17 Bruno Haible <bruno@clisp.org>
12328 Fix replacement of fopen on mingw.
12329 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
12332 2009-01-17 Bruno Haible <bruno@clisp.org>
12334 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
12335 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
12337 2009-01-17 Bruno Haible <bruno@clisp.org>
12339 Avoid test-fflush2.sh failure on mingw.
12340 * tests/test-fflush2.c: Include binary-io.h.
12341 (main): Put standard input into binary mode.
12342 * modules/fflush-tests (Depends-on): Add binary-io.
12344 2009-01-17 Bruno Haible <bruno@clisp.org>
12346 * lib/wchar.in.h: In another particular situation, include only the
12347 system's <wchar.h> file.
12348 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
12349 Reported by Albert Chin-A-Young <china@thewrittenword.com>
12350 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
12352 2009-01-17 Bruno Haible <bruno@clisp.org>
12354 Support for stripping executables in --enable-relocatable.
12355 * build-aux/install-reloc: Expect one more argument, or an environment
12356 variable RELOC_STRIP_PROG. If set, strip the destination program and
12358 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
12360 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
12361 to set RELOCATABLE_STRIP.
12362 * NEWS: Mention the new Makefile requirement.
12364 2009-01-17 Bruno Haible <bruno@clisp.org>
12366 * build-aux/install-reloc: Remove debugging information left over by
12367 C compiler on MacOS X.
12369 2009-01-17 Bruno Haible <bruno@clisp.org>
12371 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
12372 * lib/progreloc.c (find_executable): Fix type of pointer passed to
12373 _NSGetExecutablePath.
12375 2009-01-16 Jim Meyering <meyering@redhat.com>
12377 strerror: avoid warnings about discarding "const"
12378 * lib/strerror.c (rpl_strerror): Instead of returning a const
12379 string from each and every "case", use a variable, and add a single
12380 cast after the switch.
12382 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
12384 * lib/arpa_inet.in.h: Add extern "C" block for C++.
12386 2009-01-16 Bruno Haible <bruno@clisp.org>
12388 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
12389 array initializer syntax that also works in C++ mode.
12390 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12392 2009-01-16 Jim Meyering <meyering@redhat.com>
12394 poll: suppress a warning
12395 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
12396 to ignore "...unsigned expression < 0 is always false" warnings.
12398 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
12400 poll: remove declarations of unused variables
12401 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
12402 sockbuf and optlen.
12404 2009-01-15 Bruno Haible <bruno@clisp.org>
12406 Make fflush-after-ungetc POSIX compliant on BSD systems.
12407 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
12408 (clear_ungetc_buffer): Implement also for other systems.
12409 (rpl_fflush): On glibc systems, invoke
12410 clear_ungetc_buffer_preserving_position. Otherwise, invoke
12411 clear_ungetc_buffer after fetching the stream's position, not before.
12413 2009-01-15 Bruno Haible <bruno@clisp.org>
12415 Make fflush-after-ungetc POSIX compliant on glibc systems.
12416 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
12418 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
12419 (rpl_fflush): On glibc systems, simply call the system's fflush
12420 function after clearing the ungetc buffer.
12421 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
12422 Instead, lseek only to the end of file, then use the system's fseeko
12423 for the rest. On glibc systems, reset the EOF indicator bit.
12425 2009-01-15 Jim Meyering <meyering@redhat.com>
12427 openmp.m4: revert quote-adding change, for portability to older autoconf
12428 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
12429 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
12430 Simon Josefsson noticed the problem when using autoconf-2.61.
12432 2009-01-15 Bruno Haible <bruno@clisp.org>
12434 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
12435 * tests/test-fflush2.c (ASSERT): Always fail.
12436 (main): Add two tests for fflush() after ungetc(), taking into account
12437 the Austin Group's clarification.
12438 Suggested by Eric Blake.
12440 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
12442 mktime.m4: remove K&R-style function prototypes
12443 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
12444 for the Sun C++ compiler.
12446 2009-01-14 Bruno Haible <bruno@clisp.org>
12448 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
12449 while including <wchar.h>.
12450 * lib/wchar.in.h: In two particular situations on HP-UX, include only
12451 the system's <wchar.h> file.
12452 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12454 2009-01-14 Bruno Haible <bruno@clisp.org>
12456 * m4/csharp.m4: Don't mention gettext on the serial number line.
12457 * m4/csharpexec.m4: Likewise.
12458 * m4/eaccess.m4: Likewise.
12459 * m4/javaexec.m4: Likewise.
12460 * m4/sig_atomic_t.m4: Likewise.
12461 * m4/tmpdir.m4: Likewise.
12462 * m4/intldir.m4: Bump gettext version.
12463 * m4/lib-ld.m4: Likewise.
12465 2009-01-14 Bruno Haible <bruno@clisp.org>
12467 * lib/progname.c (set_program_name): Add more comments.
12468 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
12470 2009-01-14 Simon Josefsson <simon@josefsson.org>
12472 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
12473 were sys/stat.h does not define it.
12475 2009-01-14 Jim Meyering <meyering@redhat.com>
12477 many *.m4 files: improve m4 quoting
12478 99% of this change was performed by running the following commands:
12479 git ls-files | grep '\.m4$' | xargs perl -pi \
12480 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
12481 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
12482 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
12483 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
12484 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
12485 The remainder were to add Copyright dates, increment serial numbers,
12486 undo some changes in comments, exclude m4/intl.m4, and add quotes
12487 around the "1" in ",1" where the unusual spacing prohibited the
12488 above regexps from doing the job. For more details, see
12489 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
12490 * m4/acl.m4: Modified.
12491 * m4/afs.m4: Likewise.
12492 * m4/alloca.m4: Likewise.
12493 * m4/argp.m4: Likewise.
12494 * m4/argz.m4: Likewise.
12495 * m4/atexit.m4: Likewise.
12496 * m4/bison-i18n.m4: Likewise.
12497 * m4/bison.m4: Likewise.
12498 * m4/byteswap.m4: Likewise.
12499 * m4/c-stack.m4: Likewise.
12500 * m4/c-strtod.m4: Likewise.
12501 * m4/calloc.m4: Likewise.
12502 * m4/canonicalize-lgpl.m4: Likewise.
12503 * m4/chown.m4: Likewise.
12504 * m4/clock_time.m4: Likewise.
12505 * m4/codeset.m4: Likewise.
12506 * m4/copy-file.m4: Likewise.
12507 * m4/csharp.m4: Likewise.
12508 * m4/csharpcomp.m4: Likewise.
12509 * m4/csharpexec.m4: Likewise.
12510 * m4/d-ino.m4: Likewise.
12511 * m4/d-type.m4: Likewise.
12512 * m4/dirfd.m4: Likewise.
12513 * m4/double-slash-root.m4: Likewise.
12514 * m4/eaccess.m4: Likewise.
12515 * m4/eealloc.m4: Likewise.
12516 * m4/environ.m4: Likewise.
12517 * m4/errno_h.m4: Likewise.
12518 * m4/euidaccess.m4: Likewise.
12519 * m4/execute.m4: Likewise.
12520 * m4/fatal-signal.m4: Likewise.
12521 * m4/fchdir.m4: Likewise.
12522 * m4/fcntl_h.m4: Likewise.
12523 * m4/fileblocks.m4: Likewise.
12524 * m4/filenamecat.m4: Likewise.
12525 * m4/findprog.m4: Likewise.
12526 * m4/flexmember.m4: Likewise.
12527 * m4/fnmatch.m4: Likewise.
12528 * m4/fopen.m4: Likewise.
12529 * m4/fpending.m4: Likewise.
12530 * m4/fprintf-posix.m4: Likewise.
12531 * m4/free.m4: Likewise.
12532 * m4/frexp.m4: Likewise.
12533 * m4/frexpl.m4: Likewise.
12534 * m4/fsusage.m4: Likewise.
12535 * m4/ftruncate.m4: Likewise.
12536 * m4/gc-camellia.m4: Likewise.
12537 * m4/gc-random.m4: Likewise.
12538 * m4/gc.m4: Likewise.
12539 * m4/getaddrinfo.m4: Likewise.
12540 * m4/getcwd-abort-bug.m4: Likewise.
12541 * m4/getcwd-path-max.m4: Likewise.
12542 * m4/getdate.m4: Likewise.
12543 * m4/getdomainname.m4: Likewise.
12544 * m4/getgroups.m4: Likewise.
12545 * m4/gethostname.m4: Likewise.
12546 * m4/gethrxtime.m4: Likewise.
12547 * m4/getline.m4: Likewise.
12548 * m4/getloadavg.m4: Likewise.
12549 * m4/getndelim2.m4: Likewise.
12550 * m4/getpass.m4: Likewise.
12551 * m4/gettext.m4: Likewise.
12552 * m4/gettime.m4: Likewise.
12553 * m4/gettimeofday.m4: Likewise.
12554 * m4/gnulib-common.m4: Likewise.
12555 * m4/group-member.m4: Likewise.
12556 * m4/host-os.m4: Likewise.
12557 * m4/iconv.m4: Likewise.
12558 * m4/iconv_open.m4: Likewise.
12559 * m4/inet_ntop.m4: Likewise.
12560 * m4/inet_pton.m4: Likewise.
12561 * m4/inline.m4: Likewise.
12562 * m4/intldir.m4: Likewise.
12563 * m4/intlmacosx.m4: Likewise.
12564 * m4/intmax.m4: Likewise.
12565 * m4/intmax_t.m4: Likewise.
12566 * m4/inttypes.m4: Likewise.
12567 * m4/inttypes_h.m4: Likewise.
12568 * m4/inttypes-pri.m4: Likewise.
12569 * m4/isapipe.m4: Likewise.
12570 * m4/isnand.m4: Likewise.
12571 * m4/isnanf.m4: Likewise.
12572 * m4/isnanl.m4: Likewise.
12573 * m4/javacomp.m4: Likewise.
12574 * m4/javaexec.m4: Likewise.
12575 * m4/jm-winsz1.m4: Likewise.
12576 * m4/jm-winsz2.m4: Likewise.
12577 * m4/lchown.m4: Likewise.
12578 * m4/lcmessage.m4: Likewise.
12579 * m4/ldexpl.m4: Likewise.
12580 * m4/lib-ld.m4: Likewise.
12581 * m4/lib-link.m4: Likewise.
12582 * m4/libsigsegv.m4: Likewise.
12583 * m4/link-follow.m4: Likewise.
12584 * m4/localcharset.m4: Likewise.
12585 * m4/locale-fr.m4: Likewise.
12586 * m4/locale-ja.m4: Likewise.
12587 * m4/locale-tr.m4: Likewise.
12588 * m4/locale-zh.m4: Likewise.
12589 * m4/lock.m4: Likewise.
12590 * m4/longlong.m4: Likewise.
12591 * m4/ls-mntd-fs.m4: Likewise.
12592 * m4/lstat.m4: Likewise.
12593 * m4/malloc.m4: Likewise.
12594 * m4/mathl.m4: Likewise.
12595 * m4/mbrtowc.m4: Likewise.
12596 * m4/mbstate_t.m4: Likewise.
12597 * m4/mbswidth.m4: Likewise.
12598 * m4/memchr.m4: Likewise.
12599 * m4/memcmp.m4: Likewise.
12600 * m4/memcpy.m4: Likewise.
12601 * m4/memmem.m4: Likewise.
12602 * m4/memmove.m4: Likewise.
12603 * m4/mempcpy.m4: Likewise.
12604 * m4/memrchr.m4: Likewise.
12605 * m4/memset.m4: Likewise.
12606 * m4/minmax.m4: Likewise.
12607 * m4/mkdir-slash.m4: Likewise.
12608 * m4/mkdtemp.m4: Likewise.
12609 * m4/mktime.m4: Likewise.
12610 * m4/mmap-anon.m4: Likewise.
12611 * m4/mountlist.m4: Likewise.
12612 * m4/nanosleep.m4: Likewise.
12613 * m4/nls.m4: Likewise.
12614 * m4/nocrash.m4: Likewise.
12615 * m4/open.m4: Likewise.
12616 * m4/openat.m4: Likewise.
12617 * m4/openmp.m4: Likewise.
12618 * m4/pathmax.m4: Likewise.
12619 * m4/perl.m4: Likewise.
12620 * m4/physmem.m4: Likewise.
12621 * m4/pipe.m4: Likewise.
12622 * m4/po.m4: Likewise.
12623 * m4/poll.m4: Likewise.
12624 * m4/posixtm.m4: Likewise.
12625 * m4/posixver.m4: Likewise.
12626 * m4/printf-frexp.m4: Likewise.
12627 * m4/printf-frexpl.m4: Likewise.
12628 * m4/printf-posix.m4: Likewise.
12629 * m4/printf-posix-rpl.m4: Likewise.
12630 * m4/printf.m4: Likewise.
12631 * m4/progtest.m4: Likewise.
12632 * m4/putenv.m4: Likewise.
12633 * m4/readline.m4: Likewise.
12634 * m4/readlink.m4: Likewise.
12635 * m4/readutmp.m4: Likewise.
12636 * m4/realloc.m4: Likewise.
12637 * m4/regex.m4: Likewise.
12638 * m4/relocatable.m4: Likewise.
12639 * m4/relocatable-lib.m4: Likewise.
12640 * m4/rename-dest-slash.m4: Likewise.
12641 * m4/rename.m4: Likewise.
12642 * m4/rmdir-errno.m4: Likewise.
12643 * m4/rmdir.m4: Likewise.
12644 * m4/roundf.m4: Likewise.
12645 * m4/roundl.m4: Likewise.
12646 * m4/rpmatch.m4: Likewise.
12647 * m4/save-cwd.m4: Likewise.
12648 * m4/selinux-selinux-h.m4: Likewise.
12649 * m4/setenv.m4: Likewise.
12650 * m4/settime.m4: Likewise.
12651 * m4/sig2str.m4: Likewise.
12652 * m4/sig_atomic_t.m4: Likewise.
12653 * m4/signalblocking.m4: Likewise.
12654 * m4/signbit.m4: Likewise.
12655 * m4/sigpipe.m4: Likewise.
12656 * m4/sockets.m4: Likewise.
12657 * m4/sockpfaf.m4: Likewise.
12658 * m4/st_dm_mode.m4: Likewise.
12659 * m4/stat-time.m4: Likewise.
12660 * m4/stdbool.m4: Likewise.
12661 * m4/stdint.m4: Likewise.
12662 * m4/stdint_h.m4: Likewise.
12663 * m4/stpcpy.m4: Likewise.
12664 * m4/stpncpy.m4: Likewise.
12665 * m4/strcase.m4: Likewise.
12666 * m4/strchrnul.m4: Likewise.
12667 * m4/strcspn.m4: Likewise.
12668 * m4/strdup.m4: Likewise.
12669 * m4/strftime.m4: Likewise.
12670 * m4/strndup.m4: Likewise.
12671 * m4/strnlen.m4: Likewise.
12672 * m4/strpbrk.m4: Likewise.
12673 * m4/strptime.m4: Likewise.
12674 * m4/strsep.m4: Likewise.
12675 * m4/strtod.m4: Likewise.
12676 * m4/strtoimax.m4: Likewise.
12677 * m4/strtok_r.m4: Likewise.
12678 * m4/strtol.m4: Likewise.
12679 * m4/strtoll.m4: Likewise.
12680 * m4/strtoul.m4: Likewise.
12681 * m4/strtoull.m4: Likewise.
12682 * m4/strtoumax.m4: Likewise.
12683 * m4/strverscmp.m4: Likewise.
12684 * m4/threadlib.m4: Likewise.
12685 * m4/timegm.m4: Likewise.
12686 * m4/tm_gmtoff.m4: Likewise.
12687 * m4/tmpdir.m4: Likewise.
12688 * m4/tmpfile.m4: Likewise.
12689 * m4/tzset.m4: Likewise.
12690 * m4/uintmax_t.m4: Likewise.
12691 * m4/unlinkdir.m4: Likewise.
12692 * m4/unlocked-io.m4: Likewise.
12693 * m4/uptime.m4: Likewise.
12694 * m4/userspec.m4: Likewise.
12695 * m4/utimbuf.m4: Likewise.
12696 * m4/utime.m4: Likewise.
12697 * m4/utimes-null.m4: Likewise.
12698 * m4/utimes.m4: Likewise.
12699 * m4/vararrays.m4: Likewise.
12700 * m4/vasnprintf.m4: Likewise.
12701 * m4/vfprintf-posix.m4: Likewise.
12702 * m4/vprintf-posix.m4: Likewise.
12703 * m4/wait-process.m4: Likewise.
12704 * m4/wchar_t.m4: Likewise.
12705 * m4/wint_t.m4: Likewise.
12706 * m4/write-any-file.m4: Likewise.
12707 * m4/yield.m4: Likewise.
12709 2009-01-13 Bruno Haible <bruno@clisp.org>
12711 Avoid test-copy-file.sh failures when ACL support insufficient.
12712 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
12714 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
12715 Reported by Jim Meyering.
12717 2009-01-13 Bruno Haible <bruno@clisp.org>
12719 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
12720 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
12721 * modules/unistdio/u8-printf-parse (Files): Likewise.
12722 * modules/unistdio/u32-printf-parse (Files): Likewise.
12723 * modules/unistdio/ulc-printf-parse (Files): Likewise.
12725 2009-01-13 Simon Josefsson <simon@josefsson.org>
12727 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
12728 and m4/inttypes_h.m4 too.
12730 2009-01-12 Eric Blake <ebb9@byu.net>
12732 tests: IRIX 6.2 cc can't compile -0.0 into .data
12733 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
12734 rather than at compile-time.
12735 * tests/test-floorl.c (minus_zero): Likewise.
12736 * tests/test-frexpl.c (minus_zero): Likewise.
12737 * tests/test-isnan.c (minus_zerol): Likewise.
12738 * tests/test-isnanl.h (minus_zero): Likewise.
12739 * tests/test-ldexpl.c (minus_zero): Likewise.
12740 * tests/test-roundl.c (minus_zero): Likewise.
12741 * tests/test-signbit.c (minus_zerol): Likewise.
12742 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
12743 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
12744 * tests/test-truncl.c (minus_zero): Likewise.
12745 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
12746 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
12747 Reported by Tom G. Christensen and Nelson H. F. Beebe.
12749 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
12751 regex: fix glibc bug 9697
12752 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
12755 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
12757 regex: fix glibc bug 697
12758 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
12759 being NULL also if there are no backreferences.
12761 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
12763 regex: merge glibc changes
12764 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
12765 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
12766 re_string_skip_chars, re_string_reconstruct): Likewise.
12767 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
12769 2009-01-07 Jim Meyering <meyering@redhat.com>
12771 poll: filter through cppi
12772 * lib/poll.c: Indent cpp directives to reflect nesting.
12774 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
12776 poll: don't return uninitialized
12777 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
12779 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
12781 avoid compile failure on AIX 6.1
12782 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
12783 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
12785 2009-01-04 Jim Meyering <meyering@redhat.com>
12787 remove duplicate inclusion of <stdio.h>
12788 * tests/test-fprintf-posix.c: Likewise.
12789 * tests/test-printf-posix.c: Likewise.
12790 * tests/test-snprintf-posix.c: Likewise.
12791 * tests/test-sprintf-posix.c: Likewise.
12792 * tests/test-vasprintf-posix.c: Likewise.
12793 * tests/test-vfprintf-posix.c: Likewise.
12794 * tests/test-vprintf-posix.c: Likewise.
12795 * tests/test-vsnprintf-posix.c: Likewise.
12796 * tests/test-vsprintf-posix.c: Likewise.
12798 2009-01-03 Jim Meyering <meyering@redhat.com>
12800 gnulib-tool: fix sed-based filtering
12801 * gnulib-tool (func_filter_filelist): Remove extra backslash
12802 in sed_fff_filter definition.
12804 2009-01-02 Jim Meyering <meyering@redhat.com>
12806 strftime: avoid compilation failure on Solaris 2.6
12807 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
12808 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
12809 Don't #define mbrlen or mbsinit, since now they're guaranteed to
12810 be available. Reported by Tom G. Christensen. Details in
12811 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
12813 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12814 Bruno Haible <bruno@clisp.org>
12816 Speed up gnulib-tool by doing more string processing through shell
12818 * gnulib-tool (fast_func_append): New variable.
12819 (func_remove_prefix, func_remove_suffix): New functions.
12820 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
12821 (func_filter_filelist): New function.
12822 (func_get_dependencies): Use func_remove_suffix instead of sed.
12823 (func_get_automake_snippet): Use func_filter_filelist instead of a
12824 subshell and sed invocation.
12826 2009-01-01 Bruno Haible <bruno@clisp.org>
12828 Fix a security bug.
12829 * gnulib-tool (func_import, import, update): Don't allow the characters
12830 '"', '$', '`', '\' in macro arguments that become part of commands that
12833 2009-01-01 Bruno Haible <bruno@clisp.org>
12835 * gnulib-tool (func_reset_sigpipe): Add more comments.
12837 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12839 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
12840 func_emit_tests_Makefile_am, func_import): Abort loops early if we
12841 already know the answer.
12843 2009-01-01 Jim Meyering <meyering@redhat.com>
12845 * lib/version-etc.c (version_etc_va): Update copyright year.
12847 2008-12-30 Bruno Haible <bruno@clisp.org>
12849 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
12850 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
12851 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
12853 2008-12-29 Eric Blake <ebb9@byu.net>
12855 multiarch: avoid autoconf AC_REQUIRE bug
12856 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
12857 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
12859 Reported by Bruno Haible, and analyzed in
12860 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
12862 2008-12-29 Bruno Haible <bruno@clisp.org>
12864 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
12865 files in subdirectories correctly.
12866 Reported by Ralf Wildenhues.
12868 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12870 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
12871 rather than 'join FILE -', for Solaris join.
12873 2008-12-29 Bruno Haible <bruno@clisp.org>
12875 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
12877 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
12878 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
12879 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
12880 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
12881 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
12882 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
12883 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
12884 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
12885 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
12886 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
12887 * m4/nls.m4 (AM_NLS): Likewise.
12888 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
12889 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
12890 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
12891 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
12892 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
12893 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
12894 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
12895 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
12896 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
12897 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
12898 * m4/xsize.m4 (gl_XSIZE): Likewise.
12899 Suggested by Jim Meyering.
12901 2008-11-17 Bruce Korb <bkorb@gnu.org>
12903 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
12904 * lib/parse-duration.c: use a switch instead of cascading if's.
12906 2008-12-29 Eric Blake <ebb9@byu.net>
12908 wchar.h: supply WEOF on Irix 5.3
12909 * lib/wchar.in.h (wint_t): Also supply WEOF.
12910 * lib/wctype.in.h (wint_t): Likewise.
12911 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
12912 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
12913 Reported by Tom G. Christensen.
12915 2008-12-26 Bruno Haible <bruno@clisp.org>
12917 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
12920 2008-12-26 Bruno Haible <bruno@clisp.org>
12922 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
12924 2008-12-26 Bruno Haible <bruno@clisp.org>
12926 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
12927 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
12928 not __STDC_CONSTANT_MACROS.
12929 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
12931 2008-12-25 Bruno Haible <bruno@clisp.org>
12933 Add support for universal builds to vasnprintf.
12934 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
12935 universal builds, guess no.
12936 * modules/vasnprintf-posix (Depends-on): Add multiarch.
12937 * modules/vasprintf-posix (Depends-on): Likewise.
12938 * modules/fprintf-posix (Depends-on): Likewise.
12939 * modules/vfprintf-posix (Depends-on): Likewise.
12940 * modules/snprintf-posix (Depends-on): Likewise.
12941 * modules/vsnprintf-posix (Depends-on): Likewise.
12942 * modules/sprintf-posix (Depends-on): Likewise.
12943 * modules/vsprintf-posix (Depends-on): Likewise.
12944 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12945 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12946 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12947 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12948 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12949 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12950 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12952 Add support for universal builds to <inttypes.h>.
12953 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
12954 _SCNu64_PREFIX): In Apple
12955 universal builds, define directly, using _LP64.
12956 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
12957 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
12958 * modules/inttypes (Depends-on): Add multiarch.
12959 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
12961 Add support for universal builds to <stdint.h>.
12962 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
12963 universal builds, define directly, using _LP64.
12964 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
12965 Apple universal builds, don't test for the size and suffix of ptrdiff_t
12967 * modules/stdint (Depends-on): Add multiarch.
12968 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
12970 New module 'multiarch'.
12971 * modules/multiarch: New file.
12972 * m4/multiarch.m4: New file.
12974 2008-12-25 Bruno Haible <bruno@clisp.org>
12976 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
12978 2008-12-25 Bruno Haible <bruno@clisp.org>
12980 * modules/btowc (License): Relicense under LGPLv2+.
12981 * modules/mbsinit (License): Likewise.
12982 * modules/mbrtowc (License): Likewise.
12983 * modules/wcrtomb (License): Likewise.
12984 * modules/streq (License): Likewise.
12985 Reported by David Lutterkort <lutter@redhat.com>.
12987 2008-12-23 Bruno Haible <bruno@clisp.org>
12989 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
12991 2008-12-23 Bruno Haible <bruno@clisp.org>
12993 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
12994 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
12995 GETADDRINFO_LIB, not in LIBS.
12996 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
12997 * modules/canon-host (Link): Likewise.
12998 * NEWS: Mention the change.
12999 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
13002 2008-12-22 Bruno Haible <bruno@clisp.org>
13004 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
13005 * doc/posix-functions/iswalpha_l.texi: Likewise.
13006 * doc/posix-functions/iswblank_l.texi: Likewise.
13007 * doc/posix-functions/iswcntrl_l.texi: Likewise.
13008 * doc/posix-functions/iswctype_l.texi: Likewise.
13009 * doc/posix-functions/iswdigit_l.texi: Likewise.
13010 * doc/posix-functions/iswgraph_l.texi: Likewise.
13011 * doc/posix-functions/iswlower_l.texi: Likewise.
13012 * doc/posix-functions/iswprint_l.texi: Likewise.
13013 * doc/posix-functions/iswpunct_l.texi: Likewise.
13014 * doc/posix-functions/iswspace_l.texi: Likewise.
13015 * doc/posix-functions/iswupper_l.texi: Likewise.
13016 * doc/posix-functions/iswxdigit_l.texi: Likewise.
13017 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
13018 * doc/posix-functions/open_wmemstream.texi: Likewise.
13019 * doc/posix-functions/swscanf.texi: Likewise.
13020 * doc/posix-functions/towctrans_l.texi: Likewise.
13021 * doc/posix-functions/towlower.texi: Likewise.
13022 * doc/posix-functions/towlower_l.texi: Likewise.
13023 * doc/posix-functions/towupper.texi: Likewise.
13024 * doc/posix-functions/towupper_l.texi: Likewise.
13025 * doc/posix-functions/vfwprintf.texi: Likewise.
13026 * doc/posix-functions/vfwscanf.texi: Likewise.
13027 * doc/posix-functions/vswscanf.texi: Likewise.
13028 * doc/posix-functions/vwprintf.texi: Likewise.
13029 * doc/posix-functions/vwscanf.texi: Likewise.
13030 * doc/posix-functions/wcpcpy.texi: Likewise.
13031 * doc/posix-functions/wcpncpy.texi: Likewise.
13032 * doc/posix-functions/wcscasecmp.texi: Likewise.
13033 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
13034 * doc/posix-functions/wcscoll_l.texi: Likewise.
13035 * doc/posix-functions/wcsdup.texi: Likewise.
13036 * doc/posix-functions/wcsncasecmp.texi: Likewise.
13037 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
13038 * doc/posix-functions/wcsnlen.texi: Likewise.
13039 * doc/posix-functions/wcsnrtombs.texi: Likewise.
13040 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
13041 * doc/posix-functions/wctrans_l.texi: Likewise.
13042 * doc/posix-functions/wctype_l.texi: Likewise.
13043 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
13044 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
13045 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
13046 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
13047 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
13048 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
13049 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
13050 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
13051 * doc/glibc-functions/wcschrnul.texi: Likewise.
13052 * doc/glibc-functions/wcsftime_l.texi: Likewise.
13053 * doc/glibc-functions/wcstod_l.texi: Likewise.
13054 * doc/glibc-functions/wcstof_l.texi: Likewise.
13055 * doc/glibc-functions/wcstol_l.texi: Likewise.
13056 * doc/glibc-functions/wcstold_l.texi: Likewise.
13057 * doc/glibc-functions/wcstoll_l.texi: Likewise.
13058 * doc/glibc-functions/wcstoq.texi: Likewise.
13059 * doc/glibc-functions/wcstoul_l.texi: Likewise.
13060 * doc/glibc-functions/wcstoull_l.texi: Likewise.
13061 * doc/glibc-functions/wcstouq.texi: Likewise.
13062 * doc/glibc-functions/wmempcpy.texi: Likewise.
13064 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
13065 Eric Blake <ebb9@byu.net>
13066 Paolo Bonzini <bonzini@gnu.org>
13067 Bruno Haible <bruno@clisp.org>
13069 Make c-stack work on Haiku.
13070 * lib/c-stack.c (SA_ONSTACK): Define fallback.
13071 (c_stack_action): Use SA_ONSTACK flag.
13073 2008-12-22 Bruno Haible <bruno@clisp.org>
13075 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
13077 2008-12-22 Bruno Haible <bruno@clisp.org>
13079 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
13080 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
13082 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
13084 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
13085 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
13086 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
13087 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
13089 2008-12-22 Bruno Haible <bruno@clisp.org>
13091 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
13094 2008-12-22 Eric Blake <ebb9@byu.net>
13096 Avoid gcc warnings on cygwin.
13097 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
13098 Avoid unused variable.
13099 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
13102 2008-12-22 Bruno Haible <bruno@clisp.org>
13104 Remove HAVE_MBRTOWC conditionals.
13105 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
13106 (mbscasecmp): Assume mbrtowc function.
13107 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
13108 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
13109 * lib/mbschr.c: Include mbuiter.h unconditionally.
13110 (mbschr): Assume mbrtowc function.
13111 * lib/mbscspn.c: Include mbuiter.h unconditionally.
13112 (mbscspn): Assume mbrtowc function.
13113 * lib/mbslen.c: Include mbuiter.h unconditionally.
13114 (mbslen): Assume mbrtowc function.
13115 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
13116 (mbsncasecmp): Assume mbrtowc function.
13117 * lib/mbsnlen.c: Include mbiter.h unconditionally.
13118 (mbsnlen): Assume mbrtowc function.
13119 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
13120 (mbspbrk): Assume mbrtowc function.
13121 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
13122 (mbspcasecmp): Assume mbrtowc function.
13123 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
13124 (mbsrchr): Assume mbrtowc function.
13125 * lib/mbssep.c: Include mbuiter.h unconditionally.
13126 (mbssep): Assume mbrtowc function.
13127 * lib/mbsspn.c: Include mbuiter.h unconditionally.
13128 (mbsspn): Assume mbrtowc function.
13129 * lib/mbsstr.c: Include mbuiter.h unconditionally.
13130 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
13131 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
13132 (mbstok_r): Assume mbrtowc function.
13133 * lib/propername.c: Include mbuiter.h unconditionally.
13134 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
13135 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
13136 (trim2): Assume mbrtowc function.
13137 * lib/mbswidth.c (mbsinit): Remove fallback definition.
13138 (mbsnwidth): Assume mbrtowc function.
13139 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
13140 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
13141 fallback definitions.
13142 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
13144 2008-12-22 Bruno Haible <bruno@clisp.org>
13146 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
13148 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
13150 * modules/regex: Request emulations for the mb*/wc* functions we need.
13151 * m4/regex.m4: Don't look for those functions here.
13152 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
13154 2008-12-22 Bruno Haible <bruno@clisp.org>
13156 * modules/fnmatch (Depends-on): Remove duplicated dependency.
13158 2008-12-21 Bruno Haible <bruno@clisp.org>
13160 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
13161 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
13162 (Include): Remove conditionalization.
13163 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
13164 (Include): Remove conditionalization.
13165 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
13166 (Include): Remove conditionalization.
13167 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
13168 * m4/mbfile.m4 (gl_MBFILE): Likewise.
13169 * NEWS: Mention the change.
13170 Reported by Alan Hourihane <alanh@fairlite.co.uk>
13171 via Sergey Poznyakoff <gray@gnu.org.ua>.
13173 2008-12-21 Bruno Haible <bruno@clisp.org>
13175 * MODULES.html.sh (Extended multibyte and wide character utilities
13176 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
13177 wcrtomb, wcsrtombs.
13178 (Support for systems lacking POSIX:2008): Add accept, bind, close,
13179 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
13180 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
13181 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
13183 2008-12-21 Bruno Haible <bruno@clisp.org>
13185 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
13187 2008-12-21 Bruno Haible <bruno@clisp.org>
13189 * modules/wcsnrtombs-tests: New file.
13190 * tests/test-wcsnrtombs1.sh: New file.
13191 * tests/test-wcsnrtombs2.sh: New file.
13192 * tests/test-wcsnrtombs3.sh: New file.
13193 * tests/test-wcsnrtombs4.sh: New file.
13194 * tests/test-wcsnrtombs.c: New file.
13196 New module 'wcsnrtombs'.
13197 * lib/wchar.in.h (wcsnrtombs): New declaration.
13198 * lib/wcsnrtombs.c: New file.
13199 * lib/wcsrtombs-state.c: New file.
13200 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
13201 (internal_state): Remove variable.
13202 * m4/wcsnrtombs.m4: New file.
13203 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
13205 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
13207 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
13209 * modules/wcsnrtombs: New file.
13210 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
13211 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
13213 2008-12-21 Bruno Haible <bruno@clisp.org>
13215 * modules/wcsrtombs-tests: New file.
13216 * tests/test-wcsrtombs1.sh: New file.
13217 * tests/test-wcsrtombs2.sh: New file.
13218 * tests/test-wcsrtombs3.sh: New file.
13219 * tests/test-wcsrtombs4.sh: New file.
13220 * tests/test-wcsrtombs.c: New file.
13222 New module 'wcsrtombs'.
13223 * lib/wchar.in.h (wcsrtombs): New declaration.
13224 * lib/wcsrtombs.c: New file.
13225 * m4/wcsrtombs.m4: New file.
13226 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
13227 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
13228 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
13229 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
13230 * modules/wcsrtombs: New file.
13231 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
13234 2008-12-21 Bruno Haible <bruno@clisp.org>
13236 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
13237 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
13238 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
13239 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
13241 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
13242 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
13243 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
13244 m4/locale-zh.m4, m4/codeset.m4.
13245 * doc/posix-functions/wcrtomb.texi: Document the bug.
13247 2008-12-21 Bruno Haible <bruno@clisp.org>
13249 Work around a btowc() bug on IRIX 6.5.
13250 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
13251 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
13252 REPLACE_WTOBC if not.
13253 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
13254 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
13255 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
13257 2008-12-21 Bruno Haible <bruno@clisp.org>
13259 * modules/wcrtomb-tests: New file.
13260 * tests/test-wcrtomb.sh: New file.
13261 * tests/test-wcrtomb.c: New file.
13263 New module 'wcrtomb'.
13264 * lib/wchar.in.h (wcrtomb): New declaration.
13265 * lib/wcrtomb.c: New file.
13266 * m4/wcrtomb.m4: New file.
13267 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
13269 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
13271 * modules/wcrtomb: New file.
13272 * doc/posix-functions/wcrtomb.texi: Mention the new module.
13274 2008-12-21 Bruno Haible <bruno@clisp.org>
13276 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
13277 * modules/mbsrtowcs (Files): Likewise.
13278 * modules/wctob (Files): Likewise.
13279 * modules/c-strcase-tests (Files): Likewise.
13280 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13281 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13282 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13283 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13284 * modules/vasnprintf-posix-tests (Files): Likewise.
13286 2008-12-21 William Pursell <bill.pursell@gmail.com>
13288 gitlog-to-changelog: pass all command-line arguments to git-log
13289 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
13290 it is sometimes convenient to filter the commits in various ways.
13291 gitlog-to-changelog only allows --since to specify a start date,
13292 but git-log itself supports many other filtering mechanisms.
13293 At the moment, I want to filter by branch name. Rather than
13294 adding a --branch option to gitlog-to-changelog, it seems more
13295 flexible to simply pass all options directly to git-log and let
13296 git do the work. Notice that this effectively makes --since a
13297 redundant option for gitlog-to-changelog, but removing it would
13298 require current usage to change since calls would then require
13299 an additional '--'.
13301 2008-12-21 Bruno Haible <bruno@clisp.org>
13303 * modules/mbsnrtowcs-tests: New file.
13304 * tests/test-mbsnrtowcs1.sh: New file.
13305 * tests/test-mbsnrtowcs2.sh: New file.
13306 * tests/test-mbsnrtowcs3.sh: New file.
13307 * tests/test-mbsnrtowcs4.sh: New file.
13308 * tests/test-mbsnrtowcs.c: New file.
13310 New module 'mbsnrtowcs'.
13311 * lib/wchar.in.h (mbsnrtowcs): New declaration.
13312 * lib/mbsnrtowcs.c: New file.
13313 * lib/mbsrtowcs-state.c: New file.
13314 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
13315 (internal_state): Remove variable.
13316 * m4/mbsnrtowcs.m4: New file.
13317 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
13319 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
13320 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
13321 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
13322 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
13323 * modules/mbsnrtowcs: New file.
13324 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
13325 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
13326 portability problem.
13328 2008-12-21 Bruno Haible <bruno@clisp.org>
13330 Work around mbsrtowcs bug.
13331 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
13332 (gl_FUNC_MBSRTOWCS): Invoke it.
13333 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
13335 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
13337 2008-12-21 Bruno Haible <bruno@clisp.org>
13339 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
13341 2008-12-21 Bruno Haible <bruno@clisp.org>
13343 Update doc for AIX.
13344 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
13345 16-bit wchar_t type.
13346 * doc/posix-functions/btowc.texi: Likewise.
13347 * doc/posix-functions/fgetwc.texi: Likewise.
13348 * doc/posix-functions/fgetws.texi: Likewise.
13349 * doc/posix-functions/fputwc.texi: Likewise.
13350 * doc/posix-functions/fputws.texi: Likewise.
13351 * doc/posix-functions/fwide.texi: Likewise.
13352 * doc/posix-functions/fwprintf.texi: Likewise.
13353 * doc/posix-functions/fwscanf.texi: Likewise.
13354 * doc/posix-functions/getwchar.texi: Likewise.
13355 * doc/posix-functions/getwc.texi: Likewise.
13356 * doc/posix-functions/iswalnum.texi: Likewise.
13357 * doc/posix-functions/iswalpha.texi: Likewise.
13358 * doc/posix-functions/iswblank.texi: Likewise.
13359 * doc/posix-functions/iswcntrl.texi: Likewise.
13360 * doc/posix-functions/iswctype.texi: Likewise.
13361 * doc/posix-functions/iswdigit.texi: Likewise.
13362 * doc/posix-functions/iswgraph.texi: Likewise.
13363 * doc/posix-functions/iswlower.texi: Likewise.
13364 * doc/posix-functions/iswprint.texi: Likewise.
13365 * doc/posix-functions/iswpunct.texi: Likewise.
13366 * doc/posix-functions/iswspace.texi: Likewise.
13367 * doc/posix-functions/iswupper.texi: Likewise.
13368 * doc/posix-functions/iswxdigit.texi: Likewise.
13369 * doc/posix-functions/mbrtowc.texi: Likewise.
13370 * doc/posix-functions/mbsrtowcs.texi: Likewise.
13371 * doc/posix-functions/mbstowcs.texi: Likewise.
13372 * doc/posix-functions/mbtowc.texi: Likewise.
13373 * doc/posix-functions/putwchar.texi: Likewise.
13374 * doc/posix-functions/putwc.texi: Likewise.
13375 * doc/posix-functions/swprintf.texi: Likewise.
13376 * doc/posix-functions/tolower.texi: Likewise.
13377 * doc/posix-functions/toupper.texi: Likewise.
13378 * doc/posix-functions/towctrans.texi: Likewise.
13379 * doc/posix-functions/ungetwc.texi: Likewise.
13380 * doc/posix-functions/vswprintf.texi: Likewise.
13381 * doc/posix-functions/wcrtomb.texi: Likewise.
13382 * doc/posix-functions/wcscat.texi: Likewise.
13383 * doc/posix-functions/wcschr.texi: Likewise.
13384 * doc/posix-functions/wcscmp.texi: Likewise.
13385 * doc/posix-functions/wcscoll.texi: Likewise.
13386 * doc/posix-functions/wcscpy.texi: Likewise.
13387 * doc/posix-functions/wcscspn.texi: Likewise.
13388 * doc/posix-functions/wcsftime.texi: Likewise.
13389 * doc/posix-functions/wcslen.texi: Likewise.
13390 * doc/posix-functions/wcsncat.texi: Likewise.
13391 * doc/posix-functions/wcsncmp.texi: Likewise.
13392 * doc/posix-functions/wcsncpy.texi: Likewise.
13393 * doc/posix-functions/wcspbrk.texi: Likewise.
13394 * doc/posix-functions/wcsrchr.texi: Likewise.
13395 * doc/posix-functions/wcsrtombs.texi: Likewise.
13396 * doc/posix-functions/wcsspn.texi: Likewise.
13397 * doc/posix-functions/wcsstr.texi: Likewise.
13398 * doc/posix-functions/wcstod.texi: Likewise.
13399 * doc/posix-functions/wcstof.texi: Likewise.
13400 * doc/posix-functions/wcstoimax.texi: Likewise.
13401 * doc/posix-functions/wcstok.texi: Likewise.
13402 * doc/posix-functions/wcstold.texi: Likewise.
13403 * doc/posix-functions/wcstoll.texi: Likewise.
13404 * doc/posix-functions/wcstol.texi: Likewise.
13405 * doc/posix-functions/wcstombs.texi: Likewise.
13406 * doc/posix-functions/wcstoull.texi: Likewise.
13407 * doc/posix-functions/wcstoul.texi: Likewise.
13408 * doc/posix-functions/wcstoumax.texi: Likewise.
13409 * doc/posix-functions/wcswidth.texi: Likewise.
13410 * doc/posix-functions/wcsxfrm.texi: Likewise.
13411 * doc/posix-functions/wctob.texi: Likewise.
13412 * doc/posix-functions/wctomb.texi: Likewise.
13413 * doc/posix-functions/wctrans.texi: Likewise.
13414 * doc/posix-functions/wctype.texi: Likewise.
13415 * doc/posix-functions/wcwidth.texi: Likewise.
13416 * doc/posix-functions/wmemchr.texi: Likewise.
13417 * doc/posix-functions/wmemcmp.texi: Likewise.
13418 * doc/posix-functions/wmemcpy.texi: Likewise.
13419 * doc/posix-functions/wmemmove.texi: Likewise.
13420 * doc/posix-functions/wmemset.texi: Likewise.
13421 * doc/posix-functions/wprintf.texi: Likewise.
13422 * doc/posix-functions/wscanf.texi: Likewise.
13424 2008-12-21 Bruno Haible <bruno@clisp.org>
13426 Update doc for HP-UX 11.11.
13427 * doc/posix-functions/btowc.texi: Clarify that the function is missing
13428 in HP-UX version 11.00, not in all versions of HP-UX 11.
13429 * doc/posix-functions/fwide.texi: Likewise.
13430 * doc/posix-functions/fwprintf.texi: Likewise.
13431 * doc/posix-functions/fwscanf.texi: Likewise.
13432 * doc/posix-functions/inet_ntop.texi: Likewise.
13433 * doc/posix-functions/inet_pton.texi: Likewise.
13434 * doc/posix-functions/mbrlen.texi: Likewise.
13435 * doc/posix-functions/mbrtowc.texi: Likewise.
13436 * doc/posix-functions/mbsinit.texi: Likewise.
13437 * doc/posix-functions/mbsrtowcs.texi: Likewise.
13438 * doc/posix-functions/swprintf.texi: Likewise.
13439 * doc/posix-functions/swscanf.texi: Likewise.
13440 * doc/posix-functions/towctrans.texi: Likewise.
13441 * doc/posix-functions/vfwprintf.texi: Likewise.
13442 * doc/posix-functions/vswprintf.texi: Likewise.
13443 * doc/posix-functions/vwprintf.texi: Likewise.
13444 * doc/posix-functions/wcrtomb.texi: Likewise.
13445 * doc/posix-functions/wcsrtombs.texi: Likewise.
13446 * doc/posix-functions/wcsstr.texi: Likewise.
13447 * doc/posix-functions/wctob.texi: Likewise.
13448 * doc/posix-functions/wctrans.texi: Likewise.
13449 * doc/posix-functions/wmemchr.texi: Likewise.
13450 * doc/posix-functions/wmemcmp.texi: Likewise.
13451 * doc/posix-functions/wmemcpy.texi: Likewise.
13452 * doc/posix-functions/wmemmove.texi: Likewise.
13453 * doc/posix-functions/wmemset.texi: Likewise.
13454 * doc/posix-functions/wprintf.texi: Likewise.
13455 * doc/posix-functions/wscanf.texi: Likewise.
13457 2008-12-21 Bruno Haible <bruno@clisp.org>
13459 Work around a portability problem.
13460 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
13461 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
13463 2008-12-20 Bruno Haible <bruno@clisp.org>
13465 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
13466 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
13467 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
13468 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
13469 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
13471 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
13472 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
13474 (GNULIB_defined_mbstate_t): New macro.
13475 (mbsinit): Redefine if REPLACE_MBSINIT is set.
13476 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
13477 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
13478 reuses the system's mbrtowc function but works around the bugs.
13479 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
13480 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
13482 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
13483 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
13484 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
13485 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
13486 REPLACE_MBSINIT if mbsinit needs to be overridden.
13487 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
13488 REPLACE_MBSINIT, REPLACE_MBRTOWC.
13489 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
13490 REPLACE_MBSINIT, REPLACE_MBRTOWC.
13491 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
13493 (Depends): Add mbsinit.
13494 * modules/mbsinit (Depends): Add mbrtowc.
13495 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
13497 2008-12-20 Bruno Haible <bruno@clisp.org>
13499 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
13500 so that there are no conversion errors on AIX.
13501 * tests/test-mbsrtowcs.c (main): LIkewise.
13503 2008-12-20 Bruno Haible <bruno@clisp.org>
13505 Work around wctob bug on Solaris <= 9.
13506 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
13507 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
13508 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
13509 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
13510 * modules/wctob (Files): Add m4/locale-fr.m4.
13511 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
13513 2008-12-20 Bruno Haible <bruno@clisp.org>
13515 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
13517 * tests/test-select-in.sh: Likewise.
13518 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13520 2008-12-20 Bruno Haible <bruno@clisp.org>
13522 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
13523 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
13526 2008-12-20 Bruno Haible <bruno@clisp.org>
13528 Ensure mbstate_t is defined on HP-UX 11.11.
13529 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
13530 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
13531 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
13532 AC_USE_SYSTEM_EXTENSIONS.
13533 * modules/fnmatch (Depends-on): Add extensions.
13534 * modules/mbrlen (Depends-on): Likewise.
13535 * modules/mbrtowc (Depends-on): Likewise.
13536 * modules/mbsinit (Depends-on): Likewise.
13537 * modules/mbsrtowcs (Depends-on): Likewise.
13538 * modules/mbswidth (Depends-on): Likewise.
13539 * modules/quotearg (Depends-on): Likewise.
13540 * modules/strftime (Depends-on): Likewise.
13542 2008-12-20 Bruno Haible <bruno@clisp.org>
13544 Ensure wctob is declared on IRIX 6.5.
13545 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
13546 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
13547 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
13548 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
13550 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
13552 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
13554 2008-12-19 Bruno Haible <bruno@clisp.org>
13556 * modules/mbsrtowcs-tests: New file.
13557 * tests/test-mbsrtowcs1.sh: New file.
13558 * tests/test-mbsrtowcs2.sh: New file.
13559 * tests/test-mbsrtowcs3.sh: New file.
13560 * tests/test-mbsrtowcs4.sh: New file.
13561 * tests/test-mbsrtowcs.c: New file.
13563 New module 'mbsrtowcs'.
13564 * lib/wchar.in.h (mbsrtowcs): New declaration.
13565 * lib/mbsrtowcs.c: New file.
13566 * m4/mbsrtowcs.m4: New file.
13567 * modules/mbsrtowcs: New file.
13568 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
13570 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
13572 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
13574 2008-12-19 Bruno Haible <bruno@clisp.org>
13576 New module 'mbrlen'.
13577 * lib/wchar.in.h (mbrlen): New declaration.
13578 * lib/mbrlen.c: New file.
13579 * m4/mbrlen.m4: New file.
13580 * modules/mbrlen: New file.
13581 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
13583 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
13585 * doc/posix-functions/mbrlen.texi: Document the new module.
13587 2008-12-19 Bruno Haible <bruno@clisp.org>
13589 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
13590 * modules/mbrtowc (Depends-on): Add verify.
13591 Suggested by Paul Eggert.
13593 2008-12-18 Bruno Haible <bruno@clisp.org>
13595 * modules/mbsinit-tests: New file.
13596 * tests/test-mbsinit.sh: New file.
13597 * tests/test-mbsinit.c: New file.
13599 2008-12-18 Bruno Haible <bruno@clisp.org>
13601 * modules/mbrtowc-tests: New file.
13602 * tests/test-mbrtowc1.sh: New file.
13603 * tests/test-mbrtowc2.sh: New file.
13604 * tests/test-mbrtowc3.sh: New file.
13605 * tests/test-mbrtowc4.sh: New file.
13606 * tests/test-mbrtowc.c: New file.
13608 New module 'mbrtowc'.
13609 * lib/wchar.in.h (mbstate_t): Override when the system does not have
13610 mbsinit and mbrtowc.
13611 (mbrtowc): New declaration.
13612 * lib/mbrtowc.c: New file.
13613 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
13614 * modules/mbrtowc: New file.
13615 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
13617 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
13619 * doc/posix-functions/mbrtowc.texi: Document the new module.
13621 2008-12-18 Bruno Haible <bruno@clisp.org>
13623 New module 'wctob'.
13624 * lib/wchar.in.h (wctob): New declaration.
13625 * lib/wctob.c: New file.
13626 * m4/wctob.m4: New file.
13627 * modules/wctob: New file.
13628 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
13630 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
13631 * doc/posix-functions/wctob.texi: Document the new module.
13633 2008-12-18 Bruno Haible <bruno@clisp.org>
13635 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
13636 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
13638 2008-12-18 Simon Josefsson <simon@josefsson.org>
13640 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
13641 G. Christensen" <tgc@jupiterrise.com>.
13643 * lib/flock.c: Need to include errno.h. Reported by "Tom
13644 G. Christensen" <tgc@jupiterrise.com>.
13646 * lib/flock.c: Need to include string.h. Reported by "Tom
13647 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
13650 2008-12-18 Bruno Haible <bruno@clisp.org>
13652 * m4/locale-ja.m4: New file, from GNU gettext.
13654 2008-12-17 Bruno Haible <bruno@clisp.org>
13656 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
13657 Suggested by Eric Blake.
13659 2008-12-17 Bruno Haible <bruno@clisp.org>
13661 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
13663 2008-12-17 Bruno Haible <bruno@clisp.org>
13665 * lib/mbsinit.c: Include verify.h. Verify an assumption.
13666 * modules/mbsinit (Depends-on): Add verify.
13667 Suggested by Paul Eggert.
13669 2008-12-17 Bruno Haible <bruno@clisp.org>
13671 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
13672 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
13674 * m4/mbiter.m4 (gl_MBITER): LIkewise.
13675 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
13676 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
13677 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
13678 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
13679 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
13680 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
13681 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
13682 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
13683 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
13684 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
13685 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
13686 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
13687 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
13688 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
13689 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
13690 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
13691 * modules/trim (configure.ac): Likewise.
13693 2008-12-17 Bruno Haible <bruno@clisp.org>
13695 * modules/btowc-tests: New file.
13696 * tests/test-btowc1.sh: New file.
13697 * tests/test-btowc2.sh: New file.
13698 * tests/test-btowc.c: New file.
13700 New module 'btowc'.
13701 * lib/wchar.in.h (btowc): New declaration.
13702 * lib/btowc.c: New file.
13703 * m4/btowc.m4: New file.
13704 * modules/btowc: New file.
13705 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
13707 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
13708 * doc/posix-functions/btowc.texi: Document the new module.
13710 2008-12-17 Bruno Haible <bruno@clisp.org>
13712 New module 'mbsinit'.
13713 * lib/wchar.in.h (mbsinit): New declaration.
13714 * lib/mbsinit.c: New file.
13715 * m4/mbsinit.m4: New file.
13716 * modules/mbsinit: New file.
13717 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
13719 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
13721 * doc/posix-functions/mbsinit.texi: Document the new module.
13723 2008-12-16 Bruno Haible <bruno@clisp.org>
13725 * lib/unistd.in.h: Add comment.
13726 * tests/test-environ.c: Don't include <stdlib.h>.
13728 2008-12-16 Bruno Haible <bruno@clisp.org>
13730 * lib/parse-duration.h (parse_duration): Document return value
13732 * lib/parse-duration.c: Include specification header first. Add
13735 (parse_year_month_day, parse_hour_minute_second): Move side effects
13736 outside of strchr call.
13737 (parse_non_iso8601): Move side effects outside of isspace call.
13738 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
13741 2008-12-16 Bruno Haible <bruno@clisp.org>
13743 * tests/test-parse-duration.sh: Produce no output when the test
13746 2008-12-16 Bruno Haible <bruno@clisp.org>
13748 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
13751 2008-12-15 Bruno Haible <bruno@clisp.org>
13753 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
13754 * doc/glibc-functions/flistxattr.texi: Likewise.
13755 * doc/glibc-functions/fopencookie.texi: Likewise.
13756 * doc/glibc-functions/fremovexattr.texi: Likewise.
13757 * doc/glibc-functions/fsetxattr.texi: Likewise.
13758 * doc/glibc-functions/getxattr.texi: Likewise.
13759 * doc/glibc-functions/lgetxattr.texi: Likewise.
13760 * doc/glibc-functions/listxattr.texi: Likewise.
13761 * doc/glibc-functions/llistxattr.texi: Likewise.
13762 * doc/glibc-functions/lremovexattr.texi: Likewise.
13763 * doc/glibc-functions/lsetxattr.texi: Likewise.
13764 * doc/glibc-functions/removexattr.texi: Likewise.
13765 * doc/glibc-functions/setxattr.texi: Likewise.
13766 * doc/posix-functions/open_memstream.texi: Likewise.
13768 2008-12-15 Eric Blake <ebb9@byu.net>
13770 Update doc for cygwin 1.7.
13771 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
13773 * doc/posix-functions/fchmodat.texi: Likewise.
13774 * doc/posix-functions/fchownat.texi: Likewise.
13775 * doc/posix-functions/fdopendir.texi: Likewise.
13776 * doc/posix-functions/fmemopen.texi: Likewise.
13777 * doc/posix-functions/freeaddrinfo.texi: Likewise.
13778 * doc/posix-functions/fstatat.texi: Likewise.
13779 * doc/posix-functions/futimens.texi: Likewise.
13780 * doc/posix-functions/gai_strerror.texi: Likewise.
13781 * doc/posix-functions/getaddrinfo.texi: Likewise.
13782 * doc/posix-functions/getnameinfo.texi: Likewise.
13783 * doc/posix-functions/if_freenameindex.texi: Likewise.
13784 * doc/posix-functions/if_indextoname.texi: Likewise.
13785 * doc/posix-functions/if_nameindex.texi: Likewise.
13786 * doc/posix-functions/if_nametoindex.texi: Likewise.
13787 * doc/posix-functions/insque.texi: Likewise.
13788 * doc/posix-functions/linkat.texi: Likewise.
13789 * doc/posix-functions/llrint.texi: Likewise.
13790 * doc/posix-functions/llrintf.texi: Likewise.
13791 * doc/posix-functions/llrintl.texi: Likewise.
13792 * doc/posix-functions/lockf.texi: Likewise.
13793 * doc/posix-functions/lrintl.texi: Likewise.
13794 * doc/posix-functions/mkdirat.texi: Likewise.
13795 * doc/posix-functions/mkfifoat.texi: Likewise.
13796 * doc/posix-functions/mknodat.texi: Likewise.
13797 * doc/posix-functions/mq_close.texi: Likewise.
13798 * doc/posix-functions/mq_getattr.texi: Likewise.
13799 * doc/posix-functions/mq_notify.texi: Likewise.
13800 * doc/posix-functions/mq_open.texi: Likewise.
13801 * doc/posix-functions/mq_receive.texi: Likewise.
13802 * doc/posix-functions/mq_send.texi: Likewise.
13803 * doc/posix-functions/mq_setattr.texi: Likewise.
13804 * doc/posix-functions/mq_timedreceive.texi: Likewise.
13805 * doc/posix-functions/mq_timedsend.texi: Likewise.
13806 * doc/posix-functions/mq_unlink.texi: Likewise.
13807 * doc/posix-functions/open_memstream.texi: Likewise.
13808 * doc/posix-functions/openat.texi: Likewise.
13809 * doc/posix-functions/posix_fadvise.texi: Likewise.
13810 * doc/posix-functions/posix_fallocate.texi: Likewise.
13811 * doc/posix-functions/posix_madvise.texi: Likewise.
13812 * doc/posix-functions/posix_memalign.texi: Likewise.
13813 * doc/posix-functions/posix_openpt.texi: Likewise.
13814 * doc/posix-functions/readlinkat.texi: Likewise.
13815 * doc/posix-functions/remque.texi: Likewise.
13816 * doc/posix-functions/renameat.texi: Likewise.
13817 * doc/posix-functions/rintl.texi: Likewise.
13818 * doc/posix-functions/sem_unlink.texi: Likewise.
13819 * doc/posix-functions/shm_open.texi: Likewise.
13820 * doc/posix-functions/shm_unlink.texi: Likewise.
13821 * doc/posix-functions/signgam.texi: Likewise.
13822 * doc/posix-functions/sigset.texi: Likewise.
13823 * doc/posix-functions/stpcpy.texi: Likewise.
13824 * doc/posix-functions/stpncpy.texi: Likewise.
13825 * doc/posix-functions/strerror.texi: Likewise.
13826 * doc/posix-functions/strtod.texi: Likewise.
13827 * doc/posix-functions/symlinkat.texi: Likewise.
13828 * doc/posix-functions/unlinkat.texi: Likewise.
13829 * doc/posix-functions/utimensat.texi: Likewise.
13830 * doc/glibc-functions/bindresvport.texi: Likewise.
13831 * doc/glibc-functions/dn_expand.texi: Likewise.
13832 * doc/glibc-functions/exp10.texi: Likewise.
13833 * doc/glibc-functions/exp10f.texi: Likewise.
13834 * doc/glibc-functions/fgetxattr.texi: Likewise.
13835 * doc/glibc-functions/flistxattr.texi: Likewise.
13836 * doc/glibc-functions/fopencookie.texi: Likewise.
13837 * doc/glibc-functions/freeifaddrs.texi: Likewise.
13838 * doc/glibc-functions/fremovexattr.texi: Likewise.
13839 * doc/glibc-functions/fsetxattr.texi: Likewise.
13840 * doc/glibc-functions/getifaddrs.texi: Likewise.
13841 * doc/glibc-functions/getxattr.texi: Likewise.
13842 * doc/glibc-functions/lgetxattr.texi: Likewise.
13843 * doc/glibc-functions/listxattr.texi: Likewise.
13844 * doc/glibc-functions/llistxattr.texi: Likewise.
13845 * doc/glibc-functions/lremovexattr.texi: Likewise.
13846 * doc/glibc-functions/lsetxattr.texi: Likewise.
13847 * doc/glibc-functions/pow10.texi: Likewise.
13848 * doc/glibc-functions/pow10f.texi: Likewise.
13849 * doc/glibc-functions/rcmd_af.texi: Likewise.
13850 * doc/glibc-functions/removexattr.texi: Likewise.
13851 * doc/glibc-functions/res_init.texi: Likewise.
13852 * doc/glibc-functions/res_mkquery.texi: Likewise.
13853 * doc/glibc-functions/res_query.texi: Likewise.
13854 * doc/glibc-functions/res_querydomain.texi: Likewise.
13855 * doc/glibc-functions/res_send.texi: Likewise.
13856 * doc/glibc-functions/rresvport_af.texi: Likewise.
13857 * doc/glibc-functions/setxattr.texi: Likewise.
13858 * doc/glibc-functions/strcasestr.texi: Likewise.
13860 2008-12-15 Bruno Haible <bruno@clisp.org>
13862 Fix compilation error on OSF/1 4.0.
13863 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
13864 <sys/time.h>, simply delegate to the system header.
13865 Reported by Daniel Richard G. <oss@teragram.com>.
13867 2008-12-15 Bruno Haible <bruno@clisp.org>
13869 * doc/posix-functions/openat.texi: Mention the 'openat' module.
13870 * doc/posix-functions/fchmodat.texi: Likewise.
13871 * doc/posix-functions/fchownat.texi: Likewise.
13872 * doc/posix-functions/fdopendir.texi: Likewise.
13873 * doc/posix-functions/fstatat.texi: Likewise.
13874 * doc/posix-functions/mkdirat.texi: Likewise.
13875 * doc/posix-functions/unlinkat.texi: Likewise.
13877 2008-12-14 Bruno Haible <bruno@clisp.org>
13879 Update doc for POSIX:2008.
13880 * doc/posix-functions/faccessat.texi: New file.
13881 * doc/posix-functions/fchmodat.texi: New file.
13882 * doc/posix-functions/fchownat.texi: New file.
13883 * doc/posix-functions/fdopendir.texi: New file.
13884 * doc/posix-functions/fstatat.texi: New file.
13885 * doc/posix-functions/futimens.texi: New file.
13886 * doc/posix-functions/linkat.texi: New file.
13887 * doc/posix-functions/mkdirat.texi: New file.
13888 * doc/posix-functions/mkfifoat.texi: New file.
13889 * doc/posix-functions/mknodat.texi: New file.
13890 * doc/posix-functions/open_wmemstream.texi: New file.
13891 * doc/posix-functions/openat.texi: New file.
13892 * doc/posix-functions/psiginfo.texi: New file.
13893 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
13894 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
13895 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
13896 * doc/posix-functions/readlinkat.texi: New file.
13897 * doc/posix-functions/renameat.texi: New file.
13898 * doc/posix-functions/strerror_l.texi: New file.
13899 * doc/posix-functions/symlinkat.texi: New file.
13900 * doc/posix-functions/unlinkat.texi: New file.
13901 * doc/posix-functions/utimensat.texi: New file.
13902 * doc/gnulib.texi (Function Substitutes): Add these subsections.
13904 2008-12-14 Bruno Haible <bruno@clisp.org>
13906 Update doc for POSIX:2008.
13907 * doc/posix-functions/alphasort.texi: Renamed from
13908 doc/glibc-functions/alphasort.texi.
13909 * doc/posix-functions/dirfd.texi: Renamed from
13910 doc/glibc-functions/dirfd.texi.
13911 * doc/posix-functions/dprintf.texi: Renamed from
13912 doc/glibc-functions/dprintf.texi.
13913 * doc/posix-functions/duplocale.texi: Renamed from
13914 doc/glibc-functions/duplocale.texi.
13915 * doc/posix-functions/fexecve.texi: Renamed from
13916 doc/glibc-functions/fexecve.texi.
13917 * doc/posix-functions/fmemopen.texi: Renamed from
13918 doc/glibc-functions/fmemopen.texi.
13919 * doc/posix-functions/freelocale.texi: Renamed from
13920 doc/glibc-functions/freelocale.texi.
13921 * doc/posix-functions/getdate_err.texi: Renamed from
13922 doc/glibc-functions/getdate_err.texi.
13923 * doc/posix-functions/isalnum_l.texi: Renamed from
13924 doc/glibc-functions/isalnum_l.texi.
13925 * doc/posix-functions/isalpha_l.texi: Renamed from
13926 doc/glibc-functions/isalpha_l.texi.
13927 * doc/posix-functions/isblank_l.texi: Renamed from
13928 doc/glibc-functions/isblank_l.texi.
13929 * doc/posix-functions/iscntrl_l.texi: Renamed from
13930 doc/glibc-functions/iscntrl_l.texi.
13931 * doc/posix-functions/isdigit_l.texi: Renamed from
13932 doc/glibc-functions/isdigit_l.texi.
13933 * doc/posix-functions/isgraph_l.texi: Renamed from
13934 doc/glibc-functions/isgraph_l.texi.
13935 * doc/posix-functions/islower_l.texi: Renamed from
13936 doc/glibc-functions/islower_l.texi.
13937 * doc/posix-functions/isprint_l.texi: Renamed from
13938 doc/glibc-functions/isprint_l.texi.
13939 * doc/posix-functions/ispunct_l.texi: Renamed from
13940 doc/glibc-functions/ispunct_l.texi.
13941 * doc/posix-functions/isspace_l.texi: Renamed from
13942 doc/glibc-functions/isspace_l.texi.
13943 * doc/posix-functions/isupper_l.texi: Renamed from
13944 doc/glibc-functions/isupper_l.texi.
13945 * doc/posix-functions/iswalnum_l.texi: Renamed from
13946 doc/glibc-functions/iswalnum_l.texi.
13947 * doc/posix-functions/iswalpha_l.texi: Renamed from
13948 doc/glibc-functions/iswalpha_l.texi.
13949 * doc/posix-functions/iswblank_l.texi: Renamed from
13950 doc/glibc-functions/iswblank_l.texi.
13951 * doc/posix-functions/iswcntrl_l.texi: Renamed from
13952 doc/glibc-functions/iswcntrl_l.texi.
13953 * doc/posix-functions/iswctype_l.texi: Renamed from
13954 doc/glibc-functions/iswctype_l.texi.
13955 * doc/posix-functions/iswdigit_l.texi: Renamed from
13956 doc/glibc-functions/iswdigit_l.texi.
13957 * doc/posix-functions/iswgraph_l.texi: Renamed from
13958 doc/glibc-functions/iswgraph_l.texi.
13959 * doc/posix-functions/iswlower_l.texi: Renamed from
13960 doc/glibc-functions/iswlower_l.texi.
13961 * doc/posix-functions/iswprint_l.texi: Renamed from
13962 doc/glibc-functions/iswprint_l.texi.
13963 * doc/posix-functions/iswpunct_l.texi: Renamed from
13964 doc/glibc-functions/iswpunct_l.texi.
13965 * doc/posix-functions/iswspace_l.texi: Renamed from
13966 doc/glibc-functions/iswspace_l.texi.
13967 * doc/posix-functions/iswupper_l.texi: Renamed from
13968 doc/glibc-functions/iswupper_l.texi.
13969 * doc/posix-functions/iswxdigit_l.texi: Renamed from
13970 doc/glibc-functions/iswxdigit_l.texi.
13971 * doc/posix-functions/isxdigit_l.texi: Renamed from
13972 doc/glibc-functions/isxdigit_l.texi.
13973 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
13974 doc/glibc-functions/mbsnrtowcs.texi.
13975 * doc/posix-functions/mkdtemp.texi: Renamed from
13976 doc/glibc-functions/mkdtemp.texi.
13977 * doc/posix-functions/newlocale.texi: Renamed from
13978 doc/glibc-functions/newlocale.texi.
13979 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
13980 doc/glibc-functions/nl_langinfo_l.texi.
13981 * doc/posix-functions/open_memstream.texi: Renamed from
13982 doc/glibc-functions/open_memstream.texi.
13983 * doc/posix-functions/opterr.texi: Renamed from
13984 doc/glibc-functions/opterr.texi.
13985 * doc/posix-functions/optind.texi: Renamed from
13986 doc/glibc-functions/optind.texi.
13987 * doc/posix-functions/optopt.texi: Renamed from
13988 doc/glibc-functions/optopt.texi.
13989 * doc/posix-functions/psignal.texi: Renamed from
13990 doc/glibc-functions/psignal.texi.
13991 * doc/posix-functions/scandir.texi: Renamed from
13992 doc/glibc-functions/scandir.texi.
13993 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
13994 doc/glibc-functions/sched_get_priority_min.texi.
13995 * doc/posix-functions/signgam.texi: Renamed from
13996 doc/glibc-functions/signgam.texi.
13997 * doc/posix-functions/stpcpy.texi: Renamed from
13998 doc/glibc-functions/stpcpy.texi.
13999 * doc/posix-functions/stpncpy.texi: Renamed from
14000 doc/glibc-functions/stpncpy.texi.
14001 * doc/posix-functions/strcasecmp_l.texi: Renamed from
14002 doc/glibc-functions/strcasecmp_l.texi.
14003 * doc/posix-functions/strcoll_l.texi: Renamed from
14004 doc/glibc-functions/strcoll_l.texi.
14005 * doc/posix-functions/strfmon_l.texi: Renamed from
14006 doc/glibc-functions/strfmon_l.texi.
14007 * doc/posix-functions/strftime_l.texi: Renamed from
14008 doc/glibc-functions/strftime_l.texi.
14009 * doc/posix-functions/strncasecmp_l.texi: Renamed from
14010 doc/glibc-functions/strncasecmp_l.texi.
14011 * doc/posix-functions/strndup.texi: Renamed from
14012 doc/glibc-functions/strndup.texi.
14013 * doc/posix-functions/strnlen.texi: Renamed from
14014 doc/glibc-functions/strnlen.texi.
14015 * doc/posix-functions/strsignal.texi: Renamed from
14016 doc/glibc-functions/strsignal.texi.
14017 * doc/posix-functions/strxfrm_l.texi: Renamed from
14018 doc/glibc-functions/strxfrm_l.texi.
14019 * doc/posix-functions/timer_gettime.texi: Renamed from
14020 doc/glibc-functions/timer_gettime.texi.
14021 * doc/posix-functions/tolower_l.texi: Renamed from
14022 doc/glibc-functions/tolower_l.texi.
14023 * doc/posix-functions/toupper_l.texi: Renamed from
14024 doc/glibc-functions/toupper_l.texi.
14025 * doc/posix-functions/towctrans_l.texi: Renamed from
14026 doc/glibc-functions/towctrans_l.texi.
14027 * doc/posix-functions/towlower_l.texi: Renamed from
14028 doc/glibc-functions/towlower_l.texi.
14029 * doc/posix-functions/towupper_l.texi: Renamed from
14030 doc/glibc-functions/towupper_l.texi.
14031 * doc/posix-functions/uselocale.texi: Renamed from
14032 doc/glibc-functions/uselocale.texi.
14033 * doc/posix-functions/vdprintf.texi: Renamed from
14034 doc/glibc-functions/vdprintf.texi.
14035 * doc/posix-functions/wcpcpy.texi:
14036 Renamed from doc/glibc-functions/wcpcpy.texi.
14037 * doc/posix-functions/wcpncpy.texi: Renamed from
14038 doc/glibc-functions/wcpncpy.texi.
14039 * doc/posix-functions/wcscasecmp.texi: Renamed from
14040 doc/glibc-functions/wcscasecmp.texi.
14041 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
14042 doc/glibc-functions/wcscasecmp_l.texi.
14043 * doc/posix-functions/wcscoll_l.texi: Renamed from
14044 doc/glibc-functions/wcscoll_l.texi.
14045 * doc/posix-functions/wcsdup.texi: Renamed from
14046 doc/glibc-functions/wcsdup.texi.
14047 * doc/posix-functions/wcsncasecmp.texi: Renamed from
14048 doc/glibc-functions/wcsncasecmp.texi.
14049 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
14050 doc/glibc-functions/wcsncasecmp_l.texi.
14051 * doc/posix-functions/wcsnlen.texi: Renamed from
14052 doc/glibc-functions/wcsnlen.texi.
14053 * doc/posix-functions/wcsnrtombs.texi: Renamed from
14054 doc/glibc-functions/wcsnrtombs.texi.
14055 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
14056 doc/glibc-functions/wcsxfrm_l.texi.
14057 * doc/posix-functions/wctrans_l.texi: Renamed from
14058 doc/glibc-functions/wctrans_l.texi.
14059 * doc/posix-functions/wctype_l.texi: Renamed from
14060 doc/glibc-functions/wctype_l.texi.
14061 * doc/gnulib.texi (Function Substitutes): Add these subsections.
14062 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
14063 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
14064 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
14066 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
14069 2008-12-14 Bruno Haible <bruno@clisp.org>
14071 Update doc for POSIX:2008.
14072 * doc/posix-functions/*.texi: Update URL of POSIX specification.
14074 2008-12-14 Bruno Haible <bruno@clisp.org>
14076 Update doc for POSIX:2008.
14077 * doc/pastposix-functions/bcmp.texi: Renamed from
14078 doc/posix-functions/bcmp.texi.
14079 * doc/pastposix-functions/bcopy.texi: Renamed from
14080 doc/posix-functions/bcopy.texi.
14081 * doc/pastposix-functions/bsd_signal.texi: Renamed from
14082 doc/posix-functions/bsd_signal.texi.
14083 * doc/pastposix-functions/bzero.texi: Renamed from
14084 doc/posix-functions/bzero.texi.
14085 * doc/pastposix-functions/ecvt.texi: Renamed from
14086 doc/posix-functions/ecvt.texi.
14087 * doc/pastposix-functions/fcvt.texi: Renamed from
14088 doc/posix-functions/fcvt.texi.
14089 * doc/pastposix-functions/ftime.texi: Renamed from
14090 doc/posix-functions/ftime.texi.
14091 * doc/pastposix-functions/gcvt.texi: Renamed from
14092 doc/posix-functions/gcvt.texi.
14093 * doc/pastposix-functions/getcontext.texi: Renamed from
14094 doc/posix-functions/getcontext.texi.
14095 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
14096 doc/posix-functions/gethostbyaddr.texi.
14097 * doc/pastposix-functions/gethostbyname.texi: Renamed from
14098 doc/posix-functions/gethostbyname.texi.
14099 * doc/pastposix-functions/getwd.texi: Renamed from
14100 doc/posix-functions/getwd.texi.
14101 * doc/pastposix-functions/h_errno.texi: Renamed from
14102 doc/posix-functions/h_errno.texi.
14103 * doc/pastposix-functions/index.texi: Renamed from
14104 doc/posix-functions/index.texi.
14105 * doc/pastposix-functions/makecontext.texi: Renamed from
14106 doc/posix-functions/makecontext.texi.
14107 * doc/pastposix-functions/mktemp.texi: Renamed from
14108 doc/posix-functions/mktemp.texi.
14109 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
14110 doc/posix-functions/pthread_attr_getstackaddr.texi.
14111 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
14112 doc/posix-functions/pthread_attr_setstackaddr.texi.
14113 * doc/pastposix-functions/rindex.texi: Renamed from
14114 doc/posix-functions/rindex.texi.
14115 * doc/pastposix-functions/scalb.texi: Renamed from
14116 doc/posix-functions/scalb.texi.
14117 * doc/pastposix-functions/setcontext.texi: Renamed from
14118 doc/posix-functions/setcontext.texi.
14119 * doc/pastposix-functions/swapcontext.texi: Renamed from
14120 doc/posix-functions/swapcontext.texi.
14121 * doc/pastposix-functions/ualarm.texi: Renamed from
14122 doc/posix-functions/ualarm.texi.
14123 * doc/pastposix-functions/usleep.texi: Renamed from
14124 doc/posix-functions/usleep.texi.
14125 * doc/pastposix-functions/vfork.texi: Renamed from
14126 doc/posix-functions/vfork.texi.
14127 * doc/pastposix-functions/wcswcs.texi: Renamed from
14128 doc/posix-functions/wcswcs.texi.
14129 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
14130 (Function Substitutes): Update.
14132 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14134 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
14137 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14138 Bruno Haible <bruno@clisp.org>
14140 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
14142 2008-12-13 Bruno Haible <bruno@clisp.org>
14144 * modules/strtoull (Depends-on): Remove unistd.
14146 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14148 * modules/strtoull (Depends-on): Add stdlib.
14150 2008-12-11 Simon Josefsson <simon@josefsson.org>
14152 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
14154 2008-12-10 Jim Meyering <meyering@redhat.com>
14156 gl_ASSERT: don't say assertions are disabled when they're not
14157 * m4/assert.m4 (gl_ASSERT): Do not make configure report
14158 "checking whether to enable assertions... no", when they are in
14159 fact enabled. This is solely a bug in the output of configure.
14160 In spite of saying "no", NDEBUG was not defined in that case.
14161 Also, as noted by Eric Blake, leave assertions enabled upon
14162 --enable-assert=INVALID.
14164 2008-12-10 Bruno Haible <bruno@clisp.org>
14166 Change MODULES.html to refer to POSIX:2008 where possible.
14167 * MODULES.html.sh (POSIX2008_URL): New variable.
14168 (posix_headers): Remove sys/timeb, ucontext.
14169 (posix2001_headers): New variable.
14170 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
14171 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
14172 index, makecontext, mktemp, pthread_attr_getstackaddr,
14173 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
14174 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
14175 (posix2001_functions): New variable.
14176 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
14179 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14181 add missing include to parse-duration.c
14182 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
14183 * modules/parse-duration (Depends-on): Add xalloc.
14185 fix sed script reading maint.mk
14186 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
14187 (syntax-check-rules): Use it.
14189 2008-12-09 Bruno Haible <bruno@clisp.org>
14191 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
14192 MacOS X 10.4/PowerPC.
14193 Reported by Simon Josefsson.
14195 2008-12-08 Jim Meyering <meyering@redhat.com>
14197 work around mingw's lack of some S_IF definitions
14198 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
14199 Reported by Simon Josefsson.
14201 2008-12-08 Bruno Haible <bruno@clisp.org>
14203 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
14204 applied to variables. Needed on MacOS X 10.4/PowerPC.
14205 Reported by Simon Josefsson.
14207 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
14208 and Eric Blake <ebb9@byu.net>
14210 assert: honor --enable-assert
14211 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
14212 order to honor --enable-assert, rather than treating it as a
14213 synonym for --disable-assert.
14215 2008-12-08 Jim Meyering <meyering@redhat.com>
14217 * lib/posixtm.c: Remove now-useless declaration of mktime.
14219 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
14221 2008-12-07 Bruno Haible <bruno@clisp.org>
14223 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
14224 test_once): Mark functions as static.
14225 * tests/test-tls.c (test_tls): Likewise.
14227 2008-12-07 Bruno Haible <bruno@clisp.org>
14229 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
14230 iconv_register_autodetect.
14232 2008-12-07 Jim Meyering <meyering@redhat.com>
14234 posixtm.c: avoid a warning
14235 * lib/posixtm.c (posixtime): Don't initialize tm0.
14236 It's no longer needed to placate gcc4's -Wuninitialized,
14237 and the attempt to placate would elicit a new warning.
14239 unicodeio.c: mark unused parameters
14240 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
14241 (fallback_failure_callback): Likewise.
14243 2008-12-07 Bruno Haible <bruno@clisp.org>
14245 * gnulib-tool (func_create_testdir): When building the tests
14246 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
14247 Reported by Simon Josefsson.
14249 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14251 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
14253 2008-12-06 Bruno Haible <bruno@clisp.org>
14255 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
14256 Suggested by Eric Blake.
14258 2008-12-06 Bruno Haible <bruno@clisp.org>
14260 Fix a c-stack test failure on MacOS X.
14261 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
14262 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
14263 handler for SIGBUS as well.
14264 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
14265 install a signal handler for SIGBUS as well.
14266 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
14268 2008-12-06 Bruno Haible <bruno@clisp.org>
14270 Advocacy documentation.
14271 * doc/gnulib-intro.texi (Benefits): New section.
14272 * doc/gnulib.texi: Update.
14274 2008-12-06 Bruno Haible <bruno@clisp.org>
14276 Document the 'manywarnings' module.
14277 * doc/manywarnings.texi: New file.
14278 * doc/gnulib.texi: Include it.
14280 2008-12-05 Eric Blake <ebb9@byu.net>
14282 tests: silence some gcc warnings
14283 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
14284 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
14287 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14288 Bruno Haible <bruno@clisp.org>
14290 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
14292 2008-11-29 Jim Meyering <meyering@redhat.com>
14294 unicodeio.c: mark unused parameters
14295 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
14296 (fallback_failure_callback): Likewise.
14299 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
14300 (set_stat_type): Return S_IF*-valued "type" directly.
14301 Prompted by James Youngman's spotting a related bug.
14302 Confirmed by further testing through find.
14304 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
14305 * lib/fts.c (D_TYPE): Define.
14306 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
14307 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
14308 (s_ifmt_shift_bits): New function.
14309 (set_stat_type): New function.
14310 (fts_build): When not calling fts_stat, call set_stat_type
14311 to propagate dirent.d_type info to fts_read caller.
14312 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
14313 fts_statp->st_mode type information may be valid.
14315 2008-11-28 Simon Josefsson <simon@josefsson.org>
14317 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
14318 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
14321 2008-11-20 Bruno Haible <bruno@clisp.org>
14323 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
14324 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
14326 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
14327 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
14328 * modules/math (Makefile.am): Substitute
14329 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
14330 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14332 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
14333 Bruno Haible <bruno@clisp.org>
14335 * lib/stdint.in.h: Define all type macros so that their expansion is
14336 a single typedef'ed token. Fixes a compilation failure in Boost which
14337 does "using ::int8_t;".
14339 2008-11-18 Simon Josefsson <simon@josefsson.org>
14341 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
14342 gl_MANYWARN_ALL_GCC.
14343 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
14344 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
14345 * modules/manywarnings: New file.
14346 * MODULES.html.sh: Mention manywarnings module.
14348 2008-11-18 Bruno Haible <bruno@clisp.org>
14350 * doc/gnulib-tool.texi (Unit tests): New section.
14352 2008-11-18 Simon Josefsson <simon@josefsson.org>
14354 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
14355 paths like 'lib/po/foo.po'.
14357 2008-11-17 Simon Josefsson <simon@josefsson.org>
14359 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
14360 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
14362 2008-11-17 Simon Josefsson <simon@josefsson.org>
14364 * m4/warnings.m4: Use CPPFLAGS to really check whether the
14367 2008-11-17 Simon Josefsson <simon@josefsson.org>
14369 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
14371 2008-11-17 Bruce Korb <bkorb@gnu.org>
14373 * modules/parse-duration-tests: New file.
14374 * tests/test-parse-duration.sh: New file.
14375 * tests/test-parse-duration.c: New file.
14377 New module 'parse-duration'.
14378 * lib/parse-duration.h: New file.
14379 * lib/parse-duration.c: New file.
14380 * modules/parse-duration: New file.
14382 2008-11-17 Bruno Haible <bruno@clisp.org>
14384 * tests/test-select-out.sh: Comment out the first pipe test.
14385 Reported by Simon Josefsson.
14387 2008-11-17 Bruno Haible <bruno@clisp.org>
14389 * modules/getaddrinfo (Depends-on): Add servent, hostent.
14390 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
14393 2008-11-17 Bruno Haible <bruno@clisp.org>
14395 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
14396 -lnetwork and -lnet. Needed for Haiku and BeOS.
14398 2008-11-16 Bruno Haible <bruno@clisp.org>
14400 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
14402 2008-11-16 Bruno Haible <bruno@clisp.org>
14404 Avoid test failure on Haiku.
14405 * tests/test-fsync.c: Include <errno.h>.
14406 (main): Don't require that fsync (0) fails.
14408 2008-11-15 Bruno Haible <bruno@clisp.org>
14410 New module 'hostent'.
14411 * modules/hostent: New file.
14412 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
14414 2008-11-15 Bruno Haible <bruno@clisp.org>
14416 New module 'servent'.
14417 * modules/servent: New file.
14418 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
14420 2008-11-15 Bruno Haible <bruno@clisp.org>
14422 Avoid generating same test program with two different rules.
14423 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
14424 test-frexp to test-frexp-nolibm.
14425 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
14426 test-frexpl to test-frexpl-nolibm.
14428 2008-11-15 Bruno Haible <bruno@clisp.org>
14430 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
14433 2008-11-15 Bruno Haible <bruno@clisp.org>
14435 * lib/netdb.in.h: Activate the definitions also when the system's
14436 <netdb.h> has 'struct addrinfo'.
14437 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
14438 EAI_OVERFLOW or AI_NUMERICSERV.
14439 * doc/posix-headers/netdb.texi: Document the problem.
14441 2008-11-15 Bruno Haible <bruno@clisp.org>
14443 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
14445 Make the 'sched' module work on platforms where <sched.h> exists but
14446 is incomplete (such as Haiku).
14447 * lib/sched.in.h; Include the system's <sched.h> if it exists.
14448 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
14449 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
14450 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
14451 HAVE_STRUCT_SCHED_PARAM.
14452 * modules/sched (Depends-on): Add include_next.
14453 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
14454 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
14455 * doc/posix-headers/sched.texi: Document the issue.
14457 2008-11-13 Jim Meyering <meyering@redhat.com>
14459 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
14460 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
14461 test would fail due to the difference in the Report bugs to ...
14462 line. The expected address is empty, "<>", while the actual
14463 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
14465 2008-11-12 Bruno Haible <bruno@clisp.org>
14467 lstat: don't compile lstat.c on systems lacking lstat
14468 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
14469 which don't have lstat; this is handled by lib/sys_stat.in.h already.
14470 Reported by Daniel P. Berrange via Jim Meyering.
14472 2008-11-12 Jim Meyering <meyering@redhat.com>
14474 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
14476 2008-11-12 Simon Josefsson <simon@josefsson.org>
14478 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
14481 2008-11-12 Bruno Haible <bruno@clisp.org>
14483 * lib/unicodeio.c: Include unistr.h.
14484 (utf8_wctomb): Remove function.
14485 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
14487 2008-11-12 Simon Josefsson <simon@josefsson.org>
14489 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
14490 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
14492 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
14494 2008-11-12 Simon Josefsson <simon@josefsson.org>
14496 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
14497 * doc/gnulib.texi: Add section for warnings.
14499 2008-11-11 Bruno Haible <bruno@clisp.org>
14501 * lib/sockets.h: Add a comment.
14503 2008-11-11 Karl Berry <karl@gnu.org>
14505 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
14507 2008-11-11 Eric Blake <ebb9@byu.net>
14509 fdl.texi: avoid git symlinks
14510 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
14512 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
14514 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
14516 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
14518 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
14519 (gl_WARN_ADD): Substitute $2 if literal.
14521 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
14523 * m4/warning.m4: Remove.
14525 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
14527 * m4/warnings.m4: Almost complete rewrite. :-)
14529 2008-11-10 Simon Josefsson <simon@josefsson.org>
14531 * modules/warnings: New module.
14532 * m4/warnings.m4: New file.
14533 * MODULES.html.sh: Mention warnings module.
14534 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
14535 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14537 2008-11-10 Eric Blake <ebb9@byu.net>
14539 fdl.texi: make a symlink to the latest version
14540 * doc/standards.texi: Revert today's earlier change.
14541 * doc/fdl-1.2.texi: Rename from old fdl.texi...
14542 * doc/fdl.texi: ...and replace this with a symlink to the newer
14545 2008-11-10 Bruno Haible <bruno@clisp.org>
14547 * tests/test-select-fd.c (main): Accept the result file name as fourth
14549 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
14550 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
14552 2008-11-10 Bruno Haible <bruno@clisp.org>
14554 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
14555 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
14556 as autoconf-substituted macros.
14557 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
14558 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
14559 gl_NETDB_H_DEFAULTS. Set these variables.
14560 * modules/netdb (Makefile.am): Substitute these variables.
14562 2008-11-10 Eric Blake <ebb9@byu.net>
14564 standards.texi: include correct file for FDL 1.3
14565 * doc/standards.texi (GNU Free Documentation License): Change
14566 include file to pull in FDL 1.3, not 1.2.
14568 fdl.texi: revert accidental change to license
14569 * doc/fdl.texi: This is FDL 1.2, not 1.3.
14571 2008-11-10 Bruno Haible <bruno@clisp.org>
14573 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
14574 cross-compiling guesses also when the native compile gives no result.
14576 2008-11-10 Bruno Haible <bruno@clisp.org>
14578 * lib/spawni.c (__spawni): Force variable into the stack.
14580 2008-11-10 Bruno Haible <bruno@clisp.org>
14582 Add support for Haiku.
14583 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
14584 glibc and BeOS, but also on Haiku.
14585 * lib/fpurge.c (fpurge): Likewise.
14586 * lib/freadable.c (freadable): Likewise.
14587 * lib/freadahead.c (freadahead): Likewise.
14588 * lib/freading.c (freading): Likewise.
14589 * lib/freadptr.c (freadptr): Likewise.
14590 * lib/freadseek.c (freadptrinc): Likewise.
14591 * lib/fseeko.c (rpl_fseeko): Likewise.
14592 * lib/fseterr.c (fseterr): Likewise.
14593 * lib/fwritable.c (fwritable): Likewise.
14594 * lib/fwriting.c (fwriting): Likewise.
14595 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
14597 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
14599 * lib/config.charset: Treat Haiku like BeOS.
14601 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
14603 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
14604 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
14606 2008-11-08 Bruno Haible <bruno@clisp.org>
14608 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
14611 2008-11-08 Bruno Haible <bruno@clisp.org>
14613 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
14615 2008-11-08 Bruno Haible <bruno@clisp.org>
14617 * tests/test-select-fd.c: New file.
14618 * tests/test-select-in.sh: New file.
14619 * tests/test-select-out.sh: New file.
14620 * tests/test-select-stdin.c: New file.
14621 * modules/select-tests (Files): Add the new files.
14622 (Depends-on): Add gettimeofday.
14623 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
14624 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
14625 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
14627 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
14628 Bruno Haible <bruno@clisp.org>
14630 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
14632 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
14634 * build-aux/pmccabe2html: Added support for C++ source files.
14636 2008-11-05 Ben Pfaff <blp@gnu.org>
14638 Fix lib/close.c build on Windows.
14639 * modules/close (Files): Add lib/w32sock.h.
14641 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
14643 Accept Bison's NEWS format.
14644 * build-aux/announce-gen (print_news_deltas): Tweak
14647 2008-11-04 Bruno Haible <bruno@clisp.org>
14649 * modules/random_r (Maintainer): Add glibc.
14651 2008-11-04 Simon Josefsson <simon@josefsson.org>
14653 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
14654 by karl@freefriends.org (Karl Berry).
14655 * doc/alloca.texi: Likewise.
14656 * doc/c-ctype.texi: Likewise.
14657 * doc/c-strcase.texi: Likewise.
14658 * doc/c-strcaseeq.texi: Likewise.
14659 * doc/c-strcasestr.texi: Likewise.
14660 * doc/c-strstr.texi: Likewise.
14661 * doc/c-strtod.texi: Likewise.
14662 * doc/c-strtold.texi: Likewise.
14663 * doc/ctime.texi: Likewise.
14664 * doc/error.texi: Likewise.
14665 * doc/fdl.texi: Likewise.
14666 * doc/gcd.texi: Likewise.
14667 * doc/getdate.texi: Likewise.
14668 * doc/gnulib-intro.texi: Likewise.
14669 * doc/gnulib-tool.texi: Likewise.
14670 * doc/gnulib.texi: Likewise.
14671 * doc/inet_ntoa.texi: Likewise.
14672 * doc/maintain.texi: Likewise.
14673 * doc/make-stds.texi: Likewise.
14674 * doc/quote.texi: Likewise.
14675 * doc/regexprops-generic.texi: Likewise.
14676 * doc/standards.texi: Likewise.
14677 * doc/verify.texi: Likewise.
14678 * doc/visibility.texi: Likewise.
14679 * doc/gnulib.texi (GNU Free Documentation License): Include
14680 fdl-1.3.texi instead of fdl.texi.
14682 2008-11-04 Simon Josefsson <simon@josefsson.org>
14684 * doc/fdl-1.3.texi: New file, from
14685 <http://www.gnu.org/licenses/fdl-1.3.texi>.
14686 * modules/fdl-1.3: Add.
14687 * MODULES.html.sh: Add fdl-1.3.
14689 2008-11-03 Bruno Haible <bruno@clisp.org>
14691 Make determination of absolute name of header file work with AIX xlc.
14692 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
14693 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
14695 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14696 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
14698 2008-11-03 Simon Josefsson <simon@josefsson.org>
14700 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
14701 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
14704 2008-11-02 Bruno Haible <bruno@clisp.org>
14706 Mark 'strpbrk' obsolete.
14707 * modules/strpbrk (Status, Notice): New sections.
14708 * modules/strtok_r (Depends-on): Add strpbrk.
14710 2008-11-02 Bruno Haible <bruno@clisp.org>
14712 Mark 'strdup' obsolete.
14713 * modules/strdup (Status, Notice): New sections.
14714 * modules/findprog (Depends-on): Add strdup.
14715 * modules/getaddrinfo (Depends-on): Likewise.
14716 * modules/localename (Depends-on): Likewise.
14717 * modules/relocatable-lib (Depends-on): Likewise.
14718 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
14719 * modules/relocatable-prog (Depends-on): Likewise.
14720 * modules/trim (Depends-on): Likewise.
14721 * modules/unictype/gen-ctype (Depends-on): Likewise.
14722 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
14724 2008-11-02 Bruno Haible <bruno@clisp.org>
14726 Mark 'strcspn' obsolete.
14727 * modules/strcspn (Status, Notice): New sections.
14729 2008-11-02 Bruno Haible <bruno@clisp.org>
14731 Mark 'rmdir' obsolete.
14732 * modules/rmdir (Status, Notice): New sections.
14733 * modules/clean-temp (Depends-on): Add rmdir.
14734 * modules/openat (Depends-on): Likewise.
14736 2008-11-02 Bruno Haible <bruno@clisp.org>
14738 Mark 'raise' obsolete.
14739 * modules/raise (Status, Notice): New sections.
14740 (Include): Specify <signal.h>.
14741 * modules/stdio (Depends-on): Add raise.
14742 * modules/write (Depends-on): Likewise.
14744 2008-11-02 Bruno Haible <bruno@clisp.org>
14746 Mark 'memset' obsolete.
14747 * modules/memset (Status, Notice): New sections.
14749 2008-11-02 Bruno Haible <bruno@clisp.org>
14751 Mark 'memmove' obsolete.
14752 * modules/memmove (Status, Notice): New sections.
14753 * modules/argp (Depends-on): Add memmove.
14754 * modules/argz (Depends-on): Likewise.
14755 * modules/canonicalize (Depends-on): Likewise.
14756 * modules/canonicalize-lgpl (Depends-on): Likewise.
14757 * modules/fts (Depends-on): Likewise.
14758 * modules/getcwd (Depends-on): Likewise.
14759 * modules/human (Depends-on): Likewise.
14760 * modules/regex (Depends-on): Likewise.
14761 * modules/striconveh (Depends-on): Likewise.
14762 * modules/trim (Depends-on): Likewise.
14763 * modules/unistr/u8-move (Depends-on): Likewise.
14764 * modules/unistr/u16-move (Depends-on): Likewise.
14765 * modules/unistr/u32-move (Depends-on): Likewise.
14767 2008-11-02 Bruno Haible <bruno@clisp.org>
14769 Mark 'memcpy' obsolete.
14770 * modules/memcpy (Status, Notice): New sections.
14772 2008-11-02 Bruno Haible <bruno@clisp.org>
14774 Mark 'memcmp' obsolete.
14775 * modules/memcmp (Status, Notice): New sections.
14776 * modules/argmatch (Depends-on): Add memchr.
14777 * modules/backupfile (Depends-on): Likewise.
14778 * modules/c-strcasestr (Depends-on): Likewise.
14779 * modules/crypto/des (Depends-on): Likewise.
14780 * modules/csharpcomp (Depends-on): Likewise.
14781 * modules/fnmatch (Depends-on): Likewise.
14782 * modules/git-merge-changelog (Depends-on): Likewise.
14783 * modules/isnand (Depends-on): Likewise.
14784 * modules/isnand-nolibm (Depends-on): Likewise.
14785 * modules/isnanf (Depends-on): Likewise.
14786 * modules/isnanf-nolibm (Depends-on): Likewise.
14787 * modules/isnanl (Depends-on): Likewise.
14788 * modules/isnanl-nolibm (Depends-on): Likewise.
14789 * modules/mbchar (Depends-on): Likewise.
14790 * modules/memcoll (Depends-on): Likewise.
14791 * modules/quotearg (Depends-on): Likewise.
14792 * modules/regex (Depends-on): Likewise.
14793 * modules/relocatable-prog (Depends-on): Likewise.
14794 * modules/same (Depends-on): Likewise.
14795 * modules/signbit (Depends-on): Likewise.
14796 * modules/strcasestr-simple (Depends-on): Likewise.
14797 * modules/unictype/gen-ctype (Depends-on): Likewise.
14798 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
14799 * modules/uniname/uniname (Depends-on): Likewise.
14800 * modules/unistr/u8-cmp (Depends-on): Likewise.
14802 2008-11-02 Bruno Haible <bruno@clisp.org>
14804 Mark 'memchr' obsolete.
14805 * modules/memchr (Status, Notice): New sections.
14806 * modules/argp (Depends-on): Add memchr.
14807 * modules/base64 (Depends-on): Likewise.
14808 * modules/c-strcasestr (Depends-on): Likewise.
14809 * modules/chdir-long (Depends-on): Likewise.
14810 * modules/fnmatch (Depends-on): Likewise.
14811 * modules/getsubopt (Depends-on): Likewise.
14812 * modules/git-merge-changelog (Depends-on): Likewise.
14813 * modules/glob (Depends-on): Likewise.
14814 * modules/strcasestr-simple (Depends-on): Likewise.
14815 * modules/strnlen (Depends-on): Likewise.
14817 2008-11-02 Bruno Haible <bruno@clisp.org>
14819 Mark 'atexit' obsolete.
14820 * modules/atexit (Status, Notice): New sections.
14821 * modules/chdir-long (Depends-on): Add atexit.
14822 * modules/wait-process (Depends-on): Likewise.
14824 2008-11-02 Bruno Haible <bruno@clisp.org>
14826 * gnulib-tool: New option --with-obsolete.
14827 (func_usage): Document it.
14828 (func_modules_transitive_closure): Drop obsolete dependencies if
14829 incobsolete is not true.
14830 (func_import): Read and save the incobsolete variable to the cache.
14832 2008-11-02 Bruno Haible <bruno@clisp.org>
14834 * modules/TEMPLATE-EXTENDED: New field 'Status'.
14835 * gnulib-tool: New option --extract-status.
14836 (func_usage): Document it.
14837 (sed_extract_prog): Recognize it.
14838 (func_get_status): New function.
14840 2008-10-30 Simon Josefsson <simon@josefsson.org>
14842 * modules/sockets (License): Change from LGPL to LGPLv2+.
14844 2008-10-28 Simon Josefsson <simon@josefsson.org>
14846 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
14848 2008-10-28 Simon Josefsson <simon@josefsson.org>
14850 * MODULES.html.sh (Support for systems lacking POSIX:2001):
14851 Mention times and sys_times.
14852 * modules/sys_times, modules/sys_times-tests: New modules.
14853 * modules/times, modules/times-tests: Likewise
14854 * m4/sys_times_h.m4: New file.
14855 * lib/sys_times.in.h: Likewise
14856 * lib/times.c: Likewise.
14857 * tests/test-sys_times.c: Likewise.
14858 * tests/test-times.c: Likewise.
14859 * doc/posix-headers/sys_times.texi: Update.
14860 * doc/posix-functions/times.texi: Update.
14862 2008-10-28 Jim Meyering <meyering@redhat.com>
14864 * modules/tempname (Depends-on): Add lstat.
14866 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
14868 2008-10-28 Simon Josefsson <simon@josefsson.org>
14870 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
14871 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
14872 using idiom used elsewhere in gnulib.
14874 2008-10-27 Jim Meyering <meyering@redhat.com>
14876 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
14878 2008-10-27 Simon Josefsson <simon@josefsson.org>
14880 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
14881 TESTS_ENVIRONMENT, for shell scripts that needs to call built
14883 * tests/test-argp-2.sh: Use $EXEEXT when needed.
14885 2008-10-27 Simon Josefsson <simon@josefsson.org>
14887 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
14889 2008-10-27 Bruno Haible <bruno@clisp.org>
14891 * tests/test-lstat.c: Include <stdio.h>.
14893 2008-10-27 Simon Josefsson <simon@josefsson.org>
14895 * modules/lstat-tests: New module.
14896 * tests/test-lstat.c: New file.
14898 2008-10-26 Jim Meyering <meyering@redhat.com>
14900 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
14902 2008-10-26 Simon Josefsson <simon@josefsson.org>
14903 Bruno Haible <bruno@clisp.org>
14905 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
14906 * modules/configmake (Include): Add a note that the include must come
14907 after all system headers.
14908 * lib/javaversion.c: Include configmake.h after all other includes.
14910 2008-10-26 Bruno Haible <bruno@clisp.org>
14912 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
14913 HAVE_STRUCT_RANDOM_DATA to 1.
14914 (gl_STDLIB_H): Simplify.
14916 2008-10-26 Simon Josefsson <simon@josefsson.org>
14918 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
14919 substitute HAVE_STRUCT_RANDOM_DATA.
14920 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
14922 * modules/stdlib (Makefile.am): Substitute
14923 HAVE_STRUCT_RANDOM_DATA.
14925 2008-10-26 Simon Josefsson <simon@josefsson.org>
14927 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
14928 * doc/gnulib-intro.texi (Copyright): Likewise.
14930 2008-10-26 Simon Josefsson <simon@josefsson.org>
14932 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
14935 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
14936 Bruno Haible <bruno@clisp.org>
14938 * lib/unistd.in.h: Include <winsock2.h>.
14939 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
14940 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
14941 Provide dummy declarations.
14942 (gethostname): Override.
14943 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
14944 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
14945 gl_PREREQ_SYS_H_WINSOCK2.
14946 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
14947 * doc/posix-functions/gethostname.texi: More details.
14949 2008-10-25 Bruno Haible <bruno@clisp.org>
14951 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
14952 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
14953 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
14955 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
14957 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
14958 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
14959 gl_UNISTD_H_DEFAULTS.
14961 2008-10-25 Eric Blake <ebb9@byu.net>
14963 signbit: avoid spurious compiler failure
14964 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
14965 declarations inside function.
14967 2008-10-24 Simon Josefsson <simon@josefsson.org>
14968 Bruno Haible <bruno@clisp.org>
14970 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
14971 * modules/random_r (Depends-on): Add stdint.
14973 2008-10-24 Bruno Haible <bruno@clisp.org>
14975 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
14977 * modules/strerror (License): Likewise.
14979 2008-10-24 Jim Meyering <meyering@redhat.com>
14981 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
14982 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
14984 2008-10-24 Eric Blake <ebb9@byu.net>
14986 getgroups: fix compilation when getgroups is available
14987 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
14988 but with <config.h> override of getgroups disabled.
14990 2008-10-24 Simon Josefsson <simon@josefsson.org>
14992 * doc/gnulib.texi (Header files): Add note about C++ problems.
14993 Explained by Bruno Haible <bruno@clisp.org>.
14995 2008-10-23 Bruno Haible <bruno@clisp.org>
14997 Define a dummy SA_NODEFER macro on Interix.
14998 * lib/signal.in.h (SA_NODEFER): Define fallback.
14999 Reported by Aleksey Cheusov <cheusov@tut.by> via
15000 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
15002 2008-10-23 Bruno Haible <bruno@clisp.org>
15004 * modules/freadahead (License): Change to LGPLv2+.
15005 Suggested by Simon Josefsson.
15007 2008-10-23 Jim Meyering <meyering@redhat.com>
15009 random_r: new module
15010 * modules/random_r: New file.
15011 * m4/random_r.m4: New file.
15012 * lib/random_r.c: New file, from glibc.
15013 * modules/random_r-tests: New file.
15014 * tests/test-random_r.c: New file.
15015 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
15017 (RAND_MAX): Define.
15018 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
15019 * modules/stdlib: Substitute them, too.
15020 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
15021 * doc/glibc-functions/initstate_r.texi: Mention the new module.
15022 * doc/glibc-functions/random_r.texi: Likewise.
15023 * doc/glibc-functions/setstate_r.texi: Likewise.
15024 * doc/glibc-functions/srandom_r.texi: Likewise.
15025 * config/srclist.txt: Mention it.
15027 2008-10-23 David Lutterkort <lutter@redhat.com>
15029 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
15032 2008-10-23 Jim Meyering <meyering@redhat.com>
15034 selinux-h: mark parameters of stub functions as intentionally unused
15035 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
15036 * lib/se-context.in.h: Likewise.
15038 2008-10-22 Simon Josefsson <simon@josefsson.org>
15040 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
15042 2008-10-22 Simon Josefsson <simon@josefsson.org>
15044 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
15046 2008-10-22 Eric Blake <ebb9@byu.net>
15048 glthread/thread: avoid compiler warning
15049 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
15050 Add unreachable abort to silence compiler.
15052 2008-10-22 Eric Blake <ebb9@byu.net>
15054 netdb: also supply struct addrinfo for cygwin 1.5.x
15055 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
15057 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
15059 * doc/posix-headers/netdb.texi (netdb.h): Document this.
15061 2008-10-22 Bruno Haible <bruno@clisp.org>
15063 * users.txt: Update entry about pspp.
15065 2008-10-21 Bruno Haible <bruno@clisp.org>
15068 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
15069 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
15072 * lib/ioctl.c (ioctl): Don't undefine.
15073 * lib/socket.c (socket): Don't undefine.
15075 Remove unused module indicator macros.
15076 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
15077 GNULIB_$1 as a C macro.
15079 * doc/posix-functions/close.texi: Undo last change.
15080 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
15083 2008-10-21 Bruno Haible <bruno@clisp.org>
15085 Add gethostname() declaration to <unistd.h>.
15086 * lib/unistd.in.h (gethostname): New declaration.
15087 * lib/gethostname.c: Include <unistd.h>.
15088 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
15089 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
15090 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
15091 and HAVE_GETHOSTNAME.
15092 * modules/gethostname (Depends-on): Add unistd.
15093 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15094 (Include): Specify <unistd.h>.
15095 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
15097 * tests/test-gethostname.c: Include <unistd.h> first.
15099 2008-10-21 Bruno Haible <bruno@clisp.org>
15101 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
15102 * modules/select-tests (Depends-on): Likewise.
15103 Reported by Simon Josefsson.
15105 2008-10-21 Simon Josefsson <simon@josefsson.org>
15107 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
15108 * lib/accept.c: New file, based on winsock.c.
15109 * lib/bind.c: New file, based on winsock.c.
15110 * lib/connect.c: New file, based on winsock.c.
15111 * lib/getpeername.c: New file, based on winsock.c.
15112 * lib/getsockname.c: New file, based on winsock.c.
15113 * lib/getsockopt.c: New file, based on winsock.c.
15114 * lib/ioctl.c: New file, based on winsock.c.
15115 * lib/listen.c: New file, based on winsock.c.
15116 * lib/recv.c: New file, based on winsock.c.
15117 * lib/recvfrom.c: New file, based on winsock.c.
15118 * lib/send.c: New file, based on winsock.c.
15119 * lib/sendto.c: New file, based on winsock.c.
15120 * lib/setsockopt.c: New file, based on winsock.c.
15121 * lib/shutdown.c: New file, based on winsock.c.
15122 * lib/socket.c: New file, based on winsock.c.
15123 * lib/w32sock.h: New file, based on winsock.c.
15124 * lib/winsock.c: Remove file.
15125 * modules/accept: Likewise.
15126 * modules/bind: Likewise.
15127 * modules/connect: Likewise.
15128 * modules/getpeername: Likewise.
15129 * modules/getsockname: Likewise.
15130 * modules/getsockopt: Likewise.
15131 * modules/ioctl: Likewise.
15132 * modules/listen: Likewise.
15133 * modules/recv: Likewise.
15134 * modules/recvfrom: Likewise.
15135 * modules/send: Likewise.
15136 * modules/sendto: Likewise.
15137 * modules/setsockopt: Likewise.
15138 * modules/shutdown: Likewise.
15139 * modules/socket: Use socket.c instead of winsock.c.
15140 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
15141 * doc/posix-functions/accept.texi: Doc fix.
15142 * doc/posix-functions/bind.texi: Doc fix.
15143 * doc/posix-functions/close.texi: Doc fix.
15144 * doc/posix-functions/connect.texi: Doc fix.
15145 * doc/posix-functions/getpeername.texi: Doc fix.
15146 * doc/posix-functions/getsockname.texi: Doc fix.
15147 * doc/posix-functions/getsockopt.texi: Doc fix.
15148 * doc/posix-functions/ioctl.texi: Doc fix.
15149 * doc/posix-functions/listen.texi: Doc fix.
15150 * doc/posix-functions/recv.texi: Doc fix.
15151 * doc/posix-functions/recvfrom.texi: Doc fix.
15152 * doc/posix-functions/send.texi: Doc fix.
15153 * doc/posix-functions/sendto.texi: Doc fix.
15154 * doc/posix-functions/setsockopt.texi: Doc fix.
15155 * doc/posix-functions/shutdown.texi: Doc fix.
15156 * doc/posix-functions/socket.texi: Doc fix.
15158 2008-10-20 Bruno Haible <bruno@clisp.org>
15160 Take into account the role of SIGABRT_COMPAT on Windows 2008.
15161 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
15162 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
15163 as an alias for SIGABRT.
15164 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
15165 (sigaction): Map it to SIGABRT.
15166 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
15168 2008-10-20 Bruno Haible <bruno@clisp.org>
15170 * lib/fts.c: Don't include lstat.h.
15171 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
15173 Move the lstat() declaration to <sys/stat.h>.
15174 * lib/lstat.h: Remove file.
15175 * lib/sys_stat.in.h: Add special invocation convention.
15176 (lstat): New declaration.
15177 * lib/lstat.c (orig_lstat): New function.
15178 (rpl_lstat): Use orig_lstat instead of lstat.
15179 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
15180 AC_C_INLINE. Set REPLACE_LSTAT.
15181 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
15183 * modules/lstat (Files): Remove lib/lstat.h.
15184 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
15185 (Include): Specify <sys/stat.h> instead of lstat.h.
15186 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
15188 * NEWS: Mention the change.
15190 2008-10-20 Bruno Haible <bruno@clisp.org>
15192 * modules/posix_spawn-tests: New file.
15193 * tests/test-posix_spawn3.c: New file.
15195 2008-10-20 Bruno Haible <bruno@clisp.org>
15197 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
15198 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
15199 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
15200 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
15201 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
15203 2008-10-20 Bruno Haible <bruno@clisp.org>
15205 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
15206 of posix_spawn on AIX 5.3.
15208 2008-10-20 Bruno Haible <bruno@clisp.org>
15210 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
15212 2008-10-20 Bruno Haible <bruno@clisp.org>
15214 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
15215 of AC_LANG_PROGRAM.
15217 2008-10-20 Simon Josefsson <simon@josefsson.org>
15219 * lib/netdb.in.h: Don't define GNU specific constants until they
15220 are supported or needed. Reported by Bruno Haible
15223 2008-10-20 Simon Josefsson <simon@josefsson.org>
15225 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
15227 2008-10-20 Simon Josefsson <simon@josefsson.org>
15229 * lib/getaddrinfo.h: Remove file.
15230 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
15231 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
15232 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
15233 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
15234 * modules/netdb: Substitute GNULIB_GETADDRINFO.
15235 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
15236 * tests/test-getaddrinfo.c: Likewise.
15237 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
15238 * NEWS: Mention change.
15240 2008-10-19 Bruno Haible <bruno@clisp.org>
15242 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
15244 2008-10-19 Bruno Haible <bruno@clisp.org>
15246 * lib/wait-process.c: Include simply <sys/wait.h>.
15247 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
15248 WIFSTOPPED): Remove fallback definitions.
15249 * modules/wait-process (Depends-on): Add sys_wait.
15251 New module 'sys_wait'.
15252 * modules/sys_wait: New file.
15253 * lib/sys_wait.in.h: New file, partially copied from
15254 lib/wait-process.c.
15255 * m4/sys_wait_h.m4: New file.
15256 * doc/posix-headers/sys_wait.texi: Mention the new module.
15258 2008-10-19 Bruno Haible <bruno@clisp.org>
15260 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
15262 2008-10-19 Bruno Haible <bruno@clisp.org>
15264 Assume that waitpid() fills an 'int' status, not a 'union wait'.
15265 * lib/wait-process.c (WAIT_T): Remove type.
15266 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
15267 (wait_subprocess): Update.
15269 2008-10-19 Bruno Haible <bruno@clisp.org>
15271 New module 'atoll'.
15272 * modules/atoll: New file.
15273 * lib/stdlib.in.h (atoll): New declaration.
15274 * lib/atoll.c: New file, from glibc with modifications.
15275 * m4/atoll.m4: New file.
15276 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
15278 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
15279 * doc/posix-functions/atoll.texi: Mention the new module.
15281 2008-10-19 Bruno Haible <bruno@clisp.org>
15283 Add strtoull() declaration to <stdlib.h>.
15284 * lib/stdlib.in.h (strtoull): New declaration.
15285 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
15287 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
15289 * modules/strtoull (Depends-on): Add stdlib.
15290 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15291 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
15294 2008-10-19 Bruno Haible <bruno@clisp.org>
15296 Add strtoll() declaration to <stdlib.h>.
15297 * lib/stdlib.in.h (strtoll): New declaration.
15298 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
15300 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
15302 * modules/strtoll (Depends-on): Add stdlib.
15303 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15304 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
15306 2008-10-19 Bruno Haible <bruno@clisp.org>
15308 * modules/bcopy (Depends-on): Add strings.
15309 (Include): Specify <strings.h>.
15311 2008-10-19 Bruno Haible <bruno@clisp.org>
15313 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
15315 2008-10-19 Bruno Haible <bruno@clisp.org>
15317 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
15318 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
15321 2008-10-19 Bruno Haible <bruno@clisp.org>
15323 * lib/atanl.c: Don't include isnanl.h.
15324 * lib/cosl.c: Likewise.
15325 * lib/ldexpl.c: Likewise.
15326 * lib/logl.c: Likewise.
15327 * lib/sinl.c: Likewise.
15328 * lib/sqrtl.c: Likewise.
15329 * lib/tanl.c: Likewise.
15331 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
15332 * lib/isnanf.h: Remove file.
15333 * lib/isnand.h: Remove file.
15334 * lib/isnanl.h: Remove file.
15335 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
15336 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
15338 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
15339 HAVE_ISNANF, don't define it as a C macro.
15340 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
15341 HAVE_ISNAND, don't define it as a C macro.
15342 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
15343 HAVE_ISNANL, don't define it as a C macro.
15344 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
15346 * modules/isnanf (Files): Remove lib/isnanf.h.
15347 (Depends-on): Add math.
15348 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15349 (Include): Specify <math.h> instead of isnanf.h.
15350 * modules/isnand (Files): Remove lib/isnand.h.
15351 (Depends-on): Add math.
15352 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15353 (Include): Specify <math.h> instead of isnand.h.
15354 * modules/isnanl (Files): Remove lib/isnanl.h.
15355 (Depends-on): Add math.
15356 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
15357 (Include): Specify <math.h> instead of isnanl.h.
15358 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
15360 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
15361 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
15362 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
15363 * NEWS: Mention the change.
15365 2008-10-18 Bruno Haible <bruno@clisp.org>
15367 Add getusershell(), setusershell(), endusershell() declarations to
15369 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
15371 * lib/getusershell.c: Include unistd.h.
15372 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
15373 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
15375 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
15376 and HAVE_GETUSERSHELL.
15377 * modules/getusershell (Depends-on): Add unistd, extensions.
15378 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15379 (Include): Specify <unistd.h>.
15380 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
15383 2008-10-18 Bruno Haible <bruno@clisp.org>
15385 Add a getloadavg() declaration to <stdlib.h>.
15386 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
15387 getloadavg declaration.
15388 (getloadavg): New declaration.
15389 * lib/getloadavg.c: Include <stdlib.h> first.
15390 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
15391 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
15392 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
15393 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
15394 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
15395 * modules/getloadavg (Depends-on): Add stdlib, extensions.
15396 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15397 (Include): Specify <stdlib.h>.
15398 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
15399 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
15401 2008-10-18 Bruno Haible <bruno@clisp.org>
15403 * lib/dirchownmod.c: Don't include lchmod.h.
15405 Move the lchmod() declaration to <sys/stat.h>.
15406 * lib/lchmod.h: Remove file.
15407 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
15408 (lchmod): New declaration, moved here from lib/lchown.h.
15409 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
15410 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
15411 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
15413 * modules/lchmod (Files): Remove lib/lchmod.h.
15414 (Depends-on): Add sys_stat, extensions.
15415 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
15416 (Include): Specify <sys/stat.h> instead of lchmod.h.
15417 * modules/sys_stat (Depends-on): Add link-warning.
15418 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
15419 definition of GL_LINK_WARNING.
15420 * NEWS: Mention the change.
15422 2008-10-18 Bruno Haible <bruno@clisp.org>
15424 * lib/fchdir.c: Don't include dirfd.h.
15425 * lib/fts.c: Likewise.
15426 * lib/getcwd.c: Likewise.
15427 * lib/glob.c: Likewise.
15429 Move the dirfd() declaration to <dirent.h>.
15430 * lib/dirfd.h: Remove file.
15431 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
15432 (dirfd): New declaration.
15433 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
15434 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
15435 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
15437 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
15439 * modules/dirfd (Files): Remove lib/dirfd.h.
15440 (Depends-on): Add dirent, extensions.
15441 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
15442 (Include): Specify <dirent.h> instead of dirfd.h.
15443 * modules/dirent (Depends-on): Add link-warning.
15444 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
15445 definition of GL_LINK_WARNING.
15446 * NEWS: Mention the change.
15448 2008-10-18 Bruno Haible <bruno@clisp.org>
15450 Move the euidaccess() declaration to <unistd.h>.
15451 * lib/euidaccess.h: Remove file.
15452 * lib/unistd.in.h (euidaccess): New declaration.
15453 * lib/euidaccess.c: Don't include euidaccess.h.
15454 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
15455 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
15456 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
15457 and HAVE_EUIDACCESS.
15458 * modules/euidaccess (Files): Remove lib/euidaccess.h.
15459 (Depends-on): Add unistd.
15460 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15461 (Include): Specify <unistd.h> instead of euidaccess.h.
15462 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
15464 * NEWS: Mention the change.
15466 2008-10-18 Bruno Haible <bruno@clisp.org>
15468 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
15470 Move the getdomainname() declaration to <unistd.h>.
15471 * lib/getdomainname.h: Remove file.
15472 * lib/unistd.in.h (getdomainname): New declaration.
15473 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
15474 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
15475 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
15476 HAVE_GETDOMAINNAME.
15477 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15478 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
15479 * modules/getdomainname (Files): Remove lib/getdomainname.h.
15480 (Depends-on): Add unistd, extensions.
15481 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15482 (Includes): Specify <unistd.h> instead of getdomainname.h.
15483 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
15484 HAVE_GETDOMAINNAME.
15485 * NEWS: Mention the change.
15487 2008-10-18 Bruno Haible <bruno@clisp.org>
15489 * modules/dirent: New file.
15490 * m4/dirent_h.m4: New file.
15491 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
15492 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
15493 * modules/fchdir (Files): Remove lib/dirent.in.h.
15494 (Depends-on): Add dirent.
15495 (Makefile.am): Move rules to modules/dirent.
15496 * doc/posix-headers/dirent.texi: Mention the new module.
15498 2008-10-18 Bruno Haible <bruno@clisp.org>
15500 Avoid -Wunused-parameter warnings in public gnulib header files.
15501 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
15503 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
15505 2008-10-18 Bruno Haible <bruno@clisp.org>
15507 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
15508 * doc/glibc-functions/error.texi: Mention the module 'error'.
15509 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
15510 * doc/glibc-functions/getdomainname.texi: Mention the module
15512 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
15513 * doc/glibc-functions/getpagesize.texi: Mention the module
15515 * doc/glibc-functions/getusershell.texi: Mention the module
15517 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
15518 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
15519 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
15520 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
15521 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
15522 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
15523 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
15524 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
15525 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
15526 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
15527 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
15528 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
15529 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
15530 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
15532 2008-10-17 Bruno Haible <bruno@clisp.org>
15534 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
15535 HP-UX and IRIX, use -0.0L.
15536 * tests/test-ceill.c (minus_zero): Likewise.
15537 * tests/test-floorl.c (minus_zero): Likewise.
15538 * tests/test-frexpl.c (minus_zero): Likewise.
15539 * tests/test-isnan.c (minus_zerol): Likewise.
15540 * tests/test-isnanl.h (minus_zero): Likewise.
15541 * tests/test-ldexpl.c (minus_zero): Likewise.
15542 * tests/test-roundl.c (minus_zero): Likewise.
15543 * tests/test-signbit.c (minus_zerol): Likewise.
15544 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15545 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15546 * tests/test-truncl.c (minus_zero): Likewise.
15547 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15548 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15549 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
15550 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
15552 2008-10-17 Bruno Haible <bruno@clisp.org>
15554 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
15555 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
15556 that it gets activated only for gcc >= 3.0.
15557 * lib/dirent.in.h: Likewise.
15558 * lib/errno.in.h: Likewise.
15559 * lib/fcntl.in.h: Likewise.
15560 * lib/float.in.h: Likewise.
15561 * lib/iconv.in.h: Likewise.
15562 * lib/inttypes.in.h: Likewise.
15563 * lib/locale.in.h: Likewise.
15564 * lib/math.in.h: Likewise.
15565 * lib/netdb.in.h: Likewise.
15566 * lib/netinet_in.in.h: Likewise.
15567 * lib/search.in.h: Likewise.
15568 * lib/signal.in.h: Likewise.
15569 * lib/spawn.in.h: Likewise.
15570 * lib/stdarg.in.h: Likewise.
15571 * lib/stdint.in.h: Likewise.
15572 * lib/stdio.in.h: Likewise.
15573 * lib/stdlib.in.h: Likewise.
15574 * lib/string.in.h: Likewise.
15575 * lib/strings.in.h: Likewise.
15576 * lib/sys_file.in.h: Likewise.
15577 * lib/sys_ioctl.in.h: Likewise.
15578 * lib/sys_select.in.h: Likewise.
15579 * lib/sys_socket.in.h: Likewise.
15580 * lib/sys_stat.in.h: Likewise.
15581 * lib/sys_time.in.h: Likewise.
15582 * lib/sysexits.in.h: Likewise.
15583 * lib/time.in.h: Likewise.
15584 * lib/unistd.in.h: Likewise.
15585 * lib/wchar.in.h: Likewise.
15586 * lib/wctype.in.h: Likewise.
15587 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15589 2008-10-17 Jim Meyering <meyering@redhat.com>
15591 ignore-value: don't depend on inline module
15592 * modules/ignore-value (Depends-on): Remove 'inline'.
15593 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
15594 Suggestion from Bruno Haible.
15596 2008-10-17 Bruno Haible <bruno@clisp.org>
15598 New implementation of condition variables for Win32.
15599 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
15600 (gl_linked_waitqueue_t): New type.
15601 (gl_cond_t): Use it.
15602 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
15603 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
15604 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
15605 (glthread_cond_init_func, glthread_cond_wait_func,
15606 glthread_cond_timedwait_func, glthread_cond_signal_func,
15607 glthread_cond_broadcast_func, glthread_cond_destroy_func):
15608 Reimplemented on the basis of gl_linked_waitqueue_t.
15609 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
15611 (gl_rwlock_t): Update.
15612 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
15614 2008-10-17 Simon Josefsson <simon@josefsson.org>
15616 * modules/recvfrom (Depends-on): Add dependency on getpeername.
15617 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
15619 2008-10-17 Jim Meyering <meyering@redhat.com>
15621 ignore-value: new module
15622 * modules/ignore-value: New file.
15623 * lib/ignore-value.h: New file.
15624 * MODULES.html.sh (Compiler warning management): New section,
15625 just for this module. More to come.
15627 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
15629 open-safer.c: avoid 'signed and unsigned in conditional...' warning
15630 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
15631 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
15633 2008-10-16 Jim Meyering <meyering@redhat.com>
15635 openat-die.c: avoid 'no previous prototype' warning
15636 * lib/openat-die.c: Include "openat.h".
15637 Reported by Reuben Thomas <rrt@sc3d.org>.
15639 2008-10-16 Simon Josefsson <simon@josefsson.org>
15641 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
15642 * lib/netdb.in.h: Fix typo.
15643 Reported by Bruno Haible <bruno@clisp.org>
15645 * lib/netdb.in.h: Include sys/socket.h for platforms without
15646 netdb.h, to get structures like hostent on MinGW.
15647 * modules/netdb (Depends-on): Add sys_socket.
15649 2008-10-15 Simon Josefsson <simon@josefsson.org>
15651 * modules/netdb, modules/netdb-tests: New file.
15652 * m4/netdb_h.m4: New file.
15653 * lib/netdb.in.h: Add, currently just an empty file pending
15655 * tests/test-netdb.c: New file.
15656 * doc/posix-headers/netdb.texi: Mention that we replace it if
15658 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
15661 2008-10-15 Simon Josefsson <simon@josefsson.org>
15663 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
15666 2008-10-13 Bruno Haible <bruno@clisp.org>
15668 * lib/glthread/cond.c (glthread_cond_wait_func,
15669 glthread_cond_timedwait_func): Add a comment.
15671 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
15673 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
15674 * tests/test-select.c: Likewise,
15676 2008-10-13 Bruno Haible <bruno@clisp.org>
15678 * lib/glthread/cond.c (glthread_cond_wait_func,
15679 glthread_cond_timedwait_func): Fix variable name.
15680 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
15682 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
15684 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
15685 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
15686 struct sockaddr.sa_len.
15687 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
15689 2008-10-13 Simon Josefsson <simon@josefsson.org>
15691 * build-aux/pmccabe2html: Add css and css_url parameters.
15693 2008-10-12 Bruno Haible <bruno@clisp.org>
15695 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
15697 Reported by Rainer Tammer <tammer@tammer.net>.
15699 2008-10-12 Bruno Haible <bruno@clisp.org>
15701 Use msvcrt aware primitives for creation/termination of Win32 threads.
15702 * lib/glthread/thread.c: Include <process.h>.
15703 (glthread_create_func): Use _beginthreadex instead of CreateThread.
15704 (wrapper_func): Update signature.
15705 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
15707 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
15708 Bruno Haible <bruno@clisp.org>
15710 Provide a Win32 implementation of the 'cond' module.
15711 * lib/glthread/cond.h [USE_WIN32]: New implementation.
15712 * lib/glthread/cond.c (glthread_cond_init_func,
15713 glthread_cond_wait_func, glthread_cond_timedwait_func,
15714 glthread_cond_signal_func, glthread_cond_broadcast_func,
15715 glthread_cond_destroy_func) [USE_WIN32]: New functions.
15716 * modules/cond (Dependencies): Add gettimeofday.
15718 2008-10-11 Bruno Haible <bruno@clisp.org>
15720 Make sleep work on older versions of mingw.
15721 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
15722 only whether it exists.
15723 * doc/posix-functions/sleep.texi: Mention the problem with older
15726 2008-10-11 Bruno Haible <bruno@clisp.org>
15728 New module 'shutdown'.
15729 * modules/shutdown: New file.
15730 * lib/sys_socket.in.h (shutdown): New declaration.
15731 * lib/winsock.c (shutdown): New function.
15732 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
15734 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
15735 * doc/posix-functions/shutdown.texi: Document the new module.
15737 2008-10-11 Jim Meyering <meyering@redhat.com>
15739 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
15741 2008-10-11 Bruno Haible <bruno@clisp.org>
15743 New module 'fclose'.
15744 * modules/fclose: New file.
15745 * lib/stdio.in.h (fclose): New declaration.
15746 * lib/fclose.c: New file.
15747 * m4/fclose.m4: New file.
15748 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
15750 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
15751 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
15753 * modules/close (Depends-on): fclose.
15754 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
15756 2008-10-11 Bruno Haible <bruno@clisp.org>
15758 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
15759 set errno and don't call _close.
15761 2008-10-10 Bruno Haible <bruno@clisp.org>
15763 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
15764 ACL, not afterwards. Fixes test failure on Cygwin.
15766 2008-10-09 Ben Pfaff <blp@gnu.org>
15768 * build-aux/announce-gen: Fix gnulib version related part of usage
15769 message. Die with a useful error message if no tarballs are
15772 2008-10-10 Jim Meyering <meyering@redhat.com>
15774 bootstrap: use git's --depth=N option only if it's supported
15775 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
15776 recognize the --depth option. Reported by Pádraig Brady.
15778 2008-10-09 Bruno Haible <bruno@clisp.org>
15780 New module 'ioctl'.
15781 * modules/ioctl: New file.
15782 * lib/sys_socket.in.h (ioctl): Remove declaration.
15783 * lib/winsock.c: Include <sys/ioctl.h>.
15784 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
15785 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
15786 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
15787 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
15788 * doc/posix-functions/ioctl.texi: Mention the new module.
15790 2008-10-09 Bruno Haible <bruno@clisp.org>
15792 New module 'sys_ioctl'.
15793 * lib/sys_ioctl.in.h: New file.
15794 * m4/sys_ioctl_h.m4: New file.
15795 * modules/sys_ioctl: New file.
15796 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
15798 2008-10-09 Bruno Haible <bruno@clisp.org>
15800 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
15801 * lib/winsock.c: Include <stdarg.h>.
15802 (rpl_ioctl): Change to second argument 'int' and then varargs.
15804 2008-10-09 Bruno Haible <bruno@clisp.org>
15806 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
15807 when the sys_socket module is present and the system has <winsock2.h>.
15809 2008-10-09 Bruno Haible <bruno@clisp.org>
15811 * doc/posix-functions/close.texi: Mention module 'close' instead of
15812 module 'sys_socket'.
15814 2008-10-09 Bruno Haible <bruno@clisp.org>
15816 * doc/glibc-headers/sys_ioctl.texi: New file.
15817 * doc/gnulib.texi: Include it.
15819 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
15820 Bruno Haible <bruno@clisp.org>
15822 Combine the two replacements of 'close'.
15823 * lib/sys_socket.in.h (close): Define to a reminder to include
15825 (_gl_close_fd_maybe_socket): New declaration.
15826 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
15827 * lib/winsock.c (close): Remove undefinition.
15828 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
15829 needed for the gnulib module 'close'.
15830 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
15831 define to an error symbol or to a warning, if suitable.
15832 * lib/close.c: Include <sys/socket.h>.
15833 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
15834 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
15835 UNISTD_H_HAVE_WINSOCK2_H.
15836 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
15837 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
15838 UNISTD_H_HAVE_WINSOCK2_H.
15839 * modules/sys_socket (Files): Add m4/unistd_h.m4.
15840 (configure.ac): Set a module indicator.
15841 (Makefile.am): Substitute GNULIB_CLOSE.
15842 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
15843 * modules/poll-tests (Depends-on): Add close.
15844 * modules/select-tests (Depends-on): Likewise.
15846 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
15847 Bruno Haible <bruno@clisp.org>
15849 New module 'close'.
15850 * modules/close: New file.
15851 * lib/unistd.in.h (close): Move declaration out of the
15852 FCHDIR_REPLACEMENT scope.
15853 (_gl_unregister_fd): New declaration.
15854 * lib/close.c: New file.
15855 * lib/fchdir.c (rpl_close): Remove function.
15856 * m4/close.m4: New file.
15857 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
15859 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
15861 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
15863 * modules/fchdir (Depends-on): Add close.
15865 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
15866 Bruno Haible <bruno@clisp.org>
15868 * lib/fcntl.in.h (open): Simplify conditionals.
15869 (_gl_register_fd): New declaration.
15870 * lib/fchdir.c (rpl_open): Remove function.
15871 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
15873 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
15874 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
15877 2008-10-09 Jim Meyering <meyering@redhat.com>
15879 GNUmakefile: use the more name-space-friendly "_version"
15880 * top/GNUmakefile (_dummy): Update.
15881 (_version): Rename from "version".
15883 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
15884 Bruno Haible <bruno@clisp.org>
15886 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
15888 (_gl_register_fd): New function, extracted from rpl_open.
15889 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
15890 (rpl_open, rpl_opendir): Use _gl_register_fd.
15892 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
15894 Fix organization of 'open' replacement.
15895 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
15896 (gl_FUNC_OPEN): Use it.
15897 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
15899 2008-10-08 Bruno Haible <bruno@clisp.org>
15901 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
15903 2008-10-08 Simon Josefsson <simon@josefsson.org>
15905 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
15906 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
15909 2008-10-08 Eric Blake <ebb9@byu.net>
15911 GNUmakefile: add 'make version' target
15912 * top/GNUmakefile (_curr-ver): Split version update rules...
15913 (version): ...into a target.
15915 2008-10-07 Bruno Haible <bruno@clisp.org>
15917 Use a more portable replacement expression for -0.0L.
15918 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
15919 instead of -0.0L. Fix m4 quotation.
15921 * tests/test-signbit.c: Include <float.h>.
15922 (minus_zero): New variable.
15923 (test_signbitl): Use minus_zero instead of -zero.
15924 * modules/signbit-tests (Depends-on): Add float.
15926 * tests/test-ceill.c: Include <float.h>.
15927 (zero): Remove variable.
15928 (minus_zero): New variable.
15929 (main): Use minus_zero instead of -zero.
15930 * modules/ceill-tests (Depends-on): Add float.
15932 * tests/test-floorl.c: Include <float.h>.
15933 (zero): Remove variable.
15934 (minus_zero): New variable.
15935 (main): Use minus_zero instead of -zero.
15936 * modules/floorl-tests (Depends-on): Add float.
15938 * tests/test-roundl.c: Include <float.h>.
15939 (zero): Remove variable.
15940 (minus_zero): New variable.
15941 (main): Use minus_zero instead of -zero.
15942 * modules/roundl-tests (Depends-on): Add float.
15944 * tests/test-truncl.c: Include <float.h>.
15945 (zero): Remove variable.
15946 (minus_zero): New variable.
15947 (main): Use minus_zero instead of -zero.
15948 * modules/truncl-tests (Depends-on): Add float.
15950 * tests/test-frexpl.c (zero): Remove variable.
15951 (minus_zero): New variable.
15952 (main): Use minus_zero instead of -zero.
15953 * modules/frexpl-tests (Depends-on): Add float.
15955 * tests/test-isnan.c (zerol): Remove variable.
15956 (minus_zerol): New variable.
15957 (test_long_double): Use minus_zerol instead of -zerol.
15958 * modules/isnan-tests (Depends-on): Add float.
15960 * tests/test-isnanl.h (zero): Remove variable.
15961 (minus_zero): New variable.
15962 (main): Use minus_zero instead of -zero.
15963 * modules/isnanl-nolibm-tests (Depends-on): Add float.
15964 * modules/isnanl-tests (Depends-on): Add float.
15966 * tests/test-ldexpl.c (zero): Remove variable.
15967 (minus_zero): New variable.
15968 (main): Use minus_zero instead of -zero.
15969 * modules/ldexpl-tests (Depends-on): Add float.
15971 * tests/test-snprintf-posix.h (zerol): Remove variable.
15972 (minus_zerol): New variable.
15973 (test_function): Use minus_zerol instead of -zerol.
15974 * modules/snprintf-posix-tests (Depends-on): Add float.
15975 * modules/vsnprintf-posix-tests (Depends-on): Add float.
15977 * tests/test-sprintf-posix.h (zerol): Remove variable.
15978 (minus_zerol): New variable.
15979 (test_function): Use minus_zerol instead of -zerol.
15980 * modules/sprintf-posix-tests (Depends-on): Add float.
15981 * modules/vsprintf-posix-tests (Depends-on): Add float.
15983 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
15984 (minus_zerol): New variable.
15985 (test_function): Use minus_zerol instead of -zerol.
15986 * modules/vasnprintf-posix-tests (Depends-on): Add float.
15988 * tests/test-vasprintf-posix.c (zerol): Remove variable.
15989 (minus_zerol): New variable.
15990 (test_function): Use minus_zerol instead of -zerol.
15991 * modules/vasprintf-posix-tests (Depends-on): Add float.
15993 2008-10-07 Simon Josefsson <simon@josefsson.org>
15995 * MODULES.html.sh (Support for building documentation): Mention
15996 pmccabe2html. Sort entries.
15998 Add pmccabe2html module, from gnupdf.
15999 * build-aux/pmccabe.css: New file.
16000 * build-aux/pmccabe2html: New file.
16001 * m4/pmccabe2html.m4: New file.
16002 * modules/pmccabe2html: New file.
16004 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
16007 * MODULES.html.sh: Add to list of modules.
16008 * lib/flock.c: flock implementation for Windows and Unix systems
16010 * doc/glibc-functions/flock.texi: Update documentation.
16011 * lib/sys_file.in.h: <sys/file.h> header file.
16012 * m4/flock.m4: M4 macros.
16013 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
16014 * modules/flock: flock module.
16015 * modules/flock-tests: flock tests module.
16016 * modules/sys_file: sys/file.h module.
16017 * tests/test-flock.c: test suite for flock.
16019 2008-10-06 Jim Meyering <meyering@redhat.com>
16021 bootstrap: check for LT_INIT more portably still ;-)
16022 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
16023 Spotted by Bruno Haible.
16025 2008-10-06 Eric Blake <ebb9@byu.net>
16027 test-signbit: avoid tripping Irix cc bug on -0.0L
16028 * tests/test-signbit.c (minus_zerol): Delete, and replace with
16029 '-zerol'. This may break on HP-UX/hppa, but at least makes the
16030 entire testsuite consistent and avoids an Irix 6.2 bug.
16032 2008-10-05 Bruno Haible <bruno@clisp.org>
16033 Jim Meyering <jim@meyering.net>
16035 Add an option for ignoring EPIPE during close_stdout.
16036 * lib/closeout.h: Include <stdbool.h>.
16037 (close_stdout_set_ignore_EPIPE): New declaration.
16038 * lib/closeout.c: Include <stdbool.h>.
16039 (ignore_EPIPE): New variable.
16040 (close_stdout_set_ignore_EPIPE): New function.
16041 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
16042 * lib/close-stream.c (close_stream): Mention the possible EPIPE
16044 * modules/closeout (Depends-on): Add stdbool.
16046 2008-10-05 Bruno Haible <bruno@clisp.org>
16048 * modules/accept: New file.
16049 * modules/bind: New file.
16050 * modules/connect: New file.
16051 * modules/getpeername: New file.
16052 * modules/getsockname: New file.
16053 * modules/getsockopt: New file.
16054 * modules/listen: New file.
16055 * modules/recv: New file.
16056 * modules/recvfrom: New file.
16057 * modules/send: New file.
16058 * modules/sendto: New file.
16059 * modules/setsockopt: New file.
16060 * modules/socket: New file.
16061 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
16062 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
16063 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
16064 the particular module is requested. Add a link warning when the
16065 particular module is not requested.
16066 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
16067 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
16068 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
16069 the particular module is requested.
16070 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
16071 gl_SYS_SOCKET_H_DEFAULTS): New macros.
16072 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
16073 * modules/sys_socket (Depends-on): Add link-warning.
16074 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
16075 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
16076 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
16077 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
16079 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
16080 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
16081 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
16082 * doc/posix-functions/getpeername.texi: Mention the new module
16084 * doc/posix-functions/getsockname.texi: Mention the new module
16086 * doc/posix-functions/getsockopt.texi: Mention the new module
16088 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
16089 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
16090 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
16091 * doc/posix-functions/send.texi: Mention the new module 'send'.
16092 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
16093 * doc/posix-functions/setsockopt.texi: Mention the new module
16095 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
16096 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
16097 listen, connect, accept.
16098 * modules/select-tests (Depends-on): Likewise.
16100 2008-10-05 Bruno Haible <bruno@clisp.org>
16102 * lib/winsock.c (strerror): Remove unused #undef.
16103 (rpl_close): Remove unused local variable.
16105 * modules/sys_socket (Depends-on); Add errno.
16107 2008-10-05 Bruno Haible <bruno@clisp.org>
16109 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
16110 (select): Add a link warning when the 'select' module is not used.
16111 * modules/sys_select (Depends-on): Add link-warning.
16112 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
16113 Suggested by Paolo Bonzini.
16115 2008-10-05 Jim Meyering <meyering@redhat.com>
16117 bootstrap: check for LT_INIT more portably
16118 * build-aux/bootstrap: Avoid using grep -E, since it's not
16119 portable enough. Suggestion from Bruno Haible.
16121 2008-10-05 Bruno Haible <bruno@clisp.org>
16123 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
16124 as being fixed by gnulib.
16126 2008-10-05 Bruno Haible <bruno@clisp.org>
16128 * modules/select-tests: New file, mostly copied from
16129 modules/sys_select-tests.
16130 * tests/test-select.c: New file, mostly copied from
16131 tests/test-sys_select.c.
16132 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
16133 * modules/sys_select-tests (Depends-on): Remove all dependencies.
16134 (Makefile.am): Remove test_sys_select_LDADD.
16136 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
16137 to an undefined symbol, for an error message.
16138 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
16139 (gl_SYS_SELECT_H_DEFAULTS): New macro.
16140 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
16141 winsock-select.c here.
16142 * modules/sys_select (Files): Remove lib/winsock-select.c.
16143 (Depends-on): Remove alloca.
16144 (Makefile.am): Substitute GNULIB_SELECT.
16145 * modules/select: New file.
16146 * doc/posix-functions/select.texi: Update.
16148 2008-10-05 Bruno Haible <bruno@clisp.org>
16150 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
16151 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
16152 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
16153 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
16155 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16156 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16158 2008-10-05 Bruno Haible <bruno@clisp.org>
16160 * modules/getdtablesize-tests: New file.
16161 * tests/test-getdtablesize.c: New file.
16163 New module 'getdtablesize'.
16164 * lib/unistd.in.h (getdtablesize): New declaration.
16165 * lib/getdtablesize.c: New file.
16166 * m4/getdtablesize.m4: New file.
16167 * modules/getdtablesize: New file.
16168 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16169 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
16170 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
16171 HAVE_GETDTABLESIZE.
16172 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
16174 2008-10-05 Bruno Haible <bruno@clisp.org>
16176 * modules/sched (Makefile.am): Fix typo.
16177 Reported by Simon Josefsson.
16179 2008-10-05 Jim Meyering <meyering@redhat.com>
16181 bootstrap: check for LT_INIT, too
16182 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
16183 are deprecated. Suggestion from Ralf Wildenhues.
16185 2008-10-05 Bruno Haible <bruno@clisp.org>
16187 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
16188 overriding them by ours.
16189 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
16191 2008-10-05 Jim Meyering <meyering@redhat.com>
16193 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
16194 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
16195 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
16197 2008-10-04 Bruno Haible <bruno@clisp.org>
16199 * modules/dup2 (License): Change to LGPLv2+.
16200 * modules/sleep (License): Likewise.
16201 * modules/perror (License): Likewise.
16202 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
16204 * modules/signal (License): Likewise.
16205 * modules/sigprocmask (License): Likewise.
16206 * modules/raise (License): Change to LGPLv2+, with approval by Jim
16209 2008-10-04 Bruno Haible <bruno@clisp.org>
16211 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
16212 Reported by Rainer Tammer <tammer@tammer.net>.
16214 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
16215 Bruno Haible <bruno@clisp.org>
16217 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
16218 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
16219 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
16221 2008-10-03 Kamil Dudka <kdudka@redhat.com>
16223 filevercmp: new module
16224 * lib/filevercmp.h: New function filevercmp comparing version strings.
16225 * lib/filevercmp.c: Implementation of filevercmp function.
16226 * modules/filevercmp: Module metadata.
16227 * tests/test-filevercmp.c: Unit test for new module.
16228 * modules/filevercmp-tests: Unit test metadata.
16229 * MODULES.html.sh: Add filevercmp module.
16231 2008-10-03 Bruno Haible <bruno@clisp.org>
16233 * lib/c-ctype.h: Add comment.
16234 Reported by Jim Meyering.
16236 2008-10-02 Bruno Haible <bruno@clisp.org>
16238 * modules/posix_spawn-internal (Depends-on): Add 'open'.
16240 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
16242 * build-aux/bootstrap: Allow renaming bootstrap, and change the
16243 name of bootstrap.conf accordingly.
16245 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
16247 * build-aux/bootstrap: Install git-merge-changelog configuration
16248 items into .gitconfig if needed.
16250 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
16252 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
16253 git repository, and initialize/update it accordingly.
16255 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
16257 * modules/fsync-tests: New file.
16258 * tests/test-fsync.c: New file.
16260 New module 'fsync'.
16261 * lib/fsync.c: New file.
16262 * m4/fsync.m4: New file.
16263 * modules/fsync: New file.
16264 * lib/unistd.in.h (fsync): New declaration.
16265 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
16266 GNULIB_FSYNC and HAVE_FSYNC.
16267 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
16268 * MODULES.html.sh (posix_functions): Add fsync.
16269 * doc/posix-functions/fsync.texi: Mention the new module.
16271 2008-10-02 Jim Meyering <meyering@redhat.com>
16273 fts.c: sync with similar code from coreutils' remove.c
16274 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
16275 Guard also with "#if defined __linux__", since for now at least,
16276 this code is Linux-kernel-specific.
16278 2008-10-02 Jim Meyering <meyering@redhat.com>
16281 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
16282 Include <sys/vfs.h>, not <sys/statfs.h>.
16284 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
16285 Include <sys/vfs.h>, not <sys/statfs.h>.
16287 2008-10-01 Bruno Haible <bruno@clisp.org>
16289 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
16290 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
16291 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
16292 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
16293 * doc/posix-functions/posix_spawnp.texi: Likewise.
16294 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
16295 whether posix_spawn actually works.
16296 * m4/pipe.m4 (gl_PIPE): Likewise.
16297 * modules/execute (Files): Add m4/posix_spawn.m4.
16298 * modules/pipe (Files): Add m4/posix_spawn.m4.
16299 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
16301 2008-10-01 Jim Meyering <meyering@redhat.com>
16303 remove trailing spaces
16305 * lib/poll.c (poll): Likewise.
16306 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
16307 * lib/winsock.c (rpl_close): Likewise.
16308 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
16309 * modules/yield: Likewise.
16310 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
16311 * tests/test-sys_select.c (connect_to_socket): Likewise.
16313 fts.c: adjust a new interface to be more generally useful
16314 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
16315 (fts_build): Adjust caller.
16317 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16319 * modules/cond-tests: New file.
16320 * tests/test-cond.c: New file.
16322 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16323 Bruno Haible <bruno@clisp.org>
16325 * modules/cond (Dependencies): Add errno, time.
16326 * lib/glthread/cond.h: Include <time.h>.
16327 (gl_cond_define, gl_cond_define_initialized): Use the same definition
16330 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16331 Bruno Haible <bruno@clisp.org>
16333 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
16335 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16336 Bruno Haible <bruno@clisp.org>
16338 * modules/tls-tests (Depends-on): Add thread, yield.
16339 (configure.ac): Remove all checks.
16340 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
16341 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
16342 gl_thread_self): Remove definitions. Include glthread/thread.h and
16343 glthread/yield.h instead.
16344 (test_tls): Pass an additional NULL argument to gl_thread_join.
16346 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16347 Bruno Haible <bruno@clisp.org>
16349 * modules/lock-tests (Depends-on): Add thread, yield.
16350 (configure.ac): Remove all checks.
16351 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
16352 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
16353 gl_thread_self): Remove definitions. Include glthread/thread.h and
16354 glthread/yield.h instead.
16355 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
16356 additional NULL argument to gl_thread_join.
16358 2008-09-30 Bruno Haible <bruno@clisp.org>
16360 Fix the Win32 implementation of the 'thread' module.
16361 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
16363 (gl_thread_self): Invoke gl_thread_self_func.
16364 (gl_thread_self_func): New declaration.
16365 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
16366 (do_init_self_key, init_self_key): New functions.
16367 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
16368 Remove some fields.
16369 (running_threads, running_lock): Remove variables.
16370 (get_current_thread_handle): New function.
16371 (gl_thread_self_func, wrapper_func, glthread_create_func,
16372 glthread_join_func, gl_thread_exit_func): Largely rewritten and
16375 2008-09-30 Bruno Haible <bruno@clisp.org>
16377 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
16380 2008-09-30 Jim Meyering <meyering@redhat.com>
16382 fts.m4: correct the test for statfs.f_type
16383 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
16384 when checking for statfs.f_type.
16386 2008-09-15 Simon Josefsson <simon@josefsson.org>
16388 tests: avoid some compiler warnings
16389 * tests/test-memchr.c (main): Pass NULL indirectly.
16390 * tests/test-getdate.c (main): Remove unused variable 'ret'.
16392 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
16394 getdate.y: disallow countable dayshifts like "4 yesterday ago"
16395 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
16396 exactly specified dayshifts.
16397 (dayshift): New rule.
16398 (rel): Add dayshift.
16399 (relative_time_table) [tomorrow, yesterday, today, now]:
16400 Use tDAY_SHIFT in place of tDAY_UNIT.
16401 * tests/test-getdate.c: Add tests for now-disallowed countable
16402 dayshifts, e.g., "4 yesterday ago".
16404 2008-09-29 Bruno Haible <bruno@clisp.org>
16406 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
16407 * tests/test-posix_spawn1.in.sh: Renamed from
16408 tests/test-posix_spawn.in.sh.
16409 * tests/test-posix_spawn2.c: New file.
16410 * tests/test-posix_spawn2.in.sh: New file.
16411 * modules/posix_spawnp-tests (Files): Update.
16412 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
16414 2008-09-29 Bruno Haible <bruno@clisp.org>
16416 Propagate effects of putenv/setenv/unsetenv to child processes.
16417 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
16418 * lib/pipe.c (create_pipe): Likewise.
16420 2008-09-29 Bruno Haible <bruno@clisp.org>
16422 Enable use of shell scripts as executables in mingw.
16423 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
16424 run the program as a shell script.
16425 * lib/pipe.c (create_pipe): Likewise.
16426 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
16429 2008-09-29 Eric Blake <ebb9@byu.net>
16431 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
16433 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
16435 * doc/posix-functions/accept.texi: Update mingw problems.
16436 * doc/posix-functions/bind.texi: Update mingw problems.
16437 * doc/posix-functions/close.texi: Update mingw problems.
16438 * doc/posix-functions/connect.texi: Update mingw problems.
16439 * doc/posix-functions/getpeername.texi: Update mingw problems.
16440 * doc/posix-functions/getsockname.texi: Update mingw problems.
16441 * doc/posix-functions/getsockopt.texi: Update mingw problems.
16442 * doc/posix-functions/ioctl.texi: Update mingw problems.
16443 * doc/posix-functions/listen.texi: Update mingw problems.
16444 * doc/posix-functions/recv.texi: Update mingw problems.
16445 * doc/posix-functions/recvfrom.texi: Update mingw problems.
16446 * doc/posix-functions/select.texi: Update mingw problems.
16447 * doc/posix-functions/send.texi: Update mingw problems.
16448 * doc/posix-functions/sendto.texi: Update mingw problems.
16449 * doc/posix-functions/setsockopt.texi: Update mingw problems.
16450 * doc/posix-functions/socket.texi: Update mingw problems.
16452 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
16453 Bruno Haible <bruno@clisp.org>
16455 * lib/sys_select.in.h: Include sys/time.h.
16456 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
16457 * modules/sys_select: Depend on sys_time.
16458 * tests/test-sys_select.c: Test that sys/select.h defines struct
16461 2008-09-29 Bruno Haible <bruno@clisp.org>
16463 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
16464 * lib/sys_select.in.h: Likewise.
16466 2008-09-29 Bruno Haible <bruno@clisp.org>
16468 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
16470 2008-09-29 Bruno Haible <bruno@clisp.org>
16472 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
16473 Set LIBSOCKET instead of augmenting LIBS.
16474 * modules/sockets (Link): New section.
16475 * modules/sockets-tests (test_sockets_LDADD): New variable.
16476 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
16477 * modules/poll-tests (test_poll_LDADD): New variable.
16478 * NEWS: Document the change.
16480 2008-09-29 Bruno Haible <bruno@clisp.org>
16482 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
16483 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
16484 ARPA_INET_H directly.
16485 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16487 2008-09-28 Bruno Haible <bruno@clisp.org>
16489 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
16490 from gl_HEADER_SYS_SOCKET.
16491 (gl_HEADER_SYS_SOCKET): Invoke it.
16492 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16494 2008-09-28 Bruno Haible <bruno@clisp.org>
16496 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
16497 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
16498 Needed on OSF/1 4.0.
16500 2008-09-28 Bruno Haible <bruno@clisp.org>
16502 Override open more carefully.
16503 * lib/open.c (orig_open): New function.
16504 (rpl_open): Use orig_open instead of open.
16505 * lib/fcntl.in.h: Add special invocation convention.
16506 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
16507 (gl_FUNC_OPEN): Invoke it.
16509 Override freopen more carefully.
16510 * lib/freopen.c (orig_freopen): New function.
16511 (rpl_freopen): Use orig_freopen instead of freopen.
16512 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
16513 (gl_FUNC_FREOPEN): Invoke it.
16515 Override fopen more carefully.
16516 * lib/fopen.c (orig_fopen): New function.
16517 (rpl_fopen): Use orig_fopen instead of fopen.
16518 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
16519 (gl_FUNC_FOPEN): Invoke it.
16520 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
16522 2008-09-28 Bruno Haible <bruno@clisp.org>
16524 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
16527 2008-09-28 Bruno Haible <bruno@clisp.org>
16529 * tests/test-sigaction.c (handler, main): Disable the check whether
16530 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
16531 glibc systems with LinuxThreads.
16533 2008-09-28 Bruno Haible <bruno@clisp.org>
16535 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
16537 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
16539 * lib/fcntl.in.h (open): Likewise.
16540 Reported by Rainer Tammer <tammer@tammer.net>.
16542 2008-09-28 Bruno Haible <bruno@clisp.org>
16544 * modules/posix_spawnp-tests: New file.
16545 * tests/test-posix_spawn.c: New file.
16546 * tests/test-posix_spawn.in.sh: New file.
16548 New module 'posix_spawnp'.
16549 * modules/posix_spawnp: New file.
16550 * lib/spawnp.c: New file, from GNU libc with modifications.
16551 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
16553 New module 'posix_spawn'.
16554 * modules/posix_spawn: New file.
16555 * lib/spawn.c: New file, from GNU libc with modifications.
16556 * doc/posix-functions/posix_spawn.texi: Mention the new module.
16558 New module 'posix_spawnattr_destroy'.
16559 * modules/posix_spawnattr_destroy: New file.
16560 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
16561 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
16564 New module 'posix_spawnattr_setsigmask'.
16565 * modules/posix_spawnattr_setsigmask: New file.
16566 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
16568 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
16571 New module 'posix_spawnattr_getsigmask'.
16572 * modules/posix_spawnattr_getsigmask: New file.
16573 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
16575 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
16578 New module 'posix_spawnattr_setsigdefault'.
16579 * modules/posix_spawnattr_setsigdefault: New file.
16580 * lib/spawnattr_setdefault.c: New file, from GNU libc with
16582 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
16585 New module 'posix_spawnattr_getsigdefault'.
16586 * modules/posix_spawnattr_getsigdefault: New file.
16587 * lib/spawnattr_getdefault.c: New file, from GNU libc with
16589 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
16592 New module 'posix_spawnattr_setschedpolicy'.
16593 * modules/posix_spawnattr_setschedpolicy: New file.
16594 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
16596 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
16599 New module 'posix_spawnattr_getschedpolicy'.
16600 * modules/posix_spawnattr_getschedpolicy: New file.
16601 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
16603 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
16606 New module 'posix_spawnattr_setschedparam'.
16607 * modules/posix_spawnattr_setschedparam: New file.
16608 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
16610 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
16613 New module 'posix_spawnattr_getschedparam'.
16614 * modules/posix_spawnattr_getschedparam: New file.
16615 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
16617 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
16620 New module 'posix_spawnattr_setpgroup'.
16621 * modules/posix_spawnattr_setpgroup: New file.
16622 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
16624 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
16627 New module 'posix_spawnattr_getpgroup'.
16628 * modules/posix_spawnattr_getpgroup: New file.
16629 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
16631 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
16634 New module 'posix_spawnattr_setflags'.
16635 * modules/posix_spawnattr_setflags: New file.
16636 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
16637 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
16640 New module 'posix_spawnattr_getflags'.
16641 * modules/posix_spawnattr_getflags: New file.
16642 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
16643 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
16646 New module 'posix_spawnattr_init'.
16647 * modules/posix_spawnattr_init: New file.
16648 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
16649 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
16652 New module 'posix_spawn_file_actions_destroy'.
16653 * modules/posix_spawn_file_actions_destroy: New file.
16654 * lib/spawn_faction_destroy.c: New file, from GNU libc with
16656 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
16659 New module 'posix_spawn_file_actions_addopen'.
16660 * modules/posix_spawn_file_actions_addopen: New file.
16661 * lib/spawn_faction_addopen.c: New file, from GNU libc with
16663 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
16666 New module 'posix_spawn_file_actions_adddup2'.
16667 * modules/posix_spawn_file_actions_adddup2: New file.
16668 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
16670 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
16673 New module 'posix_spawn_file_actions_addclose'.
16674 * modules/posix_spawn_file_actions_addclose: New file.
16675 * lib/spawn_faction_addclose.c: New file, from GNU libc with
16677 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
16680 New module 'posix_spawn_file_actions_init'.
16681 * modules/posix_spawn_file_actions_init: New file.
16682 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
16683 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
16686 New module 'posix_spawn-internal'.
16687 * modules/posix_spawn-internal: New file.
16688 * lib/spawn_int.h: New file, from GNU libc with modifications.
16689 * lib/spawni.c: New file, from GNU libc with modifications.
16690 * m4/posix_spawn.m4: New file.
16692 New module 'spawn'.
16693 * modules/spawn: New file.
16694 * lib/spawn.in.h: New file, from GNU libc with modifications.
16695 * m4/spawn_h.m4: New file.
16696 * doc/posix-headers/spawn.texi: Mention the new module.
16698 2008-09-28 Bruno Haible <bruno@clisp.org>
16700 * modules/sched-tests: New file.
16701 * tests/test-sched.c: New file.
16703 New module 'sched'.
16704 * modules/sched: New file.
16705 * lib/sched.in.h: New file.
16706 * m4/sched_h.m4: New file.
16707 * doc/posix-headers/sched.texi: Mention the new module.
16709 2008-09-27 Eric Blake <ebb9@byu.net>
16711 Fix previous patch, and tweak references to $0.
16712 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
16713 (func_version, func_gnulib_dir): Don't call this program
16715 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
16716 with using $0 in function.
16717 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
16718 (func_fatal_error): Reuse the name the user invoked us with.
16720 2008-09-27 Bruno Haible <bruno@clisp.org>
16722 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
16723 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
16724 (gl_ICONV_H): Not here.
16725 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
16726 instead of assigning ICONV_H directly.
16728 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
16729 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
16732 2008-09-27 Bruno Haible <bruno@clisp.org>
16734 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
16735 * modules/arpa_inet (Depends-on): Add link-warning.
16736 (Makefile.am): Insert the definition of GL_LINK-WARNING.
16737 * modules/unistd (Makefile.am): Likewise.
16739 2008-09-26 Bruno Haible <bruno@clisp.org>
16741 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
16743 (func_version): Essentially copied from gnulib-tool.
16744 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
16745 func_readlink): Copied from gnulib-tool.
16747 2008-09-26 Bruno Haible <bruno@clisp.org>
16749 * gnulib-tool (func_version): Change directory to $gnulib_dir before
16750 invoking git-version-gen.
16752 2008-09-26 Bruno Haible <bruno@clisp.org>
16754 * posix-modules: Update to directory names changed on 2008-01-19.
16755 Remove commas in output before splitting into words. No more need to
16756 avoid 'ftruncate' since 2007-02-19.
16758 2008-09-26 Bruno Haible <bruno@clisp.org>
16760 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
16762 2008-09-26 Bruno Haible <bruno@clisp.org>
16764 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
16765 * modules/fwriteerror (Depends-on): Add errno.
16767 2008-09-26 Bruno Haible <bruno@clisp.org>
16769 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
16770 * tests/test-vc-list-files-cvs.sh: Likewise.
16772 2008-09-26 Bruno Haible <bruno@clisp.org>
16774 * doc/posix-headers/sys_resource.texi: Reorder items.
16776 2008-09-26 Jim Meyering <meyering@redhat.com>
16778 fts: tweak inode comparison function
16779 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
16780 inode numbers, as documented.
16782 fts: sort dirent entries on inode number before traversing
16783 This avoids a quadratic, seek-related performance penalty when
16784 operating on a directory containing many entries (measurable at 10k;
16785 3.5 hours at 2 million entries with a cold cache) on certain types
16786 of file systems, including ext3 and ext4, but not tmpfs.
16787 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
16788 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
16789 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
16790 (fs_handles_readdir_ordered_dirents_efficiently): New function.
16791 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
16792 (fts_build): Set the stat.st_ino member from D_INO.
16793 If it is likely to be useful, sort dirent entries on inode number.
16795 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
16796 and the struct statfs.f_type member.
16797 * modules/fts (Depends-on): Add d-ino.
16799 2008-09-26 Bruno Haible <bruno@clisp.org>
16801 * modules/sigpipe-die (Depends-on): Add sigpipe.
16803 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
16804 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
16805 and GNULIB_STDIO_H_SIGPIPE are set.
16806 * lib/stdio-write.c: New file.
16807 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
16808 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
16809 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
16810 REPLACE_STDIO_WRITE_FUNCS.
16811 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
16812 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
16813 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
16814 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
16815 * modules/stdio (Files): Add lib/stdio-write.c.
16816 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
16817 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
16818 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
16819 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
16820 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
16821 REPLACE_FPRINTF_POSIX.
16822 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
16823 REPLACE_PRINTF_POSIX.
16824 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
16825 REPLACE_VFPRINTF_POSIX.
16826 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
16827 REPLACE_VPRINTF_POSIX.
16828 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
16830 * doc/posix-functions/fputc.texi: Likewise.
16831 * doc/posix-functions/fputs.texi: Likewise.
16832 * doc/posix-functions/fwrite.texi: Likewise.
16833 * doc/posix-functions/printf.texi: Likewise.
16834 * doc/posix-functions/putc.texi: Likewise.
16835 * doc/posix-functions/putchar.texi: Likewise.
16836 * doc/posix-functions/puts.texi: Likewise.
16837 * doc/posix-functions/vfprintf.texi: Likewise.
16838 * doc/posix-functions/vprintf.texi: Likewise.
16840 * modules/safe-write (Depends-on): Add write.
16842 * modules/sigpipe-tests: New file.
16843 * tests/test-sigpipe.c: New file.
16844 * tests/test-sigpipe.sh: New file.
16846 * modules/write: New file.
16847 * lib/unistd.in.h: Include <sys/types.h>.
16848 (write): New declaration.
16849 * lib/write.c: New file.
16850 * m4/write.m4: New file.
16851 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16852 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
16853 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
16854 GNULIB_WRITE, REPLACE_WRITE.
16855 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
16856 and the SIGPIPE issue.
16858 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
16859 (raise): New declaration.
16860 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
16861 (ext_signal): New function.
16862 (rpl_raise): New function.
16863 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
16864 GNULIB_SIGNAL_H_SIGPIPE.
16865 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
16866 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
16868 * modules/sigpipe: New file.
16869 * m4/sigpipe.m4: New file.
16871 2008-09-25 Derek Price <derek@ximbiot.com>
16872 Bruno Haible <bruno@clisp.org>
16874 * gnulib-tool (func_import): Report all license incompatibilities, not
16875 just the first one.
16877 2008-09-25 Bruno Haible <bruno@clisp.org>
16879 * gnulib-tool (func_import): When computing the edits, consider not
16880 only the Makefile.ams that exist but also those that will be generated.
16882 2008-09-25 Simon Josefsson <simon@josefsson.org>
16884 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
16885 fixes gnulib-tool --test warning about duplicate dependency.
16887 2008-09-25 Bruno Haible <bruno@clisp.org>
16889 * gnulib-tool: Don't ask the user to perform edits in the generated
16891 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
16892 apply to the Makefile.am being generated.
16893 (func_emit_tests_Makefile_am): Execute edits that apply to the
16894 Makefile.am being generated.
16895 (func_import): Setup list of Makefile.am edits before emitting the
16896 Makefile.ams, not at the end.
16897 (func_create_testdir): Update.
16898 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
16900 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
16902 * gnulib-tool (func_import): Store the --tests-base option in the
16903 comment in gnulib-cache.m4.
16905 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
16907 * NEWS: Document increased portability that sys_select now provides.
16909 * lib/sys_select.in.h: Install select wrapper.
16910 * lib/sys_socket.in.h: Use more descriptive name when there is no
16912 * lib/winsock-select.c: New.
16913 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
16914 Require gl_HEADER_SYS_SOCKET.
16915 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
16916 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
16917 * tests/test-sys_select.c: Add functional tests.
16919 2008-09-24 Eric Blake <ebb9@byu.net>
16921 open, fopen: close fd leak in last patch
16922 * lib/open.c (rpl_open): Close fd before returning error.
16923 * lib/fopen.c (rpl_fopen): Close fd before returning error.
16924 * doc/posix-functions/open.texi (open): Document that Irix also
16926 * doc/posix-functions/fopen.texi (fopen): Likewise.
16927 Reported by Paolo Bonzini.
16929 2008-09-24 Bruno Haible <bruno@clisp.org>
16931 Ensure that a filename ending in a slash cannot be used to access a
16933 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
16934 to check whether it's really a directory.
16935 * lib/fopen.c: Include fcntl.h, unistd.h.
16936 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
16938 * modules/fopen (Depends-on): Add unistd.
16939 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
16940 * tests/test-fopen.c (main): Likewise.
16941 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
16942 * doc/posix-functions/fopen.texi: Likewise.
16943 Reported by Eric Blake.
16945 2008-09-23 Eric Blake <ebb9@byu.net>
16947 c-stack: avoid compiler optimizations when provoking overflow
16948 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
16949 recursion harder to optimize, to ensure a stack overflow occurs.
16950 * tests/test-c-stack.c (recurse): Likewise.
16951 Borrowed from libsigsegv.
16953 c-stack: work around Irix sigaltstack bug
16954 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
16955 whether sigaltstack uses wrong end of stack_t (copied in part from
16957 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
16958 Irix bug, without requiring an over-allocation.
16959 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
16962 fopen: document mingw bug on directories
16963 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
16964 not allowing a stream visiting a directory, even though reading
16965 from such a stream is not portable.
16967 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
16969 * lib/poll.c: Rewrite.
16970 * modules/poll: Depend on alloca.
16972 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
16974 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
16975 instead define prototypes for a full set of wrappers. Ensure
16976 that Cygwin does not use the compatibility code, which is only
16978 * lib/winsock.c: New.
16979 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
16980 * modules/sys_socket: Add lib/winsock.c.
16982 * modules/poll-tests: Add errno and perror.
16983 * tests/test-poll.c: Use ioctl, not ioctlsocket.
16985 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
16987 * tests/test-poll.c: Downgrade minimum needed Winsock version.
16989 2008-09-23 Bruno Haible <bruno@clisp.org>
16991 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
16992 * doc/glibc-functions/*: Likewise.
16994 2008-09-23 Simon Josefsson <simon@josefsson.org>
16996 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
16999 2008-09-22 Eric Blake <ebb9@byu.net>
17000 Bruno Haible <bruno@clisp.org>
17002 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
17003 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
17004 supply %A but mishandle pseudo-NaN.
17005 Reported by Simon Josefsson.
17007 2008-09-21 Bruno Haible <bruno@clisp.org>
17009 * tests/test-lock.c (main): Tweak skip message.
17010 * tests/test-tls.c (main): Likewise.
17012 2008-09-21 Bruno Haible <bruno@clisp.org>
17014 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
17015 whether 'struct sigaction' has sa_sigaction here...
17016 (gl_PREREQ_SIG_HANDLER_H): ... not here.
17017 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
17019 2008-09-21 Bruno Haible <bruno@clisp.org>
17021 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
17023 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
17024 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
17026 (Support for obsolete systems lacking POSIX:2001): New section.
17027 (String handling <string.h>): Move strdup to the new section.
17028 Suggested by Simon Josefsson and Paolo Bonzini.
17030 2008-09-21 Bruno Haible <bruno@clisp.org>
17032 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
17033 exponents in %e and %g results on 'long double'. Needed for mingw's
17034 improved *printf functions.
17035 * tests/test-vasprintf-posix.c (test_function): Likewise.
17036 * tests/test-snprintf-posix.h (test_function): Likewise.
17037 * tests/test-sprintf-posix.h (test_function): Likewise.
17038 Reported by Eric Blake.
17040 2008-09-21 Bruno Haible <bruno@clisp.org>
17042 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
17043 * tests/test-sprintf-posix.h (test_function): Likewise.
17045 2008-09-21 Bruno Haible <bruno@clisp.org>
17047 * modules/getpass (Depends-on): Add strdup-posix.
17049 New module 'strdup-posix'.
17050 * modules/strdup-posix: New file.
17051 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
17052 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
17053 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17055 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
17056 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
17057 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17060 * modules/strdup (Depends-on): Remove malloc-posix.
17062 2008-09-20 Bruno Haible <bruno@clisp.org>
17064 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
17067 2008-09-20 Bruno Haible <bruno@clisp.org>
17069 Ensure that wint_t gets defined on IRIX 5.3.
17070 * lib/wchar.in.h (wint_t): Define if not defined by the system.
17071 * lib/wctype.in.h (wint_t): Likewise.
17072 (__wctype_wint_t): Remove type.
17073 (isw*): Use wint_t instead of __wctype_wint_t.
17074 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
17075 * modules/wchar (Files): Add m4/wint_t.m4.
17076 (Makefile.am): Substitute HAVE_WINT_T.
17077 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
17078 * tests/test-wctype.c: Check that wint_t is defined.
17079 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
17080 * doc/posix-headers/wctype.texi: Likewise.
17081 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17083 2008-09-18 Bruno Haible <bruno@clisp.org>
17085 * gnulib-tool (func_exit): Update comment.
17087 2008-09-18 Simon Josefsson <simon@josefsson.org>
17089 * modules/getaddrinfo (Depends-on): Remove strdup, this module
17090 assumes strdup exists and does not depend on strdup to return
17091 ENOMEM on out of memory conditions.
17093 2008-09-18 Bruno Haible <bruno@clisp.org>
17095 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
17096 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
17097 digits for the exponent.
17099 2008-09-18 Jim Meyering <meyering@redhat.com>
17100 Bruno Haible <bruno@clisp.org>
17102 * lib/vasnprintf.c (decimal_point_char): Define also if
17103 NEED_PRINTF_INFINITE_LONG_DOUBLE.
17105 2008-09-16 Bruno Haible <bruno@clisp.org>
17106 and Eric Blake <ebb9@byu.net>
17108 vasnprintf: support Irix 5.3
17109 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
17110 that mishandle long double infinity.
17111 Reported by Tom G. Christensen.
17113 2008-09-16 Bruno Haible <bruno@clisp.org>
17115 * doc/glibc-functions/scandir.texi: Mention the function is missing on
17117 * doc/glibc-functions/alphasort.texi: Likewise.
17118 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
17120 2008-09-16 Jim Meyering <meyering@redhat.com>
17122 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
17123 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
17124 a umask modification leak out of a subshell. Otherwise, the
17125 opensolaris /bin/sh would be accepted and thus cause unwarranted
17126 failures in the coreutils test suite.
17128 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
17130 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
17133 2008-09-16 Jim Meyering <meyering@redhat.com>
17135 avoid spurious test failure when library is built without ACL support
17136 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
17137 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
17138 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
17139 * tests/test-copy-acl.sh: Likewise.
17141 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17143 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
17144 based on character occurrence counts.
17146 2008-09-15 Eric Blake <ebb9@byu.net>
17148 tests: avoid some compiler warnings
17149 * tests/test-memchr.c (main): Pass NULL indirectly.
17150 * tests/test-closein.c (main): Avoid unused variable.
17152 2008-09-15 Bruno Haible <bruno@clisp.org>
17154 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
17155 are missing on OpenBSD 4.0 individually.
17156 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17158 2008-09-15 Bruno Haible <bruno@clisp.org>
17160 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
17161 * doc/posix-functions/strerror.texi: Mention also Cygwin.
17162 * doc/posix-functions/perror.texi: Likewise.
17163 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
17165 Reported by Eric Blake.
17167 * lib/errno.in.h: Use replacement values >= 2000.
17168 Reported by Eric Blake.
17170 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17172 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
17173 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
17175 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
17176 compareseq was aborted.
17178 2008-09-14 Bruno Haible <bruno@clisp.org>
17180 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
17182 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
17183 (fstrcmp_bounded): Simplify result computation accordingly.
17185 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17187 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
17188 (fstrcmp): Define in terms of fstrcmp_bounded.
17189 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
17190 lower_bound argument.
17191 Return quickly if the result is certainly < lower_bound.
17192 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
17194 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17196 * lib/diffseq.h (EARLY_ABORT): New macro.
17197 (compareseq): Change return type to bool. Return true when EARLY_ABORT
17200 2008-09-14 Bruno Haible <bruno@clisp.org>
17202 * modules/perror-tests: New file.
17203 * tests/test-perror.sh: New file.
17204 * tests/test-perror.c: New file.
17206 New module 'perror'.
17207 * lib/stdio.in.h (perror): New declaration.
17208 * lib/perror.c: New file.
17209 * m4/perror.m4: New file.
17210 * modules/perror: New file.
17211 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
17212 * doc/posix-functions/perror.texi: Mention the perror module.
17213 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
17215 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
17218 2008-09-14 Bruno Haible <bruno@clisp.org>
17220 * modules/stdio (Makefile.am): Reorder to match the order in
17222 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
17224 2008-09-13 Bruno Haible <bruno@clisp.org>
17226 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
17228 2008-09-13 Bruno Haible <bruno@clisp.org>
17230 Extend strerror to cover the added errno values.
17231 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
17232 (rpl_strerror): Provide error messages for the added errno values and
17233 for the WSA* values.
17234 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
17235 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
17237 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
17238 * modules/strerror (Depends-on): Add errno.
17239 * doc/posix-functions/strerror.texi: Document the change.
17240 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
17243 2008-09-13 Bruno Haible <bruno@clisp.org>
17245 * modules/EOVERFLOW: Remove file.
17246 * m4/eoverflow.m4: Remove file.
17247 * modules/EOVERFLOW-tests: Remove file.
17248 * tests/test-EOVERFLOW.c: Remove file.
17249 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
17250 * modules/ftell (Depends-on): Likewise.
17251 * modules/getdelim (Depends-on): Likewise.
17252 * modules/getugroups (Depends-on): Likewise.
17253 * modules/poll (Depends-on): Likewise.
17254 * modules/snprintf (Depends-on): Likewise.
17255 * modules/sprintf-posix (Depends-on): Likewise.
17256 * modules/vasnprintf (Depends-on): Likewise.
17257 * modules/vasprintf (Depends-on): Likewise.
17258 * modules/vfprintf-posix (Depends-on): Likewise.
17259 * modules/vsnprintf (Depends-on): Likewise.
17260 * modules/vsprintf-posix (Depends-on): Likewise.
17261 * modules/xvasprintf (Depends-on): Likewise.
17262 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17263 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
17264 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
17265 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
17266 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17267 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
17268 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
17269 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
17270 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17271 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
17272 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
17273 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
17274 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17275 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
17276 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
17277 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
17278 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17279 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
17280 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
17281 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
17282 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17283 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
17284 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
17285 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
17286 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
17287 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17288 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
17289 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
17290 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
17291 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
17292 * MODULES.html.sh: Remove EOVERFLOW.
17293 * NEWS: Mention the change.
17295 2008-09-13 Bruno Haible <bruno@clisp.org>
17297 * modules/errno-tests: New file.
17298 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
17300 * lib/errno.in.h: New file.
17301 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
17302 * modules/errno: New file.
17303 * doc/posix-headers/errno.texi: Update documentation.
17304 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
17306 2008-09-13 Bruno Haible <bruno@clisp.org>
17308 * tests/test-poll.c: Use #if for native Windows, rather than testing
17311 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17312 Bruno Haible <bruno@clisp.org>
17314 * lib/glob.c: Don't include <pwd.h> on native Windows.
17315 (WINDOWS32): New macro.
17316 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
17318 2008-09-13 Bruno Haible <bruno@clisp.org>
17320 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
17321 (ETIMEDOUT): Remove macro.
17322 (glthread_cond_timedwait_multithreaded): New declaration.
17323 (glthread_cond_timedwait): Use it.
17324 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
17325 (glthread_cond_timedwait_multithreaded): New function.
17327 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
17329 * modules/poll-tests: Do not check for io.h.
17330 * tests/test-poll.c: Check for __MSVCRT__ instead.
17332 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
17334 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
17335 * modules/poll-tests: Add inet_pton, stdbool, sockets.
17336 * tests/test-poll.c: Use them. Use _pipe on Windows.
17338 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
17340 * modules/poll-tests: New.
17341 * tests/test-poll.c: New.
17343 2008-09-12 Eric Blake <ebb9@byu.net>
17345 frexp: test for NetBSD failure on -0.0
17346 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
17347 not all, bugs from NetBSD 3.0 have been fixed.
17348 * doc/posix-functions/frexp.texi (frexp): Document bug.
17349 Reported by Thomas Klausner.
17351 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
17352 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
17354 Reported by Jonathan C. Patschke <jp@centtech.com>.
17356 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17358 * lib/glthread/cond.h: Use dummy implementation also if
17361 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17363 * modules/fnmatch-posix (License): Change to LGPLv2+.
17364 * modules/fnmatch-gnu (License): Likewise.
17366 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17368 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
17370 2008-09-11 Jim Meyering <meyering@redhat.com>
17372 * users.txt: Add gtk-vnc.
17374 2008-09-08 Simon Josefsson <simon@josefsson.org>
17376 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
17379 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
17380 required for 16-bit and 8-bit rotates.
17381 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
17382 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
17383 UINT8_MAX instead of hard-coded constants.
17384 Suggested by Paul Eggert.
17386 2008-09-07 Bruno Haible <bruno@clisp.org>
17388 * tests/test-striconveh.c (main): Check behaviour when converting from
17391 Make striconveh work better with stateful encodings.
17392 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
17393 that iconv does not increment the inptr when returning -1/EINVAL.
17395 2008-09-07 Bruno Haible <bruno@clisp.org>
17397 * build-aux/config.rpath: Update according to libtool-2.2.6.
17398 * build-aux/config.libpath: Likewise.
17400 2008-09-06 Bruno Haible <bruno@clisp.org>
17402 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
17403 * lib/freadptr.c (freadptr): Likewise.
17404 * lib/freadseek.c (freadptrinc): Likewise.
17405 Reported by Simon Josefsson.
17407 2008-09-06 Bruno Haible <bruno@clisp.org>
17409 * modules/freadptr (License): Change to LGPLv2+.
17410 * modules/freadseek (License): Likewise.
17411 Suggested by Eric Blake.
17413 * modules/memchr2 (License): Change to LGPLv2+.
17414 Approved by Eric Blake.
17416 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17417 Bruno Haible <bruno@clisp.org>
17419 Make gnulib-tool work with native 'sed' on AIX.
17420 * gnulib-tool (sed_noop): New variable.
17421 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
17422 func_add_or_update, func_create_testdir): Use it to initialize sed
17424 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17426 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
17427 Bruno Haible <bruno@clisp.org>
17429 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
17430 also works after #include directives.
17432 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
17434 getdate.y: reject an out-of-range timezone value
17435 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
17436 the range [-24...+24]. When specified with only one or two digits,
17437 * tests/test-getdate.c: Tests for the fix.
17438 * doc/getdate.texi: Document this change.
17440 2008-09-03 Bruno Haible <bruno@clisp.org>
17442 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
17444 2008-09-02 Simon Josefsson <simon@josefsson.org>
17446 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
17447 <bruce.korb@gmail.com> with ideas from Ben Pfaff
17448 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
17449 Blake <ebb9@byu.net>.
17451 * tests/test-bitrotate.c: Add more test vectors.
17453 2008-09-02 Eric Blake <ebb9@byu.net>
17455 vasnprintf-posix: handle large precision via %.*d
17456 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
17457 when handling it ourselves.
17458 * tests/test-vasnprintf-posix.c (test_function): Add test.
17459 * tests/test-snprintf-posix.h (test_function): Likewise.
17460 * tests/test-sprintf-posix.h (test_function): Likewise.
17461 * tests/test-vasprintf-posix.c (test_function): Likewise.
17462 Reported by Alain Guibert.
17464 2008-09-01 Eric Blake <ebb9@byu.net>
17466 c-stack: make configure-time check more robust
17467 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
17468 successful sigaction call.
17469 Reported by Tom G. Christensen.
17471 2008-09-01 Bruno Haible <bruno@clisp.org>
17473 New module 'findprog-lgpl'.
17474 * modules/findprog-lgpl: New file.
17475 * lib/findprog-lgpl.c: New file.
17476 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
17477 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
17478 to decide whether to use strdup or xstrdup, concatenated_filename or
17479 xconcatenated_filename.
17481 2008-09-01 Bruno Haible <bruno@clisp.org>
17483 Split module 'concat-filename' into 'concat-filename' (LGPL) and
17484 'xconcat-filename' (GPL).
17485 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
17486 (License): Change to LGPLv2+.
17487 * modules/xconcat-filename: New file.
17488 * lib/concat-filename.h (concatenated_filename): Change specification.
17489 (xconcatenated_filename): New declaration.
17490 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
17491 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
17493 * lib/xconcat-filename.c: New file.
17494 * NEWS: Mention the change.
17495 * lib/findprog.c: Include concat-filename.h, not filename.h.
17496 (find_in_path): Use xconcatenated_filename instead of
17497 concatenated_filename.
17498 * lib/javacomp.c: Include concat-filename.h, not filename.h.
17499 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
17500 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
17501 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
17502 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
17503 instead of concatenated_filename.
17504 * lib/javaexec.c: Include concat-filename.h, not filename.h.
17505 (execute_java_class): Use xconcatenated_filename instead of
17506 concatenated_filename.
17507 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
17508 * modules/javacomp (Depends-on): Likewise.
17509 * modules/javaexec (Depends-on): Likewise.
17511 2008-09-01 Bruno Haible <bruno@clisp.org>
17513 Split module 'filename' into 'filename' and 'concat-filename'.
17514 * modules/filename: Keep only lib/filename.h.
17515 (License): Change to LGPLv2+.
17516 * modules/concat-filename: New file, extracted from modules/filename.
17517 * lib/filename.h (concatenated_filename): Remove declaration.
17518 * lib/concat-filename.h: New file, extracted from lib/filename.h.
17519 * lib/concat-filename.c: Include concat-filename.h.
17520 * NEWS: Mention the change.
17522 2008-09-01 Simon Josefsson <simon@josefsson.org>
17524 * lib/bitrotate.h (rotl8, rotr8): Add.
17526 * modules/bitrotate (configure.ac): Need
17527 AC_REQUIRE([AC_C_INLINE]).
17528 (Description): Mention stdint.h. Reported by Bruno Haible
17531 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
17532 Paolo Bonzini <bonzini@gnu.org>.
17534 2008-08-31 Bruno Haible <bruno@clisp.org>
17536 Assume Solaris specific bi-arch conventions on Solaris systems.
17537 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
17538 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
17539 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
17540 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
17541 like acl_libdirstem.
17542 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
17544 * NEWS: Mention the change.
17545 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
17547 2008-08-31 Jim Meyering <meyering@redhat.com>
17549 * lib/strftime.h: Add comments describing the two added arguments.
17551 remove duplicate #include directives
17552 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
17553 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
17555 2008-08-31 Bruno Haible <bruno@clisp.org>
17557 New module 'sigpipe-die'.
17558 * modules/sigpipe-die: New file.
17559 * lib/sigpipe-die.h: New file.
17560 * lib/sigpipe-die.c: New file.
17561 * MODULES.html.sh (Signal handling): Add sigpipe-die.
17563 2008-08-31 Bruno Haible <bruno@clisp.org>
17565 Don't override previously installed signal handlers.
17566 * lib/fatal-signal.c (saved_sigactions): New variable.
17567 (uninstall_handlers): Reset the signal to the saved handler, not
17568 to SIG_DFL (except when ignored).
17569 (install_handlers): Save the previous handlers.
17571 2008-08-30 Bruno Haible <bruno@clisp.org>
17573 * gnulib-tool (func_reset_sigpipe): New function.
17574 (func_get_automake_snippet, func_modules_transitive_closure,
17575 func_import): Invoke it before a join command that reads from stdin,
17576 to avoid "echo: write error: Broken pipe" error messages on stderr.
17577 Reported by Sam Steingold <sds@gnu.org>.
17579 2008-08-30 Bruno Haible <bruno@clisp.org>
17581 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
17582 Code copied from m4/open.m4.
17583 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
17584 access and the filename ends in a slash. Code copied from lib/open.c.
17585 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
17586 * tests/test-fopen.c (main): Check against bug with trailing slash.
17588 2008-08-29 Bruno Haible <bruno@clisp.org>
17590 Avoid some "gcc -pedantic" warnings.
17591 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
17592 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
17593 * lib/dirent.in.h: Likewise.
17594 * lib/fcntl.in.h: Likewise.
17595 * lib/float.in.h: Likewise.
17596 * lib/iconv.in.h: Likewise.
17597 * lib/inttypes.in.h: Likewise.
17598 * lib/locale.in.h: Likewise.
17599 * lib/math.in.h: Likewise.
17600 * lib/netinet_in.in.h: Likewise.
17601 * lib/search.in.h: Likewise.
17602 * lib/signal.in.h: Likewise.
17603 * lib/stdarg.in.h: Likewise.
17604 * lib/stdint.in.h: Likewise.
17605 * lib/stdio.in.h: Likewise.
17606 * lib/stdlib.in.h: Likewise.
17607 * lib/string.in.h: Likewise.
17608 * lib/strings.in.h: Likewise.
17609 * lib/sys_select.in.h: Likewise.
17610 * lib/sys_socket.in.h: Likewise.
17611 * lib/sys_stat.in.h: Likewise.
17612 * lib/sys_time.in.h: Likewise.
17613 * lib/sysexits.in.h: Likewise.
17614 * lib/time.in.h: Likewise.
17615 * lib/unistd.in.h: Likewise.
17616 * lib/wchar.in.h: Likewise.
17617 * lib/wctype.in.h: Likewise.
17618 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
17619 * modules/fchdir (Makefile.am): Likewise.
17620 * modules/fcntl (Makefile.am): Likewise.
17621 * modules/float (Makefile.am): Likewise.
17622 * modules/iconv_open (Makefile.am): Likewise.
17623 * modules/inttypes (Makefile.am): Likewise.
17624 * modules/locale (Makefile.am): Likewise.
17625 * modules/math (Makefile.am): Likewise.
17626 * modules/netinet_in (Makefile.am): Likewise.
17627 * modules/search (Makefile.am): Likewise.
17628 * modules/signal (Makefile.am): Likewise.
17629 * modules/stdarg (Makefile.am): Likewise.
17630 * modules/stdint (Makefile.am): Likewise.
17631 * modules/stdio (Makefile.am): Likewise.
17632 * modules/stdlib (Makefile.am): Likewise.
17633 * modules/string (Makefile.am): Likewise.
17634 * modules/strings (Makefile.am): Likewise.
17635 * modules/sys_select (Makefile.am): Likewise.
17636 * modules/sys_socket (Makefile.am): Likewise.
17637 * modules/sys_stat (Makefile.am): Likewise.
17638 * modules/sys_time (Makefile.am): Likewise.
17639 * modules/sysexits (Makefile.am): Likewise.
17640 * modules/time (Makefile.am): Likewise.
17641 * modules/unistd (Makefile.am): Likewise.
17642 * modules/wchar (Makefile.am): Likewise.
17643 * modules/wctype (Makefile.am): Likewise.
17644 Reported by Reuben Thomas <rrt@sc3d.org>.
17646 2008-08-29 Bruno Haible <bruno@clisp.org>
17648 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
17651 2008-08-29 Simon Josefsson <simon@josefsson.org>
17653 * MODULES.html.sh (Misc): Add bitrotate.
17655 * modules/bitrotate: New file.
17657 * lib/bitrotate.h: New file.
17659 * modules/bitrotate-tests: New file.
17661 * tests/test-bitrotate.c: New file.
17663 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
17664 on the bitrotate module.
17666 * lib/arctwo.c: Use new bitrotate module.
17668 2008-08-29 Jim Meyering <meyering@redhat.com>
17670 bootstrap: merge changes from coreutils
17671 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
17672 of copied files. Remove a kludge, now that this is fixed.
17673 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
17674 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
17675 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
17677 2008-08-29 Bruno Haible <bruno@clisp.org>
17679 * MODULES.html.sh: Remove --cvs-urls option.
17681 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
17683 maint.mk: adjust to file name change
17684 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
17686 2008-08-28 Jim Meyering <meyering@redhat.com>
17688 * modules/getndelim2 (License): Relicense to LGPLv2+.
17689 Approved by Richard Stallman for the version of 1995, and by
17690 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
17692 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
17694 * lib/getdelim.c (flockfile, funlockfile): Make all of them
17695 dummy if one is not available. Do not touch them if
17696 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
17697 (getc_maybe_unlocked): New.
17698 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
17700 2008-08-26 Eric Blake <ebb9@byu.net>
17702 doc/INSTALL: resync from autoconf
17703 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
17704 (INSTALL_PRELUDE): Delete; this is done more efficiently by
17706 * install.texi [!autoconf]: ...here. Resync from autoconf.
17707 * INSTALL: Regenerate.
17708 * INSTALL.ISO: New file.
17709 * INSTALL.UTF-8: Likewise.
17711 2008-08-26 Jim Meyering <meyering@redhat.com>
17713 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
17714 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
17715 these definitions conditional, so that they may be overridden, too.
17717 2008-08-26 Bruno Haible <bruno@clisp.org>
17719 Generate INSTALL file variants with prettier quotes.
17720 * doc/Makefile (INSTALL_PRELUDE): New macro.
17722 (INSTALL.ISO, INSTALL.UTF-8): New rules.
17724 2008-08-26 Bruno Haible <bruno@clisp.org>
17726 Run makeinfo in an English locale.
17727 * doc/Makefile (MAKEINFO): New variable.
17729 2008-08-26 Bruno Haible <bruno@clisp.org>
17731 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
17732 Suggested by Eric Blake.
17734 2008-08-25 Bruno Haible <bruno@clisp.org>
17736 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
17738 2008-08-25 Eric Blake <ebb9@byu.net>
17740 c-stack: test that stack overflow can be caught
17741 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
17742 that platform allows handling stack overflow; at least OS/2 EMX
17743 has sigaltstack, but crashes before transferring control to
17744 handler on stack overflow.
17745 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
17746 check for HAVE_STACK_OVERFLOW_HANDLING.
17747 Reported by Elbert Pol.
17749 2008-08-25 Bruno Haible <bruno@clisp.org>
17751 * doc/posix-functions/strftime.texi: Fix description of strftime
17754 2008-08-24 Bruno Haible <bruno@clisp.org>
17756 * tests/uniwidth/test-uc_width2.c: New file.
17757 * tests/uniwidth/test-uc_width2.sh: New file.
17758 * modules/uniwidth/width-tests (Files): Add the new files.
17759 (TESTS): Add uniwidth/test-uc_width2.sh.
17760 (TESTS_ENVIRONMENT): New variable.
17761 (check_PROGRAMS): Add test-uc_width2.
17762 (test_uc_width2_SOURCES): New variable.
17764 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
17765 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
17767 Reported by Alexander V. Lukyanov <lav@netis.ru>.
17769 2008-08-22 Eric Blake <ebb9@byu.net>
17771 test-lock, test-tls: mention why a test is skipped
17772 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
17774 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
17776 count-one-bits: relax license
17777 * modules/count-one-bits (License): Relicense to LGPLv2+.
17778 Suggested by Ludovic Courtès, approved by Ben Pfaff.
17780 2008-08-22 Andreas Schwab <schwab@suse.de>
17782 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
17783 Remove spurious space in assignment.
17785 2008-08-21 Simon Josefsson <simon@josefsson.org>
17787 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
17788 Paul Eggert <eggert@CS.UCLA.EDU>.
17790 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
17792 * modules/gettext: Add m4/threadlib.m4.
17794 2008-08-19 Eric Blake <ebb9@byu.net>
17796 test-c-stack: fix compilation failure on FreeBSD 5.0
17797 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
17798 headers before <sys/resource.h>.
17799 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
17801 Reported by Nelson H. F. Beebe.
17803 strverscmp: migrate from "strverscmp.h" to <string.h>
17804 * modules/string (Makefile.am): Add new hooks.
17805 * modules/strverscmp (Files): Remove strverscmp.h.
17806 (Depends-on): Add string.
17807 (configure.ac): Add indicator.
17808 (Include): Mention new header.
17809 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
17811 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
17813 * lib/strverscmp.h: Delete.
17814 * lib/string.in.h (strverscmp): Provide declaration, when needed.
17815 * tests/test-strverscmp.c (includes): Adjust client.
17816 * lib/check-version.c (includes): Likewise.
17817 * NEWS: Document the change.
17819 strverscmp: add unit test
17820 * modules/strverscmp-tests: New file.
17821 * tests/test-strverscmp.c: Likewise.
17823 2008-08-19 Simon Josefsson <simon@josefsson.org>
17825 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
17826 regarding Windows crypto stuff, from Mono.
17828 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
17830 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
17831 if present, for intel RND. Return error on failures.
17833 2008-08-18 Ben Pfaff <blp@gnu.org>
17835 gitlog-to-changelog: give better diagnostic for failed pipe-open
17836 * build-aux/gitlog-to-changelog: Improve error message: suggest
17837 that the version of Git may be too old.
17839 2008-08-18 Simon Josefsson <simon@josefsson.org>
17841 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
17842 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
17844 2008-08-18 Bruno Haible <bruno@clisp.org>
17846 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
17849 2008-08-18 Bruno Haible <bruno@clisp.org>
17851 * lib/glthread/threadlib.c: Include <pthread.h>.
17853 2008-08-18 Bruno Haible <bruno@clisp.org>
17855 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
17856 glthread_recursive_lock_* macros.
17857 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
17860 2008-08-18 Bruno Haible <bruno@clisp.org>
17862 * lib/glthread/thread.c: Avoid forcing a context switch right after
17865 2008-08-17 Bruno Haible <bruno@clisp.org>
17867 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
17868 * lib/glthread/thread.h: Provide Win32 specific implementation.
17869 * modules/thread (Files): Add lib/glthread/thread.c.
17870 (Depends-on): Add lock.
17871 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
17873 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17875 New module 'yield'.
17876 * modules/yield: New file.
17877 * lib/glthread/yield.h: New file.
17878 * m4/yield.m4: New file.
17879 * MODULES.html.sh (Multithreading): Add yield.
17881 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17883 New module 'thread'.
17884 * modules/thread: New file.
17885 * lib/glthread/thread.h: New file.
17886 * m4/thread.m4: New file.
17887 * MODULES.html.sh (Multithreading): Add thread.
17889 2008-08-17 Bruno Haible <bruno@clisp.org>
17891 * lib/glthread/lock.h: Include <stdlib.h> always.
17892 * lib/glthread/tls.h: Likewise.
17893 * lib/glthread/cond.h: Likewise.
17895 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
17898 * modules/cond: New file.
17899 * lib/glthread/cond.h: New file.
17900 * lib/glthread/cond.c: New file.
17901 * m4/cond.m4: New file.
17902 * MODULES.html.sh (Multithreading): Add cond.
17904 2008-08-16 Eric Blake <ebb9@byu.net>
17906 c-stack: fix regression on Irix 5.3 from 2008-06-21
17907 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
17909 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
17910 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
17911 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
17912 * modules/signal (Makefile.am): Use the value.
17913 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
17914 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
17915 * doc/posix-headers/signal.texi (signal.h): Document this
17917 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
17918 Reported by Tom G. Christensen.
17920 2008-08-17 Bruno Haible <bruno@clisp.org>
17922 New module 'threadlib'.
17923 * modules/threadlib: New file.
17924 * lib/glthread/threadlib.c: New file, extracted from
17925 lib/glthread/lock.c.
17926 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
17928 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
17929 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
17930 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
17932 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
17933 (gl_DISABLE_THREADS): Remove macro.
17934 * modules/lock (Files): Remove build-aux/config.rpath.
17935 (Depends-on): Remove havelib. Add threadlib.
17936 (configure.ac-early): Remove section.
17937 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
17938 * modules/tls (Depends-on): Remove lock. Add threadlib.
17939 (Link): New section, copied from threadlib.
17940 * MODULES.html.sh (Multithreading): Add threadlib.
17942 2008-08-14 Bruno Haible <bruno@clisp.org>
17944 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
17945 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
17946 glthread_rwlock_unlock, glthread_rwlock_destroy,
17947 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
17948 glthread_recursive_lock_destroy): Define as macros always.
17949 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
17950 glthread_lock_lock.
17951 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
17952 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
17953 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
17954 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
17955 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
17956 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
17957 (glthread_recursive_lock_lock_func): Renamed from
17958 glthread_recursive_lock_lock.
17959 (glthread_recursive_lock_unlock_func): Renamed from
17960 glthread_recursive_lock_unlock.
17961 (glthread_recursive_lock_destroy_func): Renamed from
17962 glthread_recursive_lock_destroy.
17964 2008-08-14 Bruno Haible <bruno@clisp.org>
17966 * lib/glthread/lock.h: Renamed from lib/lock.h.
17967 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
17968 * lib/glthread/tls.h: Renamed from lib/tls.h.
17969 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
17970 * lib/fstrcmp.c: Update includes.
17971 * lib/strsignal.c: Update includes.
17972 * modules/lock (Files, Makefile.am): Update.
17973 (Include): Change to "glthread/lock.h".
17974 * modules/tls (Files, Makefile.am): Update.
17975 (Include): Change to "glthread/tls.h".
17976 * tests/test-lock.c: Update includes.
17977 * tests/test-tls.c: Update includes.
17978 * NEWS: Mention the renamed header files.
17980 2008-08-11 Jim Meyering <meyering@redhat.com>
17982 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
17984 2008-08-11 Eric Blake <ebb9@byu.net>
17986 test-c-stack: avoid C99-ism
17987 * tests/test-c-stack.c (main): Fix whitespace, move declaration
17989 Reported by Alain Guibert.
17991 2008-08-10 Jim Meyering <meyering@redhat.com>
17993 ensure that return value of uinttostr et al are not ignored
17994 * lib/inttostr.h (__GNUC_PREREQ): Define.
17995 (__attribute_warn_unused_result__): Define.
17996 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
17998 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
18000 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
18001 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
18003 2008-08-07 Jim Meyering <meyering@redhat.com>
18005 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
18007 * modules/mkstemp (License): Relicense under LGPLv2+.
18008 * modules/tempname (License): Likewise.
18010 2008-08-06 Bruno Haible <bruno@clisp.org>
18012 * lib/poll.c (poll): Further micro-optimization.
18014 2008-08-06 Jim Meyering <meyering@redhat.com>
18016 inet_pton.c: use locale-independent tolower
18017 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
18018 (inet_pton6): Use c_tolower rather than tolower.
18019 * modules/inet_pton (Depends-on): Add c-ctype.
18021 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
18023 * lib/poll.c (poll): Avoid division when timeout is 0, cache
18024 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
18026 2008-08-06 Jim Meyering <meyering@redhat.com>
18028 * modules/inet_pton (License): Relicense under LGPLv2+.
18030 2008-08-03 Bruno Haible <bruno@clisp.org>
18032 Additional non-aborting API for lock and tls.
18033 * lib/lock.h: Include <errno.h>.
18034 (glthread_lock_init): New macro/function.
18035 (gl_lock_init): Define as wrapper around glthread_lock_init.
18036 (glthread_lock_lock): New macro/function.
18037 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
18038 (glthread_lock_unlock): New macro/function.
18039 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
18040 (glthread_lock_destroy): New macro/function.
18041 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
18042 (glthread_rwlock_init): New macro/function.
18043 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
18044 (glthread_rwlock_rdlock): New macro/function.
18045 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
18046 (glthread_rwlock_wrlock): New macro/function.
18047 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
18048 (glthread_rwlock_unlock): New macro/function.
18049 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
18050 (glthread_rwlock_destroy): New macro/function.
18051 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
18052 (glthread_recursive_lock_init): New macro/function.
18053 (gl_recursive_lock_init): Define as wrapper around
18054 glthread_recursive_lock_init.
18055 (glthread_recursive_lock_lock): New macro/function.
18056 (gl_recursive_lock_lock): Define as wrapper around
18057 glthread_recursive_lock_lock.
18058 (glthread_recursive_lock_unlock): New macro/function.
18059 (gl_recursive_lock_unlock): Define as wrapper around
18060 glthread_recursive_lock_unlock.
18061 (glthread_recursive_lock_destroy): New macro/function.
18062 (gl_recursive_lock_destroy): Define as wrapper around
18063 glthread_recursive_lock_destroy.
18064 (glthread_once): New macro/function.
18065 (gl_once): Define as wrapper around glthread_once.
18066 Update function declarations.
18067 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
18068 glthread_rwlock_init. Return error code.
18069 (glthread_rwlock_rdlock_multithreaded): Renamed from
18070 glthread_rwlock_rdlock. Return error code.
18071 (glthread_rwlock_wrlock_multithreaded): Renamed from
18072 glthread_rwlock_wrlock. Return error code.
18073 (glthread_rwlock_unlock_multithreaded): Renamed from
18074 glthread_rwlock_unlock. Return error code.
18075 (glthread_rwlock_destroy_multithreaded): Renamed from
18076 glthread_rwlock_destroy. Return error code.
18077 (glthread_recursive_lock_init_multithreaded): Renamed from
18078 glthread_recursive_lock_init. Return error code.
18079 (glthread_recursive_lock_lock_multithreaded): Renamed from
18080 glthread_recursive_lock_lock. Return error code.
18081 (glthread_recursive_lock_unlock_multithreaded): Renamed from
18082 glthread_recursive_lock_unlock. Return error code.
18083 (glthread_recursive_lock_destroy_multithreaded): Renamed from
18084 glthread_recursive_lock_destroy. Return error code.
18085 (glthread_once_call): Make static.
18086 (glthread_once_multithreaded): Renamed from glthread_once.
18087 * lib/tls.h: Include <errno.h>.
18088 (glthread_tls_key_init): New macro/function.
18089 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
18090 (glthread_tls_set): New macro/function.
18091 (gl_tls_set): Define as wrapper around glthread_tls_set.
18092 (glthread_tls_key_destroy): New macro/function.
18093 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
18094 Update function declarations.
18095 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
18097 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18099 2008-08-04 Eric Blake <ebb9@byu.net>
18101 gnumakefile: use space, not TAB, outside of targets
18102 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
18104 2008-08-02 Jim Meyering <meyering@redhat.com>
18106 getdate.y: avoid locale-dependent date parsing failure
18107 In Turkish locales, getdate would fail to recognize keywords
18108 containing a lowercase "i". The solution is not to rely on
18109 locale-sensitive case-conversion.
18110 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
18111 (lookup_word): Use c_toupper in place of toupper.
18112 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
18113 Reported by Vefa Bicakci <bicave@superonline.com> in
18114 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
18115 * modules/getdate (Depends-on): Add c-ctype.
18117 2008-08-02 Bruno Haible <bruno@clisp.org>
18119 * gnulib-tool (func_import): When updating or creating a .gitignore
18120 file, prepend each added line with a slash, and ignore leading slashes
18121 from the existing lines.
18122 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
18124 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18126 Portability fix for GNU make 3.79.1.
18127 * top/GNUmakefile: Avoid 'else COND', which older GNU make
18128 versions do not understand.
18130 2008-08-01 Bruno Haible <bruno@clisp.org>
18132 Work around bug of HP-UX 10.20 cc with -0.0 literal.
18133 * tests/test-isnanf.h (zero): New variable.
18134 (main): Avoid literal -0.0f.
18135 * tests/test-isnand.h (zero): New variable.
18136 (main): Avoid literal -0.0.
18137 * tests/test-isnanl.h (zero): New variable.
18138 (main): Avoid literal -0.0L.
18139 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
18140 (test_float, test_double, test_long_double): Avoid literals -0.0f,
18142 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
18143 (test_signbitd): Avoid literal -0.0.
18144 (test_signbitl): Avoid literal -0.0L.
18145 * tests/test-ceilf1.c (zero): New variable.
18146 (main): Avoid literal -0.0f.
18147 * tests/test-ceill.c (zero): New variable.
18148 (main): Avoid literal -0.0L.
18149 * tests/test-floorf1.c (zero): New variable.
18150 (main): Avoid literal -0.0f.
18151 * tests/test-floorl.c (zero): New variable.
18152 (main): Avoid literal -0.0L.
18153 * tests/test-roundf1.c (zero): New variable.
18154 (main): Avoid literal -0.0f.
18155 * tests/test-round1.c (zero): New variable.
18156 (main): Avoid literal -0.0.
18157 * tests/test-roundl.c (zero): New variable.
18158 (main): Avoid literal -0.0L.
18159 * tests/test-truncf1.c (zero): New variable.
18160 (main): Avoid literal -0.0f.
18161 * tests/test-trunc1.c (zero): New variable.
18162 (main): Avoid literal -0.0.
18163 * tests/test-truncl.c (zero): New variable.
18164 (main): Avoid literal -0.0L.
18165 * tests/test-frexp.c (zero): New variable.
18166 (main): Avoid literal -0.0.
18167 * tests/test-frexpl.c (zero): New variable.
18168 (main): Avoid literal -0.0L.
18169 * tests/test-ldexpl.c (zero): New variable.
18170 (main): Avoid literal -0.0L.
18171 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
18172 (zerod, zerol): New variables.
18173 (test_function): Avoid literals -0.0, -0.0L.
18174 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
18175 (zerod, zerol): New variables.
18176 (test_function): Avoid literals -0.0, -0.0L.
18177 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
18178 (zerod, zerol): New variables.
18179 (test_function): Avoid literals -0.0, -0.0L.
18180 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
18181 (zerod, zerol): New variables.
18182 (test_function): Avoid literals -0.0, -0.0L.
18183 * tests/test-strtod.c (zero): New variable.
18184 (main): Avoid literal -0.0.
18185 Reported by Jonathan C. Patschke <jp@centtech.com>.
18187 2008-07-31 Jim Meyering <meyering@redhat.com>
18189 sha256.h: correct definition of SHA224_DIGEST_SIZE
18190 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
18191 Reported by Paulie Pena IV <paulie4@gmail.com>.
18192 Define as 224 / 8, rather than as a literal.
18193 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
18194 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
18195 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
18197 2008-07-31 Bruno Haible <bruno@clisp.org>
18199 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
18200 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
18201 Reported by Jonathan Patschke <jp@centtech.com>.
18203 2008-07-31 Bruno Haible <bruno@clisp.org>
18205 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
18206 Reported by Paolo Bonzini <bonzini@gnu.org>.
18208 2008-07-30 Eric Blake <ebb9@byu.net>
18210 test-strtod: allow compilation without -lm
18211 * tests/test-strtod.c (main): Avoid link dependence on fabs.
18212 Reported by Dennis Clarke <blastwave@gmail.com>.
18214 2008-07-28 Jim Meyering <meyering@redhat.com>
18216 bootstrap: work also when there are no .po files in po/
18217 * build-aux/bootstrap (update_po_files): Complete the change
18218 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
18220 2008-07-27 Jim Meyering <meyering@redhat.com>
18222 * users.txt: Add zile.
18224 2008-07-26 Ben Pfaff <blp@gnu.org>
18226 Add missing dependencies on new m4/exponent[fdl].m4 files.
18227 * modules/isnanf-nolibm: Add m4/exponentf.m4.
18228 * modules/isnand-nolibm: Add m4/exponentd.m4.
18229 * modules/isnanl-nolibm: Add m4/exponentl.m4.
18230 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
18231 m4/isnan[fdl].m4, because the macros actually used moved.
18232 Reported by Jim Meyering.
18234 2008-07-14 Ben Pfaff <blp@gnu.org>
18237 * lib/isinf.c: New file.
18238 * lib/math.in.h: Define isinf macro if we have decided to replace
18240 * m4/isinf.m4: New file.
18241 * m4/math_h.m4: Initialize and substitute variables for isinf
18243 * modules/isinf: New file.
18244 * modules/isinf-tests: New file.
18245 * modules/math: Add substitutions for new module.
18246 * tests/test-isinf.c: New file.
18247 * doc/posix-functions/isinf.texi: Mention new module.
18248 * MODULES.html.sh: Mention new module.
18250 2008-07-14 Ben Pfaff <blp@gnu.org>
18252 Factor out some macros for use by additional modules.
18253 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
18255 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
18257 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
18259 * m4/exponentf.m4: New file.
18260 * m4/exponentd.m4: New file.
18261 * m4/exponentl.m4: New file.
18262 * modules/isnanf: Use new file m4/exponentf.m4.
18263 * modules/isnand: Use new file m4/exponentd.m4.
18264 * modules/isnanl: Use new file m4/exponentl.m4.
18266 2008-07-23 Ulrich Drepper <drepper@redhat.com>
18268 mktime.c: normalize tp->tm_isdst value to -1/0/1.
18269 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
18270 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
18271 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
18273 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
18274 readlink on platforms without PATH_MAX.
18276 2008-07-21 Eric Blake <ebb9@byu.net>
18278 Warn, not fail, on stale version.
18279 * top/GNUmakefile (_curr-ver): Tone down previous patch.
18281 Don't allow installation with stale devel version number.
18282 * top/GNUmakefile (_is-install-target): New macro.
18283 (_curr-ver): Forbid installation with stale version number.
18285 2008-07-20 Bruno Haible <bruno@clisp.org>
18287 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
18289 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
18291 2008-07-20 Bruno Haible <bruno@clisp.org>
18293 * lib/c-stack.h (c_stack_action): Add documentation.
18294 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
18296 2008-07-20 Bruno Haible <bruno@clisp.org>
18298 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
18299 * modules/readlink (License): Likewise.
18301 2008-07-17 Eric Blake <ebb9@byu.net>
18303 * modules/c-stack (Link): Fix typo.
18305 Make c-stack use libsigsegv, when available.
18306 * modules/c-stack (Depends-on): Add libsigsegv.
18307 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
18309 * lib/c-stack.c (SIGSTKSZ): Define fallback.
18310 (segv_handler, overflow_handler, c_stack_action)
18311 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
18312 implementation when libsigsegv is available, but only when using
18313 the library is necessary.
18314 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
18315 comment, explaining why XSI check fails on Linux.
18316 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
18317 * tests/test-c-stack2.sh: Tweak skip message.
18318 * NEWS: Document new link-time requirements.
18320 2008-07-16 Eric Blake <ebb9@byu.net>
18322 c-stack: Expose false positives when not using libsigsegv.
18323 * modules/c-stack-tests (Files): Expand test.
18324 * tests/test-c-stack.c (main): Add means to conditionally trigger
18325 non-overflow SIGSEGV.
18326 * tests/test-c-stack2.sh: New file.
18328 2008-07-14 Bruno Haible <bruno@clisp.org>
18330 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
18331 Reported by Eric Blake.
18333 2008-07-14 Sam Steingold <sds@gnu.org>
18334 Bruno Haible <bruno@clisp.org>
18336 New module libsigsegv.
18337 * modules/libsigsegv: New file.
18338 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
18340 * MODULES.html.sh (Signal handling): New section.
18342 2008-07-14 Bruno Haible <bruno@clisp.org>
18344 * modules/unictype/ctype-* (Description): Add the word "function".
18345 Improves the resulting doc in MODULES.html.
18347 2008-07-12 Ben Pfaff <blp@gnu.org>
18349 Add longlong module.
18350 * modules/longlong: New file.
18352 2008-07-12 Bruno Haible <bruno@clisp.org>
18354 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
18357 2008-07-10 Ben Pfaff <blp@gnu.org>
18360 * doc/posix-functions/isnan.texi: Mention new module.
18361 * lib/math.in.h: Define isnan macro if we have decided to replace
18363 * m4/isnan.m4: New file.
18364 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
18365 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
18367 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
18369 * m4/math_h.m4: Initialize and substitute variables for isnan
18371 * modules/isnan: New file.
18372 * modules/isnan-tests: New file.
18373 * modules/math: Add substitutions for new module.
18374 * tests/test-isnan.c: New file.
18375 * MODULES.html.sh: Mention new module.
18377 2008-07-10 Ben Pfaff <blp@gnu.org>
18380 * lib/isnanf.m4: New file.
18381 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
18382 (gl_HAVE_ISNANF_IN_LIBM): New macro.
18383 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
18384 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
18385 * modules/isnanf: New file.
18386 * modules/isnanf-tests: New file.
18387 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
18389 * tests/test-isnanf-nolibm.c: factored most of its contents into
18390 new file tests/test-isnanf.h.
18391 * tests/test-isnanf.h: New file.
18392 * tests/test-isnanf.c: New file.
18393 * MODULES.html.sh: Mention new module.
18394 * doc/glibc-functions/isnanf.texi: Mention new module.
18396 2008-07-10 Ben Pfaff <blp@gnu.org>
18399 * lib/isnand.h: New file.
18400 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
18401 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
18402 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
18403 functionality also.
18404 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
18405 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
18406 (gl_HAVE_ISNAND_IN_LIBM): New macro.
18407 * modules/isnand: New file.
18408 * modules/isnand-tests: New file.
18409 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
18411 * tests/test-isnand-nolibm.c: factored most of its contents into
18412 new file tests/test-isnand.h.
18413 * tests/test-isnand.h: New file.
18414 * tests/test-isnand.c: New file.
18415 * MODULES.html.sh: Mention new module.
18417 2008-07-10 Ben Pfaff <blp@gnu.org>
18419 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
18420 * lib/isnand.h: Rename lib/isnand-nolibm.h.
18421 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
18422 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
18423 * modules/isnanf-nolibm: Update references to renamed files.
18424 * modules/isnand-nolibm: Likewise.
18425 * modules/isnanf-nolibm-tests: Likewise.
18426 * modules/isnand-nolibm-tests: Likewise.
18427 * lib/frexp.c: Likewise.
18428 * lib/isfinite.c: Likewise.
18429 * lib/signbitd.c: Likewise.
18430 * lib/signbitf.c: Likewise.
18431 * lib/vasnprintf.c: Likewise.
18432 * tests/test-ceilf1.c: Likewise.
18433 * tests/test-ceilf2.c: Likewise.
18434 * tests/test-floorf1.c: Likewise.
18435 * tests/test-floorf2.c: Likewise.
18436 * tests/test-frexp.c: Likewise.
18437 * tests/test-round1.c: Likewise.
18438 * tests/test-round2.c: Likewise.
18439 * tests/test-roundf1.c: Likewise.
18440 * tests/test-strtod.c: Likewise.
18441 * tests/test-trunc1.c: Likewise.
18442 * tests/test-trunc2.c: Likewise.
18443 * tests/test-truncf1.c: Likewise.
18444 * tests/test-truncf2.c: Likewise.
18445 * NEWS: Mention the renamed header files.
18447 2008-07-11 Jim Meyering <meyering@redhat.com>
18449 vc-list-files: make the last-resort awk code more portable
18450 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
18451 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
18452 does not support it.
18454 2008-07-10 Eric Blake <ebb9@byu.net>
18456 Work with tar's bootstrap.
18457 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
18458 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
18461 2008-07-09 Jim Meyering <meyering@redhat.com>
18463 posix-shell.m4: fix typo that made this test malfunction
18464 * m4/posix-shell.m4: Remove capitalization in variable name.
18466 2008-07-08 Bruno Haible <bruno@clisp.org>
18468 * m4/onceonly.m4: Update comments.
18469 Reported by Ben Pfaff <blp@cs.stanford.edu>.
18471 2008-07-04 Jim Meyering <meyering@redhat.com>
18473 * users.txt: Add vc-dwim.
18474 (bison, coreutils): Use the gitweb URL.
18476 2008-07-03 Jim Meyering <meyering@redhat.com>
18478 * users.txt: Add libffcall. From Sam Steingold.
18480 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
18482 getdate.y: do not ignore TZ with relative day, month or year offset
18483 * lib/getdate.y (get_date): Move the tz-handling block to follow the
18484 relative-date-handling, since otherwise, the latter would clobber the
18485 sole output (an updated Start value) of the tz-handling block.
18486 * tests/test-getdate.c: Tests for the fix
18488 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18490 Recognize 'foo_LIBRARIES += libgnu.a'.
18491 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
18492 makefile snippet has already specified an installation location,
18495 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
18497 getdate.y: factor out common actions
18498 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
18499 Use them in place of open-coded actions.
18501 2008-07-01 Simon Josefsson <simon@josefsson.org>
18503 Add self-test for getdate module.
18504 * modules/getdate-tests: New file.
18505 * tests/test-getdate.c: New file.
18507 2008-06-29 Bruno Haible <bruno@clisp.org>
18509 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
18511 Reported by Sylvain Beucler <beuc@beuc.net>.
18513 2008-06-29 Bruno Haible <bruno@clisp.org>
18515 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
18516 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
18518 2008-06-29 Bruno Haible <bruno@clisp.org>
18520 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
18522 Reported by Sylvain Beucler <beuc@beuc.net>.
18524 2008-06-26 Jim Meyering <meyering@redhat.com>
18526 make several modules depend on the "open" module
18527 This provides slightly increased consistency when opening-for-write
18528 the name of a non-directory spelled with a trailing slash.
18529 * modules/chdir-safer: Likewise.
18530 * modules/chown: Likewise.
18531 * modules/clean-temp: Likewise.
18532 * modules/copy-file: Likewise.
18533 * modules/fchdir: Likewise.
18534 * modules/fcntl-safer: Likewise.
18535 * modules/pipe: Likewise.
18536 * modules/utime: Likewise.
18537 Prompted by Eric Blake and Bruno Haible.
18539 2008-06-24 Andreas Schwab <schwab@suse.de>
18541 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
18542 literals can be used as initializers for global variables.
18544 2008-06-23 Eric Blake <ebb9@byu.net>
18546 Make gnulib-cache.m4 easier to diff.
18547 * gnulib-tool (func_import): Allow newlines when reading cached
18548 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
18550 2008-06-23 Bruno Haible <bruno@clisp.org>
18552 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
18553 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
18554 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
18555 m4/signalblocking.m4.
18556 (gl_PREREQ_SIGACTION): Don't invoke it.
18557 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
18558 gl_PREREQ_SIG_HANDLER_H.
18559 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18560 Don't check for sigaction here.
18562 2008-06-23 Bruno Haible <bruno@clisp.org>
18564 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
18565 (install_handlers): Don't set the SA_RESETHAND flag.
18567 2008-06-23 Bruno Haible <bruno@clisp.org>
18569 * m4/sigaction.m4: Comment fixes.
18570 * lib/signal.in.h: Likewise.
18572 2008-06-23 Eric Blake <ebb9@byu.net>
18575 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
18577 Avoid SA_ namespace.
18578 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
18579 Reported by Ralf Wildenhues.
18581 Avoid test failure due to SA_RESTORER.
18582 * tests/test-sigaction.c (SA_MASK): New macro.
18583 (main): Avoid failing due to extension flags being set.
18584 Reported by Jim Meyering.
18586 Revert use of sig-handler.h in sigprocmask.c.
18587 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
18588 it requires the existence of struct sigaction.
18589 * lib/sigprocmask.c (handler_t): Restore typedef.
18590 (rpl_signal, old_handlers): Use local type.
18592 2008-06-22 Bruno Haible <bruno@clisp.org>
18594 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
18596 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18598 2008-06-22 Bruno Haible <bruno@clisp.org>
18600 * doc/posix-functions/siginterrupt.texi: Move note.
18602 * lib/signal.in.h (SA_RESTART): New macro.
18603 * lib/sigaction.c: Update comment.
18605 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
18607 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
18608 (gl_PREREQ_SIGPROCMASK): Invoke it.
18609 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
18611 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
18613 * lib/sigprocmask.c: Update a comment.
18615 2008-06-21 Eric Blake <ebb9@byu.net>
18617 Use sigaction module rather than signal().
18618 * modules/c-stack (Depends-on): Add sigaction.
18619 * modules/fatal-signal (Depends-on): Likewise.
18620 * modules/nanosleep (Depends-on): Likewise.
18621 * modules/sigprocmask (Files): Add sig-handler.h.
18622 * modules/sigaction (Files): Likewise.
18623 * lib/sig-handler.h (get_handler): New file, suggested by Paul
18625 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
18626 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
18627 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
18628 (init_fatal_signals): Likewise.
18629 * lib/nanosleep.c (rpl_nanosleep): Likewise.
18630 (siginterrupt): Delete fallback.
18631 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
18633 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
18636 New module sigaction, for mingw.
18637 * modules/sigaction: New module...
18638 * modules/sigaction-tests: ...and its test.
18639 * m4/sigaction.m4: New file.
18640 * lib/sigaction.c: Likewise.
18641 * tests/test-sigaction.c: Likewise.
18642 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
18643 * modules/signal (Makefile.am): Likewise.
18644 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
18646 * doc/posix-headers/signal.texi (signal.h): Mention provided
18648 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
18649 that sigaction is preferable.
18650 * doc/posix-functions/sigaction.texi (sigaction): Mention new
18652 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18655 Improve robustness of sigprocmask by overriding signal.
18656 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
18658 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
18659 (SIGKILL, SIGSTOP): Provide fallbacks.
18660 (rpl_signal): Implement.
18661 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
18662 signal can be called inside handlers.
18664 Fix nanosleep module on mingw.
18665 * modules/nanosleep (Depends-on): Add sys_select.
18666 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
18668 Fix licensing of sigprocmask.
18669 * modules/raise (License): Relicense as LGPL.
18671 2008-06-21 Bruno Haible <bruno@clisp.org>
18673 * lib/propername.c (proper_name_utf8): Don't use the transliterated
18674 result if it contains question marks.
18675 Reported by Michael Geng <linux@michaelgeng.de>.
18677 2008-06-19 Bruno Haible <bruno@clisp.org>
18680 * doc/gnulib.texi: Include updated-stamp.texi.
18681 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
18682 (updated-stamp.texi): New rule.
18683 (gnulib.info): Depend on it.
18684 * doc/.gitignore: Add updated-stamp.texi.
18685 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
18687 2008-06-19 Bruno Haible <bruno@clisp.org>
18689 * doc/Makefile (gnulib.info): Update and simplify dependencies.
18690 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18692 2008-06-19 Eric Blake <ebb9@byu.net>
18694 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
18695 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
18696 Reported by Stepan Kasal.
18698 2008-06-18 Bruno Haible <bruno@clisp.org>
18700 * lib/fatal-signal.c (init_fatal_signals): Add comment.
18701 Reported by Eric Blake.
18703 2008-06-18 Eric Blake <ebb9@byu.net>
18705 Work around cygwin 1.5.25 strsignal bug.
18706 * tests/test-strsignal.c: Allow for const char *.
18707 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
18709 2008-06-18 Simon Josefsson <simon@josefsson.org>
18711 * users.txt: Update URL to article and add author/date
18714 2008-06-17 Bruno Haible <bruno@clisp.org>
18716 New macro gl_DISABLE_THREADS.
18717 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
18718 if the user did not pass --enable-threads or --disable-threads option.
18719 (gl_DISABLE_THREADS): New macro.
18720 Reported by Eric Blake <ebb9@byu.net>.
18722 2008-06-17 Bruno Haible <bruno@clisp.org>
18724 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
18725 when the macro ignores it.
18726 Based on a patch by Eric Blake <ebb9@byu.net>.
18728 2008-06-17 Bruno Haible <bruno@clisp.org>
18730 * modules/tls (License): Change to LGPLv2+.
18731 Reported by Eric Blake.
18733 2008-06-17 Eric Blake <ebb9@byu.net>
18735 Simplify c-stack prerequisites.
18736 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
18737 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
18738 no longer requires <ucontext.h> to exist. Optimize setrlimit
18740 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
18743 Move c-stack test into testsuite.
18744 * modules/c-stack-tests: New file.
18745 * lib/c-stack.c [DEBUG]: Move test program...
18746 * tests/test-c-stack.c: ...into this new file. Skip rather than
18747 fail test if sigaltstack is lacking.
18748 * tests/test-c-stack.sh: New driver file.
18750 2008-06-16 Eric Blake <ebb9@byu.net>
18752 Use raise module consistently.
18753 * modules/fatal-signal (Depends-on): Add raise.
18754 * modules/sigprocmask (Depends-on): Likewise.
18755 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
18756 * lib/sigprocmask.c (sigprocmask): Likewise.
18757 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
18758 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
18760 Fix compliance bug in sigpending.
18761 * lib/sigprocmask.c (sigpending): Return pending array via
18762 parameter, not return value.
18764 2008-06-14 Eric Blake <ebb9@byu.net>
18766 Improve obstack-printf test code.
18767 * tests/test-obstack-printf.c (test_function): Fix comment, and
18768 simplify usage of obstack_* in macros. Add a test for coverage.
18769 Reported by Bruno Haible.
18771 2008-06-14 Bruno Haible <bruno@clisp.org>
18773 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
18774 array size as a constant, not as a const variable.
18775 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
18776 AC_USE_SYSTEM_EXTENSIONS.
18777 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
18778 Test whether the obstack_printf function actually exists.
18779 * modules/obstack-printf (Depends-on): Add extensions.
18780 (Include): Remove obstack.h.
18781 * modules/obstack-printf-posix (Depends-on): Add extensions.
18782 (Include): Remove obstack.h.
18784 2008-06-13 Eric Blake <ebb9@byu.net>
18786 Add obstack-printf and obstack-printf-posix modules.
18787 * modules/obstack-printf: New file.
18788 * modules/obstack-printf-posix: Likewise.
18789 * MODULES.html.sh (Misc): Mention them.
18790 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
18792 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
18794 * modules/stdio (Makefile.am): Accomodate new modules.
18795 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18796 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
18798 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
18800 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
18801 (gl_REPLACE_OBSTACK_PRINTF): New macros
18802 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
18803 * tests/test-obstack-printf.c: New file.
18804 * modules/obstack-printf-tests: Likewise.
18805 * modules/obstack-printf-posix-tests: Likewise.
18807 2008-06-11 Bruno Haible <bruno@clisp.org>
18809 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
18810 * lib/open.c: Include errno.h.
18811 (open): Fail when attempting to write to a file that has a trailing
18813 * tests/test-open.c (main): Test against trailing slash bug.
18814 * doc/posix-functions/open.texi: Mention the trailing slash bug.
18816 2008-06-10 Bruno Haible <bruno@clisp.org>
18818 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
18819 for $? to work inside the trap command, with various /bin/sh-s.
18820 * tests/test-vc-list-files-cvs.sh: Likewise.
18822 2008-06-10 Bruno Haible <bruno@clisp.org>
18824 * lib/acl-internal.h: Don't include gettext.h here.
18825 * lib/set-mode-acl.c: Include gettext.h here.
18826 * lib/copy-acl.c: Likewise.
18828 2008-06-10 Bruno Haible <bruno@clisp.org>
18830 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
18831 * lib/wait-process.c (wait_subprocess): Likewise.
18832 * lib/execute.h (execute): Add termsigp argument.
18833 * lib/execute.c (execute): Likewise.
18834 * lib/csharpcomp.c (compile_csharp_using_pnet,
18835 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
18836 * lib/csharpexec.c (execute_csharp_using_pnet,
18837 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
18838 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
18839 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
18840 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
18841 is_jikes_present): Update.
18842 * lib/javaexec.c (execute_java_class): Update.
18843 * lib/javaversion.c (execute_and_read_line): Update.
18844 * NEWS: Document the changes.
18845 Reported by Eric Blake.
18847 2008-06-10 Eric Blake <ebb9@byu.net>
18849 Add missing include.
18850 * tests/test-strstr.c (includes): Add <signal.h>.
18851 * tests/test-strcasestr.c (includes): Likewise.
18852 * tests/test-memmem.c (includes): Likewise.
18854 2008-06-10 Bruno Haible <bruno@clisp.org>
18856 * lib/wait-process.c (wait_subprocess): Add an assertion.
18858 2008-06-10 Bruno Haible <bruno@clisp.org>
18860 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
18862 2008-06-10 Bruno Haible <bruno@clisp.org>
18864 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
18866 * tests/test-strcasestr.c (main): Likewise.
18867 * tests/test-strstr.c (main): Likewise.
18869 2008-06-09 Bruno Haible <bruno@clisp.org>
18871 Work around the Solaris 10 ACE ACLs ABI change.
18872 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
18873 declare if ACL_NO_TRIVIAL is present.
18874 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
18875 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
18876 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
18877 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
18878 define if ACL_NO_TRIVIAL is present.
18879 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
18880 and use the current ABI.
18881 (file_has_acl): Use same #if condition as elsewhere.
18882 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
18883 in use, and use the current ABI.
18884 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
18885 Reported by Jim Meyering.
18887 2008-06-09 Eric Blake <ebb9@byu.net>
18889 Work around environments that (stupidly) ignore SIGALRM.
18890 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
18891 before using alarm().
18892 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
18893 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
18894 Reported by Ian Beckwith <ianb@erislabs.net>.
18896 Produce autobuild blurb earlier in log.
18897 * modules/autobuild (configure.ac-early): Move AB_INIT here.
18899 2008-06-09 Jim Meyering <meyering@redhat.com>
18900 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
18902 utimens.c: correct kernel bug work-around
18903 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
18904 failure, not success, and the kernel bug we're trying to work
18905 around affects not just the utimensat call, but also the fallback
18907 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
18909 [HAVE_FUTIMENS]: Use the same work-around, here.
18911 2008-06-09 Jim Meyering <meyering@redhat.com>
18913 add more guards around definition of ACE_-related code
18914 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
18915 ALLOW and ACE_OWNER are also defined.
18917 2008-06-08 Bruno Haible <bruno@clisp.org>
18919 * lib/acl-internal.h: Add me as co-author.
18920 * lib/file-has-acl.c: Likewise.
18921 * lib/set-mode-acl.c: Likewise.
18922 * lib/copy-acl.c: Likewise.
18924 2008-06-08 Bruno Haible <bruno@clisp.org>
18926 Add support for AIX ACLs.
18927 * lib/acl-internal.h (acl_nontrivial): New declaration.
18928 * lib/file-has-acl.c (acl_nontrivial): New function.
18929 (file_has_acl): Add implementation using AIX 4 ACL API.
18930 * lib/set-mode-acl.c (qset_acl): Likewise.
18931 * lib/copy-acl.c (qcopy_acl): Likewise.
18933 2008-06-08 Bruno Haible <bruno@clisp.org>
18935 Add support for HP-UX ACLs.
18936 * lib/acl-internal.h (acl_nontrivial): New declaration.
18937 * lib/file-has-acl.c (acl_nontrivial): New function.
18938 (file_has_acl): Add implementation using HP-UX 11 ACL API.
18939 * lib/set-mode-acl.c (qset_acl): Likewise.
18940 * lib/copy-acl.c (qcopy_acl): Likewise.
18942 2008-06-08 Bruno Haible <bruno@clisp.org>
18944 Add support for Cygwin ACLs.
18945 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
18946 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
18947 the chmod_or_fchmod call.
18948 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
18950 2008-06-08 Bruno Haible <bruno@clisp.org>
18952 Fix bug with setuid modes in Solaris 10+ code.
18953 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
18954 succeeded, when the mode contains some special bits.
18956 2008-06-08 Bruno Haible <bruno@clisp.org>
18958 Add support for Solaris 7..10 ACLs.
18959 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
18961 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
18963 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
18964 * lib/set-mode-acl.c (qset_acl): Likewise.
18965 * lib/copy-acl.c (qcopy_acl): Likewise.
18967 2008-06-08 Bruno Haible <bruno@clisp.org>
18969 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
18971 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
18972 (acl_access_nontrivial): Remove MacOS X case.
18973 (file_has_acl): Use acl_extended_nontrivial.
18974 * lib/copy-acl.c (qcopy_acl): Likewise.
18976 2008-06-08 Bruno Haible <bruno@clisp.org>
18978 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
18980 2008-06-08 Jim Meyering <meyering@redhat.com>
18982 * modules/acl (Maintainer): Add Bruno Haible.
18984 2008-06-07 Bruno Haible <bruno@clisp.org>
18986 Improve support for Tru64 ACLs.
18987 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
18990 2008-06-07 Bruno Haible <bruno@clisp.org>
18992 Add support for MacOS X ACLs.
18993 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
18994 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
18995 * lib/set-mode-acl.c (qset_acl): Likewise.
18996 * lib/copy-acl.c (qcopy_acl): Likewise.
18998 2008-06-07 Bruno Haible <bruno@clisp.org>
19000 Fix memory leak introduced on 2008-05-22.
19001 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
19004 2008-06-07 Bruno Haible <bruno@clisp.org>
19006 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
19007 to construct an empty ACL.
19009 2008-06-07 Bruno Haible <bruno@clisp.org>
19011 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
19013 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
19015 2008-06-07 Bruno Haible <bruno@clisp.org>
19017 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
19018 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
19020 2008-06-07 Bruno Haible <bruno@clisp.org>
19022 * doc/posix-functions/_setjmp.texi: Explain the use of this function
19023 regardless of POSIX.
19024 * doc/posix-functions/_longjmp.texi: Likewise.
19025 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
19026 SystemV platform in this case.
19028 2008-06-06 Eric Blake <ebb9@byu.net>
19030 Document abort() bugs.
19031 * doc/posix-functions/abort.texi (abort): Mention anomalies.
19033 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
19034 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
19036 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
19037 siglongjmp, but only as a macro.
19038 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
19040 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
19042 Tweak documentation to cover cygwin argz bugs.
19043 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
19044 argz bug fix; no code change needed since no cygwin releases
19045 occurred between the last fix and the bug being tested.
19046 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
19047 module and recently fixed cygwin bugs.
19048 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
19049 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
19050 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
19051 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
19052 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
19054 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
19055 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
19056 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
19057 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
19058 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
19059 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
19062 Avoid gcc warning on cygwin.
19063 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
19064 !ACL_NO_TRIVIAL]: Avoid unused variable.
19066 2008-06-05 Eric Blake <ebb9@byu.net>
19068 Be tolerant of UNKNOWN version in gnulib-tool test dir.
19069 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
19070 git-version-gen fails to come up with a version.
19071 Reported by Simon Josefsson.
19073 2008-06-05 Jim Meyering <meyering@redhat.com>
19074 Paul Eggert <eggert@cs.ucla.edu>
19076 utimens.c: work around a probable Linux kernel bug
19077 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
19078 appears to be a kernel bug that causes utimensat to return 280
19079 instead of 0, indicating success.
19081 2008-06-04 Bruno Haible <bruno@clisp.org>
19083 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
19086 2008-06-04 Bruno Haible <bruno@clisp.org>
19088 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
19089 * lib/file-has-acl.c (acl_access_nontrivial): New function.
19090 (file_has_acl): Use it. Save errno afterwards.
19091 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
19093 2008-06-03 Bruno Haible <bruno@clisp.org>
19095 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
19096 draft code. Simplify #ifs.
19097 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
19098 Put Solaris code after POSIX-draft code. Fix comments regarding
19099 Solaris 10, HP-UX. Mention Cygwin.
19100 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
19102 2008-06-03 Eric Blake <ebb9@byu.net>
19104 Provide fallback for older kernels.
19105 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
19106 Provide runtime fallback if kernel lacks support.
19107 Reported by Mike Frysinger.
19109 2008-06-02 Bruno Haible <bruno@clisp.org>
19111 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
19114 2008-06-02 Bruno Haible <bruno@clisp.org>
19116 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
19117 * lib/copy-acl.c (qcopy_acl): Update comment.
19119 2008-06-02 Bruno Haible <bruno@clisp.org>
19121 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
19124 2008-06-02 Bruno Haible <bruno@clisp.org>
19126 * tests/test-file-has-acl.sh: Use different code for Cygwin.
19127 * tests/test-set-mode-acl.sh: Likewise.
19128 * tests/test-copy-acl.sh: Likewise.
19129 * tests/test-copy-file.sh: Likewise.
19131 2008-06-02 Bruno Haible <bruno@clisp.org>
19133 * tests/test-file-has-acl.sh: Remove unused code.
19135 2008-06-01 Bruno Haible <bruno@clisp.org>
19137 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
19138 (copy_acl): Just a wrapper around qcopy_acl that emits the error
19140 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
19142 2008-06-01 Bruno Haible <bruno@clisp.org>
19144 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
19145 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
19146 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
19148 * modules/acl-tests (configure.ac): Remove tests now contained in
19151 2008-06-02 Jim Meyering <meyering@redhat.com>
19153 announce-gen: use a better key-server host name
19154 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
19155 it may be more consistently reliable. Suggested by Werner Koch
19156 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
19158 2008-06-01 Bruno Haible <bruno@clisp.org>
19160 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
19161 Reported by Voroskoi Andras <voroskoi@gmail.com>.
19163 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
19165 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
19167 2008-06-01 Bruno Haible <bruno@clisp.org>
19170 * tests/test-file-has-acl.sh: New file.
19171 * tests/test-file-has-acl.c: New file.
19172 * tests/test-set-mode-acl.sh: New file.
19173 * tests/test-set-mode-acl.c: New file.
19174 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
19175 * tests/test-copy-acl.c: New file.
19176 * modules/acl-tests: New file, based on modules/copy-file-tests.
19177 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
19178 (Depends-on): Add acl-tests.
19179 (configure.ac): Remove checks.
19180 (Makefile.am): Don't create test-sameacls program here any more.
19182 2008-06-01 Bruno Haible <bruno@clisp.org>
19184 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
19185 * tests/test-sameacls.c: Include progname.h.
19186 (main): Invoke set_program_name. Portability fixes for MacOS X,
19189 2008-06-01 Bruno Haible <bruno@clisp.org>
19191 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
19193 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
19195 2008-06-01 Bruno Haible <bruno@clisp.org>
19197 * modules/rpmatch (Depends-on): Add strdup.
19199 2008-06-01 Bruno Haible <bruno@clisp.org>
19201 * lib/pipe.c: Include unistd-safer.h.
19202 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
19203 * modules/pipe (Depends-on): Add unistd-safer.
19205 2008-05-30 Simon Josefsson <simon@josefsson.org>
19207 * modules/autobuild (configure.ac): Call AB_INIT.
19209 2008-05-30 Simon Josefsson <simon@josefsson.org>
19211 * tests/test-getaddrinfo.c: Don't print debug messages by default.
19212 Suggested by Bruno Haible <bruno@clisp.org>.
19214 2008-05-30 Simon Josefsson <simon@josefsson.org>
19216 * tests/test-base64.c: Cast size_t to unsigned long when invoking
19217 printf. Use %lu instead of %d. Reported by Bruno Haible
19220 2008-05-29 Eric Blake <ebb9@byu.net>
19222 Prefer new POSIX 200x interfaces over futimesat.
19223 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
19224 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
19226 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
19228 2008-05-28 Bruno Haible <bruno@clisp.org>
19230 * modules/stpcpy (License): Change to LGPLv2+.
19231 Requested by David Lutterkort <dlutter@redhat.com>.
19233 2008-05-27 Bruno Haible <bruno@clisp.org>
19235 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
19237 Reported by Jose E. Marchesi <jemarch@gnu.org>.
19239 2008-05-27 Bruno Haible <bruno@clisp.org>
19241 * modules/iconv_open (Link): New section, from module 'iconv'.
19242 * modules/striconv (Link): Likewise.
19243 * modules/striconveh (Link): Likewise.
19244 * modules/xstriconv (Link): Likewise.
19245 * modules/unicodeio (Link): Likewise.
19246 * modules/propername (Link): Likewise.
19247 Reported by Jim Meyering.
19249 2008-05-26 Jim Meyering <meyering@redhat.com>
19251 sha256: do not artificially restrict buffer length to be < 2^32
19252 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
19253 uint32_t to size_t.
19254 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
19257 avoid unaligned access errors, e.g., on sparc
19258 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
19259 direct access through a possibly-unaligned uint64* pointer.
19260 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
19261 direct access through a possibly-unaligned uint32* pointer.
19262 Prompted by this patch from Tom "spot" Callaway:
19263 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
19265 sha512.c: fix typo in comment
19266 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
19268 2008-05-25 Bruno Haible <bruno@clisp.org>
19270 * lib/set-mode-acl.c: Renamed from lib/acl.c.
19271 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
19272 (Makefile.am): Update lib_SOURCES.
19274 2008-05-25 Bruno Haible <bruno@clisp.org>
19276 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
19278 2008-05-25 Jim Meyering <meyering@redhat.com>
19280 useless-if-before-free: freed expr may have white-space differences
19281 * build-aux/useless-if-before-free: Recognize cases in which the
19282 freed expression differs from the tested one in embedded white
19283 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
19284 $1 was used, so we can't make any regexp shy. Improved tests now
19287 useless-if-before-free: accept white space in the expression.
19288 * build-aux/useless-if-before-free: For now, any white space
19289 in the expression must be identical in the free argument.
19291 useless-if-before-free: efficiency tweak
19292 * build-aux/useless-if-before-free: Make the expression-matching
19294 Make the *outer* regexp shy, not the expr-matching one.
19296 update code-in-comment to accept cast of free arg
19297 * build-aux/useless-if-before-free: Update regexp.
19299 2008-05-25 Bruno Haible <bruno@clisp.org>
19301 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
19302 * modules/copy-file-tests (Files, Makefile.am): Update.
19303 * tests/test-copy-file.c (func_test_copy): Update.
19305 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
19307 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
19309 2008-05-23 Bruno Haible <bruno@clisp.org>
19311 Improve support for ACLs on OSF/1.
19312 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
19313 Remove fallback for unknown flavors of ACLs.
19315 2008-05-22 Bruno Haible <bruno@clisp.org>
19317 Add support for ACLs on OSF/1.
19318 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
19320 (acl_free_text): New macro fallback.
19321 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
19323 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
19324 acl_free_text function. Require AC_C_INLINE.
19326 2008-05-22 Bruno Haible <bruno@clisp.org>
19328 Make copy_acl work on MacOS X 10.5.
19329 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
19330 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
19331 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
19332 If MODE_INSIDE_ACL, don't assume that every system has the same text
19333 representation for ACLs as FreeBSD.
19334 * lib/copy-acl.c (copy_acl): Add support for platforms with
19336 * lib/file-has-acl.c (file_has_acl): Likewise.
19337 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
19338 FreeBSD, MacOS X, or IRIX, respectively.
19340 2008-05-22 Bruno Haible <bruno@clisp.org>
19342 * lib/acl.h: Don't include <sys/acl.h>.
19343 (GETACLCNT): Move fallback to lib/acl-internal.h.
19344 * lib/acl-internal.h: Include <sys/acl.h> here.
19345 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
19347 2008-05-22 Bruno Haible <bruno@clisp.org>
19349 Split off copy_acl function to separate file.
19350 * lib/copy-acl.c: New file, extracted from lib/acl.c.
19351 * lib/acl.c (copy_acl): Moved function to separate file.
19352 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
19353 * modules/acl (Files): Add lib/copy-acl.c.
19354 (Makefiles.am): Augment lib_SOURCES.
19356 2008-05-22 Bruno Haible <bruno@clisp.org>
19358 * modules/copy-file-tests: New file.
19359 * tests/test-copy-file.sh: New file.
19360 * tests/test-copy-file.c: New file.
19361 * tests/test-copy-file-sameacls.c: New file.
19363 2008-05-22 Eric Blake <ebb9@byu.net>
19366 * tests/test-memcmp.c (main): Pass NULL indirectly.
19368 2008-05-21 Bruno Haible <bruno@clisp.org>
19370 Add reference doc about ACLs.
19371 * doc/acl-resources.txt: New file.
19372 * doc/acl-cygwin.txt: New file.
19374 2008-05-21 Bruno Haible <bruno@clisp.org>
19376 Avoid one more warning from gcc.
19377 * lib/vasnprintf.c (IF_LINT): Update comments.
19378 (VASNPRINTF): Use it also for the 'prefix' array initializer.
19380 2008-05-21 Jim Meyering <meyering@redhat.com>
19382 avoid a warning from gcc
19383 * lib/vasnprintf.c (IF_LINT): Define.
19384 (scale10_round_decimal_long_double):
19385 Use it to avoid a "may be used uninitialized" warning.
19386 (scale10_round_decimal_double): Likewise.
19388 2008-05-21 Simon Josefsson <simon@josefsson.org>
19390 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
19393 2008-05-20 Bruno Haible <bruno@clisp.org>
19395 * tests/test-memcmp.c (main): Test also the sign of the result. Test
19396 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
19398 2008-05-20 Simon Josefsson <simon@josefsson.org>
19400 * modules/memcmp-tests: New file.
19401 * tests/test-memcmp.c: New file.
19403 2008-05-19 Bruno Haible <bruno@clisp.org>
19405 * modules/propername (Notice, configure.ac): Put quoted "..." into
19407 * lib/propername.h: Update comments accordingly.
19408 Reported by Eric Blake.
19410 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
19412 * modules/getpass-gnu (Depends-on): Add fseeko.
19414 2008-05-19 Simon Josefsson <simon@josefsson.org>
19416 * modules/base64-tests: New file.
19418 2008-05-19 Bo Borgerson <gigabo@gmail.com>
19420 * lib/base64.c (base64_decode_ctx): If a decode context structure
19421 was passed in use it to ignore newlines. If a context structure
19422 was _not_ passed in, continue to treat newlines as garbage (this
19423 is the historical behavior). Formerly base64_decode.
19424 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
19425 takes a decode context structure.
19426 * lib/base64.h (base64_decode): Macro for four-argument calls.
19427 (base64_decode_alloc): Likewise.
19428 * lib/base64.c (base64_decode_ctx): If a decode context structure
19429 was passed in use it to ignore newlines. If a context structure
19430 was _not_ passed in, continue to treat newlines as garbage (this
19431 is the historical behavior). Formerly base64_decode.
19432 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
19433 takes a decode context structure.
19434 * lib/base64.h (base64_decode): Macro for four-argument calls.
19435 (base64_decode_alloc): Likewise.
19437 2008-05-19 Jim Meyering <meyering@redhat.com>
19439 avoid a warning from gcc
19440 * lib/trim.c (IF_LINT): Define.
19441 (trim2): Use it to avoid a "may be used uninitialized" warning.
19444 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
19446 2008-05-19 Bruno Haible <bruno@clisp.org>
19448 * doc/glibc-functions/getpass.texi: Document limits of other
19451 2008-05-19 Simon Josefsson <simon@josefsson.org>
19452 Bruno Haible <bruno@clisp.org>
19454 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
19456 2008-05-18 Bruno Haible <bruno@clisp.org>
19458 * modules/propername: New file, from GNU gettext.
19459 * lib/propername.h: New file, from GNU gettext.
19460 * lib/propername.c: New file, from GNU gettext.
19461 * MODULES.html.sh (Internationalization functions): Add propername.
19463 2008-05-16 Jim Meyering <meyering@redhat.com>
19464 Bruno Haible <bruno@clisp.org>
19466 Avoid some warnings from "gcc -Wshadow".
19467 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
19469 2008-05-15 Eric Blake <ebb9@byu.net>
19471 Extend previous patch to cygwin 1.7.0.
19472 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
19473 fast implementation in cygwin >= 1.7.0.
19474 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19475 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19477 2008-05-15 Bruno Haible <bruno@clisp.org>
19479 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
19480 implementation in glibc >= 2.9.
19481 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19482 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19484 2008-05-15 Bruno Haible <bruno@clisp.org>
19486 * MODULES.html.sh (Internationalization functions): Remove linebreak.
19487 (Unicode string functions): Add unilbrk/*.
19488 Reported by Karl Berry.
19490 2008-05-15 Eric Blake <ebb9@byu.net>
19492 Fix violation of <stdbool.h> replacement in regex.
19493 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
19494 * lib/regexec.c (re_search_internal): Likewise.
19495 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
19497 2008-05-15 Jim Meyering <meyering@redhat.com>
19499 avoid distracting test output when git or cvs is not found
19500 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
19501 * tests/test-vc-list-files-git.sh: Likewise.
19503 2008-05-15 Eric Blake <ebb9@byu.net>
19505 Glibc finally accepted the memmem speedup code, bugzilla #5514.
19506 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
19508 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19509 * doc/posix-functions/strstr.texi (strstr): Likewise.
19510 * lib/str-two-way.h (MAX): Sychronize with glibc.
19512 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
19514 * lib/regcomp.c (optimize_utf8): Add a note on why we test
19516 (calc_first): Initialize constraint field.
19517 (duplicate_node_closure): Use it instead of special casing ANCHORS.
19519 (duplicate_node): Merge constraint field for all node types.
19520 (calc_eclosure_iter): Look at constraint field for all node types.
19521 * lib/regex_internal.c (create_cd_newstate): Don't look at
19524 2008-05-14 Bruno Haible <bruno@clisp.org>
19526 Help GCC to do better code generation.
19527 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
19528 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
19529 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
19530 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
19531 Declare with attribute 'malloc' if supported.
19533 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
19535 use "echo STR|wc -c" rather than unportable "expr length STR"
19536 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
19537 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
19539 2008-05-14 Jim Meyering <meyering@redhat.com>
19541 use dd ibs=$n count=1 ... rather than less-portable head -c$n
19542 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
19543 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
19544 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
19547 2008-05-14 Eric Blake <ebb9@byu.net>
19549 Avoid quadratic growth in gl_LIBSOURCES.
19550 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
19551 Suggested by Bruno Haible.
19554 * modules/xmemdup0-tests: New file.
19555 * tests/test-xmemdup0.c: Likewise.
19557 2008-05-13 Eric Blake <ebb9@byu.net>
19559 Split xmemdup0 into its own module.
19560 * modules/xmemdup0: New file.
19561 * lib/xmemdup0.h: Likewise.
19562 * lib/xmemdup0.c: Likewise.
19563 * MODULES.html.sh (Memory management functions): Add xmemdup0.
19564 * lib/xalloc.h (xmemdup0): Remove.
19565 * lib/xmalloc.c (xmemdup0): Likewise.
19567 2008-05-13 Eric Blake <ebb9@byu.net>
19568 Bruno Haible <bruno@clisp.org>
19570 Reduce number of forks required during autoconf.
19571 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
19572 and gl_LIBSOURCES_DIR.
19573 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
19574 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
19575 m4_syscmd per file.
19576 <m4_foreach_w>: Move...
19577 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
19579 2008-05-13 Eric Blake <ebb9@byu.net>
19581 * gnulib-tool: Fix various comment typos.
19583 2008-05-12 Bruno Haible <bruno@clisp.org>
19585 Tailor the linebreaking algorithm.
19586 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
19588 2008-05-12 Bruno Haible <bruno@clisp.org>
19590 Update to Unicode 5.0.0.
19591 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
19592 LBP_JV, LBP_JT. Redistribute values.
19593 (unilbrk_table): Change size.
19594 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
19595 Unicode TR#14 rev. 22.
19596 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
19597 LBP_JV, LBP_JT. Redistribute values.
19598 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
19599 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
19601 * lib/unilbrk/lbrkprop1.h: Regenerated.
19602 * lib/unilbrk/lbrkprop2.h: Regenerated.
19603 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
19604 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
19605 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
19607 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
19609 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
19611 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
19612 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
19613 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
19614 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
19615 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
19616 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
19618 2008-05-11 Bruno Haible <bruno@clisp.org>
19620 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
19622 2008-05-11 Bruno Haible <bruno@clisp.org>
19624 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
19625 * modules/unilbrk/gen-lbrk: New file.
19627 2008-05-11 Bruno Haible <bruno@clisp.org>
19629 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
19630 * m4/sha512.m4 (gl_SHA512): Likewise.
19632 2008-05-11 Jim Meyering <meyering@redhat.com>
19634 New modules: crypto/sha256, crypto/sha512 (from coreutils)
19635 * modules/crypto/sha256: New file.
19636 * modules/crypto/sha512: Likewise.
19637 * lib/sha256.c: Likewise.
19638 * lib/sha256.h: Likewise.
19639 * lib/sha512.c: Likewise.
19640 * lib/sha512.h: Likewise.
19641 * lib/u64.h: Likewise.
19642 * m4/sha256.m4: Likewise.
19643 * m4/sha512.m4: Likewise.
19644 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
19646 2008-05-10 Bruno Haible <bruno@clisp.org>
19648 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
19649 (Input/Output <stdio.h>): Add xprintf.
19650 (Signal handling <signal.h>): Add strsignal.
19651 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
19652 (Core language properties): Add func.
19653 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
19654 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
19656 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
19657 (Input/output): New section.
19658 (File system functions): Add openat-die, stat-macros.
19659 (Networking functions): Add sockets.
19660 (Unicode string functions): Add unictype/*.
19661 (Support for building libraries and executables): Add gperf.
19662 (Support for building documentation): Add agpl-3.0.
19663 (Misc): Add nocrash.
19665 2008-05-10 Bruno Haible <bruno@clisp.org>
19667 * modules/unictype/gen-ctype: New file.
19669 2008-05-10 Jim Meyering <meyering@redhat.com>
19671 Make chdir-safer.c more efficient on a system with no symlinks.
19672 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
19673 also if ELOOP is zero. Suggested by Bruno Haible.
19675 Make chdir-safer.c slightly safer.
19676 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
19677 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
19679 Avoid compile failure on systems without ELOOP (like mingw).
19680 * lib/chdir-safer.c (ELOOP): Define if not already defined.
19681 Reported by Bruno Haible.
19683 2008-05-10 Bruno Haible <bruno@clisp.org>
19685 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
19686 (is_utf8_encoding): Use a case-insensitive comparison.
19687 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
19690 2008-05-10 Bruno Haible <bruno@clisp.org>
19692 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
19693 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
19694 * lib/unilbrk/ulc-common.h (iconv_string_length,
19695 iconv_string_keeping_offsets): Remove declarations.
19696 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
19697 Don't include <iconv.h>, streq.h, xsize.h.
19698 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
19700 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
19701 <iconv.h>, streq.h, xsize.h.
19702 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
19704 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
19705 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
19706 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
19707 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
19709 2008-05-10 Bruno Haible <bruno@clisp.org>
19711 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
19712 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
19714 * modules/unilbrk/u32-width-linebreaks-tests: New file.
19715 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
19717 * modules/unilbrk/u16-width-linebreaks-tests: New file.
19718 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
19720 * modules/unilbrk/u8-width-linebreaks-tests: New file.
19721 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
19723 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
19724 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
19726 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
19727 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
19729 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
19730 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
19732 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
19733 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
19735 2008-05-10 Bruno Haible <bruno@clisp.org>
19737 Split up 'linebreak' module.
19738 * lib/unilbrk.h: New file, based on lib/linebreak.h.
19739 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
19740 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
19742 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
19743 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
19744 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
19746 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
19748 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
19750 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
19751 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
19752 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
19754 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
19756 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
19758 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
19760 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
19762 * modules/unilbrk/base: New file.
19763 * modules/unilbrk/tables: New file.
19764 * modules/unilbrk/u8-possible-linebreaks: New file.
19765 * modules/unilbrk/u16-possible-linebreaks: New file.
19766 * modules/unilbrk/u32-possible-linebreaks: New file.
19767 * modules/unilbrk/ulc-common: New file.
19768 * modules/unilbrk/ulc-possible-linebreaks: New file.
19769 * modules/unilbrk/u8-width-linebreaks: New file.
19770 * modules/unilbrk/u16-width-linebreaks: New file.
19771 * modules/unilbrk/u32-width-linebreaks: New file.
19772 * modules/unilbrk/ulc-width-linebreaks: New file.
19773 * lib/linebreak.h: Remove file.
19774 * lib/linebreak.c: Remove file.
19775 * m4/linebreak.m4: Remove file.
19776 * modules/linebreak: Remove file.
19777 * NEWS: Mention the changes.
19779 2008-05-09 Eric Blake <ebb9@byu.net>
19782 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
19784 * lib/xmalloc.c (xmemdup0): New C implementation.
19786 2008-05-08 Bruno Haible <bruno@clisp.org>
19788 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
19790 2008-05-07 Eric Blake <ebb9@byu.net>
19792 Support cross-compilation of <wctype.h>.
19793 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
19796 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
19798 * build-aux/vc-list-files: Add support for bzr.
19800 2008-05-03 Jim Meyering <meyering@redhat.com>
19802 avoid failed assertion with tight malloc
19803 * tests/test-getndelim2.c: Correct an off-by-one assertion.
19805 2008-05-03 Simon Josefsson <simon@josefsson.org>
19807 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
19808 are needed from arpa/inet.h.
19809 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
19810 Reported by Bruno Haible.
19812 2008-05-02 Jim Meyering <meyering@redhat.com>
19814 avoid compilation error on FreeBSD 6
19815 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
19817 2008-05-01 Jim Meyering <meyering@redhat.com>
19819 useless-if-before-free: correct --help's exit status description
19820 * build-aux/useless-if-before-free (usage): Like grep, exit 0
19821 for one or more matches, etc. Reported by Bruno Haible.
19823 vc-list-files: make the stand-alone gnulib test work
19824 * modules/vc-list-files-tests (configure.ac):
19825 Define and AC_SUBST abs_aux_dir.
19826 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
19827 $(abs_top_srcdir) to each script and having each of them
19828 duplicate the work of setting PATH, set PATH here, using
19829 the new variable, abs_aux_dir instead.
19830 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
19831 * tests/test-vc-list-files-git.sh: Likewise.
19832 Reported by Bruno Haible.
19834 2008-05-01 Bruno Haible <bruno@clisp.org>
19836 * lib/getndelim2.c (getndelim2): Fix newsize computation during
19837 reallocation. Rename 'done' to 'found_delimiter'.
19839 2008-05-01 Jim Meyering <meyering@redhat.com>
19841 vc-list-files: accommodate /bin/sh like the one from Solaris 10
19842 * build-aux/vc-list-files: Use `...`, not $(...).
19844 2008-04-30 Jim Meyering <meyering@redhat.com>
19846 add tests for vc-list-files
19847 * modules/vc-list-files-tests: New module.
19848 * tests/test-vc-list-files-cvs.sh: New file.
19849 * tests/test-vc-list-files-git.sh: New file.
19851 avoid a warning from gcc
19852 * lib/getndelim2.c (IF_LINT): Define.
19853 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
19855 vc-list-files: work properly with build-aux/cvsu, too
19856 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
19857 to all cvs-based clauses.
19859 vc-list-files: work properly in the CVS+awk case, too
19860 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
19862 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
19863 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
19864 take more than one file argument, so . Add quotes, just in case $dir
19865 ever contains a shell meta-character. Prompted by Soren Hansen in
19866 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
19868 2008-04-29 Eric Blake <ebb9@byu.net>
19870 Optimize getndelim2 to use block operations when possible.
19871 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
19872 freadseek, and memchr2.
19873 * lib/getndelim2.c (getndelim2): Use them for block reads.
19875 2008-04-29 Bruno Haible <bruno@clisp.org>
19877 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
19878 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19879 * modules/inet_ntop (Depends-on): Add extensions.
19880 * modules/inet_pton (Depends-on): Likewise.
19881 Reported by Simon Josefsson.
19883 2008-04-29 Jim Meyering <meyering@redhat.com>
19885 When the is more than one match in a block, match all of them.
19886 * build-aux/useless-if-before-free: Iterate through each block
19887 until there are no more matches.
19889 Fix broken useless-if-before-free script.
19890 * build-aux/useless-if-before-free: Fix typo: missing "?" after
19891 the expression to match cast of argument to free-like function.
19893 2008-04-29 Eric Blake <ebb9@byu.net>
19896 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
19898 2008-04-29 Jim Meyering <meyering@redhat.com>
19900 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
19901 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
19902 by gnulib to exist and to declare e.g., inet_ntop.
19903 Don't include "inet_ntop.h", now removed.
19905 * m4/arpa_inet_h.m4: Remove trailing blanks.
19907 2008-04-29 Eric Blake <ebb9@byu.net>
19909 Silence valgrind on safe reads beyond potential array bounds.
19910 * lib/rawmemchr.valgrind: New file.
19911 * lib/strchrnul.valgrind: Likewise.
19912 * modules/rawmemchr (Files): Distribute new file.
19913 * modules/strchrnul (Files): Likewise.
19914 Suggested by Bruno Haible.
19916 2008-04-29 Bruno Haible <bruno@clisp.org>
19918 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
19919 (inet_ntop, inet_pton): Change portability warning's wording.
19920 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
19921 Invoke gl_CHECK_NEXT_HEADERS.
19922 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
19923 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
19925 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19926 * modules/arpa_inet (Description): No longer only for systems that
19928 (Depends-on): Add include_next.
19929 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
19932 2008-04-29 Jim Meyering <meyering@redhat.com>
19934 * modules/mkdir (License): Re-license as LGPLv2+.
19936 2008-04-29 Bruno Haible <bruno@clisp.org>
19938 * modules/rawmemchr (Maintainer): Set to Eric.
19939 * modules/strchrnul (Maintainer): Likewise.
19941 2008-04-29 Simon Josefsson <simon@josefsson.org>
19943 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
19944 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
19946 * modules/arpa_inet (arpa/inet.h): Use them.
19948 2008-04-28 Eric Blake <ebb9@byu.net>
19951 * modules/getndelim2-tests: New file.
19952 * tests/test-getndelim2.c: Likewise.
19953 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
19955 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
19957 * MODULES.html.sh: Document new module.
19959 2008-04-20 Bruno Haible <bruno@clisp.org>
19961 * lib/c-stack.c (die): Use raise.
19962 * modules/c-stack (Depends-on): Add raise.
19964 2008-04-28 Bruno Haible <bruno@clisp.org>
19966 Expect rpmatch to be declared.
19967 * lib/yesno.c (rpmatch): Remove declaration.
19970 * lib/stdlib.in.h (rpmatch): New declaration.
19971 * lib/rpmatch.c: Include <stdlib.h> first.
19972 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
19973 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
19974 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
19976 * modules/rpmatch (Depends-on): Add stdlib, extensions.
19977 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19978 (Include): Set to <stdlib.h>.
19979 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
19981 * NEWS: Document the change.
19983 2008-04-28 Bruno Haible <bruno@clisp.org>
19985 Change rpmatch to use nl_langinfo when appropriate.
19986 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
19988 (localized_pattern): New function/macro.
19989 (try): Remove match, nomatch arguments. Copy the pattern into safe
19990 memory before caching it.
19991 (rpmatch): Use localized_pattern. Add translator comments.
19992 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
19993 Suggested by Eric Blake.
19994 * modules/rpmatch (Depends-on): Add stdbool.
19996 2008-04-28 Eric Blake <ebb9@byu.net>
19998 Add rawmemchr module, matching glibc.
19999 * modules/string (Makefile.am): New indicator.
20000 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
20001 * lib/string.in.h (rawmemchr): Declare when appropriate.
20002 * modules/rawmemchr: New file.
20003 * m4/rawmemchr.m4: Likewise.
20004 * lib/rawmemchr.c: Likewise.
20005 * modules/rawmemchr-tests: Likewise.
20006 * tests/test-rawmemchr.c: Likewise.
20007 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
20009 * modules/strchrnul (Depends-on): Add rawmemchr.
20010 * lib/strchrnul.c (strchrnul): Optimize a corner case.
20012 Whitespace cleanup.
20013 * tests/test-strchrnul.c: Reindent.
20014 * lib/strchrnul.c: Likewise.
20016 Optimize and test strchrnul.
20017 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
20018 * modules/strchrnul-tests: New file.
20019 * tests/test-strchrnul.c: Likewise.
20021 Remove intprops dependency.
20022 * modules/memchr (Depends-on): Remove intprops.
20023 * modules/memrchr (Depends-on): Likewise.
20024 * modules/memchr2 (Depends-on): Likewise.
20025 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
20026 * lib/memrchr.c (__memrchr): Likewise.
20027 * lib/memrchr2.c (memchr2): Likewise.
20028 Reported by Simon Josefsson.
20030 2008-04-28 Simon Josefsson <simon@josefsson.org>
20032 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
20033 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20035 2008-04-28 Simon Josefsson <simon@josefsson.org>
20037 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
20039 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
20041 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
20043 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
20045 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
20047 * m4/inet_pton.m4: Don't check for header files.
20049 * m4/inet_ntop.m4: Don't check for header files.
20051 2008-04-28 Simon Josefsson <simon@josefsson.org>
20053 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
20054 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
20055 trigger for cygwin).
20056 Reported by Bruno Haible <bruno@clisp.org>.
20058 2008-04-28 Bruno Haible <bruno@clisp.org>
20060 * doc/posix-functions/strdup.texi: Mention mingw problem.
20062 2008-04-27 Bruno Haible <bruno@clisp.org>
20064 * modules/stat-time-tests (Depends-on): Add sleep.
20065 * tests/test-stat-time.c (force_unlink): New function.
20067 (test_mtime): Remove the ctime related tests.
20068 (test_ctime): New function, containing the ctime related tests.
20069 (main): Call test_ctime, except on native Windows platforms.
20071 2008-04-27 Bruno Haible <bruno@clisp.org>
20073 * lib/rpmatch.c (rpmatch): Add some comments.
20074 Reported by James Youngman <jay@gnu.org>.
20076 2008-04-27 Bruno Haible <bruno@clisp.org>
20078 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
20081 2008-04-27 Bruno Haible <bruno@clisp.org>
20083 Make test-yesno.sh work on mingw.
20084 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
20085 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
20086 (main): Set stdin to binary mode.
20087 * modules/yesno-tests (Depends-on): Add binary-io.
20089 2008-04-27 Bruno Haible <bruno@clisp.org>
20091 Fix 'isfinite' on x86, x86_64, ia64 platforms.
20092 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
20093 argument that lie outside the IEEE 854 domain.
20094 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
20095 (gl_ISFINITE): Use it.
20096 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
20098 2008-04-27 Bruno Haible <bruno@clisp.org>
20100 Allow local renaming in config.h.
20101 * lib/memrchr.c (memrchr): Don't undefine outside libc.
20103 2008-04-27 Bruno Haible <bruno@clisp.org>
20105 * lib/memchr.c (__memchr): Change type of 'i'.
20106 * lib/memchr2.c (memchr2): Likewise.
20108 2008-04-26 Eric Blake <ebb9@byu.net>
20109 and Bruno Haible <bruno@clisp.org>
20111 Optimize and test memrchr.
20112 * modules/memrchr (Depends-on): Add intprops.
20113 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
20114 * modules/memrchr-tests: New file.
20115 * tests/test-memrchr.c: New file.
20117 2008-04-26 Bruno Haible <bruno@clisp.org>
20119 Add tentative support for DragonFly BSD.
20120 * lib/stdio-impl.h: Add macros for DragonFly BSD.
20121 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
20123 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
20124 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
20125 * lib/fpurge.c (fpurge): Likewise.
20126 * lib/freadable.c (freaadable): Likewise.
20127 * lib/freadahead.c (freadahead): Likewise.
20128 * lib/freading.c (freading): Likewise.
20129 * lib/freadptr.c (freadptr): Likewise.
20130 * lib/freadseek.c (freadptrinc): Likewise.
20131 * lib/fseeko.c (fseeko): Likewise.
20132 * lib/fseterr.c (fseterr): Likewise.
20133 * lib/fwritable.c (fwritable): Likewise.
20134 * lib/fwriting.c (fwriting): Likewise.
20136 2008-04-26 Bruno Haible <bruno@clisp.org>
20138 * lib/stdio-impl.h: New file.
20139 * lib/fbufmode.c: Include stdio-impl.h.
20140 (fbufmode): Use fp_, remove redundant #defines.
20141 * lib/fflush.c: Include stdio-impl.h.
20142 (clear_ungetc_buffer): Remove redundant #defines.
20143 * lib/fpurge.c: Include stdio-impl.h.
20144 (fpurge): Remove redundant #defines.
20145 * lib/freadable.c: Include stdio-impl.h.
20146 (freadable): Remove redundant #defines.
20147 * lib/freadahead.c: Include stdio-impl.h.
20148 (freadahead): Remove redundant #defines.
20149 * lib/freading.c: Include stdio-impl.h.
20150 (freading): Remove redundant #defines.
20151 * lib/freadptr.c: Include stdio-impl.h.
20152 (freadptr): Remove redundant #defines.
20153 * lib/freadseek.c: Include stdio-impl.h.
20154 (freadptrinc): Remove redundant #defines.
20155 * lib/fseeko.c: Include stdio-impl.h.
20156 (rpl_fseeko): Remove redundant #defines.
20157 * lib/fseterr.c: Include stdio-impl.h.
20158 (fseterr): Remove redundant #defines.
20159 * lib/fwritable.c: Include stdio-impl.h.
20160 (fwritable: Remove redundant #defines.
20161 * lib/fwriting.c: Include stdio-impl.h.
20162 (fwriting): Remove redundant #defines.
20163 * modules/fbufmode (Files): Add lib/stdio-impl.h.
20164 * modules/fflush (Files): Likewise.
20165 * modules/fpurge (Files): Likewise.
20166 * modules/freadable (Files): Likewise.
20167 * modules/freadahead (Files): Likewise.
20168 * modules/freading (Files): Likewise.
20169 * modules/freadptr (Files): Likewise.
20170 * modules/freadseek (Files): Likewise.
20171 * modules/fseeko (Files): Likewise.
20172 * modules/fseterr (Files): Likewise.
20173 * modules/fwritable (Files): Likewise.
20174 * modules/fwriting (Files): Likewise.
20176 2008-04-26 Bruno Haible <bruno@clisp.org>
20178 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
20179 restore_seek_optimization, update_fpos_cache): New functions, extracted
20181 (rpl_fflush): Use them.
20182 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
20183 (gl_REPLACE_FFLUSH): Use it.
20185 2008-04-26 Bruno Haible <bruno@clisp.org>
20187 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
20189 * tests/test-xstrtoimax.sh: Likewise.
20190 * tests/test-xstrtoumax.sh: Likewise.
20191 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20193 2008-04-26 Bruno Haible <bruno@clisp.org>
20195 * modules/memchr-tests: New file.
20196 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
20198 2008-04-26 Eric Blake <ebb9@byu.net>
20199 Bruno Haible <bruno@clisp.org>
20201 * lib/memchr.c: Include intprops.h.
20202 (__memchr): Optimize parallel detection of matching bytes. Rename local
20203 variables. Add explanatory comments.
20205 2008-04-26 Bruno Haible <bruno@clisp.org>
20207 Fix module 'memchr', broken since 2000-10-28.
20208 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
20210 2008-04-26 Bruno Haible <bruno@clisp.org>
20212 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
20215 2008-04-25 Eric Blake <ebb9@byu.net>
20217 Use native fstatat on cygwin 1.7.0.
20218 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
20221 2008-04-23 Eric Blake <ebb9@byu.net>
20223 Improve memchr2 performance.
20224 * lib/memchr2.c (memchr2): Further optimize parallel detection of
20226 * modules/memchr2 (Depends-on): Use intprops.h.
20228 2008-04-23 Simon Josefsson <simon@josefsson.org>
20230 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
20231 an inline function instead of a CPP macro. Patch by Ben Pfaff
20232 <blp@cs.stanford.edu>.
20234 2008-04-23 Simon Josefsson <simon@josefsson.org>
20236 * lib/arpa_inet.in.h: New file.
20238 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
20239 (Makefile.am): Sed in substitute header file.
20241 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
20242 gl_ARPA_INET_MODULE_INDICATOR. Use them.
20244 * modules/inet_ntop (configure.ac): Use
20245 gl_ARPA_INET_MODULE_INDICATOR.
20247 * modules/inet_pton (configure.ac): Use
20248 gl_ARPA_INET_MODULE_INDICATOR.
20250 2008-04-22 Jim Meyering <meyering@redhat.com>
20252 * modules/verify (License): Re-license as LGPLv2+.
20254 2008-04-22 Simon Josefsson <simon@josefsson.org>
20256 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
20257 parameter to void* as per POSIX standard (MinGW uses char*).
20259 2008-04-21 Bruno Haible <bruno@clisp.org>
20261 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20262 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
20263 Define to replacements if REPLACE_ISWCNTRL is 1.
20264 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
20265 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
20266 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
20267 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
20269 * doc/posix-functions/iswalpha.texi: Likewise.
20270 * doc/posix-functions/iswblank.texi: Likewise.
20271 * doc/posix-functions/iswcntrl.texi: Likewise.
20272 * doc/posix-functions/iswdigit.texi: Likewise.
20273 * doc/posix-functions/iswgraph.texi: Likewise.
20274 * doc/posix-functions/iswlower.texi: Likewise.
20275 * doc/posix-functions/iswprint.texi: Likewise.
20276 * doc/posix-functions/iswpunct.texi: Likewise.
20277 * doc/posix-functions/iswspace.texi: Likewise.
20278 * doc/posix-functions/iswupper.texi: Likewise.
20279 * doc/posix-functions/iswxdigit.texi: Likewise.
20280 Reported by Alain Guibert.
20282 2008-04-21 Bruno Haible <bruno@clisp.org>
20284 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
20285 Patch by Alain Guibert.
20287 2008-04-21 Bruno Haible <bruno@clisp.org>
20289 Fix test failures on mingw.
20290 * tests/test-xstrtol.c (print_no_progname): New function.
20291 (main): Install it in error_print_progname hook.
20292 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
20293 * tests/test-xstrtoimax.sh: Likewise.
20294 * tests/test-xstrtoumax.sh: Likewise.
20296 2008-04-21 Bruno Haible <bruno@clisp.org>
20298 Fix test failure on mingw.
20299 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
20301 2008-04-21 Bruno Haible <bruno@clisp.org>
20303 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
20304 Actually assign a value.
20306 2008-04-20 Bruno Haible <bruno@clisp.org>
20308 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
20310 * lib/canonicalize.c (canonicalize_file_name): Elide if the
20311 'canonicalize-lgpl' module is also used.
20312 * lib/canonicalize-lgpl.c: Undo last change.
20313 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
20315 2008-04-20 Bruno Haible <bruno@clisp.org>
20317 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
20318 config.h. Provide _mkdir based fallback for mingw.
20319 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
20320 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
20321 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
20322 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
20323 rather than defining mkdir in config.h.
20324 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
20325 (gl_SYS_STAT_H_DEFAULTS): New macro.
20326 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
20327 HAVE_IO_H any more.
20328 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
20329 HAVE_DECL_MKDIR and HAVE_IO_H.
20331 2008-04-20 Bruno Haible <bruno@clisp.org>
20333 * lib/isapipe.c: Port to native Windows platforms.
20335 2008-04-20 Bruno Haible <bruno@clisp.org>
20337 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
20339 2008-04-21 Eric Blake <ebb9@byu.net>
20341 Work around preprocessors that don't handle UINTMAX_MAX.
20342 * lib/memchr2.c (memchr2): Avoid embedded #if.
20343 Reported by Alain Guibert, fix suggested by Bruno Haible.
20345 2008-04-21 Simon Josefsson <simon@josefsson.org>
20347 * doc/posix-functions/strftime.texi (strftime): Explain better
20348 Windows incompatibility. Suggested by Micah Cowan
20349 <micah@cowan.name>.
20351 2008-04-20 Bruno Haible <bruno@clisp.org>
20353 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
20356 2008-04-20 Bruno Haible <bruno@clisp.org>
20358 Fix test failure on platforms with non-GNU iconv.
20359 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
20360 (U_TO_U8): Use it, rather than u16_to_u8.
20361 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
20362 units at the end of the input string.
20363 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
20365 2008-04-20 Bruno Haible <bruno@clisp.org>
20367 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
20368 when the resulting length is 0.
20369 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
20371 2008-04-20 Bruno Haible <bruno@clisp.org>
20373 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
20375 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
20377 2008-04-20 Bruno Haible <bruno@clisp.org>
20379 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
20380 * modules/tsearch-tests (configure.ac): Test for initstate function.
20382 2008-04-20 Bruno Haible <bruno@clisp.org>
20384 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
20385 for nlink_t if missing.
20386 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
20388 2008-04-19 Bruno Haible <bruno@clisp.org>
20390 Work around snprintf bug on Linux libc5.
20391 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
20392 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
20394 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20395 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
20397 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
20398 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
20399 * modules/snprintf (Files): Add m4/printf.m4.
20400 * modules/vsnprintf (Files): Likewise.
20401 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
20402 * doc/posix-functions/vsnprintf.texi: Likewise.
20404 2008-04-19 Bruno Haible <bruno@clisp.org>
20406 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
20407 from 0.0058 to less than 10^-7.
20409 2008-04-19 Bruno Haible <bruno@clisp.org>
20411 Fix rounding when a precision is given.
20412 * lib/vasnprintf.c (is_borderline): New function.
20413 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
20415 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
20417 * tests/test-vasprintf-posix.c (test_function): Likewise.
20418 * tests/test-snprintf-posix.h (test_function): Likewise.
20419 * tests/test-sprintf-posix.h (test_function): Likewise.
20420 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
20421 * tests/test-printf-posix.h (test_function): Likewise.
20422 * tests/test-printf-posix.output: Update.
20423 Reported by John Darrington <john@darrington.wattle.id.au> via
20424 Ben Pfaff <blp@cs.stanford.edu>.
20426 2008-04-18 Simon Josefsson <simon@josefsson.org>
20428 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
20429 Suggested by Bruno Haible <bruno@clisp.org>.
20431 2008-04-17 Bruno Haible <bruno@clisp.org>
20433 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
20434 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
20436 Patch by Bruce Merry <bmerry@gmail.com>.
20438 2008-04-17 Simon Josefsson <simon@josefsson.org>
20440 * doc/posix-functions/strftime.texi (strftime): Mention that %e
20441 doesn't work under Windows.
20443 2008-04-16 Bruno Haible <bruno@clisp.org>
20445 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
20447 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
20448 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
20449 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
20450 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
20451 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
20452 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
20453 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
20455 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
20456 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
20457 Northern Sotho, Uighur.
20459 2008-04-16 Bruno Haible <bruno@clisp.org>
20461 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
20462 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
20463 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
20464 Reported by Daniel Bergström <daniel@octocode.com>.
20466 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
20467 Bruno Haible <bruno@clisp.org>
20469 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
20471 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
20472 New functions, mostly extracted from gl_locale_name_default.
20473 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
20475 2008-04-16 Eric Blake <ebb9@byu.net>
20477 Adjust strtod detection to catch glibc 2.7 bug.
20478 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
20479 Reported by John Gatewood Ham.
20481 2008-04-16 Bruno Haible <bruno@clisp.org>
20483 Add tentative support for Linux libc5.
20484 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
20485 * lib/fpurge.c (fpurge): Likewise.
20486 * lib/freadable.c (freadable): Likewise.
20487 * lib/freadahead.c (freadahead): Likewise.
20488 * lib/freading.c (freading): Likewise.
20489 * lib/freadptr.c (freadptr): Likewise.
20490 * lib/freadseek.c (freadptrinc): Likewise.
20491 * lib/fseeko.c (rpl_fseeko): Likewise.
20492 * lib/fseterr.c (fseterr): Likewise.
20493 * lib/fwritable.c (fwritable): Likewise.
20494 * lib/fwriting.c (fwriting): Likewise.
20495 Reported by Alain Guibert <alguibert+bts@free.fr>.
20497 2008-04-15 Bruno Haible <bruno@clisp.org>
20499 * modules/mathl (configure.ac): Define module indicator.
20501 2008-04-15 Bruno Haible <bruno@clisp.org>
20503 * lib/logl.c (logl): Remove unused variables.
20505 2008-04-15 Bruno Haible <bruno@clisp.org>
20507 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
20510 2008-04-15 Bruno Haible <bruno@clisp.org>
20512 * lib/trim.c (trim2): Fix argument of isspace() macro.
20514 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
20516 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
20518 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
20520 2008-04-14 Bruno Haible <bruno@clisp.org>
20522 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
20523 AC_LANG_PROGRAM argument.
20524 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
20525 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
20526 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20527 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
20528 * m4/math_h.m4 (gl_MATH_H): Likewise.
20529 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
20530 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20531 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
20532 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
20533 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20534 * m4/regex.m4 (gl_REGEX): Likewise.
20535 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
20536 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
20537 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20538 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
20539 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
20540 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20541 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20542 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20544 2008-04-14 Jim Meyering <meyering@redhat.com>
20546 test-strtod: fix typos: s/abs/fabs/
20547 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
20549 2008-04-13 Bruno Haible <bruno@clisp.org>
20551 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
20552 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
20553 module is also used and while not building the reloc-wrapper.
20555 2008-04-13 Bruno Haible <bruno@clisp.org>
20557 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
20559 2008-04-13 Bruno Haible <bruno@clisp.org>
20561 Fix AIX compilation failure introduced on 2008-04-02.
20562 * tests/test-frexp.c (exp): Undefine before redefining.
20563 * tests/test-frexpl.c (exp): Likewise.
20565 2008-04-13 Bruno Haible <bruno@clisp.org>
20567 Work around a HP-UX stdio bug.
20568 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
20569 * tests/test-ftello.c (main): Likewise.
20570 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
20571 * doc/posix-functions/ftello.texi: Likewise.
20573 2008-04-13 Bruno Haible <bruno@clisp.org>
20575 Make test-signbit pass on HP-UX/hppa.
20576 * tests/test-signbit.c (minus_zerol): New variable.
20577 (test_signbitl): Use it.
20579 2008-04-13 Bruno Haible <bruno@clisp.org>
20581 Make truncl work on OSF/1 4.0.
20582 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
20583 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
20584 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
20585 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
20587 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
20589 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
20591 2008-04-13 Bruno Haible <bruno@clisp.org>
20593 * lib/unictype.h: Remove trailing comma from enumeration definitions.
20595 2008-04-13 Bruno Haible <bruno@clisp.org>
20597 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
20598 expression, so as to avoid HP-UX 11 cc compiler bug.
20600 2008-04-13 Bruno Haible <bruno@clisp.org>
20602 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
20604 2008-04-13 Bruno Haible <bruno@clisp.org>
20606 * lib/git-merge-changelog.c: Remove empty declaration outside of
20609 2008-04-13 Bruno Haible <bruno@clisp.org>
20611 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
20613 2008-04-13 Bruno Haible <bruno@clisp.org>
20615 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
20616 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
20617 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
20618 also if it exists but lacks definitions of the SHUT_* macros.
20619 * modules/sys_socket (Description): Update.
20620 Reported by Elbert Pol <e.pol@chello.nl>.
20622 2008-04-13 Bruno Haible <bruno@clisp.org>
20624 * lib/localcharset.c (OS2): Don't redefine if already defined.
20625 Reported by Elbert Pol <e.pol@chello.nl>.
20627 2008-04-13 Bruno Haible <bruno@clisp.org>
20629 * lib/binary-io.h [__EMX__]: Include <io.h>.
20630 Reported by Elbert Pol <e.pol@chello.nl>.
20632 2008-04-12 Bruno Haible <bruno@clisp.org>
20634 * lib/fpucw.h: Enable the definitions also for x86_64.
20635 Needed for NetBSD/x86_64.
20636 Reported by Thomas Klausner <tk@giga.or.at>.
20638 2008-04-12 Bruno Haible <bruno@clisp.org>
20640 * tests/test-strtod.c: Include isnand.h.
20641 (main): Use isnand instead of isnan.
20642 Reported by Jim Meyering.
20644 2008-04-12 Bruno Haible <bruno@clisp.org>
20646 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
20647 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
20649 2008-04-12 Jim Meyering <meyering@redhat.com>
20651 * m4/math_h.m4 (gl_MATH_H): Fix typos.
20653 2008-04-12 Bruno Haible <bruno@clisp.org>
20655 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
20656 Reported by Elbert Pol <e.pol@chello.nl>.
20658 2008-04-12 Eric Blake <ebb9@byu.net>
20660 Work around Solaris 10 math.h bug.
20661 * m4/math_h.m4 (gl_MATH_H): Check for bug.
20662 (gl_MATH_H_DEFAULTS): Set up default.
20663 * modules/math (Makefile.am): Replace new indicators.
20664 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
20665 * tests/test-math.c (main): Test this.
20666 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
20667 * doc/posix-headers/math.texi (math.h): Mention bug.
20668 Reported by Nelson H. F. Beebe and Jim Meyering.
20670 2008-04-11 Bruno Haible <bruno@clisp.org>
20672 Adapt to future versions of Apple GCC.
20673 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
20674 Reported by Peter O'Gorman <peter@pogma.com>.
20676 2008-04-11 Bruno Haible <bruno@clisp.org>
20678 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
20680 2008-04-11 Bruno Haible <bruno@clisp.org>
20682 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
20684 * modules/getaddrinfo-tests (Makefile.am): Define
20685 test_getaddrinfo_LDADD.
20687 2008-04-11 Bruno Haible <bruno@clisp.org>
20689 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
20690 (init): Fix syntax error.
20691 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
20694 2008-04-11 Bruno Haible <bruno@clisp.org>
20696 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
20697 * modules/glob (Depends-on): Add stdbool.
20699 2008-04-11 Bruno Haible <bruno@clisp.org>
20701 * lib/trim.c: Include <string.h>.
20703 2008-04-11 Eric Blake <ebb9@byu.net>
20705 Avoid compile failure on OS/2.
20706 * lib/regex_internal.h (internal_function): Disable optimization
20707 on OS/2 (__EMX__), where it caused compiler error.
20708 Reported by Elbert Pol.
20710 2008-04-11 Bruno Haible <bruno@clisp.org>
20712 Flush the standard error stream before aborting. Needed on mingw.
20713 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
20714 * tests/test-array_list.c (ASSERT): Likewise.
20715 * tests/test-array_oset.c (ASSERT): Likewise.
20716 * tests/test-avltree_list.c (ASSERT): Likewise.
20717 * tests/test-avltree_oset.c (ASSERT): Likewise.
20718 * tests/test-avltreehash_list.c (ASSERT): Likewise.
20719 * tests/test-binary-io.c (ASSERT): Likewise.
20720 * tests/test-byteswap.c (ASSERT): Likewise.
20721 * tests/test-c-ctype.c (ASSERT): Likewise.
20722 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
20723 * tests/test-c-strcasestr.c (ASSERT): Likewise.
20724 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
20725 * tests/test-c-strstr.c (ASSERT): Likewise.
20726 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
20727 * tests/test-canonicalize.c (ASSERT): Likewise.
20728 * tests/test-carray_list.c (ASSERT): Likewise.
20729 * tests/test-ceilf1.c (ASSERT): Likewise.
20730 * tests/test-ceilf2.c (ASSERT): Likewise.
20731 * tests/test-ceill.c (ASSERT): Likewise.
20732 * tests/test-count-one-bits.c (ASSERT): Likewise.
20733 * tests/test-fbufmode.c (ASSERT): Likewise.
20734 * tests/test-fflush2.c (ASSERT): Likewise.
20735 * tests/test-floorf1.c (ASSERT): Likewise.
20736 * tests/test-floorf2.c (ASSERT): Likewise.
20737 * tests/test-floorl.c (ASSERT): Likewise.
20738 * tests/test-fopen.c (ASSERT): Likewise.
20739 * tests/test-fpending.c (ASSERT): Likewise.
20740 * tests/test-fprintf-posix.c (ASSERT): Likewise.
20741 * tests/test-fpurge.c (ASSERT): Likewise.
20742 * tests/test-freadable.c (ASSERT): Likewise.
20743 * tests/test-freadahead.c (ASSERT): Likewise.
20744 * tests/test-freading.c (ASSERT): Likewise.
20745 * tests/test-freadptr.c (ASSERT): Likewise.
20746 * tests/test-freadptr2.c (ASSERT): Likewise.
20747 * tests/test-freadseek.c (ASSERT): Likewise.
20748 * tests/test-freopen.c (ASSERT): Likewise.
20749 * tests/test-frexp.c (ASSERT): Likewise.
20750 * tests/test-frexpl.c (ASSERT): Likewise.
20751 * tests/test-fseek.c (ASSERT): Likewise.
20752 * tests/test-fseeko.c (ASSERT): Likewise.
20753 * tests/test-fstrcmp.c (ASSERT): Likewise.
20754 * tests/test-ftell.c (ASSERT): Likewise.
20755 * tests/test-ftello.c (ASSERT): Likewise.
20756 * tests/test-func.c (ASSERT): Likewise.
20757 * tests/test-fwritable.c (ASSERT): Likewise.
20758 * tests/test-fwriting.c (ASSERT): Likewise.
20759 * tests/test-getdelim.c (ASSERT): Likewise.
20760 * tests/test-getline.c (ASSERT): Likewise.
20761 * tests/test-i-ring.c (ASSERT): Likewise.
20762 * tests/test-iconv-utf.c (ASSERT): Likewise.
20763 * tests/test-iconv.c (ASSERT): Likewise.
20764 * tests/test-isfinite.c (ASSERT): Likewise.
20765 * tests/test-isnand.c (ASSERT): Likewise.
20766 * tests/test-isnanf.c (ASSERT): Likewise.
20767 * tests/test-isnanl.h (ASSERT): Likewise.
20768 * tests/test-ldexpl.c (ASSERT): Likewise.
20769 * tests/test-linked_list.c (ASSERT): Likewise.
20770 * tests/test-linkedhash_list.c (ASSERT): Likewise.
20771 * tests/test-localename.c (ASSERT): Likewise.
20772 * tests/test-lseek.c (ASSERT): Likewise.
20773 * tests/test-mbscasecmp.c (ASSERT): Likewise.
20774 * tests/test-mbscasestr1.c (ASSERT): Likewise.
20775 * tests/test-mbscasestr2.c (ASSERT): Likewise.
20776 * tests/test-mbscasestr3.c (ASSERT): Likewise.
20777 * tests/test-mbscasestr4.c (ASSERT): Likewise.
20778 * tests/test-mbschr.c (ASSERT): Likewise.
20779 * tests/test-mbscspn.c (ASSERT): Likewise.
20780 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
20781 * tests/test-mbspbrk.c (ASSERT): Likewise.
20782 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
20783 * tests/test-mbsrchr.c (ASSERT): Likewise.
20784 * tests/test-mbsspn.c (ASSERT): Likewise.
20785 * tests/test-mbsstr1.c (ASSERT): Likewise.
20786 * tests/test-mbsstr2.c (ASSERT): Likewise.
20787 * tests/test-mbsstr3.c (ASSERT): Likewise.
20788 * tests/test-memchr2.c (ASSERT): Likewise.
20789 * tests/test-memmem.c (ASSERT): Likewise.
20790 * tests/test-open.c (ASSERT): Likewise.
20791 * tests/test-printf-frexp.c (ASSERT): Likewise.
20792 * tests/test-printf-frexpl.c (ASSERT): Likewise.
20793 * tests/test-printf-posix.c (ASSERT): Likewise.
20794 * tests/test-quotearg.c (ASSERT): Likewise.
20795 * tests/test-rbtree_list.c (ASSERT): Likewise.
20796 * tests/test-rbtree_oset.c (ASSERT): Likewise.
20797 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
20798 * tests/test-round1.c (ASSERT): Likewise.
20799 * tests/test-roundf1.c (ASSERT): Likewise.
20800 * tests/test-roundl.c (ASSERT): Likewise.
20801 * tests/test-signbit.c (ASSERT): Likewise.
20802 * tests/test-sleep.c (ASSERT): Likewise.
20803 * tests/test-snprintf-posix.c (ASSERT): Likewise.
20804 * tests/test-snprintf.c (ASSERT): Likewise.
20805 * tests/test-sprintf-posix.c (ASSERT): Likewise.
20806 * tests/test-stat-time.c (ASSERT): Likewise.
20807 * tests/test-strcasestr.c (ASSERT): Likewise.
20808 * tests/test-strerror.c (ASSERT): Likewise.
20809 * tests/test-striconv.c (ASSERT): Likewise.
20810 * tests/test-striconveh.c (ASSERT): Likewise.
20811 * tests/test-striconveha.c (ASSERT): Likewise.
20812 * tests/test-strsignal.c (ASSERT): Likewise.
20813 * tests/test-strstr.c (ASSERT): Likewise.
20814 * tests/test-strtod.c (ASSERT): Likewise.
20815 * tests/test-trunc1.c (ASSERT): Likewise.
20816 * tests/test-trunc2.c (ASSERT): Likewise.
20817 * tests/test-truncf1.c (ASSERT): Likewise.
20818 * tests/test-truncf2.c (ASSERT): Likewise.
20819 * tests/test-truncl.c (ASSERT): Likewise.
20820 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
20821 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
20822 * tests/test-vasnprintf.c (ASSERT): Likewise.
20823 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
20824 * tests/test-vasprintf.c (ASSERT): Likewise.
20825 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
20826 * tests/test-vprintf-posix.c (ASSERT): Likewise.
20827 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
20828 * tests/test-vsnprintf.c (ASSERT): Likewise.
20829 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
20830 * tests/test-wcwidth.c (ASSERT): Likewise.
20831 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
20832 * tests/test-xprintf-posix.c (ASSERT): Likewise.
20833 * tests/test-xvasprintf.c (ASSERT): Likewise.
20834 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
20835 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
20836 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
20837 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
20838 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
20839 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
20840 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
20841 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
20842 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
20843 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
20844 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
20845 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
20846 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
20847 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
20848 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
20849 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
20850 * tests/unictype/test-block_list.c (ASSERT): Likewise.
20851 * tests/unictype/test-block_of.c (ASSERT): Likewise.
20852 * tests/unictype/test-block_test.c (ASSERT): Likewise.
20853 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
20854 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
20855 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
20856 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
20857 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
20858 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
20859 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
20860 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
20861 * tests/unictype/test-combining.c (ASSERT): Likewise.
20862 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
20863 * tests/unictype/test-digit.c (ASSERT): Likewise.
20864 * tests/unictype/test-mirror.c (ASSERT): Likewise.
20865 * tests/unictype/test-numeric.c (ASSERT): Likewise.
20866 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
20867 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
20868 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
20869 * tests/unictype/test-scripts.c (ASSERT): Likewise.
20870 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
20871 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
20872 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
20873 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
20874 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
20875 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
20876 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
20877 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
20878 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
20879 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
20880 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
20881 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
20882 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
20883 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
20884 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
20885 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
20886 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
20887 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
20888 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
20889 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
20890 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
20891 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
20892 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
20893 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
20894 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
20895 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
20896 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
20897 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
20898 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
20899 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
20900 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
20901 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
20902 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
20903 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
20904 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
20905 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
20906 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
20907 Reported by Eric Blake.
20909 2008-04-11 Bruno Haible <bruno@clisp.org>
20911 * lib/wchar.in.h: Tweak comment.
20913 2008-04-11 Bruno Haible <bruno@clisp.org>
20915 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
20916 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
20918 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
20920 2008-04-11 Bruno Haible <bruno@clisp.org>
20922 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
20924 2008-04-11 Simon Josefsson <simon@josefsson.org>
20926 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
20927 of attempting to use non-existing /dev/*random. Based on patch
20928 from Adam Strzelecki <ono@java.pl> in
20929 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
20931 2008-04-08 Bruno Haible <bruno@clisp.org>
20933 Add tentative support for emx+gcc.
20934 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
20935 * lib/fpurge.c (fpurge): Likewise.
20936 * lib/freadable.c (freadable): Likewise.
20937 * lib/freadahead.c (freadahead): Likewise.
20938 * lib/freading.c (freading): Likewise.
20939 * lib/freadptr.c (freadptr): Likewise.
20940 * lib/freadseek.c (freadptrinc): Likewise.
20941 * lib/fseeko.c (rpl_fseeko): Likewise.
20942 * lib/fseterr.c (fseterr): Likewise.
20943 * lib/fwritable.c (fwritable): Likewise.
20944 * lib/fwriting.c (fwriting): Likewise.
20945 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
20947 2008-04-09 Eric Blake <ebb9@byu.net>
20949 Avoid some autoconf warnings.
20950 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
20951 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
20952 * m4/afs.m4 (gl_AFS): Likewise.
20953 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
20954 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
20955 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
20956 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
20957 (gl_INTEGER_TYPE_SUFFIX): Likewise.
20958 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
20959 (AC_CHECK_DECLS_ONCE): Likewise.
20961 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
20962 gnulib-tool requires autoconf 2.59 or better.
20963 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
20965 2008-04-08 Eric Blake <ebb9@byu.net>
20967 Use 'git describe --match' if present (added in git 1.5.5).
20968 * build-aux/git-version-gen: Limit result to tags that match 'v*'
20971 2008-04-08 Bruno Haible <bruno@clisp.org>
20973 Add tentative support for OpenServer.
20974 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
20976 * lib/fpurge.c (fpurge): Likewise.
20977 * lib/freadable.c (freadable): Likewise.
20978 * lib/freadahead.c (freadahead): Likewise.
20979 * lib/freading.c (freading): Likewise.
20980 * lib/freadptr.c (freadptr): Likewise.
20981 * lib/freadseek.c (freadptrinc): Likewise.
20982 * lib/fseeko.c (rpl_fseeko): Likewise.
20983 * lib/fseterr.c (fseterr): Likewise.
20984 * lib/fwritable.c (fwritable): Likewise.
20985 * lib/fwriting.c (fwriting): Likewise.
20986 Reported by Roger Cornelius <rac@tenzing.org> and
20987 Brian K. White <brian@aljex.com>.
20989 2008-04-06 Jim Meyering <meyering@redhat.com>
20991 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
20993 2008-04-06 Bruno Haible <bruno@clisp.org>
20995 Avoid possible error with non-ASCII bytes in UTF-8 locales.
20996 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
20997 * tests/test-printf-posix.sh: Likewise.
20998 * tests/test-vfprintf-posix.sh: Likewise.
20999 * tests/test-vprintf-posix.sh: Likewise.
21000 * tests/test-xprintf-posix.sh: Likewise.
21002 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21004 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
21005 hide error from 'ls', needed on OS/2.
21006 Report by Elbert Pol <elbert.pol@gmail.com>.
21008 2008-04-04 Eric Blake <ebb9@byu.net>
21010 Make test-fseeko.c failures meaningful.
21011 * tests/test-fseeko.c: Print line number on failure.
21012 * tests/test-fseek.c: Likewise.
21013 Reported by Nelson H. F. Beebe.
21015 Improve strtod bug detection check.
21016 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
21017 required for Solaris 10.
21018 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
21020 2008-04-04 Bruno Haible <bruno@clisp.org>
21022 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
21025 2008-04-03 Eric Blake <ebb9@byu.net>
21027 Ensure sane .version contents.
21028 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
21030 * build-aux/git-version-gen: Improve documentation.
21032 Make GNU make output nicer.
21033 * top/GNUmakefile [!_have-Makefile]: Add dependency on
21034 MAKECMDGOALS to enforce message for all command line targets. Set
21035 srcdir for use in maint.mk.
21037 Another maintainer tweak.
21038 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
21039 a target that regenerates version.
21041 2008-04-03 Jim Meyering <meyering@redhat.com>
21043 vc-list-files: don't cause coreutils "make po-check" failure
21044 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
21046 2008-04-03 Eric Blake <ebb9@byu.net>
21048 Allow VPATH usage of vc-list-files.
21049 * build-aux/vc-list-files (scriptversion): Add timestamp.
21050 (options): Add --help, --version, -C.
21051 (CVS): Support installed cvsu.
21053 2008-04-02 Bruno Haible <bruno@clisp.org>
21055 Avoid some "statement with no effect" warnings from gcc.
21056 * tests/test-wctype.c (main): Explicitly ignore unused values.
21057 Reported by Jim Meyering.
21059 2008-04-02 Jim Meyering <meyering@redhat.com>
21061 Avoid some warnings from "gcc -Wshadow".
21062 * tests/test-frexp.c (exp): Define to a different identifier.
21063 * tests/test-frexpl.c (exp): Likewise.
21065 2008-04-03 Jim Meyering <meyering@redhat.com>
21067 bootstrap: remove dangling *.[ch] symlinks from lib
21068 * build-aux/bootstrap [dangling symlink removal]: Move find's
21069 -depth option to precede all others, to avoid a warning.
21070 Remove *.[ch] files too, and from "$source_base" (usually lib/).
21072 2008-04-02 Bruno Haible <bruno@clisp.org>
21074 Avoid some warnings from "gcc -Wshadow".
21075 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
21076 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
21077 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
21078 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
21079 Reported by Jim Meyering.
21081 2008-04-01 Bruno Haible <bruno@clisp.org>
21083 Fix test to work on IRIX 6.5 with cc.
21084 * tests/test-math.c (numeric_equal): New function.
21087 2008-04-01 Bruno Haible <bruno@clisp.org>
21089 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
21091 2008-04-01 Bruno Haible <bruno@clisp.org>
21093 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
21094 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
21095 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
21096 (Depends-on): Remove math.
21098 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
21099 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
21100 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
21101 (Depends-on): Remove math.
21103 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
21104 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
21105 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
21106 (Depends-on): Remove math.
21107 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
21108 (Depends-on): Remove math.
21110 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
21111 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
21112 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
21113 (Depends-on): Remove math.
21114 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
21115 (Depends-on): Remove math.
21117 * tests/test-round1.c: Include nan.h.
21118 (main): Use NaNd instead of NAN.
21119 * modules/round-tests (Files): Add tests/nan.h.
21121 * tests/test-trunc1.c: Include nan.h.
21122 (main): Use NaNd instead of NAN.
21123 * modules/trunc-tests (Files): Add tests/nan.h.
21125 * tests/test-roundf1.c: Include nan.h.
21126 (main): Use NaNf instead of NAN.
21127 * modules/roundf-tests (Files): Add tests/nan.h.
21129 * tests/test-truncf1.c: Include nan.h.
21130 (main): Use NaNf instead of NAN.
21131 * modules/truncf-tests (Files): Add tests/nan.h.
21133 * tests/test-ceilf1.c: Include nan.h.
21134 (main): Use NaNf instead of NAN.
21135 * modules/ceilf-tests (Files): Add tests/nan.h.
21137 * tests/test-floorf1.c: Include nan.h.
21138 (main): Use NaNf instead of NAN.
21139 * modules/floorf-tests (Files): Add tests/nan.h.
21141 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
21142 (main): Use NaNf instead of NAN.
21143 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
21145 * tests/test-isnand.c: Include nan.h instead of <math.h>.
21146 (main): Use NaNd instead of NAN.
21147 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
21149 * tests/test-frexp.c: Include nan.h.
21150 (main): Use NaNd instead of NAN.
21151 * modules/frexp-tests (Files): Add tests/nan.h.
21153 * lib/isnan.c: Don't include <math.h>.
21154 (FUNC): Don't use NAN macro.
21155 * modules/isnand-nolibm (Depends-on): Remove math.
21156 * modules/isnanf-nolibm (Depends-on): Remove math.
21157 * modules/isnanl (Depends-on): Remove math.
21158 * modules/isnanl-nolibm (Depends-on): Remove math.
21160 * tests/nan.h: New file.
21162 2008-04-01 Eric Blake <ebb9@byu.net>
21165 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
21166 values to be the right type.
21168 For now, cater to gnulib strtod inaccuracies.
21169 * tests/test-strtod.c (main): Allow 1-ulp error on expected
21170 fractional results. While not as nice from a QoI perspective, it
21171 is a quicker patch than correctly implementing decimal to binary
21174 2008-03-31 Eric Blake <ebb9@byu.net>
21176 Guarantee a definition of NAN.
21177 * lib/math.in.h (NAN): Define if missing.
21178 * tests/test-math.c (main): Test it.
21179 * doc/posix-headers/math.texi (math.h): Document this.
21180 * lib/isnan.c (rpl_isnand): Use it.
21181 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
21182 * tests/test-floorf1.c (NaN): Likewise.
21183 * tests/test-frexp.c (NaN): Likewise.
21184 * tests/test-isnand.c (NaN): Likewise.
21185 * tests/test-isnanf.c (NaN): Likewise.
21186 * tests/test-round1.c (NaN): Likewise.
21187 * tests/test-roundf1.c (NaN): Likewise.
21188 * tests/test-snprintf-posix.h (NaN): Likewise.
21189 * tests/test-sprintf-posix.h (NaN): Likewise.
21190 * tests/test-trunc1.c (NaN): Likewise.
21191 * tests/test-truncf1.c (NaN): Likewise.
21192 * tests/test-vasnprintf-posix.c (NaN): Likewise.
21193 * tests/test-vasprintf-posix.c (NaN): Likewise.
21194 * modules/isnand-nolibm (Depends-on): Add math.
21195 * modules/isnanf-nolibm (Depends-on): Likewise.
21196 * modules/isnanl (Depends-on): Likewise.
21197 * modules/isnanl-nolibm (Depends-on): Likewise.
21198 * modules/snprintf-posix-tests (Depends-on): Likewise.
21199 * modules/sprintf-posix-tests (Depends-on): Likewise.
21200 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
21201 * modules/vsprintf-posix-tests (Depends-on): Likewise.
21202 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
21203 * modules/vasprintf-posix-tests (Depends-on): Likewise.
21205 2008-03-31 Bruno Haible <bruno@clisp.org>
21207 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
21208 * doc/posix-functions/strtod.texi: Likewise.
21210 2008-03-31 Bruno Haible <bruno@clisp.org>
21212 * tests/test-strtod.c (main): Don't use C99 syntax.
21214 2008-03-31 Bruno Haible <bruno@clisp.org>
21216 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
21217 Reported by Eric Blake.
21219 2008-03-31 Jim Meyering <meyering@redhat.com>
21221 Don't compare actual signbit return values.
21222 * tests/test-strtod.c (main): Rather, compare only their
21223 zero/non-zero nature.
21225 2008-03-31 Eric Blake <ebb9@byu.net>
21227 More strtod documentation.
21228 * doc/posix-functions/strtod.texi (strtod): Interpret more test
21229 failures as distinct bugs.
21231 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
21233 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
21234 Problem reported by Erik Benada in
21235 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
21237 2008-03-30 Bruno Haible <bruno@clisp.org>
21239 * tests/test-strtod.c: Add comments about which assertion fails on which
21241 * doc/posix-functions/strtod.texi: Add info about many more platforms.
21243 2008-03-30 Eric Blake <ebb9@byu.net>
21245 Test signbit behavior on zeros.
21246 * tests/test-signbit.c (test_signbitf): Add tests for zero.
21247 (test_signbitd, test_signbitl): Likewise.
21249 More strtod touchups.
21250 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
21251 sign of negative underflow, for now. Use .5, not .1.
21252 * doc/posix-functions/strtod.texi (strtod): Mention these
21254 Reported by Jim Meyering.
21256 2008-03-30 Bruno Haible <bruno@clisp.org>
21258 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
21259 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
21261 2008-03-30 Bruno Haible <bruno@clisp.org>
21263 Avoid failure when attempting to return empty iconv results on some
21265 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
21266 allocation, don't report ENOMEM when the resulting string is empty.
21268 2008-03-30 Bruno Haible <bruno@clisp.org>
21270 Fix buffer overrun.
21271 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
21272 Don't consider the width for tmp_length. Check count against tmp_length
21273 before doing the padding. Ensure enough allocation during padding.
21275 2008-03-30 Eric Blake <ebb9@byu.net>
21278 * lib/strtod.c (strtod): Avoid compiler warnings.
21279 Reported by Jim Meyering.
21281 2008-03-30 Bruno Haible <bruno@clisp.org>
21283 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
21284 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
21285 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
21286 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
21287 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
21288 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
21289 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
21290 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
21292 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
21293 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
21294 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
21295 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
21296 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
21297 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
21298 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
21299 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
21301 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
21302 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
21303 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
21304 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
21305 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
21306 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
21307 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
21308 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
21310 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
21311 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
21313 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
21314 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
21316 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
21317 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
21319 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
21320 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
21321 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
21323 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
21324 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
21325 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
21327 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
21328 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
21329 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
21331 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
21332 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
21333 * modules/vasprintf (Depends-on): Add EOVERFLOW.
21335 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
21336 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
21337 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
21338 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
21339 (Depends-on): Add EOVERFLOW.
21340 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
21341 (Depends-on): Add EOVERFLOW.
21342 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
21343 (Depends-on): Add EOVERFLOW.
21344 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
21345 (Depends-on): Add EOVERFLOW.
21346 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
21347 (Depends-on): Add EOVERFLOW.
21348 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
21349 (Depends-on): Add EOVERFLOW.
21350 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
21351 (Depends-on): Add EOVERFLOW.
21352 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
21353 (Depends-on): Add EOVERFLOW.
21355 * lib/sprintf.c (EOVERFLOW): Remove fallback.
21356 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
21357 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
21359 * lib/snprintf.c (EOVERFLOW): Remove fallback.
21360 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
21361 * modules/snprintf (Depends-on): Add EOVERFLOW.
21363 * lib/poll.c (EOVERFLOW): Remove fallback.
21364 * modules/poll (Depends-on): Add EOVERFLOW.
21366 * lib/getugroups.c (EOVERFLOW): Remove fallback.
21367 * modules/getugroups (Depends-on): Add EOVERFLOW.
21369 * lib/getdelim.c (EOVERFLOW): Remove fallback.
21370 * modules/getdelim (Depends-on): Add EOVERFLOW.
21372 * lib/ftell.c (EOVERFLOW): Remove fallback.
21373 * modules/ftell (Depends-on): Add EOVERFLOW.
21375 * lib/fprintf.c (EOVERFLOW): Remove fallback.
21376 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
21377 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
21379 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
21381 * modules/EOVERFLOW-tests: New file.
21382 * tests/test-EOVERFLOW.c: New file.
21384 * modules/EOVERFLOW: New file.
21385 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
21387 2008-03-30 Bruno Haible <bruno@clisp.org>
21389 Fix bug introduced on 2007-06-10.
21390 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
21391 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
21393 2008-03-30 Bruno Haible <bruno@clisp.org>
21395 Improve freadseek's efficiency after ungetc.
21396 * lib/freadseek.c: Include freadahead.h.
21397 (freadptrinc): New function, extracted from freadseek.
21398 (freadseek): Use it in a loop. Use freadahead to determine the number
21399 of loop iterations.
21400 * modules/freadseek (Depends-on): Add freadahead.
21401 (configure.ac): Require AC_C_INLINE.
21403 2008-03-30 Bruno Haible <bruno@clisp.org>
21405 * lib/freadseek.c (freadseek): Don't ignore the return value of
21408 2008-03-29 Eric Blake <ebb9@byu.net>
21410 Add hex float support.
21411 * modules/strtod (Depends-on): Add c-ctype.
21412 (Link): Mention POW_LIB.
21413 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
21414 whitespace between 'e' and exponent.
21415 * tests/test-strtod.c (main): Enable hex float tests.
21416 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
21419 Document various strtod bugs, with some fixes.
21420 * doc/posix-functions/strtod.texi (strtod): Document bugs with
21421 "-0x", "inf", "nan", and hex constants.
21422 * doc/posix-functions/atof.texi (atof): Likewise.
21423 * modules/stdlib (Makefile.am): Support strtod.
21424 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
21425 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
21426 detect additional strtod bugs.
21427 * lib/stdlib.in.h (rpl_strtod): Add declarations.
21428 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
21429 bool where appropriate. Parse 'inf' and 'nan'.
21430 * tests/test-strtod.c: New file.
21431 * modules/strtod (Depends-on): Add stdbool, stdlib.
21432 (configure.ac): Turn on module indicator.
21433 * modules/strtod-tests: New module.
21435 2008-03-29 Eric Blake <ebb9@byu.net>
21437 Fix ftell on mingw.
21438 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
21439 * modules/ftell-tests (Depends-on): Add binary-io.
21440 * modules/ftello-tests (Depends-on): Likewise.
21441 * tests/test-ftell.c (main): Enhance test to cover behavior after
21442 ungetc. Enforce binary mode.
21443 * tests/test-ftello.c (main): Likewise.
21445 Pass test-freadseek on cygwin.
21446 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
21447 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
21450 * tests/test-fflush2.c (main): Fix typo.
21452 2008-03-29 Bruno Haible <bruno@clisp.org>
21454 * tests/test-fflush2.c (main): Temporarily disable the contents of
21456 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
21457 Reported by Eric Blake.
21459 2008-03-28 Simon Josefsson <simon@josefsson.org>
21461 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
21462 (GC_SHA224_DIGEST_SIZE): Add.
21464 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
21465 (gc_hash_digest_length): Likewise.
21466 (gc_hash_buffer): Likewise.
21468 2008-03-25 Bruno Haible <bruno@clisp.org>
21470 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
21471 detail which gettext release to use.
21472 Reported by Simon Josefsson.
21474 2008-03-26 Jim Meyering <meyering@redhat.com>
21476 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
21477 * modules/gnumakefile (clean-GNUmakefile): Also, use
21478 test ... && ... || : syntax rather than if-then ... fi.
21480 gnumakefile: Don't double-quote-expand $(VPATH) value.
21481 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
21483 2008-03-24 Eric Blake <ebb9@byu.net>
21485 Alter GNUmakefile to install into top directory.
21486 * modules/maintainer-makefile: Split, and add dependency...
21487 * modules/gnumakefile: to this new module.
21488 * build-aux/GNUmakefile: Move...
21489 * top/GNUmakefile: ...here.
21490 * build-aux/maint.mk: Move...
21491 * top/maint.mk: ...here.
21492 * MODULES.html.sh (Support for maintaining...): Document new
21495 2008-03-23 Bruno Haible <bruno@clisp.org>
21497 * gnulib-tool: New options --vc-files, --no-vc-files.
21498 (func_usage): Document them.
21499 (vc_files): New variable.
21500 (func_import): Consider vc_files.
21501 (func_create_testdir): Set vc_files to empty.
21502 Suggested by Jim Meyering and Karl Berry.
21504 2008-03-23 Bruno Haible <bruno@clisp.org>
21506 Fix regex compilation error on HP-UX 11.
21507 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
21508 * modules/regex (Files): Add m4/mbstate_t.m4.
21509 Reported by Ton Voon <ton.voon@altinity.com>.
21511 2008-03-23 Bruno Haible <bruno@clisp.org>
21513 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
21515 2008-03-23 Eric Blake <ebb9@byu.net>
21516 Bruno Haible <bruno@clisp.org>
21518 Install files from top/ in the destination directory.
21519 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
21520 augmentation also for the files from top/.
21521 (func_import, func_create_testdir): Rewrite file names:
21522 top/filename -> filename.
21524 2008-03-23 Bruno Haible <bruno@clisp.org>
21526 Tweak "gnulib --version" output.
21527 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
21529 2008-03-23 Bruno Haible <bruno@clisp.org>
21531 Tweak "gnulib --version" output.
21532 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
21533 rather than contents of ChangeLog, when possible.
21535 2008-03-21 Eric Blake <ebb9@byu.net>
21537 More --version tweaks.
21538 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
21539 date of last ChangeLog entry.
21541 2008-03-21 Jim Meyering <meyering@redhat.com>
21543 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
21545 2008-03-20 Eric Blake <ebb9@byu.net>
21548 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
21550 2008-03-20 Simon Josefsson <simon@josefsson.org>
21552 * build-aux/GNUmakefile: Make git-version-gen optional. Add
21553 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
21555 2008-03-20 Eric Blake <ebb9@byu.net>
21557 Sync GNUmakefile with coreutils.
21558 * build-aux/GNUmakefile (have-Makefile): Rename...
21559 (_have-Makefile): ...to this, for namespace consideration.
21560 (GNUmakefile.cfg): Include, if present.
21561 (_autoreconf): Define a default.
21562 (_is-dist-target): New rule for rebuilds to pick up intra-release
21564 (maint-cfg.mk): Rename...
21565 (cfg.mk): ...to this.
21567 2008-03-18 Jim Meyering <meyering@redhat.com>
21569 New script and module: mktempd
21570 * MODULES.html.sh (maint+release support): Add mktempd.
21571 * build-aux/mktempd: New file.
21572 * modules/mktempd: New file.
21574 2008-03-15 Jim Meyering <meyering@redhat.com>
21577 * lib/sha1.c, lib/md5.c: 63 != ~63.
21578 Reported by Andreas Schwab.
21580 sha1.c, md5.c: Hoist a redundant expression.
21581 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
21582 "ctx->buflen" only once, before calling *_process_block.
21583 * lib/md5.c (md5_process_bytes): Likewise.
21585 2008-03-14 Eric Blake <ebb9@byu.net>
21587 Bump copyright year in files generated by gnulib-tool.
21588 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
21589 gnulib-tool, rather than hard-coding it.
21591 Fix 'gnulib-tool --version' output to work with git.
21592 * gnulib-tool (func_gnulib_dir): New function, extracted from...
21593 (startup): ...here.
21594 (func_version): Use it to invoke git-version-gen, rather than
21595 relying on CVS keyword expansion. Modernize wording.
21596 (cvsdatestamp, last_checkin_date, version): Kill unused
21599 2008-03-12 Jim Meyering <meyering@redhat.com>
21601 Recognize optional cast of the argument to free.
21602 * build-aux/useless-if-before-free: Update regexps.
21604 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
21606 2008-03-11 Bruno Haible <bruno@clisp.org>
21608 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
21609 by a single package.
21610 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
21611 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
21612 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
21613 Reported by Sam Steingold <sds@gnu.org>.
21615 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
21617 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
21620 2008-03-11 Bruno Haible <bruno@clisp.org>
21622 Avoid conflicts between local macro definitions.
21623 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21624 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
21626 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
21627 Bruno Haible <bruno@clisp.org>
21629 Make va_copy work with some version of xlc on AIX 5.1.
21630 * lib/stdarg.in.h: New file.
21631 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
21632 On AIX, use a <stdarg.h> file substitute.
21633 * modules/stdarg (Files): Add lib/stdarg.in.h.
21634 (Depends-on): Add include_next.
21635 (Makefile.am): Build a stdarg.h substitute if requested.
21636 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
21638 2008-03-10 Bruno Haible <bruno@clisp.org>
21640 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
21641 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21642 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
21644 2008-03-10 Bruno Haible <bruno@clisp.org>
21646 * modules/stdlib (Depends-on): Add include_next, remove
21649 2008-03-09 Bruno Haible <bruno@clisp.org>
21651 * lib/freadahead.h (freadahead): Document more precisely.
21652 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
21653 the sum of both buffer sizes.
21654 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
21655 * NEWS: Document the change.
21657 2008-03-09 Bruno Haible <bruno@clisp.org>
21659 Extend freadptr to return also the buffer size.
21660 * lib/freadptr.h (freadptr): Add sizep argument.
21661 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
21662 (freadptr): Add sizep argument. Determine buffer size like freadahead
21664 * tests/test-freadptr.c: Don't include freadahead.h.
21665 (main): Adapt for new calling convention of freadptr.
21666 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
21667 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
21668 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
21669 tests/test-freadptr2.sh.
21670 (Depends): Remove freadahead.
21671 (TESTS): Add test-freadptr2.sh.
21672 (check_PROGRAMS): Add test-freadptr2.
21674 2008-03-09 Bruno Haible <bruno@clisp.org>
21676 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
21677 Report and solution by Simon Josefsson.
21679 2008-03-06 Bruno Haible <bruno@clisp.org>
21681 Make fflush after ungetc work on BSD platforms.
21682 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
21683 * tests/test-fflush2.c: New file.
21684 * tests/test-fflush2.sh: New file.
21685 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
21686 tests/test-fflush2.c.
21687 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
21688 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
21690 2008-03-06 Eric Blake <ebb9@byu.net>
21692 Likewise for ftello.
21693 * modules/ftello (Dependencies): Add extensions.
21694 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
21696 2008-03-06 Bruno Haible <bruno@clisp.org>
21698 * modules/fseeko (Dependencies): Add extensions.
21699 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
21700 Needed on glibc systems.
21702 2008-03-06 Bruno Haible <bruno@clisp.org>
21704 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
21706 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21708 2008-03-06 Bruno Haible <bruno@clisp.org>
21710 * users.txt: Add libgnupdf.
21712 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
21714 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
21715 (Header File Substitutes, Function Substitutes,
21716 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
21717 (Build robot for gnulib): Fix typo.
21719 2008-03-06 Bruno Haible <bruno@clisp.org>
21721 * doc/gnulib-tool.texi (VCS Issues): Small updates.
21722 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21724 2008-03-06 Bruno Haible <bruno@clisp.org>
21726 * doc/func.texi: New file, extracted from doc/gnulib.texi.
21727 * doc/gnulib.texi: Include it.
21729 2008-03-06 Simon Josefsson <simon@josefsson.org>
21731 * modules/func (License): Change license to unlimited; there was
21732 no LGPL parts in the module anyway.
21734 2008-03-06 Simon Josefsson <simon@josefsson.org>
21736 * modules/__func__: Renamed to modules/func.
21737 * modules/__func__-tests: Renamed to modules/func-tests.
21738 * tests/test-__func__.c: Renamed to tests/test-func.c.
21739 * m4/__func__.m4: Renamed to m4/func.m4.
21740 * doc/gnulib.texi (__func__): Section renamed to func.
21741 Suggested by Eric Blake <ebb9@byu.net>.
21743 2008-03-06 Simon Josefsson <simon@josefsson.org>
21745 * doc/gnulib.texi (__func__): Use C99 terminology when talking
21746 about __func__. Make example self-contained. Suggested by Eric
21747 Blake <ebb9@byu.net>.
21749 * tests/test-__func__.c (main): Avoid extraneous () around __func.
21750 Suggested by Eric Blake <ebb9@byu.net>.
21752 2008-03-06 Simon Josefsson <simon@josefsson.org>
21754 * modules/__func__: New file.
21755 * modules/__func__-tests: New file.
21756 * tests/test-__func__.c: New file.
21757 * m4/__func__.m4: New file.
21758 * doc/gnulib.texi (__func__): Document __func__ module.
21760 2008-03-05 Simon Josefsson <simon@josefsson.org>
21762 * modules/byteswap (License): Re-license as LGPLv2+.
21764 2008-03-05 Simon Josefsson <simon@josefsson.org>
21766 * doc/Makefile: Add pdf target.
21768 2008-03-05 Simon Josefsson <simon@josefsson.org>
21770 * modules/inline (License): Use 'unlimited', since there are only
21771 *.m4 files in this module.
21773 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
21774 Bruno Haible <bruno@clisp.org>
21776 Add support for HP C 7.1 on OpenVMS 8.3.
21777 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
21779 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
21781 Update VMS specifics.
21782 * lib/getopt.c [VMS]: Remove include of unixlib.h.
21784 2008-03-02 Jim Meyering <meyering@redhat.com>
21786 Remove the last dependency on the "free" module.
21787 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
21788 Reported by Bob Proulx.
21790 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
21792 Remove useless "if" tests before free. Deprecate "free" module.
21793 * doc/posix-functions/free.texi: Mention that this
21794 module is no longer useful.
21795 * modules/free (Notice): Say this module is obsolete.
21796 * modules/readutmp (Depends-on): Remove free.
21797 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
21798 * lib/putenv.c (putenv): Likewise.
21799 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
21800 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
21801 * tests/test-c-strcasestr.c (main): Likewise.
21802 * tests/test-c-strstr.c (main): Likewise.
21803 * tests/test-mbscasestr1.c (main): Likewise.
21804 * tests/test-mbscasestr2.c (main): Likewise.
21805 * tests/test-mbsstr1.c (main): Likewise.
21806 * tests/test-mbsstr2.c (main): Likewise.
21807 * tests/test-memmem.c (main): Likewise.
21808 * tests/test-strcasestr.c (main): Likewise.
21809 * tests/test-striconv.c (main): Likewise.
21810 * tests/test-striconveh.c (main): Likewise.
21811 * tests/test-striconveha.c (main): Likewise.
21812 * tests/test-strstr.c (main): Likewise.
21814 * build-aux/git-version-gen: Adjust a comment and the Usage string.
21816 bootstrap: sync from coreutils again
21817 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
21819 2008-03-01 Jim Meyering <meyering@redhat.com>
21821 bootstrap: sync from coreutils
21822 * build-aux/bootstrap (update_po_files): Copy a .po file into place
21823 also when the target doesn't exist.
21825 2008-03-01 Eric Blake <ebb9@byu.net>
21827 Fix bugs in last patch.
21828 * lib/memchr2.c (memchr2): Fix typo.
21829 * tests/test-memchr2.c: Test previous bug, and don't use GNU
21831 Reported by Bruce Korb.
21833 New module 'memchr2'.
21834 * modules/memchr2: New file.
21835 * modules/memchr2-tests: Likewise.
21836 * lib/memchr2.h: Likewise.
21837 * lib/memchr2.c: Likewise, based on memchr.c.
21838 * tests/test-memchr2.c: New test.
21839 * MODULES.html.sh (String handling): Add memchr2.
21841 2008-02-29 Bruno Haible <bruno@clisp.org>
21843 * modules/freadseek-tests: New file.
21844 * tests/test-freadseek.sh: New file.
21845 * tests/test-freadseek.c: New file.
21847 New module 'freadseek'.
21848 * modules/freadseek: New file.
21849 * lib/freadseek.h: New file.
21850 * lib/freadseek.c: New file.
21851 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
21853 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
21855 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
21858 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
21859 program_invocation_name and program_invocation_short_name are
21862 2008-02-28 Bruno Haible <bruno@clisp.org>
21864 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
21865 * tests/test-freadptr.sh: Also test non-seekable stdin.
21867 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
21869 * build-aux/bootstrap (source_base, m4_base)
21870 (doc_base, tests_base): New variables.
21871 (gnulib_tool_options): Do not hardcode base directories, use
21872 the above variables instead.
21874 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
21876 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
21878 2008-02-28 Bruno Haible <bruno@clisp.org>
21880 * modules/freadptr-tests: New file.
21881 * tests/test-freadptr.sh: New file.
21882 * tests/test-freadptr.c: New file.
21884 New module 'freadptr'.
21885 * modules/freadptr: New file.
21886 * lib/freadptr.h: New file.
21887 * lib/freadptr.c: New file.
21888 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
21890 2008-02-26 Karl Berry <karl@freefriends.org>
21893 * libltdl/argz.c (argz_add, argz_count): New functions.
21894 * libltdl/argz.in.h: Declare them.
21895 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
21897 2008-02-22 Bruno Haible <bruno@clisp.org>
21899 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
21900 is a pointer type. Needed for HP-UX 10.
21901 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
21902 * doc/posix-functions/gmtime_r.texi: Likewise.
21903 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
21905 2008-02-24 Bruno Haible <bruno@clisp.org>
21907 * modules/environ-tests: New file.
21908 * tests/test-environ.c: New file.
21910 New module 'environ'.
21911 * modules/environ: New file.
21912 * lib/unistd.in.h (environ): New declaration.
21913 * m4/environ.m4: New file.
21914 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
21916 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
21918 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
21920 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
21921 wrong claim that 'environ' is missing on some systems.
21922 * modules/execute (Depends-on): Add environ.
21923 * lib/execute.c (environ): Remove fallback declaration.
21924 * modules/pipe (Depends-on): Add environ.
21925 * lib/pipe.c (environ): Remove fallback declaration.
21926 * modules/setenv (Depends-on): Add environ.
21927 * lib/setenv.c (environ): Remove fallback declaration.
21928 * modules/unsetenv (Depends-on): Add environ.
21929 * lib/unsetenv.c (environ): Remove fallback declaration.
21930 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
21932 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
21933 (gl_PREREQ_UNSETENV): Likewise.
21935 2008-02-24 Bruno Haible <bruno@clisp.org>
21937 * doc/posix-functions/environ.texi: Document the MacOS X problem.
21939 2008-02-20 Bob Proulx <bob@proulx.com>
21941 Enable use of older two part flavor 'git describe'.
21942 * build-aux/git-version-gen: If using the older two part flavor of
21943 git version then recreate the third part now present in the
21944 newer three part flavor of git describe.
21946 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
21948 * lib/fts.c (fts_build): Typo correction to comment.
21950 2008-02-17 Bruno Haible <bruno@clisp.org>
21952 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
21953 generating no-op conflicts.
21955 2008-02-17 Bruno Haible <bruno@clisp.org>
21958 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
21959 result_entries, rather than an index-based loop.
21961 2008-02-17 Bruno Haible <bruno@clisp.org>
21964 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
21966 (entry_create): New function.
21967 (entry_hashcode): Use the cached hashcode if possible.
21968 (read_changelog_file, try_split_merged_entry): Use entry_create.
21970 2008-02-17 Bruno Haible <bruno@clisp.org>
21972 Speed up from O(n^2) to O(n) for long ChangeLog files.
21973 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
21974 (read_changelog_file): Change implementation of entries_reversed list
21976 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
21978 2008-02-17 Bruno Haible <bruno@clisp.org>
21980 New option --split-merged-entry.
21981 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
21982 (find_paragraph_end, try_split_merged_entry): New functions.
21983 (long_options): Add option --split-merged-entry.
21984 (usage): Document option --split-merged-entry.
21985 (main): Implement option --split-merged-entry.
21986 Reported by Eric Blake.
21988 2008-02-17 Bruno Haible <bruno@clisp.org>
21990 * lib/git-merge-changelog.c: Include c-strstr.h.
21991 (main): Support the "git pull --rebase" situation.
21992 * modules/git-merge-changelog (Depends-on): Add c-strstr.
21993 Reported by Eric Blake.
21995 2008-02-16 Eric Blake <ebb9@byu.net>
21997 Avoid doubling \ in common case of "c-maybe" quoting style.
21998 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
21999 eliding outer quotes.
22000 * lib/quotearg.h: Document this.
22001 * tests/test-quotearg.c (result_strings, inputs, results_g)
22002 (flag_results, locale_results): Test it by adding a new string to
22004 (compare_strings): Test new string.
22006 2008-02-13 Eric Blake <ebb9@byu.net>
22008 Avoid trigraph quoting in default output.
22009 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
22010 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
22011 unless explicitly requested.
22012 * tests/test-quotearg.c (flag_results, main): Add additional tests.
22014 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
22016 Don't rely on signed integer overflowing to negative value.
22017 * lib/getugroups.c (getugroups): Include <limits.h>.
22018 Instead, compare against INT_MAX, and increment only if the test passes.
22020 2008-02-13 Jim Meyering <meyering@redhat.com>
22021 and Eric Blake <ebb9@byu.net>
22023 Avoid shadowing warning and compile errors on Linux.
22024 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
22025 forwarding macros on Linux.
22026 (dcgettext): Define a stub, for Linux.
22027 (results_g, main): Avoid warnings.
22029 2008-02-12 Eric Blake <ebb9@byu.net>
22031 Silence warning in last patch.
22032 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
22034 Quotearg part 4: add tests, fix c-maybe colon quoting.
22035 * lib/quotearg.h: Improve documentation.
22036 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
22037 escapes when adding outer quotes. When quoting trigraphs, use
22038 valid C notation. When quoting NUL, omit extra characters if next
22039 character is not digit. Alter prototype.
22040 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
22042 * modules/quotearg-tests: New module.
22043 * tests/test-quotearg.c: New test.
22045 2008-02-07 Eric Blake <ebb9@byu.net>
22047 Quotearg part 3: add flag to control outer quote elision.
22048 * lib/quotearg.h (c_maybe_quoting_style): New style.
22049 (enum quoting_flags): Better documentation of flags.
22050 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
22052 (quotearg_buffer_restyled): Handle new flag to elide outer
22055 Quotearg part 2: add flag that can control NUL elision.
22056 * lib/quotearg.h (set_quoting_flags): New prototype.
22057 * lib/quotearg.c (struct quoting_options): Add flag field.
22058 (set_quoting_flags): New function.
22059 (quotearg_buffer_restyled): Add flags parameter.
22060 (quotearg_alloc_mem): Set the flag if length cannot be returned.
22061 (quotearg_n_options): Set the flag, since length cannot be
22063 (quoting_options_from_style): Default flags correctly.
22065 Quotearg part 1: more wrappers, restore quotearg_char state.
22066 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
22067 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
22068 (quotearg_colon_mem): New wrappers.
22069 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
22070 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
22072 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
22073 (quotearg_colon_mem): New functions.
22075 2008-02-11 Bruno Haible <bruno@clisp.org>
22077 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
22078 library in the current directory: it does not work with parallel make.
22079 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22081 2008-02-11 Bruno Haible <bruno@clisp.org>
22083 * .gitattributes: New file.
22085 2008-02-11 Jim Meyering <meyering@redhat.com>
22087 useless-if-before-free: Fix reversed exit values.
22088 * build-aux/useless-if-before-free: Use correct values
22089 for EXIT_MATCH and EXIT_NO_MATCH.
22091 * build-aux/useless-if-before-free: Close stdout carefully.
22093 2008-02-10 Bruno Haible <bruno@clisp.org>
22095 New module 'git-merge-changelog'.
22096 * modules/git-merge-changelog: New file.
22097 * lib/git-merge-changelog.c: New file.
22099 2008-02-10 Jim Meyering <meyering@redhat.com>
22101 useless-if-before-free: New option: --list (-l).
22103 useless-if-before-free: Don't exit immediately upon open failure.
22104 * build-aux/useless-if-before-free: Exit 2 for errors.
22105 Upon failure to open a file, don't exit immediately.
22106 Rather, just warn and continue with any remaining files.
22108 2008-02-10 Bruno Haible <bruno@clisp.org>
22110 New abstract list operation 'node_set_value'.
22111 * lib/gl_list.h (gl_list_node_set_value): New function.
22112 (struct gl_list_implementation): New field node_set_value.
22113 * lib/gl_list.c (gl_list_node_set_value): New function.
22114 * lib/gl_array_list.c (gl_array_node_set_value): New function.
22115 (gl_array_list_implementation): Update.
22116 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
22117 (gl_carray_list_implementation): Update.
22118 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
22119 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
22120 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
22121 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
22122 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
22123 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
22124 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
22126 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
22127 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
22128 (gl_sublist_list_implementation): Update.
22130 2008-02-10 Bruno Haible <bruno@clisp.org>
22132 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
22133 Needed when ELEMENT is #defined to 'some_type *'.
22135 2008-02-10 Jim Meyering <meyering@redhat.com>
22137 New script and module: useless-if-before-free
22138 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
22139 * build-aux/useless-if-before-free: New file.
22140 * modules/useless-if-before-free: New file.
22142 * build-aux/gitlog-to-changelog: Use committer date, not author date.
22144 xstrtol_error: Fix typo.
22145 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
22146 s/exit_failure/exit_status/.
22148 2008-02-09 Jim Meyering <meyering@redhat.com>
22150 New script and module: gitlog-to-changelog
22151 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
22152 * modules/gitlog-to-changelog: New file.
22153 * build-aux/gitlog-to-changelog: New file.
22155 2008-02-08 Jim Meyering <meyering@redhat.com>
22157 Avoid two "parameter unused" warnings.
22158 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
22161 Use "git COMMAND", not "git-COMMAND".
22162 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
22163 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
22164 * build-aux/git-version-gen: Use "git status", not "git-status".
22166 2008-02-07 Bruno Haible <bruno@clisp.org>
22168 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
22169 Avoids a crash on Windows Vista.
22170 Reported by Adam Strzelecki <ono@java.pl> via
22171 Simon Josefsson <simon@josefsson.org>.
22173 2008-02-06 Bruno Haible <bruno@clisp.org>
22175 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
22176 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
22177 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
22178 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
22179 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
22180 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
22181 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
22182 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
22183 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
22184 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
22185 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
22186 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
22187 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
22188 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
22189 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
22190 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
22192 * tests/test-snprintf-posix.h (test_function): Likewise.
22193 * tests/test-sprintf-posix.h (test_function): Likewise.
22194 * tests/test-vasprintf-posix.c (test_function): Likewise.
22195 * doc/posix-functions/fprintf.texi: Update.
22196 * doc/posix-functions/printf.texi: Update.
22197 * doc/posix-functions/snprintf.texi: Update.
22198 * doc/posix-functions/sprintf.texi: Update.
22199 * doc/posix-functions/vfprintf.texi: Update.
22200 * doc/posix-functions/vprintf.texi: Update.
22201 * doc/posix-functions/vsnprintf.texi: Update.
22202 * doc/posix-functions/vsprintf.texi: Update.
22203 Reported by Peter Fales <psfales@alcatel-lucent.com>.
22205 2008-02-06 Bruno Haible <bruno@clisp.org>
22207 Fix bug introduced on 2008-01-26.
22208 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
22210 2008-02-06 Bruno Haible <bruno@clisp.org>
22212 Fix bug introduced on 2007-06-10.
22213 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
22214 !NEED_PRINTF_FLAG_ZERO.
22216 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
22218 getloadavg: use libperfstat on AIX5
22219 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
22221 2008-02-03 Bruno Haible <bruno@clisp.org>
22223 * lib/diffseq.h: Add comments about required #includes.
22224 Reported by Michael Biggs <gnulib@doubleplum.net>.
22226 2008-02-01 Bruno Haible <bruno@clisp.org>
22228 * users.txt: Add gnuit.
22230 2008-01-31 Bruno Haible <bruno@clisp.org>
22232 * lib/md4.c (set_uint32): Mark as inline.
22233 * lib/md5.c (set_uint32): Likewise.
22234 * lib/sha1.c (set_uint32): Likewise.
22235 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
22236 * m4/md5.m4 (gl_MD5): Likewise.
22237 * m4/sha1.m4 (gl_SHA1): Likewise.
22239 2008-01-31 Jim Meyering <meyering@redhat.com>
22241 Use "sizeof VAR", rather than a literal "4".
22242 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
22243 * lib/md4.c (md4_read_ctx): Likewise.
22244 * lib/sha1.c (sha1_read_ctx): Likewise.
22246 2008-01-31 Simon Josefsson <simon@josefsson.org>
22248 * tests/test-sha1.c: New file, based on test-md5.c.
22250 * modules/crypto/sha1-tests: New file.
22252 2008-01-31 Simon Josefsson <simon@josefsson.org>
22254 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
22256 2008-01-31 Jim Meyering <meyering@redhat.com>
22258 Prefer "sizeof v" over the equivalent "4".
22259 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
22260 * lib/md5.c (set_uint32): Likewise.
22261 * lib/sha1.c (set_uint32): Likewise.
22263 2008-01-31 Simon Josefsson <simon@josefsson.org>
22265 * lib/sha1.c (set_uint32): Mark function as static.
22267 2008-01-31 Simon Josefsson <simon@josefsson.org>
22269 md2: clarify comments to say that alignment is not required.
22270 * lib/md2.h: Remove warning about alignment in comment.
22271 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
22272 never been required.
22274 2008-01-31 Simon Josefsson <simon@josefsson.org>
22276 md4: adapt alignment constraint fix from sha1.
22277 * lib/md4.c (set_uint32): New function, from sha1.c
22278 (md4_read_ctx): Use it.
22279 (md4_finish_ctx): Doc fix.
22280 * lib/md4.h: Doc fix.
22282 2008-01-31 Simon Josefsson <simon@josefsson.org>
22284 md5: adapt alignment constraint fix from sha1.
22285 * lib/md5.c (set_uint32): New function, from sha1.c
22286 (md5_read_ctx): Use it.
22287 (md5_finish_ctx): Doc fix.
22288 * lib/md5.h: Doc fix.
22290 2008-01-30 Peter Palfrader <weasel@debian.org>
22292 sha1: remove the result buffer alignment constraint
22293 * lib/sha1.c (set_uint32): New function.
22294 (sha1_read_ctx): Rewrite to remove the result buffer alignment
22296 (sha1_finish_ctx): Remove comment warning about alignment constraint.
22297 * lib/sha1.h: Likewise.
22299 2008-01-30 Andreas Schwab <schwab@suse.de>
22300 Bruno Haible <bruno@clisp.org>
22302 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
22303 correct definition of LDBL_MIN_EXP.
22305 2008-01-30 Karl Berry <karl@gnu.org>
22307 * config/srclist-update: try to preserve x bit on updates.
22308 * config/srclistvars.sh: update for karl.
22310 2008-01-29 Jim Meyering <meyering@redhat.com>
22312 vasnprintf.c: Avoid warning about unused label
22313 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
22314 "overflow" label definition and associated code with the
22315 same cpp condition that guards the sole use of that label.
22317 2008-01-26 Bruno Haible <bruno@clisp.org>
22319 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
22320 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
22321 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
22322 * lib/isnanl-nolibm.h (isnanl): Likewise.
22323 Reported by Paul Eggert <eggert@cs.ucla.edu>.
22325 2008-01-26 Bruno Haible <bruno@clisp.org>
22327 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
22328 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
22330 2008-01-26 Bruno Haible <bruno@clisp.org>
22332 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
22333 GCC >= 4.0 built-in.
22334 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
22336 2008-01-26 Bruno Haible <bruno@clisp.org>
22338 Rename isnan, applicable to 'double' only, to isnand.
22339 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
22340 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
22341 (configure.ac): Update.
22342 (Include): Replace "isnan.h" with "isnand.h".
22343 * m4/isnand.m4: Renamed from m4/isnan.m4.
22344 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
22345 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
22346 instead of isnan.c.
22347 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
22348 instead of HAVE_ISNAN_IN_LIBC.
22349 (isnand): Renamed from isnan.
22350 * lib/isnand.c: New file.
22351 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
22352 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
22353 (Makefile.am): Update.
22354 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
22355 Include isnand.h instead of isnan.h.
22356 (main): Test isnand instead of isnan.
22357 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
22359 * modules/frexp (Depends-on): Likewise.
22360 * modules/frexp-tests (Depends-on): Likewise.
22361 * modules/frexp-nolibm (Depends-on): Likewise.
22362 * modules/frexp-nolibm-tests (Depends-on): Likewise.
22363 * modules/isfinite (Depends-on): Likewise.
22364 * modules/round-tests (Depends-on): Likewise.
22365 * modules/signbit (Depends-on): Likewise.
22366 * modules/signbit-tests (Depends-on): Likewise.
22367 * modules/snprintf-posix (Depends-on): Likewise.
22368 * modules/sprintf-posix (Depends-on): Likewise.
22369 * modules/trunc-tests (Depends-on): Likewise.
22370 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
22371 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
22372 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
22373 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
22374 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
22375 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
22376 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
22377 * modules/vasnprintf-posix (Depends-on): Likewise.
22378 * modules/vasprintf-posix (Depends-on): Likewise.
22379 * modules/vfprintf-posix (Depends-on): Likewise.
22380 * modules/vsnprintf-posix (Depends-on): Likewise.
22381 * modules/vsprintf-posix (Depends-on): Likewise.
22382 * lib/frexp.c: Include isnand.h instead of isnan.h.
22383 (ISNAN): Set to isnand instead of isnan.
22384 * lib/isfinite.c: Include isnand.h instead of isnan.h.
22385 (gl_isfinited): Use isnand instead of isnan.
22386 * lib/signbitd.c: Include isnand.h instead of isnan.h.
22387 (gl_signbitd): Use isnand instead of isnan.
22388 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
22389 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
22390 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
22391 (main): Use isnand instead of isnan.
22392 * tests/test-round1.c: Include isnand.h.
22393 (main): Use isnand instead of isnan.
22394 * tests/test-round2.c: Include isnand.h instead of isnan.h.
22395 (ISNAN): Set to isnand instead of isnan.
22396 * tests/test-trunc1.c: Include isnand.h.
22397 (main): Use isnand instead of isnan.
22398 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
22399 (equal): Use isnand instead of isnan.
22400 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
22402 * NEWS: Mention the change.
22404 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
22405 Bruno Haible <bruno@clisp.org>
22407 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
22408 the GCC builtins for signbits are present and set
22409 REPLACE_SIGNBIT_USING_GCC if so.
22410 * lib/math.in.h (signbit): Define using GCC builtins if
22411 REPLACE_SIGNBIT_USING_GCC is set.
22412 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
22413 REPLACE_SIGNBIT_USING_GCC.
22414 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
22416 2008-01-25 Jim Meyering <meyering@redhat.com>
22418 Prefer <config.h> over "config.h". See autoconf doc for explanation.
22419 * lib/poll.c: Include <config.h>, not "config.h".
22420 * tests/test-getaddrinfo.c: Likewise.
22422 2008-01-25 Simon Josefsson <simon@josefsson.org>
22424 * modules/sockets-tests: New file.
22426 2008-01-24 Simon Josefsson <simon@josefsson.org>
22428 * modules/sockets: New module, can be used to call WSA_Startup and
22429 WSA_Cleanup when needed.
22431 * lib/sockets.h, lib/sockets.c: New files.
22433 * m4/sockets.m4: New file.
22435 * tests/test-sockets.c: New file.
22437 2008-01-19 Bruno Haible <bruno@clisp.org>
22439 * doc/posix-headers: Renamed from doc/headers.
22440 * doc/posix-functions: Renamed from doc/functions.
22441 * doc/gnulib.texi: Update.
22443 2008-01-19 Bruno Haible <bruno@clisp.org>
22445 * doc/glibc-functions/strcasestr.texi: Include contents of
22446 doc/functions/strcasestr.texi, fixing the list of platforms.
22447 * doc/functions/strcasestr.texi: Remove file.
22449 2008-01-19 Bruno Haible <bruno@clisp.org>
22451 * doc/glibc-functions/memmem.texi: Include contents of
22452 doc/functions/memmem.texi.
22453 * doc/functions/memmem.texi: Remove file.
22455 2008-01-18 Bruno Haible <bruno@clisp.org>
22457 * doc/glibc-functions/*.texi: New files.
22458 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
22459 to use the new files.
22461 2008-01-17 Bruno Haible <bruno@clisp.org>
22463 * tests/test-gethostname.c (main): Fix printf statement.
22465 2008-01-17 Simon Josefsson <simon@josefsson.org>
22467 * modules/gethostname-tests: New file.
22469 * tests/test-gethostname.c: New file.
22471 2008-01-17 Simon Josefsson <simon@josefsson.org>
22473 * lib/gethostname.c: Include string.h unconditionally, strncpy is
22474 used by the UNAME case. Reported by Bruno Haible
22477 2008-01-17 Eric Blake <ebb9@byu.net>
22479 Convert c-strcasestr to be more efficient.
22480 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
22481 (Depends-on): Add c-strcase, remove malloca, strnlen.
22482 * tests/test-c-strcasestr.c (main): Enhance test.
22483 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
22485 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
22487 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
22488 Use it in creating po/Makevars.
22490 2008-01-15 Simon Josefsson <simon@josefsson.org>
22492 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
22493 Applications that requires it should initialize libgcrypt
22496 2008-01-16 Simon Josefsson <simon@josefsson.org>
22498 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
22500 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
22502 Fix problem with getdate on mingw32 reported by Simon Josefsson
22503 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
22504 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
22505 tzname", when deciding whether to declare tzname.
22506 * lib/strftime.c (tzname): Likewise.
22508 2008-01-15 Bruno Haible <bruno@clisp.org>
22510 Work around a MacOS X 10.5 bug in frexpl().
22511 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
22512 * doc/functions/frexpl.texi: Document the bug.
22513 Reported by Elias Pipping <pipping@gentoo.org>.
22515 2008-01-14 Eric Blake <ebb9@byu.net>
22517 Touch up previous patch.
22518 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
22519 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
22521 Convert strcasestr module to use Two-Way algorithm.
22522 * modules/strcasestr-simple: New module, based on the old
22523 strcasestr, but with Two-Way rather than KMP.
22524 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
22525 * lib/string.in.h (rpl_strcasestr): Declare.
22526 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
22528 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
22529 * modules/string (Makefile.am): Support strcasestr.
22530 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
22531 * modules/strcasestr-tests (Depends-on): Check for alarm.
22532 * tests/test-strcasestr.c: Augment test.
22533 * lib/str-two-way.h: Clean up stray macro.
22534 * NEWS: Document new module.
22535 * MODULES.html.sh (string handling): Likewise.
22536 * doc/functions/strcasestr.texi: New file.
22537 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
22538 here, since it is not a POSIX function.
22540 2008-01-14 Colin Watson <cjwatson@debian.org>
22541 Bruno Haible <bruno@clisp.org>
22543 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
22544 works fine; if not, set REPLACE_STRSIGNAL.
22545 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
22546 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22548 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
22549 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
22550 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
22552 2008-01-14 Bruno Haible <bruno@clisp.org>
22554 * modules/strsignal (Include): Change to <string.h>.
22556 2008-01-14 Colin Watson <cjwatson@debian.org>
22558 * modules/argp (Notice): Add a notice recommending to change
22560 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
22562 2008-01-13 Colin Watson <cjwatson@debian.org>
22564 * modules/strsignal-tests: New file.
22565 * tests/test-strsignal.c: New file.
22567 * lib/strsignal.c: New file, from glibc with modifications.
22568 * lib/siglist.h: New file, from glibc with modifications.
22569 * lib/string.in.h (strsignal): New declaration.
22570 * m4/strsignal.m4: New file.
22571 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
22572 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
22573 * modules/strsignal: New file.
22574 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
22575 HAVE_DECL_STRSIGNAL.
22577 2008-01-13 Bruno Haible <bruno@clisp.org>
22579 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
22580 locale encoding is not ASCII. Needed for OpenBSD 4.0.
22581 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22582 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22584 2008-01-13 Bruno Haible <bruno@clisp.org>
22586 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
22587 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
22588 * lib/argp.h (__attribute__): Likewise.
22589 * lib/c-stack.c (__attribute__): Likewise.
22590 * lib/error.h (__attribute__): Likewise.
22591 * lib/fts.c (__attribute__): Likewise.
22592 * lib/openat.h (__attribute__): Likewise.
22593 * lib/stdio.in.h (__attribute__): Likewise.
22594 * lib/string.in.h (__attribute__): Likewise.
22595 * lib/utimens.c (__attribute__): Likewise.
22596 * lib/vasnprintf.h (__attribute__): Likewise.
22597 * lib/xalloc.h (__attribute__): Likewise.
22598 * lib/xprintf.h (__attribute__): Likewise.
22599 * lib/xstrtol.h (__attribute__): Likewise.
22600 * lib/xvasprintf.h (__attribute__): Likewise.
22602 2008-01-12 Bruno Haible <bruno@clisp.org>
22604 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
22605 * doc/glibc-headers/a.out.texi: New file.
22606 * doc/glibc-headers/aliases.texi: New file.
22607 * doc/glibc-headers/alloca.texi: New file.
22608 * doc/glibc-headers/ar.texi: New file.
22609 * doc/glibc-headers/argp.texi: New file.
22610 * doc/glibc-headers/argz.texi: New file.
22611 * doc/glibc-headers/byteswap.texi: New file.
22612 * doc/glibc-headers/crypt.texi: New file.
22613 * doc/glibc-headers/endian.texi: New file.
22614 * doc/glibc-headers/envz.texi: New file.
22615 * doc/glibc-headers/err.texi: New file.
22616 * doc/glibc-headers/error.texi: New file.
22617 * doc/glibc-headers/execinfo.texi: New file.
22618 * doc/glibc-headers/fpu_control.texi: New file.
22619 * doc/glibc-headers/fstab.texi: New file.
22620 * doc/glibc-headers/fts.texi: New file.
22621 * doc/glibc-headers/getopt.texi: New file.
22622 * doc/glibc-headers/ieee754.texi: New file.
22623 * doc/glibc-headers/ifaddrs.texi: New file.
22624 * doc/glibc-headers/libintl.texi: New file.
22625 * doc/glibc-headers/mcheck.texi: New file.
22626 * doc/glibc-headers/mntent.texi: New file.
22627 * doc/glibc-headers/obstack.texi: New file.
22628 * doc/glibc-headers/paths.texi: New file.
22629 * doc/glibc-headers/printf.texi: New file.
22630 * doc/glibc-headers/pty.texi: New file.
22631 * doc/glibc-headers/resolv.texi: New file.
22632 * doc/glibc-headers/shadow.texi: New file.
22633 * doc/glibc-headers/sysexits.texi: New file.
22634 * doc/glibc-headers/ttyent.texi: New file.
22636 2008-01-12 Jim Meyering <meyering@redhat.com>
22638 announce-gen: emit Gnulib's git-based version string.
22639 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
22640 New option --gnulib-version=V, where V is expected to be
22641 the output of running git describe in the gnulib directory.
22642 (get_tool_versions): Request feedback on xdelta. I suspect it's
22643 not useful, and plan to stop publishing an xdelta file with each
22646 * build-aux/announce-gen: Also check for lzma-compressed files.
22648 2008-01-11 Bruno Haible <bruno@clisp.org>
22650 * tests/test-memmem.c (main): Increase maximum allowed time.
22651 * tests/test-strstr.c (main): Likewise.
22653 2008-01-11 Bruno Haible <bruno@clisp.org>
22655 * doc/functions/memmem.texi: Add more precisions about platforms.
22656 * doc/functions/strstr.texi: Likewise.
22658 2008-01-10 Eric Blake <ebb9@byu.net>
22660 * m4/strstr.m4: Delete cruft from copy-n-paste.
22661 Reported by Bruno Haible.
22663 2008-01-10 Bruno Haible <bruno@clisp.org>
22665 Make c-strstr rely on strstr.
22666 * lib/c-strstr.c: Don't include str-kmp.h.
22667 (c_strstr): Define in terms of strstr.
22668 * modules/c-strstr (Files): Remove lib/str-kmp.h.
22669 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
22671 2008-01-10 Bruno Haible <bruno@clisp.org>
22673 * doc/gnulib.texi (String Functions in C Locale): New section.
22674 * doc/c-ctype.texi: New file.
22675 * doc/c-strcase.texi: New file.
22676 * doc/c-strcaseeq.texi: New file.
22677 * doc/c-strcasestr.texi: New file.
22678 * doc/c-strstr.texi: New file.
22679 * doc/c-strtod.texi: New file.
22680 * doc/c-strtold.texi: New file.
22682 2008-01-10 Eric Blake <ebb9@byu.net>
22684 * lib/relocatable.h: Fix a comment.
22686 2008-01-10 Eric Blake <ebb9@byu.net>
22688 Share two-way algorithm.
22689 * lib/str-two-way.h: New file, merged from...
22690 * lib/memmem.c: ...here...
22691 * lib/strstr.c: ...and here.
22692 * modules/memmem (Files): Use it.
22693 * modules/strstr (Files): Likewise.
22695 Avoid quadratic strstr implementations.
22696 * lib/strstr.c: New file.
22697 * m4/strstr.m4: Likewise.
22698 * modules/strstr: Likewise.
22699 * modules/strstr-tests: Likewise.
22700 * tests/test-strstr.c: Likewise.
22701 * lib/string.in.h (rpl_strstr): Declare.
22702 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
22703 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
22704 * modules/string (Makefile.am): Likewise.
22705 * MODULES.html.sh (string handling): Mention new module.
22706 * doc/functions/strstr.texi (strstr): Document the bug.
22708 2008-01-10 Bruno Haible <bruno@clisp.org>
22710 * lib/relocatable.h (relocate): State whether result is freshly
22712 * lib/relocatable.c (relocate): Return a freshly allocated string
22713 instead of a pointer to a privately held string.
22714 Reported by Sylvain Beucler <beuc@gnu.org>.
22716 2008-01-10 Colin Watson <cjwatson@debian.org>
22718 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
22719 s/S_ISNLK/S_ISLNK/.
22721 2008-01-09 Bruno Haible <bruno@clisp.org>
22723 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
22725 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
22726 if it's only a guess.
22727 * modules/memmem: Simplify by depending on memmem-simple.
22729 2008-01-09 Bruno Haible <bruno@clisp.org>
22731 Work around OpenBSD 4.0 tdelete() bug.
22732 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
22733 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
22734 macros and don't redefine the enum values.
22735 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
22736 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
22737 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
22739 2008-01-09 Bruno Haible <bruno@clisp.org>
22741 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
22742 (main): Don't perform the tests if setlocale did not install a UTF-8
22743 locale. Needed on OpenBSD 4.0.
22744 * modules/wcwidth-tests (Depends-on): Add localcharset.
22746 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
22748 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
22749 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
22750 * NEWS: announce this.
22751 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
22753 2008-01-09 Simon Josefsson <simon@josefsson.org>
22754 and Eric Blake <ebb9@byu.net>
22756 Add memmem-simple module.
22757 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
22758 (gl_FUNC_MEMMEM): Separate performance from presence checks.
22759 * modules/memmem-simple: New file.
22760 * modules/memmem (Description): Tweak.
22761 * MODULES.html.sh (string handling): Mention new module.
22762 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
22763 addressed by memmem-simple.
22764 * NEWS: Document the difference.
22766 2008-01-09 Eric Blake <ebb9@byu.net>
22768 Give gcc some memmem optimization hints.
22769 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
22770 (strcasestr): Declare as pure.
22771 * modules/memmem (Maintainer): Claim my implementation.
22773 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22775 Support AIX 6.1 and higher.
22776 * build-aux/config.libpath: Likewise.
22777 * build-aux/config.rpath: Likewise.
22779 2008-01-08 Jim Meyering <meyering@redhat.com>
22780 Bruno Haible <bruno@clisp.org>
22782 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
22783 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
22784 Reported by Peter Fales in
22785 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
22787 2008-01-08 Bruno Haible <bruno@clisp.org>
22789 * modules/unictype/category-of (Depends-on): Add
22790 unictype/category-none.
22791 * modules/unictype/category-and-tests (Depends-on): Add
22792 unictype/category-{L,N,Lu,Nd}.
22793 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
22794 * modules/unictype/category-or-tests (Depends-on): Add
22795 unictype/category-{L,N}.
22796 * modules/unictype/category-name-tests (Depends-on): Add
22797 unictype/category-{Z,Nl}.
22798 Reported by Simon Josefsson.
22800 2008-01-08 Bruno Haible <bruno@clisp.org>
22802 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
22804 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
22805 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
22806 Reported by Peter Miller <millerp@canb.auug.org.au>.
22808 2008-01-08 Eric Blake <ebb9@byu.net>
22810 Rewrite memmem to guarantee linear complexity without malloc.
22811 * lib/memmem.c (memmem): Use Two-Way rather than
22812 Knuth-Morris-Pratt, to allow O(1) space usage.
22813 (critical_factorization, two_way_short_needle)
22814 (two_way_long_needle): New functions.
22815 (knuth_morris_pratt): Delete.
22816 * modules/memmem (Depends-on): No longer need malloca or stdbool.
22818 * tests/test-memmem.c (main): Add tests for periodic needle and
22819 sublinear performance.
22820 * doc/functions/memmem.texi (memmem): Document other deficiencies
22821 in cygwin and older glibc.
22823 2008-01-08 Bruno Haible <bruno@clisp.org>
22825 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
22828 2008-01-08 Mike Frysinger <vapier@gentoo.org>
22830 Add a configure time option: --disable-acl.
22831 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
22832 AC_ARG_ENABLE(acl).
22834 2008-01-06 Simon Josefsson <simon@josefsson.org>
22836 * tests/test-localename.c: Don't include obsolete "setenv.h".
22838 * modules/localename-tests (Depends-on): Need unsetenv.
22840 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22842 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
22844 2008-01-06 Colin Watson <cjwatson@debian.org>
22846 * users.txt: Add man-db.
22848 2008-01-07 Bruno Haible <bruno@clisp.org>
22850 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
22851 previous section name.
22853 2008-01-07 Bruno Haible <bruno@clisp.org>
22855 * lib/progname.c (set_program_name): Don't strip off a leading
22856 "lt-" prefix outside a .libs directory.
22857 Suggested by Paul Eggert.
22859 2008-01-01 Sylvain Beucler <beuc@gnu.org>
22860 Bruno Haible <bruno@clisp.org>
22862 Improve memory cleanup in 'relocatable' module.
22863 * lib/relocatable.h (compute_curr_prefix): Change return type to
22865 * lib/relocatable.c (compute_curr_prefix): Change return type to
22866 'char *'. Free curr_installdir after use.
22867 (relocate): Free curr_prefix_better after use.
22868 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
22870 2008-01-01 Bruno Haible <bruno@clisp.org>
22872 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
22873 failure on older glibc systems.
22874 Reported by Peter Fales <psfales@alcatel-lucent.com>.
22876 2008-01-05 Eric Blake <ebb9@byu.net>
22878 Avoid quadratic system memmem.
22879 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
22880 Reported by Ralf Wildenhues.
22882 Fix memmem test for mingw.
22883 * modules/memmem-tests (configure.ac): Check for alarm.
22884 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
22886 * doc/functions/memmem.texi: New file.
22887 * doc/gnulib.texi (Function Substitutes): Add memmem.
22888 Reported by Bruno Haible.
22890 2008-01-04 Bruno Haible <bruno@clisp.org>
22892 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
22893 Require gl_HEADER_STRINGS_H_DEFAULTS, not
22894 gl_HEADER_STRING_H_DEFAULTS.
22896 2008-01-04 Eric Blake <ebb9@byu.net>
22898 Shorten duration of memmem test.
22899 * tests/test-memmem.c (main): Use alarm to declare failure if test
22900 is taking too long.
22901 Reported by Ralf Wildenhues.
22903 2007-12-21 Simon Josefsson <simon@josefsson.org>
22905 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
22906 string, needed by strerror.
22908 2008-01-03 Colin Watson <cjwatson@debian.org>
22909 Bruno Haible <bruno@clisp.org>
22911 * doc/gnulib-tool.texi (Localization): New section.
22913 2008-01-02 Bruno Haible <bruno@clisp.org>
22915 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
22916 variables to 'unsigned char *' type.
22917 Reported by Paul Eggert.
22919 2008-01-02 Jim Meyering <jim@meyering.net>
22921 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
22923 2007-12-31 Jim Meyering <jim@meyering.net>
22925 Avoid use of private FTS type name.
22926 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
22928 2007-12-30 Karl Berry <karl@gnu.org>
22930 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
22931 work around defect in Texinfo and/or the standalone Info browser.
22933 2007-12-30 Bruno Haible <bruno@clisp.org>
22935 Unify 5 copies of the KMP code.
22936 * lib/str-kmp.h: New file.
22937 * lib/c-strcasestr.c: Include str-kmp.h.
22938 (knuth_morris_pratt): Remove function.
22939 (c_strcasestr): Update.
22940 * lib/c-strstr.c: Include str-kmp.h.
22941 (knuth_morris_pratt): Remove function.
22942 (c_strcasestr): Update.
22943 * lib/mbscasestr.c: Include str-kmp.h.
22944 (knuth_morris_pratt_unibyte): Remove function.
22945 * lib/mbsstr.c: Include str-kmp.h.
22946 (knuth_morris_pratt_unibyte): Remove function.
22947 * lib/strcasestr.c: Include str-kmp.h.
22948 (knuth_morris_pratt): Remove function.
22949 (strcasestr): Update.
22950 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
22951 * modules/c-strstr (Files): Likewise.
22952 * modules/mbscasestr (Files): Likewise.
22953 * modules/mbsstr (Files): Likewise.
22954 * modules/strcasestr (Files): Likewise.
22955 Suggested by Paul Eggert.
22957 2007-12-30 Bruno Haible <bruno@clisp.org>
22959 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
22962 2007-12-30 Bruno Haible <bruno@clisp.org>
22964 * lib/xmalloca.h: Include xalloc.h.
22965 (xnmalloca): New macro.
22967 2007-12-30 Bruno Haible <bruno@clisp.org>
22969 * lib/malloca.h (nmalloca): New macro.
22970 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
22971 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
22972 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
22973 knuth_morris_pratt_multibyte): Likewise.
22974 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
22975 knuth_morris_pratt_multibyte): Likewise.
22976 * lib/memmem.c (knuth_morris_pratt): Likewise.
22977 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
22979 2007-12-25 Bruno Haible <bruno@clisp.org>
22981 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
22982 * lib/glob.c: Don't include openat.h.
22983 (link_exists2_p): Add back the code that deals with the
22984 !GLOB_ALTDIRFUNC case.
22985 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
22986 let it do the filename concatenation.
22987 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
22988 * modules/glob (Depends-on): Remove openat.
22990 2007-12-31 Bruno Haible <bruno@clisp.org>
22992 * modules/dirfd (License): Change to LGPLv2+.
22993 Approved by Jim Meyering.
22995 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
22997 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
22998 when multiplying M by sizeof (size_t).
23000 2007-12-10 Martin Lambers <marlam@marlam.de>
23002 Override getpagesize on mingw.
23003 * lib/getpagesize.c: New file.
23004 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
23005 * modules/getpagesize (Files): Add lib/getpagesize.c.
23006 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
23007 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23008 REPLACE_GETPAGESIZE.
23009 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
23011 2007-12-25 Bruno Haible <bruno@clisp.org>
23013 * modules/localcharset (Notice): New field.
23014 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
23015 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
23017 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
23018 Bruno Haible <bruno@clisp.org>
23020 Avoid using the syntax symbol() in formatted documentation.
23021 * MODULES.html.sh (func_module): When replacing symbol() with a
23022 hyperlink, remove the parentheses. Show an error if some remain.
23023 Recognize and render the '...' syntax.
23024 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
23025 Rework. Add paragraph about GCC's inlining.
23026 * doc/alloca.texi: Likewise.
23027 * doc/error.texi: Remove parentheses from symbol reference.
23028 * doc/gnulib-intro.texi: Likewise.
23029 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
23030 * modules/fnmatch (Description): Reword to say "the ... function".
23031 * modules/full-read (Description): Likewise.
23032 * modules/full-write (Description): Likewise.
23033 * modules/safe-read (Description): Likewise.
23034 * modules/safe-write (Description): Likewise.
23035 * modules/strchrnul (Description): Likewise.
23036 * modules/trim (Description): Likewise.
23037 * modules/error (Description): Remove parentheses from symbol
23039 * modules/verror (Description): Likewise.
23040 Reported by Karl Berry.
23042 2007-12-25 Bruno Haible <bruno@clisp.org>
23044 Fixup after 2007-10-16 commit.
23045 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
23047 2007-12-24 Bruno Haible <bruno@clisp.org>
23049 Make --enable-relocatable work with DESTDIR.
23050 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
23051 to compute installdir from destprog.
23052 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
23053 also set the RELOC_DESTDIR variable.
23054 Reported by Левашев Иван <octagram@bluebottle.com>.
23056 2007-12-24 Bruno Haible <bruno@clisp.org>
23058 Fix link error due to xalloc_die().
23059 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
23061 * lib/relocwrapper.c: Update comments.
23062 * build-aux/install-reloc: Remove xreadlink.c from file list.
23063 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
23065 Reported by Левашев Иван <octagram@bluebottle.com>.
23067 2007-12-24 Bruno Haible <bruno@clisp.org>
23069 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
23070 * lib/setenv.h: Remove file.
23071 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
23073 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
23074 (Depends-on): Add stdlib.
23075 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
23077 (Include): Replace setenv.h with <stdlib.h>.
23078 * modules/unsetenv: New file.
23079 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
23080 * lib/unsetenv.c: Include <stdlib.h> first.
23081 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
23082 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
23083 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
23084 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
23085 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
23086 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
23087 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
23088 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
23089 * doc/functions/unsetenv.texi: Update.
23090 * modules/xsetenv (Depends-on): Add unsetenv.
23091 * modules/getdate (Depends-on): Likewise.
23092 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
23093 * lib/xsetenv.c: Don't include setenv.h.
23094 * lib/getdate.y: Likewise.
23095 * lib/relocwrapper.c: Likewise.
23096 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
23097 (Depends-on): Add stdlib.
23098 * NEWS: Mention the changes.
23099 Reported by Левашев Иван <octagram@bluebottle.com>.
23101 2007-12-23 Bruno Haible <bruno@clisp.org>
23103 * lib/memmem.c (memmem): Use lowercase variable names. Tab
23106 2007-12-23 Bruno Haible <bruno@clisp.org>
23108 * lib/c-strcasestr.c: Add more comments.
23109 * lib/c-strstr.c: Likewise.
23110 * lib/mbscasestr.c: Likewise.
23111 * lib/mbsstr.c: Likewise.
23112 * lib/strcasestr.c: Likewise.
23113 * lib/memmem.c: Likewise.
23115 2007-12-23 Bruno Haible <bruno@clisp.org>
23117 * tests/test-memmem.c: Include <string.h> first.
23119 2007-12-22 Bruno Haible <bruno@clisp.org>
23121 * gnulib-tool (func_create_testdir): Change $auxdir while generating
23122 the contents of $testsbase.
23123 Reported by Ralf Wildenhues.
23125 2007-12-22 Bruno Haible <bruno@clisp.org>
23127 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
23128 two variables local_ldadd_before, local_ldadd_last.
23130 2007-12-20 Eric Blake <ebb9@byu.net>
23132 Work around circular library issue when cross-compiling.
23133 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
23134 that progname.o does not need to pull in rpl_memcmp.
23136 2007-12-19 Eric Blake <ebb9@byu.net>
23138 Fix memmem to avoid O(n^2) worst-case complexity.
23139 * lib/memmem.c (knuth_morris_pratt): New function.
23140 (memmem): Use it if first few naive iterations fail.
23141 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
23142 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
23143 * modules/memchr (License): Likewise.
23144 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
23146 * tests/test-memmem.c: Rewrite, borrowing ideas from
23147 test-mbsstr1.c; the old version wouldn't even compile!
23148 * modules/memmem-tests: New file.
23149 * lib/string.in.h (rpl_memmem): Add declaration.
23150 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
23151 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
23154 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
23156 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
23157 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
23158 before any system include files, and undef after them all. This
23159 should fix a problem on VMS reported by John E. Malmberg in
23160 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
23162 2007-12-17 Eric Blake <ebb9@byu.net>
23164 Revert addition of verify, for BSD/OS.
23165 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
23166 can't handle large files, for the sake of obsolete platforms.
23167 * modules/fseeko (Depends-on): Remove verify.
23168 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
23169 * doc/functions/ftello.texi (ftello): Likewise.
23170 * doc/functions/fgetpos.texi (fgetpos): Likewise.
23171 Reported by Larry Jones.
23173 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
23175 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
23176 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
23178 2007-12-17 Jim Meyering <meyering@redhat.com>
23180 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
23181 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
23182 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
23183 * modules/getcwd (Depends-on): Add openat.
23184 Reported by Petr Salinger.
23186 2007-12-17 Bruno Haible <bruno@clisp.org>
23188 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
23189 avoid a segmentation fault of the configure test on x86_64 systems.
23191 2007-12-15 Jim Meyering <meyering@redhat.com>
23193 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
23195 2007-12-13 Eric Blake <ebb9@byu.net>
23197 Another fseek test.
23198 * tests/test-fseek.c (main): Also test ungetc handling.
23199 * tests/test-fseeko.c (main): Likewise.
23200 * modules/fseeko (Depends-on): Add verify.
23201 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
23203 Reported by Larry Jones.
23205 Fix fseeko on mingw.
23206 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
23209 Beef up fseek tests.
23210 * tests/test-fseek.c (main): Also test eof handling.
23211 * tests/test-fseeko.c (main): Likewise.
23212 Reported by Larry Jones.
23214 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
23216 Fix fseeko on BSD-based platforms.
23217 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
23220 2007-12-12 Eric Blake <ebb9@byu.net>
23222 Allow circular dependency of separate libtests.a
23223 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
23226 2007-12-11 Eric Blake <ebb9@byu.net>
23228 Fix bug with -0.0L in previous patch.
23229 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
23230 * tests/test-isnan.c (main): Also test on zeroes.
23231 * tests/test-isnanf.c (main): Likewise.
23232 * tests/test-isnanl.h (main): Likewise.
23234 Detect pseudo-denormals on x86 even when cross-compiling.
23235 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
23236 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
23237 invalid bit patterns that happen to satisfy ==.
23239 Avoid link failures with separate libtests.a.
23240 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
23241 last, to satisfy circular dependencies.
23243 2007-12-11 Eric Blake <ebb9@byu.net>
23244 and Bruno Haible <bruno@clisp.org>
23246 Fix OpenBSD 4.0 <float.h> handling of long double.
23247 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
23248 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
23249 * doc/headers/float.texi (float.h): Document OpenBSD bug.
23251 2007-12-11 Jim Meyering <meyering@redhat.com>
23253 * users.txt: Add libvirt.
23255 Support versions of autoconf prior to 2.59c.
23256 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
23257 if it is not already defined.
23259 2007-12-09 Bruno Haible <bruno@clisp.org>
23261 Let 'gnulib-tool --import' collect sources needed for the tests in
23262 tests/ rather than in lib/.
23263 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
23264 argument. If true, add rules to generate libtests.a, and put libtests.a
23265 into $(LDADD). Consider source files in subdirectories and set
23267 (func_emit_initmacro_start, func_emit_initmacro_end,
23268 func_emit_initmacro_done): Pass all arguments explicitly.
23269 (func_import): Determine two module lists main_modules,
23270 testsrelated_modules. Determine use_libtests. Determine two variables
23271 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
23272 instead of just sed_transform_lib_file. Determine two variables
23273 main_files and testsrelated_files. Compute 'files' as the union of
23274 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
23275 func_add_or_update. In the generated gnulib-comp.m4, collect the
23276 object files for tests/ in different variables than those for lib/.
23277 Substitute LIBTESTS_LIBDEPS.
23278 (func_create_testdir): Combine the uses_subdirs results from
23279 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
23281 2007-12-09 Bruno Haible <bruno@clisp.org>
23283 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
23284 the build-aux directory.
23286 2007-12-09 Bruno Haible <bruno@clisp.org>
23288 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
23289 introduced on 2006-09-09.
23291 2007-12-07 Jim Meyering <meyering@redhat.com>
23293 Let these macros work also with autoconf-2.59.
23294 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
23295 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
23296 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23298 2007-12-06 Jim Meyering <meyering@redhat.com>
23300 Avoid a configure-time syntax error in gl_FUNC_ACL.
23301 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
23302 function in each branch, before testing the cache variable.
23304 2007-12-04 Eric Blake <ebb9@byu.net>
23306 Make scripts executable.
23307 * build-aux/config.guess: Add execute permissions.
23308 * build-aux/config.sub: Likewise.
23309 * build-aux/gendocs.sh: Likewise.
23311 Fix frexp on mingw.
23312 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
23314 * doc/functions/frexp.texi (frexp): Document the bug.
23316 Make cygwin fseeko check more reliable.
23317 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
23318 version numbers, rather than unrelated feature check.
23319 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
23320 * doc/functions/ftello.texi (ftello): Likewise.
23321 Reported by Bruno Haible.
23323 * m4/strerror.m4: Bump version number.
23325 2007-12-03 Bruno Haible <bruno@clisp.org>
23327 * doc/functions/mprotect.texi: Mention the mingw problem.
23329 2007-12-03 Eric Blake <ebb9@byu.net>
23331 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
23332 REPLACE_STRERROR is initialized before this macro.
23334 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
23336 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
23337 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
23338 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
23339 put -lsec in even for programs other than 'ls'. This fixes a problem
23340 for gettext reported by Bruno Haible in
23341 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
23342 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
23343 Add support for Solaris 10. This isn't efficient, but should get the
23346 2007-12-03 James Youngman <jay@gnu.org>
23348 * doc/regexprops-generic.texi: change "an close-group" to "a
23349 close-group" and "illegal" to "not allowed".
23351 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23353 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
23354 pr_byname.h. Needed for the rare case when the maintainer has done
23355 "make maintainer-clean" in the source directory and then attempts a
23356 build outside the source directory.
23357 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
23360 2007-12-02 Martin Lambers <marlam@marlam.de>
23361 Bruno Haible <bruno@clisp.org>
23363 * lib/getpagesize.h: Remove file.
23364 * lib/unistd.in.h: Include declaration of getpagesize here.
23365 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
23366 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
23368 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
23369 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
23370 * modules/getpagesize (Files): Remove lib/getpagesize.h.
23371 (Depends-on): Add unistd.
23372 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
23373 (Include): Use <unistd.h> instead of getpagesize.h.
23374 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
23375 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
23376 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
23377 gl_GETPAGESIZE invocation, already handled by module dependency.
23378 * lib/pagealign_alloc.c: Don't include getpagesize.h.
23380 2007-12-02 Bruno Haible <bruno@clisp.org>
23382 * modules/strings-tests: New file.
23383 * tests/test-strings.c: New file.
23385 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
23386 * lib/strings.in.h: New file.
23387 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
23388 * m4/strings_h.m4: New file.
23389 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
23390 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
23391 * modules/strings: New file.
23392 * modules/string (Makefile.am): Update.
23393 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
23394 Reported by Karl Berry.
23396 2007-12-01 Eric Blake <ebb9@byu.net>
23398 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
23399 accomodate fix in cygwin 1.5.25.
23401 2007-12-01 Jim Meyering <meyering@redhat.com>
23403 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
23404 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
23405 that would inhibit utf8-optimization of a regexp containing line-
23406 or buffer-anchors, e.g., `^', `$'.
23408 2007-11-30 Bruno Haible <bruno@clisp.org>
23410 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
23411 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
23412 glthread_recursive_lock_init.
23413 * lib/lock.c (glthread_recursive_lock_init)
23414 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
23415 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
23417 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
23419 New function qset_acl, like set_acl but with syscall semantics.
23420 * lib/acl.h (qset_acl): New decl.
23421 * lib/acl.c (qset_acl): New function.
23422 (set_acl): Use new function. Use more-consistent diagnostics.
23424 2007-11-28 Jim Meyering <meyering@redhat.com>
23426 * modules/physmem (License): Change from GPL to LGPLv2+.
23428 2007-11-26 Bruno Haible <bruno@clisp.org>
23430 * lib/vasnprintf.c (decode_long_double): Don't abort if the
23431 'long double' type has excess precision.
23432 Reported by Jim Meyering in
23433 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
23435 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23437 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
23438 Sync from <http://gnu.org/licenses>.
23439 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
23440 with license text from same location.
23441 * doc/maintain.texi, doc/standards.texi: Sync from
23442 <http://savannah.gnu.org/projects/gnustandards>.
23444 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
23445 and Jim Meyering <meyering@redhat.com>
23447 Adjust getdate' grammar to accept a slightly more regular language.
23448 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
23449 Before, the former was rejected.
23450 * lib/getdate.y (digits_to_date_time): New function, factored
23452 (number): ...here. Just call digits_to_date_time.
23453 (hybrid): New non-terminal to handle an <unsigned number,
23454 signed relative offset> sequence consistently.
23456 2007-11-18 Jim Meyering <meyering@redhat.com>
23458 Pull my changes from coreutils:
23459 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
23460 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
23461 use of $gnulib_tool_option_extras, so that it's separated from the
23462 preceding argument.
23464 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
23465 * build-aux/bootstrap (cp_mark_as_generated): Create any required
23466 parent destination directories before copying a file into place.
23468 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
23470 bootstrap: work also with 4-argument variant of AC_INIT
23471 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
23473 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
23475 Port test-getaddrinfo to Solaris.
23476 Problem reported by Bruno Haible in
23477 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
23478 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
23479 explanation of setting 'hints'.
23480 Don't reject an implementation merely because it returns EAI_SERVICE.
23481 (EAI_SERVICE): Define to 0 if not defined.
23483 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
23485 The license of gnu-make and posix-shell is now "GPLed build tool".
23486 * modules/gnu-make (License): Likewise.
23487 * modules/posix-shell (License): Likewise.
23489 New module posix-shell, for determining a POSIX shell
23490 or perhaps something that is close enough to a POSIX shell.
23491 * m4/posix-shell.m4: New file.
23492 * modules/posix-shell: New file.
23494 * MODULES.html.sh: Mention new module.
23496 New module gnu-make, for determining whether we're using GNU Make.
23497 * m4/gnu-make.m4: New file.
23498 * modules/gnu-make: New file.
23499 * MODULES.html.sh: Mention new module.
23501 2007-11-14 Jim Meyering <meyering@redhat.com>
23503 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
23504 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
23505 use this macro to create a function _definition_.
23506 Remove useless "#undef ARGMATCH_DIE".
23508 2007-11-14 Bruno Haible <bruno@clisp.org>
23510 * lib/config.charset: Update for OpenBSD 4.1.
23511 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
23513 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
23515 Document 64-bit #if problems in stdint.texi.
23516 * doc/headers/stdint.texi (stdint.h): Mention problems with
23517 64-bit-#if, and how to work around them.
23519 Don't insist on 'long long int' support in the preprocessor. It
23520 breaks too many things. For example, PRIdMAX still uses a 'long
23521 long int' format with the latest Sun compiler, even though
23522 HAVE_LONG_LONG_INT isn't defined due to that compiler's
23523 preprocessor problem. This causes the latest coreutils to dump
23524 core on Solaris 10 sparc with the Sun C compiler.
23525 Instead, fix the 2007-10-16 problem in a different way, by evaluating
23526 the troublesome expressions at configure-time, not at #if-time.
23527 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
23529 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
23530 compile-time C checks, done at 'configure'-time.
23531 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
23532 * modules/inttypes (Makefile): Substitute the new symbols that
23533 gl_INTTYPES_H now generates.
23534 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
23536 2007-11-12 Bruno Haible <bruno@clisp.org>
23538 Tests for Unicode character classification functions.
23540 * modules/unictype/bidicategory-byname-tests: New file.
23541 * modules/unictype/bidicategory-name-tests: New file.
23542 * modules/unictype/bidicategory-of-tests: New file.
23543 * modules/unictype/bidicategory-test-tests: New file.
23544 * modules/unictype/block-list-tests: New file.
23545 * modules/unictype/block-of-tests: New file.
23546 * modules/unictype/block-test-tests: New file.
23547 * modules/unictype/category-C-tests: New file.
23548 * modules/unictype/category-Cc-tests: New file.
23549 * modules/unictype/category-Cf-tests: New file.
23550 * modules/unictype/category-Cn-tests: New file.
23551 * modules/unictype/category-Co-tests: New file.
23552 * modules/unictype/category-Cs-tests: New file.
23553 * modules/unictype/category-L-tests: New file.
23554 * modules/unictype/category-Ll-tests: New file.
23555 * modules/unictype/category-Lm-tests: New file.
23556 * modules/unictype/category-Lo-tests: New file.
23557 * modules/unictype/category-Lt-tests: New file.
23558 * modules/unictype/category-Lu-tests: New file.
23559 * modules/unictype/category-M-tests: New file.
23560 * modules/unictype/category-Mc-tests: New file.
23561 * modules/unictype/category-Me-tests: New file.
23562 * modules/unictype/category-Mn-tests: New file.
23563 * modules/unictype/category-N-tests: New file.
23564 * modules/unictype/category-Nd-tests: New file.
23565 * modules/unictype/category-Nl-tests: New file.
23566 * modules/unictype/category-No-tests: New file.
23567 * modules/unictype/category-P-tests: New file.
23568 * modules/unictype/category-Pc-tests: New file.
23569 * modules/unictype/category-Pd-tests: New file.
23570 * modules/unictype/category-Pe-tests: New file.
23571 * modules/unictype/category-Pf-tests: New file.
23572 * modules/unictype/category-Pi-tests: New file.
23573 * modules/unictype/category-Po-tests: New file.
23574 * modules/unictype/category-Ps-tests: New file.
23575 * modules/unictype/category-S-tests: New file.
23576 * modules/unictype/category-Sc-tests: New file.
23577 * modules/unictype/category-Sk-tests: New file.
23578 * modules/unictype/category-Sm-tests: New file.
23579 * modules/unictype/category-So-tests: New file.
23580 * modules/unictype/category-Z-tests: New file.
23581 * modules/unictype/category-Zl-tests: New file.
23582 * modules/unictype/category-Zp-tests: New file.
23583 * modules/unictype/category-Zs-tests: New file.
23584 * modules/unictype/category-and-not-tests: New file.
23585 * modules/unictype/category-and-tests: New file.
23586 * modules/unictype/category-byname-tests: New file.
23587 * modules/unictype/category-name-tests: New file.
23588 * modules/unictype/category-none-tests: New file.
23589 * modules/unictype/category-of-tests: New file.
23590 * modules/unictype/category-or-tests: New file.
23591 * modules/unictype/category-test-withtable-tests: New file.
23592 * modules/unictype/combining-class-tests: New file.
23593 * modules/unictype/ctype-alnum-tests: New file.
23594 * modules/unictype/ctype-alpha-tests: New file.
23595 * modules/unictype/ctype-blank-tests: New file.
23596 * modules/unictype/ctype-cntrl-tests: New file.
23597 * modules/unictype/ctype-digit-tests: New file.
23598 * modules/unictype/ctype-graph-tests: New file.
23599 * modules/unictype/ctype-lower-tests: New file.
23600 * modules/unictype/ctype-print-tests: New file.
23601 * modules/unictype/ctype-punct-tests: New file.
23602 * modules/unictype/ctype-space-tests: New file.
23603 * modules/unictype/ctype-upper-tests: New file.
23604 * modules/unictype/ctype-xdigit-tests: New file.
23605 * modules/unictype/decimal-digit-tests: New file.
23606 * modules/unictype/digit-tests: New file.
23607 * modules/unictype/mirror-tests: New file.
23608 * modules/unictype/numeric-tests: New file.
23609 * modules/unictype/property-alphabetic-tests: New file.
23610 * modules/unictype/property-ascii-hex-digit-tests: New file.
23611 * modules/unictype/property-bidi-arabic-digit-tests: New file.
23612 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
23613 * modules/unictype/property-bidi-block-separator-tests: New file.
23614 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
23615 * modules/unictype/property-bidi-common-separator-tests: New file.
23616 * modules/unictype/property-bidi-control-tests: New file.
23617 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
23618 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
23619 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
23620 * modules/unictype/property-bidi-european-digit-tests: New file.
23621 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
23622 * modules/unictype/property-bidi-left-to-right-tests: New file.
23623 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
23624 * modules/unictype/property-bidi-other-neutral-tests: New file.
23625 * modules/unictype/property-bidi-pdf-tests: New file.
23626 * modules/unictype/property-bidi-segment-separator-tests: New file.
23627 * modules/unictype/property-bidi-whitespace-tests: New file.
23628 * modules/unictype/property-byname-tests: New file.
23629 * modules/unictype/property-combining-tests: New file.
23630 * modules/unictype/property-composite-tests: New file.
23631 * modules/unictype/property-currency-symbol-tests: New file.
23632 * modules/unictype/property-dash-tests: New file.
23633 * modules/unictype/property-decimal-digit-tests: New file.
23634 * modules/unictype/property-default-ignorable-code-point-tests: New file.
23635 * modules/unictype/property-deprecated-tests: New file.
23636 * modules/unictype/property-diacritic-tests: New file.
23637 * modules/unictype/property-extender-tests: New file.
23638 * modules/unictype/property-format-control-tests: New file.
23639 * modules/unictype/property-grapheme-base-tests: New file.
23640 * modules/unictype/property-grapheme-extend-tests: New file.
23641 * modules/unictype/property-grapheme-link-tests: New file.
23642 * modules/unictype/property-hex-digit-tests: New file.
23643 * modules/unictype/property-hyphen-tests: New file.
23644 * modules/unictype/property-id-continue-tests: New file.
23645 * modules/unictype/property-id-start-tests: New file.
23646 * modules/unictype/property-ideographic-tests: New file.
23647 * modules/unictype/property-ids-binary-operator-tests: New file.
23648 * modules/unictype/property-ids-trinary-operator-tests: New file.
23649 * modules/unictype/property-ignorable-control-tests: New file.
23650 * modules/unictype/property-iso-control-tests: New file.
23651 * modules/unictype/property-join-control-tests: New file.
23652 * modules/unictype/property-left-of-pair-tests: New file.
23653 * modules/unictype/property-line-separator-tests: New file.
23654 * modules/unictype/property-logical-order-exception-tests: New file.
23655 * modules/unictype/property-lowercase-tests: New file.
23656 * modules/unictype/property-math-tests: New file.
23657 * modules/unictype/property-non-break-tests: New file.
23658 * modules/unictype/property-not-a-character-tests: New file.
23659 * modules/unictype/property-numeric-tests: New file.
23660 * modules/unictype/property-other-alphabetic-tests: New file.
23661 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
23662 * modules/unictype/property-other-grapheme-extend-tests: New file.
23663 * modules/unictype/property-other-id-continue-tests: New file.
23664 * modules/unictype/property-other-id-start-tests: New file.
23665 * modules/unictype/property-other-lowercase-tests: New file.
23666 * modules/unictype/property-other-math-tests: New file.
23667 * modules/unictype/property-other-uppercase-tests: New file.
23668 * modules/unictype/property-paired-punctuation-tests: New file.
23669 * modules/unictype/property-paragraph-separator-tests: New file.
23670 * modules/unictype/property-pattern-syntax-tests: New file.
23671 * modules/unictype/property-pattern-white-space-tests: New file.
23672 * modules/unictype/property-private-use-tests: New file.
23673 * modules/unictype/property-punctuation-tests: New file.
23674 * modules/unictype/property-quotation-mark-tests: New file.
23675 * modules/unictype/property-radical-tests: New file.
23676 * modules/unictype/property-sentence-terminal-tests: New file.
23677 * modules/unictype/property-soft-dotted-tests: New file.
23678 * modules/unictype/property-space-tests: New file.
23679 * modules/unictype/property-terminal-punctuation-tests: New file.
23680 * modules/unictype/property-test-tests: New file.
23681 * modules/unictype/property-titlecase-tests: New file.
23682 * modules/unictype/property-unassigned-code-value-tests: New file.
23683 * modules/unictype/property-unified-ideograph-tests: New file.
23684 * modules/unictype/property-uppercase-tests: New file.
23685 * modules/unictype/property-variation-selector-tests: New file.
23686 * modules/unictype/property-white-space-tests: New file.
23687 * modules/unictype/property-xid-continue-tests: New file.
23688 * modules/unictype/property-xid-start-tests: New file.
23689 * modules/unictype/property-zero-width-tests: New file.
23690 * modules/unictype/scripts-tests: New file.
23691 * modules/unictype/syntax-c-ident-tests: New file.
23692 * modules/unictype/syntax-c-whitespace-tests: New file.
23693 * modules/unictype/syntax-java-ident-tests: New file.
23694 * modules/unictype/syntax-java-whitespace-tests: New file.
23695 * tests/unictype/test-bidi_byname.c: New file.
23696 * tests/unictype/test-bidi_name.c: New file.
23697 * tests/unictype/test-bidi_of.c: New file.
23698 * tests/unictype/test-bidi_test.c: New file.
23699 * tests/unictype/test-block_list.c: New file.
23700 * tests/unictype/test-block_of.c: New file.
23701 * tests/unictype/test-block_test.c: New file.
23702 * tests/unictype/test-categ_and.c: New file.
23703 * tests/unictype/test-categ_and_not.c: New file.
23704 * tests/unictype/test-categ_byname.c: New file.
23705 * tests/unictype/test-categ_name.c: New file.
23706 * tests/unictype/test-categ_none.c: New file.
23707 * tests/unictype/test-categ_of.c: New file.
23708 * tests/unictype/test-categ_or.c: New file.
23709 * tests/unictype/test-categ_test_withtable.c: New file.
23710 * tests/unictype/test-combining.c: New file.
23711 * tests/unictype/test-decdigit.c: New file.
23712 * tests/unictype/test-digit.c: New file.
23713 * tests/unictype/test-mirror.c: New file.
23714 * tests/unictype/test-numeric.c: New file.
23715 * tests/unictype/test-pr_byname.c: New file.
23716 * tests/unictype/test-pr_test.c: New file.
23717 * tests/unictype/test-predicate-part1.h: New file.
23718 * tests/unictype/test-predicate-part2.h: New file.
23719 * tests/unictype/test-scripts.c: New file.
23720 * tests/unictype/test-sy_c_ident.c: New file.
23721 * tests/unictype/test-sy_java_ident.c: New file.
23723 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
23725 * tests/unictype/test-categ_Cc.c: Likewise.
23726 * tests/unictype/test-categ_Cf.c: Likewise.
23727 * tests/unictype/test-categ_Cn.c: Likewise.
23728 * tests/unictype/test-categ_Co.c: Likewise.
23729 * tests/unictype/test-categ_Cs.c: Likewise.
23730 * tests/unictype/test-categ_L.c: Likewise.
23731 * tests/unictype/test-categ_Ll.c: Likewise.
23732 * tests/unictype/test-categ_Lm.c: Likewise.
23733 * tests/unictype/test-categ_Lo.c: Likewise.
23734 * tests/unictype/test-categ_Lt.c: Likewise.
23735 * tests/unictype/test-categ_Lu.c: Likewise.
23736 * tests/unictype/test-categ_M.c: Likewise.
23737 * tests/unictype/test-categ_Mc.c: Likewise.
23738 * tests/unictype/test-categ_Me.c: Likewise.
23739 * tests/unictype/test-categ_Mn.c: Likewise.
23740 * tests/unictype/test-categ_N.c: Likewise.
23741 * tests/unictype/test-categ_Nd.c: Likewise.
23742 * tests/unictype/test-categ_Nl.c: Likewise.
23743 * tests/unictype/test-categ_No.c: Likewise.
23744 * tests/unictype/test-categ_P.c: Likewise.
23745 * tests/unictype/test-categ_Pc.c: Likewise.
23746 * tests/unictype/test-categ_Pd.c: Likewise.
23747 * tests/unictype/test-categ_Pe.c: Likewise.
23748 * tests/unictype/test-categ_Pf.c: Likewise.
23749 * tests/unictype/test-categ_Pi.c: Likewise.
23750 * tests/unictype/test-categ_Po.c: Likewise.
23751 * tests/unictype/test-categ_Ps.c: Likewise.
23752 * tests/unictype/test-categ_S.c: Likewise.
23753 * tests/unictype/test-categ_Sc.c: Likewise.
23754 * tests/unictype/test-categ_Sk.c: Likewise.
23755 * tests/unictype/test-categ_Sm.c: Likewise.
23756 * tests/unictype/test-categ_So.c: Likewise.
23757 * tests/unictype/test-categ_Z.c: Likewise.
23758 * tests/unictype/test-categ_Zl.c: Likewise.
23759 * tests/unictype/test-categ_Zp.c: Likewise.
23760 * tests/unictype/test-categ_Zs.c: Likewise.
23761 * tests/unictype/test-ctype_alnum.c: Likewise.
23762 * tests/unictype/test-ctype_alpha.c: Likewise.
23763 * tests/unictype/test-ctype_blank.c: Likewise.
23764 * tests/unictype/test-ctype_cntrl.c: Likewise.
23765 * tests/unictype/test-ctype_digit.c: Likewise.
23766 * tests/unictype/test-ctype_graph.c: Likewise.
23767 * tests/unictype/test-ctype_lower.c: Likewise.
23768 * tests/unictype/test-ctype_print.c: Likewise.
23769 * tests/unictype/test-ctype_punct.c: Likewise.
23770 * tests/unictype/test-ctype_space.c: Likewise.
23771 * tests/unictype/test-ctype_upper.c: Likewise.
23772 * tests/unictype/test-ctype_xdigit.c: Likewise.
23773 * tests/unictype/test-decdigit.h: Likewise.
23774 * tests/unictype/test-digit.h: Likewise.
23775 * tests/unictype/test-numeric.h: Likewise.
23776 * tests/unictype/test-pr_alphabetic.c: Likewise.
23777 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
23778 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23779 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23780 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
23781 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23782 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
23783 * tests/unictype/test-pr_bidi_control.c: Likewise.
23784 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
23785 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
23786 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23787 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23788 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23789 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23790 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23791 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23792 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
23793 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
23794 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
23795 * tests/unictype/test-pr_combining.c: Likewise.
23796 * tests/unictype/test-pr_composite.c: Likewise.
23797 * tests/unictype/test-pr_currency_symbol.c: Likewise.
23798 * tests/unictype/test-pr_dash.c: Likewise.
23799 * tests/unictype/test-pr_decimal_digit.c: Likewise.
23800 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
23801 * tests/unictype/test-pr_deprecated.c: Likewise.
23802 * tests/unictype/test-pr_diacritic.c: Likewise.
23803 * tests/unictype/test-pr_extender.c: Likewise.
23804 * tests/unictype/test-pr_format_control.c: Likewise.
23805 * tests/unictype/test-pr_grapheme_base.c: Likewise.
23806 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23807 * tests/unictype/test-pr_grapheme_link.c: Likewise.
23808 * tests/unictype/test-pr_hex_digit.c: Likewise.
23809 * tests/unictype/test-pr_hyphen.c: Likewise.
23810 * tests/unictype/test-pr_id_continue.c: Likewise.
23811 * tests/unictype/test-pr_id_start.c: Likewise.
23812 * tests/unictype/test-pr_ideographic.c: Likewise.
23813 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
23814 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
23815 * tests/unictype/test-pr_ignorable_control.c: Likewise.
23816 * tests/unictype/test-pr_iso_control.c: Likewise.
23817 * tests/unictype/test-pr_join_control.c: Likewise.
23818 * tests/unictype/test-pr_left_of_pair.c: Likewise.
23819 * tests/unictype/test-pr_line_separator.c: Likewise.
23820 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23821 * tests/unictype/test-pr_lowercase.c: Likewise.
23822 * tests/unictype/test-pr_math.c: Likewise.
23823 * tests/unictype/test-pr_non_break.c: Likewise.
23824 * tests/unictype/test-pr_not_a_character.c: Likewise.
23825 * tests/unictype/test-pr_numeric.c: Likewise.
23826 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23827 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
23828 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
23829 * tests/unictype/test-pr_other_id_continue.c: Likewise.
23830 * tests/unictype/test-pr_other_id_start.c: Likewise.
23831 * tests/unictype/test-pr_other_lowercase.c: Likewise.
23832 * tests/unictype/test-pr_other_math.c: Likewise.
23833 * tests/unictype/test-pr_other_uppercase.c: Likewise.
23834 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
23835 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
23836 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
23837 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
23838 * tests/unictype/test-pr_private_use.c: Likewise.
23839 * tests/unictype/test-pr_punctuation.c: Likewise.
23840 * tests/unictype/test-pr_quotation_mark.c: Likewise.
23841 * tests/unictype/test-pr_radical.c: Likewise.
23842 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23843 * tests/unictype/test-pr_soft_dotted.c: Likewise.
23844 * tests/unictype/test-pr_space.c: Likewise.
23845 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23846 * tests/unictype/test-pr_titlecase.c: Likewise.
23847 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23848 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23849 * tests/unictype/test-pr_uppercase.c: Likewise.
23850 * tests/unictype/test-pr_variation_selector.c: Likewise.
23851 * tests/unictype/test-pr_white_space.c: Likewise.
23852 * tests/unictype/test-pr_xid_continue.c: Likewise.
23853 * tests/unictype/test-pr_xid_start.c: Likewise.
23854 * tests/unictype/test-pr_zero_width.c: Likewise.
23855 * tests/unictype/test-sy_c_whitespace.c: Likewise.
23856 * tests/unictype/test-sy_java_whitespace.c: Likewise.
23858 2007-11-12 Bruno Haible <bruno@clisp.org>
23860 Unicode character classification functions.
23861 * lib/unictype.h: New file.
23862 * modules/unictype/base: New file.
23863 * modules/unictype/category-L: New file.
23864 * modules/unictype/category-Lu: New file.
23865 * modules/unictype/category-Ll: New file.
23866 * modules/unictype/category-Lt: New file.
23867 * modules/unictype/category-Lm: New file.
23868 * modules/unictype/category-Lo: New file.
23869 * modules/unictype/category-M: New file.
23870 * modules/unictype/category-Mn: New file.
23871 * modules/unictype/category-Mc: New file.
23872 * modules/unictype/category-Me: New file.
23873 * modules/unictype/category-N: New file.
23874 * modules/unictype/category-Nd: New file.
23875 * modules/unictype/category-Nl: New file.
23876 * modules/unictype/category-No: New file.
23877 * modules/unictype/category-P: New file.
23878 * modules/unictype/category-Pc: New file.
23879 * modules/unictype/category-Pd: New file.
23880 * modules/unictype/category-Ps: New file.
23881 * modules/unictype/category-Pe: New file.
23882 * modules/unictype/category-Pi: New file.
23883 * modules/unictype/category-Pf: New file.
23884 * modules/unictype/category-Po: New file.
23885 * modules/unictype/category-S: New file.
23886 * modules/unictype/category-Sm: New file.
23887 * modules/unictype/category-Sc: New file.
23888 * modules/unictype/category-Sk: New file.
23889 * modules/unictype/category-So: New file.
23890 * modules/unictype/category-Z: New file.
23891 * modules/unictype/category-Zs: New file.
23892 * modules/unictype/category-Zl: New file.
23893 * modules/unictype/category-Zp: New file.
23894 * modules/unictype/category-C: New file.
23895 * modules/unictype/category-Cc: New file.
23896 * modules/unictype/category-Cf: New file.
23897 * modules/unictype/category-Cs: New file.
23898 * modules/unictype/category-Co: New file.
23899 * modules/unictype/category-Cn: New file.
23900 * modules/unictype/category-or: New file.
23901 * modules/unictype/category-of: New file.
23902 * modules/unictype/category-test: New file.
23903 * modules/unictype/category-test-withtable: New file.
23904 * modules/unictype/category-byname: New file.
23905 * modules/unictype/category-none: New file.
23906 * modules/unictype/category-and: New file.
23907 * modules/unictype/category-and-not: New file.
23908 * modules/unictype/category-name: New file.
23909 * modules/unictype/combining-class: New file.
23910 * modules/unictype/category-all: New file.
23911 * modules/unictype/bidicategory-all: New file.
23912 * modules/unictype/bidicategory-byname: New file.
23913 * modules/unictype/bidicategory-name: New file.
23914 * modules/unictype/bidicategory-of: New file.
23915 * modules/unictype/bidicategory-test: New file.
23916 * modules/unictype/decimal-digit: New file.
23917 * modules/unictype/digit: New file.
23918 * modules/unictype/numeric: New file.
23919 * modules/unictype/mirror: New file.
23920 * modules/unictype/property-white-space: New file.
23921 * modules/unictype/property-alphabetic: New file.
23922 * modules/unictype/property-other-alphabetic: New file.
23923 * modules/unictype/property-not-a-character: New file.
23924 * modules/unictype/property-default-ignorable-code-point: New file.
23925 * modules/unictype/property-other-default-ignorable-code-point: New
23927 * modules/unictype/property-deprecated: New file.
23928 * modules/unictype/property-logical-order-exception: New file.
23929 * modules/unictype/property-variation-selector: New file.
23930 * modules/unictype/property-private-use: New file.
23931 * modules/unictype/property-unassigned-code-value: New file.
23932 * modules/unictype/property-uppercase: New file.
23933 * modules/unictype/property-other-uppercase: New file.
23934 * modules/unictype/property-lowercase: New file.
23935 * modules/unictype/property-other-lowercase: New file.
23936 * modules/unictype/property-titlecase: New file.
23937 * modules/unictype/property-soft-dotted: New file.
23938 * modules/unictype/property-id-start: New file.
23939 * modules/unictype/property-other-id-start: New file.
23940 * modules/unictype/property-id-continue: New file.
23941 * modules/unictype/property-other-id-continue: New file.
23942 * modules/unictype/property-xid-start: New file.
23943 * modules/unictype/property-xid-continue: New file.
23944 * modules/unictype/property-pattern-white-space: New file.
23945 * modules/unictype/property-pattern-syntax: New file.
23946 * modules/unictype/property-join-control: New file.
23947 * modules/unictype/property-grapheme-base: New file.
23948 * modules/unictype/property-grapheme-extend: New file.
23949 * modules/unictype/property-other-grapheme-extend: New file.
23950 * modules/unictype/property-grapheme-link: New file.
23951 * modules/unictype/property-bidi-control: New file.
23952 * modules/unictype/property-bidi-left-to-right: New file.
23953 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
23954 * modules/unictype/property-bidi-arabic-right-to-left: New file.
23955 * modules/unictype/property-bidi-european-digit: New file.
23956 * modules/unictype/property-bidi-eur-num-separator: New file.
23957 * modules/unictype/property-bidi-eur-num-terminator: New file.
23958 * modules/unictype/property-bidi-arabic-digit: New file.
23959 * modules/unictype/property-bidi-common-separator: New file.
23960 * modules/unictype/property-bidi-block-separator: New file.
23961 * modules/unictype/property-bidi-segment-separator: New file.
23962 * modules/unictype/property-bidi-whitespace: New file.
23963 * modules/unictype/property-bidi-non-spacing-mark: New file.
23964 * modules/unictype/property-bidi-boundary-neutral: New file.
23965 * modules/unictype/property-bidi-pdf: New file.
23966 * modules/unictype/property-bidi-embedding-or-override: New file.
23967 * modules/unictype/property-bidi-other-neutral: New file.
23968 * modules/unictype/property-hex-digit: New file.
23969 * modules/unictype/property-ascii-hex-digit: New file.
23970 * modules/unictype/property-ideographic: New file.
23971 * modules/unictype/property-unified-ideograph: New file.
23972 * modules/unictype/property-radical: New file.
23973 * modules/unictype/property-ids-binary-operator: New file.
23974 * modules/unictype/property-ids-trinary-operator: New file.
23975 * modules/unictype/property-zero-width: New file.
23976 * modules/unictype/property-space: New file.
23977 * modules/unictype/property-non-break: New file.
23978 * modules/unictype/property-iso-control: New file.
23979 * modules/unictype/property-format-control: New file.
23980 * modules/unictype/property-dash: New file.
23981 * modules/unictype/property-hyphen: New file.
23982 * modules/unictype/property-punctuation: New file.
23983 * modules/unictype/property-line-separator: New file.
23984 * modules/unictype/property-paragraph-separator: New file.
23985 * modules/unictype/property-quotation-mark: New file.
23986 * modules/unictype/property-sentence-terminal: New file.
23987 * modules/unictype/property-terminal-punctuation: New file.
23988 * modules/unictype/property-currency-symbol: New file.
23989 * modules/unictype/property-math: New file.
23990 * modules/unictype/property-other-math: New file.
23991 * modules/unictype/property-paired-punctuation: New file.
23992 * modules/unictype/property-left-of-pair: New file.
23993 * modules/unictype/property-combining: New file.
23994 * modules/unictype/property-composite: New file.
23995 * modules/unictype/property-decimal-digit: New file.
23996 * modules/unictype/property-numeric: New file.
23997 * modules/unictype/property-diacritic: New file.
23998 * modules/unictype/property-extender: New file.
23999 * modules/unictype/property-ignorable-control: New file.
24000 * modules/unictype/property-test: New file.
24001 * modules/unictype/property-byname: New file.
24002 * modules/unictype/property-all: New file.
24003 * modules/unictype/scripts: New file.
24004 * modules/unictype/scripts-all: New file.
24005 * modules/unictype/block-of: New file.
24006 * modules/unictype/block-test: New file.
24007 * modules/unictype/block-list: New file.
24008 * modules/unictype/block-all: New file.
24009 * modules/unictype/syntax-c-whitespace: New file.
24010 * modules/unictype/syntax-java-whitespace: New file.
24011 * modules/unictype/syntax-c-ident: New file.
24012 * modules/unictype/syntax-java-ident: New file.
24013 * modules/unictype/ctype-alnum: New file.
24014 * modules/unictype/ctype-alpha: New file.
24015 * modules/unictype/ctype-cntrl: New file.
24016 * modules/unictype/ctype-digit: New file.
24017 * modules/unictype/ctype-graph: New file.
24018 * modules/unictype/ctype-lower: New file.
24019 * modules/unictype/ctype-print: New file.
24020 * modules/unictype/ctype-punct: New file.
24021 * modules/unictype/ctype-space: New file.
24022 * modules/unictype/ctype-upper: New file.
24023 * modules/unictype/ctype-xdigit: New file.
24024 * modules/unictype/ctype-blank: New file.
24025 * lib/unictype/bidi_byname.c: New file.
24026 * lib/unictype/bidi_name.c: New file.
24027 * lib/unictype/bidi_of.c: New file.
24028 * lib/unictype/bidi_test.c: New file.
24029 * lib/unictype/bitmap.h: New file.
24030 * lib/unictype/block_test.c: New file.
24031 * lib/unictype/blocks.c: New file.
24032 * lib/unictype/categ_C.c: New file.
24033 * lib/unictype/categ_Cc.c: New file.
24034 * lib/unictype/categ_Cf.c: New file.
24035 * lib/unictype/categ_Cn.c: New file.
24036 * lib/unictype/categ_Co.c: New file.
24037 * lib/unictype/categ_Cs.c: New file.
24038 * lib/unictype/categ_L.c: New file.
24039 * lib/unictype/categ_Ll.c: New file.
24040 * lib/unictype/categ_Lm.c: New file.
24041 * lib/unictype/categ_Lo.c: New file.
24042 * lib/unictype/categ_Lt.c: New file.
24043 * lib/unictype/categ_Lu.c: New file.
24044 * lib/unictype/categ_M.c: New file.
24045 * lib/unictype/categ_Mc.c: New file.
24046 * lib/unictype/categ_Me.c: New file.
24047 * lib/unictype/categ_Mn.c: New file.
24048 * lib/unictype/categ_N.c: New file.
24049 * lib/unictype/categ_Nd.c: New file.
24050 * lib/unictype/categ_Nl.c: New file.
24051 * lib/unictype/categ_No.c: New file.
24052 * lib/unictype/categ_P.c: New file.
24053 * lib/unictype/categ_Pc.c: New file.
24054 * lib/unictype/categ_Pd.c: New file.
24055 * lib/unictype/categ_Pe.c: New file.
24056 * lib/unictype/categ_Pf.c: New file.
24057 * lib/unictype/categ_Pi.c: New file.
24058 * lib/unictype/categ_Po.c: New file.
24059 * lib/unictype/categ_Ps.c: New file.
24060 * lib/unictype/categ_S.c: New file.
24061 * lib/unictype/categ_Sc.c: New file.
24062 * lib/unictype/categ_Sk.c: New file.
24063 * lib/unictype/categ_Sm.c: New file.
24064 * lib/unictype/categ_So.c: New file.
24065 * lib/unictype/categ_Z.c: New file.
24066 * lib/unictype/categ_Zl.c: New file.
24067 * lib/unictype/categ_Zp.c: New file.
24068 * lib/unictype/categ_Zs.c: New file.
24069 * lib/unictype/categ_and.c: New file.
24070 * lib/unictype/categ_and_not.c: New file.
24071 * lib/unictype/categ_byname.c: New file.
24072 * lib/unictype/categ_name.c: New file.
24073 * lib/unictype/categ_none.c: New file.
24074 * lib/unictype/categ_of.c: New file.
24075 * lib/unictype/categ_or.c: New file.
24076 * lib/unictype/categ_test.c: New file.
24077 * lib/unictype/combining.c: New file.
24078 * lib/unictype/ctype_alnum.c: New file.
24079 * lib/unictype/ctype_alpha.c: New file.
24080 * lib/unictype/ctype_blank.c: New file.
24081 * lib/unictype/ctype_cntrl.c: New file.
24082 * lib/unictype/ctype_digit.c: New file.
24083 * lib/unictype/ctype_graph.c: New file.
24084 * lib/unictype/ctype_lower.c: New file.
24085 * lib/unictype/ctype_print.c: New file.
24086 * lib/unictype/ctype_punct.c: New file.
24087 * lib/unictype/ctype_space.c: New file.
24088 * lib/unictype/ctype_upper.c: New file.
24089 * lib/unictype/ctype_xdigit.c: New file.
24090 * lib/unictype/decdigit.c: New file.
24091 * lib/unictype/digit.c: New file.
24092 * lib/unictype/identsyntaxmap.h: New file.
24093 * lib/unictype/mirror.c: New file.
24094 * lib/unictype/numeric.c: New file.
24095 * lib/unictype/pr_alphabetic.c: New file.
24096 * lib/unictype/pr_ascii_hex_digit.c: New file.
24097 * lib/unictype/pr_bidi_arabic_digit.c: New file.
24098 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
24099 * lib/unictype/pr_bidi_block_separator.c: New file.
24100 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
24101 * lib/unictype/pr_bidi_common_separator.c: New file.
24102 * lib/unictype/pr_bidi_control.c: New file.
24103 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
24104 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
24105 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
24106 * lib/unictype/pr_bidi_european_digit.c: New file.
24107 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
24108 * lib/unictype/pr_bidi_left_to_right.c: New file.
24109 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
24110 * lib/unictype/pr_bidi_other_neutral.c: New file.
24111 * lib/unictype/pr_bidi_pdf.c: New file.
24112 * lib/unictype/pr_bidi_segment_separator.c: New file.
24113 * lib/unictype/pr_bidi_whitespace.c: New file.
24114 * lib/unictype/pr_byname.c: New file.
24115 * lib/unictype/pr_byname.gperf: New file.
24116 * lib/unictype/pr_combining.c: New file.
24117 * lib/unictype/pr_composite.c: New file.
24118 * lib/unictype/pr_currency_symbol.c: New file.
24119 * lib/unictype/pr_dash.c: New file.
24120 * lib/unictype/pr_decimal_digit.c: New file.
24121 * lib/unictype/pr_default_ignorable_code_point.c: New file.
24122 * lib/unictype/pr_deprecated.c: New file.
24123 * lib/unictype/pr_diacritic.c: New file.
24124 * lib/unictype/pr_extender.c: New file.
24125 * lib/unictype/pr_format_control.c: New file.
24126 * lib/unictype/pr_grapheme_base.c: New file.
24127 * lib/unictype/pr_grapheme_extend.c: New file.
24128 * lib/unictype/pr_grapheme_link.c: New file.
24129 * lib/unictype/pr_hex_digit.c: New file.
24130 * lib/unictype/pr_hyphen.c: New file.
24131 * lib/unictype/pr_id_continue.c: New file.
24132 * lib/unictype/pr_id_start.c: New file.
24133 * lib/unictype/pr_ideographic.c: New file.
24134 * lib/unictype/pr_ids_binary_operator.c: New file.
24135 * lib/unictype/pr_ids_trinary_operator.c: New file.
24136 * lib/unictype/pr_ignorable_control.c: New file.
24137 * lib/unictype/pr_iso_control.c: New file.
24138 * lib/unictype/pr_join_control.c: New file.
24139 * lib/unictype/pr_left_of_pair.c: New file.
24140 * lib/unictype/pr_line_separator.c: New file.
24141 * lib/unictype/pr_logical_order_exception.c: New file.
24142 * lib/unictype/pr_lowercase.c: New file.
24143 * lib/unictype/pr_math.c: New file.
24144 * lib/unictype/pr_non_break.c: New file.
24145 * lib/unictype/pr_not_a_character.c: New file.
24146 * lib/unictype/pr_numeric.c: New file.
24147 * lib/unictype/pr_other_alphabetic.c: New file.
24148 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
24149 * lib/unictype/pr_other_grapheme_extend.c: New file.
24150 * lib/unictype/pr_other_id_continue.c: New file.
24151 * lib/unictype/pr_other_id_start.c: New file.
24152 * lib/unictype/pr_other_lowercase.c: New file.
24153 * lib/unictype/pr_other_math.c: New file.
24154 * lib/unictype/pr_other_uppercase.c: New file.
24155 * lib/unictype/pr_paired_punctuation.c: New file.
24156 * lib/unictype/pr_paragraph_separator.c: New file.
24157 * lib/unictype/pr_pattern_syntax.c: New file.
24158 * lib/unictype/pr_pattern_white_space.c: New file.
24159 * lib/unictype/pr_private_use.c: New file.
24160 * lib/unictype/pr_punctuation.c: New file.
24161 * lib/unictype/pr_quotation_mark.c: New file.
24162 * lib/unictype/pr_radical.c: New file.
24163 * lib/unictype/pr_sentence_terminal.c: New file.
24164 * lib/unictype/pr_soft_dotted.c: New file.
24165 * lib/unictype/pr_space.c: New file.
24166 * lib/unictype/pr_terminal_punctuation.c: New file.
24167 * lib/unictype/pr_test.c: New file.
24168 * lib/unictype/pr_titlecase.c: New file.
24169 * lib/unictype/pr_unassigned_code_value.c: New file.
24170 * lib/unictype/pr_unified_ideograph.c: New file.
24171 * lib/unictype/pr_uppercase.c: New file.
24172 * lib/unictype/pr_variation_selector.c: New file.
24173 * lib/unictype/pr_white_space.c: New file.
24174 * lib/unictype/pr_xid_continue.c: New file.
24175 * lib/unictype/pr_xid_start.c: New file.
24176 * lib/unictype/pr_zero_width.c: New file.
24177 * lib/unictype/scripts.c: New file.
24178 * lib/unictype/sy_c_ident.c: New file.
24179 * lib/unictype/sy_c_whitespace.c: New file.
24180 * lib/unictype/sy_java_ident.c: New file.
24181 * lib/unictype/sy_java_whitespace.c: New file.
24183 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
24185 * lib/unictype/blocks.h: Likewise.
24186 * lib/unictype/categ_C.h: Likewise.
24187 * lib/unictype/categ_Cc.h: Likewise.
24188 * lib/unictype/categ_Cf.h: Likewise.
24189 * lib/unictype/categ_Cn.h: Likewise.
24190 * lib/unictype/categ_Co.h: Likewise.
24191 * lib/unictype/categ_Cs.h: Likewise.
24192 * lib/unictype/categ_L.h: Likewise.
24193 * lib/unictype/categ_Ll.h: Likewise.
24194 * lib/unictype/categ_Lm.h: Likewise.
24195 * lib/unictype/categ_Lo.h: Likewise.
24196 * lib/unictype/categ_Lt.h: Likewise.
24197 * lib/unictype/categ_Lu.h: Likewise.
24198 * lib/unictype/categ_M.h: Likewise.
24199 * lib/unictype/categ_Mc.h: Likewise.
24200 * lib/unictype/categ_Me.h: Likewise.
24201 * lib/unictype/categ_Mn.h: Likewise.
24202 * lib/unictype/categ_N.h: Likewise.
24203 * lib/unictype/categ_Nd.h: Likewise.
24204 * lib/unictype/categ_Nl.h: Likewise.
24205 * lib/unictype/categ_No.h: Likewise.
24206 * lib/unictype/categ_P.h: Likewise.
24207 * lib/unictype/categ_Pc.h: Likewise.
24208 * lib/unictype/categ_Pd.h: Likewise.
24209 * lib/unictype/categ_Pe.h: Likewise.
24210 * lib/unictype/categ_Pf.h: Likewise.
24211 * lib/unictype/categ_Pi.h: Likewise.
24212 * lib/unictype/categ_Po.h: Likewise.
24213 * lib/unictype/categ_Ps.h: Likewise.
24214 * lib/unictype/categ_S.h: Likewise.
24215 * lib/unictype/categ_Sc.h: Likewise.
24216 * lib/unictype/categ_Sk.h: Likewise.
24217 * lib/unictype/categ_Sm.h: Likewise.
24218 * lib/unictype/categ_So.h: Likewise.
24219 * lib/unictype/categ_Z.h: Likewise.
24220 * lib/unictype/categ_Zl.h: Likewise.
24221 * lib/unictype/categ_Zp.h: Likewise.
24222 * lib/unictype/categ_Zs.h: Likewise.
24223 * lib/unictype/categ_of.h: Likewise.
24224 * lib/unictype/combining.h: Likewise.
24225 * lib/unictype/ctype_alnum.h: Likewise.
24226 * lib/unictype/ctype_alpha.h: Likewise.
24227 * lib/unictype/ctype_blank.h: Likewise.
24228 * lib/unictype/ctype_cntrl.h: Likewise.
24229 * lib/unictype/ctype_digit.h: Likewise.
24230 * lib/unictype/ctype_graph.h: Likewise.
24231 * lib/unictype/ctype_lower.h: Likewise.
24232 * lib/unictype/ctype_print.h: Likewise.
24233 * lib/unictype/ctype_punct.h: Likewise.
24234 * lib/unictype/ctype_space.h: Likewise.
24235 * lib/unictype/ctype_upper.h: Likewise.
24236 * lib/unictype/ctype_xdigit.h: Likewise.
24237 * lib/unictype/decdigit.h: Likewise.
24238 * lib/unictype/digit.h: Likewise.
24239 * lib/unictype/mirror.h: Likewise.
24240 * lib/unictype/numeric.h: Likewise.
24241 * lib/unictype/pr_alphabetic.h: Likewise.
24242 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24243 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24244 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24245 * lib/unictype/pr_bidi_block_separator.h: Likewise.
24246 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24247 * lib/unictype/pr_bidi_common_separator.h: Likewise.
24248 * lib/unictype/pr_bidi_control.h: Likewise.
24249 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24250 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24251 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24252 * lib/unictype/pr_bidi_european_digit.h: Likewise.
24253 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24254 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24255 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24256 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24257 * lib/unictype/pr_bidi_pdf.h: Likewise.
24258 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24259 * lib/unictype/pr_bidi_whitespace.h: Likewise.
24260 * lib/unictype/pr_combining.h: Likewise.
24261 * lib/unictype/pr_composite.h: Likewise.
24262 * lib/unictype/pr_currency_symbol.h: Likewise.
24263 * lib/unictype/pr_dash.h: Likewise.
24264 * lib/unictype/pr_decimal_digit.h: Likewise.
24265 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24266 * lib/unictype/pr_deprecated.h: Likewise.
24267 * lib/unictype/pr_diacritic.h: Likewise.
24268 * lib/unictype/pr_extender.h: Likewise.
24269 * lib/unictype/pr_format_control.h: Likewise.
24270 * lib/unictype/pr_grapheme_base.h: Likewise.
24271 * lib/unictype/pr_grapheme_extend.h: Likewise.
24272 * lib/unictype/pr_grapheme_link.h: Likewise.
24273 * lib/unictype/pr_hex_digit.h: Likewise.
24274 * lib/unictype/pr_hyphen.h: Likewise.
24275 * lib/unictype/pr_id_continue.h: Likewise.
24276 * lib/unictype/pr_id_start.h: Likewise.
24277 * lib/unictype/pr_ideographic.h: Likewise.
24278 * lib/unictype/pr_ids_binary_operator.h: Likewise.
24279 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24280 * lib/unictype/pr_ignorable_control.h: Likewise.
24281 * lib/unictype/pr_iso_control.h: Likewise.
24282 * lib/unictype/pr_join_control.h: Likewise.
24283 * lib/unictype/pr_left_of_pair.h: Likewise.
24284 * lib/unictype/pr_line_separator.h: Likewise.
24285 * lib/unictype/pr_logical_order_exception.h: Likewise.
24286 * lib/unictype/pr_lowercase.h: Likewise.
24287 * lib/unictype/pr_math.h: Likewise.
24288 * lib/unictype/pr_non_break.h: Likewise.
24289 * lib/unictype/pr_not_a_character.h: Likewise.
24290 * lib/unictype/pr_numeric.h: Likewise.
24291 * lib/unictype/pr_other_alphabetic.h: Likewise.
24292 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24293 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24294 * lib/unictype/pr_other_id_continue.h: Likewise.
24295 * lib/unictype/pr_other_id_start.h: Likewise.
24296 * lib/unictype/pr_other_lowercase.h: Likewise.
24297 * lib/unictype/pr_other_math.h: Likewise.
24298 * lib/unictype/pr_other_uppercase.h: Likewise.
24299 * lib/unictype/pr_paired_punctuation.h: Likewise.
24300 * lib/unictype/pr_paragraph_separator.h: Likewise.
24301 * lib/unictype/pr_pattern_syntax.h: Likewise.
24302 * lib/unictype/pr_pattern_white_space.h: Likewise.
24303 * lib/unictype/pr_private_use.h: Likewise.
24304 * lib/unictype/pr_punctuation.h: Likewise.
24305 * lib/unictype/pr_quotation_mark.h: Likewise.
24306 * lib/unictype/pr_radical.h: Likewise.
24307 * lib/unictype/pr_sentence_terminal.h: Likewise.
24308 * lib/unictype/pr_soft_dotted.h: Likewise.
24309 * lib/unictype/pr_space.h: Likewise.
24310 * lib/unictype/pr_terminal_punctuation.h: Likewise.
24311 * lib/unictype/pr_titlecase.h: Likewise.
24312 * lib/unictype/pr_unassigned_code_value.h: Likewise.
24313 * lib/unictype/pr_unified_ideograph.h: Likewise.
24314 * lib/unictype/pr_uppercase.h: Likewise.
24315 * lib/unictype/pr_variation_selector.h: Likewise.
24316 * lib/unictype/pr_white_space.h: Likewise.
24317 * lib/unictype/pr_xid_continue.h: Likewise.
24318 * lib/unictype/pr_xid_start.h: Likewise.
24319 * lib/unictype/pr_zero_width.h: Likewise.
24320 * lib/unictype/scripts.h: Likewise.
24321 * lib/unictype/scripts_byname.gperf: Likewise.
24322 * lib/unictype/sy_c_ident.h: Likewise.
24323 * lib/unictype/sy_c_whitespace.h: Likewise.
24324 * lib/unictype/sy_java_ident.h: Likewise.
24325 * lib/unictype/sy_java_whitespace.h: Likewise.
24327 * lib/unictype/Makefile: New file.
24328 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
24330 * lib/unictype/3level.h: New file, copied from glibc.
24331 * lib/unictype/3levelbit.h: New file.
24333 2007-11-11 Bruno Haible <bruno@clisp.org>
24335 * modules/gperf: New file.
24336 * modules/iconv_open (Depends-on): Add it.
24337 (Makefile.am): Remove the GPERF definition.
24339 2007-11-11 Bruno Haible <bruno@clisp.org>
24341 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
24342 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
24344 2007-11-11 Bruno Haible <bruno@clisp.org>
24346 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
24347 (usage): Remove function.
24349 2007-11-11 Bruno Haible <bruno@clisp.org>
24351 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
24352 gl_FUNC_CEILF_LIBS.
24353 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
24355 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
24356 gl_FUNC_CEILL_LIBS.
24357 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
24358 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
24359 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
24361 2007-11-11 Bruno Haible <bruno@clisp.org>
24363 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
24364 roundf were declared but do not exist on functions.
24365 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
24366 roundl were declared but do not exist on functions.
24367 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
24368 HAVE_FLOORL_AND_CEILL, respectively.
24369 Needed for Sun C on Solaris 10.
24371 2007-11-11 Bruno Haible <bruno@clisp.org>
24373 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
24374 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
24375 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
24376 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
24377 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
24378 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
24379 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
24381 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
24382 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
24383 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
24384 of HAVE_DECL_ROUND*.
24385 * modules/math (Makefile.am): Update.
24387 2007-11-10 Bruno Haible <bruno@clisp.org>
24389 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
24390 ptrdiff_t as m4/intl.m4.
24392 2007-11-10 Jim Meyering <meyering@redhat.com>
24394 Avoid link failure for the argmatch test.
24395 * tests/test-argmatch.c (usage): Define function to avoid a link
24396 failure: argmatch_die requires a usage function.
24398 2007-11-09 Bruno Haible <bruno@clisp.org>
24400 * doc/functions/snprintf.texi: Mention BeOS deficiency.
24401 * doc/functions/vsnprintf.texi: Likewise.
24402 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
24403 with a size argument < 2.
24405 2007-11-09 Bruno Haible <bruno@clisp.org>
24407 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
24408 buffer. Fixes an inefficiency introduced on 2007-11-03.
24410 2007-11-09 Bruno Haible <bruno@clisp.org>
24412 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
24413 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
24415 2007-11-08 Jim Meyering <meyering@redhat.com>
24417 Change cache variable name prefix "jm_" to "gl_" everywhere.
24418 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
24419 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
24420 * m4/uptime.m4: s/gl_/jm_/
24422 2007-11-07 Bruno Haible <bruno@clisp.org>
24424 Update to GNU gettext 0.17.
24425 * m4/intl.m4: Update to GNU gettext 0.17.
24426 * m4/po.m4: Likewise.
24427 * modules/gettext (Files): Remove m4/ulonglong.m4.
24428 (configure.ac): Require gettext infrastructure from version 0.17.
24430 2007-11-06 Bruno Haible <bruno@clisp.org>
24432 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
24433 symbolic values are not defined in a public header.
24434 * lib/freadable.c (freadable) [QNX]: Likewise.
24435 * lib/freadahead.c (freadahead) [QNX]: Likewise.
24436 * lib/freading.c (freading) [QNX]: Likewise.
24437 * lib/fseterr.c (fseterr) [QNX]: Likewise.
24438 * lib/fwritable.c (fwritable) [QNX]: Likewise.
24439 * lib/fwriting.c (fwriting) [QNX]: Likewise.
24440 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
24441 Reported by Alain Magloire.
24443 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
24445 2007-11-05 Bruno Haible <bruno@clisp.org>
24447 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
24448 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
24449 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
24450 Reported by Eric Blake.
24452 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24453 Bruno Haible <bruno@clisp.org>
24455 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
24456 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
24457 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
24458 (malloc): Undefine also before including <stdlib.h>.
24459 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
24460 Needed on OSF/1 4.0.
24462 2007-11-05 Jim Meyering <meyering@redhat.com>
24464 git-version-gen: sync from coreutils.
24465 * build-aux/git-version-gen: Add comments.
24466 Change the first '-' to '.' in the snapshot version string,
24467 e.g., 6.9-377-08144 -> 6.9.377-08144
24468 Remove first parameter.
24469 Don't declare a version "-dirty" merely because a time
24472 2007-11-04 Bruno Haible <bruno@clisp.org>
24474 * lib/lock.h: Protect all macro definitions containing an 'if'
24475 statement through a "do { ... } while (0)".
24476 * lib/tls.h: Likewise.
24478 2007-11-04 Bruno Haible <bruno@clisp.org>
24480 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
24482 2007-11-04 Bruno Haible <bruno@clisp.org>
24484 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
24485 * modules/fprintf-posix (Depends-on): Add nocrash.
24486 * modules/snprintf-posix (Depends-on): Likewise.
24487 * modules/sprintf-posix (Depends-on): Likewise.
24488 * modules/vasnprintf-posix (Depends-on): Likewise.
24489 * modules/vasprintf-posix (Depends-on): Likewise.
24490 * modules/vfprintf-posix (Depends-on): Likewise.
24491 * modules/vsnprintf-posix (Depends-on): Likewise.
24492 * modules/vsprintf-posix (Depends-on): Likewise.
24493 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24494 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24495 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24496 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24497 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24498 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24499 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24501 2007-11-04 Bruno Haible <bruno@clisp.org>
24503 * modules/nocrash: New file.
24504 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
24505 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
24507 2007-11-04 Bruno Haible <bruno@clisp.org>
24509 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
24510 precision handling.
24511 * tests/test-vasprintf-posix.c (test_function): Likewise.
24512 * tests/test-snprintf-posix.h (test_function): Likewise.
24513 * tests/test-sprintf-posix.h (test_function): Likewise.
24515 Fix *printf behaviour for large precisions on mingw and BeOS.
24516 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
24517 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
24518 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
24519 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
24520 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24521 gl_PRINTF_PRECISION and test its result. Invoke
24522 gl_PREREQ_VASNPRINTF_PRECISION.
24523 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24524 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24525 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24526 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24527 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24528 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24529 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24530 * doc/functions/fprintf.texi: Update.
24531 * doc/functions/printf.texi: Update.
24532 * doc/functions/snprintf.texi: Update.
24533 * doc/functions/sprintf.texi: Update.
24534 * doc/functions/vfprintf.texi: Update.
24535 * doc/functions/vprintf.texi: Update.
24536 * doc/functions/vsnprintf.texi: Update.
24537 * doc/functions/vsprintf.texi: Update.
24539 2007-11-04 Bruno Haible <bruno@clisp.org>
24541 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
24543 2007-11-04 Bruno Haible <bruno@clisp.org>
24545 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
24546 Reported by Sylvain Beucler <beuc@gnu.org>.
24548 2007-11-03 Bruno Haible <bruno@clisp.org>
24550 * tests/test-fprintf-posix2.sh: New file.
24551 * tests/test-fprintf-posix2.c: New file.
24552 * modules/fprintf-posix-tests (Files): Add them.
24553 (TESTS): Add test-fprintf-posix2.sh.
24554 (configure.ac): Check for getrlimit and setrlimit.
24555 (check_PROGRAMS): Add test-fprintf-posix2.
24557 * tests/test-printf-posix2.sh: New file.
24558 * tests/test-printf-posix2.c: New file.
24559 * modules/printf-posix-tests (Files): Add them.
24560 (TESTS): Add test-printf-posix2.sh.
24561 (configure.ac): Check for getrlimit and setrlimit.
24562 (check_PROGRAMS): Add test-printf-posix2.
24564 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
24565 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
24566 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
24567 (decode_double): New function, copied from decode_long_double.
24568 (scale10_round_decimal_decoded): New function, extracted from
24569 scale10_round_decimal_long_double.
24570 (scale10_round_decimal_long_double): Use it.
24571 (scale10_round_decimal_double): New function.
24572 (floorlog10): New function.
24573 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
24574 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
24575 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
24576 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24577 gl_PRINTF_ENOMEM and test its result. Invoke
24578 gl_PREREQ_VASNPRINTF_ENOMEM.
24579 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24580 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24581 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24582 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24583 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24584 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24585 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24586 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
24587 * modules/snprintf-posix (Depends-on): Likewise.
24588 * modules/sprintf-posix (Depends-on): Likewise.
24589 * modules/vasnprintf-posix (Depends-on): Likewise.
24590 * modules/vasprintf-posix (Depends-on): Likewise.
24591 * modules/vfprintf-posix (Depends-on): Likewise.
24592 * modules/vsnprintf-posix (Depends-on): Likewise.
24593 * modules/vsprintf-posix (Depends-on): Likewise.
24594 * doc/functions/fprintf.texi: Update.
24595 * doc/functions/printf.texi: Update.
24596 * doc/functions/snprintf.texi: Update.
24597 * doc/functions/sprintf.texi: Update.
24598 * doc/functions/vfprintf.texi: Update.
24599 * doc/functions/vprintf.texi: Update.
24600 * doc/functions/vsnprintf.texi: Update.
24601 * doc/functions/vsprintf.texi: Update.
24603 2007-11-03 Bruno Haible <bruno@clisp.org>
24605 * modules/frexp-nolibm-tests: New file.
24607 * modules/frexp-nolibm: New file.
24608 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
24610 2007-11-03 Bruno Haible <bruno@clisp.org>
24612 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
24613 value is C99 compliant.
24614 Needed for OSF/1 5.1.
24616 2007-11-03 Bruno Haible <bruno@clisp.org>
24618 Fix out-of-memory handling of vasnprintf.
24619 * lib/printf-parse.c: Include <errno.h>.
24620 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
24621 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
24624 2007-11-02 Eric Blake <ebb9@byu.net>
24626 Fix tests on cygwin.
24627 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
24629 2007-11-01 Bruno Haible <bruno@clisp.org>
24631 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
24633 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
24634 needed for POSIX compatibility.
24636 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
24638 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
24639 for compatibility with GNU.
24641 2007-11-01 Bruno Haible <bruno@clisp.org>
24643 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
24644 (putenv): Renamed from rpl_putenv. Change argument type from
24645 'const char *' to 'char *'.
24646 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
24647 of defining putenv in config.h, just set REPLACE_PUTENV.
24648 * modules/putenv (Depends-on): Add stdlib.
24649 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
24650 (Include): Use <stdlib.h>.
24651 * lib/stdlib.in.h (putenv): New declaration.
24652 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
24654 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
24656 Needed for MacOS X 10.5.0.
24657 Reported by Peter O'Gorman <peter@pogma.com>.
24659 2007-11-01 Jim Meyering <meyering@redhat.com>
24661 Treat an empty date string exactly like "0".
24662 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
24663 if the remaining date string (to be parsed) is empty, use "0".
24664 Reported by Mischa Molhoek and discussed in this thread:
24665 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
24667 2007-10-31 Bruno Haible <bruno@clisp.org>
24669 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
24670 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
24671 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
24672 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
24673 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
24674 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
24676 2007-10-31 Bruno Haible <bruno@clisp.org>
24678 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
24679 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
24680 (AC_TYPE_LONG_LONG_INT): Use it.
24681 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
24683 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
24685 * modules/stdint (Files): Remove m4/ulonglong.m4.
24686 * modules/strtoull (Files): Use m4/longlong.m4 instead of
24688 * modules/strtoumax (Files): Likewise.
24690 2007-10-30 Bruno Haible <bruno@clisp.org>
24692 * modules/xvasprintf-posix: New file.
24693 Suggested by Eric Blake.
24695 2007-10-30 Bruno Haible <bruno@clisp.org>
24697 * modules/xprintf-posix-tests: New file.
24698 * tests/test-xprintf-posix.sh: New file.
24699 * tests/test-xprintf-posix.c: New file.
24700 * tests/test-xfprintf-posix.c: New file.
24702 * modules/xprintf-posix: New file.
24704 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24706 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
24707 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
24708 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
24710 2007-10-29 Bruno Haible <bruno@clisp.org>
24712 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
24713 contain the special marker '_cv_'.
24714 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
24715 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
24716 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
24717 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
24718 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
24719 Reported by Ralf Wildenhues.
24721 2007-10-29 Bruno Haible <bruno@clisp.org>
24723 * gnulib-tool (func_import): When --lgpl is not specified, set
24724 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
24726 Reported by Simon Josefsson.
24728 2007-10-28 Bruno Haible <bruno@clisp.org>
24730 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
24731 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
24732 HAVE_DECL_ISFINITE.
24733 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
24734 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
24735 HAVE_DECL_ISFINITE.
24737 2007-10-28 Bruno Haible <bruno@clisp.org>
24739 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
24740 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
24742 2007-10-28 Bruno Haible <bruno@clisp.org>
24744 Fix link errors with Sun C 5.0 on Solaris 10.
24745 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
24746 function is declared but not present in the compiler's libm.
24747 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
24748 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
24749 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
24750 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
24751 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
24752 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
24753 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
24754 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
24755 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
24756 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
24757 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
24760 2007-10-28 Bruno Haible <bruno@clisp.org>
24762 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
24763 gl_FUNC_FLOORL. Cache the result.
24764 (gl_FUNC_FLOORL): Use it.
24765 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
24766 gl_FUNC_CEILL. Cache the result.
24767 (gl_FUNC_CEILL): Use it.
24769 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
24770 gl_FUNC_FLOOR. Cache the result.
24771 (gl_FUNC_FLOOR): Use it.
24772 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
24773 gl_FUNC_CEIL. Cache the result.
24774 (gl_FUNC_CEIL): Use it.
24776 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
24777 gl_FUNC_FLOORF. Cache the result.
24778 (gl_FUNC_FLOORF): Use it.
24779 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
24780 gl_FUNC_CEILF. Cache the result.
24781 (gl_FUNC_CEILF): Use it.
24783 2007-10-28 Bruno Haible <bruno@clisp.org>
24785 * gnulib-tool: Allow specifying the LGPL version number through
24786 --lgpl=2 or --lgpl=3.
24787 (func_usage): Document --lgpl with argument.
24788 Handle --lgpl=... arguments.
24789 (func_import): Recognize also gl_LGPL calls with an argument. When
24790 --lgpl=2 is used and the module's license is just LGPL, report an
24791 error. Set sed_transform_lib_file according to the lgpl variable. In
24792 the generated files, use --lgpl or gl_LGPL invocations with argument,
24794 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
24796 * doc/gnulib-tool.texi (Modified imports): Update explanation of
24799 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24800 Bruno Haible <bruno@clisp.org>
24802 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
24803 (u16_uctomb_aux): Likewise.
24804 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
24806 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
24808 2007-10-28 Bruno Haible <bruno@clisp.org>
24810 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
24811 Invoke AM_GETTEXT_OPTION if it exists.
24812 * modules/vasprintf: Likewise.
24813 * modules/verror: Likewise.
24814 * modules/xprintf: Likewise.
24815 * modules/xvasprintf: Likewise.
24817 2007-10-27 Ben Pfaff <blp@gnu.org>
24819 * lib/math.in.h: Define isfinite macro and prototypes for
24820 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
24822 * m4/math_h.m4: New substitutions for isfinite module.
24823 * lib/isfinite.c: New file.
24824 * m4/isfinite.m4: New file.
24825 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
24826 * modules/isfinite: New file.
24827 * modules/isfinite-tests: New file.
24828 * tests/tests-isfinite.c: New file.
24829 * doc/functions/isfinite.texi: Mention isfinite module.
24830 * MODULES.html.sh: Mention new module.
24832 2007-10-27 Ben Pfaff <blp@gnu.org>
24834 Ralf Wildenhues reported that Tru64 4.0D declares the round
24835 functions but does not have definitions.
24836 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
24837 cannot be found in any library, set the output variable to
24838 "missing" instead of "".
24839 * m4/round.m4: Also use our substitute if we cannot find round in
24840 any library, even if it is declared.
24841 * m4/roundf.m4: Likewise for roundf.
24842 * m4/roundl.m4: Likewise for roundl.
24843 * lib/math.in.h: Undefine roundf, round, roundl before defining
24844 their replacements, to allow for hypothetical systems where these
24845 may be defined as macros but not available in libraries.
24847 2007-10-27 Bruno Haible <bruno@clisp.org>
24849 * doc/gnulib.texi: Invoke @firstparagraphindent.
24850 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
24852 (Source changes): New section.
24854 2007-10-26 Bruno Haible <bruno@clisp.org>
24856 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
24857 borrowed from autoconf.
24859 2007-10-26 Bruno Haible <bruno@clisp.org>
24861 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
24862 strerror returned the empty string. Needed on HP-UX 11.00.
24864 2007-10-24 Micah Cowan <micah@cowan.name>
24866 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
24867 * build-aux/bootstrap: Remove support for now-unnecessary option,
24868 --cvs-user, and envvars CVS_USER, CVS_RSH.
24870 2007-10-24 Jim Meyering <meyering@redhat.com>
24872 Avoid diagnostics from sha1sum when there is no cached checksum.
24873 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
24874 if the po.s1 file hasn't been created yet.
24876 * build-aux/bootstrap: Sync from coreutils:
24877 2007-10-24 Jim Meyering <meyering@redhat.com>
24878 Get gnulib from the git repository, not from an obsolete cvs one.
24879 * build-aux/bootstrap: Suggestion from Micah Cowan.
24880 2007-10-04 Jim Meyering <jim@meyering.net>
24881 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
24882 (update_po_files): Work also when there are no .po files in po/.
24884 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
24886 * README: Append ".git" to git and cg examples.
24887 Problem reported by Benoit Sigoure.
24889 2007-10-23 Micah Cowan <micah@cowan.name>
24891 * users.txt: Add wget.
24893 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24895 Fix linking of some unistdio tests on FreeBSD.
24896 * modules/unistdio/u16-vsnprintf-tests
24897 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
24898 * modules/unistdio/u16-vsprintf-tests
24899 (test_u16_vsnprintf1_LDADD): Likewise.
24900 * modules/unistdio/u32-vsnprintf-tests
24901 (test_u32_vsnprintf1_LDADD): Likewise.
24902 * modules/unistdio/u32-vsprintf-tests
24903 (test_u32_vsprintf1_LDADD): Likewise.
24904 * modules/unistdio/u8-vsnprintf-tests
24905 (test_u8_vsnprintf1_LDADD): Likewise.
24906 * modules/unistdio/u8-vsprintf-tests
24907 (test_u8_vsprintf1_LDADD): Likewise.
24908 * modules/unistdio/ulc-vsnprintf-tests
24909 (test_ulc_vsnprintf1_LDADD): Likewise.
24910 * modules/unistdio/ulc-vsprintf-tests
24911 (test_ulc_vsprintf1_LDADD): Likewise.
24913 Fix linking of some uniconv tests on FreeBSD.
24914 * modules/uniconv/u16-conv-from-enc-tests
24915 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
24916 * modules/uniconv/u16-conv-to-enc-tests
24917 (test_u16_conv_to_enc_LDADD): Likewise.
24918 * modules/uniconv/u16-strconv-from-enc-tests
24919 (test_u16_strconv_from_enc_LDADD): Likewise.
24920 * modules/uniconv/u16-strconv-to-enc-tests
24921 (test_u16_strconv_to_enc_LDADD): Likewise.
24922 * modules/uniconv/u32-conv-from-enc-tests
24923 (test_u32_conv_from_enc_LDADD): Likewise.
24924 * modules/uniconv/u32-conv-to-enc-tests
24925 (test_u32_conv_to_enc_LDADD): Likewise.
24926 * modules/uniconv/u32-strconv-from-enc-tests
24927 (test_u32_strconv_from_enc_LDADD): Likewise.
24928 * modules/uniconv/u32-strconv-to-enc-tests
24929 (test_u32_strconv_to_enc_LDADD): Likewise.
24930 * modules/uniconv/u8-conv-from-enc-tests
24931 (test_u8_conv_from_enc_LDADD): Likewise.
24932 * modules/uniconv/u8-conv-to-enc-tests
24933 (test_u8_conv_to_enc_LDADD): Likewise.
24934 * modules/uniconv/u8-strconv-from-enc-tests
24935 (test_u8_strconv_from_enc_LDADD): Likewise.
24936 * modules/uniconv/u8-strconv-to-enc-tests
24937 (test_u8_strconv_to_enc_LDADD): Likewise.
24939 2007-10-22 Bruno Haible <bruno@clisp.org>
24941 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
24944 2007-10-22 Eric Blake <ebb9@byu.net>
24946 Tweak x*printf documentation.
24947 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
24948 variable name and comments.
24949 Suggested by Bruno Haible.
24951 2007-10-22 Bruno Haible <bruno@clisp.org>
24953 * lib/acl.c (copy_acl): Fix file name in comment.
24955 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
24957 Fix Tru64 problem with stdbool.h.
24958 * lib/stdbool.in.h (false, true):
24959 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
24960 Don't declare as an enum in this situation; it runs afoul of Tru64.
24961 Problem reported by Steven M. Schweda in
24962 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
24964 2007-10-22 Eric Blake <ebb9@byu.net>
24966 Also wrap vf?printf.
24967 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
24968 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
24969 (xvprintf, xvfprintf): New functions.
24971 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24973 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
24974 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
24976 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
24977 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
24979 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
24981 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
24984 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24987 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
24988 Undef `sys' after including sys/table.h, for Tru64 4.0D.
24990 * tests/test-i-ring.c: Work for C89.
24992 2007-10-22 Bruno Haible <bruno@clisp.org>
24994 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
24995 -1u, in preprocessor expression, so that we don't test for the bug
24996 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
24997 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
24999 2007-10-22 Eric Blake <ebb9@byu.net>
25001 * tests/test-yesno.sh: Silence stderr during test.
25003 2007-10-22 Simon Josefsson <simon@josefsson.org>
25005 * modules/crypto/gc-camellia: New file.
25007 * m4/gc-camellia.m4: New file.
25009 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
25011 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
25013 2007-10-22 Simon Josefsson <simon@josefsson.org>
25015 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
25016 --help to stdout. Reported by sms@antinode.org (Steven
25019 2007-10-22 Simon Josefsson <simon@josefsson.org>
25021 * users.txt: Fix link to libksba.
25023 2007-10-21 Ben Pfaff <blp@gnu.org>
25025 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
25026 round.c roundf implementation that depends on floorf and ceilf to
25027 be tested unconditionally.
25029 2007-10-21 Ben Pfaff <blp@gnu.org>
25031 * m4/check-libm-func.m4: Removed.
25032 * m4/check-math-lib.m4: New file.
25033 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
25034 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
25035 definition and lack of AC_LIBOBJ([roundf]).
25036 * m4/roundl.m4: Ditto, and similarly for roundl.
25037 * modules/round: Reference new m4 file.
25038 * modules/roundf: Ditto.
25039 * modules/roundl: Ditto.
25040 * tests/test-round2.c (main): Use ROUND instead of round.
25041 Bug report from Bruno Haible.
25043 2007-10-21 Bruno Haible <bruno@clisp.org>
25045 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
25048 2007-10-21 Bruno Haible <bruno@clisp.org>
25050 * tests/test-wcwidth.c (main): Allow negative result for some control
25053 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
25054 Needed on OSF/1 5.1.
25056 2007-10-21 Bruno Haible <bruno@clisp.org>
25058 * tests/test-floorf1.c: Include isnanf.h.
25059 (main): Use isnanf() instead of isnan().
25060 * tests/test-ceilf1.c: Include isnanf.h.
25061 (main): Use isnanf() instead of isnan().
25062 * tests/test-truncf1.c: Include isnanf.h.
25063 (main): Use isnanf() instead of isnan().
25064 * tests/test-roundf1.c: Include isnanf.h.
25065 (main): Use isnanf() instead of isnan().
25067 2007-10-21 Eric Blake <ebb9@byu.net>
25069 * users.txt: Update URL for m4.
25071 2007-10-21 Bruno Haible <bruno@clisp.org>
25073 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
25075 2007-10-21 Bruno Haible <bruno@clisp.org>
25077 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
25078 Git's management files if the CVS files are not present.
25080 2007-10-20 Bruno Haible <bruno@clisp.org>
25082 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
25085 2007-10-20 Ben Pfaff <blp@gnu.org>
25087 * lib/math.in.h: Declare round, roundf, roundl if we are providing
25089 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
25090 * lib/round.c: New file.
25091 * lib/roundf.c: New file.
25092 * lib/roundl.c: New file.
25093 * m4/round.m4: New file.
25094 * m4/roundf.m4: New file.
25095 * m4/roundl.m4: New file.
25096 * m4/check-libm-func-m4: New file.
25097 * modules/math: Replace round, roundf, roundl related @VARS@ in
25099 * modules/round: New file.
25100 * modules/round-tests: New file.
25101 * modules/roundf: New file.
25102 * modules/roundf-tests: New file.
25103 * modules/roundl: New file.
25104 * modules/roundl-tests: New file.
25105 * tests/test-round1.c: New file.
25106 * tests/test-round2.c: New file.
25107 * tests/test-roundf1.c: New file.
25108 * tests/test-roundf2.c: New file.
25109 * tests/test-roundl.c: New file.
25110 * doc/functions/round.texi: Mention round module.
25111 * doc/functions/roundf.texi: Mention roundf module.
25112 * doc/functions/roundl.texi: Mention roundl module.
25113 * MODULES.html.sh: Mention new modules.
25114 Thanks to Bruno Haible for suggestions.
25116 2007-10-20 Jim Meyering <meyering@redhat.com>
25118 * lib/xprintf.c: Include <config.h> unconditionally.
25120 Change xprintf's license to GPL.
25121 * modules/xprintf (License): s/LGPL/GPL/, since this module
25122 depends on modules (exit and exitfail) which are GPL.
25123 Suggestion from Bruno Haible.
25126 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
25127 Use a clearer diagnostic.
25128 Patch from Bruno Haible.
25130 2007-10-20 Bruno Haible <bruno@clisp.org>
25132 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
25133 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
25134 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25136 2007-10-20 Bruno Haible <bruno@clisp.org>
25138 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
25139 precision in the comparison result > x - 1 or similar.
25140 * tests/test-ceilf2.c (correct_result_p): Likewise.
25141 * tests/test-truncf2.c (correct_result_p): Likewise.
25142 * tests/test-trunc2.c (correct_result_p): Likewise.
25143 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25145 2007-10-20 Bruno Haible <bruno@clisp.org>
25147 * modules/ceil: New file.
25148 * m4/ceil.m4: New file.
25149 * doc/functions/ceil.texi: Mention the 'ceil' module.
25151 2007-10-20 Bruno Haible <bruno@clisp.org>
25153 * modules/floor: New file.
25154 * m4/floor.m4: New file.
25155 * doc/functions/floor.texi: Mention the 'floor' module.
25157 2007-10-20 Bruno Haible <bruno@clisp.org>
25159 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
25161 * modules/floorf-tests (Depends-on): Likewise.
25162 * modules/truncf-tests (Depends-on): Likewise.
25163 * modules/trunc-tests (Depends-on): Likewise.
25164 Reported by Ben Pfaff.
25166 2007-10-19 Jim Meyering <meyering@redhat.com>
25168 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
25169 Don't bother testing specific errno values. Just test ferror.
25171 New module: xprintf
25172 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
25174 2007-10-19 Bruno Haible <bruno@clisp.org>
25176 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
25178 * modules/javaexec (Makefile.am): Likewise.
25179 * modules/relocatable-prog (Makefile.am): Likewise.
25180 Suggested by Jim Meyering.
25182 2007-10-18 Bruno Haible <bruno@clisp.org>
25184 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
25185 Reported by Jim Meyering.
25187 2007-10-18 Eric Blake <ebb9@byu.net>
25189 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
25191 2007-10-18 Bruno Haible <bruno@clisp.org>
25193 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
25194 the format string into writable memory. Needed in Fortify conditions.
25196 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
25197 Bruno Haible <bruno@clisp.org>
25199 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
25200 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
25201 * modules/trim (Depends-on): Add mbchar.
25202 (configure.ac): Add gl_FUNC_MBRTOWC.
25203 (Makefile.am): Augment lib_SOURCES.
25205 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
25207 Modify glob.c to use fstatat and dirfd, to simplify it.
25208 Suggested by Eric Blake.
25209 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
25210 Don't include <stdbool.h>; not used.
25211 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
25212 (link_exists_p): Simplify implementation, since we can now assume
25214 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
25216 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25218 * gnulib-tool (func_get_dependencies): Fix sed script to
25221 2007-10-17 Bruno Haible <bruno@clisp.org>
25223 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
25224 allow locale names without encoding suffix.
25225 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25226 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25228 2007-10-16 Bruno Haible <bruno@clisp.org>
25230 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
25231 * lib/getgroups.c (getgroups): Likewise.
25232 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
25234 2007-10-16 Bruno Haible <bruno@clisp.org>
25236 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
25237 * modules/malloc-posix (License): Likewise.
25238 * modules/realloc-posix (License): Likewise.
25239 * modules/calloc-posix (License): Likewise.
25240 * modules/intprops (License): Change from GPL to LGPL, with
25241 Paul Eggert's approval.
25243 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
25245 Merge glibc changes into lib/glob.c.
25247 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
25248 2007-10-15 04:59:03 UTC. Here are the changes:
25250 2007-10-14 Ulrich Drepper <drepper@redhat.com>
25252 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
25254 * lib/glob.c: Add some branch prediction throughout.
25256 2007-10-07 Ulrich Drepper <drepper@redhat.com>
25259 * lib/glob.c (glob): Recognize patterns starting \/.
25261 2007-02-14 Jakub Jelinek <jakub@redhat.com>
25264 * lib/glob.c (attribute_hidden): Define if not defined.
25265 (glob): Unescape dirname, filename or username when needed and not
25266 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
25267 is NULL. Handle unescaped [ in pattern without closing ].
25268 Don't pass GLOB_CHECK down to recursive glob for directories.
25269 (__glob_pattern_type): New function.
25270 (__glob_pattern_p): Implement using __glob_pattern_type.
25271 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
25272 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
25273 Remove unreachable code.
25275 2006-09-30 Ulrich Drepper <drepper@redhat.com>
25277 * lib/glob.c (glob_in_dir): Add some comments and asserts to
25278 explain why there are no leaks.
25280 2006-09-25 Jakub Jelinek <jakub@redhat.com>
25283 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
25284 time, rather allocate increasingly bigger arrays of pointers, if
25285 possible with alloca, if too large with malloc.
25287 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
25289 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
25290 Problem reported by H.Merijn Brand in
25291 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
25292 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
25293 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
25295 2007-10-15 Bruno Haible <bruno@clisp.org>
25297 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
25298 with explicit rpl_ prefix.
25299 * lib/fopen.c (fopen): Likewise.
25300 * lib/freopen.c (freopen): Likewise.
25301 * lib/iconv.c (iconv): Likewise.
25302 * lib/iconv_close.c (iconv_close): Likewise.
25304 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25306 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
25308 2007-10-15 Bruno Haible <bruno@clisp.org>
25310 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
25311 <stddef.h> instead of <stdlib.h> since we only need NULL.
25312 Reported by Ben Pfaff <blp@cs.stanford.edu>.
25314 2007-10-15 Bruno Haible <bruno@clisp.org>
25316 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
25317 Replace paragraph talking about LIBOBJS.
25318 Reported by Colin Watson <cjwatson@debian.org>.
25320 2007-10-15 Bruno Haible <bruno@clisp.org>
25322 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
25323 <stdlib.h> before using NULL.
25325 2007-10-15 Simon Josefsson <simon@josefsson.org>
25327 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
25328 Reported by Albert Chin <china@thewrittenword.com>.
25330 2007-10-14 Bruno Haible <bruno@clisp.org>
25332 * modules/iconv_open-utf-tests: New file.
25333 * tests/test-iconv-utf.c: New file.
25335 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
25336 * modules/iconv_open-utf: New file.
25337 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
25338 (iconv, iconv_close): New declarations.
25339 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
25341 (iconv_open): Add special handling of conversion between UTF-8 and
25342 UTF-{16,32}{BE,LE}.
25343 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
25344 * lib/iconv_close.c: New file.
25345 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
25346 gl_FUNC_ICONV_OPEN.
25347 (gl_FUNC_ICONV_OPEN): Use it.
25348 (gl_FUNC_ICONV_OPEN_UTF): New macro.
25349 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
25350 and REPLACE_ICONV_UTF.
25351 * modules/iconv_open (Depends-on): Add c-strcase.
25352 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
25354 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
25356 2007-10-13 Albert Chin <china@thewrittenword.com>
25357 Bruno Haible <bruno@clisp.org>
25359 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
25360 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
25362 2007-10-13 Bruno Haible <bruno@clisp.org>
25364 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
25365 defined, use the ISO C99 inline semantics.
25366 * lib/argp.h (ARGP_EI): Likewise.
25368 2007-10-13 Bruno Haible <bruno@clisp.org>
25370 Handle 'inline' change in gcc 4.3.0.
25371 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
25372 argp_fmtstream_write, argp_fmtstream_set_lmargin,
25373 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
25374 argp_fmtstream_point): Disable 'extern' declaration if the function
25375 definition is going to be provided inline.
25376 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
25377 semantics, not the ISO C99 inline semantics.
25378 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
25379 'extern' declaration if the function definition is going to be provided
25381 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
25382 the GNU C inline semantics, not the ISO C99 inline semantics. With
25383 GCC 4.2, avoid a warning.
25385 2007-10-13 Bruno Haible <bruno@clisp.org>
25387 * lib/freading.h (freading): Enable the use of __freading for
25389 * lib/freading.c (freading): Likewise.
25391 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
25393 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
25394 "warning: C99 inline functions are not supported; using GNU89".
25396 2007-10-12 Bruno Haible <bruno@clisp.org>
25398 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
25400 * tests/test-ceilf2.c: New file.
25401 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
25403 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
25404 * modules/ceilf-tests: Update.
25406 2007-10-12 Bruno Haible <bruno@clisp.org>
25408 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
25410 * tests/test-floorf2.c: New file.
25411 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
25413 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
25414 * modules/floorf-tests: Update.
25416 2007-10-12 Bruno Haible <bruno@clisp.org>
25418 * tests/test-trunc2.c: New file.
25419 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
25421 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
25422 * modules/trunc-tests: Update.
25424 2007-10-12 Bruno Haible <bruno@clisp.org>
25426 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
25428 * tests/test-truncf2.c: New file.
25429 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
25431 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
25432 * modules/truncf-tests: Update.
25434 2007-10-11 Eric Blake <ebb9@byu.net>
25436 Don't claim strerror is broken on Interix.
25437 * doc/functions/strerror.texi (strerror): Known broken systems are
25438 now Solaris 8, and not Interix.
25439 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
25440 Interix on cross-compile.
25441 Reported by Martin Koeppe in
25442 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
25444 2007-10-11 Bruno Haible <bruno@clisp.org>
25446 * modules/i-ring-tests: New file.
25447 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
25450 2007-10-11 Bruno Haible <bruno@clisp.org>
25452 * modules/filenamecat-tests: New file.
25453 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
25454 * lib/filenamecat.c: Remove test code.
25456 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
25458 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
25460 * lib/strerror.c: Include <string.h> always, to test interface,
25461 and to remove the need for the dummy.
25462 Include intprops.h to compute width instead of doing it ourselves
25463 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
25464 (strerror): Define it to return NULL if there's no system strerror.
25465 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
25466 Omit !HAVE_STRERROR code. We don't need to worry about supporting
25467 ancient pre-strerror Unix systems well any more. Saying "unknown
25468 system error" is enough.
25469 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
25470 simpler strerror.c implementation.
25471 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
25472 Simplify the tests to reflect the simpler strerror implementation.
25473 * modules/strerror (Depends-on): Add intprops.
25475 2007-10-09 Eric Blake <ebb9@byu.net>
25477 Silence test-fpending.
25478 * modules/fpending-tests (Files): Add wrapper script.
25479 * tests/test-fpending.sh: New file.
25481 2007-10-09 Bruno Haible <bruno@clisp.org>
25483 * MODULES.html.sh (func_module): Don't create a hyperlink for
25484 function names like 'printf_frexp'.
25485 (Misc): Add crc, memxor.
25486 (Characteristics of floating types): New section.
25487 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
25488 isnanf-nolibm, signbit, trunc, truncf, truncl.
25489 (Enhancements for ISO C 99 functions): New subsection Input/output.
25490 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
25491 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
25492 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
25493 (Compatibility checks for POSIX:2001 functions): Add clock-time.
25494 (Enhancements for POSIX:2001 functions): Add chdir-long.
25495 (File system functions): Add areadlink, chdir-safer, read-file.
25496 Remove cycle-check.
25497 (File system as inode set): New section.
25498 (Date and time): Add gethrxtime.
25499 (Multithreading): Add openmp.
25500 (Internationalization functions): Add localename.
25501 (Unicode string functions): Add unistr/u*-mbsnlen.
25502 (Support for maintaining and releasing projects): Add git-version-gen.
25503 (Lone files): Remove directories.
25505 2007-10-08 Ben Pfaff <blp@gnu.org>
25507 * lib/xmalloca.h: Fix typo in comment.
25509 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
25511 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
25512 when avoiding problems with integer overflow. Use a portable test
25515 2007-10-08 Simon Josefsson <simon@josefsson.org>
25517 * modules/dummy (License): Change to LGPLv2+.
25518 * modules/float (License): Likewise
25519 * modules/realloc (License): Likewise
25520 * modules/stdlib (License): Likewise
25522 2007-10-07 Bruno Haible <bruno@clisp.org>
25524 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
25525 * floor.c (TWO_MANT_DIG): Likewise.
25526 * ceil.c (TWO_MANT_DIG): Likewise.
25527 Reported by Ben Pfaff.
25529 2007-10-07 Bruno Haible <bruno@clisp.org>
25531 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
25532 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
25533 * lib/frexp.c (FUNC): Likewise.
25534 * lib/printf-frexp.h (printf_frexp): Likewise.
25535 * lib/printf-frexpl.h (printf_frexpl): Likewise.
25536 * lib/printf-frexp.c (FUNC): Likewise.
25537 Suggested by Jim Meyering.
25539 2007-10-07 Jim Meyering <meyering@redhat.com>
25541 Make xnanosleep's integer overflow test more robust.
25542 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
25543 so that gcc-4.3.0 doesn't optimize away this test for overflow.
25545 2007-10-07 Bruno Haible <bruno@clisp.org>
25547 * NEWS: Mention the license change.
25549 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
25550 abbreviations in the modules files.
25552 Change copyright notice from GPLv2+ to GPLv3+.
25553 * README: Change copyright notice.
25554 * MODULES.html.sh: Likewise.
25555 * build-aux/bootstrap.conf: Likewise.
25556 * build-aux/config.libpath: Likewise.
25557 * build-aux/csharpcomp.sh.in: Likewise.
25558 * build-aux/csharpexec.sh.in: Likewise.
25559 * build-aux/install-reloc: Likewise.
25560 * build-aux/javacomp.sh.in: Likewise.
25561 * build-aux/javaexec.sh.in: Likewise.
25562 * build-aux/ldd.sh.in: Likewise.
25563 * build-aux/reloc-ldflags: Likewise.
25564 * build-aux/relocatable.sh.in: Likewise.
25565 * build-aux/x-to-1.in: Likewise.
25566 * check-module: Likewise.
25567 * config/srclistvars.sh: Likewise.
25568 * gnulib-tool: Likewise.
25569 * lib/acl-internal.h: Likewise.
25570 * lib/acl.c: Likewise.
25571 * lib/acl.h: Likewise.
25572 * lib/acl_entries.c: Likewise.
25573 * lib/areadlink-with-size.c: Likewise.
25574 * lib/areadlink.c: Likewise.
25575 * lib/areadlink.h: Likewise.
25576 * lib/argmatch.c: Likewise.
25577 * lib/argmatch.h: Likewise.
25578 * lib/argp-ba.c: Likewise.
25579 * lib/argp-eexst.c: Likewise.
25580 * lib/argp-fmtstream.c: Likewise.
25581 * lib/argp-fmtstream.h: Likewise.
25582 * lib/argp-fs-xinl.c: Likewise.
25583 * lib/argp-help.c: Likewise.
25584 * lib/argp-namefrob.h: Likewise.
25585 * lib/argp-parse.c: Likewise.
25586 * lib/argp-pin.c: Likewise.
25587 * lib/argp-pv.c: Likewise.
25588 * lib/argp-pvh.c: Likewise.
25589 * lib/argp-xinl.c: Likewise.
25590 * lib/argp.h: Likewise.
25591 * lib/at-func.c: Likewise.
25592 * lib/atanl.c: Likewise.
25593 * lib/backupfile.c: Likewise.
25594 * lib/backupfile.h: Likewise.
25595 * lib/basename.c: Likewise.
25596 * lib/binary-io.h: Likewise.
25597 * lib/byteswap.in.h: Likewise.
25598 * lib/c-stack.c: Likewise.
25599 * lib/c-stack.h: Likewise.
25600 * lib/c-strcasestr.c: Likewise.
25601 * lib/c-strcasestr.h: Likewise.
25602 * lib/c-strstr.c: Likewise.
25603 * lib/c-strstr.h: Likewise.
25604 * lib/c-strtod.c: Likewise.
25605 * lib/calloc.c: Likewise.
25606 * lib/canon-host.c: Likewise.
25607 * lib/canon-host.h: Likewise.
25608 * lib/canonicalize-lgpl.c: Likewise.
25609 * lib/canonicalize.c: Likewise.
25610 * lib/canonicalize.h: Likewise.
25611 * lib/ceil.c: Likewise.
25612 * lib/ceilf.c: Likewise.
25613 * lib/ceill.c: Likewise.
25614 * lib/chdir-long.c: Likewise.
25615 * lib/chdir-long.h: Likewise.
25616 * lib/chdir-safer.c: Likewise.
25617 * lib/chdir-safer.h: Likewise.
25618 * lib/chown.c: Likewise.
25619 * lib/classpath.c: Likewise.
25620 * lib/classpath.h: Likewise.
25621 * lib/clean-temp.c: Likewise.
25622 * lib/clean-temp.h: Likewise.
25623 * lib/cloexec.c: Likewise.
25624 * lib/close-stream.c: Likewise.
25625 * lib/closein.c: Likewise.
25626 * lib/closein.h: Likewise.
25627 * lib/closeout.c: Likewise.
25628 * lib/closeout.h: Likewise.
25629 * lib/concat-filename.c: Likewise.
25630 * lib/copy-file.c: Likewise.
25631 * lib/copy-file.h: Likewise.
25632 * lib/count-one-bits.h: Likewise.
25633 * lib/crc.c: Likewise.
25634 * lib/crc.h: Likewise.
25635 * lib/creat-safer.c: Likewise.
25636 * lib/csharpcomp.c: Likewise.
25637 * lib/csharpcomp.h: Likewise.
25638 * lib/csharpexec.c: Likewise.
25639 * lib/csharpexec.h: Likewise.
25640 * lib/cycle-check.c: Likewise.
25641 * lib/cycle-check.h: Likewise.
25642 * lib/diacrit.c: Likewise.
25643 * lib/diacrit.h: Likewise.
25644 * lib/diffseq.h: Likewise.
25645 * lib/dirchownmod.c: Likewise.
25646 * lib/dirent.in.h: Likewise.
25647 * lib/dirfd.c: Likewise.
25648 * lib/dirfd.h: Likewise.
25649 * lib/dirname.c: Likewise.
25650 * lib/dirname.h: Likewise.
25651 * lib/dummy.c: Likewise.
25652 * lib/dup-safer.c: Likewise.
25653 * lib/dup2.c: Likewise.
25654 * lib/eealloc.h: Likewise.
25655 * lib/error.c: Likewise.
25656 * lib/error.h: Likewise.
25657 * lib/euidaccess.c: Likewise.
25658 * lib/exclude.c: Likewise.
25659 * lib/exclude.h: Likewise.
25660 * lib/execute.c: Likewise.
25661 * lib/execute.h: Likewise.
25662 * lib/exitfail.c: Likewise.
25663 * lib/exitfail.h: Likewise.
25664 * lib/expl.c: Likewise.
25665 * lib/fatal-signal.c: Likewise.
25666 * lib/fatal-signal.h: Likewise.
25667 * lib/fbufmode.c: Likewise.
25668 * lib/fbufmode.h: Likewise.
25669 * lib/fchdir.c: Likewise.
25670 * lib/fchmodat.c: Likewise.
25671 * lib/fchownat.c: Likewise.
25672 * lib/fcntl--.h: Likewise.
25673 * lib/fcntl-safer.h: Likewise.
25674 * lib/fcntl.in.h: Likewise.
25675 * lib/fd-safer.c: Likewise.
25676 * lib/fflush.c: Likewise.
25677 * lib/file-has-acl.c: Likewise.
25678 * lib/file-set.c: Likewise.
25679 * lib/file-type.c: Likewise.
25680 * lib/file-type.h: Likewise.
25681 * lib/fileblocks.c: Likewise.
25682 * lib/filemode.c: Likewise.
25683 * lib/filemode.h: Likewise.
25684 * lib/filename.h: Likewise.
25685 * lib/filenamecat.c: Likewise.
25686 * lib/filenamecat.h: Likewise.
25687 * lib/findprog.c: Likewise.
25688 * lib/findprog.h: Likewise.
25689 * lib/float.in.h: Likewise.
25690 * lib/floor.c: Likewise.
25691 * lib/floorf.c: Likewise.
25692 * lib/floorl.c: Likewise.
25693 * lib/fopen-safer.c: Likewise.
25694 * lib/fopen.c: Likewise.
25695 * lib/fpending.c: Likewise.
25696 * lib/fpending.h: Likewise.
25697 * lib/fprintf.c: Likewise.
25698 * lib/fprintftime.h: Likewise.
25699 * lib/fpucw.h: Likewise.
25700 * lib/fpurge.c: Likewise.
25701 * lib/fpurge.h: Likewise.
25702 * lib/freadable.c: Likewise.
25703 * lib/freadable.h: Likewise.
25704 * lib/freadahead.c: Likewise.
25705 * lib/freadahead.h: Likewise.
25706 * lib/freading.c: Likewise.
25707 * lib/freading.h: Likewise.
25708 * lib/free.c: Likewise.
25709 * lib/freopen.c: Likewise.
25710 * lib/frexp.c: Likewise.
25711 * lib/frexpl.c: Likewise.
25712 * lib/fseek.c: Likewise.
25713 * lib/fseterr.c: Likewise.
25714 * lib/fseterr.h: Likewise.
25715 * lib/fstatat.c: Likewise.
25716 * lib/fstrcmp.c: Likewise.
25717 * lib/fstrcmp.h: Likewise.
25718 * lib/fsusage.c: Likewise.
25719 * lib/fsusage.h: Likewise.
25720 * lib/ftell.c: Likewise.
25721 * lib/ftello.c: Likewise.
25722 * lib/fts-cycle.c: Likewise.
25723 * lib/fts.c: Likewise.
25724 * lib/fts_.h: Likewise.
25725 * lib/full-read.c: Likewise.
25726 * lib/full-read.h: Likewise.
25727 * lib/full-write.c: Likewise.
25728 * lib/full-write.h: Likewise.
25729 * lib/fwritable.c: Likewise.
25730 * lib/fwritable.h: Likewise.
25731 * lib/fwriteerror.c: Likewise.
25732 * lib/fwriteerror.h: Likewise.
25733 * lib/fwriting.c: Likewise.
25734 * lib/fwriting.h: Likewise.
25735 * lib/gcd.c: Likewise.
25736 * lib/gcd.h: Likewise.
25737 * lib/getcwd.c: Likewise.
25738 * lib/getdate.h: Likewise.
25739 * lib/getdate.y: Likewise.
25740 * lib/getdomainname.c: Likewise.
25741 * lib/getdomainname.h: Likewise.
25742 * lib/getgroups.c: Likewise.
25743 * lib/gethostname.c: Likewise.
25744 * lib/gethrxtime.c: Likewise.
25745 * lib/gethrxtime.h: Likewise.
25746 * lib/getloadavg.c: Likewise.
25747 * lib/getndelim2.c: Likewise.
25748 * lib/getndelim2.h: Likewise.
25749 * lib/getnline.c: Likewise.
25750 * lib/getnline.h: Likewise.
25751 * lib/getopt.c: Likewise.
25752 * lib/getopt.in.h: Likewise.
25753 * lib/getopt1.c: Likewise.
25754 * lib/getopt_int.h: Likewise.
25755 * lib/getpagesize.h: Likewise.
25756 * lib/getsubopt.c: Likewise.
25757 * lib/gettime.c: Likewise.
25758 * lib/getugroups.c: Likewise.
25759 * lib/getugroups.h: Likewise.
25760 * lib/getusershell.c: Likewise.
25761 * lib/gl_anyavltree_list1.h: Likewise.
25762 * lib/gl_anyavltree_list2.h: Likewise.
25763 * lib/gl_anyhash_list1.h: Likewise.
25764 * lib/gl_anyhash_list2.h: Likewise.
25765 * lib/gl_anylinked_list1.h: Likewise.
25766 * lib/gl_anylinked_list2.h: Likewise.
25767 * lib/gl_anyrbtree_list1.h: Likewise.
25768 * lib/gl_anyrbtree_list2.h: Likewise.
25769 * lib/gl_anytree_list1.h: Likewise.
25770 * lib/gl_anytree_list2.h: Likewise.
25771 * lib/gl_anytree_oset.h: Likewise.
25772 * lib/gl_anytreehash_list1.h: Likewise.
25773 * lib/gl_anytreehash_list2.h: Likewise.
25774 * lib/gl_array_list.c: Likewise.
25775 * lib/gl_array_list.h: Likewise.
25776 * lib/gl_array_oset.c: Likewise.
25777 * lib/gl_array_oset.h: Likewise.
25778 * lib/gl_avltree_list.c: Likewise.
25779 * lib/gl_avltree_list.h: Likewise.
25780 * lib/gl_avltree_oset.c: Likewise.
25781 * lib/gl_avltree_oset.h: Likewise.
25782 * lib/gl_avltreehash_list.c: Likewise.
25783 * lib/gl_avltreehash_list.h: Likewise.
25784 * lib/gl_carray_list.c: Likewise.
25785 * lib/gl_carray_list.h: Likewise.
25786 * lib/gl_linked_list.c: Likewise.
25787 * lib/gl_linked_list.h: Likewise.
25788 * lib/gl_linkedhash_list.c: Likewise.
25789 * lib/gl_linkedhash_list.h: Likewise.
25790 * lib/gl_list.c: Likewise.
25791 * lib/gl_list.h: Likewise.
25792 * lib/gl_oset.c: Likewise.
25793 * lib/gl_oset.h: Likewise.
25794 * lib/gl_rbtree_list.c: Likewise.
25795 * lib/gl_rbtree_list.h: Likewise.
25796 * lib/gl_rbtree_oset.c: Likewise.
25797 * lib/gl_rbtree_oset.h: Likewise.
25798 * lib/gl_rbtreehash_list.c: Likewise.
25799 * lib/gl_rbtreehash_list.h: Likewise.
25800 * lib/gl_sublist.c: Likewise.
25801 * lib/gl_sublist.h: Likewise.
25802 * lib/group-member.c: Likewise.
25803 * lib/group-member.h: Likewise.
25804 * lib/hard-locale.c: Likewise.
25805 * lib/hard-locale.h: Likewise.
25806 * lib/hash-pjw.c: Likewise.
25807 * lib/hash-pjw.h: Likewise.
25808 * lib/hash-triple.c: Likewise.
25809 * lib/hash.c: Likewise.
25810 * lib/hash.h: Likewise.
25811 * lib/human.c: Likewise.
25812 * lib/human.h: Likewise.
25813 * lib/i-ring.c: Likewise.
25814 * lib/i-ring.h: Likewise.
25815 * lib/idcache.c: Likewise.
25816 * lib/imaxabs.c: Likewise.
25817 * lib/imaxdiv.c: Likewise.
25818 * lib/inet_pton.c: Likewise.
25819 * lib/inet_pton.h: Likewise.
25820 * lib/intprops.h: Likewise.
25821 * lib/inttostr.c: Likewise.
25822 * lib/inttostr.h: Likewise.
25823 * lib/inttypes.in.h: Likewise.
25824 * lib/isapipe.c: Likewise.
25825 * lib/isdir.c: Likewise.
25826 * lib/isnan.c: Likewise.
25827 * lib/isnan.h: Likewise.
25828 * lib/isnanf.c: Likewise.
25829 * lib/isnanf.h: Likewise.
25830 * lib/isnanl-nolibm.h: Likewise.
25831 * lib/isnanl.c: Likewise.
25832 * lib/isnanl.h: Likewise.
25833 * lib/javacomp.c: Likewise.
25834 * lib/javacomp.h: Likewise.
25835 * lib/javaexec.c: Likewise.
25836 * lib/javaexec.h: Likewise.
25837 * lib/javaversion.c: Likewise.
25838 * lib/javaversion.h: Likewise.
25839 * lib/javaversion.java: Likewise.
25840 * lib/lbrkprop.h: Likewise.
25841 * lib/lchmod.h: Likewise.
25842 * lib/lchown.c: Likewise.
25843 * lib/ldexpl.c: Likewise.
25844 * lib/linebreak.c: Likewise.
25845 * lib/linebreak.h: Likewise.
25846 * lib/linebuffer.c: Likewise.
25847 * lib/linebuffer.h: Likewise.
25848 * lib/locale.in.h: Likewise.
25849 * lib/logl.c: Likewise.
25850 * lib/long-options.c: Likewise.
25851 * lib/long-options.h: Likewise.
25852 * lib/lstat.c: Likewise.
25853 * lib/lstat.h: Likewise.
25854 * lib/math.in.h: Likewise.
25855 * lib/mbchar.c: Likewise.
25856 * lib/mbchar.h: Likewise.
25857 * lib/mbfile.h: Likewise.
25858 * lib/mbiter.h: Likewise.
25859 * lib/mbscasecmp.c: Likewise.
25860 * lib/mbscasestr.c: Likewise.
25861 * lib/mbschr.c: Likewise.
25862 * lib/mbscspn.c: Likewise.
25863 * lib/mbslen.c: Likewise.
25864 * lib/mbsncasecmp.c: Likewise.
25865 * lib/mbsnlen.c: Likewise.
25866 * lib/mbspbrk.c: Likewise.
25867 * lib/mbspcasecmp.c: Likewise.
25868 * lib/mbsrchr.c: Likewise.
25869 * lib/mbssep.c: Likewise.
25870 * lib/mbsspn.c: Likewise.
25871 * lib/mbsstr.c: Likewise.
25872 * lib/mbstok_r.c: Likewise.
25873 * lib/mbswidth.c: Likewise.
25874 * lib/mbswidth.h: Likewise.
25875 * lib/mbuiter.h: Likewise.
25876 * lib/memcasecmp.c: Likewise.
25877 * lib/memcasecmp.h: Likewise.
25878 * lib/memchr.c: Likewise.
25879 * lib/memcmp.c: Likewise.
25880 * lib/memcoll.c: Likewise.
25881 * lib/memcoll.h: Likewise.
25882 * lib/memcpy.c: Likewise.
25883 * lib/memrchr.c: Likewise.
25884 * lib/mkancesdirs.c: Likewise.
25885 * lib/mkdir-p.c: Likewise.
25886 * lib/mkdir-p.h: Likewise.
25887 * lib/mkdir.c: Likewise.
25888 * lib/mkdirat.c: Likewise.
25889 * lib/mkdtemp.c: Likewise.
25890 * lib/mkstemp-safer.c: Likewise.
25891 * lib/mkstemp.c: Likewise.
25892 * lib/modechange.c: Likewise.
25893 * lib/modechange.h: Likewise.
25894 * lib/mountlist.c: Likewise.
25895 * lib/mountlist.h: Likewise.
25896 * lib/mpsort.c: Likewise.
25897 * lib/nanosleep.c: Likewise.
25898 * lib/obstack.c: Likewise.
25899 * lib/obstack.h: Likewise.
25900 * lib/open-safer.c: Likewise.
25901 * lib/open.c: Likewise.
25902 * lib/openat-die.c: Likewise.
25903 * lib/openat-priv.h: Likewise.
25904 * lib/openat-proc.c: Likewise.
25905 * lib/openat.c: Likewise.
25906 * lib/openat.h: Likewise.
25907 * lib/pagealign_alloc.c: Likewise.
25908 * lib/pagealign_alloc.h: Likewise.
25909 * lib/physmem.c: Likewise.
25910 * lib/physmem.h: Likewise.
25911 * lib/pipe-safer.c: Likewise.
25912 * lib/pipe.c: Likewise.
25913 * lib/pipe.h: Likewise.
25914 * lib/posixtm.c: Likewise.
25915 * lib/posixtm.h: Likewise.
25916 * lib/posixver.c: Likewise.
25917 * lib/printf-frexp.c: Likewise.
25918 * lib/printf-frexp.h: Likewise.
25919 * lib/printf-frexpl.c: Likewise.
25920 * lib/printf-frexpl.h: Likewise.
25921 * lib/printf.c: Likewise.
25922 * lib/progname.c: Likewise.
25923 * lib/progname.h: Likewise.
25924 * lib/progreloc.c: Likewise.
25925 * lib/putenv.c: Likewise.
25926 * lib/quote.c: Likewise.
25927 * lib/quote.h: Likewise.
25928 * lib/quotearg.c: Likewise.
25929 * lib/quotearg.h: Likewise.
25930 * lib/raise.c: Likewise.
25931 * lib/readline.c: Likewise.
25932 * lib/readline.h: Likewise.
25933 * lib/readlink.c: Likewise.
25934 * lib/readtokens.c: Likewise.
25935 * lib/readtokens.h: Likewise.
25936 * lib/readtokens0.c: Likewise.
25937 * lib/readtokens0.h: Likewise.
25938 * lib/readutmp.c: Likewise.
25939 * lib/readutmp.h: Likewise.
25940 * lib/realloc.c: Likewise.
25941 * lib/relocwrapper.c: Likewise.
25942 * lib/rename-dest-slash.c: Likewise.
25943 * lib/rename.c: Likewise.
25944 * lib/rmdir.c: Likewise.
25945 * lib/rpmatch.c: Likewise.
25946 * lib/safe-read.c: Likewise.
25947 * lib/safe-read.h: Likewise.
25948 * lib/safe-write.c: Likewise.
25949 * lib/safe-write.h: Likewise.
25950 * lib/same-inode.h: Likewise.
25951 * lib/same.c: Likewise.
25952 * lib/same.h: Likewise.
25953 * lib/save-cwd.c: Likewise.
25954 * lib/save-cwd.h: Likewise.
25955 * lib/savedir.c: Likewise.
25956 * lib/savedir.h: Likewise.
25957 * lib/savewd.c: Likewise.
25958 * lib/savewd.h: Likewise.
25959 * lib/search.in.h: Likewise.
25960 * lib/setenv.c: Likewise.
25961 * lib/setenv.h: Likewise.
25962 * lib/settime.c: Likewise.
25963 * lib/sh-quote.c: Likewise.
25964 * lib/sh-quote.h: Likewise.
25965 * lib/sig2str.c: Likewise.
25966 * lib/sig2str.h: Likewise.
25967 * lib/signal.in.h: Likewise.
25968 * lib/signbitd.c: Likewise.
25969 * lib/signbitf.c: Likewise.
25970 * lib/signbitl.c: Likewise.
25971 * lib/sigprocmask.c: Likewise.
25972 * lib/sincosl.c: Likewise.
25973 * lib/sleep.c: Likewise.
25974 * lib/sprintf.c: Likewise.
25975 * lib/sqrtl.c: Likewise.
25976 * lib/stat-time.h: Likewise.
25977 * lib/stdio--.h: Likewise.
25978 * lib/stdio-safer.h: Likewise.
25979 * lib/stdlib--.h: Likewise.
25980 * lib/stdlib-safer.h: Likewise.
25981 * lib/stdlib.in.h: Likewise.
25982 * lib/stpcpy.c: Likewise.
25983 * lib/stpncpy.c: Likewise.
25984 * lib/strchrnul.c: Likewise.
25985 * lib/strcspn.c: Likewise.
25986 * lib/strerror.c: Likewise.
25987 * lib/strftime.c: Likewise.
25988 * lib/strftime.h: Likewise.
25989 * lib/striconveh.c: Likewise.
25990 * lib/striconveh.h: Likewise.
25991 * lib/striconveha.c: Likewise.
25992 * lib/striconveha.h: Likewise.
25993 * lib/stripslash.c: Likewise.
25994 * lib/strnlen1.c: Likewise.
25995 * lib/strnlen1.h: Likewise.
25996 * lib/strtod.c: Likewise.
25997 * lib/strtoimax.c: Likewise.
25998 * lib/strtok_r.c: Likewise.
25999 * lib/strtol.c: Likewise.
26000 * lib/strtoll.c: Likewise.
26001 * lib/strtoul.c: Likewise.
26002 * lib/strtoull.c: Likewise.
26003 * lib/sysexits.in.h: Likewise.
26004 * lib/tempname.c: Likewise.
26005 * lib/tempname.h: Likewise.
26006 * lib/timespec.h: Likewise.
26007 * lib/tls.c: Likewise.
26008 * lib/tls.h: Likewise.
26009 * lib/tmpdir.c: Likewise.
26010 * lib/tmpdir.h: Likewise.
26011 * lib/tmpfile-safer.c: Likewise.
26012 * lib/tmpfile.c: Likewise.
26013 * lib/trigl.c: Likewise.
26014 * lib/trigl.h: Likewise.
26015 * lib/trim.c: Likewise.
26016 * lib/trim.h: Likewise.
26017 * lib/trunc.c: Likewise.
26018 * lib/truncf.c: Likewise.
26019 * lib/truncl.c: Likewise.
26020 * lib/tsearch.c: Likewise.
26021 * lib/unicodeio.c: Likewise.
26022 * lib/unicodeio.h: Likewise.
26023 * lib/unistd--.h: Likewise.
26024 * lib/unistd-safer.h: Likewise.
26025 * lib/unistdio/ulc-fprintf.c: Likewise.
26026 * lib/unistdio/ulc-vfprintf.c: Likewise.
26027 * lib/unlinkdir.c: Likewise.
26028 * lib/unlinkdir.h: Likewise.
26029 * lib/unlocked-io.h: Likewise.
26030 * lib/unsetenv.c: Likewise.
26031 * lib/userspec.c: Likewise.
26032 * lib/utime.c: Likewise.
26033 * lib/utimecmp.c: Likewise.
26034 * lib/utimecmp.h: Likewise.
26035 * lib/utimens.c: Likewise.
26036 * lib/verify.h: Likewise.
26037 * lib/verror.c: Likewise.
26038 * lib/verror.h: Likewise.
26039 * lib/version-etc-fsf.c: Likewise.
26040 * lib/version-etc.c: Likewise.
26041 * lib/version-etc.h: Likewise.
26042 * lib/vfprintf.c: Likewise.
26043 * lib/vprintf.c: Likewise.
26044 * lib/vsprintf.c: Likewise.
26045 * lib/w32spawn.h: Likewise.
26046 * lib/wait-process.c: Likewise.
26047 * lib/wait-process.h: Likewise.
26048 * lib/wcwidth.c: Likewise.
26049 * lib/write-any-file.c: Likewise.
26050 * lib/xalloc-die.c: Likewise.
26051 * lib/xalloc.h: Likewise.
26052 * lib/xasprintf.c: Likewise.
26053 * lib/xgetcwd.c: Likewise.
26054 * lib/xgetcwd.h: Likewise.
26055 * lib/xgetdomainname.c: Likewise.
26056 * lib/xgetdomainname.h: Likewise.
26057 * lib/xgethostname.c: Likewise.
26058 * lib/xmalloc.c: Likewise.
26059 * lib/xmalloca.c: Likewise.
26060 * lib/xmalloca.h: Likewise.
26061 * lib/xmemcoll.c: Likewise.
26062 * lib/xnanosleep.c: Likewise.
26063 * lib/xreadlink.c: Likewise.
26064 * lib/xreadlink.h: Likewise.
26065 * lib/xsetenv.c: Likewise.
26066 * lib/xsetenv.h: Likewise.
26067 * lib/xstriconv.c: Likewise.
26068 * lib/xstriconv.h: Likewise.
26069 * lib/xstrndup.c: Likewise.
26070 * lib/xstrndup.h: Likewise.
26071 * lib/xstrtod.c: Likewise.
26072 * lib/xstrtod.h: Likewise.
26073 * lib/xstrtol-error.c: Likewise.
26074 * lib/xstrtol.c: Likewise.
26075 * lib/xstrtol.h: Likewise.
26076 * lib/xtime.h: Likewise.
26077 * lib/xvasprintf.c: Likewise.
26078 * lib/xvasprintf.h: Likewise.
26079 * lib/yesno.c: Likewise.
26080 * lib/yesno.h: Likewise.
26081 * posix-modules: Likewise.
26082 * tests/test-alloca-opt.c: Likewise.
26083 * tests/test-arcfour.c: Likewise.
26084 * tests/test-arctwo.c: Likewise.
26085 * tests/test-argmatch.c: Likewise.
26086 * tests/test-argp-2.sh: Likewise.
26087 * tests/test-argp.c: Likewise.
26088 * tests/test-arpa_inet.c: Likewise.
26089 * tests/test-array_list.c: Likewise.
26090 * tests/test-array_oset.c: Likewise.
26091 * tests/test-atexit.c: Likewise.
26092 * tests/test-avltree_list.c: Likewise.
26093 * tests/test-avltree_oset.c: Likewise.
26094 * tests/test-avltreehash_list.c: Likewise.
26095 * tests/test-base64.c: Likewise.
26096 * tests/test-binary-io.c: Likewise.
26097 * tests/test-byteswap.c: Likewise.
26098 * tests/test-c-ctype.c: Likewise.
26099 * tests/test-c-strcasecmp.c: Likewise.
26100 * tests/test-c-strcasestr.c: Likewise.
26101 * tests/test-c-strncasecmp.c: Likewise.
26102 * tests/test-c-strstr.c: Likewise.
26103 * tests/test-canonicalize-lgpl.c: Likewise.
26104 * tests/test-canonicalize.c: Likewise.
26105 * tests/test-carray_list.c: Likewise.
26106 * tests/test-ceilf.c: Likewise.
26107 * tests/test-ceill.c: Likewise.
26108 * tests/test-count-one-bits.c: Likewise.
26109 * tests/test-crc.c: Likewise.
26110 * tests/test-dirname.c: Likewise.
26111 * tests/test-fbufmode.c: Likewise.
26112 * tests/test-fcntl.c: Likewise.
26113 * tests/test-fflush.c: Likewise.
26114 * tests/test-floorf.c: Likewise.
26115 * tests/test-floorl.c: Likewise.
26116 * tests/test-fopen.c: Likewise.
26117 * tests/test-fprintf-posix.c: Likewise.
26118 * tests/test-fprintf-posix.h: Likewise.
26119 * tests/test-fpurge.c: Likewise.
26120 * tests/test-freadable.c: Likewise.
26121 * tests/test-freadahead.c: Likewise.
26122 * tests/test-freading.c: Likewise.
26123 * tests/test-freopen.c: Likewise.
26124 * tests/test-frexp.c: Likewise.
26125 * tests/test-frexpl.c: Likewise.
26126 * tests/test-fseek.c: Likewise.
26127 * tests/test-fseeko.c: Likewise.
26128 * tests/test-fseterr.c: Likewise.
26129 * tests/test-fstrcmp.c: Likewise.
26130 * tests/test-ftell.c: Likewise.
26131 * tests/test-ftello.c: Likewise.
26132 * tests/test-fwritable.c: Likewise.
26133 * tests/test-fwriting.c: Likewise.
26134 * tests/test-getaddrinfo.c: Likewise.
26135 * tests/test-getpass.c: Likewise.
26136 * tests/test-gettimeofday.c: Likewise.
26137 * tests/test-hmac-md5.c: Likewise.
26138 * tests/test-hmac-sha1.c: Likewise.
26139 * tests/test-iconv.c: Likewise.
26140 * tests/test-iconvme.c: Likewise.
26141 * tests/test-inttypes.c: Likewise.
26142 * tests/test-isnan.c: Likewise.
26143 * tests/test-isnanf.c: Likewise.
26144 * tests/test-isnanl-nolibm.c: Likewise.
26145 * tests/test-isnanl.c: Likewise.
26146 * tests/test-isnanl.h: Likewise.
26147 * tests/test-ldexpl.c: Likewise.
26148 * tests/test-linked_list.c: Likewise.
26149 * tests/test-linkedhash_list.c: Likewise.
26150 * tests/test-locale.c: Likewise.
26151 * tests/test-localename.c: Likewise.
26152 * tests/test-lock.c: Likewise.
26153 * tests/test-lseek.c: Likewise.
26154 * tests/test-malloca.c: Likewise.
26155 * tests/test-math.c: Likewise.
26156 * tests/test-mbscasecmp.c: Likewise.
26157 * tests/test-mbscasestr1.c: Likewise.
26158 * tests/test-mbscasestr2.c: Likewise.
26159 * tests/test-mbscasestr3.c: Likewise.
26160 * tests/test-mbscasestr4.c: Likewise.
26161 * tests/test-mbschr.c: Likewise.
26162 * tests/test-mbscspn.c: Likewise.
26163 * tests/test-mbsncasecmp.c: Likewise.
26164 * tests/test-mbspbrk.c: Likewise.
26165 * tests/test-mbspcasecmp.c: Likewise.
26166 * tests/test-mbsrchr.c: Likewise.
26167 * tests/test-mbsspn.c: Likewise.
26168 * tests/test-mbsstr1.c: Likewise.
26169 * tests/test-mbsstr2.c: Likewise.
26170 * tests/test-mbsstr3.c: Likewise.
26171 * tests/test-md5.c: Likewise.
26172 * tests/test-memmem.c: Likewise.
26173 * tests/test-netinet_in.c: Likewise.
26174 * tests/test-open.c: Likewise.
26175 * tests/test-printf-frexp.c: Likewise.
26176 * tests/test-printf-frexpl.c: Likewise.
26177 * tests/test-printf-posix.c: Likewise.
26178 * tests/test-printf-posix.h: Likewise.
26179 * tests/test-rbtree_list.c: Likewise.
26180 * tests/test-rbtree_oset.c: Likewise.
26181 * tests/test-rbtreehash_list.c: Likewise.
26182 * tests/test-read-file.c: Likewise.
26183 * tests/test-rijndael.c: Likewise.
26184 * tests/test-search.c: Likewise.
26185 * tests/test-signbit.c: Likewise.
26186 * tests/test-sleep.c: Likewise.
26187 * tests/test-snprintf-posix.c: Likewise.
26188 * tests/test-snprintf-posix.h: Likewise.
26189 * tests/test-snprintf.c: Likewise.
26190 * tests/test-sprintf-posix.c: Likewise.
26191 * tests/test-sprintf-posix.h: Likewise.
26192 * tests/test-stat-time.c: Likewise.
26193 * tests/test-stdbool.c: Likewise.
26194 * tests/test-stdint.c: Likewise.
26195 * tests/test-stdio.c: Likewise.
26196 * tests/test-stdlib.c: Likewise.
26197 * tests/test-stpncpy.c: Likewise.
26198 * tests/test-strcasestr.c: Likewise.
26199 * tests/test-striconv.c: Likewise.
26200 * tests/test-striconveh.c: Likewise.
26201 * tests/test-striconveha.c: Likewise.
26202 * tests/test-string.c: Likewise.
26203 * tests/test-sys_select.c: Likewise.
26204 * tests/test-sys_socket.c: Likewise.
26205 * tests/test-sys_stat.c: Likewise.
26206 * tests/test-sys_time.c: Likewise.
26207 * tests/test-sysexits.c: Likewise.
26208 * tests/test-time.c: Likewise.
26209 * tests/test-tls.c: Likewise.
26210 * tests/test-trunc.c: Likewise.
26211 * tests/test-truncf.c: Likewise.
26212 * tests/test-truncl.c: Likewise.
26213 * tests/test-unistd.c: Likewise.
26214 * tests/test-vasnprintf-posix.c: Likewise.
26215 * tests/test-vasnprintf-posix2.c: Likewise.
26216 * tests/test-vasnprintf.c: Likewise.
26217 * tests/test-vasprintf-posix.c: Likewise.
26218 * tests/test-vasprintf.c: Likewise.
26219 * tests/test-verify.c: Likewise.
26220 * tests/test-vfprintf-posix.c: Likewise.
26221 * tests/test-vprintf-posix.c: Likewise.
26222 * tests/test-vsnprintf-posix.c: Likewise.
26223 * tests/test-vsnprintf.c: Likewise.
26224 * tests/test-vsprintf-posix.c: Likewise.
26225 * tests/test-wchar.c: Likewise.
26226 * tests/test-wctype.c: Likewise.
26227 * tests/test-wcwidth.c: Likewise.
26228 * tests/test-xstrtol.c: Likewise.
26229 * tests/test-xvasprintf.c: Likewise.
26230 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26231 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26232 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26233 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26234 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26235 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26236 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26237 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26238 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26239 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26240 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26241 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26242 * tests/uniname/test-uninames.c: Likewise.
26243 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26244 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
26245 * tests/unistdio/test-u16-printf1.h: Likewise.
26246 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26247 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26248 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26249 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26250 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26251 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26252 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26253 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
26254 * tests/unistdio/test-u32-printf1.h: Likewise.
26255 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26256 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26257 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26258 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26259 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26260 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26261 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26262 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
26263 * tests/unistdio/test-u8-printf1.h: Likewise.
26264 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26265 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26266 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26267 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26268 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26269 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26270 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26271 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
26272 * tests/unistdio/test-ulc-printf1.h: Likewise.
26273 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26274 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26275 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26276 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26277 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26278 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26279 * tests/uniwidth/test-u16-strwidth.c: Likewise.
26280 * tests/uniwidth/test-u16-width.c: Likewise.
26281 * tests/uniwidth/test-u32-strwidth.c: Likewise.
26282 * tests/uniwidth/test-u32-width.c: Likewise.
26283 * tests/uniwidth/test-u8-strwidth.c: Likewise.
26284 * tests/uniwidth/test-u8-width.c: Likewise.
26285 * tests/uniwidth/test-uc_width.c: Likewise.
26286 * config/srclist-update: Likewise.
26287 (fixlicense): Update to GPLv3+.
26289 Change copyright notice from LGPLv2.1+ to LGPLv3+.
26290 * tests/test-tsearch.c: Change copyright notice.
26292 Change copyright notice from LGPLv2.0+ to LGPLv3+.
26293 * lib/c-strcaseeq.h: Change copyright notice.
26294 * lib/streq.h: Likewise.
26295 * lib/uniconv.h: Likewise.
26296 * lib/uniconv/u-conv-from-enc.h: Likewise.
26297 * lib/uniconv/u-conv-to-enc.h: Likewise.
26298 * lib/uniconv/u-strconv-from-enc.h: Likewise.
26299 * lib/uniconv/u-strconv-to-enc.h: Likewise.
26300 * lib/uniconv/u16-conv-from-enc.c: Likewise.
26301 * lib/uniconv/u16-conv-to-enc.c: Likewise.
26302 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
26303 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
26304 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
26305 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
26306 * lib/uniconv/u32-conv-from-enc.c: Likewise.
26307 * lib/uniconv/u32-conv-to-enc.c: Likewise.
26308 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
26309 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
26310 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
26311 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
26312 * lib/uniconv/u8-conv-from-enc.c: Likewise.
26313 * lib/uniconv/u8-conv-to-enc.c: Likewise.
26314 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
26315 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
26316 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
26317 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
26318 * lib/uniname.h: Likewise.
26319 * lib/uniname/uniname.c: Likewise.
26320 * lib/unistdio.h: Likewise.
26321 * lib/unistdio/u-asnprintf.h: Likewise.
26322 * lib/unistdio/u-asprintf.h: Likewise.
26323 * lib/unistdio/u-printf-args.c: Likewise.
26324 * lib/unistdio/u-printf-args.h: Likewise.
26325 * lib/unistdio/u-printf-parse.h: Likewise.
26326 * lib/unistdio/u-snprintf.h: Likewise.
26327 * lib/unistdio/u-sprintf.h: Likewise.
26328 * lib/unistdio/u-vasprintf.h: Likewise.
26329 * lib/unistdio/u-vsnprintf.h: Likewise.
26330 * lib/unistdio/u-vsprintf.h: Likewise.
26331 * lib/unistdio/u16-asnprintf.c: Likewise.
26332 * lib/unistdio/u16-asprintf.c: Likewise.
26333 * lib/unistdio/u16-printf-parse.c: Likewise.
26334 * lib/unistdio/u16-snprintf.c: Likewise.
26335 * lib/unistdio/u16-sprintf.c: Likewise.
26336 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
26337 * lib/unistdio/u16-u16-asprintf.c: Likewise.
26338 * lib/unistdio/u16-u16-snprintf.c: Likewise.
26339 * lib/unistdio/u16-u16-sprintf.c: Likewise.
26340 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
26341 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
26342 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
26343 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
26344 * lib/unistdio/u16-vasnprintf.c: Likewise.
26345 * lib/unistdio/u16-vasprintf.c: Likewise.
26346 * lib/unistdio/u16-vsnprintf.c: Likewise.
26347 * lib/unistdio/u16-vsprintf.c: Likewise.
26348 * lib/unistdio/u32-asnprintf.c: Likewise.
26349 * lib/unistdio/u32-asprintf.c: Likewise.
26350 * lib/unistdio/u32-printf-parse.c: Likewise.
26351 * lib/unistdio/u32-snprintf.c: Likewise.
26352 * lib/unistdio/u32-sprintf.c: Likewise.
26353 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
26354 * lib/unistdio/u32-u32-asprintf.c: Likewise.
26355 * lib/unistdio/u32-u32-snprintf.c: Likewise.
26356 * lib/unistdio/u32-u32-sprintf.c: Likewise.
26357 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
26358 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
26359 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
26360 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
26361 * lib/unistdio/u32-vasnprintf.c: Likewise.
26362 * lib/unistdio/u32-vasprintf.c: Likewise.
26363 * lib/unistdio/u32-vsnprintf.c: Likewise.
26364 * lib/unistdio/u32-vsprintf.c: Likewise.
26365 * lib/unistdio/u8-asnprintf.c: Likewise.
26366 * lib/unistdio/u8-asprintf.c: Likewise.
26367 * lib/unistdio/u8-printf-parse.c: Likewise.
26368 * lib/unistdio/u8-snprintf.c: Likewise.
26369 * lib/unistdio/u8-sprintf.c: Likewise.
26370 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
26371 * lib/unistdio/u8-u8-asprintf.c: Likewise.
26372 * lib/unistdio/u8-u8-snprintf.c: Likewise.
26373 * lib/unistdio/u8-u8-sprintf.c: Likewise.
26374 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
26375 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
26376 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
26377 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
26378 * lib/unistdio/u8-vasnprintf.c: Likewise.
26379 * lib/unistdio/u8-vasprintf.c: Likewise.
26380 * lib/unistdio/u8-vsnprintf.c: Likewise.
26381 * lib/unistdio/u8-vsprintf.c: Likewise.
26382 * lib/unistdio/ulc-asnprintf.c: Likewise.
26383 * lib/unistdio/ulc-asprintf.c: Likewise.
26384 * lib/unistdio/ulc-printf-parse.c: Likewise.
26385 * lib/unistdio/ulc-snprintf.c: Likewise.
26386 * lib/unistdio/ulc-sprintf.c: Likewise.
26387 * lib/unistdio/ulc-vasnprintf.c: Likewise.
26388 * lib/unistdio/ulc-vasprintf.c: Likewise.
26389 * lib/unistdio/ulc-vsnprintf.c: Likewise.
26390 * lib/unistdio/ulc-vsprintf.c: Likewise.
26391 * lib/unistr.h: Likewise.
26392 * lib/unistr/u-cpy-alloc.h: Likewise.
26393 * lib/unistr/u-cpy.h: Likewise.
26394 * lib/unistr/u-endswith.h: Likewise.
26395 * lib/unistr/u-move.h: Likewise.
26396 * lib/unistr/u-set.h: Likewise.
26397 * lib/unistr/u-startswith.h: Likewise.
26398 * lib/unistr/u-stpcpy.h: Likewise.
26399 * lib/unistr/u-stpncpy.h: Likewise.
26400 * lib/unistr/u-strcat.h: Likewise.
26401 * lib/unistr/u-strcpy.h: Likewise.
26402 * lib/unistr/u-strcspn.h: Likewise.
26403 * lib/unistr/u-strdup.h: Likewise.
26404 * lib/unistr/u-strlen.h: Likewise.
26405 * lib/unistr/u-strncat.h: Likewise.
26406 * lib/unistr/u-strncpy.h: Likewise.
26407 * lib/unistr/u-strnlen.h: Likewise.
26408 * lib/unistr/u-strpbrk.h: Likewise.
26409 * lib/unistr/u-strspn.h: Likewise.
26410 * lib/unistr/u-strstr.h: Likewise.
26411 * lib/unistr/u-strtok.h: Likewise.
26412 * lib/unistr/u16-check.c: Likewise.
26413 * lib/unistr/u16-chr.c: Likewise.
26414 * lib/unistr/u16-cmp.c: Likewise.
26415 * lib/unistr/u16-cpy-alloc.c: Likewise.
26416 * lib/unistr/u16-cpy.c: Likewise.
26417 * lib/unistr/u16-endswith.c: Likewise.
26418 * lib/unistr/u16-mblen.c: Likewise.
26419 * lib/unistr/u16-mbsnlen.c: Likewise.
26420 * lib/unistr/u16-mbtouc-aux.c: Likewise.
26421 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
26422 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
26423 * lib/unistr/u16-mbtouc.c: Likewise.
26424 * lib/unistr/u16-mbtoucr.c: Likewise.
26425 * lib/unistr/u16-move.c: Likewise.
26426 * lib/unistr/u16-next.c: Likewise.
26427 * lib/unistr/u16-prev.c: Likewise.
26428 * lib/unistr/u16-set.c: Likewise.
26429 * lib/unistr/u16-startswith.c: Likewise.
26430 * lib/unistr/u16-stpcpy.c: Likewise.
26431 * lib/unistr/u16-stpncpy.c: Likewise.
26432 * lib/unistr/u16-strcat.c: Likewise.
26433 * lib/unistr/u16-strchr.c: Likewise.
26434 * lib/unistr/u16-strcmp.c: Likewise.
26435 * lib/unistr/u16-strcpy.c: Likewise.
26436 * lib/unistr/u16-strcspn.c: Likewise.
26437 * lib/unistr/u16-strdup.c: Likewise.
26438 * lib/unistr/u16-strlen.c: Likewise.
26439 * lib/unistr/u16-strmblen.c: Likewise.
26440 * lib/unistr/u16-strmbtouc.c: Likewise.
26441 * lib/unistr/u16-strncat.c: Likewise.
26442 * lib/unistr/u16-strncmp.c: Likewise.
26443 * lib/unistr/u16-strncpy.c: Likewise.
26444 * lib/unistr/u16-strnlen.c: Likewise.
26445 * lib/unistr/u16-strpbrk.c: Likewise.
26446 * lib/unistr/u16-strrchr.c: Likewise.
26447 * lib/unistr/u16-strspn.c: Likewise.
26448 * lib/unistr/u16-strstr.c: Likewise.
26449 * lib/unistr/u16-strtok.c: Likewise.
26450 * lib/unistr/u16-to-u32.c: Likewise.
26451 * lib/unistr/u16-to-u8.c: Likewise.
26452 * lib/unistr/u16-uctomb-aux.c: Likewise.
26453 * lib/unistr/u16-uctomb.c: Likewise.
26454 * lib/unistr/u32-check.c: Likewise.
26455 * lib/unistr/u32-chr.c: Likewise.
26456 * lib/unistr/u32-cmp.c: Likewise.
26457 * lib/unistr/u32-cpy-alloc.c: Likewise.
26458 * lib/unistr/u32-cpy.c: Likewise.
26459 * lib/unistr/u32-endswith.c: Likewise.
26460 * lib/unistr/u32-mblen.c: Likewise.
26461 * lib/unistr/u32-mbsnlen.c: Likewise.
26462 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
26463 * lib/unistr/u32-mbtouc.c: Likewise.
26464 * lib/unistr/u32-mbtoucr.c: Likewise.
26465 * lib/unistr/u32-move.c: Likewise.
26466 * lib/unistr/u32-next.c: Likewise.
26467 * lib/unistr/u32-prev.c: Likewise.
26468 * lib/unistr/u32-set.c: Likewise.
26469 * lib/unistr/u32-startswith.c: Likewise.
26470 * lib/unistr/u32-stpcpy.c: Likewise.
26471 * lib/unistr/u32-stpncpy.c: Likewise.
26472 * lib/unistr/u32-strcat.c: Likewise.
26473 * lib/unistr/u32-strchr.c: Likewise.
26474 * lib/unistr/u32-strcmp.c: Likewise.
26475 * lib/unistr/u32-strcpy.c: Likewise.
26476 * lib/unistr/u32-strcspn.c: Likewise.
26477 * lib/unistr/u32-strdup.c: Likewise.
26478 * lib/unistr/u32-strlen.c: Likewise.
26479 * lib/unistr/u32-strmblen.c: Likewise.
26480 * lib/unistr/u32-strmbtouc.c: Likewise.
26481 * lib/unistr/u32-strncat.c: Likewise.
26482 * lib/unistr/u32-strncmp.c: Likewise.
26483 * lib/unistr/u32-strncpy.c: Likewise.
26484 * lib/unistr/u32-strnlen.c: Likewise.
26485 * lib/unistr/u32-strpbrk.c: Likewise.
26486 * lib/unistr/u32-strrchr.c: Likewise.
26487 * lib/unistr/u32-strspn.c: Likewise.
26488 * lib/unistr/u32-strstr.c: Likewise.
26489 * lib/unistr/u32-strtok.c: Likewise.
26490 * lib/unistr/u32-to-u16.c: Likewise.
26491 * lib/unistr/u32-to-u8.c: Likewise.
26492 * lib/unistr/u32-uctomb.c: Likewise.
26493 * lib/unistr/u8-check.c: Likewise.
26494 * lib/unistr/u8-chr.c: Likewise.
26495 * lib/unistr/u8-cmp.c: Likewise.
26496 * lib/unistr/u8-cpy-alloc.c: Likewise.
26497 * lib/unistr/u8-cpy.c: Likewise.
26498 * lib/unistr/u8-endswith.c: Likewise.
26499 * lib/unistr/u8-mblen.c: Likewise.
26500 * lib/unistr/u8-mbsnlen.c: Likewise.
26501 * lib/unistr/u8-mbtouc-aux.c: Likewise.
26502 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
26503 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
26504 * lib/unistr/u8-mbtouc.c: Likewise.
26505 * lib/unistr/u8-mbtoucr.c: Likewise.
26506 * lib/unistr/u8-move.c: Likewise.
26507 * lib/unistr/u8-next.c: Likewise.
26508 * lib/unistr/u8-prev.c: Likewise.
26509 * lib/unistr/u8-set.c: Likewise.
26510 * lib/unistr/u8-startswith.c: Likewise.
26511 * lib/unistr/u8-stpcpy.c: Likewise.
26512 * lib/unistr/u8-stpncpy.c: Likewise.
26513 * lib/unistr/u8-strcat.c: Likewise.
26514 * lib/unistr/u8-strchr.c: Likewise.
26515 * lib/unistr/u8-strcmp.c: Likewise.
26516 * lib/unistr/u8-strcpy.c: Likewise.
26517 * lib/unistr/u8-strcspn.c: Likewise.
26518 * lib/unistr/u8-strdup.c: Likewise.
26519 * lib/unistr/u8-strlen.c: Likewise.
26520 * lib/unistr/u8-strmblen.c: Likewise.
26521 * lib/unistr/u8-strmbtouc.c: Likewise.
26522 * lib/unistr/u8-strncat.c: Likewise.
26523 * lib/unistr/u8-strncmp.c: Likewise.
26524 * lib/unistr/u8-strncpy.c: Likewise.
26525 * lib/unistr/u8-strnlen.c: Likewise.
26526 * lib/unistr/u8-strpbrk.c: Likewise.
26527 * lib/unistr/u8-strrchr.c: Likewise.
26528 * lib/unistr/u8-strspn.c: Likewise.
26529 * lib/unistr/u8-strstr.c: Likewise.
26530 * lib/unistr/u8-strtok.c: Likewise.
26531 * lib/unistr/u8-to-u16.c: Likewise.
26532 * lib/unistr/u8-to-u32.c: Likewise.
26533 * lib/unistr/u8-uctomb-aux.c: Likewise.
26534 * lib/unistr/u8-uctomb.c: Likewise.
26535 * lib/unitypes.h: Likewise.
26536 * lib/uniwidth.h: Likewise.
26537 * lib/uniwidth/cjk.h: Likewise.
26538 * lib/uniwidth/u16-strwidth.c: Likewise.
26539 * lib/uniwidth/u16-width.c: Likewise.
26540 * lib/uniwidth/u32-strwidth.c: Likewise.
26541 * lib/uniwidth/u32-width.c: Likewise.
26542 * lib/uniwidth/u8-strwidth.c: Likewise.
26543 * lib/uniwidth/u8-width.c: Likewise.
26544 * lib/uniwidth/width.c: Likewise.
26546 2007-10-07 Bruno Haible <bruno@clisp.org>
26548 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
26549 The file is still under LGPL (see modules/inttypes).
26551 2007-10-06 Bruno Haible <bruno@clisp.org>
26553 * modules/trunc (Dependencies): Add 'extensions'.
26554 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
26555 Reported by Ben Pfaff <blp@gnu.org>.
26557 2007-10-06 Bruno Haible <bruno@clisp.org>
26559 * modules/freopen-tests: New file.
26560 * tests/test-freopen.c: New file.
26562 * modules/fopen-tests: New file.
26563 * tests/test-fopen.c: New file.
26565 * modules/fopen: New file.
26566 * lib/fopen.c: New file.
26567 * m4/fopen.m4: New file.
26568 * modules/freopen: New file.
26569 * lib/freopen.c: New file.
26570 * m4/freopen.m4: New file.
26571 * lib/stdio.in.h (fopen, freopen): New declarations.
26572 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
26573 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
26574 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
26575 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
26576 * doc/functions/fopen.texi: Mention the 'fopen' module.
26577 * doc/functions/freopen.texi: Mention the 'freopen' module.
26579 2007-10-06 Bruno Haible <bruno@clisp.org>
26581 * modules/open-tests: New file.
26582 * tests/test-open.c: New file.
26584 * modules/open: New file.
26585 * lib/open.c: New file.
26586 * m4/open.m4: New file.
26587 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
26589 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
26590 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
26592 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
26593 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
26595 * doc/functions/open.texi: Mention the 'open' module.
26597 2007-10-04 Bruno Haible <bruno@clisp.org>
26599 * modules/ceill-tests: New file.
26600 * tests/test-ceill.c: New file.
26602 * modules/ceill: New file.
26603 * lib/ceill.c: Replace entire file.
26604 * m4/ceill.m4: New file.
26605 * lib/math.in.h (ceill): Replace declaration.
26606 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
26607 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
26608 * doc/functions/ceill.texi: Mention the 'ceill' module.
26609 * modules/mathl (Files): Remove lib/ceill.c.
26610 (Depends-on): Add ceill.
26612 2007-10-04 Bruno Haible <bruno@clisp.org>
26614 * modules/ceilf-tests: New file.
26615 * tests/test-ceilf.c: New file.
26617 * modules/ceilf: New file.
26618 * lib/ceil.c: New file.
26619 * lib/ceilf.c: New file.
26620 * m4/ceilf.m4: New file.
26621 * lib/math.in.h (ceilf): New declaration.
26622 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
26624 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
26626 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
26628 2007-10-04 Bruno Haible <bruno@clisp.org>
26630 * modules/floorl-tests: New file.
26631 * tests/test-floorl.c: New file.
26633 * modules/floorl: New file.
26634 * lib/floorl.c: Replace entire file.
26635 * m4/floorl.m4: New file.
26636 * lib/math.in.h (floorl): Replace declaration.
26637 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
26638 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
26639 * doc/functions/floorl.texi: Mention the 'floorl' module.
26640 * modules/mathl (Files): Remove lib/floorl.c.
26641 (Depends-on): Add floorl.
26643 2007-10-04 Bruno Haible <bruno@clisp.org>
26645 * modules/floorf-tests: New file.
26646 * tests/test-floorf.c: New file.
26648 * modules/floorf: New file.
26649 * lib/floor.c: New file.
26650 * lib/floorf.c: New file.
26651 * m4/floorf.m4: New file.
26652 * lib/math.in.h (floorf): New declaration.
26653 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
26655 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
26657 * doc/functions/floorf.texi: Mention the 'floorf' module.
26659 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
26660 Bruno Haible <bruno@clisp.org>
26662 Advertise for the Git server instead of the CVS server.
26663 * doc/gnulib-intro.texi (Steady Development): Mention the Git
26664 repository instead of the CVS one.
26665 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
26666 about all VCS systems generically.
26667 * doc/gnulib.texi (Introduction): Capitalize `Git'.
26669 2007-10-04 Bruno Haible <bruno@clisp.org>
26671 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
26673 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
26675 2007-10-04 Bruno Haible <bruno@clisp.org>
26677 * modules/truncl-tests: New file.
26678 * tests/test-truncl.c: New file.
26680 * modules/truncl: New file.
26681 * lib/truncl.c: New file.
26682 * m4/truncl.m4: New file.
26683 * lib/math.in.h (truncl): New declaration.
26684 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
26686 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
26688 * doc/functions/truncl.texi: Mention the 'truncl' module.
26690 2007-10-04 Bruno Haible <bruno@clisp.org>
26692 * modules/truncf-tests: New file.
26693 * tests/test-truncf.c: New file.
26695 * modules/truncf: New file.
26696 * lib/trunc.c: Make paramerizable through USE_* macros.
26697 * lib/truncf.c: New file.
26698 * m4/truncf.m4: New file.
26699 * lib/math.in.h (truncf): New declaration.
26700 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
26702 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
26704 * doc/functions/truncf.texi: Mention the 'truncf' module.
26706 2007-10-03 Bruno Haible <bruno@clisp.org>
26708 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
26709 augmentation also for tests modules.
26710 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
26711 * modules/atexit-tests (Makefile.am): Likewise.
26712 * modules/binary-io-tests (Makefile.am): Likewise.
26713 * modules/c-strcase-tests (Makefile.am): Likewise.
26714 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
26715 * modules/canonicalize-tests (Makefile.am): Likewise.
26716 * modules/closein-tests (Makefile.am): Likewise.
26717 * modules/fprintf-posix-tests (Makefile.am): Likewise.
26718 * modules/freadahead-tests (Makefile.am): Likewise.
26719 * modules/fseek-tests (Makefile.am): Likewise.
26720 * modules/fseeko-tests (Makefile.am): Likewise.
26721 * modules/ftell-tests (Makefile.am): Likewise.
26722 * modules/ftello-tests (Makefile.am): Likewise.
26723 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
26724 * modules/isnanl-tests (Makefile.am): Likewise.
26725 * modules/lseek-tests (Makefile.am): Likewise.
26726 * modules/mbscasecmp-tests (Makefile.am): Likewise.
26727 * modules/mbscasestr-tests (Makefile.am): Likewise.
26728 * modules/mbschr-tests (Makefile.am): Likewise.
26729 * modules/mbscspn-tests (Makefile.am): Likewise.
26730 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
26731 * modules/mbspbrk-tests (Makefile.am): Likewise.
26732 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
26733 * modules/mbsrchr-tests (Makefile.am): Likewise.
26734 * modules/mbsspn-tests (Makefile.am): Likewise.
26735 * modules/mbsstr-tests (Makefile.am): Likewise.
26736 * modules/printf-posix-tests (Makefile.am): Likewise.
26737 * modules/snprintf-posix-tests (Makefile.am): Likewise.
26738 * modules/sprintf-posix-tests (Makefile.am): Likewise.
26739 * modules/tsearch-tests (Makefile.am): Likewise.
26740 * modules/uniname/uniname-tests (Makefile.am): Likewise.
26741 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
26742 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
26743 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
26744 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
26745 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
26746 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
26747 * modules/vprintf-posix-tests (Makefile.am): Likewise.
26748 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
26749 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
26750 * modules/xstrtoimax-tests (Makefile.am): Likewise.
26751 * modules/xstrtol-tests (Makefile.am): Likewise.
26752 * modules/xstrtoumax-tests (Makefile.am): Likewise.
26753 * modules/yesno-tests (Makefile.am): Likewise.
26755 2007-10-03 Bruno Haible <bruno@clisp.org>
26757 * modules/trunc-tests: New file.
26758 * tests/test-trunc.c: New file.
26760 * modules/trunc: New file.
26761 * lib/trunc.c: New file.
26762 * m4/trunc.m4: New file.
26763 * lib/math.in.h (trunc): New declaration.
26764 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
26766 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
26768 * doc/functions/trunc.texi: Mention the 'trunc' module.
26770 2007-10-03 Bruno Haible <bruno@clisp.org>
26772 * tests/test-fpending.c: New file, mostly copied
26773 from coreutils/lib/t-fpending.c.
26774 * modules/fpending-tests: New file.
26776 2007-10-03 Bruno Haible <bruno@clisp.org>
26778 Port the stdio extensions to QNX (untested).
26779 * lib/fseterr.c (fseterr): Add support for QNX.
26780 * lib/fbufmode.c (fbufmode): Likewise.
26781 * lib/freadable.c (freadable): Likewise.
26782 * lib/fwritable.c (fwritable): Likewise.
26783 * lib/freading.c (freading): Likewise.
26784 * lib/fwriting.c (fwriting): Likewise.
26785 * lib/freadahead.c (freadahed): Likewise.
26786 * lib/fpurge.c (fpurge): Likewise.
26787 * lib/fseeko.c (rpl_fseeko): Likewise.
26789 2007-10-03 Bruno Haible <bruno@clisp.org>
26790 Jim Meyering <jim@meyering.net>
26791 Eric Blake <ebb9@byu.net>
26793 * doc/relocatable.texi: Use @command instead of @program.
26795 2007-10-02 Jim Meyering <jim@meyering.net>
26797 Perform one more "_.h" -> ".in.h" substitution.
26798 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
26799 instead of unistd_.h here, too.
26801 2007-10-01 Bruno Haible <bruno@clisp.org>
26803 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
26804 Needed for the alloca-opt module.
26806 2007-09-30 Bruno Haible <bruno@clisp.org>
26808 * lib/alloca.in.h: Renamed from lib/alloca_.h.
26809 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
26811 * lib/argz.in.h: Renamed from lib/argz_.h.
26812 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
26813 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
26814 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
26816 * lib/dirent.in.h: Renamed from lib/dirent_.h.
26817 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
26819 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
26820 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
26822 * lib/float.in.h: Renamed from lib/float_.h.
26823 * modules/float (Files, Makefile.am): Use float.in.h instead of
26825 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
26826 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
26828 * lib/getopt.in.h: Renamed from lib/getopt_.h.
26829 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
26831 * lib/glob.in.h: Renamed from lib/glob_.h.
26832 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
26833 * lib/iconv.in.h: Renamed from lib/iconv_.h.
26834 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
26836 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
26837 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
26839 * lib/locale.in.h: Renamed from lib/locale_.h.
26840 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
26842 * lib/math.in.h: Renamed from lib/math_.h.
26843 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
26844 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
26845 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
26846 of netinet_in_.h. Add dependency.
26847 * lib/poll.in.h: Renamed from lib/poll_.h.
26848 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
26849 * lib/search.in.h: Renamed from lib/search_.h.
26850 * modules/search (Files, Makefile.am): Use search.in.h instead of
26852 * lib/signal.in.h: Renamed from lib/signal_.h.
26853 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
26855 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
26856 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
26858 * lib/stdint.in.h: Renamed from lib/stdint_.h.
26859 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
26861 * lib/stdio.in.h: Renamed from lib/stdio_.h.
26862 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
26864 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
26865 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
26867 * lib/string.in.h: Renamed from lib/string_.h.
26868 * modules/string (Files, Makefile.am): Use string.in.h instead of
26870 * doc/gnulib-tool.texi (Initial import): Update.
26871 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
26872 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
26873 of sys_select_.h. Add dependency.
26874 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
26875 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
26877 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
26878 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
26880 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
26881 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
26883 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
26884 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
26886 * lib/time.in.h: Renamed from lib/time_.h.
26887 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
26888 * lib/unistd.in.h: Renamed from lib/unistd_.h.
26889 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
26891 * lib/wchar.in.h: Renamed from lib/wchar_.h.
26892 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
26894 * lib/wctype.in.h: Renamed from lib/wctype_.h.
26895 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
26897 * build-aux/bootstrap (slurp): Update.
26898 * lib/.cppi-disable: Update.
26900 2007-09-30 Bruno Haible <bruno@clisp.org>
26902 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
26905 2007-09-30 Bruno Haible <bruno@clisp.org>
26907 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
26909 2007-09-29 Bruno Haible <bruno@clisp.org>
26911 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
26913 2007-09-29 Bruno Haible <bruno@clisp.org>
26915 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
26916 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
26917 * build-aux/install-reloc: Compile also areadlink.c.
26918 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
26920 2007-09-29 Bruno Haible <bruno@clisp.org>
26922 * gnulib-tool (func_emit_initmacro_done): Indentation.
26924 2007-09-29 Bruno Haible <bruno@clisp.org>
26926 * README: Add CVS checkout update instructions.
26927 Info from Bob Proulx <bob@proulx.com>.
26929 2007-09-28 Eric Blake <ebb9@byu.net>
26931 Provide move-if-change.
26932 * build-aux/move-if-change: New file, based on best practice
26933 rather than any canonical upstream location.
26935 2007-09-28 Jim Meyering <jim@meyering.net>
26937 Fix canonicalize loop-detection corner case.
26938 Do not attempt to stat the symlink values stored via seen_triple.
26939 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
26940 on linux-2.6.18, (but not 2.6.22).
26941 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
26942 triple_compare. The former compares dev,ino,filename, while the latter
26943 would actually stat dirname(filename) when dev and ino were equal.
26944 * lib/hash-triple.c: Install <string.h>.
26946 (triple_compare_ino_str): New function.
26947 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
26949 2007-09-28 Eric Blake <ebb9@byu.net>
26951 Enforce that AC_REPLACE_FUNCS files exist.
26952 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
26953 override check for typos.
26955 Fix test-closein on Solaris 10.
26956 * tests/test-closein.c (main): Don't assume stdin can be inherited
26957 closed on all systems.
26958 * tests/test-closein.sh: Likewise.
26959 Reported by Piotr Tarnowski.
26961 2007-09-28 Jim Meyering <jim@meyering.net>
26963 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
26965 2007-09-27 Jim Meyering <jim@meyering.net>
26967 canonicalize: Avoid a false-positive cycle failure.
26968 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
26969 Sort. Remove cycle-check.
26970 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
26972 (seen_triple): New function.
26973 (canonicalize_filename_mode): Use it instead of cycle-check.
26974 * tests/test-canonicalize.c: Add a test for this bug.
26975 * tests/test-canonicalize.sh: Set up and run the test.
26977 New module, file-set, from coreutils.
26978 * modules/file-set: Define it.
26979 * lib/file-set.c, lib/file-set.h: Implement.
26981 New module, hash-triple, from coreutils.
26982 * modules/hash-triple: Define it.
26983 * lib/hash-triple.c, lib/hash-triple.h: Implement.
26985 2007-09-25 Eric Blake <ebb9@byu.net>
26987 Fix strerror on Interix.
26988 * lib/string_.h (strerror): Declare replacement.
26989 * doc/functions/strerror.texi (strerror): Document the Interix
26991 * modules/string (Makefile.am): Support new hooks.
26992 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
26993 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
26994 gl_FUNC_STRERROR_SEPARATE.
26995 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
26996 * lib/strerror.c (rpl_strerror): Provide replacement.
26997 * modules/strerror (Depends-on): Add string.
26998 (configure.ac): Detect use of module.
26999 * tests/test-strerror.c: New file.
27000 * modules/strerror-tests: New test module.
27001 * modules/argp (Depends-on): Add strerror.
27002 * modules/error (Depends-on): Likewise.
27003 Reported by Martin Koeppe.
27005 2007-09-24 Bruno Haible <bruno@clisp.org>
27007 * README: Update git instructions.
27009 2007-09-24 Eric Blake <ebb9@byu.net>
27011 Revert fpending breakage from 2007-09-08.
27012 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
27015 2007-09-24 Jim Meyering <jim@meyering.net>
27017 filenamecat.c: Add a test.
27018 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
27019 showing how the function works when DIR is the empty string.
27021 2007-09-21 Simon Josefsson <simon@josefsson.org>
27023 * tests/test-canonicalize.sh: Turn on executable bit.
27025 2007-09-19 Eric Blake <ebb9@byu.net>
27027 * README: Update CVS instructions.
27029 2007-09-18 Bruno Haible <bruno@clisp.org>
27031 * modules/areadlink: New file.
27032 * lib/areadlink.h (areadlink): New declaration.
27033 * lib/areadlink.c: New file, based on lib/xreadlink.c.
27035 2007-09-17 Jim Meyering <jim@meyering.net>
27037 * lib/savewd.c (ESTALE) [!defined]: Define.
27038 Reported to be required on Interix by Martin Koeppe.
27040 2007-09-17 Bruno Haible <bruno@clisp.org>
27042 * gnulib-tool (func_version): Use $version.
27044 2007-09-16 Bruno Haible <bruno@clisp.org>
27046 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
27047 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
27048 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
27049 Reported by Greg Schafer <gschafer@zip.com.au>.
27051 2007-09-15 Bruno Haible <bruno@clisp.org>
27053 * gnulib-tool (sed): Try a little harder to make bash understand the
27055 Reported by Bruce Korb <bruce.korb@gmail.com>.
27057 2007-09-13 Eric Blake <ebb9@byu.net>
27059 * ChangeLog: Remove conflict markers.
27061 2007-09-13 Simon Josefsson <simon@josefsson.org>
27063 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
27064 Reported by Bruno Haible <bruno@clisp.org>.
27066 2007-09-12 Bruno Haible <bruno@clisp.org>
27068 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
27069 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
27072 2007-09-12 Eric Blake <ebb9@byu.net>
27074 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
27075 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
27076 Autoconf definition.
27077 * modules/euidaccess (Depends-on): Add extensions, for
27078 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
27079 * modules/fnmatch (Depends-on): Likewise.
27080 * modules/getaddrinfo (Depends-on): Likewise.
27081 * modules/getdelim (Depends-on): Likewise.
27082 * modules/getline (Depends-on): Likewise.
27083 * modules/getsubopt (Depends-on): Likewise.
27084 * modules/gettext (Depends-on): Likewise.
27085 * modules/group-member (Depends-on): Likewise.
27086 * modules/mbchar (Depends-on): Likewise.
27087 * modules/memmem (Depends-on): Likewise.
27088 * modules/mempcpy (Depends-on): Likewise.
27089 * modules/memrchr (Depends-on): Likewise.
27090 * modules/pagealign_alloc (Depends-on): Likewise.
27091 * modules/readutmp (Depends-on): Likewise.
27092 * modules/stpcpy (Depends-on): Likewise.
27093 * modules/stpncpy (Depends-on): Likewise.
27094 * modules/strchrnul (Depends-on): Likewise.
27095 * modules/strndup (Depends-on): Likewise.
27096 * modules/strsep (Depends-on): Likewise.
27097 * modules/strverscmp (Depends-on): Likewise.
27098 * modules/vasprintf (Depends-on): Likewise.
27099 * modules/wcwidth (Depends-on): Likewise.
27100 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
27101 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
27102 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
27103 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
27104 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27105 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27106 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
27107 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
27108 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
27109 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
27110 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27111 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
27112 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
27113 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27114 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
27115 * m4/readutmp.m4 (gl_READUTMP): Likewise.
27116 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
27117 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
27118 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27119 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
27120 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
27121 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
27122 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
27123 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
27124 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
27125 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27126 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
27127 so that lock.m4 can be used in gettext without extensions module.
27129 2007-09-11 Bruno Haible <bruno@clisp.org>
27131 * m4/isc-posix.m4: Remove file.
27132 Suggested by Eric Blake.
27134 2007-09-11 Eric Blake <ebb9@byu.net>
27136 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
27138 2007-09-10 Bruno Haible <bruno@clisp.org>
27140 * posix-modules: Fix typo in error message.
27141 Reported by Matt <mkraai@beckman.com>.
27143 2007-09-09 Bruno Haible <bruno@clisp.org>
27145 * doc/functions/getdelim.texi: Update list of platforms lacking the
27147 * doc/functions/getline.texi: Likewise.
27149 2007-09-09 Jim Meyering <jim@meyering.net>
27151 * lib/hash.c (hash_initialize): Detect calloc failure.
27152 Reported by Bruno Haible.
27154 2007-09-09 Bruno Haible <bruno@clisp.org>
27156 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
27157 malloc or realloc fails.
27159 2007-09-09 Bruno Haible <bruno@clisp.org>
27161 * modules/getcwd (Depends-on): Add malloc-posix.
27162 * modules/glob (Depends-on): Likewise.
27163 * modules/putenv (Depends-on): Likewise.
27164 * modules/strdup (Depends-on): Likewise.
27165 * modules/getdelim (Depends-on): Add realloc-posix.
27166 * modules/read-file (Depends-on): Likewise.
27168 2007-09-09 Bruno Haible <bruno@clisp.org>
27170 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
27171 (gl_FUNC_MALLOC_POSIX): Require it.
27172 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
27173 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
27174 * modules/realloc (Files): Add m4/malloc.m4.
27175 * modules/calloc (Files): Likewise.
27177 2007-09-09 Bruno Haible <bruno@clisp.org>
27179 * modules/malloc-posix: New file.
27180 * modules/malloc (Depends-on): Add malloc-posix.
27181 * lib/malloc.c: Include errno.h.
27182 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
27183 and a POSIX-compatible malloc into a single function. Set ENOMEM
27184 when returning NULL.
27185 * m4/malloc.m4: New file.
27186 * doc/functions/malloc.texi: Mention the malloc-posix module.
27187 * lib/stdlib_.h (malloc): New declaration.
27188 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27189 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
27190 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
27191 and HAVE_MALLOC_POSIX.
27193 2007-09-09 Bruno Haible <bruno@clisp.org>
27195 * modules/realloc-posix: New file.
27196 * modules/realloc (Depends-on): Add realloc-posix.
27197 * lib/realloc.c: Include errno.h.
27198 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
27199 and a POSIX-compatible realloc into a single function. Set ENOMEM
27200 when returning NULL.
27201 * m4/realloc.m4: New file.
27202 * doc/functions/realloc.texi: Mention the realloc-posix module.
27203 * lib/stdlib_.h (realloc): New declaration.
27204 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27205 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
27206 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
27207 and HAVE_REALLOC_POSIX.
27209 2007-09-09 Bruno Haible <bruno@clisp.org>
27211 * modules/calloc-posix: New file.
27212 * modules/calloc (Depends-on): Add calloc-posix.
27213 * lib/calloc.c: Include errno.h.
27214 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
27215 and a POSIX-compatible calloc into a single function. Set ENOMEM
27216 when returning NULL.
27217 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
27218 * doc/functions/calloc.texi: Mention the calloc-posix module.
27219 * lib/stdlib_.h (calloc): New declaration.
27220 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27221 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
27222 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
27223 and HAVE_CALLOC_POSIX.
27225 2007-09-09 Bruno Haible <bruno@clisp.org>
27227 Allow for modules to show an arbitrary notice.
27228 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
27229 * gnulib-tool: New option --extract-notice.
27230 (func_usage): Document it.
27231 (sed_extract_prog): Update.
27232 (func_get_notice): New function.
27233 (func_modules_notice): New function.
27234 (func_import, func_create_testdir): Invoke it.
27235 Suggested by Jim Meyering.
27237 2007-09-09 Bruno Haible <bruno@clisp.org>
27239 * gnulib-tool: New options --verbose, --quiet.
27240 (func_usage): Document them.
27241 (verbose): New variable.
27242 (func_execute_command): New function.
27243 (func_import): Don't show the module list and the file list if
27245 (func_create_testdir): Likewise. Use func_execute_command.
27246 (func_create_megatestdir): Use func_execute_command.
27248 2007-09-08 Bruno Haible <bruno@clisp.org>
27250 * gnulib-tool (func_import): Prefer rsync over wget when available,
27251 for fetching the PO files.
27253 2007-09-08 Bruno Haible <bruno@clisp.org>
27255 * posix-modules: New file. Portions copied from gnulib-tool.
27256 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
27258 2007-09-08 Jim Meyering <jim@meyering.net>
27260 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
27261 * lib/fpending.h: Rename from __fpending.h.
27262 * lib/fpending.c: Rename from __fpending.c.
27263 Include "fpending.h", not "__fpending.h".
27264 * lib/__fpending.h, lib/__fpending.c: Remove files.
27265 * modules/fpending (Files): Reflect new file names.
27266 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
27268 2007-09-08 Bruno Haible <bruno@clisp.org>
27270 * m4/inttypes-h.m4: Remove stub file.
27272 2007-09-07 Simon Josefsson <simon@josefsson.org>
27274 * doc/headers/stdint.texi: Discuss #include_next issue.
27276 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
27278 * build-aux/bootstrap: Remove obsolete comment about wget --help.
27280 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
27282 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
27285 2007-09-03 Jim Meyering <jim@meyering.net>
27287 New module: git-version-gen.
27288 * modules/git-version-gen: New file.
27290 Import changes from coreutils for bootstrap script.
27292 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
27294 bootstrap: uses rsync to download the .po files
27295 * build-aux/bootstrap (po_download_command_format): New global.
27296 (download_po_files): Use rsync.
27297 (update_po_files): Don't remove .po files after download,
27298 so future rsync runs can take advantage of the copies.
27300 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
27302 Solve the unnecessary-.po-file-regeneration problem once and for all.
27303 * build-aux/bootstrap (download_po_files): New function, renamed from
27304 get_translations. Now, downloads, but doesn't update LINGUAS.
27305 (update_po_files): New function.
27307 bootstrap: Ignore more.
27308 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
27309 uniwidth to e.g., lib/.gitignore.
27310 (slurp): Handle the sys_stat_.h -> sys mapping, too.
27312 * build-aux/bootstrap: New setting: vc_ignore.
27313 (insert_sorted_if_absent): Create $file if absent.
27314 Adapt to new, possibly empty, list: $vc_ignore.
27316 bootstrap: generate more ignorable names
27317 * build-aux/bootstrap (slurp): When generating ignorable names,
27318 also map .sin to .sed, .gperf to .c, and .y to .c.
27320 2007-09-03 Jim Meyering <jim@meyering.net>
27322 * build-aux/git-version-gen: New file, from coreutils. For details, see
27323 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
27325 2007-09-02 Bruno Haible <bruno@clisp.org>
27327 Fix mis-recognition of 'mcs' on QNX 6.
27328 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
27329 output contains the string "Mono".
27330 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
27331 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
27333 2007-09-01 Bruno Haible <bruno@clisp.org>
27335 Fix collision between uniwidth/* and linebreak modules.
27336 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
27337 u32_width): Remove declarations.
27338 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
27339 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
27340 streq3, streq2, streq1, streq0): Remove functions.
27341 (STREQ): Remove macro.
27342 (is_cjk_encoding): Remove function.
27343 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
27344 (uc_width, u8_width, u16_width, u32_width): Remove functions.
27345 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
27346 * NEWS: Document the change.
27348 2007-09-01 Bruno Haible <bruno@clisp.org>
27350 * lib/streq.h: Add double-inclusion guard.
27352 2007-09-01 Karl Berry <karl@gnu.org>
27354 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
27356 2007-08-28 Jim Meyering <jim@meyering.net>
27358 Rename mreadlink_with_size to areadlink_with_size.
27359 * NEWS: Document the change.
27360 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
27361 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
27362 * lib/mreadlink.h: Rename this to...
27363 * lib/areadlink.h: ...this.
27364 * modules/mreadlink-with-size: Rename this to...
27365 * modules/areadlink-with-size: ...this.
27366 * lib/canonicalize.c: Reflect the renaming.
27367 * modules/canonicalize: Likewise.
27369 2007-08-26 Bruno Haible <bruno@clisp.org>
27371 * gnulib-tool (func_import): When deciding which files to remove,
27372 consider also dangling symbolic links.
27373 Reported by Eric Blake.
27375 2007-08-26 Bruno Haible <bruno@clisp.org>
27377 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
27379 2007-08-23 Simon Josefsson <simon@josefsson.org>
27381 * lib/readline.c: Don't include getline.h, the prototype is now
27384 2007-08-23 Jim Meyering <jim@meyering.net>
27387 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
27388 around the funlockfile call, since funlockfile never sets errno.
27389 Don't set errno upon failed realloc.
27391 2007-08-22 Eric Blake <ebb9@byu.net>
27394 * lib/getdelim.c (getdelim): Revert regression that required *n to
27395 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
27396 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
27397 getdelim, rather than whether implementation is missing.
27398 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
27399 * lib/stdio_.h (getline): Also declare if replacement is
27401 * doc/functions/getdelim.texi: New file.
27402 * doc/functions/getline.texi: Likewise.
27403 * doc/gnulib.texi (Function Substitutes): Add new files.
27404 Reported by Bruno Haible.
27406 2007-08-22 Ludovic Courtès <ludo@gnu.org>
27408 * users.txt: Add Guile.
27410 2007-08-22 Eric Blake <ebb9@byu.net>
27412 * tests/test-getdelim.c (main): Use remove, not unlink.
27413 * tests/test-getline.c (main): Likewise.
27415 Move getline and getdelim into stdio.h, per POSIX 200x.
27416 * modules/getline (Files): Remove getline.h.
27417 (Depends-on): Add stdio.
27418 (configure.ac): Add module indicator.
27419 * modules/getdelim (Files): Remove getdelim.h.
27420 (Depends-on): Add stdio.
27421 (configure.ac): Add module indicator.
27422 * modules/stdio (Makefile.am): Work with new indicators.
27423 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
27424 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
27425 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27426 * lib/getdelim.h: Delete.
27427 * lib/getline.h: Delete.
27428 * lib/stdio_.h (getdelim, getline): Declare.
27429 * modules/getdelim-tests: New module.
27430 * modules/getline-tests: Likewise.
27431 * tests/test-getdelim.c: New file.
27432 * tests/test-getline.c: Likewise.
27433 * NEWS: Document the change.
27434 * lib/getline.c: Update choice of header.
27435 * lib/csharpcomp.c: Likewise.
27436 * lib/getpass.c: Likewise.
27437 * lib/javacomp.c: Likewise.
27438 * lib/javaversion.c: Likewise.
27439 * lib/yesno.c: Likewise.
27440 * lib/getdelim.c: Likewise.
27441 (getdelim): Set errno on failure, and avoid memory leak.
27443 2007-08-19 Bruno Haible <bruno@clisp.org>
27445 * modules/closein (Depends-on): Add freadahead.
27446 * lib/closein.c: Include freadahead.h.
27447 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
27450 2007-08-19 Bruno Haible <bruno@clisp.org>
27452 * modules/freadahead-tests: New file.
27453 * tests/test-freadahead.sh: New file.
27454 * tests/test-freadahead.c: New file.
27456 * modules/freadahead: New file.
27457 * lib/freadahead.h: New file.
27458 * lib/freadahead.c: New file.
27459 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
27460 fbufmode, fpurge, freadable, fwritable.
27462 2007-08-19 Eric Blake <ebb9@byu.net>
27464 Test yesno in combination with closein.
27465 * lib/yesno.c (yesno): Document use of stdin.
27466 * modules/yesno-tests (Files): New module.
27467 * tests/test-yesno.c (main): New file.
27468 * tests/test-yesno.sh: Likewise.
27470 2007-08-19 Bruno Haible <bruno@clisp.org>
27472 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
27473 * lib/fseeko.c (rpl_fseeko): Likewise.
27474 * lib/fseterr.c (fseterr): Likewise.
27476 2007-08-19 Bruno Haible <bruno@clisp.org>
27478 * tests/test-lseek.c (main): Disable a test for BeOS.
27479 * doc/functions/lseek.texi: Document the BeOS bug.
27481 2007-08-19 Bruno Haible <bruno@clisp.org>
27482 Eric Blake <ebb9@byu.net>
27484 * lib/lseek.c: Include <sys/stat.h>.
27485 (rpl_lseek): Add workaround code also for Unix platforms.
27487 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
27488 * doc/functions/lseek.texi: Document BeOS definiency.
27490 2007-08-18 Bruno Haible <bruno@clisp.org>
27492 * modules/fstrcmp-tests: New file.
27493 * tests/test-fstrcmp.c: New file.
27495 2007-08-18 Bruno Haible <bruno@clisp.org>
27497 * modules/fstrcmp: New file, from GNU gettext with modifications.
27498 * lib/fstrcmp.h: New file, from GNU gettext.
27499 * lib/fstrcmp.c: New file, from GNU gettext.
27500 * MODULES.html.sh (String handling): Add fstrcmp.
27502 2007-08-18 Bruno Haible <bruno@clisp.org>
27504 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
27506 (diag, compareseq): Remove const from the ctxt argument.
27507 (USE_HEURISTIC): Undefine at the end.
27509 2007-08-18 Jim Meyering <jim@meyering.net>
27511 New file: lib/idcache.h
27512 * NEWS: Mention the addition.
27513 * modules/idcache (Files): Add lib/idcache.h
27514 * lib/idcache.c: Include "idcache.h".
27515 Don't include <sys/types.h>.
27516 Add a FIXME comment.
27517 Move file-scoped "static" declarations to the top.
27518 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
27520 2007-08-17 Bruno Haible <bruno@clisp.org>
27521 and Paul Eggert <eggert@cs.ucla.edu>
27523 * MODULES.html.sh: Add diffseq.
27524 * modules/diffseq: New file.
27525 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
27526 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
27528 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
27530 Import changes from coreutils for bootstrap script.
27532 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
27534 * build-aux/bootstrap (slurp): Work even in environments where
27535 "ls" defaults to "ls -A". Put in a FIXME, though, since the
27536 current code does not slurp files whose names start with ".", and
27537 this looks like it might be a troublesome area.
27539 2007-07-11 Jim Meyering <jim@meyering.net>
27541 If there's a GPL vN copyright comment, require that N == 3.
27543 2007-07-08 Jim Meyering <jim@meyering.net>
27545 Run the coreutils-specific code only if tests/Makefile.am.in exists.
27546 * build-aux/bootstrap (mam_template): Move definition out of loop.
27548 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
27550 * build-aux/bootstrap (symlink_to_dir): Rename function from
27551 symlink_to_gnulib. Add a directory parameter. Update all
27553 (cp_mark_as_generated): Also check for -- and link to -- files in
27556 2007-07-08 Jim Meyering <jim@meyering.net>
27558 Adapt to deeper hierarchy in gnulib.
27559 * build-aux/bootstrap (symlink_to_dir): If the destination
27560 directory doesn't exist, create it. This is required at least for
27561 "lib/uniwidth/cjk.h".
27563 2007-05-15 Jim Meyering <jim@meyering.net>
27565 * build-aux/bootstrap: Now that generated Makefile.am files
27566 are no longer under version control, they must be created at
27569 2007-08-14 Ben Pfaff <blp@gnu.org>
27571 * lib/count-one-bits.h: Add comments. From Bruno Haible.
27573 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
27575 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
27576 given the changes below.
27577 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
27578 even on hosts that have padding bits beyond the supported 64.
27580 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
27582 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
27583 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
27584 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
27586 (xstrtol_error): Remove.
27587 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
27588 but with a different signature.
27589 (ATTRIBUTE_NORETURN, __attribute__): New macros.
27590 * lib/xstrtol-error.c: Include exitfail.h.
27591 (xstrtol_fatal): New function, with a different signature from the
27592 old xstrtol_error, so that the caller need not worry about passing
27593 in an exit status, or about storage management of the option argument.
27594 (xstrtol_error): Now a static function. Redo signature to
27595 implement xstrtol_fatal. Output the correct number of hyphens in
27596 front of the option so that the caller need not worry about
27597 storage management.
27599 (_): Remove; not used now.
27600 * modules/xstrtol: Depend on getopt.
27601 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
27602 of old STRTOL_FATAL_ERROR macro.
27603 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
27605 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
27606 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
27608 2007-08-08 Eric Blake <ebb9@byu.net>
27610 * lib/xstrtol-error.c: Add missing include.
27612 Move xstrtol messages into gnulib domain, when --pobase is used.
27613 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
27614 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
27615 * modules/xstrtol (Files): Distribute new file.
27616 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
27617 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
27618 * tests/test-xstrtol.c: ...into new file.
27619 * tests/test-xstrtoul.c: Also test xstrtoul.
27620 * tests/test-xstrtoimax.c: Also test xstrtoimax.
27621 * tests/test-xstrtoumax.c: Also test xstrtoumax.
27622 * tests/test-xstrtol.sh: Drive the tests.
27623 * tests/test-xstrtoimax.sh: Likewise.
27624 * tests/test-xstrtoumax.sh: Likewise.
27625 * modules/xstrtol-tests: New module.
27626 * modules/xstrtoimax-tests: Likewise.
27627 * modules/xstrtoumax-tests: Likewise.
27629 2007-08-08 Jim Meyering <jim@meyering.net>
27631 New function: mfile_name_concat.
27632 * lib/filenamecat.c (mfile_name_concat): New function, just like
27633 file_name_concat, but return NULL upon failure rather than exiting
27635 * lib/filenamecat.h: Declare it.
27637 2007-08-07 Bruno Haible <bruno@clisp.org>
27639 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
27640 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
27642 Reported by Eric Blake.
27644 2007-08-07 Simon Josefsson <simon@josefsson.org>
27646 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
27647 * modules/crypto/arcfour (License): Likewise.
27648 * modules/crypto/des-tests (License): Likewise.
27649 * modules/crypto/gc-arctwo-tests (License): Likewise.
27650 * modules/crypto/gc-des-tests (License): Likewise.
27651 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
27652 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
27653 * modules/crypto/gc-md2-tests (License): Likewise.
27654 * modules/crypto/gc-md4-tests (License): Likewise.
27655 * modules/crypto/gc-md5-tests (License): Likewise.
27656 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
27657 * modules/crypto/gc-rijndael-tests (License): Likewise.
27658 * modules/crypto/gc-sha1-tests (License): Likewise.
27659 * modules/crypto/gc-tests (License): Likewise.
27660 * modules/crypto/hmac-md5 (License): Likewise.
27661 * modules/crypto/hmac-sha1 (License): Likewise.
27662 * modules/crypto/md2-tests (License): Likewise.
27663 * modules/crypto/md4-tests (License): Likewise.
27664 * modules/crypto/md5 (License): Likewise.
27665 * modules/crypto/rijndael (License): Likewise.
27666 * modules/crypto/sha1 (License): Likewise.
27667 * modules/memxor (License): Likewise.
27669 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
27670 and Bruno Haible <bruno@clisp.org>
27672 * NEWS: Describe interface changes to human, xstrtol.
27673 * lib/human.h: Include <xstrtol.h>.
27674 (human_options): Return enum strtol_error, not int. Remove
27675 bool arg; take int * instead.
27676 * lib/human.c: Don't include "gettext.h".
27677 (_): Remove; no longer used.
27678 Don't include <xstrtol.h>, since human.h does it.
27679 (human_options): Adjust to abovementioned interface changes.
27680 Do not report error to stderr; that's now the caller's
27682 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
27684 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
27685 Str, Argument_type_string. All uses changed. Put " argument"
27686 in diagnostics to make them clearer. Change wording of suffix
27687 message for clarity.
27688 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
27689 Argument_type_string.
27690 (STRTOL_FATAL_WARN): Remove; no longer used.
27691 * modules/human (Depends-on): Remove gettext-h.
27693 2007-08-06 Simon Josefsson <simon@josefsson.org>
27695 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
27697 2007-07-31 Bruno Haible <bruno@clisp.org>
27699 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
27700 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
27701 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
27703 2007-07-31 Bruno Haible <bruno@clisp.org>
27705 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
27706 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
27708 2007-07-30 Bruno Haible <bruno@clisp.org>
27710 * modules/base64 (License): Use the synonymous term "LGPLv2+".
27711 * modules/c-ctype (License): Likewise.
27712 * modules/c-strcase (License): Likewise.
27713 * modules/check-version (License): Likewise.
27714 * modules/iconv (License): Likewise.
27715 * modules/iconv_open (License): Likewise.
27716 * modules/read-file (License): Likewise.
27717 * modules/striconv (License): Likewise.
27718 * modules/strverscmp (License): Likewise.
27719 * modules/vasprintf (License): Likewise.
27720 * modules/crypto/des (License): Likewise.
27721 * modules/crypto/gc (License): Likewise.
27722 * modules/crypto/gc-arcfour (License): Likewise.
27723 * modules/crypto/gc-arctwo (License): Likewise.
27724 * modules/crypto/gc-des (License): Likewise.
27725 * modules/crypto/gc-hmac-md5 (License): Likewise.
27726 * modules/crypto/gc-hmac-sha1 (License): Likewise.
27727 * modules/crypto/gc-md2 (License): Likewise.
27728 * modules/crypto/gc-md4 (License): Likewise.
27729 * modules/crypto/gc-md5 (License): Likewise.
27730 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
27731 * modules/crypto/gc-random (License): Likewise.
27732 * modules/crypto/gc-rijndael (License): Likewise.
27733 * modules/crypto/gc-sha1 (License): Likewise.
27734 * modules/crypto/md2 (License): Likewise.
27735 * modules/crypto/md4 (License): Likewise.
27737 2007-07-30 Jim Meyering <jim@meyering.net>
27739 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
27740 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
27741 it has valid stat data. This bug would cause du not to count the
27742 sizes of inaccessible directories.
27743 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
27744 in <http://bugzilla.redhat.com/250077>.
27746 2007-07-25 Peter O'Gorman <peter@pogma.com>
27747 Bruno Haible <bruno@clisp.org>
27749 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
27750 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
27751 #include_next, gives a diagnostic about it, but reports no error in
27753 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
27755 2007-07-24 Ben Pfaff <blp@gnu.org>
27757 Improve name: "count-one-bits" is better than "popcount".
27758 * MODULES.html.sh: Update name.
27759 * lib/popcount.h: Renamed lib/count-one-bits.h.
27760 (popcount): Renamed count_one_bits.
27761 (popcountl): Renamed count_one_bits_l.
27762 (popcountll): Renamed count_one_bits_ll.
27763 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
27764 * modules/popcount: Renamed module/count-one-bits.
27765 * modules/popcount-tests: Renamed module/count-one-bits-tests.
27766 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
27768 2007-07-23 Ben Pfaff <blp@gnu.org>
27770 * lib/popcount.h (popcount32): Reduce size of constants, to allow
27771 better code generation, and add U to large constants to avoid
27772 warnings, in non-GCC case.
27773 Suggested by Bruno Haible.
27775 2007-07-23 Ben Pfaff <blp@gnu.org>
27777 * lib/popcount.h: Use verify_true instead of if...abort.
27778 * modules/popcount: Depend on verify module.
27779 Suggested by Jim Meyering.
27781 2007-07-23 Bruno Haible <bruno@clisp.org>
27783 * gnulib-tool (func_import): Create a .cvsignore file also when the
27784 directory is not yet in CVS but the toplevel directory is. When
27785 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
27786 Reported by Karl Berry.
27788 2007-07-22 Ben Pfaff <blp@gnu.org>
27790 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
27792 Suggested by Eric Blake.
27794 2007-07-22 Ben Pfaff <blp@gnu.org>
27796 New module: popcount.
27797 * MODULES.html.sh: Add popcount.
27798 * modules/popcount: New file.
27799 * modules/popcount-tests: New file.
27800 * tests/test-popcount.c: New file.
27801 * lib/popcount.h: New file.
27802 * m4/popcount.m4: New file.
27804 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
27806 * build-aux/announce-gen: Update to GPLv3.
27808 * build-aux/config.guess: Update from config.
27810 2007-07-21 Bruno Haible <bruno@clisp.org>
27812 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
27813 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
27815 2007-07-20 Jim Meyering <jim@meyering.net>
27817 * check-module: Diagnose a self-dependency.
27819 2007-07-19 Bruno Haible <bruno@clisp.org>
27821 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
27823 Reported by Eric Blake.
27825 2007-07-18 Bruno Haible <bruno@clisp.org>
27827 * gnulib-tool: New options --po-base, --po-domain.
27828 (func_usage): Document them.
27829 (pobase, po_domain): New variables.
27830 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
27831 DEFAULT_TEXT_DOMAIN.
27832 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
27833 (func_import): Consider pobase and po_domain. Create a po/ directory.
27834 (func_create_testdir): Set pobase and po_domain to empty.
27835 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
27836 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
27838 2007-07-18 Bruno Haible <bruno@clisp.org>
27840 * gnulib-tool (func_get_automake_snippet): Synthesize also an
27841 EXTRA_DIST augmentation for files in build-aux/.
27843 2007-07-16 Bruno Haible <bruno@clisp.org>
27845 * modules/lseek (License): Use the synonymous term "LGPLv2+".
27846 * modules/getdelim (License): Likewise.
27848 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
27850 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
27851 * modules/d-type (License): Likewise.
27852 * modules/extensions (License): Likewise.
27853 * modules/fnmatch (License): Likewise.
27854 * modules/fseeko (License): Likewise.
27855 * modules/getaddrinfo (License): Likewise.
27856 * modules/getline (License): Likewise.
27857 * modules/getlogin_r (License): Likewise.
27858 * modules/getpass (License): Likewise.
27859 * modules/gettimeofday (License): Likewise.
27860 * modules/glob (License): Likewise.
27861 * modules/inet_ntop (License): Likewise.
27862 * modules/malloc (License): Likewise.
27863 * modules/malloca (License): Likewise.
27864 * modules/memmem (License): Likewise.
27865 * modules/mempcpy (License): Likewise.
27866 * modules/memset (License): Likewise.
27867 * modules/minmax (License): Likewise.
27868 * modules/mktime (License): Likewise.
27869 * modules/netinet_in (License): Likewise.
27870 * modules/pathmax (License): Likewise.
27871 * modules/poll (License): Likewise.
27872 * modules/regex (License): Likewise.
27873 * modules/snprintf (License): Likewise.
27874 * modules/stdbool (License): Likewise.
27875 * modules/stdint (License): Likewise.
27876 * modules/stdio (License): Likewise.
27877 * modules/strcase (License): Likewise.
27878 * modules/strcasestr (License): Likewise.
27879 * modules/strdup (License): Likewise.
27880 * modules/string (License): Likewise.
27881 * modules/strndup (License): Likewise.
27882 * modules/strnlen (License): Likewise.
27883 * modules/strpbrk (License): Likewise.
27884 * modules/strptime (License): Likewise.
27885 * modules/strsep (License): Likewise.
27886 * modules/sys_select (License): Likewise.
27887 * modules/sys_socket (License): Likewise.
27888 * modules/sys_stat (License): Likewise.
27889 * modules/sys_time (License): Likewise.
27890 * modules/time (License): Likewise.
27891 * modules/time_r (License): Likewise.
27892 * modules/timegm (License): Likewise.
27893 * modules/unistd (License): Likewise.
27894 * modules/vsnprintf (License): Likewise.
27895 * modules/wctype (License): Likewise.
27897 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27899 * modules/argz (License): LGPLv2+.
27901 2007-07-15 Karl Berry <karl@gnu.org>
27903 * doc/gnulib.texi: revise node structure per new fdl.texi.
27905 2007-07-14 Bruno Haible <bruno@clisp.org>
27907 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
27909 * lib/uniname/uninames.h: Regenerated.
27911 2007-07-14 Karl Berry <karl@gnu.org>
27913 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
27914 omitting sectioning and index commands.
27916 2007-07-13 Bruno Haible <bruno@clisp.org>
27918 New gnulib-tool option --more-symlinks.
27919 * gnulib-tool (func_usage): Document --more-symlinks.
27920 (do_copyrights): New variable.
27921 Recognize option --more-symlinks.
27922 (func_import): Don't add a copyright notice transform to
27923 sed_transform_lib_file if do_copyrights is empty.
27925 2007-07-13 Bruno Haible <bruno@clisp.org>
27927 * lib/vasnprintf.c (decimal_point_char): Define also if
27928 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
27929 && !NEED_PRINTF_DIRECTIVE_A.
27930 Reported by Clemens Koller <clemens.koller@anagramm.de> via
27931 Gary V. Vaughan <gary@gnu.org>.
27933 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
27935 * lib/inttypes_.h: Undo previous change, since it was fixed
27936 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
27938 2007-07-13 Bruno Haible <bruno@clisp.org>
27940 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
27941 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
27943 2007-07-13 Jim Meyering <jim@meyering.net>
27945 df: Don't fail for Tru64's "file-on-file mount".
27946 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
27947 so we fall through and use statfs instead. Details here:
27948 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
27949 Reported by Albert Chin.
27951 2007-07-13 Bruno Haible <bruno@clisp.org>
27953 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
27954 * modules/configmake (License): Likewise.
27955 * modules/gettext (License): Likewise.
27956 * modules/gettext-h (License): Likewise.
27957 * modules/include_next (License): Likewise.
27958 * modules/link-warning (License): Likewise.
27959 * modules/localcharset (License): Likewise.
27960 * modules/localename (License): Likewise.
27961 * modules/lock (License): Likewise.
27962 * modules/relocatable-lib-lgpl (License): Likewise.
27963 * modules/size_max (License): Likewise.
27964 * modules/vasnprintf (License): Likewise.
27965 * modules/wchar (License): Likewise.
27966 * modules/xsize (License): Likewise.
27968 2007-07-13 Bruno Haible <bruno@clisp.org>
27970 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
27971 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
27973 2007-07-12 Bruno Haible <bruno@clisp.org>
27975 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
27976 in the modules files.
27978 2007-07-11 Karl Berry <karl@gnu.org>
27980 * MODULES.html.sh (func_module): use
27981 sed -e '\|^'"${includefile}"'$|d'
27982 instead of /.../d, to avoid errors on $includefile's containing /.
27984 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
27986 * gnulib-tool (func_import): Avoid duplication of --avoid
27988 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
27989 names to `_' in variable names.
27991 2007-07-10 Eric Blake <ebb9@byu.net>
27993 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
27994 * NEWS: Document this change.
27996 2007-07-08 Bruno Haible <bruno@clisp.org>
27998 Update to Unicode 5.0.
27999 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
28000 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
28001 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
28002 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
28003 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
28004 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
28005 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
28006 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
28007 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
28008 U+10A3F, U+1D242..U+1D244.
28009 (nonspacing_table_ind): Update.
28010 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
28011 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
28013 2007-07-08 Bruno Haible <bruno@clisp.org>
28015 Update to Unicode 5.0.
28016 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
28017 code transform. Extend the name index field of unicode_name_to_code and
28018 unicode_code_to_name from 16 to 24 bits.
28019 * lib/uniname/uniname.c (unicode_character_name,
28020 unicode_name_character): Add the range 0x12xxx to the code transform.
28021 * lib/uniname/uninames.h: Regenerated.
28022 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
28024 2007-07-07 Bruno Haible <bruno@clisp.org>
28026 * modules/wcwidth-tests: New file.
28027 * tests/test-wcwidth.c: New file.
28029 Work around MacOS X wcwidth() bug.
28030 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
28031 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
28032 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
28033 original wcwidth in non-UTF-8 locales.
28034 * modules/wcwidth (Depends-on): Add localcharset, streq,
28036 * doc/functions/wcwidth.texi: Update.
28038 2007-07-07 Bruno Haible <bruno@clisp.org>
28040 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
28041 (wcwidth): New declaration.
28042 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
28044 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
28045 here. Prepare for creating <wchar.h> unconditionally.
28046 * modules/wchar (Depends-on): Add link-warning.
28047 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
28048 REPLACE_WCWIDTH, and GL_LINK_WARNING.
28049 * lib/wcwidth.h: Remove file.
28050 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
28051 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
28052 * modules/wcwidth (Files): Remove lib/wcwidth.h.
28053 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
28054 (Include): Replace wcwidth.h with <wchar.h>.
28055 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
28056 * lib/mbchar.h: Don't include wcwidth.h.
28057 * lib/mbswidth.c: Likewise.
28058 * NEWS: Mention the change.
28060 2007-07-07 Bruno Haible <bruno@clisp.org>
28062 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
28063 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
28064 definition with an external declaration.
28065 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
28066 defined as a function. Remove AC_C_INLINE requirement.
28067 * modules/wcwidth (Files): Add lib/wcwidth.c.
28068 (Makefile.am): Remove redundant statement.
28070 2007-07-07 Bruno Haible <bruno@clisp.org>
28072 * MODULES.html.sh (Unicode string functions): Add the new modules.
28074 * tests/uniwidth/test-u32-strwidth.c: New file.
28075 * modules/uniwidth/u32-strwidth-tests: New file.
28077 * lib/uniwidth/u32-strwidth.c: New file.
28078 * modules/uniwidth/u32-strwidth: New file.
28080 * tests/uniwidth/test-u16-strwidth.c: New file.
28081 * modules/uniwidth/u16-strwidth-tests: New file.
28083 * lib/uniwidth/u16-strwidth.c: New file.
28084 * modules/uniwidth/u16-strwidth: New file.
28086 * tests/uniwidth/test-u8-strwidth.c: New file.
28087 * modules/uniwidth/u8-strwidth-tests: New file.
28089 * lib/uniwidth/u8-strwidth.c: New file.
28090 * modules/uniwidth/u8-strwidth: New file.
28092 * tests/uniwidth/test-u32-width.c: New file.
28093 * modules/uniwidth/u32-width-tests: New file.
28095 * lib/uniwidth/u32-width.c: New file.
28096 * modules/uniwidth/u32-width: New file.
28098 * tests/uniwidth/test-u16-width.c: New file.
28099 * modules/uniwidth/u16-width-tests: New file.
28101 * lib/uniwidth/u16-width.c: New file.
28102 * modules/uniwidth/u16-width: New file.
28104 * tests/uniwidth/test-u8-width.c: New file.
28105 * modules/uniwidth/u8-width-tests: New file.
28107 * lib/uniwidth/u8-width.c: New file.
28108 * modules/uniwidth/u8-width: New file.
28110 * tests/uniwidth/test-uc_width.c: New file.
28111 * modules/uniwidth/width-tests: New file.
28113 * lib/uniwidth/width.c: New file, from GNU libiconv.
28114 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
28115 * modules/uniwidth/width: New file.
28117 * lib/uniwidth.h: New file, from GNU libiconv.
28118 * modules/uniwidth/base: New file.
28120 2007-07-07 Bruno Haible <bruno@clisp.org>
28122 * lib/uniname.h: New file, from GNU gettext.
28123 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
28124 * lib/uniname/uninames.h: New file, from GNU gettext.
28125 * lib/uniname/uniname.c: New file, from GNU gettext.
28126 * tests/uniname/test-uninames.sh: New file.
28127 * tests/uniname/test-uninames.c: New file, from GNU gettext.
28128 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
28129 * modules/uniname/base: New file.
28130 * modules/uniname/uniname: New file.
28131 * modules/uniname/uniname-tests: New file.
28132 * MODULES.html.sh (Unicode string functions): Add the new modules.
28134 2007-07-06 Bruno Haible <bruno@clisp.org>
28136 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
28138 2007-07-06 Bruno Haible <bruno@clisp.org>
28140 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
28141 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
28142 includes <cygwin/sys_time.h> which includes <sys/select.h> which
28143 include <sys/time.h>.
28144 Reported by Eric Blake.
28146 2007-07-06 Eric Blake <ebb9@byu.net>
28148 Fix testing canonicalize on cygwin.
28149 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
28150 Revert patch from 2007-06-19.
28151 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
28152 canonicalize module is also in use.
28153 * tests/test-canonicalize.c: New file.
28154 * tests/test-canonicalize.sh: Likewise.
28155 * modules/canonicalize-tests: Likewise.
28157 2007-07-06 Jim Meyering <jim@meyering.net>
28159 * lib/getugroups.c (getugroups): Detect getgrent failure.
28160 Adjust comment to reflect reality: this function may return -1.
28162 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
28164 * build-aux/bootstrap (TP_URL,get_translations): Update to use
28165 the new TP address.
28167 (gnulib_mk): New variable.
28169 2007-07-05 Jim Meyering <jim@meyering.net>
28171 Don't let endgrent clobber errno, no matter how improbable.
28172 * lib/getugroups.c (getugroups): Save and restore errno around
28175 Close the group DB even when failing with 2^31 or more members.
28176 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
28178 2007-07-04 Jim Meyering <jim@meyering.net>
28180 * lib/getugroups.h: New file.
28181 * lib/getugroups.c: Include "getugroups.h".
28182 Remove uses of "register" keyword.
28183 Move local variable, "cp", down into scope where used.
28184 Give "username" parameter the "const" attribute.
28185 * modules/getugroups (Files): Add lib/getugroups.h
28187 2007-07-04 Karl Berry <karl@gnu.org>
28189 * MODULES.html.sh (func_all_modules): Complete rename of
28190 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
28192 2007-07-02 Bruno Haible <bruno@clisp.org>
28194 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
28195 mode, when inttypes.h comes from gnulib.
28196 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28198 2007-07-02 Simon Josefsson <simon@josefsson.org>
28200 * NEWS: Mention lgpl module name change.
28202 * modules/lgpl-2.1: Renamed from lgpl.
28204 * NEWS: Mention gpl module name change.
28206 * modules/gpl-3.0: New file, based on gpl-2.0.
28208 * modules/gpl-2.0: Renamed from gpl.
28210 * modules/gpl: Fix filename, doc/gpl.texi is now found at
28213 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
28215 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
28216 #define __STDC_LIMIT_MACROS temporarily while including
28217 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
28218 Problem reported by Joel E. Denny in
28219 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
28221 2007-07-01 Bruno Haible <bruno@clisp.org>
28223 * lib/unistdio.h: New file.
28224 * lib/unistdio/u-asnprintf.h: New file.
28225 * lib/unistdio/u-asprintf.h: New file.
28226 * lib/unistdio/u-printf-args.c: New file.
28227 * lib/unistdio/u-printf-args.h: New file.
28228 * lib/unistdio/u-printf-parse.h: New file.
28229 * lib/unistdio/u-snprintf.h: New file.
28230 * lib/unistdio/u-sprintf.h: New file.
28231 * lib/unistdio/u-vasprintf.h: New file.
28232 * lib/unistdio/u-vsnprintf.h: New file.
28233 * lib/unistdio/u-vsprintf.h: New file.
28234 * lib/unistdio/ulc-asnprintf.c: New file.
28235 * lib/unistdio/ulc-asprintf.c: New file.
28236 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
28237 * lib/unistdio/ulc-printf-parse.c: New file.
28238 * lib/unistdio/ulc-snprintf.c: New file.
28239 * lib/unistdio/ulc-sprintf.c: New file.
28240 * lib/unistdio/ulc-vasnprintf.c: New file.
28241 * lib/unistdio/ulc-vasprintf.c: New file.
28242 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
28243 * lib/unistdio/ulc-vsnprintf.c: New file.
28244 * lib/unistdio/ulc-vsprintf.c: New file.
28245 * lib/unistdio/u8-asnprintf.c: New file.
28246 * lib/unistdio/u8-asprintf.c: New file.
28247 * lib/unistdio/u8-printf-parse.c: New file.
28248 * lib/unistdio/u8-snprintf.c: New file.
28249 * lib/unistdio/u8-sprintf.c: New file.
28250 * lib/unistdio/u8-vasnprintf.c: New file.
28251 * lib/unistdio/u8-vasprintf.c: New file.
28252 * lib/unistdio/u8-vsnprintf.c: New file.
28253 * lib/unistdio/u8-vsprintf.c: New file.
28254 * lib/unistdio/u8-u8-asnprintf.c: New file.
28255 * lib/unistdio/u8-u8-asprintf.c: New file.
28256 * lib/unistdio/u8-u8-snprintf.c: New file.
28257 * lib/unistdio/u8-u8-sprintf.c: New file.
28258 * lib/unistdio/u8-u8-vasnprintf.c: New file.
28259 * lib/unistdio/u8-u8-vasprintf.c: New file.
28260 * lib/unistdio/u8-u8-vsnprintf.c: New file.
28261 * lib/unistdio/u8-u8-vsprintf.c: New file.
28262 * lib/unistdio/u16-asnprintf.c: New file.
28263 * lib/unistdio/u16-asprintf.c: New file.
28264 * lib/unistdio/u16-printf-parse.c: New file.
28265 * lib/unistdio/u16-snprintf.c: New file.
28266 * lib/unistdio/u16-sprintf.c: New file.
28267 * lib/unistdio/u16-vasnprintf.c: New file.
28268 * lib/unistdio/u16-vasprintf.c: New file.
28269 * lib/unistdio/u16-vsnprintf.c: New file.
28270 * lib/unistdio/u16-vsprintf.c: New file.
28271 * lib/unistdio/u16-u16-asnprintf.c: New file.
28272 * lib/unistdio/u16-u16-asprintf.c: New file.
28273 * lib/unistdio/u16-u16-snprintf.c: New file.
28274 * lib/unistdio/u16-u16-sprintf.c: New file.
28275 * lib/unistdio/u16-u16-vasnprintf.c: New file.
28276 * lib/unistdio/u16-u16-vasprintf.c: New file.
28277 * lib/unistdio/u16-u16-vsnprintf.c: New file.
28278 * lib/unistdio/u16-u16-vsprintf.c: New file.
28279 * lib/unistdio/u32-asnprintf.c: New file.
28280 * lib/unistdio/u32-asprintf.c: New file.
28281 * lib/unistdio/u32-printf-parse.c: New file.
28282 * lib/unistdio/u32-snprintf.c: New file.
28283 * lib/unistdio/u32-sprintf.c: New file.
28284 * lib/unistdio/u32-vasnprintf.c: New file.
28285 * lib/unistdio/u32-vasprintf.c: New file.
28286 * lib/unistdio/u32-vsnprintf.c: New file.
28287 * lib/unistdio/u32-vsprintf.c: New file.
28288 * lib/unistdio/u32-u32-asnprintf.c: New file.
28289 * lib/unistdio/u32-u32-asprintf.c: New file.
28290 * lib/unistdio/u32-u32-snprintf.c: New file.
28291 * lib/unistdio/u32-u32-sprintf.c: New file.
28292 * lib/unistdio/u32-u32-vasnprintf.c: New file.
28293 * lib/unistdio/u32-u32-vasprintf.c: New file.
28294 * lib/unistdio/u32-u32-vsnprintf.c: New file.
28295 * lib/unistdio/u32-u32-vsprintf.c: New file.
28296 * tests/unistdio/test-ulc-asnprintf1.c: New file.
28297 * tests/unistdio/test-ulc-asnprintf1.h: New file.
28298 * tests/unistdio/test-ulc-printf1.h: New file.
28299 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
28300 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
28301 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
28302 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
28303 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
28304 * tests/unistdio/test-ulc-vasprintf1.c: New file.
28305 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
28306 * tests/unistdio/test-ulc-vsprintf1.c: New file.
28307 * tests/unistdio/test-u8-asnprintf1.c: New file.
28308 * tests/unistdio/test-u8-asnprintf1.h: New file.
28309 * tests/unistdio/test-u8-printf1.h: New file.
28310 * tests/unistdio/test-u8-vasnprintf1.c: New file.
28311 * tests/unistdio/test-u8-vasnprintf2.c: New file.
28312 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
28313 * tests/unistdio/test-u8-vasnprintf3.c: New file.
28314 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
28315 * tests/unistdio/test-u8-vasprintf1.c: New file.
28316 * tests/unistdio/test-u8-vsnprintf1.c: New file.
28317 * tests/unistdio/test-u8-vsprintf1.c: New file.
28318 * tests/unistdio/test-u16-asnprintf1.c: New file.
28319 * tests/unistdio/test-u16-asnprintf1.h: New file.
28320 * tests/unistdio/test-u16-printf1.h: New file.
28321 * tests/unistdio/test-u16-vasnprintf1.c: New file.
28322 * tests/unistdio/test-u16-vasnprintf2.c: New file.
28323 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
28324 * tests/unistdio/test-u16-vasnprintf3.c: New file.
28325 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
28326 * tests/unistdio/test-u16-vasprintf1.c: New file.
28327 * tests/unistdio/test-u16-vsnprintf1.c: New file.
28328 * tests/unistdio/test-u16-vsprintf1.c: New file.
28329 * tests/unistdio/test-u32-asnprintf1.c: New file.
28330 * tests/unistdio/test-u32-asnprintf1.h: New file.
28331 * tests/unistdio/test-u32-printf1.h: New file.
28332 * tests/unistdio/test-u32-vasnprintf1.c: New file.
28333 * tests/unistdio/test-u32-vasnprintf2.c: New file.
28334 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
28335 * tests/unistdio/test-u32-vasnprintf3.c: New file.
28336 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
28337 * tests/unistdio/test-u32-vasprintf1.c: New file.
28338 * tests/unistdio/test-u32-vsnprintf1.c: New file.
28339 * tests/unistdio/test-u32-vsprintf1.c: New file.
28340 * modules/unistdio/base: New file.
28341 * modules/unistdio/u-printf-args: New file.
28342 * modules/unistdio/ulc-asnprintf: New file.
28343 * modules/unistdio/ulc-asprintf: New file.
28344 * modules/unistdio/ulc-fprintf: New file.
28345 * modules/unistdio/ulc-printf-parse: New file.
28346 * modules/unistdio/ulc-snprintf: New file.
28347 * modules/unistdio/ulc-sprintf: New file.
28348 * modules/unistdio/ulc-vasnprintf: New file.
28349 * modules/unistdio/ulc-vasprintf: New file.
28350 * modules/unistdio/ulc-vfprintf: New file.
28351 * modules/unistdio/ulc-vsnprintf: New file.
28352 * modules/unistdio/ulc-vsprintf: New file.
28353 * modules/unistdio/u8-asnprintf: New file.
28354 * modules/unistdio/u8-asprintf: New file.
28355 * modules/unistdio/u8-printf-parse: New file.
28356 * modules/unistdio/u8-snprintf: New file.
28357 * modules/unistdio/u8-sprintf: New file.
28358 * modules/unistdio/u8-vasnprintf: New file.
28359 * modules/unistdio/u8-vasprintf: New file.
28360 * modules/unistdio/u8-vsnprintf: New file.
28361 * modules/unistdio/u8-vsprintf: New file.
28362 * modules/unistdio/u8-u8-asnprintf: New file.
28363 * modules/unistdio/u8-u8-asprintf: New file.
28364 * modules/unistdio/u8-u8-snprintf: New file.
28365 * modules/unistdio/u8-u8-sprintf: New file.
28366 * modules/unistdio/u8-u8-vasnprintf: New file.
28367 * modules/unistdio/u8-u8-vasprintf: New file.
28368 * modules/unistdio/u8-u8-vsnprintf: New file.
28369 * modules/unistdio/u8-u8-vsprintf: New file.
28370 * modules/unistdio/u16-asnprintf: New file.
28371 * modules/unistdio/u16-asprintf: New file.
28372 * modules/unistdio/u16-printf-parse: New file.
28373 * modules/unistdio/u16-snprintf: New file.
28374 * modules/unistdio/u16-sprintf: New file.
28375 * modules/unistdio/u16-vasnprintf: New file.
28376 * modules/unistdio/u16-vasprintf: New file.
28377 * modules/unistdio/u16-vsnprintf: New file.
28378 * modules/unistdio/u16-vsprintf: New file.
28379 * modules/unistdio/u16-u16-asnprintf: New file.
28380 * modules/unistdio/u16-u16-asprintf: New file.
28381 * modules/unistdio/u16-u16-snprintf: New file.
28382 * modules/unistdio/u16-u16-sprintf: New file.
28383 * modules/unistdio/u16-u16-vasnprintf: New file.
28384 * modules/unistdio/u16-u16-vasprintf: New file.
28385 * modules/unistdio/u16-u16-vsnprintf: New file.
28386 * modules/unistdio/u16-u16-vsprintf: New file.
28387 * modules/unistdio/u32-asnprintf: New file.
28388 * modules/unistdio/u32-asprintf: New file.
28389 * modules/unistdio/u32-printf-parse: New file.
28390 * modules/unistdio/u32-snprintf: New file.
28391 * modules/unistdio/u32-sprintf: New file.
28392 * modules/unistdio/u32-vasnprintf: New file.
28393 * modules/unistdio/u32-vasprintf: New file.
28394 * modules/unistdio/u32-vsnprintf: New file.
28395 * modules/unistdio/u32-vsprintf: New file.
28396 * modules/unistdio/u32-u32-asnprintf: New file.
28397 * modules/unistdio/u32-u32-asprintf: New file.
28398 * modules/unistdio/u32-u32-snprintf: New file.
28399 * modules/unistdio/u32-u32-sprintf: New file.
28400 * modules/unistdio/u32-u32-vasnprintf: New file.
28401 * modules/unistdio/u32-u32-vasprintf: New file.
28402 * modules/unistdio/u32-u32-vsnprintf: New file.
28403 * modules/unistdio/u32-u32-vsprintf: New file.
28404 * modules/unistdio/ulc-asnprintf-tests: New file.
28405 * modules/unistdio/ulc-vasnprintf-tests: New file.
28406 * modules/unistdio/ulc-vasprintf-tests: New file.
28407 * modules/unistdio/ulc-vsnprintf-tests: New file.
28408 * modules/unistdio/ulc-vsprintf-tests: New file.
28409 * modules/unistdio/u8-asnprintf-tests: New file.
28410 * modules/unistdio/u8-vasnprintf-tests: New file.
28411 * modules/unistdio/u8-vasprintf-tests: New file.
28412 * modules/unistdio/u8-vsnprintf-tests: New file.
28413 * modules/unistdio/u8-vsprintf-tests: New file.
28414 * modules/unistdio/u16-asnprintf-tests: New file.
28415 * modules/unistdio/u16-vasnprintf-tests: New file.
28416 * modules/unistdio/u16-vasprintf-tests: New file.
28417 * modules/unistdio/u16-vsnprintf-tests: New file.
28418 * modules/unistdio/u16-vsprintf-tests: New file.
28419 * modules/unistdio/u32-asnprintf-tests: New file.
28420 * modules/unistdio/u32-vasnprintf-tests: New file.
28421 * modules/unistdio/u32-vasprintf-tests: New file.
28422 * modules/unistdio/u32-vsnprintf-tests: New file.
28423 * modules/unistdio/u32-vsprintf-tests: New file.
28424 * MODULES.html.sh (Unicode string functions): Add the new modules.
28426 2007-07-01 Bruno Haible <bruno@clisp.org>
28428 * lib/sprintf.c (sprintf): Limit the available length estimation,
28429 to avoid address wraparound.
28430 * lib/vsprintf.c (vsprintf): Likewise.
28431 * modules/sprintf-posix (Dependencies): Add stdint.
28432 * modules/vsprintf-posix (Dependencies): Likewise.
28434 2007-07-01 Bruno Haible <bruno@clisp.org>
28436 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
28437 Windows PATH as well. Conservative double-quoting. Comments.
28439 2007-07-01 Bruno Haible <bruno@clisp.org>
28440 Eric Blake <ebb9@byu.net>
28441 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28443 * gnulib-tool (self_abspathname): Fix algorithm to cope with
28444 empty components in $PATH, denoting '.'.
28446 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28448 * gnulib-tool: Fix indentation.
28449 (func_create_megatestdir): Likewise.
28450 Report by Bruno Haible.
28452 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28454 Sync from Automake.
28455 * build-aux/gnupload: Fix shell portability issues with for loops.
28456 Report by Karl Berry.
28458 2007-06-29 Simon Josefsson <simon@josefsson.org>
28460 * build-aux/maint.mk (POURL): Use translationproject.org.
28462 2007-06-27 Simon Josefsson <simon@josefsson.org>
28463 Bruno Haible <bruno@clisp.org>
28465 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
28466 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
28467 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
28468 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
28469 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
28471 2007-06-27 Bruno Haible <bruno@clisp.org>
28473 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
28474 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
28476 2007-06-26 Karl Berry <karl@gnu.org>
28478 * MODULES.html.sh: remove xreadlink-with-size.
28480 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
28482 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
28483 method that I hope also handles the double-include problem noted
28485 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
28487 2007-06-23 Bruno Haible <bruno@clisp.org>
28489 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28490 Don't let the 'mostlyclean' target fail if the last subdirectory could
28492 Reported by Karl Berry.
28494 2007-06-23 Bruno Haible <bruno@clisp.org>
28496 * gnulib-tool (echo): Add a speedier workaround for ksh.
28497 * tests/test-echo.sh: Likewise.
28499 2007-06-23 Bruno Haible <bruno@clisp.org>
28501 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
28502 * tests/test-echo.sh: Likewise.
28504 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28506 * gnulib-tool (IFS): Initialize early, so we don't set it to
28508 (self_abspathname): Rewrite algorithm to set it, reindent.
28509 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
28510 (func_create_megatestdir): Merge some sed scripts.
28512 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
28514 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
28515 exposed by Sun Studio 11 cc on Solaris 8.
28517 2007-06-22 Bruno Haible <bruno@clisp.org>
28519 * gnulib-tool (echo): Ensure the echo primitive does not interpret
28521 * tests/test-echo.sh: New file.
28523 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28525 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
28526 simplify `sed_replace_build_aux' scripts, they are portable but
28527 echoing them with `echo' is not.
28528 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
28530 2007-06-21 Karl Berry <karl@gnu.org>
28532 * config/srclist.txt: guess we can't handle the licenses via
28533 srclist at the moment.
28535 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
28537 * MODULES.html.sh: Add include_next.
28538 * modules/include_next: New file.
28540 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
28542 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
28544 (gl_CHECK_NEXT_HEADERS): New macro.
28545 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
28546 the obsolescent gl_ABSOLUTE_HEADER.
28547 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
28548 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
28549 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28550 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
28551 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28552 * m4/math_h.m4 (gl_MATH_H): Likewise.
28553 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
28554 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
28555 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
28556 * m4/stdint.m4 (gl_STDINT_H): Likewise.
28557 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
28558 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
28559 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
28560 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
28561 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
28562 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
28563 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
28564 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
28565 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
28566 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
28567 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28568 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
28569 * m4/inttypes.m4 (gl_INTTYPES_H): Define
28570 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
28571 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
28572 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
28573 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
28574 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
28575 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
28576 * lib/float_.h: Likewise.
28577 * lib/inttypes_.h: Likewise.
28578 * lib/math_.h: Likewise.
28579 * lib/search_.h: Likewise.
28580 * lib/signal_.h: Likewise.
28581 * lib/stdint_.h: Likewise.
28582 * lib/stdio_.h: Likewise.
28583 * lib/stdlib_.h: Likewise.
28584 * lib/string_.h: Likewise.
28585 * lib/sys_stat_.h: Likewise.
28586 * lib/sys_time_.h: Likewise.
28587 * lib/time_.h: Likewise.
28588 * lib/unistd_.h: Likewise.
28589 * lib/wchar_.h: Likewise.
28590 * lib/wctype_.h: Likewise.
28591 * lib/dirent_.h: Likewise.
28592 * lib/iconv_.h: Likewise.
28593 * lib/locale_.h: Likewise.
28594 * lib/netinet_in_.h: Likewise.
28595 * lib/sys_select_.h: Likewise.
28596 * lib/sys_socket_.h: Likewise.
28597 * lib/sysexits_.h: Likewise.
28598 * modules/fcntl (Depends-on): Depend on include_next, not
28600 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
28601 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
28602 * modules/fchdir: Likewise.
28603 * modules/float: Likewise.
28604 * modules/iconv_open: Likewise.
28605 * modules/inttypes: Likewise.
28606 * modules/locale: Likewise.
28607 * modules/math: Likewise.
28608 * modules/netinet_in: Likewise.
28609 * modules/search: Likewise.
28610 * modules/signal: Likewise.
28611 * modules/stdint: Likewise.
28612 * modules/stdio: Likewise.
28613 * modules/stdlib: Likewise.
28614 * modules/string: Likewise.
28615 * modules/sys_select: Likewise.
28616 * modules/sys_socket: Likewise.
28617 * modules/sys_stat: Likewise.
28618 * modules/sys_time: Likewise.
28619 * modules/sysexits: Likewise.
28620 * modules/time: Likewise.
28621 * modules/unistd: Likewise.
28622 * modules/wchar: Likewise.
28623 * modules/wctype: Likewise.
28624 * modules/sys_stat: Change maintainer to "all".
28625 * modules/unistd: Likewise.
28627 2007-06-20 Karl Berry <karl@gnu.org>
28629 * config/srclist.txt: track www changes in license files.
28631 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
28633 * build-aux/bootstrap: Remove stray dot.
28634 Make sure build_aux settings are honored when linking
28635 gnulib_extra_files.
28637 2007-06-19 Eric Blake <ebb9@byu.net>
28639 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
28640 Allow compilation on cygwin.
28642 2007-06-19 Jim Meyering <jim@meyering.net>
28644 xreadlink-with-size: Remove module. No longer used.
28645 Ex-callers now use xreadlink or mreadlink-with-size.
28646 * modules/xreadlink-with-size: Remove module.
28647 * lib/xreadlink-with-size.c: Remove file.
28648 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
28649 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
28650 just before the function definition *is* accurate.
28652 Eliminate one way canonicalize_filename_mode could exit.
28653 * lib/canonicalize.c (canonicalize_filename_mode):
28654 Use mreadlink_with_size, not xreadlink_with_size.
28656 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
28658 Detect porting problems to FreeBSD/arm, which has time_t wider than
28659 long int. Original problem reported for GNU diff by Xin Li in
28660 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
28661 * modules/getdate (Depends-on): Add intprops, verify.
28662 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
28663 is an integer type no wider than long int.
28665 2007-06-18 Jim Meyering <jim@meyering.net>
28667 New module: mreadlink-with-size.
28668 * MODULES.html.sh: Add mreadlink-with-size.
28669 * modules/mreadlink-with-size: New module
28670 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
28671 not xreadlink-with-size.
28672 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
28674 2007-06-16 Bruno Haible <bruno@clisp.org>
28676 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
28677 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
28678 Reported by Gary V. Vaughan <gary@gnu.org>.
28680 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
28682 Revamp lchown so that it lives in unistd.h where it belongs.
28683 * lib/lchown.h: Remove.
28684 * lib/dirchownmod.c: Don't include lib/lchown.h.
28685 * lib/fchownat.c: Likewise.
28686 * lib/openat.c: Likewise.
28687 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
28688 does not follow symlinks.
28689 (EOPNOTSUPP): Define if not defined.
28690 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
28692 (lchown): New decl.
28693 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
28694 Do not check for lchown decl.
28695 Set REPLACE_LCHOWN.
28696 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
28698 * modules/chown: Make it clear it follows symlinks.
28699 * modules/lchown: Make it clear it doesn't follow symlinks.
28700 (Files): Remove lib/lchown.h
28701 (Depends-on): Add unistd.
28702 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
28703 (Include): Include <unistd.h>, not "lchown.h".
28704 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
28707 2007-06-15 Jim Meyering <jim@meyering.net>
28709 Change license (GPL to LGPL) of fsusage and dependents.
28710 * modules/fsusage (License): Change to LGPL.
28711 * modules/full-read (License): Likewise.
28712 * modules/full-write (License): Likewise.
28713 * modules/safe-read (License): Likewise.
28714 * modules/safe-write (License): Likewise.
28716 2007-06-14 Ben Pfaff <blp@gnu.org>
28718 Missing part of allocsa -> malloca transition.
28719 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
28722 2007-06-12 Bruno Haible <bruno@clisp.org>
28724 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
28725 to ia64, x86_64, i386.
28726 Reported by Eric Blake.
28728 2007-06-12 Bruno Haible <bruno@clisp.org>
28730 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
28731 cross-compiling to x86_64.
28733 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
28735 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
28736 glitch reported by Ralf Wildenhues in
28737 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
28739 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
28742 2007-06-11 Bruno Haible <bruno@clisp.org>
28744 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
28745 replacement string.
28746 Reported by Eric Blake.
28748 2007-06-10 Bruno Haible <bruno@clisp.org>
28750 Prepare vasnprintf code for use with Unicode strings.
28751 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
28752 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
28754 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
28755 a_u32_string variants.
28756 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
28757 * lib/printf-args.c: Don't include config.h and the specification
28758 header if PRINTF_FETCHARGS is already defined.
28759 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
28760 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
28761 TYPE_U16_STRING, TYPE_U32_STRING.
28762 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
28763 u16_directive, u16_directives, u32_directive, u32_directives): New
28765 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
28767 * lib/printf-parse.c: Don't include config.h and the specification
28768 header if PRINTF_PARSE is already defined. Eliminate the set of
28769 parameters for WIDE_CHAR_VERSION; the user of this file must provide
28770 them now. Include c-ctype.h.
28771 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
28772 directive and CHAR_T_ONLY_ASCII.
28773 * lib/vasnprintf.c: Don't include config.h and the specification header
28774 if VASNPRINTF is already defined.
28775 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
28776 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
28777 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
28778 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
28779 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
28780 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
28782 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
28783 pad_ourselves also in this case, with the 'c' and 's' directives, and
28784 with a different notion of "width".
28785 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
28787 2007-06-10 Bruno Haible <bruno@clisp.org>
28789 * modules/unistr/u32-mbsnlen: New file.
28790 * lib/unistr/u32-mbsnlen.c: New file.
28792 * modules/unistr/u16-mbsnlen: New file.
28793 * lib/unistr/u16-mbsnlen.c: New file.
28795 * modules/unistr/u8-mbsnlen: New file.
28796 * lib/unistr/u8-mbsnlen.c: New file.
28798 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
28801 2007-06-10 Bruno Haible <bruno@clisp.org>
28803 * lib/string_.h (mbsnlen): New declaration.
28804 * lib/mbsnlen.c: New file.
28805 * m4/mbsnlen.m4: New file.
28806 * modules/mbsnlen: New file.
28807 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
28808 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
28809 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
28811 2007-06-10 Bruno Haible <bruno@clisp.org>
28813 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
28815 2007-06-10 Bruno Haible <bruno@clisp.org>
28817 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
28818 * lib/mbuiter.h: Likewise.
28820 2007-06-10 Bruno Haible <bruno@clisp.org>
28822 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
28825 2007-06-10 Karl Berry <karl@gnu.org>
28827 * config/srclist.txt: remove gettext entries, Bruno prefers
28828 to update individually.
28830 2007-06-10 Bruno Haible <bruno@clisp.org>
28832 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
28833 'maxlen'. Ensure only length + width bytes are allocated, not
28834 length + 1 + width.
28836 2007-06-09 Bruno Haible <bruno@clisp.org>
28838 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
28839 (CHAR_T): Remove macro.
28840 (VASNPRINTF): Update.
28842 2007-06-09 Bruno Haible <bruno@clisp.org>
28844 * MODULES.html.sh (Unicode string functions): Add the new modules.
28846 * modules/uniconv/u32-conv-to-enc: New file.
28847 * lib/uniconv/u32-conv-to-enc.c: New file.
28848 * modules/uniconv/u32-conv-to-enc-tests: New file.
28849 * tests/uniconv/test-u32-conv-to-enc.c: New file.
28851 * modules/uniconv/u16-conv-to-enc: New file.
28852 * lib/uniconv/u16-conv-to-enc.c: New file.
28853 * lib/uniconv/u-conv-to-enc.h: New file.
28854 * modules/uniconv/u16-conv-to-enc-tests: New file.
28855 * tests/uniconv/test-u16-conv-to-enc.c: New file.
28857 * modules/uniconv/u8-conv-to-enc: New file.
28858 * lib/uniconv/u8-conv-to-enc.c: New file.
28859 * modules/uniconv/u8-conv-to-enc-tests: New file.
28860 * tests/uniconv/test-u8-conv-to-enc.c: New file.
28862 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
28863 u32_conv_to_encoding): New declarations.
28865 2007-06-09 Bruno Haible <bruno@clisp.org>
28867 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
28869 2007-06-09 Bruno Haible <bruno@clisp.org>
28871 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
28872 * modules/malloca: Renamed from modules/allocsa, updated.
28873 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
28874 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
28875 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
28876 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
28877 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
28878 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
28879 * modules/xmalloca: Renamed from modules/xallocsa, updated.
28880 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
28881 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
28882 * modules/c-strcasestr (Depends-on): Update.
28883 * lib/c-strcasestr.c: Update.
28884 * modules/c-strstr (Depends-on): Update.
28885 * lib/c-strstr.c: Update.
28886 * modules/canonicalize-lgpl (Depends-on): Update.
28887 * lib/canonicalize-lgpl.c: Update.
28888 * modules/clean-temp (Depends-on): Update.
28889 * lib/clean-temp.c: Update.
28890 * modules/csharpcomp (Depends-on): Update.
28891 * lib/csharpcomp.c: Update.
28892 * modules/csharpexec (Depends-on): Update.
28893 * lib/csharpexec.c: Update.
28894 * modules/javacomp (Depends-on): Update.
28895 * lib/javacomp.c: Update.
28896 * modules/javaexec (Depends-on): Update.
28897 * lib/javaexec.c: Update.
28898 * modules/mbscasestr (Depends-on): Update.
28899 * lib/mbscasestr.c: Update.
28900 * modules/mbsstr (Depends-on): Update.
28901 * lib/mbsstr.c: Update.
28902 * modules/setenv (Depends-on): Update.
28903 * lib/setenv.c: Update.
28904 * modules/strcasestr (Depends-on): Update.
28905 * lib/strcasestr.c: Update.
28906 * modules/striconveha (Depends-on): Update.
28907 * lib/striconveha.c: Update.
28908 * modules/relocatable-prog-wrapper (Files): Update.
28909 * lib/relocwrapper.c: Update.
28910 * build-aux/install-reloc: Update.
28911 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
28913 2007-06-08 Bruno Haible <bruno@clisp.org>
28916 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
28917 * lib/fpurge.c (fpurge): Likewise.
28918 * lib/freading.c (freading): Likewise.
28919 * lib/fseeko.c (rpl_fseeko): Likewise.
28920 * lib/fseterr.c (fseterr): Likewise.
28921 * lib/fwriting.c (fwriting): Likewise.
28922 * tests/test-fflush.c (main): Avoid a failure on uClibc.
28924 2007-06-08 Bruno Haible <bruno@clisp.org>
28926 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
28927 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
28928 * modules/gettext (Files): Add m4/intlmacosx.m4.
28930 2007-06-07 Bruno Haible <bruno@clisp.org>
28932 * modules/localename-tests: New file.
28933 * tests/test-localename.c: New file.
28935 New module 'localename'.
28936 * lib/localename.h: New file.
28937 * lib/localename.c: New file, from GNU gettext.
28938 * m4/localename.m4: New file.
28939 * modules/localename: New file.
28941 2007-06-07 Bruno Haible <bruno@clisp.org>
28943 Work around the lack of <wchar.h> on some builds of uClibc.
28944 * doc/headers/wchar.texi: Update.
28945 * lib/wchar_.h: Include <wchar.h> only if it exists.
28946 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
28947 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
28948 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
28950 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
28951 * modules/mbfile (Depends-on): Add wchar.
28952 * modules/mbiter (Depends-on): Likewise.
28953 * modules/mbuiter (Depends-on): Likewise.
28954 Reported by Simon Josefsson.
28956 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
28958 Work around problem reported by Steven M. Schweda in
28959 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
28960 Tru64 5.1B with the Compaq compiler environment installed declares
28961 an 'isblank' function but does not define it in the C library.
28962 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
28963 * lib/regex_internal.h (isblank): Likewise.
28964 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
28965 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
28967 2007-06-05 Bruno Haible <bruno@clisp.org>
28969 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
28971 * modules/printf-safe: New file.
28972 * modules/fprintf-posix (Depends-on): Add printf-safe.
28973 * modules/printf-posix (Depends-on): Likewise.
28974 * modules/snprintf-posix (Depends-on): Likewise.
28975 * modules/sprintf-posix (Depends-on): Likewise.
28976 * modules/vasnprintf-posix (Depends-on): Likewise.
28977 * modules/vasprintf-posix (Depends-on): Likewise.
28978 * modules/vfprintf-posix (Depends-on): Likewise.
28979 * modules/vprintf-posix (Depends-on): Likewise.
28980 * modules/vsnprintf-posix (Depends-on): Likewise.
28981 * modules/vsprintf-posix (Depends-on): Likewise.
28982 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
28983 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
28984 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
28985 "no" on i386, x86_64, ia64.
28986 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
28987 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28988 on i386, x86_64, ia64.
28989 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
28990 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28991 on i386, x86_64, ia64.
28992 * tests/test-vasnprintf-posix.c: Include float.h.
28993 (LDBL80_WORDS): New macro.
28994 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28995 on i386, x86_64, ia64.
28996 * tests/test-vasprintf-posix.c: Include float.h.
28997 (LDBL80_WORDS): New macro.
28998 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
28999 on i386, x86_64, ia64.
29000 * tests/test-snprintf-posix.c: Include float.h.
29001 * tests/test-sprintf-posix.c: Likewise.
29002 * tests/test-vsnprintf-posix.c: Likewise.
29003 * tests/test-vsprintf-posix.c: Likewise.
29005 2007-06-05 Bruno Haible <bruno@clisp.org>
29007 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
29008 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
29009 non-IEEE numbers on i386, x86_64, ia64.
29010 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
29011 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
29012 * tests/test-isnanl.h: Include float.h.
29013 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
29015 2007-06-05 Bruno Haible <bruno@clisp.org>
29017 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
29018 also the %a / %A. Handle the %a / %A code before this extra handling.
29020 2007-06-05 Bruno Haible <bruno@clisp.org>
29022 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
29023 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
29025 2007-06-05 Bruno Haible <bruno@clisp.org>
29027 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
29028 typo in variable name.
29030 2007-06-05 Eric Blake <ebb9@byu.net>
29032 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
29033 Reported by Simon Josefsson.
29035 2007-06-04 Bruno Haible <bruno@clisp.org>
29037 Avoid test failures on some PowerPC platforms.
29038 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
29039 Define differently for PowerPC.
29040 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
29041 Reported by Gary V. Vaughan <gary@gnu.org>.
29043 2007-06-02 Bruno Haible <bruno@clisp.org>
29045 Fix test-stdint failure on FreeBSD/ia64.
29046 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
29047 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
29048 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
29049 * doc/headers/stdint.texi: Update.
29051 2007-06-01 Bruno Haible <bruno@clisp.org>
29053 * tests/test-binary-io.c (main): Pass a third argument to open().
29054 Reported by Gary V. Vaughan <gary@gnu.org>.
29056 2007-06-01 Bruno Haible <bruno@clisp.org>
29058 * doc/functions/frexpl.texi: Update for mingw.
29060 2007-06-01 Bruno Haible <bruno@clisp.org>
29062 * tests/test-lseek.c (main): Disable test of errno for invalid third
29064 * doc/functions/lseek.texi: Update.
29065 Reported by Gary V. Vaughan <gary@gnu.org>.
29067 2007-05-28 Bruno Haible <bruno@clisp.org>
29069 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
29071 2007-05-31 Eric Blake <ebb9@byu.net>
29073 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
29076 2007-05-30 Eric Blake <ebb9@byu.net>
29077 and Bruno Haible <bruno@clisp.org>
29079 Work around mingw test failures exposed by m4-1.4.9b.
29080 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
29081 * tests/test-unistd.c: Disable uid_t and git_t tests for the
29084 2007-05-30 Bruno Haible <bruno@clisp.org>
29086 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
29087 assuming that they are closed. Needed on HP-UX 11.
29089 2007-05-29 Bruno Haible <bruno@clisp.org>
29091 Fix a problem with #include_next.
29092 * lib/dirent_.h: Split the double-inclusion guard.
29093 * lib/fcntl_.h: Likewise.
29094 * lib/float_.h: Likewise.
29095 * lib/iconv_.h: Likewise.
29096 * lib/inttypes_.h: Likewise.
29097 * lib/locale_.h: Likewise.
29098 * lib/math_.h: Likewise.
29099 * lib/netinet_in_.h: Likewise.
29100 * lib/search_.h: Likewise.
29101 * lib/signal_.h: Likewise.
29102 * lib/stdint_.h: Likewise.
29103 * lib/stdio_.h: Likewise.
29104 * lib/stdlib_.h: Likewise.
29105 * lib/string_.h: Likewise.
29106 * lib/sys_select_.h: Likewise.
29107 * lib/sys_socket_.h: Likewise.
29108 * lib/sys_stat_.h: Likewise.
29109 * lib/sys_time_.h: Likewise.
29110 * lib/sysexits_.h: Likewise.
29111 * lib/time_.h: Likewise.
29112 * lib/unistd_.h: Likewise.
29113 * lib/wchar_.h: Likewise.
29114 * lib/wctype_.h: Likewise.
29116 2007-05-29 Bruno Haible <bruno@clisp.org>
29118 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
29121 2007-05-29 Bruno Haible <bruno@clisp.org>
29123 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
29125 Reported by Eric Blake.
29127 2007-05-29 Bruno Haible <bruno@clisp.org>
29129 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
29132 2007-05-29 Eric Blake <ebb9@byu.net>
29133 Bruno Haible <bruno@clisp.org>
29135 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
29138 2007-05-28 Eric Blake <ebb9@byu.net>
29140 * modules/closein-tests (test_closein_LDADD): Support test on
29141 cygwin with libtool.
29143 2007-05-28 Bruno Haible <bruno@clisp.org>
29145 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
29146 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29147 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29148 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29149 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29150 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29151 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29152 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29153 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29155 2007-05-28 Eric Blake <ebb9@byu.net>
29157 Unconditionally include <config.h> in unit tests.
29158 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
29159 * tests/test-allocsa.c, tests/test-arcfour.c,
29160 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
29161 tests/test-array_list.c, tests/test-array_oset.c,
29162 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
29163 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
29164 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
29165 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
29166 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
29167 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
29168 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
29169 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
29170 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
29171 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
29172 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
29173 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
29174 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
29175 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
29176 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
29177 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
29178 test-md5.c, test-memmem.c, test-printf-posix.c,
29179 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
29180 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
29181 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
29182 test-strcasestr.c, test-striconv.c, test-striconveh.c,
29183 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
29184 test-vasnprintf-posix2.c, test-vasnprintf.c,
29185 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
29186 test-vfprintf-posix.c, test-vprintf-posix.c,
29187 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
29188 test-xvasprintf.c: Likewise.
29190 2007-05-28 Bruno Haible <bruno@clisp.org>
29192 * gnulib-tool (func_import): Remember the --with-tests command-line
29193 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
29194 Reported by Eric Blake.
29196 2007-05-28 Bruno Haible <bruno@clisp.org>
29198 * modules/ftell-tests: New file.
29199 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
29200 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
29202 * lib/ftell.c: New file.
29203 * modules/ftell: New file.
29204 * m4/ftell.m4: New file.
29205 * doc/functions/ftell.texi: Update.
29206 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
29208 * lib/stdio_.h (rpl_ftell): New declaration.
29209 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
29212 2007-05-28 Eric Blake <ebb9@byu.net>
29214 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
29216 2007-05-28 Bruno Haible <bruno@clisp.org>
29218 * modules/fseek-tests: New file.
29219 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
29220 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
29222 * lib/fseek.c: New file.
29223 * modules/fseek: New file.
29224 * m4/fseek.m4: New file.
29225 * doc/functions/fseek.texi: Update.
29226 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
29228 * lib/stdio_.h (rpl_fseek): New declaration.
29229 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
29232 2007-05-28 Bruno Haible <bruno@clisp.org>
29234 * lib/stdio_.h (fflush): More comments.
29236 2007-05-28 Bruno Haible <bruno@clisp.org>
29238 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
29241 2007-05-28 Eric Blake <ebb9@byu.net>
29243 Improve lseek module.
29244 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
29245 * lib/unistd_.h (lseek): Scale back link warning message.
29246 * tests/test-lseek.c: Beef up test.
29247 * tests/test-lseek.sh: Exercise more facets of lseek.
29248 Reported by Bruno Haible.
29250 2007-05-28 Bruno Haible <bruno@clisp.org>
29252 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
29255 2007-05-27 Bruno Haible <bruno@clisp.org>
29257 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
29259 2007-05-27 Bruno Haible <bruno@clisp.org>
29261 * modules/openmp: New file.
29262 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
29265 2007-05-26 Bruno Haible <bruno@clisp.org>
29267 * modules/chdir-long (Depends-on): Add fchdir.
29268 * modules/chdir-safer (Depends-on): Likewise.
29269 * modules/fts (Depends-on): Likewise.
29270 * modules/fts-lgpl (Depends-on): Likewise.
29271 * modules/openat (Depends-on): Likewise.
29272 * modules/savewd (Depends-on): Likewise.
29274 2007-05-24 Eric Blake <ebb9@byu.net>
29276 Fix lseek on mingw.
29277 * modules/lseek: New module.
29278 * m4/lseek.m4: New file.
29279 * lib/lseek.c: New file.
29280 * modules/lseek-tests: New file.
29281 * tests/test-lseek.c: New file.
29282 * tests/test-lseek.sh: New file.
29283 * MODULES.html.sh: Document lseek module.
29284 * modules/fflush (Depends-on): Add lseek, fseeko.
29285 * modules/fseeko (Depends-on): Likewise.
29286 * modules/ftello (Depends-on): Likewise.
29287 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
29289 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
29291 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
29292 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
29293 * lib/ftello.c (rpl_ftello): Likewise.
29294 * tests/test-fseeko.c (main): Test this.
29295 * tests/test-fseeko.sh: Likewise.
29296 * tests/test-ftello.c (main): Likewise.
29297 * tests/test-ftello.sh: Likewise.
29298 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
29299 implies replacing fseek.
29300 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
29302 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
29303 * modules/unistd (Makefile.am): Likewise.
29304 * lib/unistd_.h (lseek): Declare a replacement.
29305 * doc/functions/lseek.texi (lseek): Document this fix.
29306 * doc/functions/fseek.texi (fseek): Likewise.
29307 * doc/functions/ftell.texi (ftell): Likewise.
29309 2007-05-24 Bruno Haible <bruno@clisp.org>
29311 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
29312 in the printed representation of a NaN.
29313 * tests/test-vasprintf-posix.c (test_function): Likewise.
29314 * tests/test-snprintf-posix.h (test_function): Likewise.
29315 * tests/test-sprintf-posix.h (test_function): Likewise.
29316 Reported by Eric Blake.
29318 2007-05-23 Eric Blake <ebb9@byu.net>
29320 Fix fseeko/ftello on cygwin 1.5.24.
29321 * doc/functions/fseeko.texi (fseeko): Document the fix.
29322 * doc/functions/ftello.texi (ftello): Document the fix.
29323 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
29324 * doc/functions/stdout.text (stdout): New file.
29325 * doc/functions/stderr.text (stderr): New file.
29326 * doc/gnulib.texi (Function Substitutes): Use new files.
29327 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
29329 * tests/test-ftello.c (main): Likewise for ftello.
29330 * tests/test-fseeko.sh: New file.
29331 * tests/test-ftello.sh: New file.
29332 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
29333 with seekable stdin.
29334 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
29335 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
29336 (gl_REPLACE_FSEEKO): New macro.
29337 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
29338 * modules/fseeko (Files): Distribute fseeko.c.
29339 * modules/ftello (Files): Distribute ftello.c.
29340 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
29342 * lib/ftello.c (rpl_ftello): New file.
29343 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
29345 (gl_STDIN_LARGE_OFFSET): New macro.
29346 * modules/stdio (Makefile.am): Perform the replacement.
29347 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
29349 2007-05-23 Bruno Haible <bruno@clisp.org>
29351 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
29352 GNULIB_POSIXCHECK is defined.
29354 2007-05-21 Bruno Haible <bruno@clisp.org>
29356 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
29357 Check also the output for NaN arguments. When cross-compiling, guess
29359 * lib/vasnprintf.c: Update comments.
29360 * tests/test-vasnprintf-posix.c (strisnan): New function.
29361 (test_function): Use it.
29362 * tests/test-vasprintf-posix.c (strisnan): New function.
29363 (test_function): Use it.
29364 * tests/test-snprintf-posix.h (strisnan): New function.
29365 (test_function): Use it.
29366 * tests/test-sprintf-posix.h (strisnan): New function.
29367 (test_function): Use it.
29368 Reported by Eric Blake.
29370 2007-05-20 Bruno Haible <bruno@clisp.org>
29372 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
29373 numbers that fails on BeOS.
29374 * doc/functions/frexpl.texi: Update.
29376 2007-05-20 Jim Meyering <jim@meyering.net>
29378 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
29379 forced upon us by glibc-2.6.
29381 2007-05-20 Bruno Haible <bruno@clisp.org>
29383 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
29384 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
29385 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
29386 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
29387 NEED_PRINTF_INFINITE.
29388 (is_infinitel): New function.
29389 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
29390 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
29391 gl_PREREQ_VASNPRINTF_INFINITE.
29392 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
29393 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29394 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
29395 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
29396 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
29397 gl_PREREQ_VASNPRINTF_INFINITE.
29398 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29399 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29400 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29401 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29402 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29403 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29404 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29405 * doc/functions/fprintf.texi: Update.
29406 * doc/functions/printf.texi: Update.
29407 * doc/functions/snprintf.texi: Update.
29408 * doc/functions/sprintf.texi: Update.
29409 * doc/functions/vfprintf.texi: Update.
29410 * doc/functions/vprintf.texi: Update.
29411 * doc/functions/vsnprintf.texi: Update.
29412 * doc/functions/vsprintf.texi: Update.
29414 2007-05-20 Bruno Haible <bruno@clisp.org>
29416 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
29417 was not found in libc.
29418 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29420 2007-05-20 Bruno Haible <bruno@clisp.org>
29422 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
29423 printed as "-nan" instead of "nan".
29424 * tests/test-vasprintf-posix.c (test_function): Likewise.
29425 * tests/test-snprintf-posix.h (test_function): Likewise.
29426 * tests/test-sprintf-posix.h (test_function): Likewise.
29427 Needed for HP-UX 11.
29429 2007-05-20 Jim Meyering <jim@meyering.net>
29431 Fix buggy test for the fchownat-deref bug.
29432 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
29433 symlink required for the run-test. Without it, this test would
29434 always declare that fchownat doesn't work, and client code would
29435 unnecessarily use the replacement function with fixed libc.
29436 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
29437 Reported by Greg Schafer.
29439 2007-05-19 Bruno Haible <bruno@clisp.org>
29441 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
29442 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
29443 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
29444 Needed for IRIX 6.5 and Solaris 2.5.1.
29446 2007-05-19 Bruno Haible <bruno@clisp.org>
29448 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
29449 (test_function): Skip tests involving -0.0 on platforms where
29451 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
29452 (test_function): Skip tests involving -0.0 on platforms where
29454 * tests/test-snprintf-posix.h (have_minus_zero): New function.
29455 (test_function): Skip tests involving -0.0 on platforms where
29457 * tests/test-sprintf-posix.h (have_minus_zero): New function.
29458 (test_function): Skip tests involving -0.0 on platforms where
29460 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
29462 * tests/test-printf-posix.h (test_function): Likewise.
29463 * tests/test-printf-posix.output: Remove all -0.0 related results.
29464 Needed for IRIX 6.5.
29466 2007-05-19 Bruno Haible <bruno@clisp.org>
29468 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
29469 printed as "nan0x7fffffff" instead of "nan".
29470 * tests/test-vasprintf-posix.c (test_function): Likewise.
29471 * tests/test-snprintf-posix.h (test_function): Likewise.
29472 * tests/test-sprintf-posix.h (test_function): Likewise.
29473 * tests/test-fprintf-posix.h (NaN): Remove macro.
29474 (test_function): Remove all NaN related tests.
29475 * tests/test-printf-posix.h (NaN): Remove macro.
29476 (test_function): Remove all NaN related tests.
29477 * tests/test-printf-posix.output: Remove all NaN related results.
29478 Needed for IRIX 6.5.
29480 2007-05-19 Bruno Haible <bruno@clisp.org>
29482 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
29483 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29485 2007-05-19 Bruno Haible <bruno@clisp.org>
29487 * lib/float_.h: New file.
29488 * m4/float_h.m4: New file.
29489 * modules/float: New file.
29490 * modules/isnanl (Dependencies): Add float.
29491 * modules/isnanl-nolibm (Dependencies): Likewise.
29492 * modules/mathl (Dependencies): Likewise.
29493 * modules/printf-frexpl (Dependencies): Likewise.
29494 * modules/signbit (Dependencies): Likewise.
29495 * modules/vasnprintf (Dependencies): Likewise.
29496 * doc/headers/float.texi: Update.
29498 2007-05-19 Jim Meyering <jim@meyering.net>
29500 * lib/utimens.c (gl_futimens): Rename from futimens,
29501 now that glibc-2.6 declares futimens.
29502 * lib/utimens.h: Likewise.
29504 2007-05-19 Bruno Haible <bruno@clisp.org>
29506 Avoid test failures on mingw.
29507 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
29508 * tests/test-printf-posix.sh: Likewise.
29509 * tests/test-vfprintf-posix.sh: Likewise.
29510 * tests/test-vprintf-posix.sh: Likewise.
29512 2007-05-19 Bruno Haible <bruno@clisp.org>
29514 Fix *printf result for NaN, Inf, -0.0 on mingw.
29515 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
29516 * lib/vasnprintf.c: Include math.h and isnan.h.
29517 (is_infinite_or_zero): New function.
29518 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
29519 values in the %f, %F, %e, %E, %g, %G directives.
29520 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
29521 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29522 gl_PRINTF_INFINITE and test its result. Invoke
29523 gl_PREREQ_VASNPRINTF_INFINITE.
29524 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29525 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29526 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29527 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29528 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29529 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29530 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29531 * doc/functions/fprintf.texi: Update.
29532 * doc/functions/printf.texi: Update.
29533 * doc/functions/snprintf.texi: Update.
29534 * doc/functions/sprintf.texi: Update.
29535 * doc/functions/vfprintf.texi: Update.
29536 * doc/functions/vprintf.texi: Update.
29537 * doc/functions/vsnprintf.texi: Update.
29538 * doc/functions/vsprintf.texi: Update.
29540 2007-05-19 Bruno Haible <bruno@clisp.org>
29542 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
29543 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
29544 Instead of multiplying with 10^k, set extra_zeroes to k.
29545 (scale10_round_long_double): Remove function.
29547 2007-05-18 Bruno Haible <bruno@clisp.org>
29549 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
29550 introduced on 2007-05-06.
29552 2007-05-18 Bruno Haible <bruno@clisp.org>
29554 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
29556 * tests/test-vasprintf-posix.c (test_function): Likewise.
29557 * tests/test-snprintf-posix.h (test_function): Likewise.
29558 * tests/test-sprintf-posix.h (test_function): Likewise.
29560 2007-05-18 Bruno Haible <bruno@clisp.org>
29562 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
29563 (strmatch): New function.
29564 (test_function): Test the %f directive on numbers of various exponents.
29565 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
29566 (strmatch): New function.
29567 (test_function): Test the %f directive on numbers of various exponents.
29568 * tests/test-snprintf-posix.h (strmatch): New function.
29569 (test_function): Test the %f directive on numbers of various exponents.
29570 * tests/test-sprintf-posix.h (strmatch): New function.
29571 (test_function): Test the %f directive on numbers of various exponents.
29572 * tests/test-snprintf-posix.c (SIZEOF): New macro.
29573 * tests/test-sprintf-posix.c (SIZEOF): New macro.
29574 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
29575 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
29577 2007-05-18 Bruno Haible <bruno@clisp.org>
29579 Add support for 'long double' number output.
29580 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
29581 * lib/vasnprintf.c: Include math.h and float+.h.
29582 (mp_limb_t): New type.
29583 (GMP_LIMB_BITS): New macro.
29584 (mp_twolimb_t): New type.
29585 (GMP_TWOLIMB_BITS): New macro.
29587 (multiply, divide, convert_to_decimal, decode_long_double,
29588 scale10_round_long_double, scale10_round_decimal_long_double,
29589 floorlog10l): New functions.
29590 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
29591 for the %f, %F, %e, %E, %g, %G directives.
29592 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
29593 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
29594 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
29595 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
29596 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
29597 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29598 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29599 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29600 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29601 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29602 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29603 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
29604 * modules/snprintf-posix (Depends-on): Likewise.
29605 * modules/sprintf-posix (Depends-on): Likewise.
29606 * modules/vasnprintf-posix (Depends-on): Likewise.
29607 * modules/vasprintf-posix (Depends-on): Likewise.
29608 * modules/vfprintf-posix (Depends-on): Likewise.
29609 * modules/vsnprintf-posix (Depends-on): Likewise.
29610 * modules/vsprintf-posix (Depends-on): Likewise.
29611 * modules/vasnprintf (Files): Add lib/float+.h.
29612 * doc/functions/fprintf.texi: Update.
29613 * doc/functions/printf.texi: Update.
29614 * doc/functions/snprintf.texi: Update.
29615 * doc/functions/sprintf.texi: Update.
29616 * doc/functions/vfprintf.texi: Update.
29617 * doc/functions/vprintf.texi: Update.
29618 * doc/functions/vsnprintf.texi: Update.
29619 * doc/functions/vsprintf.texi: Update.
29621 2007-05-18 Bruno Haible <bruno@clisp.org>
29623 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
29625 2007-05-18 Bruno Haible <bruno@clisp.org>
29627 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
29628 for printing 64-bit integers. Needed for mingw.
29630 2007-05-18 Bruno Haible <bruno@clisp.org>
29632 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
29633 gl_FUNC_FREXPL_WORKS.
29634 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
29636 2007-05-18 Bruno Haible <bruno@clisp.org>
29638 * modules/frexpl-nolibm-tests: New file.
29640 * modules/frexpl-nolibm: New file.
29641 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
29643 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
29645 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
29646 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
29647 GCC 4.2, which otherwise issues a lot of warnings.
29648 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
29649 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
29651 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
29652 * modules/iconv_open (iconv.h): Likewise.
29653 * modules/locale (locale.h): Likewise.
29654 * modules/netinet_in (netinet/in.h): Likewise.
29655 * modules/sys_select (sys_select.h): Likewise.
29656 * modules/sys_socket (sys/socket.h): Likewise.
29657 * modules/sys_stat (sys/stat.h): Likewise.
29658 * modules/sysexits (sysexits.h): Likewise.
29659 * modules/unistd (unistd.h): Likewise.
29661 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29663 * modules/closein-tests (Makefile.am): Distribute
29666 2007-05-17 Bruno Haible <bruno@clisp.org>
29668 * tests/test-printf-posix.output: Renamed from
29669 tests/test-fprintf-posix.out.
29670 * modules/fprintf-posix-tests: Update.
29671 * modules/printf-posix-tests: Update.
29672 * modules/vfprintf-posix-tests: Update.
29673 * modules/vprintf-posix-tests: Update.
29674 * tests/test-fprintf-posix.sh: Update.
29675 * tests/test-printf-posix.sh: Update.
29676 * tests/test-vfprintf-posix.sh: Update.
29677 * tests/test-vprintf-posix.sh: Update.
29678 Reported by Ralf Wildenhues.
29680 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
29682 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
29683 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
29684 GCC 4.2, which otherwise issues a lot of warnings.
29685 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
29686 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
29687 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
29688 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
29689 it should no longer be needed.
29690 * lib/string_.h: Likewise.
29691 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
29692 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
29693 * modules/inttypes (inttypes.h): Likewise.
29694 * modules/math (math.h): Likewise.
29695 * modules/search (search.h): Likewise.
29696 * modules/signal (signal.h): Likewise.
29697 * modules/stdint (stdint.h): Likewise.
29698 * modules/stdio (stdio.h): Likewise.
29699 * modules/stdlib (stdlib.h): Likewise.
29700 * modules/string (string.h): Likewise.
29701 * modules/sys_time (sys/time.h): Likewise.
29702 * modules/time (time.h): Likewise.
29703 * modules/wchar (wchar.h): Likewise.
29704 * modules/wctype (wtype.h): Likewise.
29706 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
29708 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
29710 2007-05-13 Bruno Haible <bruno@clisp.org>
29712 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
29713 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29714 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
29715 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
29716 (gl_PREREQ_STRTOK_R): Don't require it here.
29718 2007-05-13 Bruno Haible <bruno@clisp.org>
29720 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
29721 when used in C++ mode.
29723 2007-05-12 Bruno Haible <bruno@clisp.org>
29725 * lib/linebuffer.h: Tweak doc.
29726 * lib/linebuffer.c: Likewise.
29728 2007-05-12 James Youngman <jay@gnu.org>
29730 * lib/linebuffer.c (readlinebuffer_delim): New function,
29731 like readlinebuffer, but use a caller-specified delimiter.
29732 (readlinebuffer): Just call readlinebuffer_delim with '\n'
29734 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
29736 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
29738 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
29739 * modules/openat (Files): Remove openat-die.c.
29740 (Depends-on): Add openat-die.
29741 * modules/openat-die: New module.
29743 2007-05-06 Bruno Haible <bruno@clisp.org>
29745 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
29746 Update with info about Cygwin.
29747 * doc/functions/fprintf.texi: Update.
29748 * doc/functions/printf.texi: Update.
29749 * doc/functions/snprintf.texi: Update.
29750 * doc/functions/sprintf.texi: Update.
29751 * doc/functions/vfprintf.texi: Update.
29752 * doc/functions/vprintf.texi: Update.
29753 * doc/functions/vsnprintf.texi: Update.
29754 * doc/functions/vsprintf.texi: Update.
29755 Reported by Eric Blake.
29757 2007-05-06 Bruno Haible <bruno@clisp.org>
29759 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
29760 padding ourselves for the floating-point directives.
29761 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
29762 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
29763 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29764 gl_PRINTF_FLAG_ZERO and test its result. Invoke
29765 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
29766 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29767 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
29768 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29769 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29770 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29771 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29772 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29773 * tests/test-snprintf-posix.h (test_function): Also check the width
29774 and some flags in the %f directive.
29775 * tests/test-sprintf-posix.h (test_function): Likewise.
29776 * tests/test-vasnprintf-posix.c (test_function): Likewise.
29777 * tests/test-vasprintf-posix.c (test_function): Likewise.
29778 * doc/functions/fprintf.texi: Update.
29779 * doc/functions/printf.texi: Update.
29780 * doc/functions/snprintf.texi: Update.
29781 * doc/functions/sprintf.texi: Update.
29782 * doc/functions/vfprintf.texi: Update.
29783 * doc/functions/vprintf.texi: Update.
29784 * doc/functions/vsnprintf.texi: Update.
29785 * doc/functions/vsprintf.texi: Update.
29787 2007-05-06 Bruno Haible <bruno@clisp.org>
29789 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
29790 pass the ' flag character to sprintf or snprintf.
29791 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
29792 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
29793 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29794 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
29795 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
29796 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
29797 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
29798 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
29799 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
29800 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
29801 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29802 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
29803 * tests/test-snprintf-posix.h (test_function): Also check the grouping
29805 * tests/test-sprintf-posix.h (test_function): Likewise.
29806 * tests/test-vasnprintf-posix.c (test_function): Likewise.
29807 * tests/test-vasprintf-posix.c (test_function): Likewise.
29808 * doc/functions/fprintf.texi: Update.
29809 * doc/functions/printf.texi: Update.
29810 * doc/functions/snprintf.texi: Update.
29811 * doc/functions/sprintf.texi: Update.
29812 * doc/functions/vfprintf.texi: Update.
29813 * doc/functions/vprintf.texi: Update.
29814 * doc/functions/vsnprintf.texi: Update.
29815 * doc/functions/vsprintf.texi: Update.
29817 2007-05-01 Bruno Haible <bruno@clisp.org>
29819 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
29821 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
29823 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
29824 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
29826 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
29828 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
29829 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
29830 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
29832 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
29834 * lib/argp-help.c (struct hol_entry): New member `ord'.
29835 (HOL_ENTRY_PTRCMP): Use ord for comparison
29836 (hol_sort): Initialize ord.
29838 2007-05-01 Bruno Haible <bruno@clisp.org>
29840 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
29841 Reported by Eric Blake.
29842 * doc/gnulib.texi (Function Substitutes): Update.
29844 2007-05-01 Bruno Haible <bruno@clisp.org>
29846 * doc/functions.texi: Remove file, now redundant through
29847 doc/functions/*.texi.
29849 2007-05-01 Bruno Haible <bruno@clisp.org>
29851 * modules/argp (Depends-on): Add sleep.
29853 2007-05-01 Bruno Haible <bruno@clisp.org>
29855 * modules/sleep-tests: New file.
29856 * tests/test-sleep.c: New file.
29858 * modules/sleep: New file.
29859 * lib/sleep.c: New file.
29860 * m4/sleep.m4: New file.
29861 * lib/unistd_.h (sleep): New declaration.
29862 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
29864 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
29865 * doc/functions/sleep.texi: Document the sleep module.
29867 2007-05-01 Bruno Haible <bruno@clisp.org>
29869 * lib/sigprocmask.h: Remove file.
29870 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
29871 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
29872 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
29873 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
29874 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
29875 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
29876 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
29877 HAVE_SIGSET_T as a shell variable.
29878 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
29879 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
29880 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
29881 (Depends-on): Add signal. Remove verify.
29882 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
29883 (Include): Mention <signal.h> instead of sigprocmask.h.
29884 * NEWS: Mention the change.
29885 * lib/fatal-signal.c: Don't include sigprocmask.h.
29887 2007-05-01 Bruno Haible <bruno@clisp.org>
29889 * modules/signal: New file.
29890 * lib/signal_.h: New file.
29891 * m4/signal_h.m4: New file.
29893 2007-05-01 Bruno Haible <bruno@clisp.org>
29895 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
29896 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
29897 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
29898 HAVE_WCTYPE_CTMP_BUG into wctype.h.
29900 2007-05-01 Bruno Haible <bruno@clisp.org>
29902 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
29904 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
29905 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
29906 * modules/sys_stat (Makefile.am): Substitute their values into
29909 2007-05-01 Bruno Haible <bruno@clisp.org>
29911 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
29912 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
29913 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
29915 2007-05-01 Bruno Haible <bruno@clisp.org>
29917 * doc/header/assert.texi: Undo last change: don't mention the gnulib
29918 'assert' module here.
29920 2007-05-01 Bruno Haible <bruno@clisp.org>
29922 * doc/functions/*.texi: New files.
29923 * doc/functions/google-ranking.txt: New file.
29924 * doc/gnulib.texi (Function Substitutes): New chapter.
29925 (ctime, inet_ntoa): Remove sections.
29926 * doc/ctime.texi: Remove file.
29927 * doc/inet_ntoa.texi: Remove file.
29928 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
29930 (%.info): New rule, specifying a --reference-limit.
29932 2007-05-01 Bruno Haible <bruno@clisp.org>
29934 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
29936 2007-05-01 Bruno Haible <bruno@clisp.org>
29938 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
29939 the portability of 'mkdir' to mingw systems.
29941 2007-05-01 Bruno Haible <bruno@clisp.org>
29943 * doc/headers/google-ranking.txt: New file.
29945 2007-04-30 Eric Blake <ebb9@byu.net>
29947 Prefer fseeko to fseek.
29948 * modules/getpass (Depends-on): Add fseeko.
29949 * lib/getpass.c (getpass): Use fseeko, not fseek.
29951 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
29953 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
29954 assumes the sorting is stable, while most qsort implementations
29955 are not. Use argument addresses to ensure they never compare as
29958 * tests/test-argp-2.sh (usage-indent test): Fix output
29959 (func_compare): Restore diff options
29960 * tests/test-argp.c: Restore #include "progname.h"
29962 2007-04-29 Bruno Haible <bruno@clisp.org>
29964 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
29965 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
29966 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
29967 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
29968 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
29969 (configure.ac): Define CHECK_SNPRINTF_POSIX.
29970 (TESTS, check_PROGRAMS): Add test-snprintf.
29971 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
29972 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
29973 (TESTS, check_PROGRAMS): Add test-vsnprintf.
29974 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
29975 assertions that fail on HP-UX, OSF/1, or IRIX.
29976 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
29978 2007-04-29 Bruno Haible <bruno@clisp.org>
29980 * MODULES.html.sh (posix_functions): Remove 'contents'.
29982 2007-04-29 Karl Berry <karl@gnu.org>
29984 * config/srclist.txt (gendocs_template_min): new entry.
29986 2007-04-29 Bruno Haible <bruno@clisp.org>
29988 Work around fpurge bug on BSD systems.
29989 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
29990 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
29991 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
29992 fpurge to rpl_fpurge if the system already has this function.
29993 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
29994 the case where the system already has this function. Correct invariants
29996 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
29999 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
30001 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
30002 proposed by Sven Verdoolaege.
30004 * tests/test-argp.c: Fix option ordering. Test deeply clustered
30006 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
30007 (usage and help tests): Update
30009 2007-04-29 Bruno Haible <bruno@clisp.org>
30011 * tests/test-fflush.c (main): Use a file of size 17, not 10.
30012 Print more information in case of failure. Disable a test on BeOS.
30014 2007-04-29 Bruno Haible <bruno@clisp.org>
30016 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
30017 This helps debugging on systems on which no gdb is available.
30019 2007-04-29 Bruno Haible <bruno@clisp.org>
30021 * lib/freading.h: Improve comments.
30022 * lib/fwriting.h: Likewise.
30023 * tests/test-freading.c (main): Don't check freading immediately after
30024 repositioning. Needed for glibc.
30026 2007-04-29 Bruno Haible <bruno@clisp.org>
30028 * lib/freading.c (freading): Trivial simplification.
30030 2007-04-28 Bruno Haible <bruno@clisp.org>
30032 * tests/test-fwriting.c (main): Also test the interaction between
30033 fflush and fwriting.
30034 * modules/fwriting-tests (Depends-on): Add fflush.
30036 * tests/test-freading.c (main): Also test the interaction between
30037 fflush and freading.
30038 * modules/freading-tests (Depends-on): Add fflush.
30040 2007-04-28 Bruno Haible <bruno@clisp.org>
30042 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
30044 Suggested by Eric Blake.
30046 2007-04-28 Jim Meyering <jim@meyering.net>
30048 Avoid false-negative in gl_STDINT_H's C99 conformance test.
30049 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
30050 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
30052 2007-04-27 Eric Blake <ebb9@byu.net>
30054 * doc/headers/assert.texi (assert.h): Document assert module use.
30056 2007-04-27 Bruno Haible <bruno@clisp.org>
30058 * doc/headers/*.texi: New files.
30059 * doc/gnulib.texi (Header File Substitutes): New chapter.
30060 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
30062 (standards.info ,standards.html, standards.dvi): Update dependencies.
30063 (mostlyclean, clean): New targets.
30065 2007-04-27 Bruno Haible <bruno@clisp.org>
30067 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
30068 * modules/sysexits (Files, Makefile.am): Update.
30070 * lib/sys_socket_.h: Renamed from lib/socket_.h.
30071 * modules/sys_socket (Files, Makefile.am): Update.
30073 * lib/sys_stat_.h: Renamed from lib/stat_.h.
30074 * modules/sys_stat (Files, Makefile.am): Update.
30076 2007-04-27 Eric Blake <ebb9@byu.net>
30078 * lib/freading.h: Improve comments.
30079 * lib/fwriting.h: Likewise.
30080 * lib/fflush.c: Likewise.
30082 Fix closein for mingw.
30083 * modules/closein-tests: Add tests for closein.
30084 * tests/test-closein.c: New file.
30085 * tests/test-closein.sh: Likewise.
30086 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
30087 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
30089 2007-04-27 Bruno Haible <bruno@clisp.org>
30091 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
30093 * lib/math_.h [__DECC]: Likewise.
30094 * lib/stdio_.h [__DECC]: Likewise.
30095 * lib/stdlib_.h [__DECC]: Likewise.
30096 * lib/string_.h [__DECC]: Likewise.
30097 * lib/time_.h [__DECC]: Likewise.
30098 * lib/wchar_.h [__DECC]: Likewise.
30099 * lib/wctype_.h [__DECC]: Likewise.
30101 2007-04-27 Bruno Haible <bruno@clisp.org>
30103 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
30105 2007-04-27 Bruno Haible <bruno@clisp.org>
30107 * lib/fflush.c: Add comments.
30108 * modules/fpurge-tests (Depends-on): Add fflush.
30109 * modules/freadable-tests (Depends-on): Likewise.
30110 * modules/fwritable-tests (Depends-on): Likewise.
30112 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
30114 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
30115 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
30116 Report by Bruno Haible <bruno@clisp.org>.
30118 2007-04-26 Eric Blake <ebb9@byu.net>
30120 Fix fflush on mingw.
30121 * modules/fflush (Depends-on): Add freading.
30122 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
30125 2007-04-26 Eric Blake <ebb9@byu.net>
30126 and Bruno Haible <bruno@clisp.org>
30128 Implement freading and fwriting.
30129 * lib/freading.c: New file.
30130 * lib/freading.h: Likewise.
30131 * m4/freading.m4: Likewise.
30132 * modules/freading: Likewise.
30133 * modules/freading-tests: Likewise.
30134 * tests/test-freading.c: Likewise.
30135 * lib/fwriting.c: New file.
30136 * lib/fwriting.h: Likewise.
30137 * m4/fwriting.m4: Likewise.
30138 * modules/fwriting: Likewise.
30139 * modules/fwriting-tests: Likewise.
30140 * tests/test-fwriting.c: Likewise.
30141 * MODULES.html.sh (File stream based Input/Output): Mention them.
30143 2007-04-26 Bruno Haible <bruno@clisp.org>
30145 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
30146 'long' when we assume it.
30147 Suggested by Eric Blake.
30149 2007-04-26 Bruno Haible <bruno@clisp.org>
30151 Ensure fseeko, ftello are declared on glibc systems.
30152 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
30153 * modules/fseeko (configure.ac-early): Likewise.
30154 * modules/ftello (configure.ac-early): Likewise.
30155 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
30156 AC_FUNC_FSEEKO for this.
30157 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
30158 (gl_CHECK_FSEEKO): Remove macro.
30160 2007-04-26 Bruno Haible <bruno@clisp.org>
30162 * tests/test-fflush.c (main): Also check the ftell result after
30163 fflush and fseek/fseeko.
30164 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
30165 file descriptor position cache in the stream.
30166 * lib/fseeko.c (rpl_fseeko): Likewise.
30168 2007-04-26 Bruno Haible <bruno@clisp.org>
30170 * modules/fflush-tests (Depends-on): Add fseeko.
30172 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
30173 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30175 * lib/argz_.h: ensure error_t definition is obtained in same
30176 mechanism system argz.h would have.
30177 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
30178 argz facilities are known bad. Err on the side of caution if
30181 2007-04-25 Eric Blake <ebb9@byu.net>
30183 * lib/fpurge.c (includes): Use stdlib.h for free.
30184 * tests/test-fflush.c (main): Also test fflush-fseeko.
30186 2007-04-25 Bruno Haible <bruno@clisp.org>
30188 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
30189 * lib/fseeko.c: New file.
30190 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
30191 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
30192 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
30194 (gl_FUNC_FSEEKO): Invoke it.
30195 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
30196 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
30197 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
30199 2007-04-25 Bruno Haible <bruno@clisp.org>
30201 * modules/fflush (Depends-on): Add ftello.
30203 2007-04-25 Bruno Haible <bruno@clisp.org>
30205 * modules/ftello-tests: New file.
30206 * tests/test-ftello.c: New file.
30208 * modules/ftello: New file.
30209 * m4/ftello.m4: New file.
30210 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
30212 * lib/stdio_.h (ftello): New declaration.
30213 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
30216 2007-04-25 Bruno Haible <bruno@clisp.org>
30218 * modules/fseeko-tests: New file.
30219 * tests/test-fseeko.c: New file.
30221 * modules/fseeko: New file.
30222 * m4/fseeko.m4: New file.
30223 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
30225 * lib/stdio_.h (fseeko): New declaration.
30226 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
30229 2007-04-25 Bruno Haible <bruno@clisp.org>
30231 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
30233 2007-04-25 Bruno Haible <bruno@clisp.org>
30235 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
30236 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
30237 * tests/test-unistd.c: Likewise.
30238 * tests/test-fcntl.c: Likewise.
30240 2007-04-23 Eric Blake <ebb9@byu.net>
30242 * lib/fflush.c: Fix missing include.
30243 Reported by Bruno Haible.
30245 2007-04-23 Bruno Haible <bruno@clisp.org>
30247 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
30248 Reported by Eric Blake.
30250 2007-04-23 Bruno Haible <bruno@clisp.org>
30252 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
30254 2007-04-23 Bruno Haible <bruno@clisp.org>
30256 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
30258 2007-04-23 Bruno Haible <bruno@clisp.org>
30260 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
30261 Needed on HP-UX 11.
30263 2007-04-16 Eric Blake <ebb9@byu.net>
30265 Make fflush rely on fpurge.
30266 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
30267 open coding all variants.
30268 * modules/fflush (Depends-on): Add fpurge and unistd.
30269 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
30270 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
30272 Fix --with-tests compilation on cygwin.
30273 * modules/argmatch-tests (Makefile.am): List gnulib library first
30275 * modules/argp-tests (Makefile.am): Likewise.
30276 * modules/array-list-tests (Makefile.am): Likewise.
30277 * modules/array-oset-tests (Makefile.am): Likewise.
30278 * modules/avltree-list-tests (Makefile.am): Likewise.
30279 * modules/avltree-oset-tests (Makefile.am): Likewise.
30280 * modules/avltreehash-list-tests (Makefile.am): Likewise.
30281 * modules/carray-list-tests (Makefile.am): Likewise.
30282 * modules/dirname-tests (Makefile.am): Likewise.
30283 * modules/frexp-tests (Makefile.am): Likewise.
30284 * modules/isnanl-tests (Makefile.am): Likewise.
30285 * modules/linked-list-tests (Makefile.am): Likewise.
30286 * modules/linkedhash-list-tests (Makefile.am): Likewise.
30287 * modules/lock-tests (Makefile.am): Likewise.
30288 * modules/rbtree-list-tests (Makefile.am): Likewise.
30289 * modules/rbtree-oset-tests (Makefile.am): Likewise.
30290 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
30291 * modules/tls-tests (Makefile.am): Likewise.
30292 * modules/tsearch-tests (Makefile.am): Likewise.
30293 * modules/xvasprintf-tests (Makefile.am): Likewise.
30295 Fix fpurge for cygwin.
30296 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
30298 * modules/fpurge-tests (Depends-on): Clean up trash.
30300 2007-04-16 Simon Josefsson <simon@josefsson.org>
30302 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
30304 * m4/autobuild.m4: Re-indent.
30306 2007-04-13 Bruno Haible <bruno@clisp.org>
30308 * modules/fpurge-tests: New file.
30309 * tests/test-fpurge.c: New file.
30311 * modules/fpurge: New file.
30312 * lib/fpurge.h: New file.
30313 * lib/fpurge.c: New file.
30314 * m4/fpurge.m4: New file.
30316 2007-04-13 Bruno Haible <bruno@clisp.org>
30318 * modules/fbufmode-tests: New file.
30319 * tests/test-fbufmode.c: New file.
30321 * modules/fbufmode: New file.
30322 * lib/fbufmode.h: New file.
30323 * lib/fbufmode.c: New file.
30324 * m4/fbufmode.m4: New file.
30326 2007-04-13 Bruno Haible <bruno@clisp.org>
30328 * modules/fwritable-tests: New file.
30329 * tests/test-fwritable.c: New file.
30331 * modules/fwritable: New file.
30332 * lib/fwritable.h: New file.
30333 * lib/fwritable.c: New file.
30334 * m4/fwritable.m4: New file.
30336 2007-04-13 Bruno Haible <bruno@clisp.org>
30338 * modules/freadable-tests: New file.
30339 * tests/test-freadable.c: New file.
30341 * modules/freadable: New file.
30342 * lib/freadable.h: New file.
30343 * lib/freadable.c: New file.
30344 * m4/freadable.m4: New file.
30346 2007-04-13 Bruno Haible <bruno@clisp.org>
30348 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
30351 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
30353 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
30354 gzip bootstrap.conf to avoid dragging in i18n machinery.
30355 (gnulib_tool_option): Use it.
30357 2007-04-13 Bruno Haible <bruno@clisp.org>
30359 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
30361 * tests/test-vasprintf-posix.c (test_function): Likewise.
30362 * tests/test-snprintf-posix.h (test_function): Likewise.
30363 * tests/test-sprintf-posix.h (test_function): Likewise.
30364 * tests/test-fprintf-posix.h (test_function): Likewise.
30365 * tests/test-printf-posix.h (test_function): Likewise.
30366 * tests/test-fprintf-posix.out: Likewise.
30368 2007-04-13 Bruno Haible <bruno@clisp.org>
30370 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
30371 * modules/tls-tests (configure.ac): Likewise.
30372 Reported by Arto C. Nirkko <anirkko@insel.ch>.
30374 2007-04-13 Bruno Haible <bruno@clisp.org>
30376 * lib/tls.c (glthread_tls_get): Fix return type.
30377 Patch by Arto C. Nirkko <anirkko@insel.ch>.
30379 2007-04-12 Eric Blake <ebb9@byu.net>
30381 * modules/gettime (Depends-on): Remove gettime.
30382 Reported by Dmitry V. Levin.
30384 2007-04-12 Bruno Haible <bruno@clisp.org>
30386 * modules/fflush (Include): Mention <stdio.h>.
30387 * modules/strtoimax (Include): Mention <inttypes.h>.
30388 * modules/strtoumax (Include): Likewise.
30390 2007-04-12 Eric Blake <ebb9@byu.net>
30392 * .cvsignore: New file.
30393 * .gitignore: Likewise.
30395 2007-04-12 Bruno Haible <bruno@clisp.org>
30397 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
30398 not before, since $(LDADD) often contains libgnu.a.
30399 * modules/striconv-tests (test_striconv_LDADD): Likewise.
30400 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
30401 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
30404 2007-04-12 Eric Blake <ebb9@byu.net>
30406 Work around glibc's failure to flush stdin on fclose.
30407 * lib/closein.c (close_stdin): Flush stdin before closing.
30409 Work around glibc's failure to reset seekable stdin on exit.
30410 * modules/closein: New module.
30411 * lib/closein.c: New file.
30412 * lib/closein.h: Likewise.
30413 * m4/closein.m4: Likewise.
30414 * MODULES.html.sh (File stream based Input/Output): Document it.
30416 2007-04-12 Simon Josefsson <simon@josefsson.org>
30418 * gnulib-tool: Rename generated 'autobuild' script to
30419 'do-autobuild' in --create-megatestdir output.
30421 * doc/gnulib.texi (Build robot for gnulib): Fix.
30423 2007-04-12 Simon Josefsson <simon@josefsson.org>
30425 * modules/sysexits (Depends-on): Add absolute-header.
30427 2007-04-12 Eric Blake <ebb9@byu.net>
30429 No need to preserve errno on success.
30430 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
30431 Reported by Bruno Haible.
30433 2007-04-12 Simon Josefsson <simon@josefsson.org>
30435 * MODULES.html.sh (Support for maintaining and releasing
30436 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
30438 2007-04-12 Simon Josefsson <simon@josefsson.org>
30440 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
30442 2007-04-12 Simon Josefsson <simon@josefsson.org>
30444 * modules/autobuild: New module.
30446 * m4/autobuild.m4: New file.
30448 2007-04-11 Bruno Haible <bruno@clisp.org>
30450 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
30451 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
30452 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
30453 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
30454 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
30455 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
30456 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
30457 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30458 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
30459 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
30460 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
30461 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
30462 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
30463 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
30464 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
30465 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
30466 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
30467 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
30468 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
30469 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
30470 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
30471 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
30472 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
30473 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
30474 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
30475 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
30476 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
30477 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
30478 Reported by Eric Blake.
30480 2007-04-11 Bruno Haible <bruno@clisp.org>
30482 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
30484 2007-04-10 Bruno Haible <bruno@clisp.org>
30486 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
30487 for NaN and Infinity. Needed on FreeBSD 6.1.
30488 * tests/test-vasnprintf-posix.c (test_function): Undo last change
30489 regarding results for "%010a" of Infinity and NaN.
30490 * tests/test-vasprintf-posix.c (test_function): Likewise.
30491 * tests/test-snprintf-posix.h (test_function): Likewise.
30492 * tests/test-sprintf-posix.h (test_function): Likewise.
30493 * tests/test-fprintf-posix.h (test_function): Likewise.
30494 * tests/test-printf-posix.h (test_function): Likewise.
30495 * tests/test-fprintf-posix.out: Likewise.
30497 2007-04-10 Bruno Haible <bruno@clisp.org>
30499 * modules/locale-tests: New file.
30500 * tests/test-locale.c: New file.
30502 * modules/locale: New file.
30503 * lib/locale_.h: New file.
30504 * m4/locale_h.m4: New file.
30506 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
30507 Bruno Haible <bruno@clisp.org>
30509 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
30510 be determined, test for availability of the copysignf, copysign,
30511 copysignl functions.
30512 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
30513 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
30514 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
30516 2007-04-09 Eric Blake <ebb9@byu.net>
30518 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
30519 * modules/stdio (Makefile.am): Support fflush.
30520 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30521 * modules/fflush: New file.
30522 * lib/fflush.c: Likewise.
30523 * m4/fflush.m4: Likewise.
30524 * modules/fflush-tests: New test.
30525 * tests/test-fflush.c: Likewise.
30526 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
30528 2007-04-06 Bruno Haible <bruno@clisp.org>
30530 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
30531 (VASNPRINTF): Use signbit for faster determination whether to print a
30533 * modules/vasnprintf (Files): Remove lib/float+.h.
30534 * modules/fprintf-posix (Depends-on): Add signbit.
30535 * modules/snprintf-posix (Depends-on): Likewise.
30536 * modules/sprintf-posix (Depends-on): Likewise.
30537 * modules/vasnprintf-posix (Depends-on): Likewise.
30538 * modules/vasprintf-posix (Depends-on): Likewise.
30539 * modules/vfprintf-posix (Depends-on): Likewise.
30540 * modules/vsnprintf-posix (Depends-on): Likewise.
30541 * modules/vsprintf-posix (Depends-on): Likewise.
30543 2007-04-06 Bruno Haible <bruno@clisp.org>
30545 * tests/test-frexp.c (main): Test also the sign bit of zero results.
30546 * tests/test-frexpl.c (main): Likewise.
30547 * tests/test-ldexpl.c (main): Likewise.
30548 * modules/frexp-tests (Depends-on): Add signbit.
30549 * modules/frexpl-tests (Depdends-on): Likewise.
30550 * modules/ldexpl-tests (Depdends-on): Likewise.
30552 2007-04-06 Bruno Haible <bruno@clisp.org>
30554 * modules/signbit-tests: New file.
30555 * tests/test-signbit.c: New file.
30557 * modules/signbit: New file.
30558 * lib/signbitf.c: New file.
30559 * lib/signbitd.c: New file.
30560 * lib/signbitl.c: New file.
30561 * m4/signbit.m4: New file.
30562 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
30563 (signbit): New macro.
30564 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
30566 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
30567 REPLACE_FREXPL into math.h.
30569 2007-04-06 Bruno Haible <bruno@clisp.org>
30571 * modules/isnanf-nolibm-tests: New file.
30572 * tests/test-isnanf.c: New file.
30574 * modules/isnanf-nolibm: New file.
30575 * lib/isnanf.h: New file.
30576 * lib/isnanf.c: New file.
30577 * lib/isnan.c: Consider the USE_FLOAT macro.
30578 * m4/isnanf.m4: New file.
30580 2007-04-06 Bruno Haible <bruno@clisp.org>
30582 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
30583 (Link): New section.
30585 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
30587 2007-04-06 Bruno Haible <bruno@clisp.org>
30589 Assume the 'long double' type.
30590 * m4/longdouble.m4: Remove file.
30591 * config/srclist.txt: Don't mention longdouble.m4.
30592 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
30593 * lib/float+.h: Likewise.
30594 * lib/frexp.c: Likewise.
30595 * lib/printf-args.h: Likewise.
30596 * lib/printf-args.c: Likewise.
30597 * lib/printf-frexp.c: Likewise.
30598 * lib/printf-parse.c: Likewise.
30599 * lib/vasnprintf.c: Likewise.
30600 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
30601 * m4/intl.m4: Likewise.
30602 * m4/isnanl.m4: Likewise.
30603 * m4/printf.m4: Likewise.
30604 * m4/printf-frexpl.m4: Likewise.
30605 * m4/vasnprintf.m4: Likewise.
30606 * modules/allocsa (Files): Remove m4/longdouble.m4.
30607 * modules/gettext (Files): Likewise.
30608 * modules/relocatable-prog-wrapper (Files): Likewise.
30609 * modules/vasnprintf (Files): Likewise.
30610 * modules/isnanl (Files): Likewise.
30611 (Include): Simplify.
30612 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
30613 (Include): Simplify.
30614 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
30615 (Include): Simplify.
30616 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
30617 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
30618 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
30619 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
30620 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
30621 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
30622 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
30623 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
30624 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
30625 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
30626 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
30627 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
30628 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
30629 * tests/test-isnanl.c: Likewise.
30630 * tests/test-snprintf-posix.h: Likewise.
30631 * tests/test-sprintf-posix.h: Likewise.
30632 * tests/test-vasnprintf-posix.c: Likewise.
30633 * tests/test-vasnprintf-posix2.c: Likewise.
30634 * tests/test-vasprintf-posix.c: Likewise.
30636 2007-04-06 Bruno Haible <bruno@clisp.org>
30638 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
30639 * lib/math_.h [__DECC]: Include the overridden include file through
30640 #include_next, outside the double-inclusion guard.
30641 * lib/stdio_.h [__DECC]: Likewise.
30642 * lib/stdlib_.h [__DECC]: Likewise.
30643 * lib/string_.h [__DECC]: Likewise.
30644 * lib/time_.h [__DECC]: Likewise.
30645 * lib/wchar_.h [__DECC]: Likewise.
30646 * lib/wctype_.h [__DECC]: Likewise.
30647 * lib/inttypes_.h [__DECC]: Likewise.
30648 Reported by Albert Chin <china@thewrittenword.com> in
30649 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
30651 2007-04-04 Eric Blake <ebb9@byu.net>
30653 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
30656 2007-04-04 Bruno Haible <bruno@clisp.org>
30658 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
30659 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
30661 2007-04-04 Bruno Haible <bruno@clisp.org>
30663 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
30664 results for "%010a" of Infinity and NaN.
30665 * tests/test-vasprintf-posix.c (test_function): Likewise.
30666 * tests/test-snprintf-posix.h (test_function): Likewise.
30667 * tests/test-sprintf-posix.h (test_function): Likewise.
30668 * tests/test-fprintf-posix.h (test_function): Remove these tests.
30669 * tests/test-printf-posix.h (test_function): Likewise.
30670 * tests/test-fprintf-posix.out: Update.
30671 Needed for FreeBSD 6.1.
30673 2007-04-04 Bruno Haible <bruno@clisp.org>
30675 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
30676 directly used by the gnulib modules nor by gnulib-tool.
30678 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
30680 * DEPENDENCIES: Give overall description of version dependency
30681 desirability. Use more-typical names for apps.
30682 Add shell, coreutils, diffutils, grep, tar, gzip.
30684 2007-04-04 Simon Josefsson <simon@josefsson.org>
30686 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
30688 2007-04-04 Karl Berry <karl@gnu.org>
30690 * MODULES.html.sh (func_module): missing '.
30692 2007-04-03 Bruno Haible <bruno@clisp.org>
30694 * modules/argmatch-tests (Makefile.am): New variable
30695 test_argmatch_LDADD.
30696 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
30697 * modules/array-list-tests (Makefile.am): New variable
30698 test_array_list_LDADD.
30699 * modules/array-oset-tests (Makefile.am): New variable
30700 test_array_oset_LDADD.
30701 * modules/avltree-list-tests (Makefile.am): New variable
30702 test_avltree_list_LDADD.
30703 * modules/avltree-oset-tests (Makefile.am): New variable
30704 test_avltree_oset_LDADD.
30705 * modules/avltreehash-list-tests (Makefile.am): New variable
30706 test_avltreehash_list_LDADD.
30707 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
30708 test_canonicalize_lgpl_LDADD.
30709 * modules/carray-list-tests (Makefile.am): New variable
30710 test_carray_list_LDADD.
30711 * modules/dirname-tests (Makefile.am): New variable
30712 test_dirname_LDADD.
30713 * modules/linked-list-tests (Makefile.am): New variable
30714 test_linked_list_LDADD.
30715 * modules/linkedhash-list-tests (Makefile.am): New variable
30716 test_linkedhash_list_LDADD.
30717 * modules/rbtree-list-tests (Makefile.am): New variable
30718 test_rbtree_list_LDADD.
30719 * modules/rbtree-oset-tests (Makefile.am): New variable
30720 test_rbtree_oset_LDADD.
30721 * modules/rbtreehash-list-tests (Makefile.am): New variable
30722 test_rbtreehash_list_LDADD.
30723 * modules/xvasprintf-tests (Makefile.am): New variable
30724 test_xvasprintf_LDADD.
30725 Reported by Eric Blake.
30727 2007-04-03 Eric Blake <ebb9@byu.net>
30729 * DEPENDENCIES: Weaken m4 requirements.
30731 2007-04-03 Bruno Haible <bruno@clisp.org>
30733 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
30734 * modules/isnanl-tests (configure.ac): Likewise.
30736 2007-04-03 Ben Pfaff <blp@gnu.org>
30738 * modules/iconv_open: Add $(srcdir)/ to source directory
30739 references in Makefile fragments that call gperf, to fix VPATH
30742 2007-04-03 Bruno Haible <bruno@clisp.org>
30744 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
30745 * lib/ldexpl.c: Undo last change.
30747 2007-04-03 Bruno Haible <bruno@clisp.org>
30749 * modules/printf-frexpl (Depends-on): Undo last change.
30750 (Files): Add m4/ldexpl.m4.
30752 2007-04-03 Bruno Haible <bruno@clisp.org>
30754 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
30755 * modules/isnanl (Link): New section.
30757 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
30758 * modules/frexp (Link): New section.
30760 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
30761 * modules/frexpl (Link): New section.
30763 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
30764 * modules/ldexpl (Link): New section.
30766 2007-04-03 Bruno Haible <bruno@clisp.org>
30768 * modules/TEMPLATE-EXTENDED: New file.
30769 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
30771 2007-04-03 Bruno Haible <bruno@clisp.org>
30773 * DEPENDENCIES: New file.
30774 Suggested by Simon Josefsson.
30776 2007-04-03 Bruno Haible <bruno@clisp.org>
30778 * doc/gnulib.texi: Escape @.
30780 2007-04-03 James Youngman <jay@gnu.org>
30781 and Paul Eggert <eggert@cs.ucla.edu>
30783 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
30784 birthtime on all systems that have birthtime, not just those which
30785 use st_birthtimensec rather than st_birthtim. Putting zero in
30786 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
30787 that the birth time is not available for files on an NFS mount.
30789 2007-04-03 Simon Josefsson <simon@josefsson.org>
30791 * modules/memxor: Move back from crypto/, suggested by Bruno.
30792 * modules/crypto/hmac-sha1: Fix memxor dependency.
30794 * modules/crypto/gc: Moved from ../.
30796 2007-04-02 Eric Blake <ebb9@byu.net>
30798 * lib/ldexpl.c (includes): Avoid libm.
30800 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
30802 2007-04-02 Bruno Haible <bruno@clisp.org>
30804 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
30807 2007-04-02 Bruno Haible <bruno@clisp.org>
30809 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
30810 x86 or x86_64 platforms running MacOS X.
30811 Reported by Ryan Schmidt <@ryandesign.com>.
30813 2007-04-02 Bruno Haible <bruno@clisp.org>
30815 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
30818 2007-04-01 Simon Josefsson <simon@josefsson.org>
30820 * modules/crypto/arcfour: Moved from ../.
30821 * modules/crypto/arcfour-tests: Moved from ../.
30822 * modules/crypto/arctwo: Moved from ../.
30823 * modules/crypto/arctwo-tests: Moved from ../.
30824 * modules/crypto/des: Moved from ../.
30825 * modules/crypto/des-tests: Moved from ../.
30826 * modules/crypto/gc-arcfour: Moved from ../.
30827 * modules/crypto/gc-arcfour-tests: Moved from ../.
30828 * modules/crypto/gc-arctwo: Moved from ../.
30829 * modules/crypto/gc-arctwo-tests: Moved from ../.
30830 * modules/crypto/gc-des: Moved from ../.
30831 * modules/crypto/gc-des-tests: Moved from ../.
30832 * modules/crypto/gc-hmac-md5: Moved from ../.
30833 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
30834 * modules/crypto/gc-hmac-sha1: Moved from ../.
30835 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
30836 * modules/crypto/gc-md2: Moved from ../.
30837 * modules/crypto/gc-md2-tests: Moved from ../.
30838 * modules/crypto/gc-md4: Moved from ../.
30839 * modules/crypto/gc-md4-tests: Moved from ../.
30840 * modules/crypto/gc-md5: Moved from ../.
30841 * modules/crypto/gc-md5-tests: Moved from ../.
30842 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
30843 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
30844 * modules/crypto/gc-random: Moved from ../.
30845 * modules/crypto/gc-rijndael: Moved from ../.
30846 * modules/crypto/gc-rijndael-tests: Moved from ../.
30847 * modules/crypto/gc-sha1: Moved from ../.
30848 * modules/crypto/gc-sha1-tests: Moved from ../.
30849 * modules/crypto/gc-tests: Moved from ../.
30850 * modules/crypto/hmac-md5: Moved from ../.
30851 * modules/crypto/hmac-md5-tests: Moved from ../.
30852 * modules/crypto/hmac-sha1: Moved from ../.
30853 * modules/crypto/hmac-sha1-tests: Moved from ../.
30854 * modules/crypto/md2: Moved from ../.
30855 * modules/crypto/md2-tests: Moved from ../.
30856 * modules/crypto/md4: Moved from ../.
30857 * modules/crypto/md4-tests: Moved from ../.
30858 * modules/crypto/md5: Moved from ../.
30859 * modules/crypto/md5-tests: Moved from ../.
30860 * modules/crypto/memxor: Moved from ../.
30861 * modules/crypto/rijndael: Moved from ../.
30862 * modules/crypto/rijndael-tests: Moved from ../.
30863 * modules/crypto/sha1: Moved from ../.
30865 2007-03-30 James Youngman <jay@gnu.org>
30867 * tests/test-stat-time.c (prepare_test): use chmod() rather than
30868 rename() to change the ctime of a file (because ctime is unaffected
30869 by rename on jfs2 on AIX 5.1).
30870 (main): Start by doing cleanup, in case a previous run failed leaving
30873 2007-03-31 Bruno Haible <bruno@clisp.org>
30875 Support old proprietary implementations of iconv.
30876 * modules/iconv_open: New file.
30877 * lib/iconv_.h: New file.
30878 * m4/iconv_h.m4: New file.
30879 * lib/iconv_open.c: New file.
30880 * lib/iconv_open-aix.gperf: New file.
30881 * lib/iconv_open-hpux.gperf: New file.
30882 * lib/iconv_open-irix.gperf: New file.
30883 * lib/iconv_open-osf.gperf: New file.
30884 * m4/iconv_open.m4: New file.
30885 * modules/linebreak (Depends-on): Add iconv_open.
30886 * modules/striconv (Depends-on): Likewise.
30887 * modules/striconveh (Depends-on): Likewise.
30888 * modules/unicodeio (Depends-on): Likewise.
30889 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
30891 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
30892 conversion if cd is (iconv_t)(-1).
30893 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
30896 2007-03-31 Bruno Haible <bruno@clisp.org>
30898 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
30899 work on Solaris either. Protect also second use of "autodetect_jp".
30901 2007-03-31 Bruno Haible <bruno@clisp.org>
30903 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
30904 the function is not present.
30906 2007-03-31 Bruno Haible <bruno@clisp.org>
30908 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
30909 the function is not present.
30911 2007-03-31 Bruno Haible <bruno@clisp.org>
30913 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
30914 a bug in HP-UX iconv_open().
30916 2007-03-31 Bruno Haible <bruno@clisp.org>
30918 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
30919 (Mathematics <math.h>): New section, add fpieee.
30920 (Input/output <stdio.h>): Add fseterr.
30921 (Mathematics <math.h>): New section, add printf-frexp.
30922 (Container data structures): Add sublist.
30923 (Core language properties): Add fpucw, inline.
30924 (Functions for greatest-width integer types <inttypes.h>): Add
30925 imaxabs, imaxdiv, inttypes.
30926 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
30927 isnanl-nolibm, ldexp.
30928 (Mathematics <math.h>): New section, add printf-frexpl.
30929 (Support for systems lacking POSIX:2001): Add fprintf-posix,
30930 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
30931 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
30932 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
30933 (Unicode string functions): Add unistr/u*-mbtoucr.
30934 (Java): Add javacomp-script, javaexec-script.
30935 (C#): Add csharpcomp-script, csharpexec-script.
30936 (Support for building libraries and executables): Add havelib,
30938 (Support for maintaining and releasing projects): Renamed from
30939 'Support for maintaining and release projects'. Add announce-gen.
30941 2007-03-31 Bruno Haible <bruno@clisp.org>
30943 * README: Talk primarily about git.
30944 (git and CVS): Renamed from CVS.
30945 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
30946 gnulib is available through git.
30947 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
30949 2007-03-30 Bruno Haible <bruno@clisp.org>
30951 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
30952 * lib/poll_.h: Likewise.
30953 * lib/stat_.h: Likewise.
30954 * lib/sys_time_.h: Likewise.
30955 * lib/sysexit_.h: Likewise.
30956 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
30957 * lib/stdbool_.h: Likewise.
30958 * lib/byteswap_.h: Add double-inclusion guard.
30960 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
30962 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
30964 2007-03-30 Karl Berry <karl@gnu.org>
30966 * config/srclist-update: double space after USA in the license
30967 substitution, since that's how it's usually (?) written.
30969 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
30971 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
30972 reported by Bruno Haible.
30974 2007-03-29 Bruno Haible <bruno@clisp.org>
30976 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
30977 a bug in AIX iconv().
30979 2007-03-29 Bruno Haible <bruno@clisp.org>
30981 * modules/ldexpl-tests: New file.
30982 * tests/test-ldexpl.c: New file.
30984 2007-03-29 Bruno Haible <bruno@clisp.org>
30986 * lib/ldexpl.c: Include fpucw.h.
30987 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
30989 * modules/ldexpl (Depends-on): Add fpucw.
30991 2007-03-29 Bruno Haible <bruno@clisp.org>
30993 * modules/ldexpl: New file.
30994 * m4/ldexpl.m4: New file.
30995 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
30997 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
30999 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
31001 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
31002 gl_FUNC_LDEXPL_WORKS.
31003 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
31004 * modules/mathl (Files): Remove lib/ldexpl.c.
31005 (Depends-on): Add ldexpl.
31007 2007-03-29 Bruno Haible <bruno@clisp.org>
31009 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
31011 2007-03-29 Bruno Haible <bruno@clisp.org>
31013 * tests/test-striconveh.c (main): Don't assume that a direct conversion
31014 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
31015 and possibly also HP-UX.
31016 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
31017 work on AIX, IRIX, HP-UX, OSF/1.
31018 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
31019 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
31020 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
31021 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
31022 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
31023 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
31025 2007-03-29 Bruno Haible <bruno@clisp.org>
31027 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
31029 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
31031 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
31032 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
31034 2007-03-29 Eric Blake <ebb9@byu.net>
31036 * lib/acl-internal.h: Remove redundant include.
31037 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
31038 Cygwin when a file is locked.
31040 2007-03-29 Bruno Haible <bruno@clisp.org>
31042 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
31044 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
31046 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
31048 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
31049 try to remove a parent directory if the child couldn't be removed
31050 (except for the first rmdir, which could fail because the child
31051 doesn't exist). Problem reported by Jeff Blaine in
31052 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
31054 2007-03-28 Bruno Haible <bruno@clisp.org>
31056 * lib/striconveh.c (utf8conv_carefully): New function.
31057 (mem_cd_iconveh_internal): Invoke it.
31059 2007-03-28 Bruno Haible <bruno@clisp.org>
31061 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
31062 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
31064 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
31065 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
31068 2007-03-28 Bruno Haible <bruno@clisp.org>
31070 * modules/unistr/u8-mbtoucr: New file.
31071 * lib/unistr/u8-mbtoucr.c: New file.
31072 * modules/unistr/u16-mbtoucr: New file.
31073 * lib/unistr/u16-mbtoucr.c: New file.
31074 * modules/unistr/u16-mbtoucr: New file.
31075 * lib/unistr/u16-mbtoucr.c: New file.
31076 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
31078 2007-03-27 Simon Josefsson <simon@josefsson.org>
31079 Bruno Haible <bruno@clisp.org>
31081 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
31082 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
31083 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
31085 * m4/stdio_h.m4: Add stubs for vasprintf too.
31087 * modules/stdio: Support vasprintf in sed command.
31089 * modules/vasprintf: Depend on stdio for prototypes. Remove
31090 vasprintf.h. Add stdio module indicator.
31092 * lib/stdio_.h: Declare asprintf and vasprintf, based on
31095 * lib/vasprintf.h: File removed.
31097 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
31098 * lib/vasprintf.c: Ditto.
31099 * lib/xvasprintf.c: Ditto.
31100 * tests/test-vasprintf-posix.c: Ditto.
31101 * tests/test-vasprintf.c: Ditto.
31103 2007-03-27 Bruno Haible <bruno@clisp.org>
31105 Make vasnprintf multithread-safe.
31106 * lib/vasnprintf.c (decimal_point_char): New function.
31107 (VASNPRINTF): Use it.
31108 Suggested by Simon Josefsson.
31110 2007-03-27 Eric Blake <ebb9@byu.net>
31112 Support sub-second birthtime on cygwin.
31113 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
31114 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
31115 (get_stat_birthtime): Also work with st_birthtim.
31117 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
31119 * lib/stat-time.h (USE_BIRTHTIME): Remove.
31120 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
31121 (get_stat_birthtime_ns): Do not try to use "spare" fields.
31122 (get_stat_birthtime_ns): Simplify compile-time tests.
31123 (get_stat_birthtime): Change the API to look like
31124 get_stat_mtime etc., except return a negative tv_nsec on error.
31125 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
31126 Don't check for "spare" fields.
31127 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
31128 or for struct stat.st_birthtime, as these tests aren't used.
31129 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
31131 2007-03-27 Bruno Haible <bruno@clisp.org>
31133 * lib/stat-time.h: Include <sys/stat.h>.
31135 2007-03-27 James Youngman <jay@gnu.org>
31137 * lib/stat-time.h (get_stat_birthtime): New function for
31138 retrieving st_birthtime as provided by UFS2 (hence *BSD).
31139 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
31141 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
31142 * modules/stat-time-test: New file.
31143 * tests/test-stat-time.c: New test, devised by Bruno Haible.
31145 2007-03-26 Bruno Haible <bruno@clisp.org>
31147 Better support of signalling NaNs.
31148 * lib/atanl.c: Include isnanl.h.
31149 (atanl): Perform test for NaN at the beginning of the function and
31150 through a call to isnanl.
31151 * lib/cosl.c: Include isnanl.h.
31152 (cosl): Perform test for NaN at the beginning of the function and
31153 through a call to isnanl.
31154 * lib/ldexpl.c: Include isnanl.h.
31155 (ldexpl): Perform test for NaN through a call to isnanl.
31156 * lib/logl.c: Include isnanl.h.
31157 (logl): Perform test for NaN at the beginning of the function and
31158 through a call to isnanl.
31159 * lib/sinl.c: Include isnanl.h.
31160 (sinl): Perform test for NaN at the beginning of the function and
31161 through a call to isnanl.
31162 * lib/sqrtl.c: Include isnanl.h.
31163 (sqrtl): Perform test for NaN at the beginning of the function and
31164 through a call to isnanl.
31165 * lib/tanl.c: Include isnanl.h.
31166 (tanl): Perform test for NaN at the beginning of the function and
31167 through a call to isnanl.
31168 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
31169 * modules/mathl (Depends-on): Add isnanl.
31171 2007-03-26 Eric Blake <ebb9@byu.net>
31173 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
31174 regression in logic sense of previous patch.
31176 2007-03-26 Bruno Haible <bruno@clisp.org>
31178 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
31179 unportable shell command "if ! ...".
31180 Reported by Ralf Wildenhues.
31182 2007-03-25 Bruno Haible <bruno@clisp.org>
31184 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
31185 <sysexits.h> file, and only add EX_CONFIG.
31186 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
31187 absolute file name and whether it is sufficient. Substitute also
31188 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
31189 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
31190 ABSOLUTE_SYSEXITS_H into sysexits.h.
31192 2007-03-25 Bruno Haible <bruno@clisp.org>
31194 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
31197 2007-03-25 Bruno Haible <bruno@clisp.org>
31199 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
31200 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
31202 2007-03-25 Bruno Haible <bruno@clisp.org>
31204 * lib/vasnprintf.c: Include langinfo.h.
31205 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
31207 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
31208 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
31209 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
31210 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
31211 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
31212 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
31213 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
31214 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
31215 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
31216 Reported by Simon Josefsson.
31218 2007-03-25 Bruno Haible <bruno@clisp.org>
31220 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
31221 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
31222 * modules/vasnprintf (Depends-on): Add stdint.
31224 2007-03-25 Bruno Haible <bruno@clisp.org>
31226 * modules/fpieee: New file.
31227 * m4/fpieee.m4: New file.
31228 * modules/isnan-nolibm (Depends-on): Add fpieee.
31229 * modules/isnanl-nolibm (Depends-on): Add fpieee.
31230 * modules/isnanl (Depends-on): Add fpieee.
31232 2007-03-25 Bruno Haible <bruno@clisp.org>
31234 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
31236 2007-03-25 Bruno Haible <bruno@clisp.org>
31238 Avoid test failures on IRIX 6.5.
31239 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
31241 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
31245 2007-03-25 Bruno Haible <bruno@clisp.org>
31247 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
31248 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
31249 exists but doesn't work.
31250 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
31251 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
31252 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
31253 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
31255 2007-03-25 Bruno Haible <bruno@clisp.org>
31257 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
31258 returns inf. Needed on IRIX 6.5.
31260 2007-03-25 Bruno Haible <bruno@clisp.org>
31262 * tests/test-frexpl.c: Include isnanl-nolibm.h.
31263 (main): Use isnanl instead of x != x idiom.
31264 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
31266 * tests/test-frexp.c: Include isnan.h.
31267 (main): Use isnan instead of x != x idiom.
31268 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
31270 2007-03-25 Bruno Haible <bruno@clisp.org>
31272 * tests/test-frexp.c (NaN): New function/macro.
31273 (main): Use it instead of 0.0 / 0.0.
31274 * tests/test-isnan.c (NaN): New function/macro.
31275 (main): Use it instead of 0.0 / 0.0.
31276 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
31277 (test_function): Use it instead of 0.0 / 0.0.
31278 * tests/test-vasprintf-posix.c (NaN): New function/macro.
31279 (test_function): Use it instead of 0.0 / 0.0.
31280 * tests/test-snprintf-posix.h (NaN): New function/macro.
31281 (test_function): Use it instead of 0.0 / 0.0.
31282 * tests/test-sprintf-posix.h (NaN): New function/macro.
31283 (test_function): Use it instead of 0.0 / 0.0.
31284 * tests/test-fprintf-posix.h (NaN): New function/macro.
31285 (test_function): Use it instead of 0.0 / 0.0.
31286 * tests/test-printf-posix.h (NaN): New function/macro.
31287 (test_function): Use it instead of 0.0 / 0.0.
31289 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
31291 2007-03-25 Bruno Haible <bruno@clisp.org>
31293 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
31295 2007-03-25 Bruno Haible <bruno@clisp.org>
31297 * lib/regexec.c (merge_state_with_log): Make static.
31299 2007-03-25 Bruno Haible <bruno@clisp.org>
31301 * lib/trigl.c (kernel_rem_pio2): Make static.
31303 2007-03-25 Bruno Haible <bruno@clisp.org>
31305 * lib/sincosl.c (sincosl_table): Make static.
31307 2007-03-25 Bruno Haible <bruno@clisp.org>
31309 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
31310 if the compiler does not support C99.
31312 2007-03-25 Bruno Haible <bruno@clisp.org>
31314 * modules/time (Makefile.am): Ensure all rule action lines start with a
31317 2007-03-24 Bruno Haible <bruno@clisp.org>
31319 * modules/tsearch-tests: New file.
31320 * tests/test-tsearch.sh: New file.
31321 * tests/test-tsearch.c: New file, mostly copied from glibc.
31323 * modules/search-tests: New file.
31324 * tests/test-search.c: New file.
31326 * modules/search: New file.
31327 * lib/search_.h: New file, incorporating lib/tsearch.h.
31328 * m4/search_h.m4: New file.
31329 * lib/tsearch.h: Remove file.
31330 * lib/tsearch.c: Include search.h instead of tsearch.h.
31331 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
31333 * modules/tsearch (Files): Remove lib/tsearch.h.
31334 (Depends-on): Add search.
31335 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
31336 (Include): Change tsearch.h into search.h.
31338 2007-03-24 Bruno Haible <bruno@clisp.org>
31340 * modules/fpucw: New file.
31341 * lib/fpucw.h: New file.
31342 * lib/frexp.c: Include fpucw.h.
31343 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
31345 * lib/printf-frexp.c: Include fpucw.h.
31346 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
31348 * lib/vasnprintf.c: Include fpucw.h.
31349 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
31350 'long double' calculations.
31351 * tests/test-frexpl.c: Include fpucw.h.
31352 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
31353 * tests/test-printf-frexpl.c: Include fpucw.h.
31354 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
31355 * modules/frexpl (Depends-on): Add fpucw.
31356 * modules/printf-frexpl (Depends-on): Likewise.
31357 * modules/fprintf-posix (Depends-on): Likewise.
31358 * modules/snprintf-posix (Depends-on): Likewise.
31359 * modules/sprintf-posix (Depends-on): Likewise.
31360 * modules/vasnprintf-posix (Depends-on): Likewise.
31361 * modules/vasprintf-posix (Depends-on): Likewise.
31362 * modules/vfprintf-posix (Depends-on): Likewise.
31363 * modules/vsnprintf-posix (Depends-on): Likewise.
31364 * modules/vsprintf-posix (Depends-on): Likewise.
31365 * modules/frexpl-tests (Depends-on): Likewise.
31366 * modules/printf-frexpl-tests (Depends-on): Likewise.
31368 2007-03-24 Bruno Haible <bruno@clisp.org>
31370 * lib/float+.h: New file.
31371 * lib/isnan.c: Include float+.h.
31373 (FUNC): Compare only SIZE bytes of the value.
31374 * lib/vasnprintf.c: Include float+.h.
31375 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
31376 SIZEOF_LDBL or SIZEOF_DBL bytes.
31377 * modules/isnan-nolibm (Files): Add lib/float+.h.
31378 * modules/isnanl-nolibm (Files): Add lib/float+.h.
31379 * modules/isnanl (Files): Add lib/float+.h.
31380 * modules/vasnprintf (Files): Add lib/float+.h.
31382 2007-03-24 Bruno Haible <bruno@clisp.org>
31384 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
31385 include isnanl-nolibm.h.
31387 2007-03-24 Bruno Haible <bruno@clisp.org>
31389 * tests/test-read-file.c (main): Don't produce spurious output for
31390 expected situations. Make the test fail if it encountered unexpected
31393 2007-03-24 Bruno Haible <bruno@clisp.org>
31395 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
31396 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
31398 2007-03-24 Bruno Haible <bruno@clisp.org>
31400 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
31402 2007-03-24 Bruno Haible <bruno@clisp.org>
31404 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
31405 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
31407 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
31408 * modules/utf8-ucs4: Turn into a symbolic link to module
31411 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
31413 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
31414 unistr/u8-mbtouc-unsafe.
31416 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
31417 * modules/utf16-ucs4: Turn into a symbolic link to module
31420 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
31422 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
31423 unistr/u16-mbtouc-unsafe.
31425 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
31426 * modules/ucs4-utf8: Turn into a symbolic link to module
31429 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
31430 * modules/ucs4-utf16: Turn into a symbolic link to module
31433 2007-03-24 Bruno Haible <bruno@clisp.org>
31435 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
31436 Enable the function only if HAVE_INLINE.
31437 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
31438 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
31439 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
31440 Enable the function only if HAVE_INLINE.
31441 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
31442 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
31443 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
31444 Enable the function only if HAVE_INLINE.
31445 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
31446 Enable the function only if HAVE_INLINE.
31447 * modules/utf8-ucs4: Update.
31448 * modules/utf8-ucs4-unsafe: Update.
31449 * modules/utf16-ucs4: Update.
31450 * modules/utf16-ucs4-unsafe: Update.
31451 * modules/ucs4-utf8: Update.
31452 * modules/ucs4-utf16: Update.
31454 2007-03-24 Bruno Haible <bruno@clisp.org>
31456 * lib/utf8-ucs4.h: Remove file.
31457 * lib/utf8-ucs4-unsafe.h: Remove file.
31458 * lib/utf16-ucs4.h: Remove file.
31459 * lib/utf16-ucs4-unsafe.h: Remove file.
31460 * lib/ucs4-utf8.h: Remove file.
31461 * lib/ucs4-utf16.h: Remove file.
31462 * lib/unistr.h: Include their previous contents.
31463 * m4/utf-ucs4.m4: Remove file.
31464 * m4/ucs4-utf.m4: Remove file.
31465 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
31466 (Depends-on): Add unistr/base.
31467 (configure.ac): Remove gl_UTF_UCS4.
31468 (Makefile.am): Update.
31469 (Include): Change to unistr.h.
31470 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
31471 (Depends-on): Add unistr/base.
31472 (configure.ac): Remove gl_UTF_UCS4.
31473 (Makefile.am): Update.
31474 (Include): Change to unistr.h.
31475 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
31476 (Depends-on): Add unistr/base.
31477 (configure.ac): Remove gl_UTF_UCS4.
31478 (Makefile.am): Update.
31479 (Include): Change to unistr.h.
31480 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
31481 (Depends-on): Add unistr/base.
31482 (configure.ac): Remove gl_UTF_UCS4.
31483 (Makefile.am): Update.
31484 (Include): Change to unistr.h.
31485 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
31486 (Depends-on): Add unistr/base.
31487 (configure.ac): Remove gl_UCS4_UTF.
31488 (Makefile.am): Update.
31489 (Include): Change to unistr.h.
31490 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
31491 (Depends-on): Add unistr/base.
31492 (configure.ac): Remove gl_UCS4_UTF.
31493 (Makefile.am): Update.
31494 (Include): Change to unistr.h.
31495 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
31496 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
31497 utf8-ucs4-unsafe.h.
31498 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
31499 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
31500 utf16-ucs4-unsafe.h.
31501 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
31502 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
31503 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
31504 * lib/unistr/u8-strchr.c: Likewise.
31505 * lib/unistr/u8-strrchr.c: Likewise.
31506 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
31507 * lib/unistr/u16-strchr.c: Likewise.
31508 * lib/unistr/u16-strrchr.c: Likewise.
31509 * lib/striconveh.c: Update.
31510 * lib/linebreak.c: Update.
31512 2007-03-24 Bruno Haible <bruno@clisp.org>
31514 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
31515 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
31517 2007-03-22 Bruno Haible <bruno@clisp.org>
31519 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
31521 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
31523 * MODULES.html.sh (File system functions): New module write-any-file.
31524 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
31525 * m4/write-any-file.m4: New files.
31527 2007-03-23 Eric Blake <ebb9@byu.net>
31529 * gnulib-tool: Rearrange space-tab sequences, since some editors
31532 2007-03-23 Eric Blake <ebb9@byu.net>
31534 * lib/version-etc.c (version_etc_va): Update license wording to
31535 be more concise. Recommended by Richard Stallman.
31537 2007-03-22 Bruno Haible <bruno@clisp.org>
31539 * lib/poll.c (MSG_PEEK): New fallback definition.
31541 2007-03-22 Bruno Haible <bruno@clisp.org>
31543 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
31544 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
31546 Fixes a compilation error on BeOS.
31548 2007-03-22 Bruno Haible <bruno@clisp.org>
31550 * modules/frexpl-tests: New file.
31551 * tests/test-frexpl.c: New file.
31553 * modules/frexpl: New file.
31554 * m4/frexpl.m4: New file.
31555 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
31556 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
31557 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
31558 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
31559 (Depends-on): Add frexpl. Remove isnanl-nolibm.
31560 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
31562 2007-03-22 Bruno Haible <bruno@clisp.org>
31564 * lib/frexpl.c: Share code with lib/frexp.c.
31565 * modules/mathl (Files): Add lib/frexp.c.
31566 (Depends-on): Add isnanl-nolibm.
31568 2007-03-22 Bruno Haible <bruno@clisp.org>
31570 * modules/printf-frexp (Files): Add m4/frexp.m4.
31571 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
31572 only if the found frexp function actually works.
31574 2007-03-22 Bruno Haible <bruno@clisp.org>
31576 * lib/frexp.c: Remove older implementation that uses divisions.
31578 2007-03-21 Bruno Haible <bruno@clisp.org>
31580 * modules/frexp-tests: New file.
31581 * tests/test-frexp.c: New file.
31583 * modules/frexp: New file.
31584 * lib/frexp.c: New file.
31585 * m4/frexp.m4: New file.
31586 * lib/math_.h (frexp): New declaration.
31587 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
31589 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
31591 2007-03-21 Bruno Haible <bruno@clisp.org>
31593 * modules/isnanl-tests: New file.
31594 * tests/test-isnanl.c: New file.
31596 * modules/isnanl: New file.
31597 * lib/isnanl.h: New file.
31598 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
31599 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
31600 gl_FUNC_ISNANL_WORKS.
31601 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
31604 2007-03-21 Bruno Haible <bruno@clisp.org>
31606 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
31609 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
31610 * lib/vasnprintf.c: Update.
31611 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
31612 tests/test-isnanl.h, remove tests/test-isnanl.c.
31613 (Makefile.am): Update.
31614 * tests/test-isnanl-nolibm.c: New file.
31615 * tests/test-isnanl.h: New file.
31616 * tests/test-isnanl.c: Remove file.
31618 2007-03-21 Jim Meyering <jim@meyering.net>
31620 When trying to open ".", treat ESTALE like EACCES.
31621 * lib/savewd.c (savewd_save): Resort to forking not just upon
31622 failure with EACCES, but also when errno is ESTALE.
31624 2007-03-20 Bruno Haible <bruno@clisp.org>
31626 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
31627 Needed on AIX 5.1. Reported by Matthew Woehlke.
31629 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
31631 Suggestions by Bruno Haible:
31632 * lib/acl-internal.h: Include "gettext.h" rather than rolling
31634 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
31635 * modules/acl (Depends-on): Add gettext.
31637 2007-03-19 Bruno Haible <bruno@clisp.org>
31639 * modules/iconvme: Remove file.
31640 * lib/iconvme.h: Remove file.
31641 * lib/iconvme.c: Remove file.
31642 * m4/iconvme.m4: Remove file.
31644 2007-03-19 Bruno Haible <bruno@clisp.org>
31646 * doc/relocatable-maint.texi: Break long shell script line.
31647 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
31649 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
31651 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
31652 handle file_has_acl.
31653 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
31654 * lib/acl.c: Move header inclusions and related macro defns into
31655 lib/acl-internal.h.
31656 (S_ISLNK): Remove defn, since that's now done for us.
31657 (file_has_acl): Move to lib/file-has-acl.c.
31658 Call acl_trivial if available. This is the crucial part of the fix.
31659 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
31660 shared within the library. Rewrite a bit, partly to make it compatible
31661 with the GNU coding style.
31662 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
31663 Remove unnecessary double-quotes.
31664 Don't test for acl_to_text; the build will catch that.
31665 Replace acl_entries if it doesn't exist and it is needed.
31666 Check for -lsec and acl_trivial (as used on Solaris 10).
31667 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
31668 lib/file-has-acl.c.
31669 (Depends-on): Add sys_stat, for S_ISLNK.
31671 2007-03-19 Ben Pfaff <blp@gnu.org>
31673 * doc/gnulib.texi: Fix typos.
31674 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
31676 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
31678 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
31679 If size is zero here, buf must be zero.
31681 2007-03-19 Simon Josefsson <simon@josefsson.org>
31683 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
31686 2007-03-18 Bruno Haible <bruno@clisp.org>
31688 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
31689 Suggested by Eric Blake.
31691 2007-03-18 Ben Pfaff <blp@gnu.org>
31693 * doc/relocatable.texi: Recommend using as prefix a directory
31694 that does not exist and will never be created. Based on
31695 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
31698 2007-03-17 Bruno Haible <bruno@clisp.org>
31700 * lib/fchownat.c: Include lchown.h.
31702 2007-03-17 Bruno Haible <bruno@clisp.org>
31704 Fix endless loop when the given allocated size was > INT_MAX.
31705 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
31706 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
31707 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
31708 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
31709 * lib/sprintf.c (sprintf): Likewise.
31711 2007-03-17 Bruno Haible <bruno@clisp.org>
31713 * tests/test-argp-2.sh (func_compare): Output a context diff.
31715 2007-03-17 Bruno Haible <bruno@clisp.org>
31717 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
31718 locale's decimal-point character.
31720 2007-03-17 Bruno Haible <bruno@clisp.org>
31722 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
31723 before comparing it. Needed because on some platforms (e.g. x86) a
31724 'long double' occupies less bytes than sizeof (long double).
31726 2007-03-17 Bruno Haible <bruno@clisp.org>
31728 * tests/test-crc.c (main): Make printf statements 64-bit clean.
31729 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
31730 * tests/test-getaddrinfo.c (simple): Likewise.
31731 * tests/test-read-file.c (main): Likewise.
31733 2007-03-17 Bruno Haible <bruno@clisp.org>
31735 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
31737 2007-03-17 Bruno Haible <bruno@clisp.org>
31739 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
31742 2007-03-17 Bruno Haible <bruno@clisp.org>
31744 * tests/test-c-strcasecmp.c: Include c-strcase.h.
31745 * tests/test-c-strncasecmp.c: Likewise.
31747 2007-03-17 Bruno Haible <bruno@clisp.org>
31749 * modules/stdlib (Depends-on): Add unistd.
31750 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
31751 Needed for MacOS X 10.3.
31753 2007-03-17 Bruno Haible <bruno@clisp.org>
31755 * lib/unistr/u-strdup.h: Include <stdlib.h>.
31757 2007-03-17 Bruno Haible <bruno@clisp.org>
31759 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
31761 2007-03-17 Bruno Haible <bruno@clisp.org>
31763 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
31764 to reflect files copied from gnulib (with or without modifications).
31765 Suggested by Jim Meyering.
31767 2007-03-17 Eric Blake <ebb9@byu.net>
31769 * NEWS: Document stdlib change from 2007-02-18.
31771 2007-03-17 Jim Meyering <jim@meyering.net>
31773 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
31774 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
31775 someone uses a name containing shell meta-characters.
31776 Reported by Alfred M. Szmidt.
31778 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
31780 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
31782 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
31783 and copy gettext configuration files only if configure.ac contains
31784 a use of AM_GNU_GETTEXT_VERSION.
31786 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
31788 * build-aux/bootstrap (gnulib_name): New variable.
31789 (gnulib_tool_options): Use it.
31791 2007-03-13 Simon Josefsson <simon@josefsson.org>
31793 * tests/test-des.c: Use new namespace.
31795 2007-03-15 Bruno Haible <bruno@clisp.org>
31797 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
31798 Reported by James Youngman <jay@gnu.org>.
31800 2007-03-15 Bruno Haible <bruno@clisp.org>
31802 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
31803 declared prototype. Needed with cc on OSF/1 5.1.
31805 2007-03-15 Bruno Haible <bruno@clisp.org>
31807 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
31808 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
31809 (struct gl_list_implementation): Add dispose_fn argument to the
31810 'create_empty', 'create' methods.
31811 (struct gl_list_impl_base): Add field 'dispose_fn'.
31812 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
31814 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
31815 dispose_fn argument.
31816 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
31817 dispose_fn on the dropped values.
31818 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
31819 dispose_fn argument.
31820 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
31822 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
31823 (gl_tree_remove_node): Call dispose_fn on the dropped value.
31824 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
31825 (gl_tree_remove_node): Call dispose_fn on the dropped value.
31826 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
31828 (gl_tree_list_free): Call dispose_fn on the dropped values.
31829 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
31830 the dropped values.
31831 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
31832 Add dispose_fn argument.
31833 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
31834 Call dispose_fn on the dropped values.
31835 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
31836 Add dispose_fn argument.
31837 (gl_sublist_create): Initialize the 'dispose_fn' field.
31838 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
31839 * tests/test-array_list.c (main): Update.
31840 * tests/test-carray_list.c (main): Update.
31841 * tests/test-avltree_list.c (main): Update.
31842 * tests/test-rbtree_list.c (main): Update.
31843 * tests/test-avltreehash_list.c (main): Update.
31844 * tests/test-rbtreehash_list.c (main): Update.
31845 * tests/test-linked_list.c (main): Update.
31846 * tests/test-linkedhash_list.c (main): Update.
31847 * tests/test-array_oset.c (main): Update.
31849 2007-03-15 Bruno Haible <bruno@clisp.org>
31851 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
31852 (gl_oset_create_empty): Add dispose_fn argument.
31853 (struct gl_oset_implementation): Add dispose_fn argument to
31854 'create_empty' method.
31855 (struct gl_oset_impl_base): Add dispose_fn field.
31856 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
31857 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
31858 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
31860 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
31861 (gl_tree_oset_free): Call dispose_fn on the dropped values.
31862 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
31864 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
31866 * tests/test-array_oset.c (main): Update.
31867 * tests/test-avltree_oset.c (main): Update.
31868 * tests/test-rbtree_oset.c (main): Update.
31869 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
31871 2007-03-13 Bruno Haible <bruno@clisp.org>
31873 * tests/test-stdbool.c (i): Update after last patch.
31875 2007-03-12 Bruno Haible <bruno@clisp.org>
31877 * lib/quotearg.c: Include <wctype.h> early, before the definition of
31878 the iswprint macro. Needed on Solaris 2.5.1.
31880 2007-03-12 Bruno Haible <bruno@clisp.org>
31882 * tests/test-printf-frexp.c (main): Declare x as volatile.
31884 2007-03-12 Simon Josefsson <simon@josefsson.org>
31886 * doc/gnulib.texi (Build robot for gnulib): New section.
31888 2007-03-12 Jim Meyering <jim@meyering.net>
31890 * build-aux/bootstrap: New file.
31891 * build-aux/bootstrap.conf: New file, from coreutils.
31893 2007-03-11 Bruno Haible <bruno@clisp.org>
31895 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
31897 2007-03-12 Simon Josefsson <simon@josefsson.org>
31899 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
31900 avoid collisions with 'des_setkey'. Reported by Bruno Haible
31901 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
31903 2007-03-11 Bruno Haible <bruno@clisp.org>
31905 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
31906 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
31908 2007-03-11 Bruno Haible <bruno@clisp.org>
31910 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
31911 formula. Needed for SunPRO C 5.0.
31913 2007-03-11 Bruno Haible <bruno@clisp.org>
31915 * modules/long-options (Depends-on): Add getopt.
31917 2007-03-11 Bruno Haible <bruno@clisp.org>
31919 * modules/modechange (Depends-on): Add stdbool.
31921 2007-03-11 Bruno Haible <bruno@clisp.org>
31923 * modules/i-ring (Depends-on): Add stdbool.
31925 2007-03-11 Bruno Haible <bruno@clisp.org>
31927 * modules/gc-des (Depends-on): Add stdbool.
31929 2007-03-11 Bruno Haible <bruno@clisp.org>
31931 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
31933 2007-03-11 Bruno Haible <bruno@clisp.org>
31935 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
31937 2007-03-11 Bruno Haible <bruno@clisp.org>
31939 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
31941 2007-03-11 Bruno Haible <bruno@clisp.org>
31943 * lib/vasnprintf.c (sprintf): Undefine.
31945 2007-03-11 Bruno Haible <bruno@clisp.org>
31947 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
31948 initializers in SunPRO C and Compaq C compilers.
31950 2007-03-11 Bruno Haible <bruno@clisp.org>
31952 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
31953 decrementing code ANSI C compliant.
31955 2007-03-11 Bruno Haible <bruno@clisp.org>
31957 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
31958 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
31960 2007-03-11 Bruno Haible <bruno@clisp.org>
31962 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
31963 <stdbool.h> substitute doesn't pass.
31965 2007-03-11 Bruno Haible <bruno@clisp.org>
31967 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
31969 2007-03-11 Bruno Haible <bruno@clisp.org>
31971 * gnulib-tool (func_create_megatestdir): Create also an autobuild
31972 script, for submission to autobuild.josefsson.org.
31974 2007-03-10 Bruno Haible <bruno@clisp.org>
31976 * modules/canonicalize-lgpl-tests: New file.
31977 * tests/test-canonicalize-lgpl.sh: New file.
31978 * tests/test-canonicalize-lgpl.c: New file.
31980 * modules/c-strcase-tests: New file.
31981 * tests/test-c-strcase.sh: New file.
31982 * tests/test-c-strcasecmp.c: New file.
31983 * tests/test-c-strncasecmp.c: New file.
31985 * modules/atexit-tests: New file.
31986 * tests/test-atexit.sh: New file.
31987 * tests/test-atexit.c: New file.
31989 2007-03-10 Bruno Haible <bruno@clisp.org>
31991 * tests/test-binary-io.sh: Use temporary filenames that are not so
31992 likely to clash with those of other tests (in a parallel make).
31993 * tests/test-binary-io.c: Likewise.
31995 2007-03-10 Bruno Haible <bruno@clisp.org>
31997 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
31998 fallback; use #error instead.
31999 Suggested by Simon Josefsson.
32001 2007-03-10 Bruno Haible <bruno@clisp.org>
32003 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
32004 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
32005 first and the last.
32007 2007-03-10 Bruno Haible <bruno@clisp.org>
32009 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
32011 2007-03-10 Bruno Haible <bruno@clisp.org>
32013 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
32015 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
32016 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
32017 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
32019 2007-03-10 Bruno Haible <bruno@clisp.org>
32021 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
32023 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
32026 2007-03-09 Eric Blake <ebb9@byu.net>
32027 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
32029 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
32030 types are not being provided by gnulib.
32031 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
32032 types are supported.
32034 2007-03-10 Bruno Haible <bruno@clisp.org>
32036 * lib/stdio_.h (__attribute__): New macro.
32037 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
32038 vsprintf): Specify __attribute__ __format__ for GCC.
32039 Suggested by Eric Blake.
32041 2007-03-09 Bruno Haible <bruno@clisp.org>
32043 * modules/printf-posix-tests: New file.
32044 * tests/test-printf-posix.sh: New file.
32045 * tests/test-printf-posix.c: New file.
32047 * modules/printf-posix: New file.
32048 * lib/printf.c: New file.
32049 * m4/printf-posix-rpl.m4: New file.
32050 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
32052 * lib/stdio_.h (printf): New declaration.
32053 (format, __format__, ____printf____, ____scanf____, ____strftime____,
32054 ____strfmon____): New macros.
32055 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
32058 2007-03-09 Bruno Haible <bruno@clisp.org>
32060 * tests/test-vasnprintf-posix2.sh: New file.
32061 * tests/test-vasnprintf-posix2.c: New file.
32062 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
32063 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
32064 (Makefile.am): Activate test-vasnprintf-posix2.sh.
32066 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
32067 a locale dependent decimal point, rather than always '.'.
32069 2007-03-09 Eric Blake <ebb9@byu.net>
32071 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
32072 spite of platforms like Tandem/NSK that define it to -1.
32074 2007-03-08 Bruno Haible <bruno@clisp.org>
32076 * modules/vprintf-posix-tests: New file.
32077 * tests/test-vprintf-posix.sh: New file.
32078 * tests/test-vprintf-posix.c: New file.
32079 * tests/test-printf-posix.h: New file.
32081 * modules/vprintf-posix: New file.
32082 * lib/vprintf.c: New file.
32083 * m4/vprintf-posix.m4: New file.
32084 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
32086 * lib/stdio_.h (vprintf): New declaration.
32087 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
32090 2007-03-08 Bruno Haible <bruno@clisp.org>
32092 * modules/fprintf-posix-tests: New file.
32093 * tests/test-fprintf-posix.sh: New file.
32094 * tests/test-fprintf-posix.c: New file.
32096 * modules/fprintf-posix: New file.
32097 * lib/fprintf.c: New file.
32098 * m4/fprintf-posix.m4: New file.
32099 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
32101 * lib/stdio_.h (fprintf): New declaration.
32102 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
32105 2007-03-08 Bruno Haible <bruno@clisp.org>
32107 * modules/vfprintf-posix-tests: New file.
32108 * tests/test-vfprintf-posix.sh: New file.
32109 * tests/test-vfprintf-posix.c: New file.
32110 * tests/test-fprintf-posix.h: New file.
32111 * tests/test-fprintf-posix.out: New file.
32113 * modules/vfprintf-posix: New file.
32114 * lib/vfprintf.c: New file.
32115 * m4/vfprintf-posix.m4: New file.
32116 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
32118 * lib/stdio_.h (vfprintf): New declaration.
32119 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
32122 2007-03-08 Bruno Haible <bruno@clisp.org>
32124 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
32126 2007-03-08 Bruno Haible <bruno@clisp.org>
32128 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
32129 instead of 'expr' invocations.
32130 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32131 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32132 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32133 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32134 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32135 Suggested by Paul Eggert.
32137 2007-03-08 Bruno Haible <bruno@clisp.org>
32139 * modules/fseterr-tests: New file.
32140 * tests/test-fseterr.c: New file.
32142 * modules/fseterr: New file.
32143 * lib/fseterr.h: New file.
32144 * lib/fseterr.c: New file.
32146 2007-03-08 Bruno Haible <bruno@clisp.org>
32148 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
32149 * lib/getopt_.h: Likewise.
32150 * lib/mbswidth.h: Likewise.
32151 * lib/setenv.h: Likewise.
32152 * lib/vasnprintf.h: Likewise.
32153 * lib/vasprintf.h: Likewise.
32154 * lib/verror.h: Likewise.
32155 * lib/xsetenv.h: Likewise.
32156 * lib/xvasprintf.h: Likewise.
32158 2007-03-08 Jim Meyering <jim@meyering.net>
32160 * users.txt: Add parted.
32162 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
32164 2007-03-07 Bruno Haible <bruno@clisp.org>
32166 * m4/printf.m4: Make the shell script snippets copy&pastable.
32168 2007-03-02 Bruno Haible <bruno@clisp.org>
32170 * lib/netinet_in_.h: New file.
32171 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
32172 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
32173 * modules/netinet_in (Files): Add lib/netinet_in_.h.
32174 (Depends-on): Add absolute-header.
32175 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
32178 2007-03-03 Bruno Haible <bruno@clisp.org>
32180 * lib/sys_select_.h: New file.
32181 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
32182 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
32183 * modules/sys_select (Files): Add lib/sys_select_.h.
32184 (Depends-on): Add absolute-header.
32185 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
32188 2007-03-02 Bruno Haible <bruno@clisp.org>
32190 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
32191 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
32193 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
32194 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
32195 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
32196 * modules/sys_socket (Depends-on): Add absolute-header.
32197 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
32198 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
32199 (Include): Remove requirement of inclusion of <sys/types.h>.
32201 2007-03-02 Bruno Haible <bruno@clisp.org>
32203 * lib/byteswap_.h (bswap_32): Fix formula.
32205 2007-03-06 Bruno Haible <bruno@clisp.org>
32207 * modules/sprintf-posix-tests: New file.
32208 * tests/test-sprintf-posix.c: New file.
32210 * modules/sprintf-posix: New file.
32211 * lib/sprintf.c: New file.
32212 * m4/sprintf-posix.m4: New file.
32213 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
32215 * lib/stdio_.h (sprintf): New declaration.
32216 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
32219 2007-03-06 Bruno Haible <bruno@clisp.org>
32221 * modules/vsprintf-posix-tests: New file.
32222 * tests/test-vsprintf-posix.c: New file.
32223 * tests/test-sprintf-posix.h: New file.
32225 * modules/vsprintf-posix: New file.
32226 * lib/vsprintf.c: New file.
32227 * m4/vsprintf-posix.m4: New file.
32228 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
32230 * lib/stdio_.h (vsprintf): New declaration.
32231 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
32234 2007-03-06 Bruno Haible <bruno@clisp.org>
32236 * modules/vsnprintf (Depend-on): Remove minmax.
32238 2007-03-06 Bruno Haible <bruno@clisp.org>
32240 * modules/snprintf-posix-tests: New file.
32241 * tests/test-snprintf-posix.c: New file.
32243 * modules/snprintf-posix: New file.
32244 * m4/snprintf-posix.m4: New file.
32245 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
32247 (gl_FUNC_SNPRINTF): Invoke it.
32248 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
32249 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
32251 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
32253 2007-03-06 Bruno Haible <bruno@clisp.org>
32255 * modules/vsnprintf-posix-tests: New file.
32256 * tests/test-vsnprintf-posix.c: New file.
32257 * tests/test-snprintf-posix.h: New file.
32259 * modules/vsnprintf-posix: New file.
32260 * m4/vsnprintf-posix.m4: New file.
32261 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
32263 (gl_FUNC_VSNPRINTF): Invoke it.
32264 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
32265 * lib/stdio_.h (vsnprintf): Define as a replacement if
32266 REPLACE_VSNPRINTF is set.
32267 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
32269 2007-03-06 Bruno Haible <bruno@clisp.org>
32271 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
32272 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
32274 2007-03-06 Bruno Haible <bruno@clisp.org>
32276 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
32277 (asinl): Declare also if HAVE_DECL_ASINL is set.
32278 (atanl): Declare also if HAVE_DECL_ATANL is set.
32279 (ceill): Declare also if HAVE_DECL_CEILL is set.
32280 (cosl): Declare also if HAVE_DECL_COSL is set.
32281 (expl): Declare also if HAVE_DECL_EXPL is set.
32282 (floorl): Declare also if HAVE_DECL_FLOORL is set.
32283 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
32284 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
32285 (logl): Declare also if HAVE_DECL_LOGL is set.
32286 (sinl): Declare also if HAVE_DECL_SINL is set.
32287 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
32288 (tanl): Declare also if HAVE_DECL_TANL is set.
32289 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
32290 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
32291 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
32292 declaration of frexpl, ldexpl.
32293 * modules/printf-frexpl (Depends-on): Add math.
32294 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
32296 2007-03-05 Bruno Haible <bruno@clisp.org>
32298 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
32299 frexpl and ldexpl are declared.
32300 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
32302 2007-03-05 Bruno Haible <bruno@clisp.org>
32304 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
32305 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
32307 2007-03-05 Bruno Haible <bruno@clisp.org>
32309 * lib/stdio_.h: Include <stddef.h>.
32311 2007-03-05 Bruno Haible <bruno@clisp.org>
32313 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
32315 2007-03-05 Bruno Haible <bruno@clisp.org>
32317 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
32318 NetBSD 4, from Ralf Wildenhues.
32320 2007-03-04 Bruno Haible <bruno@clisp.org>
32322 * lib/vasprintf.h: Update #if logic for the case when the functions
32323 exist but are overridden.
32325 2007-03-04 Bruno Haible <bruno@clisp.org>
32327 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
32328 implementations: glibc-2.4 and MacOS X 10.3.
32329 * tests/test-vasnprintf-posix.c (test_function): Test also the case
32330 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
32331 * tests/test-vasprintf-posix.c (test_function): Likewise.
32333 2007-03-04 Bruno Haible <bruno@clisp.org>
32335 * modules/vasprintf-posix-tests: New file.
32336 * tests/test-vasprintf-posix.c: New file.
32338 * modules/vasprintf-posix: New file.
32339 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
32341 * m4/vasprintf-posix.m4: New file.
32342 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
32344 (gl_FUNC_VASPRINTF): Invoke it.
32345 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
32347 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
32349 2007-03-04 Bruno Haible <bruno@clisp.org>
32351 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
32352 REPLACE_GETTIMEOFDAY.
32353 * modules/sys_time (Makefile.am): Likewise.
32354 * m4/sys_time_h.m4: Likewise.
32355 * m4/gettimeofday.m4: Likewise.
32357 2007-03-04 Bruno Haible <bruno@clisp.org>
32359 * modules/vasnprintf-posix-tests: New file.
32360 * tests/test-vasnprintf-posix.c: New file.
32362 * modules/vasnprintf-posix: New file.
32363 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
32365 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
32366 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
32367 REPLACE_VASNPRINTF is defined.
32368 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
32369 gl_FUNC_VASNPRINTF.
32370 (gl_FUNC_VASNPRINTF): Invoke it.
32371 * m4/vasnprintf-posix.m4: New file.
32372 * m4/printf.m4: New file.
32374 2007-03-04 Bruno Haible <bruno@clisp.org>
32376 Compile progreloc.c only if --enable-relocatable is specified.
32377 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
32378 if --enable-relocatable was specified.
32379 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
32382 2007-03-04 Jim Meyering <jim@meyering.net>
32384 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
32385 Use it consistently, rather than enumerating errno constants.
32387 2007-03-04 Bruno Haible <bruno@clisp.org>
32389 * modules/xvasprintf-tests: New file.
32390 * tests/test-xvasprintf.c: New file.
32392 * modules/vasprintf-tests: New file.
32393 * tests/test-vasprintf.c: New file.
32395 * modules/vasnprintf-tests: New file.
32396 * tests/test-vasnprintf.c: New file.
32398 * modules/vsnprintf-tests: New file.
32399 * tests/test-vsnprintf.c: New file.
32401 * modules/snprintf-tests: New file.
32402 * tests/test-snprintf.c: New file.
32404 2007-03-04 Bruno Haible <bruno@clisp.org>
32406 Compile relocatable.c only if --enable-relocatable is specified.
32407 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
32408 gl_RELOCATABLE_LIBRARY.
32409 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
32410 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
32411 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
32412 gl_RELOCATABLE_LIBRARY.
32413 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
32414 (Makefile.am): Remove lib_SOURCES.
32415 * modules/relocatable-lib-lgpl (configure.ac): Invoke
32416 gl_RELOCATABLE_LIBRARY.
32417 (Makefile.am): Remove lib_SOURCES.
32418 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
32420 * modules/relocatable-prog-wrapper (configure.ac): Invoke
32421 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
32423 2007-03-04 Bruno Haible <bruno@clisp.org>
32425 * modules/argmatch-tests: New file.
32426 * tests/test-argmatch.c: New file.
32428 * tests/test-allocsa.c (main): Halve the number of loop runs.
32430 * modules/alloca-opt-tests: New file.
32431 * tests/test-alloca-opt.c: New file.
32433 2007-03-04 Jim Meyering <jim@meyering.net>
32435 Work around difference between Linux ACLs and Solaris 10 ZFS.
32436 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
32439 2007-03-03 Bruno Haible <bruno@clisp.org>
32441 * modules/relocatable-prog (Depends-on): Add back progreloc's
32442 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
32444 2007-03-03 Bruno Haible <bruno@clisp.org>
32446 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
32447 * modules/relocatable-lib: New file.
32449 2007-03-03 Bruno Haible <bruno@clisp.org>
32451 * modules/relocatable-prog: Renamed from modules/relocatable.
32452 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
32454 2007-03-03 Bruno Haible <bruno@clisp.org>
32456 * modules/relocatable-script (Files): Add doc/relocatable.texi,
32457 m4/relocatable-lib.m4.
32458 (Depends-on): Remove 'relocatable'.
32459 (configure.ac): Add gl_RELOCATABLE_NOP.
32461 2007-03-03 Bruno Haible <bruno@clisp.org>
32463 * modules/relocatable-prog-wrapper: New file.
32464 * modules/relocatable (Depends-on): Add it. Remove all other
32465 dependencies except progname.
32466 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
32468 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
32469 (gl_FUNC_STRERROR): Nop.
32470 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
32472 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
32473 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
32475 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
32476 (gl_FUNC_READLINK): Update.
32478 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
32480 2007-03-03 Bruno Haible <bruno@clisp.org>
32482 * lib/xreadlink.c: Include <unistd.h> unconditionally.
32483 * modules/xreadlink (Depends-on): Add unistd.
32484 * modules/xreadlink-with-size (Depends-on): Likewise.
32486 2007-03-03 Bruno Haible <bruno@clisp.org>
32488 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
32489 extracted from gt_FUNC_SETENV.
32490 (gt_FUNC_SETENV): Remove macro.
32491 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
32492 remove gt_FUNC_SETENV.
32494 2007-03-03 Bruno Haible <bruno@clisp.org>
32496 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
32497 ENABLE_RELOCATABLE here.
32498 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
32500 2007-03-03 Bruno Haible <bruno@clisp.org>
32502 * modules/rbtreehash-list-tests (Depends-on): Add progname.
32503 * tests/test-rbtreehash_list.c: Include progname.h.
32504 (main): Call set_program_name.
32506 * modules/rbtree-oset-tests (Depends-on): Add progname.
32507 * tests/test-rbtree_oset.c: Include progname.h.
32508 (main): Call set_program_name.
32510 * modules/rbtree-list-tests (Depends-on): Add progname.
32511 * tests/test-rbtree_list.c: Include progname.h.
32512 (main): Call set_program_name.
32514 * modules/linked-list-tests (Depends-on): Add progname.
32515 * tests/test-linked_list.c: Include progname.h.
32516 (main): Call set_program_name.
32518 2007-03-03 Bruno Haible <bruno@clisp.org>
32520 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
32521 All uses of __restrict changed to _Restrict_.
32522 * lib/glob_.h (__restrict): Remove macro.
32524 2007-03-02 Bruno Haible <bruno@clisp.org>
32526 * modules/gettext (configure.ac): Require gettext infrastructure
32527 from version 0.16.1.
32529 2007-03-02 Bruno Haible <bruno@clisp.org>
32531 * modules/linkedhash-list-tests (Depends-on): Add progname.
32532 * tests/test-linkedhash_list.c: Include progname.h.
32533 (main): Call set_program_name.
32535 * modules/carray-list-tests (Depends-on): Add progname.
32536 * tests/test-carray_list.c: Include progname.h.
32537 (main): Call set_program_name.
32539 * modules/avltreehash-list-tests (Depends-on): Add progname.
32540 * tests/test-avltreehash_list.c: Include progname.h.
32541 (main): Call set_program_name.
32543 * modules/avltree-oset-tests (Depends-on): Add progname.
32544 * tests/test-avltree_oset.c: Include progname.h.
32545 (main): Call set_program_name.
32547 * modules/avltree-list-tests (Depends-on): Add progname.
32548 * tests/test-avltree_list.c: Include progname.h.
32549 (main): Call set_program_name.
32551 * modules/array-oset-tests (Depends-on): Add progname.
32552 * tests/test-array_oset.c: Include progname.h.
32553 (main): Call set_program_name.
32555 * modules/array-list-tests (Depends-on): Add progname.
32556 * tests/test-array_list.c: Include progname.h.
32557 (main): Call set_program_name.
32559 * modules/argp-tests (Depends-on): Add progname.
32560 * tests/test-argp.c: Include argp.h first. Include progname.h.
32561 (main): Call set_program_name.
32563 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
32565 * doc/gnulib-tool.texi (Initial import): Reword description of
32566 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
32567 limited effect even if defined after the first system include.
32569 2007-03-01 Bruno Haible <bruno@clisp.org>
32571 * build-aux/config.libpath: Update to libtool-1.5.22.
32572 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
32574 2007-03-01 Bruno Haible <bruno@clisp.org>
32576 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
32578 Reported by Ralf Wildenhues.
32580 2007-03-01 Bruno Haible <bruno@clisp.org>
32582 * build-aux/install-reloc: Remove object files left over by some
32584 Reported by Ralf Wildenhues.
32586 2007-03-01 Bruno Haible <bruno@clisp.org>
32588 * build-aux/install-reloc: Break long lines.
32590 2007-03-01 Bruno Haible <bruno@clisp.org>
32592 * doc/relocatable.texi: Document that it may not work on OpenBSD.
32593 Reported by Ralf Wildenhues.
32595 2007-03-01 Bruno Haible <bruno@clisp.org>
32597 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
32598 include ordering constraints.
32600 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
32602 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
32603 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
32604 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
32605 as another example.
32606 * lib/time_.h: Fix misspelling.
32607 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
32608 Require gl_HEADER_TIME_H_DEFAULTS.
32609 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
32610 * m4/time_r.m4 (gl_TIME_R): Likewise.
32611 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
32613 2007-03-01 Bruno Haible <bruno@clisp.org>
32615 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
32616 * m4/utimens.m4 (gl_UTIMENS): Likewise.
32618 2007-03-01 Jim Meyering <jim@meyering.net>
32620 * modules/xreadlink (Maintainer): Add my name.
32621 * modules/xreadlink-with-size (Depends-on): Alphabetize.
32623 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
32624 Bruno Haible <bruno@clisp.org>
32626 * build-aux/install-reloc: Compile also c-ctype.c.
32627 * build-aux/relocatable.sh.in: New file.
32628 * doc/relocatable.texi: New file.
32629 * doc/relocatable-maint.texi: New file.
32630 * doc/gnulib.texi: Include relocatable-maint.texi.
32631 * lib/progreloc.c: Include unistd.h unconditionally.
32632 * lib/relocwrapper.c: Include unistd.h unconditionally.
32634 (add_dotbin): Use c_tolower.
32635 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
32636 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
32637 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
32638 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
32639 to m4/relocatable-lib.m4.
32640 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
32641 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
32642 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
32643 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
32644 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
32645 * modules/relocatable: New file.
32646 * modules/relocatable-lib: New file.
32647 * modules/relocatable-script: New file.
32649 2007-02-28 Bruno Haible <bruno@clisp.org>
32651 Import --enable-relocatable infrastructure.
32652 * build-aux/config.libpath: New file, from GNU gettext.
32653 * build-aux/install-reloc: New file, from GNU gettext.
32654 * build-aux/reloc-ldflags: New file, from GNU gettext.
32655 * lib/relocatable.h: New file, from GNU gettext.
32656 * lib/relocatable.c: New file, from GNU gettext.
32657 * lib/relocwrapper.c: New file, from GNU gettext.
32658 * m4/relocatable.m4: New file, from GNU gettext.
32660 2007-02-28 Bruno Haible <bruno@clisp.org>
32662 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
32664 * modules/xreadlink: New file, from GNU gettext with modifications.
32665 * lib/xreadlink.c: New file, from GNU gettext.
32666 * lib/xreadlink.h: Add comments.
32667 (xreadlink): New declaration.
32669 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
32670 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
32671 lib/xreadlink-with-size.c.
32672 (configure.ac): Remove gl_XREADLINK invocation.
32673 (Makefile.am): Augment lib_SOURCES.
32674 * m4/xreadlink.m4: Remove file.
32675 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
32676 (xreadlink_with_size): Renamed from xreadink.
32677 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
32678 * modules/canonicalize (Depends-on): Replace xreadlink with
32679 xreadlink-with-size.
32680 * lib/canonicalize.c (canonicalize_filename_mode): Update.
32682 2007-02-25 Jim Meyering <jim@meyering.net>
32684 * build-aux/announce-gen: When complaining about excess arguments,
32687 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
32689 * README: Document signed integer overflow situation more
32692 2007-02-25 Bruno Haible <bruno@clisp.org>
32694 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
32695 'a' or 'A' conversion.
32697 2007-02-25 Bruno Haible <bruno@clisp.org>
32699 * modules/filename: Renamed from modules/pathname.
32700 (Files): Replace lib/pathname.h with lib/filename.h. Replace
32701 lib/concatpath.c with lib/concat-filename.c.
32702 (Makefile.am): Update.
32703 (Include): Replace pathname.h with filename.h.
32704 * lib/filename.h: Renamed from lib/pathname.h.
32705 (concatenated_filename): Renamed from concatenated_pathname.
32706 * lib/concat-filename.c: Renamed from lib/concatpath.c.
32707 (concatenated_filename): Renamed from concatenated_pathname.
32708 * lib/findprog.c: Include filename.h instead of pathname.h.
32709 (find_in_path): Update.
32710 * lib/javacomp.c: Include filename.h instead of pathname.h.
32711 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
32712 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
32713 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
32714 is_oldgcj_14_13_usable, is_javac_usable): Update.
32715 * lib/javaexec.c: Include filename.h instead of pathname.h.
32716 (execute_java_class): Update.
32717 * modules/findprog: Update.
32718 * modules/javacomp: Update.
32719 * modules/javaexec: Update.
32720 * MODULES.html.sh (File system functions): Add 'filename', remove
32723 2007-02-25 Bruno Haible <bruno@clisp.org>
32725 * modules/printf-frexpl-tests: New file.
32726 * tests/test-printf-frexpl.c: New file.
32728 * modules/printf-frexpl: New file.
32729 * lib/printf-frexpl.h: New file.
32730 * lib/printf-frexpl.c: New file.
32731 * m4/printf-frexpl.m4: New file.
32733 2007-02-25 Bruno Haible <bruno@clisp.org>
32735 * modules/printf-frexp-tests: New file.
32736 * tests/test-printf-frexp.c: New file.
32738 * modules/printf-frexp: New file.
32739 * lib/printf-frexp.h: New file.
32740 * lib/printf-frexp.c: New file.
32741 * m4/printf-frexp.m4: New file.
32743 2007-02-25 Bruno Haible <bruno@clisp.org>
32745 Assume automake >= 1.10 for the tests.
32746 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
32747 * modules/arctwo-tests: Likewise.
32748 * modules/argp-tests: Likewise.
32749 * modules/avltree-list-tests: Likewise.
32750 * modules/avltree-oset-tests: Likewise.
32751 * modules/avltreehash-list-tests: Likewise.
32752 * modules/carray-list-tests: Likewise.
32753 * modules/crc-tests: Likewise.
32754 * modules/des-tests: Likewise.
32755 * modules/gc-arcfour-tests: Likewise.
32756 * modules/gc-arctwo-tests: Likewise.
32757 * modules/gc-des-tests: Likewise.
32758 * modules/gc-hmac-md5-tests: Likewise.
32759 * modules/gc-hmac-sha1-tests: Likewise.
32760 * modules/gc-md2-tests: Likewise.
32761 * modules/gc-md4-tests: Likewise.
32762 * modules/gc-md5-tests: Likewise.
32763 * modules/gc-pbkdf2-sha1-tests: Likewise.
32764 * modules/gc-rijndael-tests: Likewise.
32765 * modules/gc-sha1-tests: Likewise.
32766 * modules/gc-tests: Likewise.
32767 * modules/getaddrinfo-tests: Likewise.
32768 * modules/hmac-md5-tests: Likewise.
32769 * modules/hmac-sha1-tests: Likewise.
32770 * modules/linked-list-tests: Likewise.
32771 * modules/linkedhash-list-tests: Likewise.
32772 * modules/lock-tests: Likewise.
32773 * modules/md2-tests: Likewise.
32774 * modules/md4-tests: Likewise.
32775 * modules/md5-tests: Likewise.
32776 * modules/rbtree-list-tests: Likewise.
32777 * modules/rbtree-oset-tests: Likewise.
32778 * modules/rbtreehash-list-tests: Likewise.
32779 * modules/read-file-tests: Likewise.
32780 * modules/rijndael-tests: Likewise.
32781 * modules/stdint-tests: Likewise.
32782 * modules/tls-tests: Likewise.
32784 2007-02-24 Bruno Haible <bruno@clisp.org>
32786 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
32787 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
32788 function; instead check whether isnan with a double argument links.
32789 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
32790 function; instead check whether isnan with a 'long double' argument
32792 Reported by Eric Blake <ebb9@byu.net>.
32794 2007-02-24 Bruno Haible <bruno@clisp.org>
32796 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
32798 * lib/isnanl.c: Remove all code. Just include isnan.c.
32799 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
32801 2007-02-25 Jim Meyering <jim@meyering.net>
32803 Avoid conflicting types for 'unsetenv' on FreeBSD.
32804 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
32805 conflicting with FreeBSD's (5.0 and 6.1) function declaration
32808 2007-02-24 Bruno Haible <bruno@clisp.org>
32810 * modules/isnanl-nolibm-tests: New file.
32811 * tests/test-isnanl.c: New file.
32813 * modules/isnanl-nolibm: New file.
32814 * lib/isnanl.h: New file.
32815 * lib/isnanl.c: New file.
32816 * m4/isnanl.m4: New file.
32818 2007-02-24 Bruno Haible <bruno@clisp.org>
32820 * modules/isnan-nolibm-tests: New file.
32821 * tests/test-isnan.c: New file.
32823 * modules/isnan-nolibm: New file.
32824 * lib/isnan.h: New file.
32825 * lib/isnan.c: New file.
32826 * m4/isnan.m4: New file.
32828 2007-02-24 Bruno Haible <bruno@clisp.org>
32830 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
32831 assume that an exponent fits in 20 bits.
32833 2007-02-24 Jim Meyering <jim@meyering.net>
32835 * m4/regex.m4: Update the description of the configure-time option,
32836 --without-included-regex, to state accurately what the defaults are,
32837 and perhaps to give people an idea why using this option is risky.
32839 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
32841 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
32842 loops on small arguments. This attempts to avoid the problem
32843 Bruno Haible reported for AIX 4.3.2 in
32844 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
32846 2007-02-23 Bruno Haible <bruno@clisp.org>
32848 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
32849 Needed for help2man.
32851 2007-02-23 Karl Berry <karl@gnu.org>
32853 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
32854 exists, foo.h should be cvs-ignored, not committed.
32856 2007-02-23 Eric Blake <ebb9@byu.net>
32858 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
32859 * lib/stat-time.h (includes): Likewise.
32860 * lib/utimecmp.c (includes): Likewise.
32861 * lib/utimens.h (includes): Likewise.
32862 * lib/getdate.y (includes): Also include "timespec.h" for use
32863 internal to the module.
32864 * modules/utimens (Depends-on): Revert yesterday's patch.
32865 * modules/nanosleep (Depends-on): Add missing dependency.
32867 2007-02-22 Bruno Haible <bruno@clisp.org>
32869 * lib/glob.c: Don't include getlogin_r.h.
32871 2007-02-22 Jim Meyering <jim@meyering.net>
32873 * modules/utimens (Depends-on): Add timespec, required for
32874 utimens.h's inclusion of timespec.h.
32876 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
32878 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
32879 long unreadable paths in GNU/Linux. Problem reported by Andreas
32881 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
32882 I'll try to think of a better way to fix the Solaris problem.
32884 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
32885 like glibc; on Solaris 10, it fails with errno == EINVAL.
32886 POSIX says the behavior is unspecified if the first argument is NULL,
32887 so play it safe and never pass NULL to the system getcwd.
32889 2007-02-21 Jim Meyering <jim@meyering.net>
32891 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
32892 of gettimeofday. It would conflict with the one now always
32893 provided via sys_time_.h. Reported by Matthew Woehlke, as
32894 an IRIX 6.5 build failure.
32896 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
32898 Minor fixups to port to Solaris 10 with Sun C 5.8.
32899 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
32900 * modules/getcwd (Depends-on): Add dirfd.
32901 * lib/putenv.c (putenv): #undef it.
32902 (rpl_putenv): New decl.
32903 (malloc, free): Include <stdlib.h> rather than prototyping separately.
32905 2007-02-20 Bruno Haible <bruno@clisp.org>
32907 * modules/stdio-tests: New file.
32908 * tests/test-stdio.c: New file.
32910 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
32911 (Depends-on): Add stdio.
32912 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32913 (Include): Use <stdio.h> instead of vsnprintf.h.
32914 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
32915 HAVE_DECL_VSNPRINTF.
32916 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
32918 * modules/snprintf (Files): Remove lib/snprintf.h.
32919 (Depends-on): Add stdio.
32920 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32921 (Include): Use <stdio.h> instead of snprintf.h.
32922 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
32923 HAVE_DECL_SNPRINTF.
32924 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
32925 * lib/getaddrinfo.c: Likewise.
32927 * modules/stdio: New file.
32928 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
32929 * lib/snprintf.h: Remove file.
32930 * lib/vsnprintf.h: Remove file.
32931 * lib/.cppi-disable: Remove snprintf.h.
32932 * m4/stdio_h.m4: New file.
32933 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
32935 2007-02-20 Jim Meyering <jim@meyering.net>
32937 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
32938 used by e.g., mingw. From Bruno Haible.
32940 2007-02-19 Bruno Haible <bruno@clisp.org>
32942 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
32944 Reported by Ben Pfaff <blp@cs.stanford.edu>.
32946 2007-02-19 Bruno Haible <bruno@clisp.org>
32948 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
32951 2007-02-19 Bruno Haible <bruno@clisp.org>
32953 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
32955 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
32957 2007-02-19 Jim Meyering <jim@meyering.net>
32959 Don't use FD after a successful "fdopendir (fd)".
32960 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
32961 Reset it by calling dirfd on the just-obtained DIR*.
32963 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
32964 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
32966 2007-02-18 Bruno Haible <bruno@clisp.org>
32968 * lib/readlink.c: Include <unistd.h>.
32969 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
32971 * modules/readlink (Depends-on): Add unistd.
32972 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32973 (Include): Add <unistd.h>.
32975 * lib/getlogin_r.h: Remove file.
32976 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
32977 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
32978 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
32979 HAVE_DECL_GETLOGIN_R.
32980 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
32981 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32982 (Include): Use <unistd.h> instead of getlogin_r.h.
32984 * lib/getcwd.h: Remove file.
32985 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
32986 * lib/xgetcwd.c: Likewise.
32987 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
32988 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
32989 * modules/getcwd (Files): Remove lib/getcwd.h.
32990 (Depends-on): Add unistd.
32991 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
32992 (Include): Use <unistd.h> instad of getcwd.h.
32994 * lib/ftruncate.c: Include <unistd.h> first.
32995 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
32996 Set HAVE_FTRUNCATE.
32997 * modules/ftruncate (Depends-on): Add unistd.
32998 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33000 * lib/fchdir.c: Include <unistd.h> first.
33001 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
33002 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
33003 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
33004 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33005 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
33007 * lib/dup2.c: Include <unistd.h> first.
33008 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
33010 * modules/dup2 (Depends-on): Add unistd.
33011 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33013 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
33014 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
33015 REPLACE_CHOWN. Don't define chown as a macro here.
33016 * modules/chown (Depends-on): Add unistd.
33017 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33019 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
33020 Add definition for GL_LINK_WARNING.
33021 (chown, dup2): New declarations.
33022 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
33024 (ftruncate): New declaration.
33025 (getcwd): New declaration, taken from old getcwd.h.
33026 (getlogin_r): New declaration, taken from old getlogin_r.h.
33027 (readlink): New declaration.
33028 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
33029 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
33030 (gl_PREREQ_UNISTD): Remove macro.
33031 (gl_UNISTD_MODULE_INDICATOR): New macro.
33032 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
33033 many new variables. Don't set UNISTD_H.
33034 * modules/unistd (Description): Change.
33035 (Depends-on): Add link-warning.
33036 (configure.ac): Update.
33037 (Makefile.am): Create unistd.h always. Substitute many new variables
33040 2007-02-18 Bruno Haible <bruno@clisp.org>
33042 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
33043 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
33045 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
33046 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
33047 * lib/getsubopt.h: Remove file.
33048 * modules/getsubopt (Files): Remove lib/getsubopt.h.
33049 (Depends-on): Add stdlib.
33050 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33051 (Includes): Use <stdlib.h> instead of getsubopt.h.
33052 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
33053 Set HAVE_GETSUBOPT.
33054 * lib/getsubopt.c: Don't include getsubopt.h.
33056 2007-02-18 Bruno Haible <bruno@clisp.org>
33058 * modules/fchdir (Depends-on): Add dup2.
33060 2007-02-18 Bruno Haible <bruno@clisp.org>
33062 * lib/stdlib_.h: Handle glibc's special invocation convention
33065 2007-02-18 Bruno Haible <bruno@clisp.org>
33067 * modules/stdlib-tests: New file.
33068 * tests/test-stdlib.c: New file.
33070 * modules/mkstemp (Files): Remove lib/mkstemp.h.
33071 (Depends-on): Add stdlib.
33072 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33073 (Includes): Use <stdlib.h> instead of mkstemp.h.
33074 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
33075 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
33076 * lib/mkstemp.c: Don't include mkstemp.h.
33077 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
33078 * lib/stdlib--.h: Don't include mkstemp.h.
33080 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
33081 (Depends-on): Add stdlib.
33082 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
33083 (Includes): Use <stdlib.h> instead of mkdtemp.h.
33084 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
33086 * lib/mkdtemp.c: Don't include mkdtemp.h.
33087 * lib/clean-temp.c: Don't include mkdtemp.h.
33089 * modules/exit (Files): Remove lib/exit.h.
33090 (Depends-on): Add stdlib.
33091 (Makefile.am): Remove lib_SOURCES.
33092 (Include): Use <stdlib.h> instead of exit.h.
33093 * lib/argmatch.c: Don't include exit.h.
33094 * lib/execute.c: Likewise.
33095 * lib/pagealign_alloc.c: Likewise.
33096 * lib/pipe.c: Likewise.
33097 * lib/wait-process.c: Likewise.
33098 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
33099 * lib/exitfail.c: Likewise.
33100 * lib/savewd.c: Likewise.
33101 * lib/xsetenv.c: Likewise.
33103 * modules/stdlib: New file.
33104 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
33105 and extra comments about mkstemp().
33106 * lib/exit.h: Remove file.
33107 * lib/mkdtemp.h: Remove file.
33108 * lib/mkstemp.h: Remove file.
33109 * m4/stdlib_h.m4: New file.
33110 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
33112 2007-02-18 Bruno Haible <bruno@clisp.org>
33114 * modules/math-tests: New file.
33115 * tests/test-math.c: New file.
33117 * modules/math: New file.
33118 * modules/mathl (Files): Remove lib/mathl.h.
33119 (Depends-on): Add math.
33120 (Makefile.am): Don't mention mathl.h.
33121 (Include): Use <math.h> instead of mathl.h.
33122 * lib/math_.h: New file.
33123 * lib/mathl.h: Remove file.
33124 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
33126 * lib/asinl.c: Likewise.
33127 * lib/atanl.c: Likewise.
33128 * lib/ceill.c: Likewise.
33129 * lib/cosl.c: Likewise.
33130 * lib/expl.c: Likewise.
33131 * lib/floorl.c: Likewise.
33132 * lib/frexpl.c: Likewise.
33133 * lib/ldexpl.c: Likewise.
33134 * lib/logl.c: Likewise.
33135 * lib/sincosl.c: Likewise.
33136 * lib/sinl.c: Likewise.
33137 * lib/sqrtl.c: Likewise.
33138 * lib/tanl.c: Likewise.
33139 * lib/trigl.c: Likewise.
33140 * m4/math_h.m4: New file.
33141 * MODULES.html.sh (Mathematics): Add math.
33143 2007-02-17 Bruno Haible <bruno@clisp.org>
33145 * modules/wctype-tests: New file.
33146 * tests/test-wctype.c: New file.
33148 * modules/wchar-tests: New file.
33149 * tests/test-wchar.c: New file.
33151 * modules/unistd-tests: New file.
33152 * tests/test-unistd.c: New file.
33154 * modules/time-tests: New file.
33155 * tests/test-time.c: New file.
33157 * modules/sysexits-tests: New file.
33158 * tests/test-sysexits.c: New file.
33160 * modules/sys_time-tests: New file.
33161 * tests/test-sys_time.c: New file.
33163 * modules/sys_stat-tests: New file.
33164 * tests/test-sys_stat.c: New file.
33166 * modules/sys_socket-tests: New file.
33167 * tests/test-sys_socket.c: New file.
33169 * modules/sys_select-tests: New file.
33170 * tests/test-sys_select.c: New file.
33172 * modules/string-tests: New file.
33173 * tests/test-string.c: New file.
33175 * modules/stdbool-tests: New file.
33176 * tests/test-stdbool.c: New file.
33178 * modules/netinet_in-tests: New file.
33179 * tests/test-netinet_in.c: New file.
33181 * modules/inttypes-tests: New file.
33182 * tests/test-inttypes.c: New file.
33184 * modules/fcntl-tests: New file.
33185 * tests/test-fcntl.c: New file.
33187 * modules/byteswap-tests: New file.
33188 * tests/test-byteswap.c: New file.
33190 * modules/arpa_inet-tests: New file.
33191 * tests/test-arpa_inet.c: New file.
33193 2007-02-17 Bruno Haible <bruno@clisp.org>
33195 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
33196 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
33197 if the corresponding module is not enabled. Emit link warnings if
33198 the function is used nevertheless.
33199 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
33200 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
33201 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
33202 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
33203 * modules/inttypes (Depends-on): Add link-warning.
33204 (Makefile.am): Copy the contents of build-aux/link-warning.h into
33205 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
33206 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
33207 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
33208 * modules/imaxdiv (configure.ac): Likewise.
33209 * modules/strtoimax (configure.ac): Likewise.
33210 * modules/strtoumax (configure.ac): Likewise.
33212 2007-02-17 Bruno Haible <bruno@clisp.org>
33214 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
33215 gl_STRING_MODULE_INDICATOR_DEFAULTS.
33216 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
33217 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
33219 2007-02-17 Bruno Haible <bruno@clisp.org>
33221 * modules/link-warning: New file.
33222 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
33223 * lib/string_.h (GL_LINK_WARNING): Remove definition.
33224 * modules/string (Depends-on): Add link-warning.
33225 (Makefile.am): Copy the contents of build-aux/link-warning.h into
33227 * MODULES.html.sh (Support for building libraries and executables): Add
33230 2007-02-17 Bruno Haible <bruno@clisp.org>
33232 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
33233 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
33234 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
33237 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
33238 Bruno Haible <bruno@clisp.org>
33240 * modules/tmpfile: New file.
33241 * lib/tmpfile.c: New file.
33242 * m4/tmpfile.m4: New file.
33243 * MODULES.html.sh (func_all_modules): New section "Input/output".
33245 2007-02-15 Bruno Haible <bruno@clisp.org>
33247 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
33248 (supports_delete_on_close): New function.
33249 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
33251 2007-02-14 Bruno Haible <bruno@clisp.org>
33253 * modules/mbspcasecmp-tests: New file.
33254 * tests/test-mbspcasecmp.sh: New file.
33255 * tests/test-mbspcasecmp.c: New file.
33257 New module mbspcasecmp.
33258 * modules/mbspcasecmp: New file.
33259 * lib/mbspcasecmp.c: New file.
33260 * lib/string_.h (strncasecmp): Change warning message.
33261 (mbspcasecmp): New declaration.
33262 * m4/mbspcasecmp.m4: New file.
33263 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33264 GNULIB_MBSPCASECMP.
33265 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
33266 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
33268 2007-02-14 Bruno Haible <bruno@clisp.org>
33270 * modules/mbsncasecmp-tests: New file.
33271 * tests/test-mbsncasecmp.sh: New file.
33272 * tests/test-mbsncasecmp.c: New file.
33274 New module mbsncasecmp.
33275 * modules/mbsncasecmp: New file.
33276 * lib/mbsncasecmp.c: New file.
33277 * lib/string_.h (mbsncasecmp): New declaration.
33278 * m4/mbsncasecmp.m4: New file.
33279 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33280 GNULIB_MBSNCASECMP.
33281 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
33282 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
33284 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
33286 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
33287 Verify that it doesn't overlap with our flags.
33288 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
33289 do not have the desired effect in multibyte locales; instead, use
33291 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
33292 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
33293 we don't require GNU fnmatch ourselves (if our users require it, they
33294 should do so explicitly).
33296 Fix regex code so it doesn't rely on strcasecmp.
33297 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
33298 Otherwise, include gnulib's langinfo.h.
33299 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
33300 undesirable behavior in non-C locales. Instead, rely on localecharset.
33301 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
33302 * modules/regex (FILES): Remove m4/codeset.m4.
33303 (Depends-on): Add localcharset. Remove strcase.
33305 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33307 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
33308 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
33310 2007-02-13 Bruno Haible <bruno@clisp.org>
33312 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
33313 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33315 2007-02-12 Bruno Haible <bruno@clisp.org>
33317 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
33318 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
33319 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
33320 time warning rather than a link error.
33322 2007-02-12 Bruno Haible <bruno@clisp.org>
33324 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
33325 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33326 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33328 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
33330 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
33333 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
33335 New module 'time', so that apps can include <time.h> as per
33336 POSIX and GNU instead of separate include files like time_r.h
33337 and timegm.h. This implementation tries out a simpler approach
33338 for replacing decls in standard include files (as compared to
33339 the string module), somewhat as an experiment.
33341 * config/srclist.txt: Comment out mktime.c for now.
33342 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
33343 since it doesn't apply any more. Use generic wording instead.
33344 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
33346 * lib/time_.h, m4/time_h.m4, modules/time: New files.
33347 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
33348 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
33349 Don't include <sys/types.h>; no longer needed since we assume C89.
33350 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
33351 * lib/strftime.c: Likewise.
33352 * lib/time_r.c: Likewise.
33353 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
33354 * lib/nanosleep.c: Include <time.h> first, to check interface.
33355 * lib/strptime.c: Likewise.
33356 * lib/time_r.c: Likewise.
33357 * lib/timegm.c: Likewise.
33358 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
33360 * lib/timegm.c: Don't include timegm.h; no longer needed.
33361 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
33362 time.h now handles any problems in that area.
33363 (struct timespec, nanosleep): Remove; time.h now arranges for these.
33364 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
33365 that time.h defines struct timespec.
33366 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
33367 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
33369 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
33370 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
33371 needed. Set REPLACE_LOCALTIME.
33372 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
33373 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
33374 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
33375 nanosleep; time_h.m4 now does that. Don't require
33376 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
33377 module handles this now.
33378 * modules/getdate (Depends-on): Remove timespec. Add time.
33379 * modules/nanosleep (Depends-on): Likewise.
33380 * modules/stat-time (Depends-on): Likewise.
33381 * modules/nanosleep (Include): Include time.h, not timespec.h.
33382 * modules/strptime (Files): Remove lib/strptime.h.
33383 (Depends-on): Add extensions, time.
33384 (Include): Include time.h, not strptime.h.
33385 * modules/time_r (Files): Remove lib/time_r.h.
33386 (Depends-on): Add time.
33387 (Include): Include time.h, not time_r.h.
33388 * modules/timegm: Likewise.
33389 * modules/timespec (Description): Now does timespec-related decls
33390 of our own, instead of struct timespec itself.
33391 (Depends-on): Add time; remove extensions.
33392 (Maintainer): Add self.
33393 * modules/utimecmp (Depends-on): Add time; remove timespec.
33394 * modules/utimens (Depends-on): Likewise.
33395 * modules/xnanosleep (Depends-on): Likewise.
33397 2007-02-11 Bruno Haible <bruno@clisp.org>
33399 * lib/c-strstr.c: Include allocsa.h.
33400 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
33401 * lib/c-strcasestr.c: Include allocsa.h.
33402 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
33403 * lib/strcasestr.c: Include allocsa.h.
33404 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
33405 * lib/mbsstr.c: Include allocsa.h.
33406 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
33407 allocsa/freesa instead of malloc/free.
33408 * lib/mbscasestr.c: Include allocsa.h.
33409 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
33410 allocsa/freesa instead of malloc/free.
33411 * modules/c-strstr (Depends-on): Add allocsa.
33412 * modules/c-strcasestr (Depends-on): Likewise.
33413 * modules/strcasestr (Depends-on): Likewise.
33414 * modules/mbsstr (Depends-on): Likewise.
33415 * modules/mbscasestr (Depends-on): Likewise.
33417 2007-02-11 Bruno Haible <bruno@clisp.org>
33419 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
33421 * modules/mbsspn-tests: New file.
33422 * tests/test-mbsspn.sh: New file.
33423 * tests/test-mbsspn.c: New file.
33425 2007-02-11 Bruno Haible <bruno@clisp.org>
33427 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
33429 * modules/mbspbrk-tests: New file.
33430 * tests/test-mbspbrk.sh: New file.
33431 * tests/test-mbspbrk.c: New file.
33433 2007-02-11 Bruno Haible <bruno@clisp.org>
33435 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
33438 * modules/mbscspn-tests: New file.
33439 * tests/test-mbscspn.sh: New file.
33440 * tests/test-mbscspn.c: New file.
33442 2007-02-11 Bruno Haible <bruno@clisp.org>
33444 * modules/mbscasecmp-tests: New file.
33445 * tests/test-mbscasecmp.sh: New file.
33446 * tests/test-mbscasecmp.c: New file.
33448 2007-02-11 Bruno Haible <bruno@clisp.org>
33450 Ensure O(n) worst-case complexity of mbscasestr.
33451 * lib/mbscasestr.c: Include stdbool.h.
33452 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
33454 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
33455 the bookkeeping indicates that it's worth it.
33456 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
33458 * modules/mbscasestr-tests: New file.
33459 * tests/test-mbscasestr1.c: New file.
33460 * tests/test-mbscasestr2.sh: New file.
33461 * tests/test-mbscasestr2.c: New file.
33462 * tests/test-mbscasestr3.sh: New file.
33463 * tests/test-mbscasestr3.c: New file.
33464 * tests/test-mbscasestr4.sh: New file.
33465 * tests/test-mbscasestr4.c: New file.
33466 * m4/locale-tr.m4: New file.
33468 2007-02-11 Bruno Haible <bruno@clisp.org>
33470 Ensure O(n) worst-case complexity of mbsstr.
33471 * lib/mbsstr.c: Include stdbool.h.
33472 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
33474 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
33475 bookkeeping indicates that it's worth it.
33476 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
33478 * modules/mbsstr-tests: New file.
33479 * tests/test-mbsstr1.c: New file.
33480 * tests/test-mbsstr2.sh: New file.
33481 * tests/test-mbsstr2.c: New file.
33482 * tests/test-mbsstr3.sh: New file.
33483 * tests/test-mbsstr3.c: New file.
33484 * m4/locale-fr.m4: New file.
33486 2007-02-11 Bruno Haible <bruno@clisp.org>
33488 * lib/mbsrchr.c (mbsrchr): Fix bug.
33490 * modules/mbsrchr-tests: New file.
33491 * tests/test-mbsrchr.sh: New file.
33492 * tests/test-mbsrchr.c: New file.
33494 2007-02-11 Bruno Haible <bruno@clisp.org>
33496 * lib/mbschr.c (mbschr): Fix bug.
33498 * modules/mbschr-tests: New file.
33499 * tests/test-mbschr.sh: New file.
33500 * tests/test-mbschr.c: New file.
33501 * m4/locale-zh.m4: New file.
33503 2007-02-11 Bruno Haible <bruno@clisp.org>
33505 Support for copying multibyte string iterators.
33506 * lib/mbiter.h: Include <string.h>.
33507 (mbiter_multi_copy): New function.
33508 (mbi_copy): New macro.
33509 * lib/mbuiter.h: Include <string.h>.
33510 (mbuiter_multi_copy): New function.
33511 (mbui_copy): New macro.
33513 2007-02-11 Bruno Haible <bruno@clisp.org>
33516 * modules/mbslen: New file.
33517 * lib/mbslen.c: New file.
33518 * lib/string_.h (mbslen): New declaration.
33519 * m4/mbslen.m4: New file.
33520 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33522 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
33523 * MODULES.html.sh (Internationalization functions): Add mbslen.
33525 2007-02-11 Bruno Haible <bruno@clisp.org>
33527 Ensure O(n) worst-case complexity of strcasestr substitute.
33528 * lib/strcasestr.c: Include stdbool.h.
33529 (knuth_morris_pratt): New function.
33530 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
33531 bookkeeping indicates that it's worth it.
33532 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
33534 * modules/strcasestr-tests: New file.
33535 * tests/test-strcasestr.c: New file.
33537 2007-02-11 Bruno Haible <bruno@clisp.org>
33539 Ensure O(n) worst-case complexity of c_strcasestr.
33540 * lib/c-strcasestr.c: Include stdbool.h, string.h.
33541 (knuth_morris_pratt): New function.
33542 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
33543 the bookkeeping indicates that it's worth it.
33544 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
33546 * modules/c-strcasestr-tests: New file.
33547 * tests/test-c-strcasestr.c: New file.
33549 2007-02-11 Bruno Haible <bruno@clisp.org>
33551 Ensure O(n) worst-case complexity of c_strstr.
33552 * lib/c-strstr.c: Include stdbool.h, string.h.
33553 (knuth_morris_pratt): New function.
33554 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
33555 bookkeeping indicates that it's worth it.
33556 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
33558 * lib/c-strstr.c: Complete rewrite for maintainability.
33560 * modules/c-strstr-tests: New file.
33561 * tests/test-c-strstr.c: New file.
33563 2007-02-11 Bruno Haible <bruno@clisp.org>
33565 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
33566 5.2.1 and earlier, whereby \055 was treated just like the range
33568 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
33570 2007-02-08 Bruno Haible <bruno@clisp.org>
33572 * modules/regex (Depends-on): Add stdbool.
33573 Reported by Dalibor Topic <robilad@kaffe.org>.
33575 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
33577 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
33578 Prefer returning from main to exiting from it.
33579 Remove unnecessary parens after sizeof.
33581 2007-02-05 Bruno Haible <bruno@clisp.org>
33584 * modules/mbssep: New file.
33585 * lib/mbssep.c: New file.
33586 * lib/string_.h (strsep): Add a conditional link warning.
33587 (mbssep): New declaration.
33588 * m4/mbssep.m4: New file.
33589 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33591 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
33592 * MODULES.html.sh (Internationalization functions): Add mbssep.
33594 2007-02-05 Bruno Haible <bruno@clisp.org>
33596 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
33597 Optimize search in case of 1 delimiter.
33599 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
33601 * lib/acl.h: Include sys/types.h before sys/acl.h.
33603 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
33605 Merge upstream fix for glibc bugzilla #3957:
33607 2007-02-05 Jakub Jelinek <jakub@redhat.com>
33609 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
33610 bit for RE_HAT_LISTS_NOT_NEWLINE.
33611 (build_charclass_op): Remove bogus comment.
33613 2007-02-05 Simon Josefsson <simon@josefsson.org>
33615 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
33617 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
33619 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
33620 * lib/memmem.c [!defined _LIBC]: Include config.h.
33622 2007-02-04 Bruno Haible <bruno@clisp.org>
33624 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
33627 2007-02-04 Bruno Haible <bruno@clisp.org>
33629 New module mbstok_r.
33630 * modules/mbstok_r: New file.
33631 * lib/mbstok_r.c: New file.
33632 * lib/string_.h (strtok_r): Change argument names to match the
33633 comments. Add a conditional link warning.
33634 (mbstok_r): New declaration.
33635 * m4/mbstok_r.m4: New file.
33636 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33638 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
33639 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
33641 2007-02-04 Bruno Haible <bruno@clisp.org>
33644 * modules/mbsspn: New file.
33645 * lib/mbsspn.c: New file.
33646 * lib/string_.h (strspn): Add a conditional link warning.
33647 (mbsspn): New declaration.
33648 * m4/mbsspn.m4: New file.
33649 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33651 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
33652 * MODULES.html.sh (Internationalization functions): Add mbsspn.
33654 2007-02-04 Bruno Haible <bruno@clisp.org>
33656 New module mbspbrk.
33657 * modules/mbspbrk: New file.
33658 * lib/mbspbrk.c: New file.
33659 * lib/string_.h (strpbrk): Add a conditional link warning.
33660 (mbspbrk): New declaration.
33661 * m4/mbspbrk.m4: New file.
33662 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33664 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
33665 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
33667 2007-02-04 Bruno Haible <bruno@clisp.org>
33669 New module mbscspn.
33670 * modules/mbscspn: New file.
33671 * lib/mbscspn.c: New file.
33672 * lib/string_.h (strcspn): Add a conditional link warning.
33673 (mbscspn): New declaration.
33674 * m4/mbscspn.m4: New file.
33675 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33677 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
33678 * MODULES.html.sh (Internationalization functions): Add mbscspn.
33680 2007-02-04 Bruno Haible <bruno@clisp.org>
33682 New module mbscasestr, reduced goal of strcasestr.
33683 * modules/mbscasestr: New file.
33684 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
33685 (mbscasestr): Renamed from strcasestr.
33686 * lib/strcasestr.c: Don't include mbuiter.h.
33687 (strcasestr): Remove support for multibyte locales.
33688 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
33689 Change the conditional link warning.
33690 (mbscasestr): New declaration.
33691 * m4/mbscasestr.m4: New file.
33692 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
33693 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
33694 REPLACE_STRCASESTR.
33695 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
33696 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33697 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
33698 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
33699 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
33700 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
33701 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
33702 (Depends-on): Remove mbuiter.
33703 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
33705 2007-02-04 Bruno Haible <bruno@clisp.org>
33707 Simplify handling of strncasecmp.
33708 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
33709 the conditional link warning.
33710 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33711 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
33712 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
33713 * modules/strcase (configure.ac): Don't invoke
33714 gl_STRING_MODULE_INDICATOR.
33715 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
33717 2007-02-04 Bruno Haible <bruno@clisp.org>
33719 New module mbscasecmp, reduced goal of strcasecmp.
33720 * modules/mbscasecmp: New file.
33721 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
33722 (mbscasecmp): Renamed from strcasecmp.
33723 * lib/strcasecmp.c: Don't include mbuiter.h.
33724 (strcasecmp): Remove support for multibyte locales.
33725 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
33726 Change the conditional link warning.
33727 (mbscasecmp): New declaration.
33728 * m4/mbscasecmp.m4: New file.
33729 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
33730 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
33731 REPLACE_STRCASECMP.
33732 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
33733 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33735 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
33736 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
33737 * modules/strcase (Files): Remove m4/mbrtowc.m4.
33738 (Depends-on): Remove mbuiter.
33739 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
33741 2007-02-04 Bruno Haible <bruno@clisp.org>
33743 New module mbsstr. Remove module strstr.
33744 * modules/mbsstr: New file.
33745 * modules/strstr: Remove file.
33746 * lib/mbsstr.c: Renamed from lib/strstr.c.
33747 (mbsstr): Renamed from strstr.
33748 * lib/string_.h (strstr): Remove declaration. Change the conditional
33750 (mbsstr): New declaration.
33751 * m4/mbsstr.m4: New file.
33752 * m4/strstr.m4: Remove file.
33753 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33755 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
33756 Don't initialize GNULIB_STRSTR.
33757 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
33758 substitute GNULIB_STRSTR and REPLACE_STRSTR.
33759 * MODULES.html.sh (Internationalization functions): Add mbsstr.
33760 (Support for systems lacking ANSI C 89): Remove strstr.
33762 2007-02-04 Bruno Haible <bruno@clisp.org>
33764 New module mbsrchr.
33765 * modules/mbsrchr: New file.
33766 * lib/mbsrchr.c: New file.
33767 * lib/string_.h (strrchr): Add a conditional link warning.
33768 (mbsrchr): New declaration.
33769 * m4/mbsrchr.m4: New file.
33770 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33772 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
33773 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
33775 2007-02-04 Bruno Haible <bruno@clisp.org>
33778 * modules/mbschr: New file.
33779 * lib/mbschr.c: New file.
33780 * lib/string_.h (strchr): Add a conditional link warning.
33781 (mbschr): New declaration.
33782 * m4/mbschr.m4: New file.
33783 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
33785 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
33786 * MODULES.html.sh (Internationalization functions): Add mbschr.
33788 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
33790 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
33792 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
33794 2007-02-04 Bruno Haible <bruno@clisp.org>
33796 New module description section 'configure.ac-early'.
33797 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
33798 (func_get_autoconf_early_snippet): New function.
33799 (func_import, func_create_testdir): Use it. Remove special cases for
33800 modules 'extensions' and 'lock'.
33801 * modules/extensions (configure.ac-early): Require
33802 gl_USE_SYSTEM_EXTENSIONS.
33803 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
33805 2007-02-04 Bruno Haible <bruno@clisp.org>
33807 Make use of gcj-4.3's -fsource and -ftarget option.
33808 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
33809 and if so try the options -fsource and -ftarget.
33810 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
33811 source_version, ftarget_option, target_version arguments.
33812 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
33813 (is_envjavac_oldgcj_14_14_usable): Renamed from
33814 is_envjavac_gcj_14_14_usable.
33815 (is_envjavac_oldgcj_14_13_usable): Renamed from
33816 is_envjavac_gcj_14_13_usable.
33817 (is_gcj_present): Update.
33818 (is_gcj_43, is_gcj43_usable): New functions.
33819 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
33820 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
33821 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
33822 try the options -fsource and -ftarget.
33824 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
33826 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
33827 checking code. Set N = ceil (1.5 * N) rather than to a slightly
33830 2007-02-03 Jim Meyering <jim@meyering.net>
33832 Give tools a better chance to allocate space for very large buffers.
33833 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
33835 Make pwd and readlink work also when run with an unreadable parent dir
33836 on systems with openat support.
33837 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
33838 provided getcwd function, even when we have openat support.
33839 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
33841 2007-02-02 Bruno Haible <bruno@clisp.org>
33843 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
33844 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
33845 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
33846 portability problems if one of these functions is only used on specific
33848 Reported by Paul Eggert.
33850 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
33852 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
33853 is causing more trouble than it's curing.
33854 * lib/regex_internal.h (__mempcpy): Remove.
33855 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
33856 (and make the code a tad smaller to boot).
33857 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
33859 2007-02-02 Jim Meyering <jim@meyering.net>
33861 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
33862 section, not in the Makefile.am: one.
33864 2007-02-02 Eric Blake <ebb9@byu.net>
33866 * lib/strchrnul.c: Always include config.h first.
33868 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
33869 gnulib strstr is not necessary here.
33871 2007-02-02 Simon Josefsson <simon@josefsson.org>
33873 * m4/socklen.m4: Fix typo.
33875 2007-02-02 Eric Blake <ebb9@byu.net>
33877 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
33878 * modules/netinet_in (Makefile.am): Likewise.
33880 2007-02-01 Bruno Haible <bruno@clisp.org>
33882 * lib/string_.h (GL_LINK_WARNING): New macro.
33883 (strcasecmp, strstr, strcasestr): If provided by the system,
33884 conditionally define as a macro that leads to a warning instead of to
33886 (strncasecmp): Conditionally define as a macro that leads to a warning.
33888 2007-02-01 Karl Berry <karl@gnu.org>
33890 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
33892 2007-02-01 Bruno Haible <bruno@clisp.org>
33894 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
33897 2007-02-01 Eric Blake <ebb9@byu.net>
33899 * modules/regex (Depends-on): Revert dependence on mempcpy.
33900 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
33901 module's definition of mempcpy.
33902 Reported by Paul Eggert.
33904 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
33906 * lib/string_.h: If the gnulib module XYZ is not present, undefine
33907 the symbol XYZ before redefining it. This fixes a problem with
33908 programs that don't use XYZ, when compiled on systems that define
33909 XYZ to something else.
33911 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
33913 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
33914 occurs when "mkdir -m foo" creates a setgid directory that is (1)
33915 writeable to group or other and (2) is intended to have a special
33916 mode bit that is set or cleared. In such a case, the directory
33917 should be neither group- nor other-writeable until the special
33918 mode bits are right.
33920 2007-01-31 Eric Blake <ebb9@byu.net>
33922 * modules/mountlist (Depends-on): Add strstr.
33924 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
33926 * modules/string (Makefile.am): Remove redundant replacement.
33927 * modules/regex (Depends-on): Add mempcpy.
33929 2007-01-31 Bruno Haible <bruno@clisp.org>
33931 New module description field 'Link'.
33932 * gnulib-tool (func_usage): Document --extract-link-directive.
33933 (sed_extract_prog): Recognize 'Link' directive.
33934 (func_get_link_directive): New function.
33935 (func_import): Show summary of link directives.
33936 Handle --extract-link-directive option.
33937 * modules/acl (Link): New section.
33938 * modules/clock-time (Link): New section.
33939 * modules/euidaccess (Link): New section.
33940 * modules/gettext (Link): New section.
33941 * modules/iconv (Link): New section.
33942 * modules/lock (Link): New section.
33943 * modules/nanosleep (Link): New section.
33944 * modules/readline (Link): New section.
33946 2007-01-27 Bruno Haible <bruno@clisp.org>
33948 Enforce the use of gnulib modules for unportable <string.h> functions.
33949 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
33950 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
33951 (gl_HEADER_STRING_H_BODY): Require it.
33952 * lib/string_.h: If the gnulib module XYZ is not present, redefine
33953 the symbol XYZ to one that gives a link error.
33954 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
33955 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
33956 * modules/mempcpy (configure.ac): Likewise.
33957 * modules/memrchr (configure.ac): Likewise.
33958 * modules/stpcpy (configure.ac): Likewise.
33959 * modules/stpncpy (configure.ac): Likewise.
33960 * modules/strcase (configure.ac): Likewise.
33961 * modules/strcasestr (configure.ac): Likewise.
33962 * modules/strchrnul (configure.ac): Likewise.
33963 * modules/strdup (configure.ac): Likewise.
33964 * modules/strndup (configure.ac): Likewise.
33965 * modules/strnlen (configure.ac): Likewise.
33966 * modules/strpbrk (configure.ac): Likewise.
33967 * modules/strsep (configure.ac): Likewise.
33968 * modules/strstr (configure.ac): Likewise.
33969 * modules/strtok_r (configure.ac): Likewise.
33971 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
33973 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
33975 2007-01-30 Jim Meyering <jim@meyering.net>
33977 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
33979 2007-01-29 Bruno Haible <bruno@clisp.org>
33981 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
33982 * lib/execute.c: Likewise.
33983 * lib/pipe.c: Likewise.
33984 * lib/printf-args.h: Likewise.
33985 * lib/printf-args.c: Likewise.
33986 * lib/printf-parse.c: Likewise.
33987 * lib/vasnprintf.c: Likewise.
33989 2007-01-29 Eric Blake <ebb9@byu.net>
33991 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
33994 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
33996 * lib/strptime.h (strptime): Use 'restrict' for args where
33997 POSIX requires this.
33998 * lib/strptime.c (strptime): Likewise.
33999 Change license notice from LGPL to GPL, since gnulib-tool will
34000 change this as needed.
34001 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
34003 Include "strptime.h" first, to check interface.
34004 Do not #undef _LIBC and _NL_CURRENT.
34005 Do not include <stdlib.h>; no longer needed.
34006 Include "time_r.h" and declare ptime_locale_status
34007 only if _LIBC is not defined.
34008 (__P): Remove unused macro.
34009 (match_string): Bring back glibc version, but use it only if _LIBC
34011 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
34012 Remove unnecessary assertion and abort() call.
34013 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
34014 * m4/strptime.m4: Fix serial number comment.
34015 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
34016 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
34017 (Depends-on): Add time_r.
34019 2007-01-29 Bruno Haible <bruno@clisp.org>
34021 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34023 * modules/strptime (Depends-on): Add stdbool.
34024 * lib/strptime.h: Include <time.h> always. Add comments.
34026 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
34028 * modules/strptime: New file.
34029 * lib/strptime.h: New file.
34030 * lib/strptime.c: New file.
34031 * m4/strptime.m4: New file.
34033 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
34035 * MODULES.html.sh: New module mpsort.
34036 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
34038 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
34039 a circularity problem with HP-UX ia64 reported by Bob Proulx in
34040 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
34042 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
34044 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
34046 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
34047 the parameter matches the prototype.
34049 2007-01-28 Jim Meyering <jim@meyering.net>
34051 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
34052 sys/time.h here, reverting that part of the previous patch:
34053 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
34055 2007-01-28 Bruno Haible <bruno@clisp.org>
34057 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
34058 value of $(SYS_TIME_H).
34059 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
34060 remove it conditionally, too. [added by Jim Meyering]
34061 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
34062 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
34063 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
34064 GETTIMEOFDAY_REPLACEMENT to 1.
34066 2007-01-28 Bruno Haible <bruno@clisp.org>
34068 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
34069 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
34070 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
34071 Set UNISTD_H instead of UNISTD_H2.
34072 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
34074 2007-01-28 Bruno Haible <bruno@clisp.org>
34076 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
34077 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
34079 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34081 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
34082 (func_create_testdir): Ensure C locale for `grep' and `tr'
34084 (func_create_megatestdir): Avoid one `grep'. Fix bug in
34085 ACLOCAL_AMFLAGS parsing state machine.
34087 2007-01-27 Bruno Haible <bruno@clisp.org>
34089 * modules/unistr/base: Update.
34091 2007-01-27 Bruno Haible <bruno@clisp.org>
34093 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
34094 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
34095 * modules/unistr/u32-mbtouc-unsafe: Renamed from
34096 modules/unistr/u32-mbtouc.
34097 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
34098 * lib/unistr.h: Update.
34099 * lib/linebreak.c: Update.
34100 * modules/unistr/u32-mbtouc: Renamed from
34101 modules/unistr/u32-mbtouc-safe.
34102 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
34103 * lib/unistr.h: Update.
34104 * lib/unistr/u32-to-u8.c: Update.
34105 * lib/unistr/u32-to-u16.c: Update.
34107 2007-01-27 Bruno Haible <bruno@clisp.org>
34109 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
34110 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
34111 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
34112 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
34113 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
34114 * modules/unistr/u16-mbtouc-unsafe: Renamed from
34115 modules/unistr/u16-mbtouc.
34116 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
34117 * lib/unistr.h: Update.
34118 * lib/linebreak.c: Update.
34119 * modules/linebreak: Update.
34120 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
34121 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
34122 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
34123 * modules/unistr/u16-mbtouc: Renamed from
34124 modules/unistr/u16-mbtouc-safe.
34125 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
34126 * lib/unistr.h: Update.
34127 * lib/unistr/u16-to-u8.c: Update.
34128 * modules/unistr/u16-to-u8: Update.
34129 * lib/unistr/u16-to-u32.c: Update.
34130 * modules/unistr/u16-to-u32: Update.
34132 2007-01-27 Bruno Haible <bruno@clisp.org>
34134 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
34135 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
34136 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
34137 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
34138 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
34139 * modules/unistr/u8-mbtouc-unsafe: Renamed from
34140 modules/unistr/u8-mbtouc.
34141 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
34142 * lib/unistr.h: Update.
34143 * lib/striconveh.c: Update.
34144 * modules/striconveh: Update.
34145 * lib/linebreak.c: Update.
34146 * modules/linebreak: Update.
34147 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
34148 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
34149 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
34150 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
34151 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
34152 * lib/unistr.h: Update.
34153 * lib/striconveh.c: Update.
34154 * modules/striconveh: Update.
34155 * lib/unistr/u8-to-u16.c: Update.
34156 * modules/unistr/u8-to-u16: Update.
34157 * lib/unistr/u8-to-u32.c: Update.
34158 * modules/unistr/u8-to-u32: Update.
34160 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34163 * lib/argz.c: Do not include strings.h nor memory.h, include
34164 string.h unconditionally. Patch by Simon Josefsson.
34166 2007-01-27 Bruno Haible <bruno@clisp.org>
34168 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
34169 from gl_HEADER_STRING_H_BODY.
34170 (gl_HEADER_STRING_H_BODY): Require it.
34171 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
34172 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
34173 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
34174 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
34175 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
34176 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
34177 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
34178 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
34179 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
34180 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
34181 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
34182 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
34183 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
34184 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
34185 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
34187 2007-01-27 Bruno Haible <bruno@clisp.org>
34189 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
34190 check_PROGRAMS into noinst_PROGRAMS.
34191 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
34192 check_PROGRAMS in this case.
34193 (func_import): Set for_test to false.
34194 (func_create_testdir): Set for_test to true.
34196 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34197 Bruno Haible <bruno@clisp.org>
34199 * modules/strcasestr (Files): Remove lib/strcasestr.h.
34200 (Depends-on): Add string.
34201 (Includes): Use <string.h> instead of strcasestr.h.
34202 * modules/string (Makefile.am): Also substitute the value of
34203 REPLACE_STRCASESTR.
34204 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
34205 assume strcasestr is declared in <string.h> not <strings.h>. Also
34206 set REPLACE_STRCASESTR.
34207 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
34208 REPLACE_STRCASESTR.
34209 * lib/strcasestr.h: Remove file.
34210 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
34211 * lib/string_.h (strcasestr): New declaration.
34213 2007-01-27 Bruno Haible <bruno@clisp.org>
34215 * lib/string_.h: Use 'extern'.
34217 2007-01-27 Jim Meyering <jim@meyering.net>
34219 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
34220 of set-but-not-used local, "q".
34222 * lib/mempcpy.c: Include <config.h> before <string.h>.
34223 This fixes a compilation error on HP-UX, due to the system's
34224 "restrict"-using mempcpy prototype.
34226 2007-01-26 Bruno Haible <bruno@clisp.org>
34228 Small optimization.
34229 * lib/javacomp.c: Include c-strstr.h.
34230 (is_envjavac_gcj): Use c_strstr instead of strstr.
34231 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
34233 2007-01-26 Bruno Haible <bruno@clisp.org>
34235 * MODULES.html.sh (Unicode string functions): Add the new modules.
34237 * modules/uniconv/u32-strconv-to-locale: New file.
34238 * lib/uniconv/u32-strconv-to-locale.c: New file.
34240 * modules/uniconv/u16-strconv-to-locale: New file.
34241 * lib/uniconv/u16-strconv-to-locale.c: New file.
34243 * modules/uniconv/u8-strconv-to-locale: New file.
34244 * lib/uniconv/u8-strconv-to-locale.c: New file.
34246 * modules/uniconv/u32-strconv-from-locale: New file.
34247 * lib/uniconv/u32-strconv-from-locale.c: New file.
34249 * modules/uniconv/u16-strconv-from-locale: New file.
34250 * lib/uniconv/u16-strconv-from-locale.c: New file.
34252 * modules/uniconv/u8-strconv-from-locale: New file.
34253 * lib/uniconv/u8-strconv-from-locale.c: New file.
34255 * modules/uniconv/u32-strconv-to-enc: New file.
34256 * lib/uniconv/u32-strconv-to-enc.c: New file.
34257 * modules/uniconv/u32-strconv-to-enc-tests: New file.
34258 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
34260 * modules/uniconv/u16-strconv-to-enc: New file.
34261 * lib/uniconv/u16-strconv-to-enc.c: New file.
34262 * lib/uniconv/u-strconv-to-enc.h: New file.
34263 * modules/uniconv/u16-strconv-to-enc-tests: New file.
34264 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
34266 * modules/uniconv/u8-strconv-to-enc: New file.
34267 * lib/uniconv/u8-strconv-to-enc.c: New file.
34268 * modules/uniconv/u8-strconv-to-enc-tests: New file.
34269 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
34271 * modules/uniconv/u32-strconv-from-enc: New file.
34272 * lib/uniconv/u32-strconv-from-enc.c: New file.
34273 * modules/uniconv/u32-strconv-from-enc-tests: New file.
34274 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
34276 * modules/uniconv/u16-strconv-from-enc: New file.
34277 * lib/uniconv/u16-strconv-from-enc.c: New file.
34278 * modules/uniconv/u16-strconv-from-enc-tests: New file.
34279 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
34281 * modules/uniconv/u8-strconv-from-enc: New file.
34282 * lib/uniconv/u8-strconv-from-enc.c: New file.
34283 * lib/uniconv/u-strconv-from-enc.h: New file.
34284 * modules/uniconv/u8-strconv-from-enc-tests: New file.
34285 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
34287 * modules/uniconv/u32-conv-from-enc: New file.
34288 * lib/uniconv/u32-conv-from-enc.c: New file.
34289 * modules/uniconv/u32-conv-from-enc-tests: New file.
34290 * tests/uniconv/test-u32-conv-from-enc.c: New file.
34292 * modules/uniconv/u16-conv-from-enc: New file.
34293 * lib/uniconv/u16-conv-from-enc.c: New file.
34294 * lib/uniconv/u-conv-from-enc.h: New file.
34295 * modules/uniconv/u16-conv-from-enc-tests: New file.
34296 * tests/uniconv/test-u16-conv-from-enc.c: New file.
34298 * modules/uniconv/u8-conv-from-enc: New file.
34299 * lib/uniconv/u8-conv-from-enc.c: New file.
34300 * modules/uniconv/u8-conv-from-enc-tests: New file.
34301 * tests/uniconv/test-u8-conv-from-enc.c: New file.
34303 * modules/uniconv/base: New file.
34304 * lib/uniconv.h: New file.
34306 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
34308 * doc/gnulib-tool.texi (Initial import): Update to match current
34309 behavior with strdup module.
34310 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
34311 * lib/memmem.h: Remove; all uses removed. This is now done
34313 * lib/mempcpy.h: Likewise.
34314 * lib/memrchr.h: Likewise.
34315 * lib/stpcpy.h: Likewise.
34316 * lib/stpncpy.h: Likewise.
34317 * lib/strcase.h: Likewise.
34318 * lib/strchrnul.h: Likewise.
34319 * lib/strdup.h: Likewise.
34320 * lib/strndup.h: Likewise.
34321 * lib/strnlen.h: Likewise.
34322 * lib/strpbrk.h: Likewise.
34323 * lib/strsep.h: Likewise.
34324 * lib/strstr.h: Likewise.
34325 * lib/strtok_r.h: Likewise.
34326 * lib/string_.h: New file.
34327 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
34328 Rely on <string.h> instead.
34329 * lib/canon-host.c: Likewise.
34330 * lib/chdir-long.c: Likewise.
34331 * lib/concatpath.c: Likewise.
34332 * lib/exclude.c: Likewise.
34333 * lib/fchdir.c: Likewise.
34334 * lib/getaddrinfo.c: Likewise.
34335 * lib/getcwd.c: Likewise.
34336 * lib/getsubopt.c: Likewise.
34337 * lib/glob.c: Likewise.
34338 * lib/hard-locale.c: Likewise.
34339 * lib/iconvme.c: Likewise.
34340 * lib/javacomp.c: Likewise.
34341 * lib/mempcpy.c: Likewise.
34342 * lib/memrchr.c: Likewise.
34343 * lib/regex_internal.h: Likewise.
34344 * lib/stpncpy.c: Likewise.
34345 * lib/strcasecmp.c: Likewise.
34346 * lib/strchrnul.c: Likewise.
34347 * lib/strdup.c: Likewise.
34348 * lib/striconv.c: Likewise.
34349 * lib/striconveh.c: Likewise.
34350 * lib/striconveha.c: Likewise.
34351 * lib/strncasecmp.c: Likewise.
34352 * lib/strndup.c: Likewise.
34353 * lib/strnlen.c: Likewise.
34354 * lib/strsep.c: Likewise.
34355 * lib/strstr.c: Likewise.
34356 * lib/strtok_r.c: Likewise.
34357 * lib/userspec.c: Likewise.
34358 * lib/w32spawn.h: Likewise.
34359 * lib/xstrndup.c: Likewise.
34360 * lib/mountlist.c (strstr): Remove decl.
34361 * m4/string_h.m4: New file.
34362 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
34363 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
34364 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
34365 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
34366 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
34367 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
34368 Set REPLACE_STRCASECMP if necessary.
34369 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
34370 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
34371 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
34372 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
34373 HAVE_DECL_STRDUP if necessary.
34374 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
34375 since gl_FUNC_STRNDUP does that now.
34376 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
34377 Check for decl here...
34378 (gl_PREREQ_STRNLEN): ... not here.
34379 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
34380 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
34381 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
34382 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
34384 * modules/string: New file.
34385 * modules/memmem (Files): Remove special-purpose include file.
34386 (Depends-on): Add string.
34387 (Include): Include <string.h>, not the removed file.
34388 * modules/mempcpy: Likewise.
34389 * modules/memrchr: Likewise.
34390 * modules/stpcpy: Likewise.
34391 * modules/stpncpy: Likewise.
34392 * modules/strcase: Likewise.
34393 * modules/strchrnul: Likewise.
34394 * modules/strdup: Likewise.
34395 * modules/strndup: Likewise.
34396 * modules/strnlen: Likewise.
34397 * modules/strpbrk: Likewise.
34398 * modules/strsep: Likewise.
34399 * modules/strstr: Likewise.
34400 * modules/strtok_r: Likewise.
34401 * tests/test-dirname.c: Don't include "strdup.h", since
34402 <string.h> now suffices.
34403 * tests/test-memmem.c: Don't include "memmem.h", since
34404 <string.h> now suffices.
34406 2007-01-25 Bruno Haible <bruno@clisp.org>
34408 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
34411 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
34412 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
34413 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
34414 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
34416 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
34417 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
34418 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
34419 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
34420 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
34421 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
34423 2007-01-24 Bruno Haible <bruno@clisp.org>
34425 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
34426 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
34427 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
34428 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
34430 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
34431 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
34432 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
34433 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
34434 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
34435 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
34437 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
34439 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
34440 Reported by Ralf Wildenhues.
34442 2007-01-24 Bruno Haible <bruno@clisp.org>
34444 Drop AC_REQUIRE calls that are redundant with the module dependencies.
34445 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
34447 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
34448 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
34449 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
34451 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
34453 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
34454 Don't use 'exit'; just return from 'main'.
34455 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
34457 * lib/fnmatch_.h: Readjust white space and comments to match
34458 glibc, to avoid spurious diffs.
34460 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
34462 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
34463 2004-12-01 change by Jakub Jelinek, since this code won't compile
34464 if !LIBC. Problem reported by Bob Proulx.
34466 2007-01-23 Bruno Haible <bruno@clisp.org>
34468 * lib/striconveh.c: Include c-strcaseeq.h.
34469 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
34470 * modules/striconveh (Depends-on): Add c-strcaseeq.
34472 2007-01-23 Bruno Haible <bruno@clisp.org>
34474 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
34476 * modules/c-strcaseeq: New file.
34477 * lib/c-strcaseeq.h: New file.
34479 * modules/streq: New file.
34480 * lib/streq.h: New file.
34482 2007-01-23 Bruno Haible <bruno@clisp.org>
34484 * modules/striconveha-tests: New file.
34485 * tests/test-striconveha.c: New file.
34487 * lib/striconveha.h: Include <stdbool.h>.
34488 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
34489 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
34490 (mem_iconveha_notranslit): Renamed from mem_iconveha.
34491 (mem_iconveha): New function.
34492 (str_iconveha_notranslit): Renamed from str_iconveha.
34493 (str_iconveha): New function.
34494 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
34497 2007-01-23 Bruno Haible <bruno@clisp.org>
34499 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
34500 encodings without forgiving before trying any encoding with handler.
34501 (str_iconveha): Try all encodings without forgiving before trying any
34502 encoding with handler.
34504 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
34506 Import the following changes from libc.
34508 2005-10-14 Ulrich Drepper <drepper@redhat.com>
34510 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
34512 2004-12-01 Jakub Jelinek <jakub@redhat.com>
34514 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
34515 normal_bracket label.
34517 2004-09-01 Jakub Jelinek <jakub@redhat.com>
34520 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
34521 to normal_bracket after fetching the next character.
34523 2007-01-22 Bruno Haible <bruno@clisp.org>
34525 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
34527 * lib/striconveh.c (iconv_carefully_1): New function.
34528 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
34530 (str_cd_iconveh): Update.
34531 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
34532 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
34533 * tests/test-striconveh.c (MAGIC): New macro.
34534 (new_offsets): New function.
34535 (main): Test call with and without offsets.
34537 2007-01-22 Bruno Haible <bruno@clisp.org>
34539 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
34540 * modules/sys_select (Makefile.am): Likewise.
34541 * modules/sys_socket (Makefile.am): Likewise.
34542 * modules/sys_time (Makefile.am): Likewise.
34544 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
34546 * modules/gettimeofday (License): Change from GPL to LGPL, since
34547 gettimeofday is a library function.
34549 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34551 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
34553 2007-01-21 Bruno Haible <bruno@clisp.org>
34555 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
34557 2007-01-21 Bruno Haible <bruno@clisp.org>
34559 * modules/striconveha: New file.
34560 * lib/striconveha.h: New file.
34561 * lib/striconveha.c: New file.
34562 * MODULES.html.sh (Internationalization functions): Add striconveha.
34563 * lib/striconv.c (str_iconv): Optimize the case of an empty input
34565 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
34567 2007-01-21 Bruno Haible <bruno@clisp.org>
34569 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
34570 * lib/striconveh.c (str_iconveh): Likewise.
34572 2007-01-21 Bruno Haible <bruno@clisp.org>
34574 * lib/striconveh.h (mem_iconveh): New declaration.
34575 * lib/striconveh.c (mem_iconveh): New function.
34576 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
34578 2007-01-21 Bruno Haible <bruno@clisp.org>
34580 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
34582 * lib/striconveh.h (mem_cd_iconveh): Change specification.
34583 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
34584 original result buffer.
34585 (str_cd_iconveh): Update.
34586 * tests/test-striconveh.c (main): Update.
34588 * lib/striconv.h (mem_cd_iconv): Change specification.
34589 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
34591 (str_cd_iconv): Update.
34592 * tests/test-striconv.c (main): Update.
34594 2007-01-21 Bruno Haible <bruno@clisp.org>
34596 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
34598 2007-01-20 Jim Meyering <jim@meyering.net>
34600 * lib/userspec.c (parse_with_separator): If a user or group string
34601 starts with "+", skip the corresponding name-to-ID look-up, since
34602 such a look-up must fail: user and group names may not include "+".
34604 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
34606 * lib/poll.c: Include sys/time.h and time.h unconditionally,
34607 since we now assume the sys_time module.
34608 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
34609 check for sys/time.h; no longer needed.
34610 * modules/poll (Depends-on): Depend on sys_time.
34612 2007-01-18 Bruno Haible <bruno@clisp.org>
34614 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
34615 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
34617 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
34620 * tests/test-gettimeofday.c: Include <time.h>.
34621 (dummy): Remove variable.
34623 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
34624 gl_HEADER_SYS_TIME_H.
34625 (gl_HEADER_SYS_TIME_H): New macro.
34627 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
34628 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
34629 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
34630 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
34631 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
34632 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
34633 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
34634 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
34635 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
34636 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
34637 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
34639 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
34640 last change; it caused a compilation error when cross-compiling to
34643 2007-01-18 Jim Meyering <jim@meyering.net>
34645 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
34646 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
34647 than the race-prone "test -d sys || mkdir sys".
34648 (configure.ac): Use AC_PROG_MKDIR_P.
34649 * modules/sys_select: Likewise.
34650 * modules/sys_socket: Likewise.
34651 * modules/sys_time: Likewise.
34653 2007-01-18 Eric Blake <ebb9@byu.net>
34655 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
34656 replace gettimeofday.
34657 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
34658 name, to avoid infinite recursion.
34660 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
34662 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
34664 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
34665 assume timespec.h defines struct timeval.
34666 * lib/settime.c: Likewise.
34667 * lib/utimens.c: Likewise.
34668 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
34669 since we now assume the gettimeofday module.
34670 * lib/tempname.c (__gen_tempname): Likewise.
34671 * lib/gettimeofday.h: Remove.
34672 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
34673 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
34674 Include <time.h>, for 'time()'.
34675 (localtime_buffer_addr): Also use this workaround if
34676 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
34677 to simplify the uses. All uses changed.
34678 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
34679 that #undef is inside {}, and 'const' follows type name consistently.
34680 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
34681 (gettimeofday): Do not use the maximum possible value for
34682 tv->tv_usec, since that might break usages other than ls.c.
34683 Instead, we'll leave ls.c alone. This undoes today's patch
34684 by Bruno. Add a compile-time warning for 1s-clock resolution;
34685 we've never observed the problem but might as well keep the
34687 * lib/nanosleep.c: Include timespec.h first, for interface check.
34688 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
34689 now assume the sys_time module.
34690 * lib/tempname.c: Likewise.
34691 * lib/timespec.h: Likewise.
34692 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
34694 * lib/strftime.c: Likewise.
34695 * lib/timespec.h: Likewise.
34696 * lib/posixtm.c: Include posixtm.h first, for interface check.
34697 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
34698 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
34699 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
34700 * lib/sys_time_.h: New file.
34701 * lib/timespec.h (struct timespec): Use long int, not long.
34702 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
34703 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
34704 Remove obsolescent call to AC_HEADER_TIME.
34705 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
34706 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
34707 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
34708 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
34710 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
34711 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
34712 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
34713 into the sys_time module. Check for gettimeofday just once.
34714 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
34715 for gettimeofday signature to just check the signature. Merely
34716 compile it, since linking doesn't test signature. Improve test for
34717 whether gettimeofday.o is actually needed.
34718 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
34719 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
34720 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
34721 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
34722 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
34723 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
34724 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
34725 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
34726 than worrying about sys/time.h.
34727 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34728 Don't bother worrying about TIME_WITH_SYS_TIME.
34729 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
34730 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
34731 * m4/sys_time_h.m4: New file.
34732 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
34733 Don't include sys/time.h. Return from main rather than exiting.
34734 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
34736 * modules/gethrxtime (Depends-on): Add sys_time.
34737 * modules/gettime (Depends-on): Likewise.
34738 * modules/gettimeofday (Depends-on): Likewise.
34739 * modules/nanosleep (Depends-on): Likewise.
34740 * modules/settime (Depends-on): Likewise.
34741 * modules/tempname (Depends-on): Likewise.
34742 * modules/utimens (Depends-on): Likewise.
34743 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
34744 (Include:) Change back to <sys/time.h>.
34745 (Maintainer:) Add self.
34746 * modules/sys_time: New file.
34747 * modules/tempname (Depends-on): Add gettimeofday.
34748 * tests/test-gettimeofday.c: Include <sys/time.h>
34749 rather than gettimeofday.h.
34751 2007-01-17 Bruno Haible <bruno@clisp.org>
34753 * gnulib-tool (func_get_license): Revert last patch. Instead, let
34754 the license default to GPL.
34755 (func_create_testdir): Don't complain if a module is LGPL and its
34756 tests module depends on GPLed modules.
34758 2007-01-17 Bruno Haible <bruno@clisp.org>
34760 * lib/gettimeofday.c (gettimeofday): Add code for the case
34761 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
34762 maximum possible value for tv->tv_usec, rather than the minimum one.
34764 2005-10-08 Martin Lambers <marlam@marlam.de>
34765 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
34766 2007-01-16 Bruno Haible <bruno@clisp.org>
34768 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
34769 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
34770 gl_FUNC_GETTIMEOFDAY.
34771 (Include): Add gettimeofday.h.
34772 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
34773 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
34774 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
34775 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
34776 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
34777 * lib/gettimeofday.h: New file.
34778 * lib/gettimeofday.c: Include <sys/timeb.h>.
34779 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
34780 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
34781 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
34782 fall back on time().
34784 * tests/test-gettimeofday.c: New file.
34785 * modules/gettimeofday-tests: New file.
34787 2007-01-16 Eric Blake <ebb9@byu.net>
34789 * modules/fnmatch (Depends-on): Depend on wchar.
34790 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
34791 * m4/fnmatch.m4: Likewise.
34792 * modules/mbchar (Makefile.am): Assume <wchar.h>.
34793 * m4/mbchar.m4: Likewise.
34794 * modules/mbswidth (Depends-on): Depend on wchar.
34795 * lib/mbswidth.c: Assume <wchar.h>.
34796 * m4/mbswidth.m4: Likewise.
34797 * modules/quotearg (Depends-on): Depend on wchar.
34798 * lib/quotearg.c: Assume <wchar.h>.
34799 * m4/quotearg.m4: Likewise.
34800 * modules/regex (Depends-on): Depend on wchar.
34801 * lib/regex_internal.h: Assume <wchar.h>.
34802 * m4/regex.m4: Likewise.
34803 * modules/stdint (Depends-on): Depend on wchar.
34804 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
34805 * m4/stdint.m4: Likewise.
34806 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
34807 * modules/strftime (Depends-on): Depend on wchar.
34808 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
34809 * modules/strtol (Depends-on): Depend on wchar.
34810 * lib/strtol.c: Assume <wchar.h>.
34811 * modules/wcwidth (Depends-on): Depend on wchar.
34812 * lib/wcwidth.h: Assume <wchar.h>.
34813 * m4/wcwidth.m4: Likewise.
34815 2007-01-16 Bruno Haible <bruno@clisp.org>
34817 * modules/csharpexec-script: New, created from...
34818 * modules/csharpexec: ... this.
34820 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
34822 * modules/javaexec-script: New, created from...
34823 * modules/javaexec: ... this.
34825 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
34827 * modules/poll (Dependencies): Add sys_select.
34829 2007-01-15 Jim Meyering <jim@meyering.net>
34831 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
34832 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
34833 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
34834 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
34836 2007-01-15 Bruno Haible <bruno@clisp.org>
34838 * modules/striconveh: New file.
34839 * lib/striconveh.h: New file.
34840 * lib/striconveh.c: New file.
34841 * MODULES.html.sh (Internationalization functions): Add striconveh.
34843 * modules/striconveh-tests: New file.
34844 * tests/test-striconveh.c: New file.
34846 2007-01-15 Bruno Haible <bruno@clisp.org>
34848 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
34849 not from GNU libiconv or GNU libc.
34851 2007-01-15 Bruno Haible <bruno@clisp.org>
34853 * doc/gnulib-intro.texi (Copyright): Explain the different license
34854 terms for module descriptions, autoconf macros, tests, documentation.
34856 2007-01-14 Bruno Haible <bruno@clisp.org>
34858 * modules/striconv-tests: New file.
34859 * tests/test-striconv.c: New file.
34861 2007-01-14 Bruno Haible <bruno@clisp.org>
34863 * modules/iconv-tests: New file.
34864 * tests/test-iconv.c: New file.
34866 2007-01-14 Bruno Haible <bruno@clisp.org>
34868 * gnulib-tool (func_get_license): For test modules, use the license of
34871 2007-01-14 Bruno Haible <bruno@clisp.org>
34873 * modules/iconv (Include): Clarify that <iconv.h> can only be included
34874 if iconv is found to exist.
34876 2007-01-14 Bruno Haible <bruno@clisp.org>
34878 * modules/c-ctype-tests: New file.
34879 * tests/test-c-ctype.c: New file.
34881 2007-01-14 Bruno Haible <bruno@clisp.org>
34883 * modules/binary-io-tests: New file.
34884 * tests/test-binary-io.sh: New file.
34885 * tests/test-binary-io.c: New file.
34887 2007-01-14 Bruno Haible <bruno@clisp.org>
34889 * modules/array-oset-tests: New file.
34890 * tests/test-array_oset.c: New file.
34892 2007-01-14 Bruno Haible <bruno@clisp.org>
34894 * modules/array-list-tests: New file.
34895 * tests/test-array_list.c: New file.
34897 2007-01-14 Bruno Haible <bruno@clisp.org>
34899 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
34901 Reported by Simon Josefsson in
34902 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
34904 2007-01-14 Bruno Haible <bruno@clisp.org>
34906 * modules/allocsa-tests: New file.
34907 * tests/test-allocsa.c: New file.
34909 2007-01-14 Bruno Haible <bruno@clisp.org>
34911 * modules/fchdir (Depends-on): Add absolute-header.
34912 * modules/unistd (Depends-on): Likewise.
34914 2006-12-30 Bruno Haible <bruno@clisp.org>
34916 * modules/fchdir: New file.
34917 * modules/unistd (Files): Add lib/unistd_.h.
34918 (Makefile.am): Generate unistd.h from unistd_.h.
34919 * lib/fchdir.c: New file.
34920 * lib/dirent_.h: New file.
34921 * lib/unistd_.h: New file.
34922 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
34923 * m4/fchdir.m4: New file.
34924 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
34925 (gl_HEADER_UNISTD): Invoke it.
34926 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
34928 * lib/backupfile.c (opendir, closedir): Undefine.
34929 * lib/chown.c (open, close): Undefine.
34930 * lib/clean-temp.c (open, close): Undefine.
34931 * lib/copy-file.c (open, close): Undefine.
34932 * lib/execute.c (open, close): Undefine.
34933 * lib/fsusage.c (open, close): Undefine.
34934 * lib/gc-gnulib.c (open, close): Undefine.
34935 * lib/getcwd.c (opendir, closedir): Undefine.
34936 * lib/glob.c (opendir, closedir): Undefine.
34937 * lib/javacomp.c (open, close): Undefine.
34938 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
34939 * lib/openat-proc.c (open, close): Undefine.
34940 * lib/pagealign_alloc.c (open, close): Undefine.
34941 * lib/pipe.c (open, close): Undefine.
34942 * lib/progreloc.c (open, close): Undefine.
34943 * lib/savedir.c (opendir, closedir): Undefine.
34944 * lib/utime.c (open, close): Undefine.
34945 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
34947 2007-01-10 Bruno Haible <bruno@clisp.org>
34949 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
34951 2007-01-12 Eric Blake <ebb9@byu.net>
34953 Provide a robust <wchar.h>. Further simplifications are now
34954 possible in other modules, but not included here.
34955 * modules/wchar: New module.
34956 * m4/wchar.m4: New file.
34957 * lib/wchar_.h: Likewise.
34958 * modules/mbchar (Depends-on): Depend on wchar, as the first use
34960 * MODULES.html.sh (Extended multibyte and wide character utilities):
34963 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
34965 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
34966 to a reasonable default for memory allocation.
34967 (xreadlink): Don't allocate a huge buffer, to work around a buggy
34968 file system that reports garbage st_size values for symlinks.
34969 Problem reported by Liyang Hu.
34971 2007-01-11 Simon Josefsson <simon@josefsson.org>
34973 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
34974 Emacs .#* auto-save files).
34976 2007-01-11 Bruno Haible <bruno@clisp.org>
34978 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
34981 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
34983 Use @...@ consistently in lib/wctype_.h.
34984 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
34985 on it being set to 1 or 0.
34986 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
34987 go back to AC_SUBSTing it.
34988 * modules/wctype (Makefile.am): Undo previous change.
34990 2007-01-10 Eric Blake <ebb9@byu.net>
34992 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
34993 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
34994 * modules/wctype (Makefile.am): Likewise.
34995 Reported by Chris McGuire.
34997 2007-01-10 Jim Meyering <jim@meyering.net>
34999 fts.c: a small readability/maintainability improvement
35000 * lib/fts.c (fts_read): Make this code slightly more readable and
35001 maintainable by hoisting the "sp->fts_cur = p" assignments to
35002 immediately follow the statements that set P. Derived from
35003 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
35005 2007-01-10 Eric Blake <ebb9@byu.net>
35007 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
35008 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
35009 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35010 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
35011 Reported by Chris McGuire.
35013 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35015 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
35018 2007-01-09 Bruno Haible <bruno@clisp.org>
35020 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
35021 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
35023 (func_module): Use them.
35025 2007-01-09 Bruno Haible <bruno@clisp.org>
35027 * modules/unistr/base: New file.
35028 * lib/unistr.h: New file.
35030 * modules/unistr/u8-to-u16: New file.
35031 * lib/unistr/u8-to-u16.c: New file.
35033 * modules/unistr/u8-to-u32: New file.
35034 * lib/unistr/u8-to-u32.c: New file.
35036 * modules/unistr/u16-to-u8: New file.
35037 * lib/unistr/u16-to-u8.c: New file.
35039 * modules/unistr/u16-to-u32: New file.
35040 * lib/unistr/u16-to-u32.c: New file.
35042 * modules/unistr/u32-to-u8: New file.
35043 * lib/unistr/u32-to-u8.c: New file.
35045 * modules/unistr/u32-to-u16: New file.
35046 * lib/unistr/u32-to-u16.c: New file.
35048 * modules/unistr/u8-check: New file.
35049 * modules/unistr/u16-check: New file.
35050 * modules/unistr/u32-check: New file.
35051 * lib/unistr/u8-check.c: New file.
35052 * lib/unistr/u16-check.c: New file.
35053 * lib/unistr/u32-check.c: New file.
35055 * modules/unistr/u8-chr: New file.
35056 * modules/unistr/u16-chr: New file.
35057 * modules/unistr/u32-chr: New file.
35058 * lib/unistr/u8-chr.c: New file.
35059 * lib/unistr/u16-chr.c: New file.
35060 * lib/unistr/u32-chr.c: New file.
35062 * modules/unistr/u8-cmp: New file.
35063 * modules/unistr/u16-cmp: New file.
35064 * modules/unistr/u32-cmp: New file.
35065 * lib/unistr/u8-cmp.c: New file.
35066 * lib/unistr/u16-cmp.c: New file.
35067 * lib/unistr/u32-cmp.c: New file.
35069 * modules/unistr/u8-cpy: New file.
35070 * modules/unistr/u16-cpy: New file.
35071 * modules/unistr/u32-cpy: New file.
35072 * lib/unistr/u8-cpy.c: New file.
35073 * lib/unistr/u16-cpy.c: New file.
35074 * lib/unistr/u32-cpy.c: New file.
35075 * lib/unistr/u-cpy.h: New file.
35077 * modules/unistr/u8-cpy-alloc: New file.
35078 * modules/unistr/u16-cpy-alloc: New file.
35079 * modules/unistr/u32-cpy-alloc: New file.
35080 * lib/unistr/u8-cpy-alloc.c: New file.
35081 * lib/unistr/u16-cpy-alloc.c: New file.
35082 * lib/unistr/u32-cpy-alloc.c: New file.
35083 * lib/unistr/u-cpy-alloc.h: New file.
35085 * modules/unistr/u8-endswith: New file.
35086 * modules/unistr/u16-endswith: New file.
35087 * modules/unistr/u32-endswith: New file.
35088 * lib/unistr/u8-endswith.c: New file.
35089 * lib/unistr/u16-endswith.c: New file.
35090 * lib/unistr/u32-endswith.c: New file.
35091 * lib/unistr/u-endswith.h: New file.
35093 * modules/unistr/u8-mblen: New file.
35094 * modules/unistr/u16-mblen: New file.
35095 * modules/unistr/u32-mblen: New file.
35096 * lib/unistr/u8-mblen.c: New file.
35097 * lib/unistr/u16-mblen.c: New file.
35098 * lib/unistr/u32-mblen.c: New file.
35100 * modules/unistr/u8-mbtouc: New file.
35101 * modules/unistr/u16-mbtouc: New file.
35102 * modules/unistr/u32-mbtouc: New file.
35103 * lib/unistr/u8-mbtouc.c: New file.
35104 * lib/unistr/u16-mbtouc.c: New file.
35105 * lib/unistr/u32-mbtouc.c: New file.
35107 * modules/unistr/u8-mbtouc-safe: New file.
35108 * modules/unistr/u16-mbtouc-safe: New file.
35109 * modules/unistr/u32-mbtouc-safe: New file.
35110 * lib/unistr/u8-mbtouc-safe.c: New file.
35111 * lib/unistr/u16-mbtouc-safe.c: New file.
35112 * lib/unistr/u32-mbtouc-safe.c: New file.
35114 * modules/unistr/u8-move: New file.
35115 * modules/unistr/u16-move: New file.
35116 * modules/unistr/u32-move: New file.
35117 * lib/unistr/u8-move.c: New file.
35118 * lib/unistr/u16-move.c: New file.
35119 * lib/unistr/u32-move.c: New file.
35120 * lib/unistr/u-move.h: New file.
35122 * modules/unistr/u8-next: New file.
35123 * modules/unistr/u16-next: New file.
35124 * modules/unistr/u32-next: New file.
35125 * lib/unistr/u8-next.c: New file.
35126 * lib/unistr/u16-next.c: New file.
35127 * lib/unistr/u32-next.c: New file.
35129 * modules/unistr/u8-prev: New file.
35130 * modules/unistr/u16-prev: New file.
35131 * modules/unistr/u32-prev: New file.
35132 * lib/unistr/u8-prev.c: New file.
35133 * lib/unistr/u16-prev.c: New file.
35134 * lib/unistr/u32-prev.c: New file.
35136 * modules/unistr/u8-set: New file.
35137 * modules/unistr/u16-set: New file.
35138 * modules/unistr/u32-set: New file.
35139 * lib/unistr/u8-set.c: New file.
35140 * lib/unistr/u16-set.c: New file.
35141 * lib/unistr/u32-set.c: New file.
35142 * lib/unistr/u-set.h: New file.
35144 * modules/unistr/u8-startswith: New file.
35145 * modules/unistr/u16-startswith: New file.
35146 * modules/unistr/u32-startswith: New file.
35147 * lib/unistr/u8-startswith.c: New file.
35148 * lib/unistr/u16-startswith.c: New file.
35149 * lib/unistr/u32-startswith.c: New file.
35150 * lib/unistr/u-startswith.h: New file.
35152 * modules/unistr/u8-stpcpy: New file.
35153 * modules/unistr/u16-stpcpy: New file.
35154 * modules/unistr/u32-stpcpy: New file.
35155 * lib/unistr/u8-stpcpy.c: New file.
35156 * lib/unistr/u16-stpcpy.c: New file.
35157 * lib/unistr/u32-stpcpy.c: New file.
35158 * lib/unistr/u-stpcpy.h: New file.
35160 * modules/unistr/u8-stpncpy: New file.
35161 * modules/unistr/u16-stpncpy: New file.
35162 * modules/unistr/u32-stpncpy: New file.
35163 * lib/unistr/u8-stpncpy.c: New file.
35164 * lib/unistr/u16-stpncpy.c: New file.
35165 * lib/unistr/u32-stpncpy.c: New file.
35166 * lib/unistr/u-stpncpy.h: New file.
35168 * modules/unistr/u8-strcat: New file.
35169 * modules/unistr/u16-strcat: New file.
35170 * modules/unistr/u32-strcat: New file.
35171 * lib/unistr/u8-strcat.c: New file.
35172 * lib/unistr/u16-strcat.c: New file.
35173 * lib/unistr/u32-strcat.c: New file.
35174 * lib/unistr/u-strcat.h: New file.
35176 * modules/unistr/u8-strchr: New file.
35177 * modules/unistr/u16-strchr: New file.
35178 * modules/unistr/u32-strchr: New file.
35179 * lib/unistr/u8-strchr.c: New file.
35180 * lib/unistr/u16-strchr.c: New file.
35181 * lib/unistr/u32-strchr.c: New file.
35183 * modules/unistr/u8-strcmp: New file.
35184 * modules/unistr/u16-strcmp: New file.
35185 * modules/unistr/u32-strcmp: New file.
35186 * lib/unistr/u8-strcmp.c: New file.
35187 * lib/unistr/u16-strcmp.c: New file.
35188 * lib/unistr/u32-strcmp.c: New file.
35190 * modules/unistr/u8-strcpy: New file.
35191 * modules/unistr/u16-strcpy: New file.
35192 * modules/unistr/u32-strcpy: New file.
35193 * lib/unistr/u8-strcpy.c: New file.
35194 * lib/unistr/u16-strcpy.c: New file.
35195 * lib/unistr/u32-strcpy.c: New file.
35196 * lib/unistr/u-strcpy.h: New file.
35198 * modules/unistr/u8-strcspn: New file.
35199 * modules/unistr/u16-strcspn: New file.
35200 * modules/unistr/u32-strcspn: New file.
35201 * lib/unistr/u8-strcspn.c: New file.
35202 * lib/unistr/u16-strcspn.c: New file.
35203 * lib/unistr/u32-strcspn.c: New file.
35204 * lib/unistr/u-strcspn.h: New file.
35206 * modules/unistr/u8-strdup: New file.
35207 * modules/unistr/u16-strdup: New file.
35208 * modules/unistr/u32-strdup: New file.
35209 * lib/unistr/u8-strdup.c: New file.
35210 * lib/unistr/u16-strdup.c: New file.
35211 * lib/unistr/u32-strdup.c: New file.
35212 * lib/unistr/u-strdup.h: New file.
35214 * modules/unistr/u8-strlen: New file.
35215 * modules/unistr/u16-strlen: New file.
35216 * modules/unistr/u32-strlen: New file.
35217 * lib/unistr/u8-strlen.c: New file.
35218 * lib/unistr/u16-strlen.c: New file.
35219 * lib/unistr/u32-strlen.c: New file.
35220 * lib/unistr/u-strlen.h: New file.
35222 * modules/unistr/u8-strmblen: New file.
35223 * modules/unistr/u16-strmblen: New file.
35224 * modules/unistr/u32-strmblen: New file.
35225 * lib/unistr/u8-strmblen.c: New file.
35226 * lib/unistr/u16-strmblen.c: New file.
35227 * lib/unistr/u32-strmblen.c: New file.
35229 * modules/unistr/u8-strmbtouc: New file.
35230 * modules/unistr/u16-strmbtouc: New file.
35231 * modules/unistr/u32-strmbtouc: New file.
35232 * lib/unistr/u8-strmbtouc.c: New file.
35233 * lib/unistr/u16-strmbtouc.c: New file.
35234 * lib/unistr/u32-strmbtouc.c: New file.
35236 * modules/unistr/u8-strncat: New file.
35237 * modules/unistr/u16-strncat: New file.
35238 * modules/unistr/u32-strncat: New file.
35239 * lib/unistr/u8-strncat.c: New file.
35240 * lib/unistr/u16-strncat.c: New file.
35241 * lib/unistr/u32-strncat.c: New file.
35242 * lib/unistr/u-strncat.h: New file.
35244 * modules/unistr/u8-strncmp: New file.
35245 * modules/unistr/u16-strncmp: New file.
35246 * modules/unistr/u32-strncmp: New file.
35247 * lib/unistr/u8-strncmp.c: New file.
35248 * lib/unistr/u16-strncmp.c: New file.
35249 * lib/unistr/u32-strncmp.c: New file.
35251 * modules/unistr/u8-strncpy: New file.
35252 * modules/unistr/u16-strncpy: New file.
35253 * modules/unistr/u32-strncpy: New file.
35254 * lib/unistr/u8-strncpy.c: New file.
35255 * lib/unistr/u16-strncpy.c: New file.
35256 * lib/unistr/u32-strncpy.c: New file.
35257 * lib/unistr/u-strncpy.h: New file.
35259 * modules/unistr/u8-strnlen: New file.
35260 * modules/unistr/u16-strnlen: New file.
35261 * modules/unistr/u32-strnlen: New file.
35262 * lib/unistr/u8-strnlen.c: New file.
35263 * lib/unistr/u16-strnlen.c: New file.
35264 * lib/unistr/u32-strnlen.c: New file.
35265 * lib/unistr/u-strnlen.h: New file.
35267 * modules/unistr/u8-strpbrk: New file.
35268 * modules/unistr/u16-strpbrk: New file.
35269 * modules/unistr/u32-strpbrk: New file.
35270 * lib/unistr/u8-strpbrk.c: New file.
35271 * lib/unistr/u16-strpbrk.c: New file.
35272 * lib/unistr/u32-strpbrk.c: New file.
35273 * lib/unistr/u-strpbrk.h: New file.
35275 * modules/unistr/u8-strrchr: New file.
35276 * modules/unistr/u16-strrchr: New file.
35277 * modules/unistr/u32-strrchr: New file.
35278 * lib/unistr/u8-strrchr.c: New file.
35279 * lib/unistr/u16-strrchr.c: New file.
35280 * lib/unistr/u32-strrchr.c: New file.
35282 * modules/unistr/u8-strspn: New file.
35283 * modules/unistr/u16-strspn: New file.
35284 * modules/unistr/u32-strspn: New file.
35285 * lib/unistr/u8-strspn.c: New file.
35286 * lib/unistr/u16-strspn.c: New file.
35287 * lib/unistr/u32-strspn.c: New file.
35288 * lib/unistr/u-strspn.h: New file.
35290 * modules/unistr/u8-strstr: New file.
35291 * modules/unistr/u16-strstr: New file.
35292 * modules/unistr/u32-strstr: New file.
35293 * lib/unistr/u8-strstr.c: New file.
35294 * lib/unistr/u16-strstr.c: New file.
35295 * lib/unistr/u32-strstr.c: New file.
35296 * lib/unistr/u-strstr.h: New file.
35298 * modules/unistr/u8-strtok: New file.
35299 * modules/unistr/u16-strtok: New file.
35300 * modules/unistr/u32-strtok: New file.
35301 * lib/unistr/u8-strtok.c: New file.
35302 * lib/unistr/u16-strtok.c: New file.
35303 * lib/unistr/u32-strtok.c: New file.
35304 * lib/unistr/u-strtok.h: New file.
35306 * modules/unistr/u8-uctomb: New file.
35307 * modules/unistr/u16-uctomb: New file.
35308 * modules/unistr/u32-uctomb: New file.
35309 * lib/unistr/u8-uctomb.c: New file.
35310 * lib/unistr/u16-uctomb.c: New file.
35311 * lib/unistr/u32-uctomb.c: New file.
35313 * MODULES.html.sh (Unicode string functions): Add the new modules.
35315 2007-01-08 Bruno Haible <bruno@clisp.org>
35317 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
35318 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
35321 2007-01-08 Karl Berry <karl@gnu.org>
35323 * doc/error.texi: mention that main() fns must set program_name
35324 when progname is used.
35326 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
35328 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
35329 WCTYPE_H is empty, for the benefit of builds from non-distclean
35330 directories. Problem reported by Eric Blake in
35331 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
35333 2007-01-08 Bruno Haible <bruno@clisp.org>
35335 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
35336 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
35337 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
35338 PROVIDE_CANONICALIZE_FILENAME_MODE.
35339 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
35341 2007-01-08 Bruno Haible <bruno@clisp.org>
35343 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
35344 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
35345 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
35346 * lib/fts.c: Likewise.
35347 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
35349 2006-12-25 Bruno Haible <bruno@clisp.org>
35351 * modules/utf8-ucs4-safe: New file.
35352 * lib/utf8-ucs4-safe.h: New file.
35353 * lib/unistr/utf8-ucs4-safe.c: New file.
35355 * modules/utf16-ucs4-safe: New file.
35356 * lib/utf16-ucs4-safe.h: New file.
35357 * lib/unistr/utf16-ucs4-safe.c: New file.
35359 * MODULES.html.sh (Unicode string functions): Add the new modules.
35361 2007-01-08 Bruno Haible <bruno@clisp.org>
35363 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
35364 (Depends-on): Add unitypes.
35365 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
35366 (u8_mbtouc_aux): Move out to separate file.
35367 (u8_mbtouc): Use ucs4_t, uint8_t types.
35368 * lib/unistr/utf8-ucs4.c: New file.
35370 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
35371 (Depends-on): Add unitypes.
35372 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
35373 (u16_mbtouc_aux): Move out to separate file.
35374 (u16_mbtouc): Use ucs4_t, uint16_t types.
35375 * lib/unistr/utf16-ucs4.c: New file.
35377 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
35378 (Depends-on): Add unitypes.
35379 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
35380 (u8_uctomb_aux): Move out to separate file.
35381 (u8_uctomb): Use ucs4_t, uint8_t types.
35382 * lib/unistr/ucs4-utf8.c: New file.
35384 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
35385 (Depends-on): Add unitypes.
35386 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
35387 (u16_uctomb_aux): Move out to separate file.
35388 (u16_uctomb): Use ucs4_t, uint16_t types.
35389 * lib/unistr/ucs4-utf16.c: New file.
35391 2006-12-25 Bruno Haible <bruno@clisp.org>
35393 * modules/unitypes: New file.
35394 * lib/unitypes.h: New file.
35395 * MODULES.html.sh (func_all_modules): New section "Unicode string
35396 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
35397 this section. Add unitypes.
35399 2007-01-08 Bruno Haible <bruno@clisp.org>
35401 Avoid variable names that conflict with those from libtool.
35402 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
35403 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
35404 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
35405 library_names_spec to acl_library_names_spec, hardcode_* to
35407 Reported by Ralf Wildenhues.
35409 2007-01-08 Bruno Haible <bruno@clisp.org>
35411 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
35413 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
35415 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
35416 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
35418 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
35420 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
35421 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
35422 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
35423 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
35425 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
35427 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
35428 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
35429 GC_USE_<algorithm>.
35430 * lib/gc-libgcrypt.c: Likewise.
35431 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
35432 * modules/gc-arctwo (configure.ac): Likewise.
35433 * modules/gc-des (configure.ac): Likewise.
35434 * modules/gc-hmac-md5 (configure.ac): Likewise.
35435 * modules/gc-hmac-sha1 (configure.ac): Likewise.
35436 * modules/gc-md2 (configure.ac): Likewise.
35437 * modules/gc-md4 (configure.ac): Likewise.
35438 * modules/gc-md5 (configure.ac): Likewise.
35439 * modules/gc-random (configure.ac): Likewise.
35440 * modules/gc-rijndael (configure.ac): Likewise.
35441 * modules/gc-sha1 (configure.ac): Likewise.
35443 2007-01-08 Bruno Haible <bruno@clisp.org>
35445 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
35447 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
35449 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
35451 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
35452 * modules/fcntl-safer (configure.ac): Likewise.
35453 * modules/fopen-safer (configure.ac): Likewise.
35454 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
35455 GNULIB_FWRITEERROR macro definition.
35457 2007-01-08 Bruno Haible <bruno@clisp.org>
35459 * m4/gnulib-common.m4: New file.
35460 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
35461 (func_get_filelist): Add m4/gnulib-common.m4.
35463 2007-01-08 Bruno Haible <bruno@clisp.org>
35465 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
35468 2007-01-08 Jim Meyering <jim@meyering.net>
35470 Use a more robust test for a "can't happen" condition.
35471 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
35472 narrowed the st_size value. Presuming the "can't happen" condition
35473 is true, that narrowing could conceivably convert an invalid st_size
35474 value into a valid one. Instead, use a change based on Matthew
35475 Woehlke's original patch.
35477 Slight readability improvement: use an assert-like macro
35478 in place of literal "abort ()" uses.
35479 * lib/fts.c (fts_assert): Define.
35480 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
35481 Use this macro instead of a bare 'abort'.
35483 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
35485 Don't worry about using IRIX 5.3's wctype.h broken definitions;
35486 simply work around them.
35487 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
35488 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
35489 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
35491 Don't bother to define as macros, since the standard doesn't require it.
35492 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
35493 longer worry about IRIX 5.3.
35494 (HAVE_WCTYPE_CTMP_BUG): Remove.
35496 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
35498 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
35499 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
35500 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
35501 Problems reported by Georg Schwarz for IRIX 5.3.
35503 * gnulib-tool (autoconf_minversion): Take the maximum version number
35504 found, not the minimum. Problem reported by James Youngman.
35506 2007-01-03 Karl Berry <karl@gnu.org>
35508 * doc/error.texi: new file, explaining interaction with progname.
35509 * doc/gnulib.texi: include it. Update copyright.
35511 2007-01-03 Simon Josefsson <simon@josefsson.org>
35513 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
35514 AC_CANONICAL_HOST, to improve autobuild outputs.
35516 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
35517 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35519 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
35520 sockets, server sockets, and other file descriptors. Count errors
35521 to compute the return value. Reorder the code a bit to be easier
35522 to follow. Don't set event bits that were not requested (except
35523 POLLERR and POLLHUP).
35525 2007-01-01 Bruno Haible <bruno@clisp.org>
35527 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
35529 2007-01-03 Jim Meyering <jim@meyering.net>
35531 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
35533 2007-01-02 Bruno Haible <bruno@clisp.org>
35535 * modules/settime (Include): Require timespec.h.
35536 * modules/nanosleep (Include): Likewise.
35538 2007-01-01 Bruno Haible <bruno@clisp.org>
35540 * gnulib-tool (func_emit_copyright_notice): Bump year.
35541 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
35543 2007-01-01 Bruno Haible <bruno@clisp.org>
35545 Improve support for OpenBSD.
35546 * build-aux/config.rpath (libname_spec): Export.
35547 (library_names_spec): New variable. Export.
35548 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
35549 library_names_spec from the config.rpath output. Locate shared library
35550 through the name pattern in library_names_spec.
35552 2007-01-01 Eric Blake <ebb9@byu.net>
35554 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
35556 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
35558 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
35559 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
35560 assume the C locale, and avoid an "eval" that could cause trouble.
35561 Problem with SORT reported by Bob Proulx.
35563 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
35564 Define. Trivial patch from Henning Nielsen Lund, originally
35565 sent to bug-grep@gnu.org today.
35567 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
35569 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
35570 struct stat. Problem reported by Henning Nielsen Lund.
35571 * lib/acl.c: Include acl.h first, to check interface. Don't
35572 bother to include sys/types.h and sys/stat.h again.
35574 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
35576 Import the following change from libc; problem reported by
35579 2005-10-13 Ulrich Drepper <drepper@redhat.com>
35582 * lib/argp.h: Remove __NTH for __argp_usage inline function.
35584 2006-12-28 Jim Meyering <jim@meyering.net>
35586 * build-aux/announce-gen: Do not assume that the package
35587 builds any of tar.gz, tar.bz2, and .xdelta files.
35588 Suggestion from Simon Josefsson.
35590 2006-12-28 Simon Josefsson <simon@josefsson.org>
35592 * modules/announce-gen: New file.
35594 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
35596 * lib/mbchar.h: Just include <wctype.h>; the wctype module
35597 handles its gotchas now.
35598 * lib/mbswidth.c: Likewise.
35599 * lib/wcwidth.h: Likewise.
35600 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
35601 and iswcntrl; the wctype module does this stuff now.
35602 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
35603 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
35604 * modules/mbchar (Depends-on): Add wctype.
35605 * modules/mbswidth (Depends-on): Likewise.
35606 * modules/wcwidth (Depends-on): Likewise.
35608 2006-12-27 Eric Blake <ebb9@byu.net>
35610 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
35611 module uses more than what <wctype.h> is required to provide.
35613 2006-12-26 Eric Blake <ebb9@byu.net>
35615 * gnulib-tool (sed_extract_prog): Avoid space-tab.
35617 2006-12-26 Eric Blake <ebb9@byu.net>
35619 * modules/absolute-header: New module.
35620 * modules/fcntl (Depends-on): Depend on it.
35621 * modules/inttypes (Depends-on): Likewise.
35622 * modules/stdint (Depends-on): Likewise.
35623 * modules/sys_stat (Depends-on): Likewise.
35624 * modules/wctype (Depends-on): Likewise.
35625 * MODULES.html.sh (Support for building libraries and
35626 executables): Document it.
35628 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
35630 * gnulib-tool (SED): Remove, undoing previous change.
35631 The problem was that it broke coreutils on Solaris, because
35632 "sed --posix" leaked into a makefile.
35633 (sed): New alias, if 'alias' and GNU sed.
35635 2006-12-24 Jim Meyering <jim@meyering.net>
35637 Work around an fchownat bug in glibc-2.4:
35638 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
35639 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
35640 in spite of the -P option.
35641 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
35643 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
35644 * modules/openat (Files): Add lib/fchownat.c.
35645 * lib/openat.c (fchownat): Don't define here. Move to...
35646 * lib/fchownat.c: ...this new file.
35648 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
35650 Fix bug reported by Bruno Haible in
35651 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
35652 where quotearg.c didn't compile on Mac OS X 10.2 because it
35653 lacks <wchar.h> and wint_t.
35654 * lib/wctype_.h (__wctype_wint_t): New type.
35655 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
35656 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
35657 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
35658 Arg is now of type __wctype_wint_t, not wint_t.
35659 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
35660 substitute HAVE_WINT_T.
35661 * modules/wctype (Files): Add m4/wint_t.m4.
35662 (wctype.h): Substitute HAVE_WINT_T.
35664 2006-12-23 Bruno Haible <bruno@clisp.org>
35666 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
35668 2006-12-23 Bruno Haible <bruno@clisp.org>
35670 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
35672 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
35675 2006-12-22 Bruno Haible <bruno@clisp.org>
35677 * lib/copy-file.c: Include acl.h.
35678 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
35679 Close the file descriptors only after being done with copy_acl.
35680 * modules/copy-file (Depends-on): Add acl.
35682 2006-12-22 Bruno Haible <bruno@clisp.org>
35684 * gnulib-tool (SED): New variable.
35685 Use $SED instead of sed everywhere.
35687 2006-12-22 Bruno Haible <bruno@clisp.org>
35689 * modules/no-c++: New file.
35690 * m4/no-c++.m4: New file.
35691 * MODULES.html.sh (Support for building libraries and executables):
35694 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
35696 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
35697 Include <limits.h>, and use its INT_MAX to rewrite the
35698 j loop so that it does not overflow 'int'. Problem reported by
35700 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
35701 Play it safe by shifting left by 1 rather than multiplying by 2,
35702 as GCC is less likely to optimize this away when the value
35703 is signed (when it assumes overflow leads to undefined behavior).
35704 Also, don't assume time_t uses two's complement.
35706 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
35708 * MODULES.html.sh: New module wctype.
35709 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
35710 * lib/fnmatch.c: Don't bother to include <wchar.h> before
35711 <wctype.h>, since the new wctype module should fix this.
35712 * lib/quotearg.c: Include <wctype.h> unconditionally, since
35713 the wctype module should arrange for it.
35714 * lib/regex_internal.h: Likewise.
35715 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
35716 since the wctype module should handle this now.
35717 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
35718 * modules/fnmatch (Depends-on): Add wctype.
35719 * modules/quotearg (Depends-on): Likewise.
35720 * modules/regex (Depends-on): Likewise.
35722 2006-12-19 Bruno Haible <bruno@clisp.org>
35724 * lib/strdup.h [C++]: Wrap definitions in extern "C".
35725 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
35727 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35729 * modules/savewd (Depends-on): Fix dependency on fcntl.
35731 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
35733 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
35734 conforms to C99, rather than relying on the user's environment
35735 setting of STDINT_H.
35737 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
35738 and Eric Blake <ebb9@byu.net>
35740 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
35741 This is more consistent with the other defines here.
35742 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
35743 Port to z/OS. Problem reported by Paul Gilmartin.
35744 Change local vars to use gl_ prefix rather than ac_.
35745 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
35746 with other defines.
35747 * modules/double-slash-root: New module.
35748 * modules/dirname (Files): Remove m4/double-slash-root.m4.
35749 (Depends-on): Add double-slash-root.
35750 * MODULES.html.sh (File system functions): Mention new module.
35752 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
35754 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
35755 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
35756 This is for the benefit of gzip, which doesn't do i18n.
35758 2006-12-12 Jim Meyering <jim@meyering.net>
35760 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
35761 Reported by Andreas Schwab <schwab@suse.de>.
35763 2006-12-12 Bruno Haible <bruno@clisp.org>
35765 Merge these changes.
35766 2006-09-05 Bruno Haible <bruno@clisp.org>
35767 * lib/iconvme.c (iconv_string): No need to save and restore errno when
35768 iconv_alloc succeeded.
35769 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
35770 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
35771 test for " && dest " at the end - dest is always != NULL there. Call
35772 iconv with 4xNULL arguments initially, to reset the state. Call iconv
35773 with 2xNULL arguments, also to flush the state storage. Handle the
35774 IRIX iconv behaviour. Realloc the final result, to throw away unused
35777 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
35779 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
35780 and fchmodat unconditionally, since glibc 2.4 has them.
35781 Problem reported by Arkadiusz Miskiewicz.
35783 2006-12-10 Bruno Haible <bruno@clisp.org>
35785 * gnulib-tool (func_import): Show the include files only for those
35786 modules that are copied and specified.
35787 Reported by Karl Berry.
35789 2006-12-08 Jim Meyering <jim@meyering.net>
35791 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
35792 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
35794 * build-aux/announce-gen: Add two new options, both optional:
35795 --bootstrap-tools=TOOL_LIST
35796 a comma-separated list of tools, e.g.,
35797 autoconf,automake,bison,gnulib
35798 --gnulib-snapshot-date=DATE
35799 if gnulib is in the bootstrap tool list,
35800 then report this as the snapshot date.
35801 If not specified, use the current date/time.
35802 If you specify a date here, be sure it's UTC.
35804 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35806 * tests/test-argp-2.sh: Fix test to match actual output.
35807 (func_compare): Fix sed script to be portable.
35809 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
35811 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
35812 workaround for this case. It is not autoconfigured now; offhand
35813 it's hard to see how to autoconfigure it.
35815 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
35817 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
35818 a directory that is about to be chowned. Such a directory's
35819 initial file permissions should permit the owner only and this
35820 should not be changed until after the chown, since the group and
35821 other bits would be incorrect if they granted permission before
35824 Fix porting problem for iswctype reported by Georg Schwarz in:
35825 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
35826 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
35827 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
35828 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
35829 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
35831 2006-12-03 Jim Meyering <jim@meyering.net>
35833 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
35834 p->fts_statp may not yet be defined.
35835 (fts_read): Instead, set it in the caller, once p->fts_statp is
35836 sure to be defined, and corresponds to a top-level directory.
35837 This bug made du -x fail. Here's the coreutils test case:
35838 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
35839 Reported by Mike Frysinger.
35841 2006-12-01 Jim Meyering <jim@meyering.net>
35843 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
35844 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
35845 Reported by Simon Josefsson.
35847 2006-11-30 Jim Meyering <jim@meyering.net>
35849 * m4/warning.m4: Use the all-permissive copyright notice
35850 recommended by RMS (rather than LGPL).
35851 * m4/vararrays.m4: Likewise.
35852 * m4/flexmember.m4: Likewise.
35854 2006-11-29 Bruno Haible <bruno@clisp.org>
35856 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
35857 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
35859 Reported by Simon Josefsson <simon@josefsson.org>.
35861 2006-11-28 James Youngman <jay@gnu.org>
35863 * README: Advise users that they might find the bug-gnulib@gnu.org
35864 and autotools-announce@gnu.org mailing lists useful.
35866 2006-11-28 Bruno Haible <bruno@clisp.org>
35868 * m4/ptrdiff_max.m4: Remove file.
35870 2006-11-21 Bruno Haible <bruno@clisp.org>
35872 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
35874 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
35875 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
35877 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
35878 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
35880 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
35882 2006-11-28 Jim Meyering <jim@meyering.net>
35884 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
35885 warning from "gcc -Wshadow" about shadowing the builtin.
35887 2006-11-27 Bruno Haible <bruno@clisp.org>
35889 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
35891 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
35893 2006-11-27 Bruno Haible <bruno@clisp.org>
35894 Paul Eggert <eggert@cs.ucla.edu>
35896 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
35898 2006-11-26 Bruno Haible <bruno@clisp.org>
35900 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
35901 noinst_LTLIBRARIES.
35903 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
35904 Bruno Haible <bruno@clisp.org>
35906 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
35907 if compiling with "gcc -ansi".
35909 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
35911 Fix some incompatibilities with gcc -ansi -pedantic.
35912 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
35913 if compiling pedantically with GCC, unless it's C99 or later.
35914 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
35915 it mishandles gcc -ansi -pedantic as well.
35916 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
35918 * lib/regexec.c (check_node_accept_bytes): Don't use auto
35919 initializers for struct if -pedantic, unless it's C99 or later.
35921 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
35923 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
35924 Don't close an fd more than once. Identical atimes indicate
35925 success, not failure.
35927 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
35929 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
35931 2006-11-23 Jim Meyering <jim@meyering.net>
35933 * build-aux/announce-gen: New file. From coreutils.
35935 2006-11-22 Jim Meyering <jim@meyering.net>
35937 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
35938 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
35939 (fts_read): Use a temporary to narrow the overused st_size member
35940 before using it in a switch statement. Reported by Matthew Woehlke.
35942 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
35943 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
35945 2006-11-20 Bruno Haible <bruno@clisp.org>
35947 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
35948 changequote instead of pairs of brackets.
35949 Reported by Andreas Schwab <schwab@suse.de>.
35951 2006-11-21 Jim Meyering <jim@meyering.net>
35953 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
35954 so as to remain compatible with older compilers.
35955 Patch from Michael Deutschmann.
35957 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
35959 * MODULES.html.sh (File system functions): Add openat.
35961 * lib/openat.h (rpl_fstatat): New macro, if
35962 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
35963 (fstatat): Define to rpl_fstatat under the same conditions,
35964 unless COMPILING_FSTATAT.
35965 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
35966 seems to have the bug.
35967 * lib/fstatat.c: New file.
35968 * modules/openat (Files): Add it.
35970 2006-11-20 Bruno Haible <bruno@clisp.org>
35972 * Makefile: New file.
35974 2006-11-20 Jim Meyering <jim@meyering.net>
35976 The beginnings of syntax-related checks for gnulib.
35977 * lib/Makefile: New file.
35978 * lib/t-idcache: New script. Ensure that the two halves of
35979 idcache.c stay in sync.
35981 * lib/idcache.c: Adjust comments in user- and group- portions to
35982 be more accurate, and to be consistent with one another.
35984 2006-11-20 Jim Meyering <jim@meyering.net>
35986 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
35987 continue using the flexible array member (thus, this module performs
35988 half as many malloc calls), with the addition that...
35989 (getgroup, getuser): Consistently record a non-match via an empty
35990 "name" string, and map an empty string match to a NULL return value.
35991 * modules/idcache (Depends-on): Re-add flexmember.
35993 * lib/idcache.c (getuser): Remove all uses of the register keyword.
35994 (getuidbyname, getgroup, getgidbyname): Likewise.
35996 Use cleaner syntax: NULL rather than 0.
35997 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
35999 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
36001 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
36002 It mishandled the case where the group was missing.
36003 Problem reported by Greg Schafer.
36004 * modules/idcache: Likewise.
36006 2006-11-18 Jim Meyering <jim@meyering.net>
36008 * check-module (%exempt_header): Add exception for some
36009 conditionally-included headers.
36011 * modules/i-ring (Depends-on): Add verify.
36012 (License): Change to LGPL.
36014 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
36016 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
36017 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
36018 and inttostr.h. Use snprintf rather than uinttostr, so that
36019 LGPLed code doesn't depend on GPLed.
36021 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
36023 * modules/inline (License): Change from GPL to LGPL.
36025 2006-11-17 Jim Meyering <jim@meyering.net>
36027 * modules/d-type (License): Switch to LGPL.
36029 2006-11-15 Bruno Haible <bruno@clisp.org>
36031 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
36033 2006-11-15 Eric Blake <ebb9@byu.net>
36035 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
36036 the module dependency.
36038 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36039 Bruno Haible <bruno@clisp.org>
36041 * gnulib-tool (func_create_testdir): Add license consistency check.
36043 2006-11-15 Eric Blake <ebb9@byu.net>
36045 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
36046 random "(cached)" in configure output.
36048 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36050 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
36051 test for conforming inttypes.h is both announced and cached.
36053 * MODULES.html.sh (seen_modules, seen_files): New variables.
36054 (func_module): Rewrite to use a few less gnulib-tool and sed
36055 invocations. Avoid a couple of quadratic algorithms for ...
36056 (missed_modules, missed_files): ... these, with ...
36057 (func_append, func_tmpdir): ... these new functions, from
36058 gnulib-tool. Analogously, install traps for cleanup.
36060 * tests/test-gc.c (main): Remove unused variables.
36061 * tests/test-read-file.c: Include stdlib.h, for 'free'.
36063 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
36065 * modules/inttostr (License): Change to LGPL.
36067 2006-11-14 Eric Blake <ebb9@byu.net>
36069 * modules/tempname (License): Change to LGPL.
36071 2006-11-14 Eric Blake <ebb9@byu.net>
36073 * doc/functions.texi (Function Portability): *printf functions on
36074 Cygwin now understand all POSIX size specifiers.
36076 2006-11-14 Bruno Haible <bruno@clisp.org>
36078 * modules/c-ctype (License): Change to LGPL.
36080 2006-11-12 Bruno Haible <bruno@clisp.org>
36082 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
36083 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
36084 for GNOME libraries, for which the include files are installed in
36085 subdirectories of $prefix/include.
36087 2006-11-12 Bruno Haible <bruno@clisp.org>
36089 * m4/lib-link.m4: Require at least autoconf-2.54.
36090 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
36091 name to underscores for the --with option.
36093 2006-11-13 Bruno Haible <bruno@clisp.org>
36095 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
36096 the tests directory.
36097 Reported by Ralf Wildenhues.
36099 2006-11-13 Bruno Haible <bruno@clisp.org>
36101 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
36102 (func_emit_initmacro_end): Undo the override here.
36103 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
36104 Works around the famous automake error in coreutils.
36106 2006-11-13 Eric Blake <ebb9@byu.net>
36108 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
36109 element, not its node.
36111 2006-11-12 Bruno Haible <bruno@clisp.org>
36113 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
36114 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
36116 2006-11-12 Bruno Haible <bruno@clisp.org>
36118 * gnulib-tool: New option --local-symlink.
36119 (func_usage): Document it.
36120 (lsymbolic): New variable.
36121 (func_import, func_create_testdir): If --symlink was not specified,
36122 test whether --local-symlink was specified and the file comes from
36123 the local_gnulib_dir.
36125 2006-11-12 Bruno Haible <bruno@clisp.org>
36127 * gnulib-tool (func_ln): New function.
36128 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
36130 2006-11-12 Bruno Haible <bruno@clisp.org>
36132 Finish support for source files in subdirectories.
36133 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
36134 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
36136 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
36138 2006-11-12 Bruno Haible <bruno@clisp.org>
36140 * gnulib-tool (func_get_automake_snippet): Synthesize also an
36141 EXTRA_lib_SOURCES augmentation.
36142 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
36144 2006-11-12 Jim Meyering <jim@meyering.net>
36146 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
36147 file descriptors. This also averts a failure on systems with
36148 native openat support when a traversed directory lacks "x" access.
36149 * lib/fts_.h: Include "i-ring.h"
36150 (struct FTS) [fts_fd_ring]: New member.
36151 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
36152 (FCHDIR): Add parentheses.
36153 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
36154 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
36155 When descending, rather than simply closing the previous
36156 fts_cwd_fd value, push that file descriptor onto the ring.
36157 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
36158 (fts_open): Initialize the new fd_ring member.
36159 (fts_close): Clear the ring.
36160 (fts_safe_changedir): When possible, use our new fd_ring to skip
36161 the diropen and fstat and dev/ino comparison that would normally
36162 accompany a virtual `chdir ("..")'.
36164 * modules/fts (Depends-on): Add i-ring.
36165 * modules/i-ring: New module.
36166 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
36167 * m4/i-ring.m4: New file.
36169 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36171 * gnulib-tool (func_create_testdir): Fix replacement of
36172 `build-aux' in configure.ac. Run autotools in gltests
36174 (func_create_testdir, func_create_megatestdir, test): There is
36175 no need for '--force' in most autotool invocations in a new
36176 tree. Actually fail the whole test if any of the tools, or the
36177 configure or make stages fail.
36179 Sync from Automake.
36180 * build-aux/gnupload: Revert last change. Add pointer to upload
36181 instructions of the GNU Maintenance Instructions.
36182 Suggestion by Karl Berry.
36184 2006-11-10 Jim Meyering <jim@meyering.net>
36186 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
36188 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
36190 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
36191 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
36192 (bind_textdomain_codeset) [! ENABLE_NLS]:
36193 Evaluate all the arguments. That way, callers get compatible behavior
36194 if the arguments have side effects. Also, it avoids some GCC
36195 diagnostics in some cases; Joel E. Denny reported problems when Bison
36196 was configured with --enable-gcc-warnigs.
36198 2006-11-10 Jim Meyering <jim@meyering.net>
36200 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
36201 relevant options in CFLAGS (like -O, -fno-inline) are taken into
36204 2006-11-10 Jim Meyering <jim@meyering.net>
36206 * modules/inline: New file/module.
36207 * modules/xalloc (Files): Remove m4/inline.m4.
36208 (Depends-on): Add inline, instead.
36209 * modules/oset: Likewise.
36210 * modules/list: Likewise.
36212 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
36214 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
36215 Problem reported by Matthew Woehlke.
36217 2006-11-09 Bruno Haible <bruno@clisp.org>
36219 * lib/tempname.c (gen_tempname): Remove variant that invokes
36221 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
36224 2006-11-08 Bruno Haible <bruno@clisp.org>
36226 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
36227 to 'yes' instead of 'cross-compiling'.
36229 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
36231 * lib/quotearg.h (quotearg_free): New decl.
36232 * lib/quotearg.c (quotearg_free): New function.
36233 (slot0, nslots, slotvec0, slotvec):
36234 Now file-scope so that quotearg_free can get at them.
36236 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36238 Sync from Automake.
36239 * build-aux/gnupload: Add missing 'gnu' to example URL.
36240 Report by Karl Berry.
36242 2006-11-08 Bruno Haible <bruno@clisp.org>
36244 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
36245 Suggested by Paul Eggert.
36247 2006-11-08 Jim Meyering <jim@meyering.net>
36249 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
36250 It's already included if !_LIBC.
36251 (fts_safe_changedir): Add a comment.
36253 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
36255 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
36256 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
36259 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
36260 definitions up, to avoid colliding with change below.
36261 (static_inline) [HAVE_INLINE]: New macro.
36262 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
36263 Provide extern decls when !HAVE_INLINE. Do not define unless
36264 static_inline is defined, either by us or by xmalloc.c. Use
36265 static_inline rather than static inline.
36266 (XCALLOC): Optimize sizeof(T) = 1 case.
36267 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
36269 2006-11-07 Bruno Haible <bruno@clisp.org>
36271 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
36272 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
36274 * modules/xalloc (Files): Add m4/inline.m4.
36276 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36278 * README: Fix typo.
36279 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
36280 (Miscellanous Notes): ...from this.
36282 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
36284 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
36285 Mention that offsetof should be used instead of sizeof.
36288 2006-11-07 Bruno Haible <bruno@clisp.org>
36290 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
36292 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
36294 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
36295 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
36296 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
36297 (gl_tree_add_before, gl_tree_add_after):
36298 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
36299 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
36300 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
36301 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
36302 (gl_linked_add_after, gl_linked_add_at): Likewise.
36303 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
36304 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
36305 (gl_tree_add_before, gl_tree_add_after): Likewise.
36306 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
36307 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
36308 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36310 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36312 * lib/gl_oset.h: Use C comment style, not C++ comment style.
36314 2006-11-06 Bruno Haible <bruno@clisp.org>
36316 * m4/inline.m4: New file.
36317 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
36318 * modules/list (Files): Add m4/inline.m4.
36319 * modules/oset (Files): Likewise.
36321 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
36323 * lib/idcache.c: Include <stddef.h>, for offsetof.
36324 (struct userid.name): Change from char * to a flexible array member.
36326 * modules/idcache (Depends-on): Add flexmember.
36328 * MODULES.html.sh (Core language properties): New module flexmember.
36329 * modules/flexmember, m4/flexmember.m4: New files.
36331 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
36332 inline functions that are identical with the old xnmalloc_inline,
36333 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
36334 that we can avoid some unnecessary integer multiplications and
36335 divisions in the common case where the element size is known at
36337 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
36339 (xnboundedmalloc): Remove.
36340 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
36341 arguments, for consistency with rest of this header.
36342 (xcharalloc): Rewrite using XNMALLOC.
36343 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
36344 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
36345 versions have been moved to lib/xalloc.h and renamed to be the
36346 non-*_inline versions.
36347 (xmalloc, xrealloc): Implement without reference to the xnmalloc
36348 and xnrealloc functions, since those functions are now inline and
36350 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
36351 renaming described above.
36352 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
36353 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
36354 captures the dependency in AC_C_INLINE.
36356 New module canonicalize-lgpl, proposed by Charles Wilson in
36357 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
36358 with a few small changes afterwards.
36359 * MODULES.html.sh (File system functions): New module
36361 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
36362 and canonicalize_file_name.
36363 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
36364 * modules/canonicalize-lgpl: New files.
36366 2006-11-05 Bruno Haible <bruno@clisp.org>
36368 * gnulib-tool (func_import, func_create_testdir): Create directories
36369 also for files in subdirectories of lib/.
36371 2006-11-05 Bruno Haible <bruno@clisp.org>
36373 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
36376 2006-11-03 Bruno Haible <bruno@clisp.org>
36378 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
36379 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
36380 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
36381 (xnboundedmalloc): New inline function.
36382 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
36383 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
36385 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
36387 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
36388 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
36389 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
36391 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
36392 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
36394 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
36395 gl_tree_add_after): Use XMALLOC instead of xmalloc.
36396 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
36398 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
36399 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
36400 gl_tree_add_after): Use XMALLOC instead of xmalloc.
36401 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
36402 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
36403 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
36404 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
36406 2006-11-03 Bruno Haible <bruno@clisp.org>
36408 * lib/c-ctype.h [C++]: Define functions without name mangling.
36409 * lib/fwriteerror.h [C++]: Likewise.
36410 * lib/gcd.h [C++]: Likewise.
36411 * lib/linebreak.h [C++]: Likewise.
36413 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
36415 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
36416 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
36417 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
36418 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
36419 Check for functions and headers just once.
36420 Check for declaration of canonicalize_file_name.
36421 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
36423 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
36425 * gnulib-tool (func_import): Fix typo in actioncmd.
36427 2006-11-02 Bruno Haible <bruno@clisp.org>
36429 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
36430 newline sequence in the Makefile.am snippet as a space, like "make"
36432 Reported by Roger Persson <perrog@gmail.com>.
36434 2006-11-01 Bruno Haible <bruno@clisp.org>
36436 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
36437 already declared in <string.h>.
36438 * lib/strcase.h (strncasecmp): Don't declare it if yes.
36440 2006-11-01 Bruno Haible <bruno@clisp.org>
36442 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
36443 * lib/strcase.h: Include <string.h>.
36444 (strcasecmp): Define to rpl_strcasecmp here.
36446 2006-11-01 Bruno Haible <bruno@clisp.org>
36448 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
36450 2006-11-01 Eric Blake <ebb9@byu.net>
36452 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
36454 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
36456 2006-10-29 Bruno Haible <bruno@clisp.org>
36458 Make it compile in C++ mode.
36459 * lib/full-write.c (full_rw): Add a cast.
36461 2006-11-01 Bruno Haible <bruno@clisp.org>
36463 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
36464 be POSIX compliant.
36465 Reported by Roger Persson <perrog@gmail.com>.
36467 2006-11-01 Eric Blake <ebb9@byu.net>
36469 * lib/getopt_.h: Fix comments.
36471 2006-10-31 Eric Blake <ebb9@byu.net>
36473 * modules/tmpdir (Depends-on): Add sys_stat.
36474 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
36475 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
36476 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
36477 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
36480 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
36482 Avoid some C++ diagnostics reported by Bruno Haible.
36483 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
36485 (quotearg_alloc): Use xcharalloc rather than xmalloc.
36486 (struct slotvec): Move to top level.
36487 (quotearg_n_options): Rewrite to avoid xmalloc.
36488 * lib/xalloc.h (xcharalloc): New function.
36489 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
36490 [defined __cplusplus]: Add function template that provides result
36491 type propagation. This part of the change is from Bruno Haible.
36493 2006-10-29 Bruno Haible <bruno@clisp.org>
36495 Make it compile in C++ mode.
36496 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
36497 * lib/strnlen1.c (strnlen1): Cast memchr result.
36498 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
36499 * lib/clean-temp.c (string_equals, string_hash): Add casts.
36500 (create_temp_dir): Rename local variable 'template'.
36501 (compile_csharp_using_sscli): Add cast.
36502 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
36503 * lib/findprog.c (find_in_path): Likewise.
36504 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
36505 * lib/wait-process.c (register_slave_subprocess): Likewise.
36507 2006-10-22 Bruno Haible <bruno@clisp.org>
36509 * modules/tsearch: New file.
36510 * lib/tsearch.h: New file.
36511 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
36512 * m4/tsearch.m4: New file.
36513 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
36515 2006-10-29 Eric Blake <ebb9@byu.net>
36517 * lib/arcfour.c: Assume config.h.
36518 * lib/arctwo.c: Likewise.
36519 * lib/base64.c: Likewise.
36520 * lib/check-version.c: Likewise.
36521 * lib/crc.c: Likewise.
36522 * lib/des.c: Likewise.
36523 * lib/gc-gnulib.c: Likewise.
36524 * lib/gc-libgcrypt.c: Likewise.
36525 * lib/gc-pbkdf2-sha1.c: Likewise.
36526 * lib/getaddrinfo.c: Likewise.
36527 * lib/getdelim.c: Likewise.
36528 * lib/getline.c: Likewise.
36529 * lib/hmac-md5.c: Likewise.
36530 * lib/hmac-sha1.c: Likewise.
36531 * lib/iconvme.c: Likewise.
36532 * lib/md2.c: Likewise.
36533 * lib/md4.c: Likewise.
36534 * lib/memxor.c: Likewise.
36535 * lib/read-file.c: Likewise.
36536 * lib/readline.c: Likewise.
36537 * lib/rijndael-alg-fst.c: Likewise.
36538 * lib/rijndael-api-fst.c: Likewise.
36539 * lib/xgetdomainname.c: Likewise.
36541 2006-10-28 Eric Blake <ebb9@byu.net>
36543 * lib/xstrndup.c: Assume config.h.
36545 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
36547 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
36548 stat-macros.h is now for our own macros, whereas stat_h is for
36549 macros in the <sys/stat.h> name space.
36550 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
36551 (STAT_MACROS_H): Remove.
36552 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
36553 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
36554 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
36555 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
36556 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
36557 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
36558 Move these macros to ...
36559 * lib/stat_.h: here. Don't include stat-macros.h.
36560 * lib/canonicalize.c: Don't include stat-macros.h.
36561 * lib/chown.c: Likewise.
36562 * lib/euidaccess.c: Likewise.
36563 * lib/file-type.c: Likewise.
36564 * lib/filemode.c: Likewise.
36565 * lib/glob.c: Likewise.
36566 * lib/isapipe.c: Likewise.
36567 * lib/lchown.c: Likewise.
36568 * lib/lstat.c: Likewise.
36569 * lib/mkdir-p.c: Likewise.
36570 * lib/rmdir.c: Likewise.
36571 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
36572 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
36573 unless mkdir isn't declared, to speed up 'configure'.
36574 Always create sys/stat.h, since it's unlikely any real sys/stat.h
36575 would define all the S_* symbols.
36576 * modules/canonicalize (Depends-on):
36577 Depend on sys_stat, not stat-macros.
36578 * modules/chown: Likewise.
36579 * modules/euidaccess: Likewise.
36580 * modules/filemode: Likewise.
36581 * modules/file-type: Likewise.
36582 * modules/glob: Likewise.
36583 * modules/isapipe: Likewise.
36584 * modules/lchown: Likewise.
36585 * modules/lstat: Likewise.
36586 * modules/mkancesdirs: Likewise.
36587 * modules/rmdir: Likewise.
36588 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
36589 * modules/modechange: Likewise.
36590 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
36591 (configure.ac): Remove gl_STAT_MACROS.
36592 * modules/sys_stat (Depends-on): Remove stat-macros.
36594 2006-10-27 Bruno Haible <bruno@clisp.org>
36596 * m4/signed.m4: Remove file.
36597 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
36599 * modules/vasnprintf (Files): Remove m4/signed.m4.
36601 2006-10-27 Bruno Haible <bruno@clisp.org>
36603 Update to GNU gettext 0.16.
36604 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
36605 m4/inttypes-h.m4, m4/signed.m4.
36606 * m4/gettext.m4: Update to GNU gettext 0.16.
36607 * m4/intl.m4: New file, from GNU gettext.
36608 * m4/intldir.m4: New file, from GNU gettext.
36609 * config/srclist.txt: Update
36611 2006-10-27 Eric Blake <ebb9@byu.net>
36613 * MODULES.html.sh: Document tempname.
36614 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
36616 (Files): Move lib/tempname.c...
36617 * modules/tempname: ...to this new module.
36618 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
36619 (gl_PREREQ_TEMPNAME): Move...
36620 * m4/tempname.m4: ...to this new file.
36621 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
36622 * modules/sys_stat (Depends-on): Add stat-macros.
36623 * lib/stat_.h (includes): Pick up stat macros.
36624 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
36625 if stat macros are broken.
36626 * lib/tempname.c (includes): No need to include "stat-macros.h".
36627 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
36628 (direxists, __path_search) [!_LIBC]: Don't compile these in
36629 gnulib; the tmpdir module covers that.
36630 * lib/tempname.h: New file.
36632 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
36634 * COPYING: Explain how gnulib-tool converts licence headers.
36635 Almost all wording by Eric Blake.
36637 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
36639 * lib/mbchar.h (is_basic_table): Make read-only.
36640 * lib/mbchar.c (is_basic_table): Likewise.
36641 Reported by John Darrington.
36643 2006-10-25 Bruno Haible <bruno@clisp.org>
36645 * lib/progname.h (set_program_name): Undefine before defining.
36647 2006-10-25 Bruno Haible <bruno@clisp.org>
36649 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
36650 false for non-gcc C++ compilers.
36651 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36653 2006-10-24 Bruno Haible <bruno@clisp.org>
36655 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
36656 iconv implementations like Irix iconv.
36658 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
36660 * modules/vararrays: New file.
36661 * m4/vararrays.m4: New file, taken from diffutils.
36662 * MODULES.html.sh: New module vararrays.
36664 2006-10-24 Karl Berry <karl@gnu.org>
36666 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
36667 Don't call GNU Unix.
36669 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36671 * users.txt: Add Libtool.
36675 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
36677 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
36678 to gnulib's policy of including config.h unconditionally.
36680 2006-10-24 Bruno Haible <bruno@clisp.org>
36682 * modules/wcwidth (Files): Add m4/wint_t.m4.
36683 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
36684 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
36686 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
36688 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
36689 to pacify GCC with some -W flags enabled. Problem reported by
36692 2006-10-24 Jim Meyering <jim@meyering.net>
36694 * MODULES.html.sh: Remove uinttostr. It's not a module.
36695 Reported by Karl Berry.
36697 2006-10-23 Bruno Haible <bruno@clisp.org>
36699 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
36701 2006-10-24 Bruno Haible <bruno@clisp.org>
36703 * lib/gl_list.h: Use C comment style, not C++ comment style.
36705 2006-10-23 Eric Blake <ebb9@byu.net>
36707 * lib/getaddrinfo.c (includes): Add missing include.
36709 2006-10-23 Bruno Haible <bruno@clisp.org>
36710 Paul Eggert <eggert@cs.ucla.edu>
36712 Ability to rename obstack_free.
36713 * lib/obstack.h (__obstack_free): New macro. Declare instead of
36715 (obstack_free): Invoke the __obstack_free macro.
36716 * lib/obstack.c (obstack_free): Use __obstack_free macro.
36718 2006-10-23 Bruno Haible <bruno@clisp.org>
36719 Paul Eggert <eggert@cs.ucla.edu>
36721 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
36722 __argc, __argv from the declaration. (They are defined as macros on
36725 2006-10-22 Bruno Haible <bruno@clisp.org>
36727 * doc/gnulib-intro.texi: New file.
36728 * doc/gnulib.texi: Include it.
36730 2006-10-21 Bruno Haible <bruno@clisp.org>
36732 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
36733 "Introduction", "Miscellanous Notes", "Particular Modules".
36735 2006-10-21 Bruno Haible <bruno@clisp.org>
36737 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36738 Change mostlyclean-local rule to avoid sh syntax error from bash
36739 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
36741 2006-10-23 Jim Meyering <jim@meyering.net>
36743 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
36744 in place of snprintf.
36746 * modules/inttostr (Files): Add lib/uinttostr.c.
36747 * lib/uinttostr.c (inttostr): New file/function.
36748 * lib/inttostr.h (uinttostr): Declare.
36749 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
36750 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
36752 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
36754 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
36756 * lib/canonicalize.c (ELOOP): Define if not already defined.
36757 Problem reported by Bruno Haible in
36758 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
36760 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
36762 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
36763 Problem reported by Perry Smith and Ville Laurikari.
36765 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
36768 2006-10-19 Bruno Haible <bruno@clisp.org>
36770 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
36773 2006-10-19 Bruno Haible <bruno@clisp.org>
36775 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
36778 2006-10-19 Bruno Haible <bruno@clisp.org>
36780 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
36782 2006-10-19 Bruno Haible <bruno@clisp.org>
36784 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
36787 2006-10-19 Bruno Haible <bruno@clisp.org>
36789 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
36792 2006-10-19 Bruno Haible <bruno@clisp.org>
36794 * gnulib-tool (func_create_testdir): Don't include ftruncate and
36795 mountlist by default.
36797 2006-10-16 Bruno Haible <bruno@clisp.org>
36799 * lib/c-strstr.c: Include c-strstr.h.
36801 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
36803 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
36806 2006-10-18 Bruno Haible <bruno@clisp.org>
36808 * lib/lock.h [C++]: Wrap definitions in extern "C".
36810 2006-10-18 Bruno Haible <bruno@clisp.org>
36812 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
36815 2006-10-18 Bruno Haible <bruno@clisp.org>
36817 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
36819 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
36821 * lib/xstrtol.h: Include gettext.h.
36822 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
36823 Problem reported by Eric Blake.
36824 * modules/xstrtol (Depends-on): Add gettext-h.
36826 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
36828 * lib/strftime.c (advance): New macro.
36829 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
36830 incomplete type, so you can't add 0 to it. Problem and patch
36831 reported by Eelco Dolstra for dietlibc.
36833 2006-10-18 Jim Meyering <jim@meyering.net>
36835 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
36836 type for a local, and rename it: s/up/user_proc/.
36838 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
36840 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
36841 READ_UTMP_USER_PROCESS.
36842 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
36844 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
36846 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
36847 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
36849 2006-10-17 Eric Blake <ebb9@byu.net>
36851 * lib/sigprocmask.c (sigprocmask): Fix typo.
36853 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
36855 * modules/clean-temp (Makefile.am): Don't add to make output...
36856 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
36859 2006-10-17 Bruno Haible <bruno@clisp.org>
36861 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
36862 differently if DEFAULT_TEXT_DOMAIN is set.
36864 2006-10-16 Bruno Haible <bruno@clisp.org>
36866 * lib/clean-temp.c: Include fwriteerror.h.
36868 2006-10-16 Bruno Haible <bruno@clisp.org>
36870 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
36872 2006-10-16 Bruno Haible <bruno@clisp.org>
36874 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
36875 * lib/sigprocmask.h: Include <sys/types.h>.
36876 (sigset_t): Use the system's definition if present.
36878 2006-10-17 Eric Blake <ebb9@byu.net>
36880 * lib/xvasprintf.c (includes): Assume config.h.
36881 * lib/xasprintf.c (includes): Likewise.
36883 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
36885 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
36886 at least as wide as intmax_t.
36888 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
36890 (Imported from Automake.)
36891 * build-aux/gnupload: Update to version 1.1 of directive file.
36893 2006-10-16 Eric Blake <ebb9@byu.net>
36895 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
36896 match Automake 1.10a.
36898 2006-10-14 Bruno Haible <bruno@clisp.org>
36900 * modules/sigprocmask: New file.
36901 * lib/sigprocmask.h: New file.
36902 * lib/sigprocmask.c: New file.
36903 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
36904 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
36905 request sigprocmask.o.
36906 (gl_PREREQ_SIGPROCMASK): New macro.
36907 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
36908 (Depends-on): Add sigprocmask.
36909 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
36910 gt_SIGNALBLOCKING. Test for 'raise' only once.
36911 * lib/fatal-signal.c: Include sigprocmask.h.
36912 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
36913 unblock_fatal_signals): Define always.
36914 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
36917 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
36919 Sync from Automake.
36920 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
36921 which incorrectly sets the mode of an existing destination
36922 directory. In some cases the unpatched install-sh could do the
36923 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
36924 system. We hope this is rare in practice, but it's clearly worth
36925 fixing. Problem reported by Alex Unleashed in
36926 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
36927 Also, don't bother to check for -m bugs unless we're using -m;
36928 suggested by Stepan Kasal.
36930 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36932 Sync from Automake.
36933 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
36934 `-c' flag, so they appear at the same position as in %FASTDEP%
36935 mode in depend2.am. Fixes build failure for FreeBSD's c89,
36936 which ignores unknown options only after the first non-option.
36937 Bug report against M4 by Nelson H. F. Beebe.
36939 2006-10-13 Jim Meyering <jim@meyering.net>
36941 Fix a bug in yesterday's change.
36942 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
36943 p->fts_statp->st_dev would be used uninitialized.
36944 Ensures that we always call fts_stat on the very first entry.
36945 Miklos Szeredi reported that find -xdev stopped working.
36947 2006-10-12 Bruno Haible <bruno@clisp.org>
36949 * gnulib-tool (func_get_automake_snippet): Append an automatically
36950 computed EXTRA_DIST augmentation.
36951 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
36952 * modules/alloca-opt (Makefile.am): Likewise.
36953 * modules/allocsa (Makefile.am): Likewise.
36954 * modules/arcfour (Makefile.am): Likewise.
36955 * modules/arctwo (Makefile.am): Likewise.
36956 * modules/argmatch (Makefile.am): Likewise.
36957 * modules/argz (Makefile.am): Likewise.
36958 * modules/atexit (Makefile.am): Likewise.
36959 * modules/backupfile (Makefile.am): Likewise.
36960 * modules/byteswap (Makefile.am): Likewise.
36961 * modules/c-strtod (Makefile.am): Likewise.
36962 * modules/c-strtold (Makefile.am): Likewise.
36963 * modules/calloc (Makefile.am): Likewise.
36964 * modules/canon-host (Makefile.am): Likewise.
36965 * modules/canonicalize (Makefile.am): Likewise.
36966 * modules/chdir-long (Makefile.am): Likewise.
36967 * modules/chdir-safer (Makefile.am): Likewise.
36968 * modules/check-version (Makefile.am): Likewise.
36969 * modules/chown (Makefile.am): Likewise.
36970 * modules/cloexec (Makefile.am): Likewise.
36971 * modules/close-stream (Makefile.am): Likewise.
36972 * modules/closeout (Makefile.am): Likewise.
36973 * modules/crc (Makefile.am): Likewise.
36974 * modules/csharpexec (Makefile.am): Likewise.
36975 * modules/cycle-check (Makefile.am): Likewise.
36976 * modules/des (Makefile.am): Likewise.
36977 * modules/dev-ino (Makefile.am): Likewise.
36978 * modules/dirfd (Makefile.am): Likewise.
36979 * modules/dirname (Makefile.am): Likewise.
36980 * modules/dup2 (Makefile.am): Likewise.
36981 * modules/eealloc (Makefile.am): Likewise.
36982 * modules/error (Makefile.am): Likewise.
36983 * modules/euidaccess (Makefile.am): Likewise.
36984 * modules/exclude (Makefile.am): Likewise.
36985 * modules/exitfail (Makefile.am): Likewise.
36986 * modules/fcntl-safer (Makefile.am): Likewise.
36987 * modules/fcntl (Makefile.am): Likewise.
36988 * modules/file-type (Makefile.am): Likewise.
36989 * modules/fileblocks (Makefile.am): Likewise.
36990 * modules/filemode (Makefile.am): Likewise.
36991 * modules/filenamecat (Makefile.am): Likewise.
36992 * modules/fnmatch (Makefile.am): Likewise.
36993 * modules/fopen-safer (Makefile.am): Likewise.
36994 * modules/fpending (Makefile.am): Likewise.
36995 * modules/fprintftime (Makefile.am): Likewise.
36996 * modules/free (Makefile.am): Likewise.
36997 * modules/fsusage (Makefile.am): Likewise.
36998 * modules/ftruncate (Makefile.am): Likewise.
36999 * modules/fts (Makefile.am): Likewise.
37000 * modules/gc-arcfour (Makefile.am): Likewise.
37001 * modules/gc-des (Makefile.am): Likewise.
37002 * modules/gc-hmac-md5 (Makefile.am): Likewise.
37003 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
37004 * modules/gc-md4 (Makefile.am): Likewise.
37005 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
37006 * modules/gc-sha1 (Makefile.am): Likewise.
37007 * modules/gc (Makefile.am): Likewise.
37008 * modules/getaddrinfo (Makefile.am): Likewise.
37009 * modules/getcwd (Makefile.am): Likewise.
37010 * modules/getdelim (Makefile.am): Likewise.
37011 * modules/getdomainname (Makefile.am): Likewise.
37012 * modules/getgroups (Makefile.am): Likewise.
37013 * modules/gethostname (Makefile.am): Likewise.
37014 * modules/gethrxtime (Makefile.am): Likewise.
37015 * modules/getline (Makefile.am): Likewise.
37016 * modules/getloadavg (Makefile.am): Likewise.
37017 * modules/getlogin_r (Makefile.am): Likewise.
37018 * modules/getndelim2 (Makefile.am): Likewise.
37019 * modules/getopt (Makefile.am): Likewise.
37020 * modules/getpagesize (Makefile.am): Likewise.
37021 * modules/getpass-gnu (Makefile.am): Likewise.
37022 * modules/getpass (Makefile.am): Likewise.
37023 * modules/getsubopt (Makefile.am): Likewise.
37024 * modules/gettime (Makefile.am): Likewise.
37025 * modules/gettimeofday (Makefile.am): Likewise.
37026 * modules/getugroups (Makefile.am): Likewise.
37027 * modules/getusershell (Makefile.am): Likewise.
37028 * modules/glob (Makefile.am): Likewise.
37029 * modules/group-member (Makefile.am): Likewise.
37030 * modules/hard-locale (Makefile.am): Likewise.
37031 * modules/hash (Makefile.am): Likewise.
37032 * modules/hmac-md5 (Makefile.am): Likewise.
37033 * modules/hmac-sha1 (Makefile.am): Likewise.
37034 * modules/human (Makefile.am): Likewise.
37035 * modules/idcache (Makefile.am): Likewise.
37036 * modules/imaxabs (Makefile.am): Likewise.
37037 * modules/imaxdiv (Makefile.am): Likewise.
37038 * modules/inet_ntop (Makefile.am): Likewise.
37039 * modules/inet_pton (Makefile.am): Likewise.
37040 * modules/intprops (Makefile.am): Likewise.
37041 * modules/inttostr (Makefile.am): Likewise.
37042 * modules/inttypes (Makefile.am): Likewise.
37043 * modules/isapipe (Makefile.am): Likewise.
37044 * modules/javaversion (Makefile.am): Likewise.
37045 * modules/lchmod (Makefile.am): Likewise.
37046 * modules/lchown (Makefile.am): Likewise.
37047 * modules/localcharset (Makefile.am): Likewise.
37048 * modules/long-options (Makefile.am): Likewise.
37049 * modules/lstat (Makefile.am): Likewise.
37050 * modules/malloc (Makefile.am): Likewise.
37051 * modules/mathl (Makefile.am): Likewise.
37052 * modules/mbchar (Makefile.am): Likewise.
37053 * modules/md2 (Makefile.am): Likewise.
37054 * modules/md4 (Makefile.am): Likewise.
37055 * modules/md5 (Makefile.am): Likewise.
37056 * modules/memcasecmp (Makefile.am): Likewise.
37057 * modules/memchr (Makefile.am): Likewise.
37058 * modules/memcmp (Makefile.am): Likewise.
37059 * modules/memcoll (Makefile.am): Likewise.
37060 * modules/memcpy (Makefile.am): Likewise.
37061 * modules/memmem (Makefile.am): Likewise.
37062 * modules/memmove (Makefile.am): Likewise.
37063 * modules/mempcpy (Makefile.am): Likewise.
37064 * modules/memrchr (Makefile.am): Likewise.
37065 * modules/memset (Makefile.am): Likewise.
37066 * modules/memxor (Makefile.am): Likewise.
37067 * modules/mkancesdirs (Makefile.am): Likewise.
37068 * modules/mkdir-p (Makefile.am): Likewise.
37069 * modules/mkdir (Makefile.am): Likewise.
37070 * modules/mkdtemp (Makefile.am): Likewise.
37071 * modules/mkstemp (Makefile.am): Likewise.
37072 * modules/mktime (Makefile.am): Likewise.
37073 * modules/modechange (Makefile.am): Likewise.
37074 * modules/mountlist (Makefile.am): Likewise.
37075 * modules/nanosleep (Makefile.am): Likewise.
37076 * modules/obstack (Makefile.am): Likewise.
37077 * modules/openat (Makefile.am): Likewise.
37078 * modules/pagealign_alloc (Makefile.am): Likewise.
37079 * modules/pathmax (Makefile.am): Likewise.
37080 * modules/physmem (Makefile.am): Likewise.
37081 * modules/poll (Makefile.am): Likewise.
37082 * modules/posixtm (Makefile.am): Likewise.
37083 * modules/posixver (Makefile.am): Likewise.
37084 * modules/putenv (Makefile.am): Likewise.
37085 * modules/quote (Makefile.am): Likewise.
37086 * modules/quotearg (Makefile.am): Likewise.
37087 * modules/raise (Makefile.am): Likewise.
37088 * modules/read-file (Makefile.am): Likewise.
37089 * modules/readline (Makefile.am): Likewise.
37090 * modules/readlink (Makefile.am): Likewise.
37091 * modules/readtokens (Makefile.am): Likewise.
37092 * modules/readutmp (Makefile.am): Likewise.
37093 * modules/realloc (Makefile.am): Likewise.
37094 * modules/regex (Makefile.am): Likewise.
37095 * modules/rename-dest-slash (Makefile.am): Likewise.
37096 * modules/rename (Makefile.am): Likewise.
37097 * modules/rijndael (Makefile.am): Likewise.
37098 * modules/rmdir (Makefile.am): Likewise.
37099 * modules/rpmatch (Makefile.am): Likewise.
37100 * modules/safe-read (Makefile.am): Likewise.
37101 * modules/safe-write (Makefile.am): Likewise.
37102 * modules/same-inode (Makefile.am): Likewise.
37103 * modules/same (Makefile.am): Likewise.
37104 * modules/save-cwd (Makefile.am): Likewise.
37105 * modules/savedir (Makefile.am): Likewise.
37106 * modules/setenv (Makefile.am): Likewise.
37107 * modules/settime (Makefile.am): Likewise.
37108 * modules/sha1 (Makefile.am): Likewise.
37109 * modules/sig2str (Makefile.am): Likewise.
37110 * modules/snprintf (Makefile.am): Likewise.
37111 * modules/stat-macros (Makefile.am): Likewise.
37112 * modules/stat-time (Makefile.am): Likewise.
37113 * modules/stdbool (Makefile.am): Likewise.
37114 * modules/stdint (Makefile.am): Likewise.
37115 * modules/stdlib-safer (Makefile.am): Likewise.
37116 * modules/stpcpy (Makefile.am): Likewise.
37117 * modules/stpncpy (Makefile.am): Likewise.
37118 * modules/strcase (Makefile.am): Likewise.
37119 * modules/strcasestr (Makefile.am): Likewise.
37120 * modules/strchrnul (Makefile.am): Likewise.
37121 * modules/strcspn (Makefile.am): Likewise.
37122 * modules/strdup (Makefile.am): Likewise.
37123 * modules/strerror (Makefile.am): Likewise.
37124 * modules/strftime (Makefile.am): Likewise.
37125 * modules/strndup (Makefile.am): Likewise.
37126 * modules/strnlen (Makefile.am): Likewise.
37127 * modules/strpbrk (Makefile.am): Likewise.
37128 * modules/strsep (Makefile.am): Likewise.
37129 * modules/strstr (Makefile.am): Likewise.
37130 * modules/strtod (Makefile.am): Likewise.
37131 * modules/strtoimax (Makefile.am): Likewise.
37132 * modules/strtok_r (Makefile.am): Likewise.
37133 * modules/strtol (Makefile.am): Likewise.
37134 * modules/strtoll (Makefile.am): Likewise.
37135 * modules/strtoul (Makefile.am): Likewise.
37136 * modules/strtoull (Makefile.am): Likewise.
37137 * modules/strtoumax (Makefile.am): Likewise.
37138 * modules/strverscmp (Makefile.am): Likewise.
37139 * modules/sys_socket (Makefile.am): Likewise.
37140 * modules/sys_stat (Makefile.am): Likewise.
37141 * modules/sysexits (Makefile.am): Likewise.
37142 * modules/time_r (Makefile.am): Likewise.
37143 * modules/timegm (Makefile.am): Likewise.
37144 * modules/timespec (Makefile.am): Likewise.
37145 * modules/tmpfile-safer (Makefile.am): Likewise.
37146 * modules/trim (Makefile.am): Likewise.
37147 * modules/unistd-safer (Makefile.am): Likewise.
37148 * modules/unlinkdir (Makefile.am): Likewise.
37149 * modules/unlocked-io (Makefile.am): Likewise.
37150 * modules/userspec (Makefile.am): Likewise.
37151 * modules/utime (Makefile.am): Likewise.
37152 * modules/utimecmp (Makefile.am): Likewise.
37153 * modules/utimens (Makefile.am): Likewise.
37154 * modules/vasnprintf (Makefile.am): Likewise.
37155 * modules/vasprintf (Makefile.am): Likewise.
37156 * modules/vsnprintf (Makefile.am): Likewise.
37157 * modules/xalloc (Makefile.am): Likewise.
37158 * modules/xgetcwd (Makefile.am): Likewise.
37159 * modules/xnanosleep (Makefile.am): Likewise.
37160 * modules/xreadlink (Makefile.am): Likewise.
37161 * modules/xstrtod (Makefile.am): Likewise.
37162 * modules/xstrtol (Makefile.am): Likewise.
37163 * modules/xstrtold (Makefile.am): Likewise.
37164 * modules/yesno (Makefile.am): Likewise.
37165 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
37167 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
37169 * modules/error (Makefile.am): Distribute files through
37170 EXTRA_DIST, not lib_SOURCES.
37172 2006-10-12 Eric Blake <ebb9@byu.net>
37174 * modules/error (Makefile.am): Distribute files in /lib.
37175 * modules/obstack (Makefile.am): Likewise.
37177 2006-10-12 Bruno Haible <bruno@clisp.org>
37179 * modules/acl (Makefile.am): Distribute all files in lib/ through
37181 * modules/arcfour (Makefile.am): Likewise.
37182 * modules/arctwo (Makefile.am): Likewise.
37183 * modules/argmatch (Makefile.am): Likewise.
37184 * modules/argz (Makefile.am): Likewise.
37185 * modules/atexit (Makefile.am): Likewise.
37186 * modules/backupfile (Makefile.am): Likewise.
37187 * modules/c-strtod (Makefile.am): Likewise.
37188 * modules/c-strtold (Makefile.am): Likewise.
37189 * modules/calloc (Makefile.am): Likewise.
37190 * modules/canon-host (Makefile.am): Likewise.
37191 * modules/canonicalize (Makefile.am): Likewise.
37192 * modules/chdir-long (Makefile.am): Likewise.
37193 * modules/chdir-safer (Makefile.am): Likewise.
37194 * modules/check-version (Makefile.am): Likewise.
37195 * modules/chown (Makefile.am): Likewise.
37196 * modules/cloexec (Makefile.am): Likewise.
37197 * modules/close-stream (Makefile.am): Likewise.
37198 * modules/closeout (Makefile.am): Likewise.
37199 * modules/crc (Makefile.am): Likewise.
37200 * modules/cycle-check (Makefile.am): Likewise.
37201 * modules/des (Makefile.am): Likewise.
37202 * modules/dirfd (Makefile.am): Likewise.
37203 * modules/dirname (Makefile.am): Likewise.
37204 * modules/dup2 (Makefile.am): Likewise.
37205 * modules/euidaccess (Makefile.am): Likewise.
37206 * modules/exclude (Makefile.am): Likewise.
37207 * modules/exitfail (Makefile.am): Likewise.
37208 * modules/fcntl-safer (Makefile.am): Likewise.
37209 * modules/file-type (Makefile.am): Likewise.
37210 * modules/fileblocks (Makefile.am): Likewise.
37211 * modules/filemode (Makefile.am): Likewise.
37212 * modules/filenamecat (Makefile.am): Likewise.
37213 * modules/fnmatch (Makefile.am): Likewise.
37214 * modules/fopen-safer (Makefile.am): Likewise.
37215 * modules/fpending (Makefile.am): Likewise.
37216 * modules/fprintftime (Makefile.am): Likewise.
37217 * modules/free (Makefile.am): Likewise.
37218 * modules/fsusage (Makefile.am): Likewise.
37219 * modules/ftruncate (Makefile.am): Likewise.
37220 * modules/fts (Makefile.am): Likewise.
37221 * modules/gc (Makefile.am): Likewise.
37222 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
37223 * modules/getaddrinfo (Makefile.am): Likewise.
37224 * modules/getcwd (Makefile.am): Likewise.
37225 * modules/getdelim (Makefile.am): Likewise.
37226 * modules/getdomainname (Makefile.am): Likewise.
37227 * modules/getgroups (Makefile.am): Likewise.
37228 * modules/gethostname (Makefile.am): Likewise.
37229 * modules/gethrxtime (Makefile.am): Likewise.
37230 * modules/getline (Makefile.am): Likewise.
37231 * modules/getloadavg (Makefile.am): Likewise.
37232 * modules/getlogin_r (Makefile.am): Likewise.
37233 * modules/getopt (Makefile.am): Likewise.
37234 * modules/getpass (Makefile.am): Likewise.
37235 * modules/getpass-gnu (Makefile.am): Likewise.
37236 * modules/getsubopt (Makefile.am): Likewise.
37237 * modules/gettime (Makefile.am): Likewise.
37238 * modules/gettimeofday (Makefile.am): Likewise.
37239 * modules/getugroups (Makefile.am): Likewise.
37240 * modules/getusershell (Makefile.am): Likewise.
37241 * modules/glob (Makefile.am): Likewise.
37242 * modules/group-member (Makefile.am): Likewise.
37243 * modules/hard-locale (Makefile.am): Likewise.
37244 * modules/hash (Makefile.am): Likewise.
37245 * modules/hmac-md5 (Makefile.am): Likewise.
37246 * modules/hmac-sha1 (Makefile.am): Likewise.
37247 * modules/human (Makefile.am): Likewise.
37248 * modules/idcache (Makefile.am): Likewise.
37249 * modules/imaxabs (Makefile.am): Likewise.
37250 * modules/imaxdiv (Makefile.am): Likewise.
37251 * modules/inet_ntop (Makefile.am): Likewise.
37252 * modules/inet_pton (Makefile.am): Likewise.
37253 * modules/inttostr (Makefile.am): Likewise.
37254 * modules/isapipe (Makefile.am): Likewise.
37255 * modules/lchown (Makefile.am): Likewise.
37256 * modules/long-options (Makefile.am): Likewise.
37257 * modules/lstat (Makefile.am): Likewise.
37258 * modules/malloc (Makefile.am): Likewise.
37259 * modules/mathl (Makefile.am): Likewise.
37260 * modules/mbchar (Makefile.am): Likewise.
37261 * modules/md2 (Makefile.am): Likewise.
37262 * modules/md4 (Makefile.am): Likewise.
37263 * modules/md5 (Makefile.am): Likewise.
37264 * modules/memcasecmp (Makefile.am): Likewise.
37265 * modules/memchr (Makefile.am): Likewise.
37266 * modules/memcmp (Makefile.am): Likewise.
37267 * modules/memcoll (Makefile.am): Likewise.
37268 * modules/memcpy (Makefile.am): Likewise.
37269 * modules/memmem (Makefile.am): Likewise.
37270 * modules/memmove (Makefile.am): Likewise.
37271 * modules/mempcpy (Makefile.am): Likewise.
37272 * modules/memrchr (Makefile.am): Likewise.
37273 * modules/memset (Makefile.am): Likewise.
37274 * modules/memxor (Makefile.am): Likewise.
37275 * modules/mkancesdirs (Makefile.am): Likewise.
37276 * modules/mkdir (Makefile.am): Likewise.
37277 * modules/mkdir-p (Makefile.am): Likewise.
37278 * modules/mkdtemp (Makefile.am): Likewise.
37279 * modules/mkstemp (Makefile.am): Likewise.
37280 * modules/mktime (Makefile.am): Likewise.
37281 * modules/modechange (Makefile.am): Likewise.
37282 * modules/mountlist (Makefile.am): Likewise.
37283 * modules/nanosleep (Makefile.am): Likewise.
37284 * modules/openat (Makefile.am): Likewise.
37285 * modules/pagealign_alloc (Makefile.am): Likewise.
37286 * modules/physmem (Makefile.am): Likewise.
37287 * modules/poll (Makefile.am): Likewise.
37288 * modules/posixtm (Makefile.am): Likewise.
37289 * modules/posixver (Makefile.am): Likewise.
37290 * modules/putenv (Makefile.am): Likewise.
37291 * modules/quote (Makefile.am): Likewise.
37292 * modules/quotearg (Makefile.am): Likewise.
37293 * modules/raise (Makefile.am): Likewise.
37294 * modules/read-file (Makefile.am): Likewise.
37295 * modules/readline (Makefile.am): Likewise.
37296 * modules/readlink (Makefile.am): Likewise.
37297 * modules/readtokens (Makefile.am): Likewise.
37298 * modules/readutmp (Makefile.am): Likewise.
37299 * modules/realloc (Makefile.am): Likewise.
37300 * modules/regex (Makefile.am): Likewise.
37301 * modules/rename (Makefile.am): Likewise.
37302 * modules/rename-dest-slash (Makefile.am): Likewise.
37303 * modules/rijndael (Makefile.am): Likewise.
37304 * modules/rmdir (Makefile.am): Likewise.
37305 * modules/rpmatch (Makefile.am): Likewise.
37306 * modules/safe-read (Makefile.am): Likewise.
37307 * modules/safe-write (Makefile.am): Likewise.
37308 * modules/same (Makefile.am): Likewise.
37309 * modules/save-cwd (Makefile.am): Likewise.
37310 * modules/savedir (Makefile.am): Likewise.
37311 * modules/setenv (Makefile.am): Likewise.
37312 * modules/settime (Makefile.am): Likewise.
37313 * modules/sha1 (Makefile.am): Likewise.
37314 * modules/sig2str (Makefile.am): Likewise.
37315 * modules/snprintf (Makefile.am): Likewise.
37316 * modules/stdlib-safer (Makefile.am): Likewise.
37317 * modules/stpcpy (Makefile.am): Likewise.
37318 * modules/stpncpy (Makefile.am): Likewise.
37319 * modules/strcase (Makefile.am): Likewise.
37320 * modules/strcasestr (Makefile.am): Likewise.
37321 * modules/strchrnul (Makefile.am): Likewise.
37322 * modules/strcspn (Makefile.am): Likewise.
37323 * modules/strdup (Makefile.am): Likewise.
37324 * modules/strerror (Makefile.am): Likewise.
37325 * modules/strftime (Makefile.am): Likewise.
37326 * modules/strndup (Makefile.am): Likewise.
37327 * modules/strnlen (Makefile.am): Likewise.
37328 * modules/strpbrk (Makefile.am): Likewise.
37329 * modules/strsep (Makefile.am): Likewise.
37330 * modules/strstr (Makefile.am): Likewise.
37331 * modules/strtod (Makefile.am): Likewise.
37332 * modules/strtoimax (Makefile.am): Likewise.
37333 * modules/strtok_r (Makefile.am): Likewise.
37334 * modules/strtol (Makefile.am): Likewise.
37335 * modules/strtoll (Makefile.am): Likewise.
37336 * modules/strtoul (Makefile.am): Likewise.
37337 * modules/strtoull (Makefile.am): Likewise.
37338 * modules/strtoumax (Makefile.am): Likewise.
37339 * modules/strverscmp (Makefile.am): Likewise.
37340 * modules/time_r (Makefile.am): Likewise.
37341 * modules/timegm (Makefile.am): Likewise.
37342 * modules/tmpfile-safer (Makefile.am): Likewise.
37343 * modules/unistd-safer (Makefile.am): Likewise.
37344 * modules/unlinkdir (Makefile.am): Likewise.
37345 * modules/userspec (Makefile.am): Likewise.
37346 * modules/utime (Makefile.am): Likewise.
37347 * modules/utimecmp (Makefile.am): Likewise.
37348 * modules/utimens (Makefile.am): Likewise.
37349 * modules/vasnprintf (Makefile.am): Likewise.
37350 * modules/vasprintf (Makefile.am): Likewise.
37351 * modules/vsnprintf (Makefile.am): Likewise.
37352 * modules/xalloc (Makefile.am): Likewise.
37353 * modules/xgetcwd (Makefile.am): Likewise.
37354 * modules/xnanosleep (Makefile.am): Likewise.
37355 * modules/xreadlink (Makefile.am): Likewise.
37356 * modules/xstrtod (Makefile.am): Likewise.
37357 * modules/xstrtol (Makefile.am): Likewise.
37358 * modules/xstrtold (Makefile.am): Likewise.
37359 * modules/yesno (Makefile.am): Likewise.
37361 2006-10-12 Jim Meyering <jim@meyering.net>
37363 * m4/getloadavg.m4: Revert the change below.
37365 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
37366 lib/getloadavg.c using "ls -L", not "test -f". The latter would
37367 fail with a symlink, which is what coreutils' ./bootstrap now
37368 creates by default.
37370 2006-10-12 Bruno Haible <bruno@clisp.org>
37372 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
37374 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
37375 MSVC and mingw explicitly.
37377 2006-10-11 Simon Josefsson <jas@extundo.com>
37378 Bruno Haible <bruno@clisp.org>
37380 Add support for multiple gnulib-tool invocations in the scope of a
37381 single configure.ac file.
37382 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
37383 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
37384 with the same contents as the _LIBADD variable.
37385 (func_emit_initmacro_start, func_emit_initmacro_end,
37386 func_emit_initmacro_done): New functions.
37387 (func_import, func_create_testdir): Invoke them. Allow the identifiers
37388 gl_LIBOBJS and gl_LTLIBOBJS.
37390 2006-10-11 Bruno Haible <bruno@clisp.org>
37392 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
37393 (func_create_testdir): Don't create po/Makefile.am, don't invoke
37394 autoreconf. Instead, invoke autopoint explicitly but move back the
37395 *.m4 files from gnulib.
37397 2006-10-11 Bruno Haible <bruno@clisp.org>
37399 * gnulib-tool (func_usage): Make module names after --create-testdir
37401 (func_create_testdir): If no module was specified, use nearly all
37404 2006-10-12 Jim Meyering <jim@meyering.net>
37406 Big performance improvement for fts-based tools that use FTS_NOSTAT.
37407 Avoid spurious inode-mismatch problems on non-POSIX file systems.
37408 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
37409 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
37410 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
37411 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
37412 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
37413 (fts_set_stat_required): New function.
37414 (fts_open): Defer the calls to fts_stat, if possible or requested.
37415 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
37416 into fts_stat itself.
37417 (fts_read): Perform any required (deferred) fts_stat call.
37418 (fts_build): Likewise, for the directory we're about to open and read.
37419 In the readdir loop, carefully decide whether each entry will require
37420 an eventual call to fts_stat, using dirent.d_type info if available.
37421 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
37422 a command line argument into this function. Update all callers.
37423 Map a return value of FTS_DOT to FTS_D for a command line argument.
37424 * modules/fts (Depends-on): Add d-type. Alphabetize.
37425 Thanks to Miklos Szeredi for his tenacity and for the initial
37426 bug report about "find" failing on a FUSE-based file system.
37428 * lib/fts.c (fts_open): Use consistent indentation.
37430 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
37432 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
37433 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
37434 reported by Jim Meyering. All uses of cache variables renamed
37435 to match Autoconf's.
37436 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
37439 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
37440 Fix misspelling in diagnostic.
37442 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
37444 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
37445 defined. Problem reported by Matthew Woehlke.
37447 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
37448 Add support for Tandem NonStop R series.
37449 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
37452 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
37453 (has_trailing_slash): Omit size arg; all callers changed.
37454 Omit 'inline', since it doesn't help performance and we'd
37455 need to configure it.
37456 Don't count //, ///, etc. as having a trailing slash.
37457 As a side effect, this removes a C99ism reported by Matthew Woehlke.
37458 (rpl_rename_dest_slash): On failure, use rename's errno rather
37459 than (in some cases) an incorrect or junk errno.
37460 Simplify code by removing need to compute length; this does
37461 cause it to make two passes instead of one over the file name,
37464 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
37465 change, since Autoconf's version may no longer be appropriate now
37466 that we are using CVS Autoconf's version. Add support for Tandem.
37468 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
37469 Bruno Haible <bruno@clisp.org>
37471 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
37472 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
37473 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
37474 gl_AC_TYPE_LONG_LONG.
37476 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
37477 instead of HAVE_LONG_LONG.
37478 * lib/printf-args.c (printf_fetchargs): Likewise.
37479 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
37480 * lib/vasnprintf.c (VASNPRINTF): Likewise.
37481 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
37482 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
37483 gl_AC_TYPE_LONG_LONG.
37485 2006-10-11 Bruno Haible <bruno@clisp.org>
37487 * m4/longlong.m4: Add comments.
37488 * m4/ulonglong.m4: Likewise.
37490 2006-10-10 Bruno Haible <bruno@clisp.org>
37492 Make it possible to #define stpcpy, strdup to aliases.
37493 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
37494 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
37496 2006-10-10 Bruno Haible <bruno@clisp.org>
37498 Make it possible to #define gcd to an alias.
37499 * lib/gcd.c: Include config.h.
37501 2006-10-10 Bruno Haible <bruno@clisp.org>
37503 Make it possible to #define c_isascii to an alias.
37504 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
37505 defined. Undefine the macros before defining them, to avoid gcc
37507 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
37508 define NO_C_CTYPE_MACROS early.
37510 2006-10-10 Bruno Haible <bruno@clisp.org>
37512 Make it possible to #define set_program_name to an alias.
37513 * lib/progname.c: Don't undefine set_program_name; instead, undefine
37514 ENABLE_RELOCATABLE early.
37516 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
37518 Port to Tandem NSK OSS, which has 64-bit signed int but at most
37519 32-bit unsigned int. Problem reported by Matthew Woehlke in:
37520 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
37521 More generally, don't assume that 64-bit signed int is available
37522 if unsigned int is, and vice versa.
37523 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
37524 unsigned symbols, not on their signed counterparts.
37525 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
37526 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
37527 (UINT64_C, UINTMAX_C):
37529 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
37530 unsigned counterparts.
37531 (Have_long_long, Unsigned): New macros.
37532 (Int): Renamed from INT.
37533 (strtoimax): Use the new macros.
37534 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
37535 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
37536 * modules/inttypes (inttypes.h): Substitute
37537 HAVE_UNSIGNED_LONG_LONG_INT.
37538 * modules/stdint (stdint.h): Likewise.
37539 (Files): Add m4/ulonglong.m4.
37541 2006-10-10 Bruno Haible <bruno@clisp.org>
37543 Fix a gcc -Wshadow warning.
37544 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
37546 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
37547 gl_linked_indexof_from_to): Likewise.
37548 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
37550 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
37552 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
37553 Reported by Eric Blake.
37555 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
37557 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
37558 for NetBSD. Problem reported by Bruno Haible.
37560 2006-10-09 Jim Meyering <jim@meyering.net>
37562 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
37563 Patch from Bruno Haible.
37565 2006-10-09 Jim Meyering <jim@meyering.net>
37567 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
37568 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
37569 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
37571 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
37573 Don't include <config.h> twice; this doesn't work in some cases,
37574 e.g., when config.h has "#define intmax_t long long int" and
37575 we include <config.h>, <inttypes.h>, <config.h> in that order.
37576 Problem reported by Matthew Woehlke in:
37577 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
37578 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
37579 * lib/fts-cycle.c: Don't include config.h.
37580 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
37581 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
37582 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
37583 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
37585 * lib/xstrtoumax.c: Likewise.
37586 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
37587 __strtol and the like, so that this module is more like its siblings.
37588 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
37589 Remove; no longer needed now that we assume gnulib inttypes.h.
37591 2006-10-08 Bruno Haible <bruno@clisp.org>
37593 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
37596 2006-10-07 Jim Meyering <jim@meyering.net>
37598 * modules/inttypes (inttypes.h): Revert what seems to have been
37599 an inadvertent part of today's change: use "|", not "/" in the
37600 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
37602 2006-10-07 Bruno Haible <bruno@clisp.org>
37604 * modules/sublist: New file.
37606 2006-10-07 Bruno Haible <bruno@clisp.org>
37608 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
37609 * modules/argz (argz.h): Likewise.
37610 * modules/arpa_inet (arpa/inet.h): Likewise.
37611 * modules/byteswap (byteswap.h): Likewise.
37612 * modules/configmake (configmake.h): Likewise.
37613 * modules/fcntl (fcntl.h): Likewise.
37614 * modules/fnmatch (fnmatch.h): Likewise.
37615 * modules/getopt (getopt.h): Likewise.
37616 * modules/glob (glob.h): Likewise.
37617 * modules/inttypes (inttypes.h): Likewise.
37618 * modules/netinet_in (netinet/in.h): Likewise.
37619 * modules/poll (poll.h): Likewise.
37620 * modules/stdbool (stdbool.h): Likewise.
37621 * modules/stdint (stdint.h): Likewise.
37622 * modules/sys_select (sys/select.h): Likewise.
37623 * modules/sys_socket (sys/socket.h): Likewise.
37624 * modules/sys_stat (sys/stat.h): Likewise.
37625 * modules/sysexits (sysexits.h): Likewise.
37626 * modules/unistd (unistd.h): Likewise.
37627 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37628 Add a "DO NOT EDIT" comment to the generated file.
37629 (func_import): Likewise for gnulib-comp.m4.
37631 2006-10-07 Bruno Haible <bruno@clisp.org>
37633 * lib/gl_sublist.h: New file.
37634 * lib/gl_sublist.c: New file.
37636 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
37638 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
37639 name (relative to the original working directory) and the file
37640 name component (relative to the temporary working directory). All
37642 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
37643 * lib/mkdir-p.c (make_dir_parents): Likewise.
37644 * lib/mkdir-p.h (make_dir_parents): Likewise.
37646 2006-10-06 Eric Blake <ebb9@byu.net>
37648 Define several macros for use by the clean-temp module.
37649 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
37650 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
37651 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
37653 * lib/clean-temp.h (close_stream_temp): New declaration.
37654 * lib/clean-temp.c (includes): Pull in headers according to what
37655 other modules are in use.
37656 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
37658 2006-10-06 Bruno Haible <bruno@clisp.org>
37660 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
37661 instead of fopen, fwriteerror.
37663 2006-10-06 Bruno Haible <bruno@clisp.org>
37665 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
37666 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
37668 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
37669 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
37670 Return an error indicator.
37671 Suggested by Eric Blake.
37673 2006-10-06 Bruno Haible <bruno@clisp.org>
37675 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
37676 Reported by Eric Blake.
37678 2006-10-06 Bruno Haible <bruno@clisp.org>
37680 * modules/closeout (Description): Mention stderr too.
37682 2006-10-06 Bruno Haible <bruno@clisp.org>
37683 and Paul Eggert <eggert@cs.ucla.edu>
37685 * lib/closeout.c (close_stdout): Also close stderr.
37686 * lib/closeout.h: Update comment.
37688 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
37690 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
37691 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
37692 * lib/dirchownmod.c: Include lchown.h.
37693 * lib/lchown.c: Don't include files that lchown.h now includes.
37694 Don't declare chown, since lchown.h now does that.
37695 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
37696 (lchown): Define to rpl_chown if lchown is declared but
37697 does not exist. Declare using a prototype if lchown is not
37698 declared. Add a copyright notice.
37699 * lib/mkstemp.h: Include <unistd.h>.
37700 * lib/openat.c: Include lchown.h.
37702 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
37703 we now test for that separately.
37704 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
37705 rather than O_NOFOLLOW, when testing whether it's possible to
37706 avoid a race condition reliably.
37707 * lib/savewd.c (savewd_chdir): Likewise.
37709 Remove macros that are no longer needed now that stdint.h is
37711 * lib/fsusage.c (UINTMAX_MAX): Remove.
37712 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
37713 * lib/utimecmp.c (SIZE_MAX): Remove.
37715 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
37717 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
37718 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
37721 2006-10-05 Bruno Haible <bruno@clisp.org>
37723 * lib/gl_list.h (gl_sortedlist_search_from_to,
37724 gl_sortedlist_indexof_from_to): New declarations.
37725 (gl_list_implementation): New fields sortedlist_search_from_to,
37726 sortedlist_indexof_from_to.
37727 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
37729 * lib/gl_list.c (gl_sortedlist_search_from_to,
37730 gl_sortedlist_indexof_from_to): New functions.
37731 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
37733 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
37734 (gl_array_sortedlist_search_from_to): New function.
37735 (gl_array_list_implementation): Update.
37736 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
37738 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
37739 (gl_carray_sortedlist_search_from_to): New function.
37740 (gl_carray_list_implementation): Update.
37741 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
37742 gl_linked_sortedlist_indexof_from_to): New functions.
37743 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
37744 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
37745 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
37746 gl_tree_sortedlist_indexof_from_to): New functions.
37747 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
37748 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
37750 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
37751 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
37754 2006-10-05 Bruno Haible <bruno@clisp.org>
37756 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
37757 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
37758 (struct gl_list_implementation): Add fields search_from_to,
37759 indexof_from_to. Remove fields search, indexof.
37760 (gl_list_search): Use the search_from_to method.
37761 (gl_list_search_from, gl_list_search_from_to): New functions.
37762 (gl_list_indexof): Use the indexof_from_to method.
37763 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
37764 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
37765 (gl_list_search_from, gl_list_search_from_to): New functions.
37766 (gl_list_indexof): Use the indexof_from_to method.
37767 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
37768 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
37769 gl_array_indexof. Add start_index, end_index arguments.
37770 (gl_array_search_from_to): Renamed from gl_array_search. Add
37771 start_index, end_index arguments.
37772 (gl_array_remove, gl_array_list_implementation): Update.
37773 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
37774 gl_carray_indexof. Add start_index, end_index arguments.
37775 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
37776 start_index, end_index arguments.
37777 (gl_carray_remove, gl_carray_list_implementation): Update.
37778 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
37779 gl_linked_search. Add start_index, end_index arguments.
37780 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
37781 start_index, end_index arguments.
37782 (gl_linked_remove): Update.
37783 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
37784 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
37785 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
37787 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
37788 gl_tree_search. Add start_index, end_index arguments.
37789 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
37790 start_index, end_index arguments.
37791 (gl_tree_remove): Update.
37792 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
37793 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
37794 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
37796 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
37797 gl_tree_search. Add start_index, end_index arguments.
37798 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
37799 start_index, end_index arguments.
37800 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
37802 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
37804 2006-10-05 Bruno Haible <bruno@clisp.org>
37806 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
37808 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
37809 fwriteerror_temp): New declarations.
37810 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
37811 (descriptors): New variable.
37812 (cleanup): First, close the descriptors.
37813 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
37814 fclose_temp, fwriteerror_temp): New functions.
37816 2006-10-04 Jim Meyering <jim@meyering.net>
37818 * lib/fts.c (fts_open): Tiny comment change.
37820 2006-10-04 Bruno Haible <bruno@clisp.org>
37822 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
37823 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
37825 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
37826 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
37827 gl_LOCK_EARLY_BODY.
37828 (gl_LOCK): Require gl_LOCK_BODY.
37830 2006-10-04 Bruno Haible <bruno@clisp.org>
37832 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
37833 (gl_oset_search_atleast): New declaration.
37834 (struct gl_oset_implementation): Add field 'search_atleast'.
37835 (gl_oset_search_atleast): New inline function.
37836 * lib/gl_oset.c (gl_oset_search_atleast): New function.
37837 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
37838 (gl_array_oset_implementation): Update.
37839 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
37840 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
37841 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
37843 2006-10-04 Bruno Haible <bruno@clisp.org>
37845 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
37847 2006-10-03 Bruno Haible <bruno@clisp.org>
37849 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
37850 from gl_avltreehash_list_implementation.
37852 2006-10-03 Bruno Haible <bruno@clisp.org>
37854 * lib/gl_oset.c (gl_oset_add): Fix return type.
37856 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
37858 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
37860 2006-10-02 Eric Blake <ebb9@byu.net>
37862 * modules/strnlen (Depends-on): Add extensions.
37864 2006-10-02 Eric Blake <ebb9@byu.net>
37866 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
37867 definition in 2.60+.
37869 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
37871 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
37874 2006-10-02 Bruno Haible <bruno@clisp.org>
37876 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
37877 to the AUTOMAKE_OPTIONS.
37878 Reported by Jim Meyering.
37880 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
37882 Work around bug in Solaris 10 /proc file system:
37883 /proc/self/fd/NNN/.. isn't the parent directory of
37884 the directory whose file descriptor is NNN. This needs to
37885 be worked around at run time, not compile time, since a
37886 program might be built on Solaris 8, where things work, and
37888 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
37889 to use the following interface instead:
37890 (OPENAT_BUFFER_SIZE): New macro.
37891 (openat_proc_name): New function.
37892 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
37893 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
37895 * lib/openat-proc.c: New file.
37896 * modules/openat (Files): Add lib/openat-proc.c.
37897 (Depends-on): Add same-inode, stdbool.
37898 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
37900 2006-09-29 Bruno Haible <bruno@clisp.org>
37902 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
37903 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
37904 argument. Set stdout_closed before testing for ferror, not after.
37905 (fwriteerror, fwriteerror_no_ebadf): New functions.
37907 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37909 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
37911 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
37913 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
37914 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
37916 2006-09-28 Jim Meyering <jim@meyering.net>
37918 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
37919 Include <unistd.h>.
37921 2006-09-28 Bruno Haible <bruno@clisp.org>
37923 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
37924 * modules/linkedhash-list (Depends-on): Likewise.
37925 * modules/rbtreehash-list (Depends-on): Likewise.
37927 2006-09-28 Bruno Haible <bruno@clisp.org>
37929 * lib/strndup.h: Simplify the redefinition of strndup.
37930 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
37931 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
37933 2006-09-28 Bruno Haible <bruno@clisp.org>
37935 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
37936 * lib/gl_linkedhash_list.c: Likewise.
37937 * lib/gl_rbtreehash_list.c: Likewise.
37939 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
37941 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
37944 * lib/__fpending.h: Don't include <stdio_ext.h> unless
37945 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
37946 it causes <stdio_ext.h> to cause a compile-time error.
37947 Problem reported by Nelson H. F. Beebe.
37948 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
37949 of HAVE_DECL___PENDING.
37951 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
37952 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
37955 2006-09-27 Jim Meyering <jim@meyering.net>
37957 This file could end up with a definition for a function
37958 named __strndup, rather than rpl_strndup on a system with
37959 incomplete weak_alias support.
37960 * lib/strndup.c (strndup): Rename from __strndup.
37961 Remove #defines that used to map __strndup to strndup.
37962 Don't use K&R prototypes.
37963 Remove LIBC-related code, since this file is not sync'd with glibc.
37964 * lib/strndup.h: Revamp, accordingly.
37965 * m4/strndup.m4: Modernize.
37967 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
37969 * modules/savewd (Depends-on): Add 'raise'.
37970 * lib/savewd.c: Include <signal.h>, for 'raise'.
37972 2006-09-26 Jim Meyering <jim@meyering.net>
37974 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
37975 when we detect Darwin 8.7.0's acl_get_file bug.
37976 Rearrange to perform the new (below) run-test while $LIBS
37977 contains any acl-related library. Set USE_ACL at the end.
37978 (gl_ACL_GET_FILE): New function.
37980 2006-09-26 Eric Blake <ebb9@byu.net>
37982 * lib/verror.c: Include <config.h> unconditionally.
37984 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
37986 * modules/clock-time (Maintainer): Add self.
37987 * modules/getlogin_r (Depends-on): Add extensions.
37989 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37991 * modules/clock-time: New module.
37992 * modules/nanosleep (Depends-on): Add clock-time.
37993 * modules/gethrxtime (Depends-on): Likewise.
37994 * modules/gettime (Depends-on): Likewise.
37995 * modules/settime (Depends-on): Likewise.
37997 * modules/fts-lgpl: Depend on openat.
37998 * modules/mkancesdirs: Depend on savewd.
37999 * modules/mkdir-p: Likewise.
38001 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38003 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
38005 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
38006 `gl_have_arbitrary_file_name_length_limit' to
38007 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
38008 actually works between configure runs.
38010 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38011 Bruno Haible <bruno@clisp.org>
38013 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
38015 2006-09-25 Jim Meyering <jim@meyering.net>
38017 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
38018 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
38020 2006-09-25 Eric Blake <ebb9@byu.net>
38022 * gnulib-tool (func_import, func_create_testdir): Fix typos in
38023 exec's in 2006-09-18 patch when shuffling fds.
38025 2006-09-25 Bruno Haible <bruno@clisp.org>
38027 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
38028 Reported by Jim Meyering.
38030 2006-09-24 Jim Meyering <jim@meyering.net>
38032 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
38033 compare a pointer against a literal "0". That caused failures with
38034 at least HP-UX's hpcc.
38036 2006-09-22 Simon Josefsson <jas@extundo.com>
38040 * modules/gc-hmac-sha1:
38041 * modules/gc-hmac-md5:
38043 * modules/gc-arcfour: Distribute more files.
38045 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38047 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
38048 (gl_linked_iterator_from_to): Initialize struct completely.
38049 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
38050 (gl_tree_iterator_from_to): Likewise
38051 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
38052 * lib/gl_array_list.c [lint] (gl_array_iterator)
38053 (gl_array_iterator_from_to): Likewise.
38054 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
38055 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
38056 (gl_carray_iterator_from_to): Likewise.
38058 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
38059 * lib/md4.c (md4_process_block): Remove unused variable.
38060 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
38061 parentheses for clarity.
38063 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38065 * modules/bison-i18n (Depends-on): Add gettext.
38067 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38069 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
38070 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
38071 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
38072 also add missing comma that caused broken test.
38073 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
38074 stdlib.h, for `abort'.
38075 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
38077 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
38078 include unistd.h if present, for `rmdir'.
38079 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
38081 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
38082 in the process include standard headers for prototypes.
38083 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
38084 gets declared on GNU/Linux.
38085 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
38086 unistd.h, for `rmdir'.
38087 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
38089 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
38091 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
38093 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
38095 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38097 * gnulib-tool (func_version): Create output all at once. This
38098 may help avoid triggering unnecessary SIGPIPEs, and at any
38099 rate it doesn't hurt.
38101 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38102 Bruno Haible <bruno@clisp.org>
38104 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
38105 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38106 * m4/signed.m4 (bh_C_SIGNED): Likewise.
38108 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
38109 (gl_FUNC_VASPRINTF): Invoke it.
38111 2006-09-22 Bruno Haible <bruno@clisp.org>
38113 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
38114 getloadavg.c as first argument.
38116 2006-09-22 Bruno Haible <bruno@clisp.org>
38118 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
38119 at the beginning of the gl_INIT macro.
38120 * modules/getloadavg (configure.ac): Pass $gl_source_base to
38123 2006-09-22 Bruno Haible <bruno@clisp.org>
38125 * gnulib-tool (func_create_megatestdir): Don't include the config-h
38127 Suggested by Ralf Wildenhues.
38129 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
38131 Import this patch from libc:
38133 2006-09-06 Jakub Jelinek <jakub@redhat.com>
38135 * lib/regex_internal.c (re_string_reconstruct): Handle
38136 offset < pstr->valid_raw_len && pstr->offsets_needed case.
38137 Ensure no bytes read before raw_mbs array. Pass a saved copy of
38138 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
38139 re_string_context_at.
38141 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
38143 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
38144 gl_REGEX now does it for us.
38145 (gl_REGEX): Add test taken from
38146 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
38148 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
38149 Check that large offsets work. Modernize Autoconf usages.
38150 Prefer "yes" to mean a good thing rather than a bad.
38151 Don't put "#define mkstemp" in config.h, as this might interfere
38152 with standard system headers that "#define mkstemp mkstemp64".
38154 * modules/mkstemp (Depends-on): Add extensions, so that
38155 mkstemp is visible on some platforms.
38156 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
38157 (Include): Change to "mkstemp.h" from <stdlib.h>.
38158 (Files): Add mkstemp.h.
38160 * lib/mkstemp.h: New file, since some standard headers
38162 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
38163 Include "mkstemp.h".
38164 Make the _LIBC code resemble glibc original more,
38165 e.g., use K&R style.
38166 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
38167 (mkstemp): Remove, since mkstemp.h does this for us.
38168 * lib/stdlib--.h: Include mkstemp.h.
38170 Import this patch from libc:
38172 2006-04-07 Ulrich Drepper <drepper@redhat.com>
38174 * lib/tempname.c (__gen_tempname): Change attempts_min
38175 into a macro. Use preprocessor to decide how to initialize
38176 attempts [Coverity CID 67].
38178 2006-09-20 Bruno Haible <bruno@clisp.org>
38180 * lib/mkdtemp.c: Import from libc.
38181 2006-04-07 Ulrich Drepper <drepper@redhat.com>
38182 * sysdeps/posix/tempname.c (__gen_tempname): Change
38183 attempts_min into a macro. Use preprocessor to decide how to
38184 initialize attempts [Coverity CID 67].
38185 2001-11-27 Paul Eggert <eggert@twinsun.com>
38186 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
38187 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
38189 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38191 * gnulib-tool (func_exit): New function, to allow to pass the
38192 exit status portably through the trap. Use everywhere.
38193 (--help, --version): Signal a write error.
38194 (trap): catch SIGPIPE, for write errors.
38195 Exit at the end of the trap, with the correct exit status.
38197 2006-09-19 Karl Berry <karl@gnu.org>
38199 * doc/gnulib.texi: note about the license texinfo files.
38201 2006-09-19 Eric Blake <ebb9@byu.net>
38203 * gnulib-tool: Avoid space-tab.
38205 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
38207 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
38208 that prevented coreutils 6.1 from building. Problem reported
38209 by Petter Reinholdtsen.
38211 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
38213 * gnulib-tool (avoidlist): Fix typo that broke options like
38214 --avoid=lock that are used by coreutils bootstrap.
38216 2006-09-18 Mark D. Baushke <mdb@gnu.org>
38218 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
38219 more systematically.
38221 2006-09-18 Jim Meyering <jim@meyering.net>
38223 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
38225 2006-09-18 Bruno Haible <bruno@clisp.org>
38227 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
38229 2006-09-18 Bruno Haible <bruno@clisp.org>
38231 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
38232 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
38233 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
38234 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
38235 * m4/gettext.m4: Require autoconf >= 2.52.
38236 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
38237 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
38238 of gl_cv_header_inttypes_h.
38240 2006-09-18 Bruno Haible <bruno@clisp.org>
38242 * lib/javaversion.c: Include configmake.h.
38244 2006-09-18 Bruno Haible <bruno@clisp.org>
38246 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
38247 avoid that the while loops be executed in a subshell.
38249 2006-09-18 Bruno Haible <bruno@clisp.org>
38251 * MODULES.html.sh (func_module): Break long lines.
38252 Suggested by Bruce Korb <bkorb@gnu.org>.
38254 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38256 Speed up by a factor of 1.12.
38257 * gnulib-tool (nl): New variable.
38258 (func_import): Rewrite include directive extraction to only read each
38261 2006-09-17 Bruno Haible <bruno@clisp.org>
38263 * modules/javaversion (Makefile.am): Remove DEFS setting.
38264 (Depends-on): Add configmake, for PKGDATADIR definition.
38266 2006-09-17 Bruno Haible <bruno@clisp.org>
38268 * gnulib-tool (func_create_testdir): Rewrite all files at once.
38270 2006-09-17 Bruno Haible <bruno@clisp.org>
38272 * gnulib-tool (func_append): New function, stolen from libtool.m4.
38273 (func_modules_transitive_closure, func_modules_add_dummy,
38274 func_modules_to_filelist, func_import, func_create_testdir,
38275 func_create_megatestdir, ...): Use it wherever possible.
38276 Suggested by Ralf Wildenhues.
38278 2006-09-16 Karl Berry <karl@gnu.org>
38280 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
38281 to avoid sectioning errors.
38282 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
38283 [ifinfo]: blank line after @center-ed titles.
38284 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
38285 Spell FSF address consistently with others.
38286 (These changes approved by rms.)
38288 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38290 Speed up by a factor of 1.61.
38291 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
38292 already checked module names again.
38294 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38296 Speed up by a factor of 1.13.
38297 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
38298 for new_files, and the input to func_add_or_update.
38300 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38302 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
38303 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
38305 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
38307 * modules/mkancesdirs (Depends-on): Add fcntl.
38308 * modules/savewd: New file.
38309 * MODULES.html.sh (File system functions): Add savewd.
38311 * modules/configmake (Makefile.am): Add support for the
38312 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
38314 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
38316 * m4/savewd.m4: New file.
38318 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
38320 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
38321 (dirchownmod): New arg FD. All callers changed.
38322 Use FD rather than opening the directory ourself, as opening is
38323 now the caller's responsibility.
38324 * lib/dirchownmod.h: Likewise.
38325 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
38326 hosts that require <sys/types.h> before <sys/stat.h>. Include
38327 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
38328 (test_dir): Remove.
38329 (mkancesdirs): Return length of prefix of FILE that has already
38330 been made, or -2 if there is a child doing the work. Redo
38331 algorithm so that it is O(N) rather than O(N**2). Optimize away
38332 ".", and treat ".." specially since it might stray back into
38333 already-created areas. Use a subprocess if necessary. New arg
38334 WD; all users changed. MAKE_DIR function should now return 1
38335 if it creates a directory that is not readable. Return -2 if
38336 a child process is spun off.
38337 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
38338 Adjust signature to match code.
38339 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
38340 (make_dir_parents): Use a subprocess if necessary. New arg WD;
38342 * lib/savewd.c, lib/savewd.h: New files.
38344 2006-09-15 Jim Meyering <jim@meyering.net>
38346 * modules/rename-dest-slash: New module.
38347 * MODULES.html.sh (posix_compat): Add it here.
38349 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
38351 2006-09-15 Jim Meyering <jim@meyering.net>
38353 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
38356 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
38358 2006-09-15 Jim Meyering <jim@meyering.net>
38360 * lib/rename-dest-slash.c (has_trailing_slash): Use
38361 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
38362 (rpl_rename_dest_slash): Perform the cheaper trailing slash
38363 test before testing whether SRC is a directory.
38364 Suggestions from Bruno Haible.
38366 Avoid a warning about an unused variable.
38367 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
38368 into the #ifdef block where it's used.
38370 * lib/rename-dest-slash.c: New file.
38372 2006-09-14 Bruno Haible <bruno@clisp.org>
38374 * lib/allocsa.c: Include <config.h> unconditionally.
38375 * lib/asnprintf.c: Likewise.
38376 * lib/asprintf.c: Likewise.
38377 * lib/c-strcasecmp.c: Likewise.
38378 * lib/c-strcasestr.c: Likewise.
38379 * lib/c-strncasecmp.c: Likewise.
38380 * lib/c-strstr.c: Likewise.
38381 * lib/classpath.c: Likewise.
38382 * lib/clean-temp.c: Likewise.
38383 * lib/concatpath.c: Likewise.
38384 * lib/copy-file.c: Likewise.
38385 * lib/csharpcomp.c: Likewise.
38386 * lib/csharpexec.c: Likewise.
38387 * lib/execute.c: Likewise.
38388 * lib/fatal-signal.c: Likewise.
38389 * lib/findprog.c: Likewise.
38390 * lib/fwriteerror.c: Likewise.
38391 * lib/gl_array_list.c: Likewise.
38392 * lib/gl_array_oset.c: Likewise.
38393 * lib/gl_avltree_list.c: Likewise.
38394 * lib/gl_avltree_oset.c: Likewise.
38395 * lib/gl_avltreehash_list.c: Likewise.
38396 * lib/gl_carray_list.c: Likewise.
38397 * lib/gl_linked_list.c: Likewise.
38398 * lib/gl_linkedhash_list.c: Likewise.
38399 * lib/gl_list.c: Likewise.
38400 * lib/gl_oset.c: Likewise.
38401 * lib/gl_rbtree_list.c: Likewise.
38402 * lib/gl_rbtree_oset.c: Likewise.
38403 * lib/gl_rbtreehash_list.c: Likewise.
38404 * lib/imaxabs.c: Likewise.
38405 * lib/imaxdiv.c: Likewise.
38406 * lib/javacomp.c: Likewise.
38407 * lib/javaexec.c: Likewise.
38408 * lib/javaversion.c: Likewise.
38409 * lib/linebreak.c: Likewise.
38410 * lib/localcharset.c: Likewise.
38411 * lib/lock.c: Likewise.
38412 * lib/mbchar.c: Likewise.
38413 * lib/mbswidth.c: Likewise.
38414 * lib/mkdtemp.c: Likewise.
38415 * lib/pipe.c: Likewise.
38416 * lib/printf-args.c: Likewise.
38417 * lib/printf-parse.c: Likewise.
38418 * lib/progname.c: Likewise.
38419 * lib/progreloc.c: Likewise.
38420 * lib/readlink.c: Likewise.
38421 * lib/sh-quote.c: Likewise.
38422 * lib/stpcpy.c: Likewise.
38423 * lib/stpncpy.c: Likewise.
38424 * lib/strcasecmp.c: Likewise.
38425 * lib/strcasestr.c: Likewise.
38426 * lib/strcspn.c: Likewise.
38427 * lib/striconv.c: Likewise.
38428 * lib/strncasecmp.c: Likewise.
38429 * lib/strnlen1.c: Likewise.
38430 * lib/strstr.c: Likewise.
38431 * lib/strtok_r.c: Likewise.
38432 * lib/tls.c: Likewise.
38433 * lib/tmpdir.c: Likewise.
38434 * lib/unicodeio.c: Likewise.
38435 * lib/unsetenv.c: Likewise.
38436 * lib/vasnprintf.c: Likewise.
38437 * lib/vasprintf.c: Likewise.
38438 * lib/wait-process.c: Likewise.
38439 * lib/xallocsa.c: Likewise.
38440 * lib/xsetenv.c: Likewise.
38441 * lib/xstriconv.c: Likewise.
38443 2006-09-13 Simon Josefsson <jas@extundo.com>
38445 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
38446 that internally, suggested by Ralf Wildenhues
38447 <Ralf.Wildenhues@gmx.de>.
38449 2006-09-13 Simon Josefsson <jas@extundo.com>
38451 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
38453 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38455 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
38457 * lib/_fpending.c: Include <config.h> unconditionally, since we no
38458 longer worry about uses that don't define HAVE_CONFIG_H.
38459 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
38460 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
38461 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
38462 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
38463 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
38464 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
38465 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
38466 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
38467 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
38468 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
38469 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
38470 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
38471 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
38472 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
38473 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
38474 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
38475 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
38476 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
38477 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
38478 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
38479 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
38480 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
38481 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
38482 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
38483 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
38484 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
38485 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
38486 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
38487 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
38488 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
38489 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
38490 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
38491 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
38492 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
38493 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
38494 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
38495 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
38496 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
38497 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
38498 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
38499 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
38502 2006-09-13 Eric Blake <ebb9@byu.net>
38504 * lib/getopt.c: Fix typo in last commit.
38506 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
38508 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
38511 2006-09-12 Jim Meyering <jim@meyering.net>
38513 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
38514 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
38515 Reported by Nelson H. F. Beebe.
38517 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
38519 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
38520 program_invocation_name and program_invocation_short_name are
38522 * lib/argp-namefrob.h: Move declarations of program_invocation_name
38523 and program_invocation_short_name to argp.h, so they are visible
38525 * lib/argp.h: Likewise
38527 2006-09-10 Bruno Haible <bruno@clisp.org>
38529 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
38530 m4/inttypes_h.m4, m4/uintmax_t.m4.
38532 2006-09-10 Bruno Haible <bruno@clisp.org>
38534 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
38535 gl_AC_TYPE_UINTMAX_T.
38537 2006-09-10 Bruno Haible <bruno@clisp.org>
38539 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
38541 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
38543 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
38544 convention. Text proposed by Bruno Haible.
38545 (struct argp_option): Document the use of N_() wrappers.
38547 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
38548 '\v', and translate the two parts separately, instead of feeding
38549 the whole string to gettext. This allows to exclude
38550 '\v' from the strings visible to the translator by writing doc
38551 strings as N_("..") "\v" N_("..").
38553 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
38555 * config/srclist.txt: Undo latest change; the bug was fixed.
38557 2006-09-09 Bruno Haible <bruno@clisp.org>
38559 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
38560 assignments if building a library without libtool.
38561 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
38562 in func_emit_lib_Makefile_am.
38563 (func_import): When building a static library libfoo.a, arrange to
38564 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
38565 (func_create_testdir): Likewise.
38566 * modules/gc (configure.ac, Makefile.am): If building statically,
38567 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
38568 * modules/iconvme (configure.ac, Makefile.am): Likewise.
38569 * modules/striconv (configure.ac, Makefile.am): Likewise.
38570 Based on a suggestion by Ralf Wildenhues.
38572 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
38574 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38575 Check for unistd.h too, since Autoconf doesn't assume POSIX.
38578 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
38579 Add year_2050_test to catch glibc bug 2821
38580 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
38582 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
38583 Prefer #ifdef to #if.
38585 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
38586 Return from 'main' instead of calling 'exit'.
38588 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
38590 * lib/mktime.c (guess_time_tm): Fix bug where mktime
38591 returned the maximum time_t value rather than (time_t) -1.
38592 Problem originally reported by William Bardwell
38593 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
38595 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
38597 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
38600 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
38602 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
38605 2006-09-08 Jim Meyering <jim@meyering.net>
38607 Don't make generated files read-only. That would bother too many
38608 people. However, do retain the ability to work when targets are
38609 read-only: remove the destination and temporary files before writing
38610 them (when generated via sed or echo), or by using the -f option for
38611 both cp and mv commands. Suggestion to use -f from Paul Eggert.
38612 * modules/alloca-opt, modules/argz, modules/arpa_inet:
38613 * modules/byteswap, modules/configmake, modules/fcntl:
38614 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
38615 * modules/localcharset, modules/netinet_in, modules/poll:
38616 * modules/stdbool, modules/stdint, modules/sys_select:
38617 * modules/sys_socket, modules/sys_stat, modules/sysexits:
38619 2006-09-08 Jim Meyering <jim@meyering.net>
38621 Avoid new build failure on FreeBSD 6.0.
38622 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
38623 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
38624 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
38626 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38628 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
38630 2006-09-07 Jim Meyering <jim@meyering.net>
38632 Fix global typo in last change: use chmod u-w, not chmod u-x.
38633 Spotted by Paul Eggert and Bruce Korb.
38634 * modules/alloca-opt, modules/argz, modules/arpa_inet:
38635 * modules/byteswap, modules/configmake, modules/fcntl:
38636 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
38637 * modules/localcharset, modules/netinet_in, modules/poll:
38638 * modules/stdbool, modules/stdint, modules/sys_select:
38639 * modules/sys_socket, modules/sys_stat, modules/sysexits:
38641 2006-09-06 Jim Meyering <jim@meyering.net>
38643 Make generated files be read-only.
38644 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
38645 Ensure that each generated file is now read-only.
38646 * modules/argz: Likewise.
38647 * modules/arpa_inet: Likewise.
38648 * modules/byteswap: Likewise.
38649 * modules/configmake: Likewise.
38650 * modules/fcntl: Likewise.
38651 * modules/fnmatch: Likewise.
38652 * modules/getopt: Likewise.
38653 * modules/glob: Likewise.
38654 * modules/inttypes: Likewise.
38655 * modules/netinet_in: Likewise.
38656 * modules/poll: Likewise.
38657 * modules/stdbool: Likewise.
38658 * modules/stdint: Likewise.
38659 * modules/sys_select: Likewise.
38660 * modules/sys_socket: Likewise.
38661 * modules/sys_stat: Likewise.
38662 * modules/sysexits: Likewise.
38663 * modules/localcharset: Same as above, but continue using temporary
38664 file named "t-$@" (why different?) rather than the "$@-t" used
38667 * modules/sysexits (Makefile.am): Replace literal occurrences
38668 of "sysexit.h" more readable, and more consistent, "$@".
38670 2006-09-06 Bruno Haible <bruno@clisp.org>
38672 * modules/striconv: New file.
38673 * modules/xstriconv: New file.
38674 * MODULES.html.sh (Internationalization functions): Add striconv,
38677 2006-09-06 Bruno Haible <bruno@clisp.org>
38679 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
38680 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
38681 not using libtool correctly.
38683 2006-09-06 Bruno Haible <bruno@clisp.org>
38685 * lib/striconv.h: New file.
38686 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
38688 * lib/xstriconv.h: New file.
38689 * lib/xstriconv.c: New file.
38691 2006-09-06 Bruno Haible <bruno@clisp.org>
38693 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
38696 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38698 * lib/argz_.h: Sync from Libtool.
38700 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
38701 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38703 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
38705 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
38707 * modules/trim: New file.
38709 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
38711 * lib/trim.h: New file.
38712 * lib/trim.c: New file.
38714 2006-09-05 Bruno Haible <bruno@clisp.org>
38716 * MODULES.html.sh (String handling): Add trim.
38718 2006-09-04 Karl Berry <karl@gnu.org>
38720 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
38721 until next release.
38723 2006-09-03 Bruno Haible <bruno@clisp.org>
38725 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
38728 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
38730 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
38731 not gl_GETLOADAVG. Omit unneeded semicolons.
38732 Problems reported by Ralf Wildenhues in
38733 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
38734 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
38735 at the end, which is the usual gnulib style.
38737 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
38738 of doing all the work ourselves.
38739 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
38740 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
38742 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
38744 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
38745 Problem reported by Ralf Wildenhues in
38746 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
38748 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
38749 HAVE_STRUCT_STATFS_F_FSTYPENAME.
38751 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
38753 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
38754 yesterday's patch by changing test -n to test -z.
38756 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
38758 * modules/getloadavg (Files): Add m4/getloadavg.m4.
38759 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
38760 the former is now obsolescent.
38762 * modules/chdir-long (Depends-on): Add fcntl.
38764 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
38766 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
38767 obsolescent, and programs should use gnulib instead.
38768 * m4/getloadavg.m4: New file, with contents taken from Autoconf
38769 but with prefixes changed.
38771 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
38773 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
38774 or stdbool.h, because they might not exist while configuring.
38776 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
38777 Don't include unistd.h or limits.h; not needed, since chdir-long.h
38779 (O_DIRECTORY): Remove.
38781 2006-08-31 Eric Blake <ebb9@byu.net>
38783 * gnulib-tool: Don't let emacs change spaces to TAB.
38785 2006-08-31 Bruno Haible <bruno@clisp.org>
38787 * gnulib-tool: When calling func_import more than once, do it in a
38789 Reported by Eric Blake <ebb9@byu.net>.
38791 2006-08-31 Bruno Haible <bruno@clisp.org>
38793 * gnulib-tool (nl): Remove variable.
38794 (sed_transform_lib_file): Use more robust test for config-h module.
38795 (func_import): Fix typo in 2006-08-25 patch.
38797 2006-08-31 Bruno Haible <bruno@clisp.org>
38799 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
38800 specified, augment Makefile.am variables instead of assigning them.
38802 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
38804 Work around a bug in both the Linux and SunOS 64-bit kernels:
38805 nanosleep mishandles sleeps for longer than 2**31 seconds.
38806 Problem reported by Frank v Waveren in
38807 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
38808 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
38809 Check for nanosleep bug.
38810 (LIB_NANOSLEEP): Append clock_gettime library if needed.
38812 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
38814 Work around a bug in both the Linux and SunOS 64-bit kernels:
38815 nanosleep mishandles sleeps for longer than 2**31 seconds.
38816 Problem reported by Frank v Waveren in
38817 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
38818 * lib/nanosleep.c (BILLION): New constant.
38819 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
38820 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
38823 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
38825 * modules/nanosleep (Depends-on): Add gettime.
38827 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
38828 and Simon Josefsson <jas@extundo.com>
38829 and Oskar Liljeblad <oskar@osk.mine.nu>
38831 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
38832 * gnulib-tool (func_import): New license type 'unmodifiable license
38834 * modules/fdl: Use it. Longer description.
38835 * module/gpl, module/lgpl: New files.
38837 2006-08-30 Jim Meyering <jim@meyering.net>
38839 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
38840 shadowing the parameter.
38842 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38846 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38848 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
38849 sharing with gnulib. Report by Eric Blake.
38851 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
38853 * modules/isapipe: New file.
38854 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
38856 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
38858 * modules/configmake (Makefile.am): Add a comment, and omit
38859 the CONFIGMAKE_ prefix from generated macro names. Suggested
38862 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
38864 * m4/isapipe.m4: New file.
38866 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
38868 * lib/isapipe.c, lib/isapipe.h: New files.
38870 2006-08-29 Jim Meyering <jim@meyering.net>
38872 * modules/configmake (Makefile.am): Make configmake.h depend on
38873 Makefile. Otherwise, a stale configmake.h could hang around.
38875 2006-08-29 Eric Blake <ebb9@byu.net>
38877 * lib/error.c (error_at_line, print_errno_message): Match libc, after
38878 resolution of upstream bug 3044.
38880 2006-08-29 Bruno Haible <bruno@clisp.org>
38882 * modules/localcharset (Depends-on): Add configmake.
38883 (Makefile.am): Remove setting of LIBDIR through DEFS.
38885 2006-08-29 Bruno Haible <bruno@clisp.org>
38887 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
38890 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
38892 * modules/fcntl: New file.
38893 * modules/chdir-safer (Depends-on): Add fcntl.
38894 * modules/fts: Likewise.
38895 * modules/mkdir-p: Likewise.
38897 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
38898 This undoes the most recent change, since we're now addressing the
38899 problem in a different way.
38901 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
38902 into output, since the output might be called Makefile.am even
38903 if $makefile_name is something different.
38904 (func_import): Use $makefile_am rather than
38905 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
38908 * modules/inttypes (Files): Add m4/inttypes-h.m4.
38910 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
38912 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
38913 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
38914 recent change to stdint.m4, since we're now addressing the problem in a
38917 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
38919 * m4/fcntl_h.m4: New file.
38921 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
38923 * lib/fcntl_.h: New file.
38924 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
38926 * lib/dirchownmod.c: Likewise.
38927 * lib/fts.c: Likewise.
38929 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
38930 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
38931 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
38932 just before including <inttypes.h>, to avoid circular inclusion.
38934 2006-08-28 Jim Meyering <jim@meyering.net>
38936 * doc/visibility.texi: Actually read and correct the grammar of the
38937 sentence affected by yesterday's change.
38939 2006-08-28 Eric Blake <ebb9@byu.net>
38941 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
38944 2006-08-28 Eric Blake <ebb9@byu.net>
38946 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
38948 2006-08-28 Eric Blake <ebb9@byu.net>
38950 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
38952 2006-08-28 Bruno Haible <bruno@clisp.org>
38954 * modules/c-strstr: New file, from GNU gettext.
38955 * MODULES.html.sh (String handling): Add c-strstr.
38957 2006-08-28 Bruno Haible <bruno@clisp.org>
38959 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
38961 Reported by Eric Blake.
38963 2006-08-28 Bruno Haible <bruno@clisp.org>
38965 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
38966 (VASNPRINTF): Return a string of length > INT_MAX without failing.
38967 * lib/vasprintf.c: Include errno.h, limits.h.
38968 (EOVERFLOW): New fallback definition.
38969 (vasprintf): Test here whether the string length is > INT_MAX.
38970 * lib/vsnprintf.c: Include errno.h, limits.h.
38971 (EOVERFLOW): New fallback definition.
38972 (vsnprintf): Fix bug when generated string was too long for the buffer.
38973 Test here whether the string length is > INT_MAX.
38975 2006-08-28 Bruno Haible <bruno@clisp.org>
38977 * lib/inttypes_.h (SCNX*): Remove definitions.
38978 Reported by Eric Blake.
38980 2006-08-28 Bruno Haible <bruno@clisp.org>
38982 * lib/c-strstr.h: New file, from GNU gettext.
38983 * lib/c-strstr.c: New file, from GNU gettext.
38985 2006-08-28 Bruno Haible <bruno@clisp.org>
38987 * gnulib-tool: Reorder some statements.
38989 2006-08-28 Bruno Haible <bruno@clisp.org>
38991 * gnulib-tool: New option --makefile-name.
38992 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
38994 (func_import): Write $makefile_name to the cache file, and read it from
38995 there unless explicitly specified. Use $makefile_name as file name
38996 instead of Makefile.am. Adjust the recommendations accordingly.
38998 2006-08-28 Bruno Haible <bruno@clisp.org>
39000 * gnulib-tool (func_verify_module): Check against misapplying patch.
39002 2006-08-28 Bruno Haible <bruno@clisp.org>
39004 * gnulib-tool (func_relativize, func_relconcat): New functions.
39005 Give an error if --local-dir is given with --update.
39006 Remove trailing slashes from $local_gnulib_dir.
39007 (func_import): Store the relativized $local_gnulib_dir in
39008 gnulib-cache.m4, and read it from there if not specified explicitly.
39010 2006-08-28 Bruno Haible <bruno@clisp.org>
39012 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
39013 is the current directory. Respect also $local_gnulib_dir.
39015 2006-08-28 Bruno Haible <bruno@clisp.org>
39016 Simon Josefsson <jas@extundo.com>
39019 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
39021 2006-08-27 Jim Meyering <jim@meyering.net>
39023 * doc/visibility.texi: Remove duplicate word: "pointer".
39025 2006-08-26 Bruno Haible <bruno@clisp.org>
39027 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
39028 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
39029 (Makefile.am): Create inttypes.h from inttypes_.h.
39030 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
39032 * modules/imaxabs: New file.
39034 * modules/imaxdiv: New file.
39036 2006-08-26 Bruno Haible <bruno@clisp.org>
39038 * m4/inttypes.m4: New file.
39039 * m4/_inttypes_h.m4: Remove file.
39040 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
39042 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
39044 * m4/imaxabs.m4: New file.
39046 * m4/imaxdiv.m4: New file.
39048 2006-08-26 Bruno Haible <bruno@clisp.org>
39050 * lib/inttypes_.h: New file.
39051 * lib/inttypes.h: Remove file.
39052 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
39054 * lib/imaxabs.c: New file.
39056 * lib/imaxdiv.c: New file.
39058 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
39060 New config-h module, so that "make" output needn't be cluttered
39061 by -DHAVE_CONFIG_H.
39062 * MODULES.html.sh (Support for building libraries and executables):
39064 * modules/config-h: New file.
39065 * gnulib-tool (nl, sed_transform_lib_file): New vars.
39066 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
39067 the config-h module is used.
39069 New configmake module, so that "make" output needn't be cluttered
39070 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
39071 * MODULES.html.sh (Support for building libraries and executables):
39073 * modules/configmake: New file.
39075 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
39077 * m4/config-h.m4: New file.
39079 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
39081 * config/srclist.txt: Add elisp-comp.
39083 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
39085 * MODULES.html.sh (Support for building libraries and executables):
39087 * build-aux/elisp-comp: New file.
39088 * modules/elisp-comp: New file.
39090 2006-08-24 Bruno Haible <bruno@clisp.org>
39092 * gnulib-tool (func_create_testdir): Use non-default values of
39093 sourcebase and m4base.
39095 2006-08-24 Bruno Haible <bruno@clisp.org>
39097 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
39100 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
39102 * modules/openat (Depends-on): Add lchown.
39104 2006-08-23 Bruno Haible <bruno@clisp.org>
39106 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
39107 of gl_LOCK_EARLY instead of gl_LOCK.
39109 2006-08-23 Bruno Haible <bruno@clisp.org>
39111 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
39113 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
39115 2006-08-23 Bruno Haible <bruno@clisp.org>
39117 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
39120 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
39121 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
39122 (gl_LOCK): New macro.
39124 2006-08-22 Simon Josefsson <jas@extundo.com>
39126 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
39129 2006-08-22 Simon Josefsson <jas@extundo.com>
39131 * MODULES.html.sh: Add "Support for maintaining and release
39134 * build-aux/gnupload: New file, from coreutils.
39136 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
39138 Avoid the need for AC_LIBSOURCES in m4 macros.
39139 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
39140 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
39141 * modules/check-version (EXTRA_DIST): Add check-version.h.
39142 * modules/crc (EXTRA_DIST): Add crc.h.
39143 * modules/des (EXTRA_DIST): Add des.h.
39144 * modules/gc (EXTRA_DIST): Add gc.h.
39145 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
39146 * modules/getline (EXTRA_DIST): Add getline.h.
39147 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
39148 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
39149 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
39150 * modules/md2 (EXTRA_DIST): Add md2.h.
39151 * modules/md4 (EXTRA_DIST): Add md4.h.
39152 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
39153 * modules/read-file (EXTRA_DIST): Add read-file.h.
39154 * modules/readline (EXTRA_DIST): Add readline.h.
39155 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
39156 rijndael-api-fst.h.
39158 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
39160 * m4/rijndael.m4 (gl_ARCFOUR):
39161 * m4/arctwo.m4 (gl_ARCTWO):
39162 * m4/check-version.m4 (gl_CHECK_VERSION):
39163 * m4/crc.m4 (gl_CRC):
39164 * m4/des.m4 (gl_DES):
39165 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
39166 * m4/gc.m4 (gl_GC):
39167 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
39168 * m4/getline.m4 (gl_FUNC_GETLINE):
39169 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
39170 * m4/hmac-md5.m4 (gl_HMAC_MD5):
39171 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
39172 * m4/md2.m4 (gl_MD2):
39173 * m4/md4.m4 (gl_MD4):
39174 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
39175 * m4/read-file.m4 (gl_FUNC_READ_FILE):
39176 * m4/readline.m4 (gl_FUNC_READLINE):
39177 * m4/rijndael.m4 (gl_RIJNDAEL):
39178 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
39179 to get the necessary .h files and whatnot.
39181 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
39183 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
39184 gnulib rather than the other way around.
39185 * config/srclistvars.sh (COREUTILS): Remove.
39187 2006-08-22 Jim Meyering <jim@meyering.net>
39189 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
39191 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
39193 2006-08-22 Eric Blake <ebb9@byu.net>
39195 * modules/regexprops-generic: New file.
39196 * MODULES.html.sh (Support for building documentation): List it.
39198 2006-08-22 Eric Blake <ebb9@byu.net>
39200 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
39201 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39202 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
39203 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
39205 2006-08-22 Bruno Haible <bruno@clisp.org>
39207 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
39208 and lib_LTLIBRARIES like the other lib_* variables.
39210 2006-08-22 Bruno Haible <bruno@clisp.org>
39212 * build-aux/x-to-1.in: New file, from GNU gettext.
39214 2006-08-22 Bruno Haible <bruno@clisp.org>
39216 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
39219 2006-08-22 Bruno Haible <bruno@clisp.org>
39221 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
39224 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
39227 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
39229 Problem reported by Bruno Haible.
39231 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
39233 Avoid the need for AC_LIBSOURCES in m4 macros.
39234 * modules/acl (EXTRA_DIST): Add acl.h.
39235 * modules/argmatch (Files): Add m4/argmatch.m4.
39236 (configure.ac): Add gl_ARGMATCH.
39237 (EXTRA_DIST): Renamed from lib_SOURCES, for
39238 consistency with the other modules. Remove argmatch.c.
39239 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
39240 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
39241 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
39242 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
39243 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
39244 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
39245 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
39246 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
39247 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
39248 * modules/closeout (EXTRA_DIST): Add closeout.h.
39249 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
39250 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
39251 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
39252 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
39253 dirname.h; remove basename.c and stripslash.c.
39254 * modules/exclude (EXTRA_DIST): Add exclude.h.
39255 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
39256 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
39257 * modules/file-type (EXTRA_DIST): Add file-type.h.
39258 * modules/filemode (EXTRA_DIST): Add filemode.h.
39259 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
39260 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
39261 * modules/fpending (EXTRA_DIST): Add __fpending.h.
39262 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
39263 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
39264 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
39265 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
39266 * modules/getdate (EXTRA_DIST): Add getdate.c.
39267 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
39268 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
39269 * modules/getpass (EXTRA_DIST): Add getpass.h.
39270 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
39271 * modules/group-member (EXTRA_DIST): Add group-member.h.
39272 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
39273 * modules/hash (EXTRA_DIST): Add hash.h.
39274 * modules/human (EXTRA_DIST): Add human.h.
39275 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
39276 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
39277 * modules/lchown (EXTRA_DIST): Add lchown.h.
39278 * modules/long-options (EXTRA_DIST): Add long-options.h.
39279 * modules/lstat (EXTRA_DIST): Add lstat.h.
39280 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
39281 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
39282 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
39283 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
39284 * modules/memxor (EXTRA_DIST): Add memxor.h.
39285 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
39286 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
39287 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
39288 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
39289 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
39290 * modules/physmem (EXTRA_DIST): Add physmem.h.
39291 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
39292 * modules/posixver (EXTRA_DIST): Add posixver.h.
39293 * modules/quote (EXTRA_DIST): Add quote.h.
39294 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
39295 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
39296 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
39297 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
39298 regex_internal.h regexec.c.
39299 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
39300 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
39301 * modules/same (EXTRA_DIST): Add same.h.
39302 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
39303 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
39304 * modules/savedir (EXTRA_DIST): Add savedir.h.
39305 * modules/sha1 (EXTRA_DIST): Add sha1.h.
39306 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
39307 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
39308 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
39309 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
39310 * modules/strdup (EXTRA_DIST): Add strdup.h.
39311 * modules/strftime (EXTRA_DIST): Add strftime.h.
39312 * modules/strndup (EXTRA_DIST): Add strndup.h.
39313 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
39314 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
39315 * modules/time_r (EXTRA_DIST): Add time_r.h.
39316 * modules/timespec (EXTRA_DIST): Add timespec.h.
39317 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
39318 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
39319 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
39320 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
39321 * modules/userspec (EXTRA_DIST): Add userspec.h.
39322 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
39323 * modules/utimens (EXTRA_DIST): Add utimens.h.
39324 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
39325 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
39326 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
39327 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
39328 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
39329 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
39330 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
39331 * modules/yesno (EXTRA_DIST): Add yesno.h.
39333 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
39335 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
39337 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
39338 * m4/dev-ino.m4, same-inode.m4: Remove.
39340 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
39341 * m4/acl.m4 (AC_FUNC_ACL):
39342 * m4/backupfile.m4 (gl_BACKUPFILE):
39343 * m4/c-strtod.m4 (gl_C99_STRTOLD):
39344 * m4/canon-host.m4 (gl_CANON_HOST):
39345 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39346 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
39347 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
39348 * m4/cloexec.m4 (gl_CLOEXEC):
39349 * m4/close-stream.m4 (gl_CLOSE_STREAM):
39350 * m4/closeout.m4 (gl_CLOSEOUT):
39351 * m4/dirfd.m4 (gl_FUNC_DIRFD):
39352 * m4/dirname.m4 (gl_DIRNAME):
39353 * m4/exclude.m4 (gl_EXCLUDE):
39354 * m4/exitfail.m4 (gl_EXITFAIL):
39355 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
39356 * m4/file-type.m4 (gl_FILE_TYPE):
39357 * m4/filemode.m4 (gl_FILEMODE):
39358 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
39359 * m4/fpending.m4 (gl_FUNC_FPENDING):
39360 * m4/fprintftime.m4 (gl_FPRINTFTIME):
39361 * m4/fts.m4 (gl_FUNC_FTS):
39362 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
39363 * m4/getdate.m4 (gl_GETDATE):
39364 * m4/gethrxtime.m4 (gl_GETHRXTIME):
39365 * m4/getpagesize.m4 (gl_GETPAGESIZE):
39366 * m4/getpass.m4 (gl_FUNC_GETPASS):
39367 * m4/gettime.m4 (gl_GETTIME):
39368 * m4/getugroups.m4 (gl_GETUGROUPS):
39369 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
39370 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
39371 * m4/hard-locale.m4 (gl_HARD_LOCALE):
39372 * m4/hash.m4 (gl_HASH):
39373 * m4/idcache.m4 (gl_IDCACHE):
39374 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
39375 * m4/lchown.m4 (gl_FUNC_LCHOWN):
39376 * m4/long-options.m4 (gl_LONG_OPTIONS):
39377 * m4/lstat.m4 (gl_FUNC_LSTAT):
39378 * m4/md5.m4 (gl_MD5):
39379 * m4/memcasecmp.m4 (gl_MEMCASECMP):
39380 * m4/memcoll.m4 (gl_MEMCOLL):
39381 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
39382 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
39383 * m4/memxor.m4 (gl_MEMXOR):
39384 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
39385 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
39386 * m4/modechange.m4 (gl_MODECHANGE):
39387 * m4/mountlist.m4 (gl_MOUNTLIST):
39388 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
39389 * m4/openat.m4 (gl_FUNC_OPENAT):
39390 * m4/pathmax.m4 (gl_PATHMAX):
39391 * m4/physmem.m4 (gl_PHYSMEM):
39392 * m4/posixtm.m4 (gl_POSIXTM):
39393 * m4/posixver.m4 (gl_POSIXVER):
39394 * m4/quote.m4 (gl_QUOTE):
39395 * m4/quotearg.m4 (gl_QUOTEARG):
39396 * m4/readtokens.m4 (gl_READTOKENS):
39397 * m4/readutmp.m4 (gl_READUTMP):
39398 * m4/regex.m4 (gl_REGEX):
39399 * m4/safe-read.m4 (gl_SAFE_READ):
39400 * m4/safe-write.m4 (gl_SAFE_WRITE):
39401 * m4/same.m4 (gl_SAME):
39402 * m4/save-cwd.m4 (gl_SAVE_CWD):
39403 * m4/savedir.m4 (gl_SAVEDIR):
39404 * m4/settime.m4 (gl_SETTIME):
39405 * m4/sha1.m4 (gl_SHA1):
39406 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
39407 * m4/stat-macros.m4 (gl_STAT_MACROS):
39408 * m4/stat-time.m4 (gl_STAT_TIME):
39409 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
39410 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
39411 * m4/strdup.m4 (gl_FUNC_STRDUP):
39412 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
39413 * m4/strndup.m4 (gl_FUNC_STRNDUP):
39414 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
39415 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
39416 * m4/time_r.m4 (gl_TIME_R):
39417 * m4/timespec.m4 (gl_TIMESPEC):
39418 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
39419 * m4/unlinkdir.m4 (gl_UNLINKDIR):
39420 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
39421 * m4/userspec.m4 (gl_USERSPEC):
39422 * m4/utimecmp.m4 (gl_UTIMECMP):
39423 * m4/utimens.m4 (gl_UTIMENS):
39424 * m4/xalloc.m4 (gl_XALLOC):
39425 * m4/xgetcwd.m4 (gl_XGETCWD):
39426 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
39427 * m4/xreadlink.m4 (gl_XREADLINK):
39428 * m4/xstrtod.m4 (gl_XSTRTOD):
39429 * m4/yesno.m4 (gl_YESNO):
39430 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
39431 to get the necessary .h files and whatnot.
39433 2006-08-21 Mark D. Baushke <mdb@gnu.org>
39434 Bruno Haible <bruno@clisp.org>
39436 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
39437 /bin/sh understanding of '!' conditional negation.
39439 2006-08-21 Jim Meyering <jim@meyering.net>
39441 * modules/openat (Depends-on): Really alphabetize.
39443 * modules/acl (Depends-on): Add error and quote.
39445 * check-module (find_included_lib_files): Add at-func.c to the
39446 ok-to-include-more-than-once white list.
39448 * modules/openat (Depends-on): Add lstat. Alphabetize.
39450 2006-08-21 Bruno Haible <bruno@clisp.org>
39452 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39453 Emit a pkgdata_DATA variable only if some snippets add contents to it.
39454 Reported by Martin Lambers <marlam@marlam.de>.
39456 2006-08-21 Bruno Haible <bruno@clisp.org>
39458 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
39459 specify an installation location, don't emit a noinst_LIBRARIES or
39460 noinst_LTLIBRARIES assignment.
39462 2006-08-21 Bruno Haible <bruno@clisp.org>
39465 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
39466 BeOS has mbrtowc() but no <wctype.h>.
39468 2006-08-21 Bruno Haible <bruno@clisp.org>
39471 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
39474 2006-08-21 Bruno Haible <bruno@clisp.org>
39477 * lib/mbchar.h: Include <wctype.h> only if it exists.
39479 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
39481 Remove files that are no longer needed by their respective modules.
39482 * m4/obstack.m4: Remove.
39483 * m4/strerror_r.m4: Remove.
39484 * m4/uint32_t.m4: Remove.
39485 * m4/uintptr_t.m4: Remove.
39486 * m4/ullong_max.m4: Remove.
39487 * m4/xstrtoimax.m4: Remove.
39488 * m4/xstrtoumax.m4: Remove.
39490 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
39491 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
39492 dependencies now capture this.
39494 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
39495 Do not use AC_LIBSOURCES, since gnulib modules now do this.
39496 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
39497 * m4/human.m4 (gl_HUMAN): Likewise.
39498 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
39499 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
39501 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
39503 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
39504 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
39506 * m4/human.m4 (gl_HUMAN): Likewise.
39507 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
39508 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
39509 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
39510 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
39511 * m4/xstrtol (gl_XSTRTOL): Likewise.
39513 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
39514 AC_TYPE_LONG_LONG_INT.
39515 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
39516 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
39517 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
39518 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
39520 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
39523 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
39524 (gl_PREREQ_XSTRTOUL): Remove.
39526 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
39528 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
39531 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
39533 Add and change modules to make it easier for coreutils to use
39535 * modules/backupfile (Files): Remove m4/d-ino.m4.
39536 (Depends-on): Add d-ino.
39537 * modules/cycle-check (Depends-on): Add stdint.
39538 (lib_SOURCES): Add cycle-check.h.
39539 * modules/d-ino: New module.
39540 * modules/d-type: New module.
39541 * modules/error (Files): Remove m4/strerror_r.m4.
39542 * modules/filemode (Files): Add m4/st_dm_mode.m4.
39543 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
39544 m4/inttypes_h.m4, m4/uintmax_t.m4.
39545 (Depends-on): Add stdint.
39546 (lib_SOURCES): Add fsusage.h.
39547 * modules/getcwd (Files): Remove d-ino.m4.
39548 (Depends-on): Add d-ino.
39549 * modules/getndelim2 (Depends-on): Add stdint.
39550 * modules/glob (Files): Remove m4/d-type.m4.
39551 (Depends-on): Add d-type.
39552 * modules/host-os: New module.
39553 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
39554 m4/inttypes_h.m4, m4/uintmax_t.m4.
39555 * Depends-on: Add stdint.
39556 (lib_SOURCES): Add human.h.
39557 * modules/inttostr (Files): Remove m4/intmax_t.m4,
39558 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
39559 m4/uintmax_t.m4, m4/ulonglong.m4.
39560 (Depends-on): Add stdint.
39561 (EXTRA_DIST): Add inttostr.h.
39562 * modules/lchmod: New module.
39563 * modules/link-follow: New module.
39564 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
39565 (Depends-on): Add lchmod.
39566 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
39567 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
39568 (Depends-on): Add stdint.
39569 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
39570 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
39571 (Depends-on): Add stdint.
39572 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
39573 * modules/perl: New module.
39574 * modules/regex (Depends-on): Add stdint.
39575 * modules/rmdir-errno: New module.
39576 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
39578 (Depends-on): Add stdint.
39579 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
39581 (Depends-on): Add stdint.
39582 * modules/unlink-busy: New module.
39583 * modules/utimecmp (Depends-on): Add stdint.
39584 * modules/uptime: New module.
39585 * modules/winsz-ioctl: New module.
39586 * modules/winsz-termios: New module.
39587 * modules/xnanosleep (Depends-on): Add nanosleep.
39588 * modules/ullong_max: Remove.
39589 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
39590 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
39591 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
39592 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
39593 (Depends-on): Add inttypes.
39594 (lib_SOURCES): Add xstrtol.h.
39595 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
39596 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
39597 * MODULES.html.sh: Move 'assert' into the assert section.
39598 Move 'dummy' into the linking section.
39600 Add section for compatibility checks for POSIX:2001 functions,
39601 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
39602 winsz-ioctl, and winsz-termios into it.
39604 Add top-level Misc section and put host-os, perl, and uptime
39607 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
39609 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
39610 now assume the stdint module. Do not include inttypes.h.
39611 * lib/fsusage.h: Likewise.
39612 * lib/getndelim2.c: Likewise.
39613 * lib/human.h: Likewise.
39614 * lib/inttostr.h: Likewise.
39615 * lib/obstack.c: Likewise.
39616 * lib/regex_internal.h: Likewise.
39617 * lib/tempname.c: Likewise.
39618 * lib/utimecmp.c: Likewise.
39619 * lib/xstrtol.h: Likewise.
39621 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
39623 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
39624 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
39625 * lib/xtime.h: Likewise.
39627 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
39629 * modules/openat (Files): Add lib/fchmodat.c.
39630 Fixes problem reported by Jay Youngman.
39632 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
39634 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
39635 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
39637 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
39638 Bruno Haible <bruno@clisp.org>
39640 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
39641 and is a script that invokes bison. Tighten the code. Add comments.
39643 2006-08-18 Jim Meyering <jim@meyering.net>
39645 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
39646 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
39647 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
39648 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
39650 2006-08-18 Bruno Haible <bruno@clisp.org>
39652 * modules/bison-i18n: New file.
39653 * MODULES.html.sh (Internationalization functions): Add it.
39655 2006-08-18 Bruno Haible <bruno@clisp.org>
39657 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
39658 sys/statvfs.h. When getmntinfo was found, check its declaration and
39659 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
39661 2006-08-18 Bruno Haible <bruno@clisp.org>
39663 * m4/bison-i18n.m4: New file, from bison.
39665 2006-08-18 Bruno Haible <bruno@clisp.org>
39667 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
39668 (ME_DUMMY): Treat "kernfs" as a dummy.
39669 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
39671 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
39673 Update from coreutils.
39675 2006-08-15 Jim Meyering <jim@meyering.net>
39677 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
39679 2006-01-17 Jim Meyering <jim@meyering.net>
39681 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
39683 2006-01-11 Jim Meyering <jim@meyering.net>
39685 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
39686 Check for the lchmod function.
39688 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
39690 Update from coreutils.
39692 * lib/__fpending.h: Add copyright notice.
39693 * lib/fprintftime.h: Likewise.
39694 * lib/savedir.c: Use (C) in copyright notice.
39695 * lib/savedir.h: Likewise.
39697 2006-08-15 Jim Meyering <jim@meyering.net>
39699 * lib/at-func.c: New file, with the logic of all emulated at-functions.
39700 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
39701 in support of the EXPECTED_ERRNO macro.
39702 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
39703 definitions. Instead, define the appropriate symbols and include
39705 * lib/mkdirat.c (mkdirat): Likewise.
39706 * lib/fchmodat.c (fchmodat): Likewise.
39707 (ENOSYS): Remove definition.
39708 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
39709 it. Don't include "unistd--.h" -- it wasn't ever used.
39711 2006-01-17 Jim Meyering <jim@meyering.net>
39713 Rewrite fts.c not to change the current working directory,
39714 by using openat, fstatat, fdopendir, etc..
39716 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
39717 (HAVE_OPENAT_SUPPORT): Define.
39718 [_LIBC] (fchdir): Don't undef or define; no longer used.
39719 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
39720 Now, this `function' always succeeds, and consumes its file descriptor
39721 parameter -- so callers must not close such FDs. Update callers.
39722 (diropen_fd, opendirat, cwd_advance_fd): New functions.
39723 (diropen): Add parameter, SP. Adjust all callers.
39724 Implement using diropen_fd, rather than open.
39725 (fts_open): Initialize new member, fts_cwd_fd.
39726 Remove fts_rft-setting code.
39727 (fts_close): Close fts_cwd_fd, if necessary.
39728 (__opendir2): Define in terms of opendir or opendirat,
39729 depending on whether the FST_NOCHDIR flag is set.
39730 (fts_build): Since fts_safe_changedir consumes its FD, and since
39731 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
39732 and close the dup'd file descriptor upon failure.
39733 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
39734 (fts_safe_changedir): Tweak semantics to reflect that this function
39735 now calls cwd_advance_fd and hence consumes its FD argument.
39736 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
39737 [struct FTS] (fts_rft): Remove now-unused member.
39738 [struct FTS] (fts_cycle.state): Improve comment.
39740 * lib/openat.c (openat_needs_fchdir): New function.
39741 * lib/openat.h (openat_needs_fchdir): Declare it.
39743 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
39745 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
39746 Problem and fix reported by Pádraig Brady in
39747 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
39749 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
39751 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
39753 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
39755 * lib/memcoll.c (memcoll): Optimize for the common case where the
39756 arguments are bytewise equal.
39758 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
39760 * doc/regexprops-generic.texi: Add a copyright notice.
39762 2006-08-15 Bruno Haible <bruno@clisp.org>
39764 * modules/tmpdir (License): Change to LGPL.
39766 2006-08-15 Bruno Haible <bruno@clisp.org>
39768 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
39771 2006-08-14 Simon Josefsson <jas@extundo.com>
39773 * config/srclist.txt: Add gnupload.
39775 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
39777 Change copyright notice from LGPL 2 to GPL 2, since that's the
39778 standard form used in the gnulib repository.
39779 * tests/test-lock.c: Likewise.
39780 * tests/test-stdint.c: Likewise.
39781 * tests/test-tls.c: Likewise.
39783 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
39784 prelude-manager. User shorter URLs for GNU projects, without '?'.
39785 Add copyright notice.
39787 * check-module: Add copyright notice. Output a copyright
39788 notice if "--version" is specified.
39789 * modules/COPYING: New file.
39790 * tests/test-getaddrinfo.c: Add copyright notice.
39791 * tests/test-verify.c: Likewise.
39793 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
39795 Change copyright notice from LGPL 2 to GPL 2, since that's the
39796 standard form used in the gnulib repository.
39797 * lib/lock.c: LGPL -> GPL.
39798 * lib/lock.h: Likewise.
39799 * lib/strnlen1.c: Likewise.
39800 * lib/strnlen1.h: Likewise.
39801 * lib/tls.c: Likewise.
39802 * lib/tls.h: Likewise.
39803 * lib/tmpdir.c: Likewise.
39805 * lib/TODO: Remove; this belongs only in coreutils.
39807 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
39809 Add copyright notices to long-enough files that lack them, since
39810 otherwise the files aren't clearly free. Use the same notice that
39811 getdate.texi already uses.
39812 * doc/alloca-opt.texi: Add copyright notice.
39813 * doc/alloca.texi: Likewise.
39814 * doc/ctime.texi: Likewise.
39815 * doc/functions.texi: Likewise.
39816 * doc/gcd.texi: Likewise.
39817 * doc/gnulib-tool.texi: Likewise.
39818 * doc/inet_ntoa.texi: Likewise.
39819 * doc/visibility.texi: Likewise.
39821 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
39822 * doc/quote.texi: Add copyright notice.
39824 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
39825 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
39826 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
39827 Mention SunOS 5.11. Mention that everything before SunOS 5.7
39828 is now obsolete, and give a pointer to the Sun list.
39829 Add copyright notice.
39831 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
39833 * config/srclistvars.sh: Add copyright notice.
39835 2006-08-14 Eric Blake <ebb9@byu.net>
39837 Import the following change from libc:
39839 2006-08-12 Ulrich Drepper <drepper@redhat.com>
39842 * lib/misc/error.c: Add space between program name and message if file
39845 2006-08-12 Karl Berry <karl@gnu.org>
39847 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
39848 remove, these originate in gnulib now.
39850 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39852 * doc/Makefile (standards.info standards.html standards.dvi):
39853 Also depend on make-stds.texi.
39855 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
39857 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
39858 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
39860 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
39861 in wchar_t. Problem reported by Eric Blake.
39863 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
39864 LEN is smaller than SIZE. Suggested by Bruno Haible.
39865 Also, help the compiler to keep LEN in a register.
39867 2006-08-11 Eric Blake <ebb9@byu.net>
39869 * users.txt: Sort. Add tar.
39871 2006-08-11 Bruno Haible <bruno@clisp.org>
39873 * users.txt: New file.
39875 2006-08-11 Bruno Haible <bruno@clisp.org>
39877 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
39878 before <wchar.h>. Needed for OSF/1 and BSD/OS.
39880 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
39882 * modules/snprintf (Depends-on): Remove minmax.
39883 (Maintainer): Add self and Bruno.
39885 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
39887 * lib/.cppi-disable: Add snprintf.h, socket_.h.
39888 * lib/snprintf.c: Include <errno.h> and <limits.h>.
39889 (EOVERFLOW): Define if the system does not.
39890 Do not include "minmax.h"; it wasn't used.
39891 (snprintf): Don't assume size_t promotes to an unsigned type.
39892 Fix bug when generated string was too long for the buffer: the
39893 buffer's contents are supposed to be the initial prefix of the
39894 output. Don't assume vasnprintf returns EOVERFLOW if the size
39895 exceeds INT_MAX; do the check ourselves.
39897 Import the following changes from libc:
39899 2006-06-02 Jakub Jelinek <jakub@redhat.com>
39901 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
39902 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
39903 set wc to the byte which couldn't be converted.
39904 (re_string_reconstruct): Don't clear valid_raw_len before calling
39905 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
39906 tip_context using re_string_context_at.
39908 2006-05-02 Ulrich Drepper <drepper@redhat.com>
39910 * lib/posix/regex.h: g++ still cannot handled [restrict].
39912 2006-04-21 Ulrich Drepper <drepper@redhat.com>
39914 * lib/posix/regex.h: Remove special handling for VMS.
39916 2006-08-10 Jim Meyering <jim@meyering.net>
39918 * modules/same-inode: New module.
39919 * modules/dev-ino: New module.
39920 * modules/cycle-check: Depend on these modules, rather than simply
39921 including their .h files.
39922 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
39923 required via m4/cycle-check.m4.
39924 * modules/same: Depend on new same-inode module, rather than
39925 including same-inode.h.
39926 * modules/chdir-safer: New file.
39928 * modules/chown (Depends-on): Add stat-macros.
39930 2006-08-10 Jim Meyering <jim@meyering.net>
39932 * m4/cycle-check.m4: New file.
39933 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
39934 * m4/dev-ino.m4, m4/same-inode.m4: New files.
39936 2006-08-10 Eric Blake <ebb9@byu.net>
39938 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
39939 in from original proposal.
39941 2006-08-10 Eric Blake <ebb9@byu.net>
39942 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39944 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
39947 2006-08-10 Bruno Haible <bruno@clisp.org>
39949 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
39952 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
39954 Sync from coreutils.
39956 2006-07-19 Mike Frysinger <vapier@gentoo.org>
39958 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
39959 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
39961 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
39963 * modules/restrict: Remove; no longer needed now that we assume
39964 Autoconf 2.59 or later.
39965 * MODULES.html.sh: Remove 'restrict'.
39966 * modules/argp (Depends-on): Remove 'restrict'.
39967 * modules/base64 (Depends-on): Likewise.
39968 * modules/gc (Depends-on): Likewise.
39969 * modules/getaddrinfo (Depends-on): Likewise.
39970 * modules/glob (Depends-on): Likewise.
39971 * modules/inet_ntop (Depends-on): Likewise.
39972 * modules/inet_pton (Depends-on): Likewise.
39973 * modules/memxor (Depends-on): Likewise.
39974 * modules/regex (Depends-on): Likewise.
39975 * modules/strtok_r (Depends-on): Likewise.
39976 * modules/time_r (Depends-on): Likewise.
39978 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
39980 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
39981 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
39982 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39983 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
39984 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
39985 * m4/memxor.m4 (gl_MEMXOR): Likewise.
39986 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
39987 gl_C_RESTRICT replaced by AC_C_RESTRICT.
39989 Merge from coreutils.
39990 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
39991 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
39992 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
39993 * m4/time_r.m4 (gl_TIME_R): Likewise.
39995 2006-08-09 Karl Berry <karl@gnu.org>
39997 * config/srclist.txt: no more gettext-tools, per Bruno.
39999 2006-08-08 Eric Blake <ebb9@byu.net>
40001 * modules/verror: New module.
40002 * MODULES.html.sh: Document it.
40004 2006-08-08 Eric Blake <ebb9@byu.net>
40006 * lib/verror.h, lib/verror.c: New files.
40008 2006-08-08 Eric Blake <ebb9@byu.net>
40010 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
40011 verror_at_line output complies with GNU Coding Standards even when
40014 2006-08-07 Bruno Haible <bruno@clisp.org>
40016 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
40018 Reported by Ralf Wildenhues.
40020 2006-08-07 Bruno Haible <bruno@clisp.org>
40022 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
40023 in an AC_DEFUN. Needed so that the autoconf snippets can use
40026 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40028 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40029 Initialize pkgdata_DATA.
40030 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
40033 2006-08-06 Eric Blake <ebb9@byu.net>
40035 * lib/error.h: Fold in some upstream changes from glibc.
40036 * lib/error.c: Likewise.
40038 2006-08-04 Bruno Haible <bruno@clisp.org>
40040 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40041 Make the mostlyclean-local rule depend on mostlyclean-generic.
40042 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
40044 2006-07-31 Bruno Haible <bruno@clisp.org>
40046 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
40047 <stdlib.h>, <string.h>.
40049 2006-07-30 Bruno Haible <bruno@clisp.org>
40051 * modules/readlink (License): Change to LGPL.
40053 2006-07-30 Bruno Haible <bruno@clisp.org>
40055 * modules/javaversion (Makefile.am): Distribute javaversion.java and
40056 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
40057 set PKGDATADIR to point to it.
40059 2006-07-30 Bruno Haible <bruno@clisp.org>
40061 * modules/csharpexec (configure.ac): Comment out macro invocation.
40062 * modules/javaexec (configure.ac): Likewise.
40063 * modules/javacomp-script (configure.ac): Likewise.
40065 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
40067 2006-07-30 Bruno Haible <bruno@clisp.org>
40069 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
40072 2006-07-30 Bruno Haible <bruno@clisp.org>
40074 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
40076 2006-07-30 Bruno Haible <bruno@clisp.org>
40078 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40079 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
40082 2006-07-29 Bruno Haible <bruno@clisp.org>
40084 Make it possible for gnulib-tool to work with locally modified or
40085 augmented gnulib repositories.
40086 * gnulib-tool (func_usage): Document --local-dir option.
40087 (local_gnulib_dir): New variable.
40088 Handle --local-dir option.
40089 (func_lookup_file): New function.
40090 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
40091 (func_get_description, func_get_filelist, func_get_description,
40092 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
40093 func_get_automake_snippet, func_get_include_directive,
40094 func_get_license, func_get_maintainer): Use func_lookup_file.
40095 (func_import, func_create_testdir): Use func_lookup_file.
40097 2006-07-29 Bruno Haible <bruno@clisp.org>
40099 * modules/setenv (Depends-on): Add unistd.
40101 2006-07-29 Bruno Haible <bruno@clisp.org>
40103 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
40105 2006-07-29 Bruno Haible <bruno@clisp.org>
40107 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
40109 2006-07-29 Bruno Haible <bruno@clisp.org>
40111 * gnulib-tool (import, update): If there is no Makefile.am, look at
40112 aclocal.m4, instead of bailing out.
40114 2006-07-29 Bruno Haible <bruno@clisp.org>
40116 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
40117 Categorize the options by when they are useful.
40119 2006-07-29 Bruno Haible <bruno@clisp.org>
40121 * gnulib-tool (func_usage): Document option --no-libtool.
40122 Handle option --no-libtool.
40123 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
40124 for changed semantics of $libtool variable.
40125 (func_import): Likewise. If libtool is not used, show this through
40126 an option --no-libtool.
40127 (func_create_testdir): Update.
40129 2006-07-29 Bruno Haible <bruno@clisp.org>
40131 * gnulib-tool (func_import): Extend error message about missing
40134 2006-07-29 Bruno Haible <bruno@clisp.org>
40136 * gnulib-tool (func_import): Don't create the $docbase directory if
40137 there is no file to store there.
40139 2006-07-29 Bruno Haible <bruno@clisp.org>
40141 * gnulib-tool (autoconf_minversion): If a --dir option is given and
40142 relevant, look for configure.ac there, not in the current directory.
40143 Also use a simple search for AC_PREREQ, not "autoconf --trace".
40145 2006-07-29 Bruno Haible <bruno@clisp.org>
40147 * gnulib-tool (SORT): New variable.
40148 (func_usage): Undocument --assume-autoconf option.
40149 Remove --assume-autoconf option handling.
40150 (autoconf_minversion): Determine from the contents of configure.ac.
40151 (func_import): Remove autoconf_minversion handling.
40152 Suggested by Eric Blake.
40154 2006-07-29 Bruno Haible <bruno@clisp.org>
40156 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
40158 2006-07-29 Bruno Haible <bruno@clisp.org>
40160 * config/srclist.txt (*setenv.[ch]): Remove rules.
40162 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40164 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
40166 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40168 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
40171 2006-07-28 Simon Josefsson <jas@extundo.com>
40173 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
40174 * modules/inet_pton (Depends-on): Likewise.
40176 2006-07-28 Simon Josefsson <jas@extundo.com>
40178 * m4/netinet_in_h.m4: New file.
40180 2006-07-28 Simon Josefsson <jas@extundo.com>
40182 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
40185 2006-07-28 Simon Josefsson <jas@extundo.com>
40187 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
40190 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
40192 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
40193 setgid on directories only if they set these bits.
40194 * lib/modechange.h: Remove obsolete comment about masks.
40196 2006-07-28 Eric Blake <ebb9@byu.net>
40198 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
40201 2006-07-28 Bruno Haible <bruno@clisp.org>
40203 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
40205 2006-07-28 Bruno Haible <bruno@clisp.org>
40207 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
40209 2006-07-28 Bruno Haible <bruno@clisp.org>
40211 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
40212 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
40214 Avoids link error on FreeBSD 4.x.
40215 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40217 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
40219 * lib/mbswidth.c (iswcntrl): Likewise.
40221 2006-07-27 Bruno Haible <bruno@clisp.org>
40223 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
40226 2006-07-27 Bruno Haible <bruno@clisp.org>
40228 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
40229 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
40232 2006-07-26 Eric Blake <ebb9@byu.net>
40234 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
40236 2006-07-26 Eric Blake <ebb9@byu.net>
40238 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
40239 like mingw that lack mkstemp.
40240 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
40241 avoid compilation warning on mingw.
40243 2006-07-26 Bruno Haible <bruno@clisp.org>
40245 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
40246 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
40247 INT_FAST*_MIN, INTPTR_MIN.
40249 2006-07-25 Bruno Haible <bruno@clisp.org>
40251 * modules/version-etc (Depends-on): Add stdarg.
40253 2006-07-25 Bruno Haible <bruno@clisp.org>
40255 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
40258 2006-07-25 Bruno Haible <bruno@clisp.org>
40260 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
40261 defined in <stdarg.h> or config.h.
40263 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
40265 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
40266 (gl_STDIO_SAFER): Remove.
40268 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
40270 * MODULES.html.sh (File stream based Input/Output):
40271 Add fopen-safer, tmpfile-safer; remove stdio-safer.
40272 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
40273 * modules/fopen-safer, modules/tmpfile-safer: New files.
40274 * modules/stdio-safer: Remove.
40276 2006-07-24 Bruno Haible <bruno@clisp.org>
40278 * modules/tmpdir: New file.
40279 * MODULES.html.sh (File system functions): Add it.
40281 2006-07-24 Bruno Haible <bruno@clisp.org>
40283 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
40284 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
40286 2006-07-24 Bruno Haible <bruno@clisp.org>
40288 * modules/clean-temp: New file.
40290 2006-07-24 Bruno Haible <bruno@clisp.org>
40292 * m4/tmpdir.m4: New file, from GNU gettext.
40294 2006-07-24 Bruno Haible <bruno@clisp.org>
40296 * lib/tmpdir.h: New file, from GNU gettext.
40297 * lib/tmpdir.c: New file, from GNU gettext.
40299 2006-07-24 Bruno Haible <bruno@clisp.org>
40301 * lib/clean-temp.h: New file, from GNU gettext.
40302 * lib/clean-temp.c: New file, from GNU gettext.
40304 2006-07-23 Eric Blake <ebb9@byu.net>
40306 * modules/stdio-safer (Files): Add tmpfile-safer.c.
40307 (Depends-on): Add binary-io.
40309 2006-07-23 Eric Blake <ebb9@byu.net>
40311 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
40313 2006-07-23 Eric Blake <ebb9@byu.net>
40315 * lib/tmpfile-safer.c: New file.
40316 * lib/stdio-safer.h (fopen_safer): Add prototype.
40317 * lib/stdio--.h (tmpfile): Make safer.
40319 2006-07-23 Bruno Haible <bruno@clisp.org>
40321 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
40322 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
40323 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
40324 gl_linked_remove_at): Use it.
40326 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
40327 and Simon Josefsson <jas@extundo.com>
40329 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
40331 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
40333 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
40335 * modules/close-stream: New file.
40336 * modules/closeout (Description): Make it clear that it exits
40337 with a diagnostic on error.
40338 (Depends-on): Add close-stream. Remove fpending, stdbool.
40339 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
40341 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
40343 * m4/close-stream.m4: New file.
40345 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
40347 * lib/close-stream.c, lib/close-stream.h: New files.
40349 2006-07-22 Bruno Haible <bruno@clisp.org>
40351 Merge from GNU gettext 0.15.
40353 2006-05-01 Bruno Haible <bruno@clisp.org>
40355 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
40357 2006-07-22 Bruno Haible <bruno@clisp.org>
40359 * modules/javaversion: New file.
40360 * MODULES.html.sh (Java): Add javaversion.
40362 2006-03-12 Bruno Haible <bruno@clisp.org>
40364 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
40366 2005-12-04 Bruno Haible <bruno@clisp.org>
40368 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
40371 2006-06-21 Bruno Haible <bruno@clisp.org>
40373 Avoid warnings from recent versions of mcs.
40374 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
40375 -o, -L, -r any more. Use options documented since mcs-1.0
40376 instead. Similarly for -g.
40378 2005-12-04 Bruno Haible <bruno@clisp.org>
40380 * build-aux/csharpcomp.sh.in: Suffix for resources is
40381 .resources, not .resource.
40383 2005-07-09 Bruno Haible <bruno@clisp.org>
40385 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
40387 Reported by Mark Junker <mjscod@gmx.de>.
40389 2006-07-22 Bruno Haible <bruno@clisp.org>
40391 * modules/gettext: Upgrade to gettext-0.15.
40392 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
40394 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
40396 2006-07-22 Bruno Haible <bruno@clisp.org>
40398 Merge from GNU gettext 0.15.
40400 2006-03-25 Bruno Haible <bruno@clisp.org>
40402 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
40404 2006-07-21 Bruno Haible <bruno@clisp.org>
40406 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
40409 2006-05-09 Bruno Haible <bruno@clisp.org>
40411 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
40412 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
40413 for the conftestver execution.
40415 2006-05-01 Bruno Haible <bruno@clisp.org>
40417 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
40418 optional target-version argument. Verify that the compiler
40419 groks source of the specified source-version, or add -source
40420 option as necessary. Verify that the compiler produces
40421 bytecode in the specified target-version, or add -target and
40422 -source options as necessary. Make the result of the test
40423 available as variable CONF_JAVAC. Also log error output in
40426 2006-03-11 Bruno Haible <bruno@clisp.org>
40428 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
40430 2006-05-09 Bruno Haible <bruno@clisp.org>
40432 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
40433 CLASSPATH_SEPARATOR to a semicolon.
40435 2006-03-12 Bruno Haible <bruno@clisp.org>
40437 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
40438 available as variable CONF_JAVA, for subsequent autoconf
40439 tests. Also log error output in config.log.
40441 2006-07-19 Bruno Haible <bruno@clisp.org>
40443 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
40444 that getline works on glibc2 systems. Needed to avoid trouble
40446 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
40448 2005-12-04 Bruno Haible <bruno@clisp.org>
40450 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
40451 launcher (untested).
40453 2005-12-04 Bruno Haible <bruno@clisp.org>
40455 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
40457 2006-07-22 Bruno Haible <bruno@clisp.org>
40459 * gettext.m4: Update from GNU gettext-0.15.
40460 * nls.m4: Likewise.
40462 * inttypes-pri.m4: Likewise.
40463 * inttypes-h.m4: Renamed from inttypes.m4.
40464 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
40466 2006-07-22 Bruno Haible <bruno@clisp.org>
40468 Merge from GNU gettext 0.15.
40470 2005-07-05 Bruno Haible <bruno@clisp.org>
40472 * printf-args.c (printf_fetchargs): Work around broken
40473 definition of wint_t on mingw.
40475 2005-02-12 Bruno Haible <bruno@clisp.org>
40477 * xallocsa.h: Add extern "C" for C++.
40479 2006-05-17 Bruno Haible <bruno@clisp.org>
40481 Cygwin portability.
40482 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
40484 2006-04-30 Bruno Haible <bruno@clisp.org>
40486 * progreloc.c: Include <mach-o/dyld.h> if available.
40487 (find_executable): Use _NSGetExecutablePath when possible.
40489 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
40491 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
40494 2005-12-29 Bruno Haible <bruno@clisp.org>
40496 * progreloc.c (set_program_name_and_installdir): Fix
40499 2005-12-04 Bruno Haible <bruno@clisp.org>
40501 Cygwin portability.
40502 * progreloc.c: Include <windows.h> also on Cygwin.
40503 (find_executable): Add support for Cygwin.
40504 (set_program_name_and_installdir): Handle also platforms with
40507 2006-07-11 Bruno Haible <bruno@clisp.org>
40509 * javacomp.c: Fix a comment.
40510 Reported by Jim Meyering.
40512 2006-04-30 Bruno Haible <bruno@clisp.org>
40514 * javacomp.h (compile_java_class): Add source_version,
40515 target_version arguments.
40516 * javacomp.c: Rewritten to choose only a compiler that
40517 respects the specified source_version and target_version.
40519 2006-06-27 Bruno Haible <bruno@clisp.org>
40521 Assume correct S_ISDIR macro.
40522 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
40524 2006-07-22 Bruno Haible <bruno@clisp.org>
40526 * javaversion.h: New file, from GNU gettext.
40527 * javaversion.c: New file, from GNU gettext.
40528 * javaversion.java: New file, from GNU gettext.
40529 * javaversion.class: New file, from GNU gettext.
40531 2006-05-17 Bruno Haible <bruno@clisp.org>
40533 Cygwin portability.
40534 * javaexec.c (execute_java_class): Test for jview program
40537 2006-04-09 Bruno Haible <bruno@clisp.org>
40539 * fatal-signal.c: Don't include string.h.
40540 (at_fatal_signal): Use a copying loop instead of memcpy.
40542 2005-12-04 Bruno Haible <bruno@clisp.org>
40544 * csharpexec.c: Add support for 'clix' launcher (untested).
40545 (execute_csharp_using_sscli): New function.
40546 (execute_csharp_program): Call it.
40548 2006-06-21 Bruno Haible <bruno@clisp.org>
40550 Avoid warnings from recent versions of mcs.
40551 * csharpcomp.c (compile_csharp_using_mono): Don't use options
40552 -o, -L, -r any more. Use options documented since mcs-1.0
40553 instead. Similarly for -g.
40555 2005-07-09 Bruno Haible <bruno@clisp.org>
40557 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
40559 Reported by Mark Junker <mjscod@gmx.de>.
40561 2006-06-17 Bruno Haible <bruno@clisp.org>
40563 * config.charset: Update for NetBSD 3.0.
40565 2006-05-17 Bruno Haible <bruno@clisp.org>
40567 Cygwin portability.
40568 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
40570 2006-05-16 Bruno Haible <bruno@clisp.org>
40572 * localcharset.c [CYGWIN]: Include <windows.h>.
40573 (get_charset_aliases): For Cygwin, return the same CPxxx
40574 aliases list as under WIN32.
40575 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
40576 the environment variables. Fall back to GetACP().
40578 2006-04-05 Bruno Haible <bruno@clisp.org>
40580 * config.charset: Update Juan Manuel Guerrero's address.
40582 2005-02-12 Bruno Haible <bruno@clisp.org>
40584 * allocsa.h: Add extern "C" for C++.
40586 2005-02-10 Bruno Haible <bruno@clisp.org>
40588 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
40589 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
40591 2006-07-22 Bruno Haible <bruno@clisp.org>
40593 * gettext.h: Update to GNU gettext-0.15.
40595 2006-07-22 Bruno Haible <bruno@clisp.org>
40597 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
40598 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
40599 lib-prefix.m4, longdouble.m4, ssize_t.m4.
40601 2006-07-21 Eric Blake <ebb9@byu.net>
40603 * modules/stdlib-safer: New file.
40604 * MODULES.html.sh (File stream based Input/Output): Add
40607 2006-07-21 Eric Blake <ebb9@byu.net>
40609 * lib/stdlib-safer.h: New file from coreutils, required by
40612 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
40614 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
40616 2006-07-20 Bruno Haible <bruno@clisp.org>
40618 * gnulib-tool: Recognize new option --assume-autoconf.
40619 (autoconf_minversion): New variable.
40620 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
40622 2006-07-20 Bruno Haible <bruno@clisp.org>
40624 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
40626 2006-07-19 Derek R. Price <derek@ximbiot.com>
40628 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
40629 Reindent and repaginate.
40631 2006-07-19 Derek Price <derek@ximbiot.com>
40633 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
40636 2006-07-17 Bruno Haible <bruno@clisp.org>
40638 * modules/list: New file.
40639 * modules/array-list: New file.
40640 * modules/carray-list, modules/carray-list-tests: New files.
40641 * modules/linked-list, modules/linked-list-tests: New files.
40642 * modules/avltree-list, modules/avltree-list-tests: New files.
40643 * modules/rbtree-list, modules/rbtree-list-tests: New files.
40644 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
40645 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
40646 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
40647 * modules/oset: New file.
40648 * modules/array-oset: New file.
40649 * modules/avltree-oset, modules/avltree-oset-tests: New files.
40650 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
40651 * tests/test-carray_list.c: New file.
40652 * tests/test-linked_list.c: New file.
40653 * tests/test-avltree_list.c: New file.
40654 * tests/test-rbtree_list.c: New file.
40655 * tests/test-linkedhash_list.c: New file.
40656 * tests/test-avltreehash_list.c: New file.
40657 * tests/test-rbtreehash_list.c: New file.
40658 * tests/test-avltree_oset.c: New file.
40659 * tests/test-rbtree_oset.c: New file.
40660 * MODULES.html.sh (Container data structures): New section.
40662 2006-07-17 Bruno Haible <bruno@clisp.org>
40664 * m4/gl_list.m4: New file.
40666 2006-07-17 Bruno Haible <bruno@clisp.org>
40668 * lib/gl_list.h: New file.
40669 * lib/gl_list.c: New file.
40670 * lib/gl_array_list.h: New file.
40671 * lib/gl_array_list.c: New file.
40672 * lib/gl_carray_list.h: New file.
40673 * lib/gl_carray_list.c: New file.
40674 * lib/gl_linked_list.h: New file.
40675 * lib/gl_linked_list.c: New file.
40676 * lib/gl_anylinked_list1.h: New file.
40677 * lib/gl_anylinked_list2.h: New file.
40678 * lib/gl_avltree_list.h: New file.
40679 * lib/gl_avltree_list.c: New file.
40680 * lib/gl_anyavltree_list1.h: New file.
40681 * lib/gl_anyavltree_list2.h: New file.
40682 * lib/gl_rbtree_list.h: New file.
40683 * lib/gl_rbtree_list.c: New file.
40684 * lib/gl_anyrbtree_list1.h: New file.
40685 * lib/gl_anyrbtree_list2.h: New file.
40686 * lib/gl_anytree_list1.h: New file.
40687 * lib/gl_anytree_list2.h: New file.
40688 * lib/gl_linkedhash_list.h: New file.
40689 * lib/gl_linkedhash_list.c: New file.
40690 * lib/gl_anyhash_list1.h: New file.
40691 * lib/gl_anyhash_list2.h: New file.
40692 * lib/gl_avltreehash_list.h: New file.
40693 * lib/gl_avltreehash_list.c: New file.
40694 * lib/gl_rbtreehash_list.h: New file.
40695 * lib/gl_rbtreehash_list.c: New file.
40696 * lib/gl_anytreehash_list1.h: New file.
40697 * lib/gl_anytreehash_list2.h: New file.
40699 * lib/gl_oset.h: New file.
40700 * lib/gl_oset.c: New file.
40701 * lib/gl_array_oset.h: New file.
40702 * lib/gl_array_oset.c: New file.
40703 * lib/gl_avltree_oset.h: New file.
40704 * lib/gl_avltree_oset.c: New file.
40705 * lib/gl_rbtree_oset.h: New file.
40706 * lib/gl_rbtree_oset.c: New file.
40707 * lib/gl_anytree_oset.h: New file.
40709 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
40711 * m4/mkancesdirs.m4: New file.
40712 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
40713 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
40714 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
40717 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
40719 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
40720 * lib/mkancesdirs.h: New files.
40721 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
40722 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
40723 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
40724 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
40725 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
40726 callers changed. Revamp internals significantly, by not
40727 attempting to create directories that are temporarily more
40728 permissive than the final results. Do not attempt to use
40729 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
40730 This removes some race conditions, fixes some bugs, and simplifies
40731 things. Use new dirchownmod function to do owner and mode changes.
40732 * lib/mkdir-p.h: Likewise.
40733 * lib/modechange.c (octal_to_mode): New function.
40734 (struct mode_change): New member mentioned.
40735 (make_node_op_equals): New arg mentioned. All callers changed.
40736 (mode_compile): Keep track of which mode bits the user has explicitly
40738 (mode_adjust): New arg DIR, so that we implement the X op correctly.
40739 New arg PMODE_BITS, to keep track of which mode bits the user
40740 mentioned; it treats S_ISUID and S_ISGID speciall.
40741 All callers changed.
40742 * lib/modechange.h: Likewise.
40744 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
40746 * MODULES.html.sh: Add mkancestors.
40747 * modules/mkancesdirs: New module.
40748 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
40749 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
40750 The chdir-safer and afs files are now orphans; I'll remove them
40751 unless someone speaks up.
40752 Add lib/dirchownmod.c, lib/dirchownmod.h.
40753 (Depends-on): Remove alloca, chown, save-cwd, dirname.
40754 Add lchown, mkancesdirs.
40755 (Maintainer): Add self.
40757 2006-07-15 Karl Berry <karl@gnu.org>
40759 * gnulib-tool: help message wording/arrangement.
40761 2006-07-14 Simon Josefsson <jas@extundo.com>
40763 * doc/gnulib.texi (Libtool and Windows): New section.
40765 2006-07-12 Simon Josefsson <jas@extundo.com>
40767 * modules/gendocs (License): Fix license, approved by Karl.
40769 2006-07-12 Eric Blake <ebb9@byu.net>
40771 * MODULES.html.sh: Add gendocs.
40773 2006-07-11 Eric Blake <ebb9@byu.net>
40775 * modules/fdl: New module, to install doc/fdl.texi.
40776 * MODULES.html.sh: Add new section for documentation modules.
40777 * gnulib-tool: Avoid space-tab.
40778 (--doc-base): New option, to manage files from doc.
40780 2006-07-11 Eric Blake <ebb9@byu.net>
40782 * m4/absolute-header.m4: Fix comments to match recent change.
40784 2006-07-11 Eric Blake <ebb9@byu.net>
40786 * gnulib-tool: List --doc-base before --tests-base.
40788 2006-07-11 Derek R. Price <derek@ximbiot.com>
40790 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
40792 2006-07-11 Bruno Haible <bruno@clisp.org>
40794 * README: Mention where to put documentation.
40796 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40798 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
40800 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
40802 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
40805 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
40807 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
40808 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
40809 "no/such/file/stdint.h" when there is no such file, so that
40810 the resulting C code can be parsed by dodgy compilers.
40811 Problems reported by Bob Proulx.
40813 2006-07-10 Derek R. Price <derek@ximbiot.com>
40815 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
40816 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
40817 macros into the GNU _D_EXACT_NAMLEN.
40818 * lib/savedir.c: Likewise.
40819 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
40821 2006-07-10 Derek R. Price <derek@ximbiot.com>
40822 and Paul Eggert <eggert@cs.ucla.edu>
40824 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
40826 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
40827 macros into the GNU _D_EXACT_NAMLEN.
40829 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
40831 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
40832 around the absolute name, to work around a problem with the HP-UX
40833 11.23 native C compiler, reported by Bob Proulx.
40835 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
40837 * doc/maintain.texi, make-stds.texi: Sync from
40838 <http://savannah.gnu.org/projects/gnustandards>.
40840 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
40842 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
40844 2006-07-09 Jim Meyering <jim@meyering.net>
40846 * m4/glob.m4: Remove a doubled word in a comment.
40848 2006-07-09 Jim Meyering <jim@meyering.net>
40850 * lib/argp-pv.c: Remove a doubled word in a comment.
40851 * lib/check-version.c (check_version): Likewise.
40852 * lib/javacomp.c (compile_java_class): Likewise.
40854 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
40856 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
40857 for the benefit of people using Autoconf 2.60. If you want to
40858 support older Autoconf versions you can copy m4/onceonly_2_57.m4
40859 (or m4/onceonly.m4, if pre-2.57) manually.
40861 2006-07-08 Jim Meyering <jim@meyering.net>
40863 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
40865 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
40866 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
40869 2006-07-08 Jim Meyering <jim@meyering.net>
40871 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
40873 2006-07-07 Simon Josefsson <jas@extundo.com>
40875 * tests/test-crc.c: Change expected crc value, the test vector
40876 were probably computed using the old broken crc.c?
40878 2006-07-06 Simon Josefsson <jas@extundo.com>
40880 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
40881 now the canonical place for the M4 file).
40883 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
40884 from the sys_socket dependency now.
40886 * modules/inet_pton (Files): Ditto.
40888 * modules/inet_ntop (Files): Ditto.
40890 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
40892 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
40893 not gl_PREREQ_GETUSERSHELL.
40895 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40897 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
40898 with only one argument, for Autoconf 2.60.
40899 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
40900 expand to nothing, so add a shell command to avoid syntax error.
40901 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
40903 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40905 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
40907 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
40909 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
40910 no longer needed. Check for isblank decl.
40911 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
40912 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
40915 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
40917 * lib/getloadavg.c: Use __VMS, not VMS.
40918 * lib/getopt.c: Likewise.
40919 * lib/getpagesize.h: Likewise.
40920 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
40921 and probably does not work.
40923 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
40925 * lib/.cppi-disable: Add wcwidth.
40926 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
40927 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
40928 (ISGRAPH): Remove. All uses changed to isgraph.
40929 (FOLD) [!defined _LIBC]: Remove special case.
40930 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
40931 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
40933 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
40936 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
40938 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
40939 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
40940 brackets. Other minor changes to suppress some compiler
40943 2006-07-06 Derek R. Price <derek@ximbiot.com>
40944 and Paul Eggert <eggert@cs.ucla.edu>
40946 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
40947 of invoking obsolescent AC_HEADER_DIRENT macro.
40948 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
40949 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
40950 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40951 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
40952 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
40953 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
40954 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
40955 * m4/readdir.m4: Remove; no longer needed.
40957 2006-07-06 Derek R. Price <derek@ximbiot.com>
40958 and Paul Eggert <eggert@cs.ucla.edu>
40960 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
40961 Don't worry about this obsolete case any more.
40962 (HAVE_DIR): Remove. All uses removed; we now assume you can read
40964 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
40965 worry about this obsolete case any more.
40966 * lib/fts.c: Likewise.
40967 * lib/getcwd.c: Likewise.
40968 * lib/glob.h: Likewise.
40969 * lib/savedir.c: Likewise.
40971 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
40973 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
40974 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
40975 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
40978 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
40979 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
40980 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
40982 * m4/getdate.m4 (gl_GETDATE): Likewise.
40983 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
40984 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
40985 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
40986 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
40987 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
40988 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
40989 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
40992 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
40994 * lib/memcasecmp.c: Include <limits.h>.
40995 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
40996 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
40997 Don't assume isdigit succeeds only on '0' through '9'.
40999 2006-07-05 Eric Blake <ebb9@byu.net>
41001 * modules/getaddrinfo (Depends-on): Add snprintf.
41003 2006-07-05 Eric Blake <ebb9@byu.net>
41005 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
41006 to avoid 'header present but could not be compiled' on cygwin.
41008 2006-07-05 Eric Blake <ebb9@byu.net>
41010 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
41011 missing from netdb.h.
41012 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
41014 2006-07-05 Derek R. Price <derek@ximbiot.com>
41016 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
41018 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
41019 * m4/getdate.m4 (gl_GETDATE): Likewise.
41020 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
41021 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
41022 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
41023 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
41024 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
41026 2006-07-05 Derek R. Price <derek@ximbiot.com>
41028 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
41029 All uses of is_space replaced by isspace.
41030 * lib/exit.h: Don't talk about STDC_HEADERS.
41031 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
41032 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
41033 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
41034 replaced by isprint etc.
41035 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
41036 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
41037 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
41038 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
41039 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
41040 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
41042 2006-07-05 Bruno Haible <bruno@clisp.org>
41044 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
41045 the function exists, before testing against AIX.
41046 Reported by Martin Lambers <marlam@marlam.de>.
41048 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
41050 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
41051 From Mark D. Baushke.
41053 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
41055 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
41056 to the absolute name, not just one, to bypass Sun C 5.8's
41057 "warning: #include of /usr/include/... may be non-portable".
41059 2006-07-04 Eric Blake <ebb9@byu.net>
41061 * modules/dirname-tests: New test module.
41062 * tests/test-dirname.c: New file, replacing dirname.c
41063 TEST_DIRNAME section that was recently deleted.
41065 2006-07-04 Bruno Haible <bruno@clisp.org>
41067 Assume ANSI C header files and <ctype.h> functions.
41068 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
41069 (mbsnwidth): Use isprint, iscntrl instead.
41071 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
41073 Merge from coreutils.
41074 * MODULES.html.sh: Add xstrtold.
41075 * modules/xstrtold: New file.
41076 * modules/cycle-check (Files): Add lib/same-inode.h.
41077 * modules/dirname (Files): Add m4/double-slash-root.m4.
41078 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
41079 * modules/mkdir-p (Files): Add lib/same-inode.h.
41080 * modules/same (Files): Add lib/same-inode.h.
41082 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
41084 * m4/absolute-header.m4: Renamed from full-header-path.m4.
41085 This is to keep the terminology clean; POSIX talks about
41086 "absolute pathnames", not "full pathnames", but the GNU
41087 Coding Standards say to use "path" for something else;
41088 so use "absolute" to keep both sides happy.
41089 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
41090 Set gl_absolute_header, not gl_full_header_path.
41091 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
41092 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
41095 Merge from coreutils.
41097 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
41099 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
41100 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
41101 want to require the building of c-strtod.o.
41102 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
41103 needs -lm directly.
41104 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
41106 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
41108 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
41109 --as-needed option if available. Problem reported by Albert Chin in
41110 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
41111 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
41112 cc merely issues a bunch of annoying warnings for --as-needed
41113 (this problem was reported by Bob Proulx). Also, try linking with
41114 -lm to detect a bug in binutils 2.16 (this problem was reported
41115 by Ralf Wildenhues).
41117 2006-06-18 Jim Meyering <jim@meyering.net>
41119 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
41120 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
41122 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
41123 also check for glibc-2.4's abort-inducing bug.
41125 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
41126 Low-probability clean-up should be to use rmdir to get rid of
41127 the just-created directory, not unlink.
41129 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
41130 configure fail, and request a bug report to inform us about it.
41131 Add a comment that, barring reports to the contrary, in 2007 we'll
41132 assume ftruncate is universally available.
41134 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
41136 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
41138 2006-03-12 Jim Meyering <jim@meyering.net>
41140 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
41141 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
41142 * m4/same.m4 (gl_SAME): Likewise.
41143 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
41145 2006-03-11 Eric Blake <ebb9@byu.net>
41147 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
41148 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
41149 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
41150 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
41152 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
41154 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
41155 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
41156 reported by Mark D. Baushke, one in
41157 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
41159 Merge from coreutils.
41161 * lib/.cppi-disable: Add stdint_.h.
41162 * lib/.cvsignore: Add stdint.h.
41164 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
41166 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
41167 both double and long double versions.
41168 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
41169 * lib/xstrtold.c: New file.
41170 * lib/xstrtod.h (xstrtold): New decl.
41172 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
41174 * lib/filemode.c (setst): Remove.
41175 (strmode): Rewrite to avoid setst. This makes the code shorter,
41176 (arguably) clearer, and the generated code is a bit smaller on my
41177 Debian GNU/Linux stable x86 host.
41179 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
41181 * lib/filemode.c: Include "filemode.h" first, to test the interface.
41182 Assume that filemode.h includes sys/types.h and sys/stat.h.
41183 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
41184 (ftypelet): Reorder to put common cases first, for efficiency.
41185 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
41187 (strmode): Renamed from mode_string, and now stores 12 bytes instead
41188 of 10, for compatibility with FreeBSD. All callers changed.
41189 (filemodestring): Now stores 12 bytes instead of 10, and sets file
41190 types that can't be deduced solely from st_mode. First arg is now a
41192 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
41193 (strmode): Renamed from mode_string.
41194 (filemodestring): New decl.
41195 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
41196 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
41198 (S_ISPORT, S_ISWHT): New macros, if not already defined.
41200 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
41202 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
41203 fsusage.h now does that. Include fsusage.h first, to test interface.
41204 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
41205 at most one method (the old code could have generated decls that
41206 didn't conform to C89, not that this was ever exercised).
41207 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
41209 2006-03-19 Jim Meyering <jim@meyering.net>
41211 Work even in a chroot where d_ino values for entries in "/"
41212 don't match the stat.st_ino values for the same names.
41213 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
41214 number, iterate through all entries again, using lstat instead.
41215 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
41216 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
41218 * lib/getcwd.c (__getcwd): Clarify a comment.
41219 Use memcpy in place of a call to strcpy.
41221 2006-03-12 Jim Meyering <jim@meyering.net>
41223 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
41224 matches that of the current directory (which we're about to chdir ".."
41225 out of), then save the dev-ino of the parent, instead.
41227 * lib/same-inode.h (SAME_INODE): New file/macro.
41228 * lib/chdir-safer.c (SAME_INODE): Remove definition.
41229 Include "same-inode.h", instead.
41230 * lib/same.c: Likewise.
41231 * lib/cycle-check.h: Include "same-inode.h".
41232 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
41233 * lib/cycle-check.c (SAME_INODE): Remove definition.
41234 * lib/root-dev-ino.h: Include "same-inode.h".
41236 2006-03-11 Eric Blake <ebb9@byu.net>
41238 * lib/same.c (same_name): s/base_name/last_component/
41239 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
41240 * lib/filenamecat.c (file_name_concat): Likewise.
41242 2006-03-11 Eric Blake <ebb9@byu.net>,
41243 Paul Eggert <eggert@cs.ucla.edu>
41245 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
41246 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
41248 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
41249 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
41250 (last_component): New method.
41251 * lib/dirname.c (dir_len): Determine when drive letters need a
41252 subsequent slash. Preserve // when it is special.
41253 (dir_name): Don't append dot when drive letter is absolute.
41254 [TEST_DIRNAME]: Move into a full-blown gnulib test.
41255 * lib/basename.c (base_name): New semantics - malloc the result.
41256 Preserve // when it is special. Preserve relative files that look
41257 like drive letters.
41258 (base_len): Preserve // when it is special.
41259 (last_component): New method, similar to old base_name semantics.
41260 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
41261 base_name. Strip redundant slashes from ///.
41263 2006-07-03 Jim Meyering <jim@meyering.net>
41265 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
41266 macro is used before the first cycle_check call.
41268 2006-07-03 Eric Blake <ebb9@byu.net>
41270 * modules/dirname (Depends-on): Add xstrndup.
41272 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
41274 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
41275 test cases, so that config.log is a bit easier to follow.
41277 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
41279 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
41280 both are 64 bits, since this seems to be the tradition, and this
41281 prevents gcc -Wformat from warning about usages with PRIuMAX. If
41282 we ever run into a host that prefers long long to long in this
41283 case, we'll need another configure-time test. Problem reported by
41286 2006-07-02 Eric Blake <ebb9@byu.net>
41288 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
41290 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
41292 * modules/inttypes (Depends-on): No longer depends on stdint.
41293 * modules/stdint (Description): Say more about assumptions.
41294 Say that the fast types might differ. Say macros are used.
41295 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
41296 (Makefile.am): Revise list of substituted symbols to match
41298 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
41299 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
41300 * tests/test-stdint.c (verify_same_types)
41301 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
41302 the code conforms to C99/C89.
41303 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
41304 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
41306 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
41308 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
41309 but fix a bug, by requiring at least 64 bits.
41310 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
41311 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
41312 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
41313 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
41315 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
41316 changes. Make 2.59 a prerequisite. Check and substitute for
41317 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
41318 inttypes.h. Do not use special include files; just use the
41319 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
41320 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
41321 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
41322 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
41323 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
41324 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
41325 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
41326 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
41327 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
41328 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
41329 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
41330 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
41331 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
41332 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
41333 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
41334 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
41335 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
41336 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
41337 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
41338 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
41339 WINT_MAX. Check for C99 conformance more strictly, by detecting
41340 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
41341 not check for things that C99 does not require, e.g., int8_t. If
41342 a test isn't needed unless <stdint.h> isn't working, and is
41343 unlikely to be needed for any other reason, then don't do it
41344 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
41345 size_t, since we assume C89 freestanding at least. Do not check
41346 for sig_atomic_t, wchar_t, or wint_t, since the code now does
41347 the right thing even if the types are not defined. Instead use:
41348 (gl_STDINT_TYPE_PROPERTIES): New macro.
41349 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
41350 testing whether <sys/types.h> clashes, as Autoconf does this for
41351 us now. All uses removed.
41352 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
41353 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
41354 (gl_CHECK_TYPE_SAME):
41355 Remove; no longer needed.
41356 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
41357 exists, since we'll return 0 anyway in that case.
41358 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
41360 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
41362 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
41363 possible collision with system files.
41364 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
41365 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
41366 WCHAR_MIN and WCHAR_MAX in this case.
41367 (<stddef.h>): Do not include; no longer needed.
41368 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
41369 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
41370 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
41371 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
41372 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
41373 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
41374 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
41375 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
41376 !defined(__c99))]: Include in this case too, since it's harmless
41378 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
41379 dangerous to do so.
41380 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
41381 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
41382 (_STDINT_MIN, _STDINT_MAX): New macros.
41383 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
41384 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
41385 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
41386 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
41387 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
41388 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
41389 macros, not typedefs; this simplifies things quite a bit.
41390 Use long int for all types narrower than int64_t.
41391 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
41392 Define in terms of long long int or int64_t or long int,
41393 not int64_t or int32_t. This saves some compile-time testing.
41394 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
41395 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
41396 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
41397 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
41398 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
41399 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
41400 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
41401 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
41402 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
41403 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
41404 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
41405 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
41406 undef any previous version and define our own version, for
41407 simplicity and consistency with the new macros for types.
41408 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
41409 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
41410 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
41411 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
41412 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
41413 @WINT_T_SUFFIX@ to keep things simple here.
41414 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
41415 Simplify by assuming typical 8/16/32/64 host, since we're
41416 already doing that elsewhere anyway.
41417 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
41418 and assume long long int is 64 bits if available. This
41419 speeds up 'configure'.
41421 2006-07-01 Eric Blake <ebb9@byu.net>
41423 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
41424 Reported by Andreas Buening.
41426 2006-07-01 Eric Blake <ebb9@byu.net>
41428 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
41430 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
41432 * lib/getaddrinfo.c: fixed typo
41434 2006-06-29 Jim Meyering <jim@meyering.net>
41436 * modules/strftime (Maintainer): Add my name, since with the
41437 FPRINTFTIME changes strftime.c has forked from glibc.
41439 2006-06-29 Eric Blake <ebb9@byu.net>
41441 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
41443 2006-06-29 Eric Blake <ebb9@byu.net>
41445 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
41447 2006-06-29 Eric Blake <ebb9@byu.net>
41449 * lib/stat_.h: New file.
41451 2006-06-29 Eric Blake <ebb9@byu.net>
41453 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
41454 unused static function.
41456 2006-06-29 Eric Blake <ebb9@byu.net>
41458 * doc/functions.texi (Function Portability): Document missing lstat
41461 2006-06-29 Eric Blake <ebb9@byu.net>
41463 * MODULES.html.sh: Add sys_stat.
41464 * modules/sys_stat: New module.
41465 * modules/mkstemp (Depends-on): Add sys_stat.
41467 2006-06-29 Derek R. Price <derek@ximbiot.com>
41469 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
41471 2006-06-29 Derek R. Price <derek@ximbiot.com>
41473 * m4/c-bs-a.m4: Removed.
41475 2006-06-29 Derek R. Price <derek@ximbiot.com>
41477 * lib/strftime.c: Assume strftime() exists.
41479 2006-06-29 Derek Price <derek@ximbiot.com>
41481 * modules/c-bs-a: Removed - \a is C89.
41482 * MODULES.html.sh: Remove c-bs-a.
41484 2006-06-29 Bruno Haible <bruno@clisp.org>
41486 * modules/wcwidth (License): Change to LGPL.
41488 2006-06-28 Simon Josefsson <jas@extundo.com>
41490 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
41493 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
41496 2006-06-28 Simon Josefsson <jas@extundo.com>
41498 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
41500 2006-06-28 Simon Josefsson <jas@extundo.com>
41502 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
41503 functions there. It will succeed on Windows XP, but on Windows
41504 2000 and (presumably) earlier, it will fail, and use the internal
41506 (use_win32_p): New function.
41507 (getaddrinfo): Use strtoul on servname, to support numeric ports.
41508 Support AI_NUMERICSERV to disable getservbyname.
41509 (getnameinfo): New function, only supports
41510 NI_NUMERICHOST|NI_NUMERICSERV for now.
41512 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
41513 only have some of them. Add AI_NUMERICSERV. Add prototype for
41516 2006-06-28 Eric Blake <ebb9@byu.net>
41518 * modules/wcwidth: New file.
41519 * modules/mbchar (Depends-on): Add wcwidth.
41520 * modules/mbswidth (Depends-on): Add wcwidth.
41521 * MODULES.html.sh: Add wcwidth.
41523 2006-06-28 Eric Blake <ebb9@byu.net>
41525 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
41526 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
41528 2006-06-28 Eric Blake <ebb9@byu.net>
41530 * lib/xvasprintf.h: Fix comments.
41532 2006-06-28 Eric Blake <ebb9@byu.net>
41534 * lib/mbchar.h (wcwidth): Include wcwidth.h.
41535 * lib/mbswidth.c (wcwidth): Move from here...
41536 * lib/wcwidth.h: ...to this new file.
41538 2006-06-28 Derek R. Price <derek@ximbiot.com>
41540 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
41542 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
41544 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
41546 2006-06-28 Derek R. Price <derek@ximbiot.com>
41548 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
41549 Autoconf 2.60 says this stuff was obsolete.
41551 2006-06-28 Bruno Haible <bruno@clisp.org>
41553 * modules/wcwidth (Files): Add m4/wchar_t.m4.
41555 2006-06-28 Bruno Haible <bruno@clisp.org>
41557 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
41560 2006-06-28 Bruno Haible <bruno@clisp.org>
41562 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
41563 declaration for wcwidth.
41564 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
41566 2006-06-28 Bruno Haible <bruno@clisp.org>
41568 * lib/mkdtemp.c [MINGW]: Include <io.h>.
41569 (mkdir): Define using _mkdir.
41571 2006-06-28 Bruno Haible <bruno@clisp.org>
41573 * lib/getaddrinfo.h: Fix POSIX URL.
41574 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
41576 (use_win32_p): Make static.
41577 (getaddrinfo): Reject service name if it is empty or does not consist
41578 solely of decimal digits, or if its value is > 65535.
41579 (getnameinfo): Remove useless casts.
41581 2006-06-27 Simon Josefsson <jas@extundo.com>
41583 * modules/sys_select: New file, suggested by Bruno Haible, Paul
41584 Eggert and Martin Lambers.
41586 2006-06-27 Simon Josefsson <jas@extundo.com>
41588 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
41589 Eggert and Martin Lambers.
41591 2006-06-27 Bruno Haible <bruno@clisp.org>
41593 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
41594 result to 0, not to empty.
41595 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
41597 2006-06-27 Bruno Haible <bruno@clisp.org>
41599 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
41601 2006-06-26 Simon Josefsson <jas@extundo.com>
41603 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
41606 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
41608 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
41609 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
41610 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
41612 2006-06-26 Mark D. Baushke <mdb@gnu.org>
41614 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
41616 2006-06-26 Bruno Haible <bruno@clisp.org>
41618 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
41620 2006-06-26 Bruno Haible <bruno@clisp.org>
41622 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
41624 2006-06-26 Bruno Haible <bruno@clisp.org>
41626 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
41627 SGI C compiler in pre-C99 mode.
41628 Suggested by Mark D. Baushke and Larry Jones.
41630 2006-06-26 Bruno Haible <bruno@clisp.org>
41632 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
41634 Reported by Mark D. Baushke and Larry Jones.
41636 2006-06-26 Bruno Haible <bruno@clisp.org>
41638 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
41640 Suggested by Mark D. Baushke and Larry Jones.
41642 2006-06-23 Simon Josefsson <jas@extundo.com>
41643 Bruno Haible <bruno@clisp.org>
41645 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
41646 Emit mostlyclean-local rule.
41647 (func_emit_tests_Makefile_am): Likewise.
41648 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
41650 2006-06-23 Mark D. Baushke <mdb@gnu.org>
41652 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
41654 2006-06-23 Bruno Haible <bruno@clisp.org>
41656 * tests/test-stdint.c: Update to match ISO C 99 Technical
41659 2006-06-23 Bruno Haible <bruno@clisp.org>
41661 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
41663 2006-06-23 Bruno Haible <bruno@clisp.org>
41665 * lib/stdint_.h: Treat IRIX like OpenBSD.
41667 2006-06-23 Bruno Haible <bruno@clisp.org>
41669 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
41670 ISO C 99 Technical Corrigendum 1.
41672 2006-06-22 Simon Josefsson <jas@extundo.com>
41674 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
41677 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
41679 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
41680 needed. Some compiler complained about some of them. Problem reported
41682 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
41684 2006-06-21 Simon Josefsson <jas@extundo.com>
41686 * tests/test-getaddrinfo.c: New file.
41688 * modules/getaddrinfo-tests: New file.
41690 * MODULES.html.sh: Add inet_pton.
41692 * modules/inet_pton: New file.
41694 2006-06-21 Simon Josefsson <jas@extundo.com>
41696 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
41697 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
41698 of using the (limited) gnulib implementation on Windows XP.
41700 * m4/inet_pton.m4: New file.
41702 2006-06-21 Simon Josefsson <jas@extundo.com>
41704 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
41707 * lib/socket_.h: Don't define WINVER.
41709 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
41710 slightly modified to work in gnulib.
41712 2006-06-21 Simon Josefsson <jas@extundo.com>
41714 * doc/gnulib.texi (Windows sockets): Add.
41716 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
41718 * lib/read-file.c (fread_file): Start with buffer allocation of
41719 0 bytes rather than 1 byte; this simplifies the code.
41720 Don't invoke feof; it's not needed. Refactor to avoid duplicate
41721 code to free buffer and save/restore errno.
41722 (internal_read_file): Remove unused local.
41724 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
41726 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
41727 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
41728 Problem reported by Denis Excoffier in
41729 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
41731 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
41733 * modules/sys_socket, modules/socklen: Include sys/types since
41734 FreeBSD 4.x's sys/socket.h needs it.
41736 2006-06-19 Simon Josefsson <jas@extundo.com>
41738 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
41740 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
41742 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
41744 2006-06-19 Bruno Haible <bruno@clisp.org>
41746 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
41747 and FULL_PATH_INTTYPES_H in angle brackets.
41748 Reported by Mark D. Baushke <mdb@gnu.org>.
41750 2006-06-17 Eric Blake <ebb9@byu.net>
41752 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
41755 2006-06-17 Bruno Haible <bruno@clisp.org>
41757 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
41760 2006-06-17 Bruno Haible <bruno@clisp.org>
41762 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
41763 whether errno is declared. Assume <errno.h> declares errno.
41765 2006-06-17 Bruno Haible <bruno@clisp.org>
41767 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
41769 2006-06-17 Bruno Haible <bruno@clisp.org>
41771 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
41772 problem on Solaris 2.5.1.
41774 2006-06-16 Eric Blake <ebb9@byu.net>
41776 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
41777 * lib/unicodeio.c [!defined errno]: Likewise.
41778 * lib/strtol.c [!defined errno]: Likewise.
41779 * lib/strtod.c [!defined errno]: Likewise.
41781 2006-06-15 Eric Blake <ebb9@byu.net>
41783 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
41785 2006-06-15 Eric Blake <ebb9@byu.net>
41787 * config/srclist.txt (ssize_t.m4): Lose sync.
41789 2006-06-15 Bruno Haible <bruno@clisp.org>
41791 * modules/stdint (Files): Include m4/full-header-path.m4,
41792 m4/size_max.m4, m4/wchar_t.m4.
41793 (Makefile.am): Many more substitutions.
41794 * modules/stdint-tests: New file.
41795 * tests/test-stdint.c: New file.
41797 2006-06-15 Bruno Haible <bruno@clisp.org>
41799 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
41800 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
41801 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
41802 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
41803 gl_CHECK_TYPE_SAME): New macros.
41805 2006-06-15 Bruno Haible <bruno@clisp.org>
41807 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
41809 2006-06-15 Bruno Haible <bruno@clisp.org>
41811 * lib/stdint_.h: Rewritten to be fully auto-configured.
41812 Fixes bug on HP-UX/IA64.
41814 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
41816 * lib/getdate.y (__attribute__): Don't define if already defined.
41817 Problem reported by Larry Jones.
41818 * lib/utimens.c (__attribute__): Likewise.
41820 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
41822 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
41823 reported by Andreas Schwab.
41825 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41826 Bruno Haible <bruno@clisp.org>
41828 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
41829 check for the declaration of strnlen and a run test that exposes the
41830 AIX 5.1 strnlen bug. In the failure case, #define strndup to
41833 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41834 Bruno Haible <bruno@clisp.org>
41836 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
41838 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41840 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
41841 compile test, for Tru64 4.0D.
41843 2006-05-28 Karl Berry <karl@gnu.org>
41845 * config/srclist.txt (printf-args.c): lose sync.
41847 2006-05-26 Martin Lambers <marlam@marlam.de>
41849 * lib/getpass.c: Updates the test for the native W32 API, and adds
41850 missing includes, thus fixing compilation warnings.
41852 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
41854 * lib/exclude.c (exclude_fnmatch): New function.
41855 (excluded_file_name): Call exclude_fnmatch.
41856 * lib/exclude.h (excluded_file_name): New prototype
41858 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
41860 * lib/tempname.c (small_open, large_open): New macros.
41861 (__open, __open64) [!_LIBC]: Remove.
41862 (__gen_tempname): Use small_open and large_open instead of __open
41863 and __open64. This fixes a portability bug on HP-UX 11.11i
41864 reported by Simon Wing-Tang in
41865 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
41867 2006-05-24 Bruno Haible <bruno@clisp.org>
41869 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
41870 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
41871 Reported by Thorsten Maerz <torte@netztorte.de> via
41872 Aaron Stone <aaron@serendipity.cx>.
41874 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
41876 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
41877 gl_ rather than jm_. Link, don't run, so that cross-compiles are
41878 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
41879 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
41880 not really conditional on the cache.
41881 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
41883 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
41885 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
41886 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
41887 (my_usleep): Don't mishandle maximum value.
41889 2006-05-19 Jim Meyering <jim@meyering.net>
41891 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
41893 2006-05-17 Bruno Haible <bruno@clisp.org>
41895 Cygwin portability.
41896 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
41898 2006-05-17 Bruno Haible <bruno@clisp.org>
41900 * lib/stdint_.h: Fix recognition of Cygwin.
41902 2006-05-15 Bruno Haible <bruno@clisp.org>
41904 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
41905 on libtool patch by Ralf Wildenhues.
41907 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
41909 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
41910 test for C99 conformance; (bool) 0.5 is an integer constant
41911 expression, but (bool) -0.5 is not. Problem reported by Fedor
41912 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
41914 2006-05-11 Simon Josefsson <jas@extundo.com>
41916 * m4/xvasprintf.m4: Fix obvious typo.
41918 2006-05-11 Jim Meyering <jim@meyering.net>
41920 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
41923 2006-05-10 Simon Josefsson <jas@extundo.com>
41925 * lib/md4.c: Typo fix, update copyright years.
41926 (K1, K2): Don't use L because it turn computations into 64-bit on
41929 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
41931 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
41932 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
41933 unwanted sign propagation, e.g., on hosts with 64-bit int.
41934 There still are some problems with reeelly weird theoretical hosts
41935 (e.g., 33-bit int) but it's not worth worrying about now.
41936 * lib/sha1.c (rol): Likewise.
41937 (K1, K2, K3, K4): Remove unnecessary L suffix.
41939 2006-05-10 Bruno Haible <bruno@clisp.org>
41941 * lib/des.c: Cast to avoid warnings.
41943 2006-05-09 Bruno Haible <bruno@clisp.org>
41945 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
41946 (Depends-on): Depend also on xsize, stdarg.
41947 (configure.ac): Add gl_XVASPRINTF.
41949 2006-05-09 Bruno Haible <bruno@clisp.org>
41951 * m4/xvasprintf.m4: New file.
41953 2006-05-09 Bruno Haible <bruno@clisp.org>
41955 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
41956 (EOVERFLOW): Define fallback value.
41957 (xstrcat): New function.
41958 (xvasprintf): Recognize the special case of a string concatenation.
41960 2006-05-08 Eric Blake <ebb9@byu.net>
41962 * gnulib-tool (func_version): Base copyright year on CVS date.
41963 (func_emit_copyright_notice): New function.
41964 (func_emit_lib_Makefile_am): Use it.
41965 (func_emit_tests_Makefile_am): Likewise.
41966 (func_import): Likewise.
41968 2006-05-08 Bruno Haible <bruno@clisp.org>
41970 * modules/stdarg: New file.
41971 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
41973 2006-05-08 Bruno Haible <bruno@clisp.org>
41975 * m4/stdarg.m4: New file, from GNU gettext.
41977 2006-05-08 Bruno Haible <bruno@clisp.org>
41979 * config/srclist.txt (build-aux/config.rpath): different from latest
41982 2006-05-08 Bruno Haible <bruno@clisp.org>
41984 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
41986 2006-05-05 Jim Meyering <jim@meyering.net>
41988 * m4/warning.m4: New file, derived from bison's file by the same name.
41990 2006-05-03 Bruno Haible <bruno@clisp.org>
41992 * lib/stdint_.h: Shorter URL.
41993 * lib/inttypes.h: Likewise.
41995 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
41997 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
41999 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
42001 * lib/verify.h: Document the internals better. Most of this change
42002 was written by Bruno Haible.
42004 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
42006 * doc/verify.texi: New file, partly based on a proposal by
42009 2006-05-02 Bruno Haible <bruno@clisp.org>
42011 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
42013 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
42015 2006-04-29 Bruno Haible <bruno@clisp.org>
42017 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
42018 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
42020 2006-04-29 Bruno Haible <bruno@clisp.org>
42022 * gnulib-tool: Make --update option actually work.
42024 2006-04-29 Bruno Haible <bruno@clisp.org>
42026 * doc/gcd.texi: New file.
42027 * doc/gnulib.texi: Include it.
42029 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
42031 * lib/getdate.y (get_date): When adding relative date, start with the
42032 initial time, not with the result of the first mktime call.
42034 2006-04-25 Bruno Haible <bruno@clisp.org>
42036 * gnulib-tool (func_import): Output the include directives in three
42037 blocks, sorted separately.
42038 Reported by Ben Pfaff <blp@cs.stanford.edu>.
42040 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
42042 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
42043 to define main with arguments, for C++. Reported by Eric Blake.
42044 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
42045 Prefer 'int main ()' to 'int main (void)', for C++.
42046 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
42047 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
42048 for 'main', for C99 and C++.
42050 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
42052 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
42053 Don't assume that exit status -1 is valid.
42054 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42055 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
42056 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
42057 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
42058 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
42059 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
42060 not AC_TRY_RUN. Use return, not exit. Don't assume that
42061 functions can be used without declaring them, or that you can
42062 exit with status -1.
42063 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42065 2006-04-24 Karl Berry <karl@gnu.org>
42067 * config/srclist.txt (longdouble.m4): sync lost.
42069 2006-04-24 Eric Blake <ebb9@byu.net>
42071 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
42073 2006-04-24 Bruno Haible <bruno@clisp.org>
42075 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
42076 poll() implementation in AIX.
42077 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42079 2006-04-24 Bruno Haible <bruno@clisp.org>
42081 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
42082 assigned exactly once.
42084 2006-04-23 Claudio Fontana <claudio@gnu.org>
42085 Bruno Haible <bruno@clisp.org>
42087 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
42088 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
42091 2006-04-23 Bruno Haible <bruno@clisp.org>
42093 * modules/copy-file: Depend on unistd.
42094 * modules/execute: Likewise.
42095 * modules/fatal-signal: Likewise.
42096 * modules/findprog: Likewise.
42097 * modules/mkdtemp : Likewise.
42098 * modules/pipe: Likewise.
42099 * modules/wait-process: Likewise.
42101 2006-04-23 Bruno Haible <bruno@clisp.org>
42103 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
42104 condition was already detected.
42105 Reported by Ben Pfaff <blp@cs.stanford.edu>.
42107 2006-04-23 Bruno Haible <bruno@clisp.org>
42109 * lib/copy-file.c: Include <unistd.h> unconditionally.
42110 * lib/execute.c: Likewise.
42111 * lib/fatal-signal.c: Likewise.
42112 * lib/findprog.c: Likewise.
42113 * lib/mkdtemp.c: Likewise.
42114 * lib/pipe.h: Likewise.
42115 * lib/pipe.c: Likewise.
42116 * lib/wait-process.h: Likewise.
42118 2006-04-23 Bruno Haible <bruno@clisp.org>
42120 * gnulib-tool (func_usage): Fix --import description. Document
42122 (func_import): Create temporary file in a temporary directory, if
42123 --dry-run is specified. Silence errors from 'grep' when there are no
42124 m4 files in $m4dir.
42125 (func_create_testdir): Silence errors from 'grep' when there are no
42126 m4 files in $m4dir.
42127 Reported by Karl Berry <karl@freefriends.org>.
42129 2006-04-20 Bruno Haible <bruno@clisp.org>
42131 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
42132 one argument, so that the code will be portable to Autoconf 2.60.
42133 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
42134 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
42135 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
42137 2006-04-19 Derek Price <derek@ximbiot.com>
42138 Eric Blake <ebb9@byu.net>
42140 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
42141 rather than "/full/path.h". Update comment to match. Shorten &
42142 generalize m4_translit call via AS_TR_CPP.
42144 2006-04-19 Derek Price <derek@ximbiot.com>
42145 Eric Blake <ebb9@byu.net>
42147 * lib/inttypes.h: Correct grammar in comment.
42149 2006-04-18 Derek Price <derek@ximbiot.com>
42150 Paul Eggert <eggert@cs.ucla.edu>
42152 * modules/inttypes: New file.
42153 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
42155 2006-04-18 Derek Price <derek@ximbiot.com>
42156 Paul Eggert <eggert@cs.ucla.edu>
42158 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
42161 2006-04-18 Derek Price <derek@ximbiot.com>
42162 Paul Eggert <eggert@cs.ucla.edu>
42164 * lib/inttypes.h: New file.
42165 * lib/strtoimax.c: Assume <inttypes.h>.
42167 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
42169 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
42170 isn't mounted. Problem reported by Kir Kolyshkin.
42172 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
42174 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
42175 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
42177 * lib/regex.h (RE_DUP_MAX): Update comment to match current
42180 2006-04-12 Eric Blake <ebb9@byu.net>
42182 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
42183 is now done automatically by the corresponding Autoconf macro.
42185 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
42187 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
42190 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
42192 Merge regex changes from libc, removing some of our
42193 POSIX-conformance changes that were rejected and redoing them in a
42194 less-intrusive way.
42196 * lib/regcomp.c (re_compile_internal, init_dfa):
42197 Length arg is now size_t, not Idx. All uses changed.
42198 (peek_token): Forward decl now says internal_function.
42199 (__re_error_msgid, __re_error_msgid_idx):
42200 Now static rather than extern with attribute_hidden.
42201 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
42202 For some reason libc prefers K&R style defns for external functions.
42203 (regerror) [!defined _LIBC]: Likewise.
42204 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
42205 (seek_collating_symbol_entry, lookup_collation_sequence_value):
42206 (build_range_exp, build_collating_symbol):
42207 Use K&R-style defn.
42208 (re_compile_fastmap): Use '\0' to memset, not 0.
42209 (utf8_sb_map): Make the calculations more obvious.
42210 (init_dfa, parse_bracket_exp, build_charclass_op):
42211 Call calloc and cast result, as glibc does.
42212 (init_word_char, fetch_token, peek_token, peek_token_bracket):
42213 (build_range_exp, build_collating_symbol):
42214 Now internal functions.
42216 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
42218 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
42219 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
42220 Don't depend on VMS; depend on __VMS instead, for POSIX
42221 namespace cleanness.
42222 (regoff_t): Define to ssize_t, not long int.
42224 Remove the REG_ macros named below. Instead, make the old names
42225 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
42227 (REG_BACKSLASH_ESCAPE_IN_LISTS):
42228 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
42229 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
42230 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
42231 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
42232 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
42233 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
42234 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
42235 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
42236 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
42237 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
42238 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
42239 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
42240 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
42241 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
42242 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
42243 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
42245 Remove. All uses replaced by the old RE_* names.
42246 (RE_BACKSLASH_ESCAPE_IN_LISTS):
42247 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
42248 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
42249 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
42250 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
42251 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
42252 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
42253 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
42254 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
42255 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
42256 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
42257 Don't bother having these macros be independent of each others'
42258 values, since they no longer exist in the POSIX name space.
42260 Rename the following member names back to their old names,
42261 unless !__USE_GNU_REGEX. All uses changed back.
42262 (buffer): Renamed from re_buffer.
42263 (allocated): Renamed from re_allocated.
42264 (used): Renamed from re_used.
42265 (syntax): Renamed from re_syntax.
42266 (fastmap): Renamed from re_fastmap.
42267 (translate): Renamed from re_translate.
42268 (can_be_null): Renamed from re_can_be_null.
42269 (regs_allocated): Renamed from re_regs_allocated.
42270 (fastmap_accurate): Renamed from re_fastmap_accurate.
42271 (no_sub): Renamed from re_no_sub.
42272 (not_bol): Renamed from re_not_bol.
42273 (not_eol): Renamed from re_not_eol.
42274 (newline_anchor): Renamed from re_newline_anchor.
42275 (num_regs): Renamed from rm_num_regs.
42276 (start): Renamed from rm_start.
42277 (end): Renamed from rm_end.
42279 (free_state): Move up a bit.
42281 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
42282 #define to be empty.
42283 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
42284 when that is what is intended.
42285 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
42286 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
42288 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
42289 All uses changed back to re_malloc, etc. It's now the caller's
42290 responsibility to check for overflow; all callers changed.
42291 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
42292 (re_x2nrealloc): Remove.
42293 (free_state): Remove decl.
42295 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
42296 (re_set_registers, re_exec):
42297 Use K&R-style defn.
42299 2006-01-31 Roland McGrath <roland@redhat.com>
42301 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
42302 Reported by Mike Frysinger <vapier@gentoo.org>.
42304 2006-01-15 Andreas Jaeger <aj@suse.de>
42307 * lib/regex_internal.c (re_string_reconstruct): Adjust for
42308 build_wcs_upper_buffer change.
42309 (build_wcs_upper_buffer): Change return type.
42311 2005-12-10 Ulrich Drepper <drepper@redhat.com>
42313 * lib/regex_internal.h: Include <stdint.h> if available.
42315 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
42317 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
42319 2005-10-14 Ulrich Drepper <drepper@redhat.com>
42321 * lib/regcomp.c: Adjust for changed secondary hash function.
42323 2005-09-30 Ulrich Drepper <drepper@redhat.com>
42325 * lib/regex.h: Pretty printing.
42326 Clean up namespace a bit.
42328 2005-09-30 Jakub Jelinek <jakub@redhat.com>
42330 * lib/regexec.c (update_cur_sifted_state, check_arrival,
42331 check_arrival_add_next_nodes): Avoid using uninitialized variable.
42333 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
42334 Ulrich Drepper <drepper@redhat.com>
42337 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
42339 (bitset_word_t): Renamed from bitset_word. All uses changed.
42341 2005-09-22 Ulrich Drepper <drepper@redhat.com>
42344 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
42345 * lib/regcomp.c: Remove unnecessary uses of
42346 unsigned RE_TRANSLATE_TYPE.
42347 * lib/regex_internal.h: Likewise.
42348 * lib/regex_internal.c: Likewise.
42349 * lib/regexec.c: Likewise.
42350 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
42352 2005-09-07 Ulrich Drepper <drepper@redhat.com>
42354 * lib/regexec.c (find_recover_state): Remove unnecessary
42356 (transit_state_bkref): Make DFA a const pointer.
42357 (get_subexp): Likewise.
42358 (check_arrival): Likewise.
42359 (update_cur_sifted_state): Likewise.
42360 (re_search_internal): Likewise.
42361 (prune_impossible_nodes): Likewise.
42362 (acquire_init_state_context): Likewise.
42363 (proceed_next_node): Likewise.
42364 (set_regs): Likewise.
42365 (free_fail_stack_return): Likewise.
42366 (check_arrival_expand_ecl): Mark DFA parameter as const.
42367 (check_arrival_expand_ecl_sub): Likewise.
42368 (check_subexp_limits): Likewise.
42369 (sub_epsilon_src_nodes): Likewise.
42370 (add_epsilon_src_nodes): Likewise.
42371 (merge_state_array): Likewise.
42372 (update_regs): Likewise.
42373 (build_trtable): Likewise.
42374 (sift_states_backward): Mark MCTX parameter as const.
42375 (build_sifted_states): Likewise.
42376 (update_cur_sifted_state): Likewise.
42377 (sift_states_mkref): Likewise.
42378 (check_arrival_expand_ecl): Mark eclosure as const.
42379 (check_dst_limits_calc_pos_1): Likewise.
42380 * lib/regex_internal.h (re_match_context_t): Make dfa a const
42383 2005-09-06 Ulrich Drepper <drepper@redhat.com>
42385 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
42386 (transit_state_sb): Likewise.
42387 (transit_state_mb): Likewise.
42388 (sift_states_iter_mb): Likewise.
42389 (check_arrival_add_next_nodes): Likewise.
42390 (check_node_accept_bytes): Change first parameter to pointer-to-const.
42391 [_LIBC] (re_search_2_stub): Use mempcpy.
42393 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
42394 mbrtowc for very simple UTF-8 case.
42396 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
42397 a pointer-to-const.
42398 (re_acquire_state_context): Likewise.
42399 * lib/regex_internal.h: Adjust prototypes.
42401 * lib/regex.c: Prevent using C++ compilers.
42403 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
42404 (re_acquire_state_context): Likewise.
42406 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
42408 * modules/regex (Depends-on): Add ssize_t.
42410 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
42412 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
42415 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
42417 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
42419 2006-03-29 Mark D. Baushke <mdb@gnu.org>
42420 Bruno Haible <bruno@clisp.org>
42422 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
42423 <sys/types.h> and <inttypes.h>.
42425 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42427 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
42428 `__error_t_defined', so argp.h will not typedef the former.
42430 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
42432 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
42433 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
42434 glibc names. Even if glibc is changed to conform to POSIX, the
42435 traditional names will be available anyway, since regex depends on
42436 the extensions module. Also, fix a longstanding typo in the
42437 implementation of Spencer ERE test #75 from grep 2.3. Problems
42438 reported by Emanuele Giaquinta. Also, change sense of cached
42439 variable, so that the message makes sense.
42441 2006-03-24 Simon Josefsson <jas@extundo.com>
42443 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
42444 including some doc fixes.
42445 (base64_encode_alloc): Fix +1 bug on allocation failures.
42447 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42449 * lib/base64.c (base64_encode): Do not read past end of array with
42450 unsanitized input on systems with CHAR_BIT > 8.
42452 2006-03-24 Eric Blake <ebb9@byu.net>
42454 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
42456 2006-03-22 Karl Berry <karl@gnu.org>
42458 * config/srclist.txt (*setenv.[ch]): get from coreutils.
42459 * config/srclistvars.sh (COREUTILS): new var.
42461 2006-03-17 Jim Meyering <jim@meyering.net>
42463 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
42464 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
42466 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
42468 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
42469 no longer needs it. Instead, check that regoff_t is as least
42470 as wide as ptrdiff_t.
42472 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
42473 so that our regex.h stays compatible with the installed regex.
42474 This is helpful for installers who configure --without-included-regex.
42475 Problem reported by Emanuele Giaquinta.
42477 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
42479 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
42480 Typedef to long int, not to off_, as POSIX will likely change
42483 2006-03-15 Eric Blake <ebb9@byu.net>
42485 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
42487 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
42489 * lib/argp-help.c (validate_uparams): Fix typo
42490 * lib/argp-parse.c (argp_default_options): Consistently begin help
42491 messages with a lowercase letter.
42493 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
42495 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
42496 overrun buffers and shouldn't be used (much as gets shouldn't be
42498 * lib/time_r.c (asctime_r, ctime_r): Likewise.
42500 2006-03-08 Simon Josefsson <jas@extundo.com>
42502 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
42503 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42505 2006-03-08 Simon Josefsson <jas@extundo.com>
42507 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
42508 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42510 2006-03-08 Simon Josefsson <jas@extundo.com>
42512 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
42513 signal that configure disabled the device.
42515 2006-03-08 Simon Josefsson <jas@extundo.com>
42517 * build-aux/maint.mk: Fix refresh-po, to handle no translated
42520 2006-03-07 Simon Josefsson <jas@extundo.com>
42522 * modules/getopt (Depends-on): Add unistd.
42524 * modules/unistd: New file.
42526 2006-03-07 Simon Josefsson <jas@extundo.com>
42528 * modules/gc-random: New file.
42530 2006-03-07 Simon Josefsson <jas@extundo.com>
42532 * m4/unistd_h.m4: New file.
42534 2006-03-07 Simon Josefsson <jas@extundo.com>
42536 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
42537 test to be side-effect free by storing the result in the cache
42538 variable gl_cv_lib_readline, and moving the assignment of
42539 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
42540 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
42542 2006-03-07 Simon Josefsson <jas@extundo.com>
42544 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
42545 error on missing devices (the functions will return an error).
42547 * m4/gc.m4: Move random stuff to gc-random.m4
42549 2006-03-07 Simon Josefsson <jas@extundo.com>
42551 * lib/unistd_.h: New file.
42553 2006-03-07 Simon Josefsson <jas@extundo.com>
42555 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
42557 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
42559 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
42560 Problem reported by Juan Manuel Guerrero.
42562 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
42564 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
42566 * lib/getlogin_r.c: Likewise.
42567 * lib/getlogin_r.h: Likewise.
42568 * lib/glob.c: Likewise.
42569 * lib/pagealign_alloc.c: Likewise.
42570 * lib/unistd_.h: Remove; no longer needed.
42572 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
42574 * MODULES.html.sh (Support for systems lacking POSIX:2001):
42576 * modules/c-stack (Depends-on): Add unistd.
42577 * modules/getlogin_r: Likewise.
42578 * modules/glob: Likewise.
42579 * modules/pagealign_alloc: Likewise.
42580 * modules/unistd (Files): Remove lib/unistd_.h.
42581 (EXTRA_DIST): Remove.
42582 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
42584 (MOSTLYCLEANFILES): Remove unistd.h-t.
42586 2006-03-03 Simon Josefsson <jas@extundo.com>
42588 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
42590 2006-03-03 Simon Josefsson <jas@extundo.com>
42592 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
42595 2006-03-03 Simon Josefsson <jas@extundo.com>
42597 * build-aux/maint.mk: Add indent target.
42599 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
42601 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
42602 our replacement poll.h in any case, to avoid a differing
42603 declaration from a system header. Seen on AIX.
42605 2006-03-01 Simon Josefsson <jas@extundo.com>
42607 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
42610 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
42612 * modules/gettime (Depends-on): Add extensions module.
42613 * modules/nanosleep (Depends-on): Likewise.
42614 * modules/settime (Depends-on): Likewise.
42616 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
42618 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
42619 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
42621 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42622 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
42624 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
42625 not "==". Reported by Ralf Wildenhues.
42627 2006-03-01 Karl Berry <karl@gnu.org>
42629 * doc/Copyright/request-*: new files, synced from gnuorg.
42631 2006-03-01 Karl Berry <karl@gnu.org>
42633 * config/srclist.txt (Copyright/*): new entries.
42635 2006-02-28 Simon Josefsson <jas@extundo.com>
42637 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
42639 2006-02-27 Simon Josefsson <jas@extundo.com>
42641 * lib/base64.h: Indent #define's. From Jim Meyering
42642 <jim@meyering.net>.
42644 2006-02-27 Jim Meyering <jim@meyering.net>
42646 Revert the change of 2006-02-24, so these files can continue
42647 to be sync'd from gettext.
42648 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
42651 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
42653 * modules/intprops: New file.
42654 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
42656 * modules/getloadavg (Files): Remove lib/intprops.h.
42657 (Depends-on): Add intprops.
42658 * modules/human: Likewise.
42659 * modules/inttostr: Likewise.
42660 * modules/openat: Likewise.
42661 * modules/sig2str: Likewise.
42662 * modules/userspec: Likewise.
42663 * modules/utimecmp: Likewise.
42664 * modules/xnanosleep: Likewise.
42665 * modules/xstrtol: Likewise.
42667 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
42669 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
42670 * modules/lock-tests (TESTS): Use $(EXEEXT).
42671 * modules/tls-tests: Likewise.
42672 * modules/argp-tests: Likewise.
42673 (check_PROGRAMS): New var, replacing...
42674 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
42676 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42678 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
42681 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
42683 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
42685 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42687 Sync from coreutils.
42688 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
42691 2006-02-22 Jim Meyering <jim@meyering.net>
42693 Sync from coreutils.
42694 * m4/chdir-safer.m4: New file.
42696 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
42698 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
42699 AT_FDCWD exceeds INT_MAX.
42700 * lib/openat.h (AT_FDCWD): Likewise.
42702 2006-02-17 Eric Blake <address@hidden>
42704 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
42706 2006-02-16 Simon Josefsson <jas@extundo.com>
42708 * modules/getaddrinfo (Depends-on): Add sys_socket.
42710 2006-02-15 Simon Josefsson <jas@extundo.com>
42712 * build-aux/maint.mk: Add dsyntax-check rule.
42714 2006-02-15 Eric Blake <ebb9@byu.net>
42716 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
42717 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
42718 'present but cannot compile' warnings on cygwin.
42719 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
42720 use ws2tcpip.h if sys/socket.h works.
42721 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
42722 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
42724 2006-02-14 Simon Josefsson <jas@extundo.com>
42726 * modules/maintainer-makefile (Files): Rename.
42728 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
42729 and (the local) Makefile.cfg to maint-cfg.mk.
42731 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
42734 * modules/maintainer-makefile: New module.
42736 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
42737 severaly stripped to make it possible to build it up from scratch
42738 with reliable tests.
42740 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
42741 fixes to permit overriding the default actions when configure and
42742 makefile are not available.
42744 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
42746 Sync from coreutils.
42747 * modules/lstat (Depends-on): Don't depend on xalloc.
42748 (License): Change from GPL to LGPL, since this is now simply a
42749 replacement for a libc function.
42751 2006-02-14 Jim Meyering <jim@meyering.net>
42753 Sync from coreutils.
42755 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
42756 failure on deficient systems, and simplify gnulib lgpl dependencies.
42757 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
42758 xmalloc/lstat combination. Based on a patch from Bruno Haible.
42760 * lib/xalloc-die.c: Remove unused definition of N_.
42762 2006-02-14 Jim Meyering <jim@meyering.net>
42764 Sync from coreutils.
42765 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
42766 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
42767 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
42768 double-quote uses of that variable, to accommodate the rare case in
42769 which getmntent is available in none of the libraries checked. This
42770 happens at least on FreeBSD 5.0.
42772 2006-02-13 Simon Josefsson <jas@extundo.com>
42774 * gnulib-tool (Usage): Fix --import, from
42775 karl@freefriends.org (Karl Berry).
42777 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
42779 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
42781 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
42783 * lib/argp-namefrob.h: Restore changes accidentally lost during the
42784 "autoupdate" on 2005-12-12.
42786 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
42788 * modules/closeout (Depends-on): Remove atexit.
42790 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
42792 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
42793 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
42795 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
42797 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
42798 __EXTENSIONS__ if this causes compilation to fail. Problem
42799 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
42800 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
42802 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
42804 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
42805 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
42806 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
42809 2006-01-26 Simon Josefsson <jas@extundo.com>
42811 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
42812 prototype is visible on mingw32.
42814 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
42817 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
42820 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
42822 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
42823 attempt to open for write; this always fails, at least on POSIX
42824 hosts. This reinstates the 2006-01-09 change, which was
42825 inadvertently removed.
42827 2006-01-26 Bruno Haible <bruno@clisp.org>
42829 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
42830 Reported by Paul Eggert.
42832 2006-01-26 Bruno Haible <bruno@clisp.org>
42833 Paul Eggert <eggert@cs.ucla.edu>
42835 * lib/stdbool_.h (_Bool)
42836 [(! (defined __cplusplus || defined __BEOS__)
42837 && !defined __GNUC__
42838 && !(defined __HP_cc || defined __xlc__
42839 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
42840 || defined __sgi))]:
42841 #define to signed char in these cases too; this simplifies
42842 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
42843 etc., separately) and makes it more conservative.
42845 2006-01-25 Simon Josefsson <jas@extundo.com>
42847 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
42848 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
42849 ws2tcpip.h with WINVER=0x0501. All for mingw32.
42851 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
42853 * lib/argp-namefrob.h: Bugfix. Remove stray #
42855 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
42857 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
42858 so that we test the test.
42859 Check for yet another HP-UX cc bug involving *bool |= bool.
42861 2006-01-25 Karl Berry <karl@gnu.org>
42863 * config/srclist.txt (vasnprintf.c): sync lost.
42865 2006-01-25 Jim Meyering <jim@meyering.net>
42867 Sync from the stable (b5) branch of coreutils:
42869 * lib/fts.c (fts_children): Don't let close() clobber errno from
42872 * lib/fts.c (fts_stat): When following a symlink-to-directory,
42873 don't necessarily interpret stat-fails+lstat-succeeds as indicating
42874 a dangling symlink. That can also happen at least for ELOOP.
42875 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
42876 FYI, this bug predates the inclusion of fts.c in coreutils.
42878 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
42879 in their own block, so pre-c99 compilers don't object.
42881 Avoid the double-free (first in fts_read, second in fts_close) that
42882 would occur when an `active' directory is made inaccessible (e.g.,
42883 via chmod a-x) during a traversal.
42884 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
42885 before returning. Reproduce this failure by
42886 mkdir -p a/b; cd a; chmod a-x . b
42887 Reported by Stavros Passas.
42889 2006-01-25 Jim Meyering <jim@meyering.net>
42891 * lib/fileblocks.c: Remove more useless parentheses.
42892 * lib/readutmp.h: Likewise.
42894 2006-01-25 Bruno Haible <bruno@clisp.org>
42896 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
42898 Reported by Paul Eggert.
42900 2006-01-25 Bruno Haible <bruno@clisp.org>
42902 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
42903 rid of a trap command. For Solaris sh.
42904 Reported by Mark D. Baushke <mdb@gnu.org>.
42906 2006-01-24 Simon Josefsson <jas@extundo.com>
42908 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
42911 2006-01-24 Karl Berry <karl@gnu.org>
42913 * config/srclist.txt (argp-namefrob.h): sync lost.
42915 2006-01-24 Jim Meyering <jim@meyering.net>
42917 * modules/openat (Files): Add lib/intprops.h.
42918 From Mark D. Baushke.
42920 2006-01-24 Jim Meyering <jim@meyering.net>
42922 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
42923 Reported by Mark D. Baushke.
42925 2006-01-24 Jim Meyering <jim@meyering.net>
42927 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
42929 2006-01-24 Bruno Haible <bruno@clisp.org>
42931 * modules/strnlen (Maintainer): Change from glibc to all.
42933 2006-01-24 Bruno Haible <bruno@clisp.org>
42935 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
42936 Patch by Paul Eggert.
42938 2006-01-24 Bruno Haible <bruno@clisp.org>
42940 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
42942 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
42945 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
42946 'signed char' to avoid problems with the built-in _Bool type.
42947 Reported by Paul Eggert on 2005-11-26.
42949 2006-01-24 Bruno Haible <bruno@clisp.org>
42951 * gnulib-tool (func_import): Avoid constructing complicated sed
42952 expressions inside backquote.
42953 Report and solution by Mark D. Baushke <mdb@gnu.org>.
42955 2006-01-23 Ulrich Drepper <drepper@redhat.com>
42957 These changes imported from libc.
42958 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
42959 test and two separate function calls.
42960 * lib/strndup.c (__strndup): Add libc_hidden_def.
42962 2006-01-23 Simon Josefsson <jas@extundo.com>
42964 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
42965 Remove the test_*_SOURCES variable: automake infers it by default.
42966 * modules/tls-tests: Likewise.
42968 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
42970 Work around porting bugs reported by Dieter in
42971 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
42972 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
42973 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
42974 Include "getopt.h" first, to check interface.
42975 (getenv): Declare only if defined HAVE_DECL_GETENV &&
42977 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
42978 (__strndup): Revert to K&R-style function dfns, the glibc style.
42979 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
42980 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
42981 Include strnlen.h first, to get prototype properly.
42982 (strnlen): Renamed from __strnlen.
42985 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
42987 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
42989 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
42991 * config/srclist.txt: Adjust to reflect glibc reorganization.
42992 This affects only comments.
42994 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
42996 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
42997 Reported by Bruce Korb <bkorb@gnu.org>.
42999 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
43001 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
43002 to pacify gcc -Wswitch-default.
43004 2006-01-22 Bruno Haible <bruno@clisp.org>
43006 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
43007 temporary buffer for sprintf, take into account the precision also
43008 for 'd', 'i', 'u', 'o', 'x', 'X'.
43010 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
43012 * modules/argp-tests: New module
43013 * tests/test-argp.c: New file
43014 * tests/test-argp-2.sh: New file
43016 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
43018 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
43019 (__argp_base_name): Removed
43020 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
43022 (__argp_base_name): Provide macro definition or extern declaration
43023 depending on the configuration
43025 2006-01-20 Simon Josefsson <jas@extundo.com>
43027 * modules/inet_ntop (Depends-on): Depend on sys_socket.
43029 2006-01-20 Simon Josefsson <jas@extundo.com>
43031 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
43033 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
43035 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
43036 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
43037 Suggested by Bruno Haible.
43039 2006-01-20 Karl Berry <karl@gnu.org>
43041 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
43042 until changes propagate, I guess.
43044 2006-01-19 Simon Josefsson <jas@extundo.com>
43046 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
43048 2006-01-19 Simon Josefsson <jas@extundo.com>
43050 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
43052 2006-01-19 Simon Josefsson <jas@extundo.com>
43054 * gnulib-tool: Set check_PROGRAMS.
43056 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
43057 modules/des-tests, modules/gc-arcfour-tests,
43058 modules/gc-arctwo-tests, modules/gc-des-tests,
43059 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
43060 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
43061 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
43062 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
43063 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
43064 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
43065 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
43068 2006-01-18 Simon Josefsson <jas@extundo.com>
43070 * modules/socklen (Depends-on): Depend on sys_socket.
43072 2006-01-18 Simon Josefsson <jas@extundo.com>
43074 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
43075 modules/des-tests, modules/gc-arcfour-tests,
43076 modules/gc-arctwo-tests, modules/gc-des-tests,
43077 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
43078 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
43079 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
43080 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
43081 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
43082 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
43083 $(EXEEXT) to automake TESTS variable, for mingw32.
43085 2006-01-17 Simon Josefsson <jas@extundo.com>
43087 * modules/socklen (Include): Need sys/socket.h.
43089 2006-01-17 Bruno Haible <bruno@clisp.org>
43091 * modules/ssize_t (Include): Add <sys/types.h>.
43093 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
43095 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
43096 it's not portable and it doesn't work with cross-compiles.
43097 Problem reported by Bruno Haible. Fix missing-$ typo in
43098 'test "gl_cv_ignore_unused_libraries" ...' that prevented
43099 -zignore from being used with Sun's C compiler.
43101 2006-01-12 Simon Josefsson <jas@extundo.com>
43103 * lib/base64.c: Fix warning, reported by Bruno Haible
43104 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
43106 2006-01-12 Bruno Haible <bruno@clisp.org>
43108 * modules/ldd: New file.
43109 * build-aux/ldd.sh.in: New file.
43110 * MODULES.html.sh (Support for building libraries and executables): Add
43113 2006-01-12 Bruno Haible <bruno@clisp.org>
43115 * m4/ldd.m4: New file.
43117 2006-01-12 Bruno Haible <bruno@clisp.org>
43119 * gnulib-tool (func_import, func_create_testdir): Don't go into an
43120 endless loop while replacing $auxdir with build-aux.
43122 2006-01-11 Simon Josefsson <jas@extundo.com>
43124 * lib/stdint_.h (SIZE_MAX): Add missing (.
43126 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
43128 Sync from coreutils.
43129 * lib/md5.c: Fix commentary typos.
43130 (alignof, UNALIGNED_P): No need for a GCC-specific version.
43131 * lib/md5.h (__attribute__): Remove; unused.
43132 * lib/sha1.c: Fix commentary to match md5 better.
43133 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
43134 so that we don't need to worry about alignment. All uses changed.
43135 This merges the 2005-10-28 md5 change into sha1.
43137 2006-01-11 Jim Meyering <jim@meyering.net>
43139 Sync from coreutils.
43140 * lib/md5.c (OP): Fix spacing.
43142 2006-01-11 Bruno Haible <bruno@clisp.org>
43144 Ensure automatic ordering between gl_LOCK and gl_ARGP.
43145 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
43146 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
43148 2006-01-11 Bruno Haible <bruno@clisp.org>
43150 Ensure automatic ordering between gl_LOCK and gl_ARGP.
43151 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
43152 the "early" section as well.
43154 2006-01-11 Bruno Haible <bruno@clisp.org>
43156 Avoid "ar: no archive members specified" error on MacOS X.
43157 * gnulib-tool (func_modules_add_dummy): New function.
43158 (func_import, func_create_testdir): Invoke it.
43160 2006-01-11 Bruno Haible <bruno@clisp.org>
43162 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
43163 with $auxdir in AC_CONFIG_FILES statements.
43165 2006-01-11 Bruno Haible <bruno@clisp.org>
43167 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43168 Initialize also noinst_HEADERS to empty.
43170 2006-01-11 Bruno Haible <bruno@clisp.org>
43172 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
43174 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
43177 2006-01-11 Bruno Haible <bruno@clisp.org>
43179 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
43180 overridable by the user.
43181 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43183 2006-01-10 Simon Josefsson <jas@extundo.com>
43185 * modules/sys_socket: New file.
43187 2006-01-10 Simon Josefsson <jas@extundo.com>
43189 * m4/sys_socket_h.m4: New file.
43191 2006-01-10 Simon Josefsson <jas@extundo.com>
43193 * lib/socket_.h: New file.
43195 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
43197 * modules/readutmp (Maintainer): Add myself.
43199 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
43201 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
43202 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
43203 People who are still concerned with buggy memcmp implementations
43204 can invoke gl_FUNC_MEMCMP themselves.
43206 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
43208 * lib/regex_internal.h (BITSET_WORD_BITS):
43209 Work around a bug in 64-bit PGC (before version 6.1-2), where the
43210 preprocessor mishandles large unsigned values as if they were signed.
43211 Problem reported by Claudio Fontana in
43212 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
43214 2006-01-10 Jim Meyering <jim@meyering.net>
43216 Avoid the double-free (first in fts_read, second in fts_close) that
43217 would occur when an `active' directory is made inaccessible (e.g.,
43218 via chmod a-x) during a traversal.
43219 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
43220 before returning. Reproduce this failure by
43221 mkdir -p a/b; cd a; chmod a-x . b
43222 Reported by Stavros Passas.
43224 Sync from coreutils.
43225 * lib/sha1.c: Tweak grammar in a comment.
43227 2006-01-10 Jim Meyering <jim@meyering.net>
43229 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
43230 Patch by Joerg Sonnenberger.
43232 2006-01-10 Bruno Haible <bruno@clisp.org>
43234 * modules/readutmp: Depend on module free.
43235 * modules/strtok_r: Depend on module restrict.
43237 2006-01-10 Bruno Haible <bruno@clisp.org>
43239 * modules/gettext (configure.ac): Add an invocation of
43240 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
43242 2006-01-10 Bruno Haible <bruno@clisp.org>
43244 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
43245 Reported by Werner Lemberg <wl@gnu.org>.
43247 2006-01-10 Bruno Haible <bruno@clisp.org>
43249 * lib/localcharset.c: Update from GNU gettext.
43251 2006-01-10 Bruno Haible <bruno@clisp.org>
43253 * lib/argp.h (__const): Remove macro. Use const instead.
43254 * lib/argp-fmtstream.h (__const): Likewise.
43255 * lib/glob_.h (__const): Remove macro.
43256 * lib/glob-libc.h: Use const instead of __const.
43258 2006-01-10 Bruno Haible <bruno@clisp.org>
43260 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
43262 Needed to avoid an automake error regarding the 'gettext' module.
43264 2006-01-09 Simon Josefsson <jas@extundo.com>
43266 * modules/inet_ntop (Depends-on): Add restrict.
43268 2006-01-09 Simon Josefsson <jas@extundo.com>
43270 * modules/gc-rijndael-tests (License): Put under LGPL.
43272 * modules/gc-des-tests (License): Likewise.
43274 * modules/gc-arcfour-tests (License): Likewise.
43276 * modules/gc-arctwo-tests (License): Likewise.
43278 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
43280 * modules/gc-hmac-sha1-tests (Files): Likewise.
43282 * modules/gc-hmac-md5-tests (License): Likewise.
43284 * modules/gc-sha1-tests (License): Likewise.
43286 * modules/gc-md5-tests (License): Likewise.
43288 * modules/gc-md4-tests (License): Likewise.
43290 * modules/gc-md2-tests (License): Likewise.
43292 * modules/gc-tests (License): Likewise.
43294 * modules/des-tests (License): Likewise.
43296 * modules/md4-tests (License): Likewise.
43298 * modules/md2-tests (License): Likewise.
43300 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
43302 Sync from coreutils:
43304 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
43305 * modules/lib-ignore: New file.
43306 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
43307 chdir-safer.m4, lchmod.m4.
43308 * modules/openat: Add mkdirat.c, openat-priv.h.
43310 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
43312 Sync from coreutils.
43313 * m4/lib-ignore.m4: New file.
43314 * m4/lchmod.m4: New file.
43316 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
43318 Sync from coreutils.
43319 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
43320 for write access: POSIX says that must fail.
43321 * lib/fts.c (diropen): Likewise.
43322 * lib/save-cwd.c (save_cwd): Likewise.
43323 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
43324 well, for minor improvements on hosts that lack O_DIRECTORY.
43325 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
43326 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
43327 Fall back on chown if open failed with EACCES.
43329 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
43330 Report an error at compile-time if only a 1-second nominal clock
43331 resolution is found.
43333 * lib/lchmod.h: New file.
43334 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
43335 (make_dir_parents): Use lchown rather than chown, and
43336 lchmod rather than chmod.
43338 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
43339 dummies too. Problem with "none" reported by Bob Proulx. Problem with
43340 "proc" reported by n0dalus.
43342 * lib/mountlist.c: Include <limits.h>.
43343 (dev_from_mount_options)
43344 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
43345 New function. It no longer assumes "dev=" has the System V meaning
43346 on Linux (since it doesn't). It also parses "dev=" more carefully.
43347 (read_file_system_list)
43348 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
43349 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
43352 * lib/posixtm.h (PDS_PRE_2000): New macro.
43353 * lib/posixtm.c (year): Arg is now syntax_bits rather than
43354 allow_century. All usages changed. Reject dates outside the range
43355 1969-1999 if PDS_PRE_2000 is used.
43357 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
43359 Sync from coreutils.
43360 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
43361 (Time of day items): Mention the possibility of leap seconds.
43362 Problem reported by Dr. David Alan Gilbert.
43364 2006-01-09 Jim Meyering <jim@meyering.net>
43366 Sync from coreutils.
43368 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
43370 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
43372 * lib/modechange.c (mode_compile): Reject an invalid mode string
43373 that starts with an octal digit. From Andreas Gruenbacher.
43375 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
43376 and dup to open_safer and dup_safer, respectively.
43377 (openat_permissive): Fix typo in comment.
43379 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
43380 "gettext.h"; either no longer needed or are guaranteed by openat.h.
43381 (_): Remove; no longer needed.
43382 (openat): Renamed from rpl_openat; no need for rpl_openat
43383 since openat.h renames openat for us.
43384 Replace most of the body with a call to openat_permissive,
43385 to avoid duplicate code.
43386 Port to (probably hypothetical) environments were mode_t is
43388 (openat_permissive): Require mode arg, so that we can check
43389 types better. Put it just after flags. Change cwd failure
43390 indicator from pointer-to-bool to pointer-to-errno-value.
43391 All callers changed.
43392 Invoke openat_save_fail and/or openat_restore_fail if
43393 cwd_errno is null, so that openat can call us.
43394 (openat_permissive, fdopendir, fstatat, unlinkat):
43395 Simplify errno handling to avoid some duplicate code,
43396 as it's OK to set errno on success.
43397 * lib/openat.h: Revamp code so that function macros depend on
43398 __OPENAT_PREFIX only, not also on AT_FDCWD.
43399 (openat_ro): Remove. Caller changed to use openat_permissive.
43400 (openat_permissive): Now a macro, if not a function.
43401 (openat_restore_fail, openat_save_fail): Now always functions,
43402 since mkdirat needs them even if __OPENAT_PREFIX is defined.
43404 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
43406 * lib/mkdirat.c: Include openat-priv.h.
43407 Remove definitions of macros defined therein.
43408 * lib/openat.c: Likewise.
43410 * lib/mkdirat.c (mkdirat): New file and function.
43411 * lib/openat.h (mkdirat): Declare.
43413 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
43415 * lib/openat.h (openat_permissive): Declare.
43416 (openat_ro): Define.
43418 * lib/openat.c (EXPECTED_ERRNO): New macro.
43419 (openat_permissive): New function -- used in remove.c rewrite.
43420 (all functions): Set errno just before returning, only if there
43421 was an actual failure.
43422 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
43424 Emulate openat-family functions using Linux's procfs, if possible.
43425 Idea and some code based on Ulrich Drepper's glibc changes.
43427 * lib/openat.c: (BUILD_PROC_NAME): New macro.
43428 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
43429 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
43430 before falling back on save_cwd and restore_cwd.
43431 (fdopendir, fstatat, unlinkat): Likewise.
43433 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
43434 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
43436 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
43437 as second argument to va_arg. Otherwise, some versions of gcc
43438 warn that `if this code is reached, the program will abort'.
43440 2006-01-09 Jim Meyering <jim@meyering.net>
43442 Sync from coreutils.
43443 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
43444 Require openat-priv.h.
43446 2006-01-09 Bruno Haible <bruno@clisp.org>
43448 * modules/strnlen (Include): Use strnlen.h.
43450 2006-01-09 Bruno Haible <bruno@clisp.org>
43452 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
43454 2006-01-09 Bruno Haible <bruno@clisp.org>
43456 * lib/sysexit_.h (EX_OK): New macro.
43457 Suggested by Martin Lambers <marlam@marlam.de>.
43459 2006-01-09 Bruno Haible <bruno@clisp.org>
43461 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
43462 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
43464 2006-01-09 Bruno Haible <bruno@clisp.org>
43466 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
43469 2006-01-09 Bruno Haible <bruno@clisp.org>
43471 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
43472 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
43473 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
43474 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
43476 2006-01-09 Bruno Haible <bruno@clisp.org>
43478 * build-aux/javacomp.sh.in: New file, moved from lib/.
43479 * modules/javacomp-script (Files): Update.
43480 (configure.ac): Add AC_CONFIG_FILES invocation.
43481 (EXTRA_DIST): Remove variable.
43483 * build-aux/javaexec.sh.in: New file, moved from lib/.
43484 * modules/javaexec (Files): Update.
43485 (configure.ac): Add AC_CONFIG_FILES invocation.
43486 (EXTRA_DIST): Remove javaexec.sh.in.
43488 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
43489 * modules/csharpcomp-script (Files): Update.
43490 (configure.ac): Add AC_CONFIG_FILES invocation.
43491 (EXTRA_DIST): Remove variable.
43493 * build-aux/csharpexec.sh.in: New file, moved from lib/.
43494 * modules/csharpexec (Files): Update.
43495 (configure.ac): Add AC_CONFIG_FILES invocation.
43496 (EXTRA_DIST): Remove csharpexec.sh.in.
43498 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
43500 Sync from coreutils.
43502 Add POSIX ACL support
43503 * lib/acl.h (copy_acl, set_acl): Add declarations.
43504 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
43505 systems other than Linux.
43506 (chmod_or_fchmod): New function: use fchmod when possible,
43507 and chmod otherwise.
43508 (file_has_acl): Add a POSIX ACL implementation, with a
43509 Linux-specific subcase.
43510 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
43511 S_ISVTX from one file to another. Fall back to fchmod/chmod when
43512 acls are unsupported.
43513 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
43514 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
43517 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
43519 Sync from coreutils.
43520 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
43522 2006-01-07 Bruno Haible <bruno@clisp.org>
43524 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
43527 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
43529 * lib/strftime.c (tzname): Don't declare if it is already #defined.
43530 Problem reported for Mingw by Mark Junker.
43532 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
43534 * README: Gnulib normally doesn't generate a tarball.
43536 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
43538 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
43539 long int, not int, for nanosecond counts, so that people who are
43540 used to POSIX struct timespec won't be surprised. Reported by Jim
43543 2005-12-28 Bruno Haible <bruno@clisp.org>
43545 * build-aux/config.rpath: Update from GNU gettext.
43547 2005-12-16 Jim Meyering <jim@meyering.net>
43549 * modules/fprintftime: New module.
43550 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
43552 2005-12-16 Jim Meyering <jim@meyering.net>
43554 * m4/fprintftime.m4: New file.
43556 2005-12-16 Jim Meyering <jim@meyering.net>
43558 * lib/fprintftime.c, lib/fprintftime.h: New files.
43560 2005-12-15 Simon Josefsson <jas@extundo.com>
43562 * modules/socklen (configure.ac): Fix M4 macro name, to align with
43565 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
43567 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
43568 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
43570 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
43572 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
43573 * lib/argp-help.c (fill_in_uparams): Check if the constructed
43574 struct uparams is valid. Fall back to the default values if it is
43577 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
43579 * modules/argp (Files): Add argp-pin.c
43580 (Depends-on): dirname
43581 (lib_SOURCES): Add argp-pin.c
43583 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
43585 * m4/argp.m4: Check if program_invocation_name and
43586 program_invocation_short_name are declared and define appropriate
43587 macros if they are not.
43589 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
43591 * lib/argp-help.c (__argp_base_name): New function
43592 (__argp_short_program_name): Rewrite using __argp_base_name
43593 * lib/argp-namefrob.h: Define program_invocation_name and
43594 program_invocation_short_name if requested
43595 (__argp_base_name): Add prototype
43596 * lib/argp-parse.c (argp_def): Use gettext wrappers
43597 (argp_default_parser): Use __argp_base_name
43598 * lib/argp-pin.c: New file. Defines program_invocation_name and
43599 program_invocation_short_name on systems that lack them.
43601 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
43603 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
43604 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
43605 porting problem reported by Georg Schwarz in
43606 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
43608 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
43610 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
43611 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
43612 porting problem reported by Georg Schwarz in
43613 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
43615 2005-12-05 Bruno Haible <bruno@clisp.org>
43617 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
43618 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
43619 Reported by Mark Junker <mjscod@gmx.de>.
43621 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
43623 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
43624 Use implementation from Albert Chin, with some
43625 comments/corrections by Stepan Kasal and myself.
43627 2005-12-02 Bruno Haible <bruno@clisp.org>
43629 * gnulib-tool (func_import): Accept GPLed build tool modules when
43631 * modules/csharpcomp-script: New file.
43632 * modules/csharpcomp: Depend on it.
43633 * modules/javacomp-script: New file.
43634 * modules/javacomp: Depend on it.
43635 Suggested by Simon Josefsson.
43637 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
43639 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
43640 statement, to work around an HP-UX 10.20 compiler bug reported by
43643 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
43645 * modules/savedir (Depends-on): Add openat.
43647 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
43649 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
43650 (uintmax_t) [defined uintmax_t]: Do not declare.
43651 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
43652 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
43653 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
43654 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
43655 sake of portability to weird hosts that C allows (though we don't
43656 know of any practical examples).
43658 * lib/savedir.h (fdsavedir): New decl.
43659 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
43660 contains most of the former guts of savedir.
43661 (savedir): Use savedirstream.
43662 Include "openat.h".
43664 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
43666 * modules/obstack (Files): Add m4/ulonglong.m4.
43667 Problem reported by Davide Angelocola.
43669 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
43671 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
43672 coreutils no longer futzes with rounding modes.
43674 2005-11-14 Jim Meyering <jim@meyering.net>
43676 * lib/mkstemp-safer.c: Include <config.h>, required for possible
43677 replacement of mkstemp.
43679 2005-11-10 Simon Josefsson <jas@extundo.com>
43681 * lib/readline.c: Remove EOL.
43683 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
43685 * modules/gethrxtime (Depends-on): Add gettime.
43687 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
43689 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
43690 or gettimeofday; no longer needed.
43692 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
43694 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
43696 (gethrxtime) [! (HAVE_NANOUPTIME
43697 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
43698 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
43699 our own approximation.
43701 2005-11-08 Eric Blake <ebb9@byu.net>
43703 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
43705 2005-11-08 Eric Blake <ebb9@byu.net>
43707 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
43709 2005-11-04 Bruno Haible <bruno@clisp.org>
43711 * gnulib-tool: Implement --update mode.
43713 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
43715 Fix porting problem reported by Theodoros V. Kalamatianos.
43716 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
43717 Don't assume that futimes failing means we must fail.
43719 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
43721 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
43722 variables to suggest the intended function of the PATH_MAX check.
43724 2005-10-30 Kean Johnston <jkj@sco.com>
43726 Trivial changes to support SCO systems.
43727 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
43729 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
43730 where __ptr is null when no I/O is pending.
43732 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
43734 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
43735 leave errno alone. Problem reported by Dmitry V. Levin.
43737 2005-10-28 Simon Josefsson <jas@extundo.com>
43739 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
43742 * tests/test-gc-md2.c, tests/test-md2.c: New files.
43744 * modules/md2, modules/md2-tests: New files.
43746 2005-10-28 Simon Josefsson <jas@extundo.com>
43748 * m4/inet_ntop.m4: More tests.
43750 * m4/gc-md2.m4, md2.m4: New file.
43752 2005-10-28 Simon Josefsson <jas@extundo.com>
43754 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
43755 "restrict" keywords, as per POSIX. Protect the function
43756 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
43757 Don't use K&R prototypes. Check the sprintf return values.
43758 Re-define EAFNOSUPPORT if not present. Indent.
43760 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
43761 suggested by Bruno Haible <bruno@clisp.org>.
43763 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
43765 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
43767 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
43770 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
43772 * lib/md2.h, lib/md2.c: New files.
43774 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
43776 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
43777 errno alone. Problem reported by Frederic Jolliton.
43779 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
43781 * modules/verify (License): Change from GPL to LGPL. This is a
43782 tiny module and there are apparently near-equivalents that are
43783 under the BSD license.
43785 2005-10-24 Simon Josefsson <jas@extundo.com>
43787 * modules/sha1: Relicense to LGPL.
43789 2005-10-24 Simon Josefsson <jas@extundo.com>
43791 * lib/md4.h: Shrink buffer size, now that we changed the type.
43793 2005-10-23 Simon Josefsson <jas@extundo.com>
43795 * gnulib-tool (func_import): Fix --tests-base.
43797 2005-10-22 Simon Josefsson <jas@extundo.com>
43799 * modules/arcfour (Depends-on): Need stdint.
43801 2005-10-22 Simon Josefsson <jas@extundo.com>
43803 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
43804 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
43806 2005-10-22 Simon Josefsson <jas@extundo.com>
43808 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
43809 suggested by Bruno Haible <bruno@clisp.org>.
43811 2005-10-22 Simon Josefsson <jas@extundo.com>
43813 * lib/crc.h: Include stddef.h, for size_t.
43815 2005-10-22 Simon Josefsson <jas@extundo.com>
43817 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
43818 arcfour_context struct (simplify test vector testing in GNU
43821 2005-10-21 Simon Josefsson <jas@extundo.com>
43823 * modules/des, modules/des-tests: New files.
43825 * modules/gc-des, modules/gc-des-tests: New files.
43827 * tests/test-des.c, tests/test-gc-des.c: New file.
43829 2005-10-21 Simon Josefsson <jas@extundo.com>
43831 * modules/arctwo, modules/arctwo-tests: New files.
43833 * tests/test-arctwo.c: New file.
43835 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
43837 * tests/test-gc-arctwo.c: New file.
43839 2005-10-21 Simon Josefsson <jas@extundo.com>
43841 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
43842 Bruno Haible <bruno@clisp.org>.
43844 * m4/gc-des.m4: New file.
43846 2005-10-21 Simon Josefsson <jas@extundo.com>
43848 * m4/arctwo.m4: New file.
43850 * m4/gc-arctwo.m4: New file.
43852 2005-10-21 Simon Josefsson <jas@extundo.com>
43854 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
43857 2005-10-21 Simon Josefsson <jas@extundo.com>
43859 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
43862 * lib/hmac-sha1.c (hmac_sha1): Likewise.
43864 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
43865 Bruno Haible <bruno@clisp.org>.
43867 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
43870 2005-10-21 Simon Josefsson <jas@extundo.com>
43872 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
43874 2005-10-21 Simon Josefsson <jas@extundo.com>
43876 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
43878 2005-10-21 Simon Josefsson <jas@extundo.com>
43880 * lib/des.h, lib/des.c: New files.
43882 * lib/gc-gnulib.c: Support DES.c
43884 2005-10-21 Simon Josefsson <jas@extundo.com>
43886 * lib/arctwo.h, lib/arctwo.c: New files.
43888 * lib/gc-gnulib.c: Support ARCTWO.
43890 2005-10-21 Simon Josefsson <jas@extundo.com>
43892 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
43893 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43895 2005-10-21 Simon Josefsson <jas@extundo.com>
43897 * gnulib-tool (func_import, func_create_testdir): Define automake
43898 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
43899 Makefile.am snippet),
43900 suggested by Bruno Haible <bruno@clisp.org>.
43902 * modules/gc (Makefile.am): Use it.
43904 2005-10-21 Bruno Haible <bruno@clisp.org>
43906 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
43909 2005-10-19 Simon Josefsson <jas@extundo.com>
43911 * tests/test-gc-rijndael.c: New file.
43913 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
43915 2005-10-19 Simon Josefsson <jas@extundo.com>
43917 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
43920 2005-10-19 Simon Josefsson <jas@extundo.com>
43922 * tests/test-gc-arcfour.c: New file.
43924 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
43926 2005-10-19 Simon Josefsson <jas@extundo.com>
43928 * modules/gc-md4, modules/gc-md4-tests: New file.
43930 * tests/test-gc-md4.c: New file.
43932 2005-10-19 Simon Josefsson <jas@extundo.com>
43934 * m4/gc-md4.m4: New file.
43936 2005-10-19 Simon Josefsson <jas@extundo.com>
43938 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
43939 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
43942 2005-10-19 Simon Josefsson <jas@extundo.com>
43944 * m4/gc-arcfour.m4: New file.
43946 * m4/gc-rijndael.m4: New file.
43948 2005-10-19 Simon Josefsson <jas@extundo.com>
43950 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
43952 2005-10-19 Simon Josefsson <jas@extundo.com>
43954 * lib/gc-gnulib.c: Support ARCFOUR.
43956 2005-10-19 Simon Josefsson <jas@extundo.com>
43958 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
43961 * lib/gc.h: Add ECB enum type.
43963 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
43965 2005-10-18 Simon Josefsson <jas@extundo.com>
43967 * tests/test-md5.c: New file.
43969 * modules/md5-tests: New file.
43971 2005-10-18 Simon Josefsson <jas@extundo.com>
43973 * tests/test-md4.c: New file.
43975 * modules/md4, modules/md4-tests: New files.
43977 2005-10-18 Simon Josefsson <jas@extundo.com>
43979 * m4/md4.m4: New file.
43981 2005-10-18 Simon Josefsson <jas@extundo.com>
43983 * lib/md4.h, lib/md4.c: New files, based on md5.?.
43985 2005-10-17 Stepan Kasal <kasal@ucw.cz>
43987 * gnulib-tool (func_create_testdir): Omit the second check whether
43988 BUILT_SOURCES in nonempty.
43990 2005-10-17 Simon Josefsson <jas@extundo.com>
43992 * tests/test-rijndael.c: New file.
43994 2005-10-17 Simon Josefsson <jas@extundo.com>
43996 * modules/sha1: Depend on stdint instead of md5.
43998 * modules/md5: Depend on stdint, remove uint32_t.
44000 2005-10-17 Simon Josefsson <jas@extundo.com>
44002 * modules/gc-sha1-tests: New file.
44004 * tests/test-gc-sha1.c: New file.
44006 2005-10-17 Simon Josefsson <jas@extundo.com>
44008 * m4/md5.m4: Remove call to uint32_t.m4.
44010 2005-10-17 Simon Josefsson <jas@extundo.com>
44012 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
44014 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
44017 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
44019 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
44021 2005-10-17 Simon Josefsson <jas@extundo.com>
44023 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
44025 2005-10-17 Simon Josefsson <jas@extundo.com>
44027 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
44029 2005-10-17 Simon Josefsson <jas@extundo.com>
44031 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
44033 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
44035 2005-10-17 Bruno Haible <bruno@clisp.org>
44037 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
44038 that it can also be used in a test.
44040 2005-10-16 Bruno Haible <bruno@clisp.org>
44042 * gnulib-tool (func_emit_tests_Makefile_am): Also define
44043 TESTS_ENVIRONMENT, so that individual tests can augment it.
44045 * gnulib-tool (func_create_testdir): Use an intermediate target for
44046 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
44047 macros, like $(ALLOCA_H), which cannot be passed through the command
44050 2005-10-15 Simon Josefsson <jas@extundo.com>
44052 * modules/rijndael-tests: New file.
44054 * modules/rijndael: New file.
44056 2005-10-15 Simon Josefsson <jas@extundo.com>
44058 * m4/rijndael.m4: New file.
44060 2005-10-15 Simon Josefsson <jas@extundo.com>
44062 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
44064 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
44066 2005-10-14 Simon Josefsson <jas@extundo.com>
44068 * tests/test-arcfour.c: New file.
44070 * modules/arcfour, modules/arcfour-tests: New files.
44072 2005-10-14 Simon Josefsson <jas@extundo.com>
44074 * m4/arcfour.m4: New file.
44076 2005-10-14 Simon Josefsson <jas@extundo.com>
44078 * lib/arcfour.h, lib/arcfour.c: New files.
44080 2005-10-14 Roland McGrath <roland@redhat.com>
44082 Import from libc. [BZ #1331]
44083 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
44085 Reported by Matej Vela <vela@debian.org>.
44087 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
44089 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
44090 include <wchar.h>; no longer needed.
44092 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
44094 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
44096 2005-10-14 Jakub Jelinek <jakub@redhat.com>
44097 and Ulrich Drepper <drepper@redhat.com>
44100 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
44101 instead of inline stream orientation test and two separate
44102 function calls. Pay no attention to USE_IN_LIBIO.
44104 2005-10-13 Simon Josefsson <jas@extundo.com>
44106 * modules/gc-hmac-md5-tests: New file.
44108 * tests/test-gc-hmac-sha1.c: New file.
44110 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
44112 * modules/gc-hmac-md5-tests: New file.
44114 * tests/test-gc-md5.c: New file.
44116 * modules/gc-md5-tests: New file.
44118 2005-10-13 Simon Josefsson <jas@extundo.com>
44120 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
44121 Move memory allocation outside of loop.
44123 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
44125 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
44126 intermediate directory is in a read-only file system. Problem
44127 reported by Eric Blake.
44129 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
44131 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
44133 2005-10-12 Simon Josefsson <jas@extundo.com>
44135 * tests/test-hmac-sha1.c: New file.
44137 * modules/hmac-sha1-tests: New file.
44139 * modules/hmac-sha1: New file.
44141 2005-10-12 Simon Josefsson <jas@extundo.com>
44143 * modules/gc-sha1: New file.
44145 2005-10-12 Simon Josefsson <jas@extundo.com>
44147 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
44149 * tests/test-gc-pbkdf2-sha1.c: New file.
44151 2005-10-12 Simon Josefsson <jas@extundo.com>
44153 * modules/gc-md5, modules/gc-hmac-md5: New files.
44155 * modules/gc (Files): Remove md5, memxor and hmac files.
44157 2005-10-12 Simon Josefsson <jas@extundo.com>
44159 * m4/gc-pbkdf2-sha1.m4: New file.
44161 * m4/gc-hmac-sha1.m4: New file.
44163 * m4/gc-sha1: New file.
44165 * m4/hmac-sha1.m4: New file.
44167 2005-10-12 Simon Josefsson <jas@extundo.com>
44169 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
44171 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
44173 2005-10-12 Simon Josefsson <jas@extundo.com>
44175 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
44176 suggested by Bruno Haible <bruno@clisp.org>.
44178 2005-10-12 Simon Josefsson <jas@extundo.com>
44180 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
44182 2005-10-12 Simon Josefsson <jas@extundo.com>
44184 * lib/gc-pbkdf2-sha1.c: New file.
44186 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
44188 2005-10-12 Simon Josefsson <jas@extundo.com>
44190 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
44192 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
44194 2005-10-12 Simon Josefsson <jas@extundo.com>
44196 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
44197 GC_USE_HMAC_MD5, respectively.
44199 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
44200 (gc_md5): Fix typo.
44202 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
44204 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
44206 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
44208 2005-10-12 Bruno Haible <bruno@clisp.org>
44210 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
44211 Reported by Stepan Kasal <kasal@ucw.cz>.
44213 2005-10-11 Simon Josefsson <jas@extundo.com>
44215 * tests/test-crc.c: New file.
44217 * modules/crc, modules/crc-tests: New files.
44219 2005-10-11 Simon Josefsson <jas@extundo.com>
44221 * m4/crc.m4: New file.
44223 2005-10-11 Simon Josefsson <jas@extundo.com>
44225 * lib/gc.h: Add gc_hash and gc_hash_buffer.
44227 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
44229 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
44231 2005-10-11 Simon Josefsson <jas@extundo.com>
44233 * lib/crc.h, lib/crc.c: New files.
44235 * lib/gc.h (gc_hash_buffer): Add doc.
44237 2005-10-11 Bruno Haible <bruno@clisp.org>
44239 * modules/c-strcasestr: New file.
44240 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
44242 2005-10-11 Bruno Haible <bruno@clisp.org>
44244 * modules/c-strcase: New file.
44245 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
44247 2005-10-11 Bruno Haible <bruno@clisp.org>
44249 * lib/strcasecmp.c: Include limits.h.
44250 (strcasecmp): Avoid integer overflow on exotic platforms.
44251 * lib/strncasecmp.c: Include limits.h.
44252 (strncasecmp): Avoid integer overflow on exotic platforms.
44253 Reported by Paul Eggert.
44255 2005-10-11 Bruno Haible <bruno@clisp.org>
44257 * lib/c-strcasestr.h: New file, from GNU gettext.
44258 * lib/c-strcasestr.c: New file, from GNU gettext.
44260 2005-10-11 Bruno Haible <bruno@clisp.org>
44262 * lib/c-strcase.h: New file, from GNU gettext.
44263 * lib/c-strcasecmp.c: New file, from GNU gettext.
44264 * lib/c-strncasecmp.c: New file, from GNU gettext.
44266 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
44268 * modules/mempcpy (License): GPL -> LGPL.
44269 * modules/strchrnul (License): Likewise.
44270 * modules/sysexits (License): Likewise.
44272 2005-10-08 Simon Josefsson <jas@extundo.com>
44274 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
44276 2005-10-07 Simon Josefsson <jas@extundo.com>
44278 * m4/memxor.m4: Remove gl_C_RESTRICT call.
44280 2005-10-06 Simon Josefsson <jas@extundo.com>
44282 * tests/test-hmac-md5.c: New file.
44284 * modules/hmac-md5-tests: New file.
44286 * modules/hmac-md5: New file.
44288 2005-10-06 Simon Josefsson <jas@extundo.com>
44290 * m4/hmac-md5.m4: New file.
44292 * m4/memxor.m4: Require gl_C_RESTRICT.
44294 2005-10-06 Simon Josefsson <jas@extundo.com>
44296 * lib/memxor.c (memxor): Avoid casts and warnings.
44298 2005-10-06 Simon Josefsson <jas@extundo.com>
44300 * lib/hmac-md5.c: New file.
44302 * lib/hmac.h: New file.
44304 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
44306 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
44307 promotes to int, not unsigned int, to catch the AIX 5.3
44310 2005-10-05 Simon Josefsson <jas@extundo.com>
44312 * modules/memxor: New file.
44314 * modules/iconv (Files): Move config.rpath to havelib, it is used
44317 * modules/havelib (Files): Add config.rpath.
44319 2005-10-05 Simon Josefsson <jas@extundo.com>
44321 * m4/memxor.m4: New file.
44323 2005-10-05 Simon Josefsson <jas@extundo.com>
44325 * lib/memxor.c (memxor): Fix compiler error.
44327 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
44328 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
44330 * lib/memxor.h, lib/memxor.c: New files.
44332 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
44333 we assume all systems have it, suggested by Jim Meyering
44334 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
44335 any systems lack sys/socket.h; mingw32 is known to lack it, but we
44336 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
44339 2005-10-05 Simon Josefsson <jas@extundo.com>
44341 * config/srclist.txt: Add glibc bug 1423 for md5.h.
44343 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
44345 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
44346 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
44347 needed, since the source code now assumes these .h files.
44349 2005-10-05 Derek Price <derek@ximbiot.com>
44351 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
44353 2005-10-05 Bruno Haible <bruno@clisp.org>
44355 * modules/stdint (License): Change to LGPL.
44357 2005-10-04 Simon Josefsson <jas@extundo.com>
44359 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
44360 D. Baushke" <mdb@gnu.org>.
44362 2005-10-04 Bruno Haible <bruno@clisp.org>
44364 * lib/verify.h (verify_true): Provide alternative definition for C++.
44366 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
44368 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
44369 (SSIZE_MAX): New macro, if not already defined.
44370 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
44373 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
44375 Sync from coreutils.
44376 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
44377 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
44378 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
44379 ULLONG_MAX doesn't work with 2.7.2.1.
44381 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
44383 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
44386 * modules/exclude (Depends-on): Depend on verify.
44387 * modules/strtoimax (Depends-on): Likewise.
44388 * modules/utimecmp (Depends-on): Likewise.
44390 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
44392 * lib/exclude.c: Include verify.h.
44393 (verify): Remove. All callers changed to use verify.h's version.
44394 * lib/strtoimax.c: Likewise.
44395 * lib/utimecmp.c: Likewis.e
44397 Sync from coreutils.
44398 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
44399 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
44400 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
44401 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
44402 bother returning ENOSYS if settimeofday or stime fails; just let
44403 them return whatever errno they want to return.
44404 * lib/utimens.c: Include unistd.h, for dup2.
44405 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
44406 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
44408 2005-10-02 Jim Meyering <jim@meyering.net>
44410 Sync from coreutils.
44411 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
44412 from glibc-2.2.5 that fails for read-only files.
44414 2005-10-02 Jim Meyering <jim@meyering.net>
44416 Sync from coreutils.
44417 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
44418 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
44419 `#if HAVE_CONFIG_H'.
44420 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
44421 Remove AT_FDCWD test.
44422 Do not consume the fd unless successful.
44423 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
44424 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
44425 block, so that we don't even try to compile it if settimeofday is
44426 available. This works around a compilation failure on OSF1 V5.1,
44427 due to stime requiring a `long int*' while tv_sec is `int'.
44429 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
44431 Sync from coreutils.
44432 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
44433 against `yes', rather than just testing for nonempty.
44435 2005-10-01 Simon Josefsson <jas@extundo.com>
44437 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
44440 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
44441 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
44442 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
44443 freeaddrinfo and gai_strerror are declared by the POSIX headers.
44444 Check if struct addrinfo is declared.
44446 2005-10-01 Simon Josefsson <jas@extundo.com>
44448 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
44449 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
44450 AI_* and EAI_* definitions. Protect function declarations.
44452 2005-10-01 Jim Meyering <jim@meyering.net>
44454 Sync from coreutils.
44456 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
44457 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
44458 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
44459 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
44460 in the inet and nsl libraries. Required on Solaris 5.7.
44462 2005-10-01 Jim Meyering <jim@meyering.net>
44464 Sync from coreutils.
44465 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
44466 in the inet and nsl libraries. Required on Solaris 5.7.
44468 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
44470 * lib/getdelim.c (getdelim): Remove unused variables.
44472 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
44474 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
44475 so that the code works even with ancient cpp. Portability problem
44476 with GCC 2.7.2.1 reported by Thomas M.Ott.
44478 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
44480 * modules/regex (Depends-on): Add strcase.
44482 * modules/gethostname (Licence): Change from GPL to LGPL, since
44483 gethostname.c is a trivial implementation of a standard library
44485 * modules/poll (License): Change from GPL to LGPL, since it's
44486 derived from LGPL code.
44488 2005-09-27 Jim Meyering <jim@meyering.net>
44490 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
44493 * lib/intprops.h (signed_type_or_expr__): Define.
44494 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
44495 for unsigned types.
44497 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
44499 * lib/verify.h (verify_expr): Remove, replacing with:
44500 (verify_true): New macro that returns true instead of void.
44501 (verify_type__): Remove.
44502 (verify): Use verify_true rather than verify_type__.
44504 2005-09-26 Bruno Haible <bruno@clisp.org>
44506 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
44508 (lib_SOURCES): Remove mbchar.c.
44509 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
44510 (Files): Add m4/mbrtowc.m4.
44511 * modules/mbiter: Likewise.
44512 * modules/mbuiter: Likewise.
44514 2005-09-26 Bruno Haible <bruno@clisp.org>
44516 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
44517 compile mbchar.c if they are not both present.
44518 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
44519 * m4/mbiter.m4 (gl_MBITER): Likewise.
44520 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
44521 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
44522 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
44524 2005-09-25 Jim Meyering <jim@meyering.net>
44526 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
44527 also uses socklen_t.
44529 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
44531 * lib/utimens.c (ENOSYS): Define if not already defined.
44532 (futimens): Support having a null PATH if the file descriptor
44535 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
44537 (__attribute): Define to empty unless GCC 3.1 or later.
44538 This works around a core dump on OpenBSD 3.4, which has GCC
44539 2.95.3, which dumps core when given __attribute__(()). It also
44540 simplifies other tests, since we really don't want to bother with
44541 worrying about which ancient version of GCC supported what.
44542 Original problem reported by Yoann Vandoorselaere, with part of
44543 the fix suggested by Derek Price.
44545 2005-09-24 Jim Meyering <jim@meyering.net>
44547 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
44548 so we can once again use a positive bitfield width of 1 -- now we
44549 don't have to explain why we were using a bitfield width of 2.
44551 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
44553 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
44554 and similarly for the other external symbols. Problem reported
44557 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
44558 bug reported by Jim Meyering.
44560 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
44561 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
44562 not needed, since socklen is a prerequisite module.
44564 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
44566 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
44567 Problem reported by Eric Blake.
44568 (getaddrinfo): Initialize se so that it's not garbage.
44569 Redo internal storage allocation so that it doesn't make unportable
44570 assumptions about alignment.
44573 * lib/utimens.c (futimens): Use futimesat if available.
44574 Prefer it to futimes since it doesn't have the futimes bug.
44576 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
44577 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
44578 Instead, declare a function that returns a pointer to an array,
44579 and use verify_type__ to declare the size of the array.
44580 Problem and germ of a solution reported by Bruno Haible.
44581 (verify_type__): Use 2, not 1, for bitfield size, to avoid
44582 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
44584 2005-09-23 Jim Meyering <jim@meyering.net>
44586 Sync from coreutils.
44587 Correct build failure (socklen_t not defined) on at least
44588 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
44589 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
44591 2005-09-23 Jim Meyering <jim@meyering.net>
44593 * modules/getaddrinfo (Depends-on): Add socklen.
44595 2005-09-23 Bruno Haible <bruno@clisp.org>
44597 * tests/test-verify.c: New file.
44599 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
44601 Sync from coreutils.
44603 * modules/argmatch (Depends-on): Add verify.
44604 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
44606 * modules/save-cwd (Depends-on): Likewise.
44608 * modules/openat (Files): Add lib/openat-die.c.
44609 (Depends-on): Remove error, exitfail.
44612 * modules/verify: New file.
44613 * MODULES.html.sh (Diagnostics <assert.h>): New section,
44614 with "verify" module.
44616 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
44618 Sync from coreutils.
44620 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
44621 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
44622 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
44623 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
44624 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
44625 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
44626 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
44627 Don't bother checking for string.h, stdlib.h, unistd.h.
44628 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
44629 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
44631 * m4/jm-macros.m4 (gl_MACROS): Likewise.
44632 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
44634 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
44635 (gl_GETDATE): Use it.
44637 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
44639 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
44641 Sync from coreutils.
44643 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
44645 * lib/argmatch.h: Include verify.h
44646 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
44647 (ARGMATCH_ASSERT): Remove; unused.
44648 * lib/canonicalize.c: Assume STDC_HEADERS.
44649 * lib/exclude.c: Include "strcase.h".
44650 * lib/regex_internal.h [!defined _LIBC]: Likewise.
44651 * lib/getusershell.c: Include stdio--.h rather than stdio.h
44653 (getusershell): Call fopen, not fopen_safer.
44654 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
44655 Do not include unistd-safer.h.
44656 (save_cwd): Don't call fd_safer; no longer needed
44657 now that we include fcntl--.h.
44659 * lib/getdate.y (relative_time): New type.
44660 (RELATIVE_TIME_0): New constant.
44661 (parser_control): Use relative_time instead of doing it ourselves.
44662 (%union): Add new relative_time rel member.
44663 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
44665 (relunit, relunit_snumber): Now of type rel.
44666 (zone, rel, relunit, get_date): Adjust to above changes.
44668 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
44669 Do not include unistd-safer.h.
44670 (getloadavg): Don't call fd_safer; no longer needed
44671 now that we include fcntl--.h.
44673 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
44674 (make_dir_parents): Treat ENOSYS like EEXIST.
44676 Improve quality of diagnostics on restore_cwd failure.
44677 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
44678 (make_dir_parents): Last arg is now int * (for errno), not bool *.
44679 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
44680 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
44681 each time through the loop. Do not diagnose restore_cwd failure;
44682 that is the caller's job (and perhaps the caller does not care).
44684 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
44685 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
44686 If the file already exists but is not a directory, don't bother
44687 to try to make its parents.
44688 Close potential file descriptor leak if we can't chdir("/") (!).
44689 Don't always return true if chdir($PWD) fails; return true only
44690 if the requested action was done successfully (except for the
44692 Don't log final directory unless we actually made it.
44693 Refactor to avoid duplicate code to fix up permissions.
44694 Don't attempt to fix up parent permissions if chdir($PWD) fails.
44696 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
44697 to make it a bit faster and (I hope) clearer.
44698 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
44699 Fix bug in formats like %2N.
44701 * lib/verify.h: New file.
44703 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
44705 Sync from coreutils.
44706 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
44708 2005-09-22 Jim Meyering <jim@meyering.net>
44710 Sync from coreutils.
44712 * m4/lstat.m4 (gl_FUNC_LSTAT):
44713 Use AC_LIBSOURCES to require lstat.c and lstat.h.
44714 Remove obsolete comment.
44715 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
44716 * m4/xstrtod.m4: Likewise.
44718 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
44720 2005-09-22 Jim Meyering <jim@meyering.net>
44722 Sync from coreutils.
44724 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
44726 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
44727 the .tm_year member, since otherwise gcc-4.0 would now warn about
44728 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
44730 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
44731 order to avoid an unsuppressible warning from gcc on 64-bit systems.
44733 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
44734 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
44735 when run in a time zone for which daylight savings time is in effect
44736 for the starting date.
44738 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
44739 stop us from restricting permissions of just-created absolute-named
44741 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
44742 to restore initial working directory.
44743 * lib/mkdir-p.c (make_dir_parents): New parameter:
44744 different_working_dir, to tell caller if/when we change the working
44745 directory and are unable to return to the initial one.
44746 * lib/mkdir-p.h (make_dir_parents): Update prototype.
44747 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
44748 `return false'. This fixes a bug introduced on 2004-07-30.
44750 * lib/openat.c (fdopendir): Be sure to close the supplied
44751 file descriptor before returning. This makes our replacement
44752 implementation a little closer to Solaris's, where fdopendir
44753 ties the file descriptor to the returned DIR* pointer.
44754 * lib/openat.c (unlinkat): New function.
44755 * lib/openat.h (unlinkat): Add prototype.
44756 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
44757 (openat_restore_fail): Rename from openat_restore_die.
44758 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
44760 Provide an alternative to exiting immediately upon save_cwd or
44761 restore_cwd failure. Now, an application can arrange e.g.,
44762 to perform a longjump in that case.
44763 * lib/openat.c: Include dirname.h.
44764 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
44765 (rpl_openat, fdopendir, fstatat): Call openat_save_die
44766 and openat_restore_die rather than calling error directly.
44767 Don't include "error.h" or "exitfail.h"; they're no longer needed.
44769 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
44770 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
44773 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
44774 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
44775 int utc, int nanoseconds);
44777 date should not have to allocate a megabyte of virtual memory to
44778 handle a format argument like +%1048575T. When implemented with
44779 strftime, it must allocate such a buffer, use strftime to fill it
44780 in, print it, then free it.
44781 With fprintftime, it simply prints everything and exits.
44782 With no need for memory allocation, that's one fewer way to fail.
44783 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
44784 optional field width, not before, so we accept %9:z, not %:9z.
44785 (my_strftime): Be sure to use L_('x') for literals.
44787 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
44788 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
44789 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
44790 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
44791 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
44792 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
44793 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
44794 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
44795 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
44796 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
44797 * lib/xgethostname.c, lib/xreadlink.c:
44798 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
44800 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
44801 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
44802 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
44803 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
44804 and don't include <sys/file.h>).
44806 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
44808 Sync from coreutils.
44810 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
44811 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
44812 [!LDAV_DONE]: Avoid unused variable warning.
44814 2005-09-21 Bruno Haible <bruno@clisp.org>
44816 * lib/unicodeio.h (unicode_to_mb): New declaration.
44818 2005-09-20 Derek Price <derek@ximbiot.com>
44820 * lib/getaddrinfo.c: Don't include <netdb.h> included from
44823 2005-09-20 Bruno Haible <bruno@clisp.org>
44825 * gnulib-tool: Remove trailing slashes from the values specified for
44826 --source-base, --m4-base, --tests-base, --aux-dir.
44827 Suggested by Simon Josefsson <jas@extundo.com>.
44829 2005-09-20 Bruno Haible <bruno@clisp.org>
44831 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
44832 func_modules_to_filelist, func_import, func_create_testdir): Make all
44833 sorting results locale-independent, so that gnulib-cache.m4 doesn't
44834 change when gnulib-tool is invoked in a different locale.
44836 2005-09-19 Simon Josefsson <jas@extundo.com>
44838 * m4/socklen.m4: Fix typo.
44840 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44842 Use a consistent style for including <config.h>.
44843 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
44844 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
44845 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
44846 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
44847 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
44848 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
44849 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
44850 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
44851 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
44852 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
44853 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
44854 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
44855 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
44856 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
44857 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
44858 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
44859 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
44860 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
44861 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
44862 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
44863 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
44864 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
44865 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
44866 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
44867 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
44868 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
44869 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
44870 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
44871 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
44872 lib/xstrtoumax.c, lib/yesno.c:
44873 Standardize inclusion of config.h.
44874 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
44875 lib/inttostr.h: Removed inclusion of config.h from header files.
44876 * lib/inttostr.c: Adjusted in-tree users.
44877 * lib/timespec.h: Remove superfluous warning to include config.h.
44878 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
44879 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
44880 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
44881 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
44882 config.h with HAVE_CONFIG_H.
44884 2005-09-19 Jim Meyering <jim@meyering.net>
44886 * modules/pathmax (License): Change to LGPL.
44888 2005-09-19 Derek Price <derek@ximbiot.com>
44890 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
44892 2005-09-19 Bruno Haible <bruno@clisp.org>
44894 * gnulib-tool (import): Provide default for --tests-base.
44896 2005-09-19 Bruno Haible <bruno@clisp.org>
44898 * doc/quote.texi: New file, extracted from gnulib.texi.
44899 * doc/ctime.texi: New file, extracted from gnulib.texi.
44900 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
44901 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
44902 * doc/gnulib.texi: Include them.
44904 2005-09-18 Bruno Haible <bruno@clisp.org>
44907 * gnulib-tool (func_readlink): New function.
44908 (func_ln_if_changed): Use it.
44910 2005-09-18 Bruno Haible <bruno@clisp.org>
44912 * gnulib-tool: Support --with-tests also with --import.
44913 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
44914 (func_import): Use variables $testsbase and $inctests. Emit a
44915 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
44916 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
44917 SUBDIRS += $testsdir.
44918 (func_create_testdir): Update.
44920 2005-09-18 Bruno Haible <bruno@clisp.org>
44922 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
44923 instead of $dry_run.
44924 (func_cp_if_changed, func_mv_if_changed): Remove functions.
44925 (func_ln_if_changed): Don't handle dry-run here.
44926 (func_import): In dry-run mode, detect more precisely which actions
44927 would be performed, and don't use "...ing" verbs.
44929 2005-09-18 Bruno Haible <bruno@clisp.org>
44931 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
44932 (func_import): Use join on two temporary files instead of three nested
44933 loops, in order to determine which files are new or old.
44935 2005-09-18 Bruno Haible <bruno@clisp.org>
44937 * gnulib-tool (func_import): Comment out code that spits out the
44938 new files with --dry-run.
44940 2005-09-18 Bruno Haible <bruno@clisp.org>
44942 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
44944 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
44946 * lib/stat-time.h: New file.
44947 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
44948 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
44949 in a different way.
44950 (timespec_cmp): New function.
44951 * lib/utimecmp.c: Include stat-time.h.
44952 (SYSCALL_RESOLUTION): Depend on whether various struct stat
44953 members exist, not on the obsolescent ST_MTIM_NSEC.
44954 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
44956 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
44958 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
44960 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
44962 * MODULES.html.sh (File system functions): Add stat-time.
44963 * modules/stat-time: New file.
44964 * modules/timespec (Files): Remove m4/st_mtim.m4; this
44965 is now done in a different way, by the stat-time module.
44966 * modules/utimecmp (Depends-on): Add stat-time.
44968 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
44970 * m4/st_mtim.m4: Remove. Superseded by...
44971 * m4/stat-time.m4: New file.
44972 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
44973 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
44975 2005-09-15 Derek Price <derek@ximbiot.com>
44977 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
44979 2005-09-15 Derek Price <derek@ximbiot.com>
44981 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
44982 * lib/regex_internal.c: Ditto, using this...
44983 (__GNUC_PREREQ): ...new macro.
44984 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
44986 (__GNUC_PREREQ): ...this new macro.
44988 * lib/strstr.h: Include string.h. Define strstr as a macro here.
44990 2005-09-15 Derek Price <derek@ximbiot.com>
44991 Paul Eggert <eggert@cs.ucla.edu>
44993 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
44994 changes, consolidating in...
44995 * lib/regex_internal.h: ...this file.
44997 2005-09-13 Jim Meyering <jim@meyering.net>
44999 * lib/canon-host.c: Filter through gnu indent and reword comments
45001 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
45003 2005-09-13 Derek Price <derek@ximbiot.com>
45005 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
45007 Reported by Jim Meyering <jim@meyering.net>.
45009 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45011 * lib/base64.c: Typo.
45012 (base64_encode): Put b64str in initialized data section.
45014 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
45016 Merge glibc and coreutils changes into gnulib, plus a few
45018 * lib/md5.c: Use #error rather than a string.
45019 (CYCLIC): New macro, from glibc source. Use it instead of rol.
45020 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
45021 (__attribute__): Define to empty for non recent-GCC.
45022 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
45023 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
45024 Renamed from their non-__ counterparts, with new macros replacing
45025 them if not _LIBC. Add __THROW attribute.
45027 (struct md5_ctx): Align buffer if using GCC.
45028 * lib/sha1.h (struct sha1_ctx): Likewise.
45029 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
45030 The old name was backwards.
45031 (NOTSWAP): Remove; not used.
45032 (rol): New macro, moved here from md5.h.
45033 (sha1_process_block): Remove a FIXME that doesn't make sense.
45035 2005-09-12 Derek Price <derek@ximbiot.com>
45037 Return usable errors from canon-host.
45038 * lib/canon-host.h: New file.
45039 * lib/canon-host.c (canon_host): Wrap...
45040 (canon_host_r): ...this new function, which now relies exclusively on
45042 (ch_strerror): New function.
45043 (last_cherror): New global.
45044 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
45046 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
45048 (freeaddrinfo): Free ai->ai_canonname when set.
45050 2005-09-12 Derek Price <derek@ximbiot.com>
45052 Make canon-host require getaddrinfo.
45053 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
45054 AC_LIBSOURCE canon-host.h. Call...
45055 (gl_PREREQ_CANON_HOST): ...this new function, which requires
45057 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
45059 2005-09-12 Derek Price <derek@ximbiot.com>
45061 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
45063 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
45065 2005-09-12 Derek Price <derek@ximbiot.com>
45067 * lib/gai_strerror.c: Include config.h when available. Include
45068 getaddrinfo.h before other headers to test interface.
45069 Reported by Larry Jones <lawrence.jones@ugs.com>.
45071 2005-09-12 Derek Price <derek@ximbiot.com>
45072 Paul Eggert <eggert@cs.ucla.edu>
45074 * modules/glob (Files): Add glob-libc.h.
45076 2005-09-12 Derek Price <derek@ximbiot.com>
45077 Paul Eggert <eggert@cs.ucla.edu>
45079 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
45080 glob_.h, glob-libc.h.
45081 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
45083 2005-09-12 Derek Price <derek@ximbiot.com>
45084 Paul Eggert <eggert@cs.ucla.edu>
45086 * lib/glob-libc.h: Renamed from glob_.h. The new version is
45087 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
45088 protecting things that should be done only in gnulib contexts.
45089 * lib/glob_.h: New file, containing only the glob things needed for
45091 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
45092 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
45093 (glob, globfree, glob_pattern_p): Now defined simply in terms of
45094 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
45095 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
45096 and to respect the namespace rules better.
45098 2005-09-08 Simon Josefsson <jas@extundo.com>
45100 * modules/socklen: New file.
45102 2005-09-08 Simon Josefsson <jas@extundo.com>
45104 * m4/socklen.m4: New file.
45106 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
45108 * modules/utimens (Files): Add m4/utimbuf.m4, since
45109 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
45110 Reported by Sergey Poznyakoff.
45112 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
45114 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
45115 definitions, since that's the preferred style in glibc.
45116 Fix a minor spacing issue, and update copyright notice to match
45119 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
45121 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
45123 2005-09-06 Simon Josefsson <jas@extundo.com>
45125 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
45126 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
45128 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
45130 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
45133 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
45135 * config/srclist.txt: Add glibc bug 1302.
45137 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
45139 Change bitset word type from unsigned int to unsigned long int,
45140 as this has better performance on typical 64-bit hosts.
45141 Port bitset code to hosts with unusual word sizes.
45142 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
45143 (build_collating_symbol):
45144 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
45145 argument is a bitset. This is merely a style issue, but it makes
45146 it clearer that an entire array is expected.
45147 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
45148 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
45149 Port to the case where bitset_word is not the same as unsigned int.
45150 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
45151 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
45153 * lib/regexec.c (check_dst_limits_calc_pos_1,
45154 check_subexp_matching_top):
45155 (build_trtable, group_nodes_into_DFAstates):
45157 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
45158 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
45159 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
45160 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
45161 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
45162 * lib/regcomp.c (optimize_subexps, lower_subexp):
45163 Work even if bitset_word has holes in its bitwise representation.
45164 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
45165 * lib/regexec.c (check_dst_limits_calc_pos_1,
45166 check_subexp_matching_top):
45168 * lib/regex_internal.c (re_string_reconstruct):
45169 Don't assume UCHAR_MAX == 255.
45170 * lib/regex_internal.h (bitset_set_all): Likewise.
45171 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
45173 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
45174 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
45176 (BITSET_WORD_MAX): New macro.
45177 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
45178 (bitset_set_all, bitset_copy): Now inline functions, not macros.
45179 (bitset_empty, bitset_copy):
45180 Prefer sizeof (bitset) to multiplying it out ourselves.
45181 (bitset_not_merge): Remove; unused.
45182 (bitset_contain): Return bool, not unsigned int with one bit on.
45183 All callers changed.
45184 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
45185 alignment than re_node_set; do this by defining a new internal
45186 type struct dests_alloc and using it to allocate memory.
45188 2005-09-05 Bruno Haible <bruno@clisp.org>
45190 * gnulib-tool (func_import): Fix comparison in handling of symbolic
45193 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
45195 * modules/size_max (Makefile.am): Add size_max.h
45197 2005-09-04 Derek Price <derek@ximbiot.com>
45199 * gnulib-tool (func_import): Fix reversed $symbolic logic.
45201 2005-09-03 Simon Josefsson <jas@extundo.com>
45203 * gnulib-tool: Fix typo.
45205 2005-09-03 Simon Josefsson <jas@extundo.com>
45207 * config/srclist.txt: Add glibc bug 1293.
45209 2005-09-03 Derek Price <derek@ximbiot.com>
45211 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
45212 From Larry Jones <lawrence.jones@ugs.com>.
45214 2005-09-02 Simon Josefsson <jas@extundo.com>
45216 * modules/socklen: New file.
45218 2005-09-02 Simon Josefsson <jas@extundo.com>
45220 * modules/havelib: New module.
45222 * modules/gettext, modules/iconv, modules/lock, modules/readline:
45225 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
45227 Check for arithmetic overflow when calculating sizes, to prevent
45228 some buffer-overflow issues. These patches are conservative, in the
45229 sense that when I couldn't determine whether an overflow was possible,
45230 I inserted a run-time check.
45231 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
45233 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
45234 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
45235 (re_xnrealloc, re_x2nrealloc): New inline functions.
45236 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
45237 parse_bracket_exp):
45238 (build_equiv_class, build_charclass): Check for arithmetic overflow
45239 in size expression calculations.
45240 * lib/regex_internal.c (re_string_realloc_buffers):
45241 (build_wcs_upper_buffer, re_node_set_add_intersect):
45242 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
45243 (re_dfa_add_node, register_state): Likewise.
45244 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
45245 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
45246 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
45247 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
45249 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
45251 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
45252 m4/ulonglong.m4. Problem reported by Martin Lambers.
45254 2005-09-02 Bruno Haible <bruno@clisp.org>
45256 Support for lib vs. lib64 distinction on biarch platforms.
45257 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
45258 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
45259 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
45261 2005-09-02 Bruno Haible <bruno@clisp.org>
45263 * gnulib-tool (import): In the other first-use case, provide defaults
45266 2005-09-02 Bruno Haible <bruno@clisp.org>
45268 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
45269 patches not yet found in the latest gettext release.
45271 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
45273 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
45274 to avoid a collision with bits/local_lim.h in glibc.
45275 All uses changed. Problem reported by Dmitry V. Levin in
45276 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
45278 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
45279 bugs in int versus size_t comparisons.
45280 (re_string_context_at): Fix bug where the code assumed that
45283 Use bool where appropriate.
45284 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
45285 All callers changed.
45286 (calc_eclosure_iter): Likewise, for ROOT arg.
45287 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
45288 (build_charclass_op): Likewise, for NON_MATCH arg.
45289 * lib/regex_internal.c (re_string_allocate, re_string_construct):
45290 (re_string_construct_common): Likewise, for ICASE arg.
45291 * lib/regexec.c (re_search_2_stub, re_search_stub):
45292 Likewise, for RET_LEN arg.
45293 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
45294 (set_regs): Likewise, for FL_BACKTRACK arg.
45295 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
45296 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
45297 (calc_eclosure_iter, parse_bracket_exp):
45298 Use bool for internal variables that are booleans.
45299 * lib/regexec.c (re_search_internal, check_matching,
45300 proceed_next_node):
45301 (set_regs, build_sifted_states, sift_states_bkref):
45302 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
45303 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
45304 (find_collation_sequence_value):
45306 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
45307 (re_node_set_compare):
45308 Return bool, not int. All callers changed.
45309 * lib/regexec.c (check_halt_node_context, check_dst_limits):
45310 (build_trtable, check_node_accept): Likewise.
45311 * lib/regex_internal.h: Include stdbool.h.
45313 Fix bugs uncovered when converting to bool.
45314 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
45315 failure instead of charging ahead blindly.
45316 * lib/regex_internal.c (register_state): Likewise.
45317 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
45318 for freeing internal storage.
45319 (group_nodes_into_DFA_states): Use unsigned int, not int, for
45320 bitset pieces used as boolean, to avoid undefined behavior
45321 on hosts that do int overflow checking.
45323 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
45325 * config/srclist.txt: Add glibc bugs 1285-1287.
45327 2005-09-01 Jim Meyering <jim@meyering.net>
45329 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
45330 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
45331 Require gl_STAT_MACROS, too.
45333 2005-09-01 Bruno Haible <bruno@clisp.org>
45335 * gnulib-tool (import): In the first-use case, provide defaults.
45337 2005-09-01 Bruno Haible <bruno@clisp.org>
45339 * gnulib-tool (func_import): Remove the .tmp files.
45341 2005-09-01 Bruno Haible <bruno@clisp.org>
45343 * gnulib-tool (func_import): Fix handling of symbolic links.
45345 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
45347 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
45348 old glibc regex code mishandles strings longer than 2**31 bytes.
45349 This patch fixes this when the regex code is used in gnulib
45350 (i.e., outside glibc).
45352 This patch should not affect the use of the regex code inside
45353 glibc. No doubt this problem also needs to be handled for glibc
45354 as well, but the result will be an incompatible change to the
45355 glibc ABI, and the old ABI will have to be supported too. That
45356 can be the the subject for another patch.
45358 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
45359 governing whether the rest of this patch is active. By default,
45360 the macro is disabled and the patch has no effect.
45361 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
45362 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
45363 (struct re_pattern_buffer, re_search, re_search_2, re_match):
45364 (re_match_2, re_set_registers): Use the new types.
45365 * lib/regex_internal.h (Idx, re_hashval_t): New types.
45366 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
45368 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
45369 (re_string_context_at, bin_tree_t, re_dfastate_t):
45370 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
45371 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
45372 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
45373 (re_string_char_size_at, re_string_wchar_at):
45374 (re_string_elem_size_at):
45375 Use the new types and macros to port to 64-bit hosts.
45376 Use unsigned types for internal values, so that the code
45377 mostly works even for arrays larger than SSIZE_MAX.
45378 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
45379 (search_duplicated_node, calc_eclosure_iter, fetch_number):
45380 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
45381 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
45382 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
45383 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
45384 (calc_inveclosure, parse_dup_op, build_range_exp):
45385 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
45386 (fetch_number, create_token_tree, mark_opt_subexp):
45388 * lib/regex_internal.c (re_string_construct_common,
45389 create_ci_newstate):
45390 (create_cd_newstate, re_string_allocate, re_string_construct):
45391 (re_string_realloc_buffers, build_wcs_upper_buffer):
45392 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
45393 (re_string_reconstruct, re_string_peek_byte_case):
45394 (re_string_fetch_byte_case, re_string_context_at):
45395 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
45396 (re_node_set_init_copy, re_node_set_add_intersect):
45397 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
45398 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
45399 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
45400 (re_acquire_state, re_acquire_state_context, register_state):
45402 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
45403 search_cur_bkref_entry):
45404 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
45405 (re_search_internal, re_search_2_stub, re_search_stub)
45406 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
45407 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
45408 (update_cur_sifted_state, check_dst_limits):
45409 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
45410 (check_subexp_limits, sift_states_bkref, merge_state_array):
45411 (check_subexp_matching_top, get_subexp, get_subexp_sub):
45412 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
45413 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
45414 (expand_bkref_cache, check_node_accept_bytes):
45415 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
45416 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
45417 (acquire_init_state_context, check_halt_node_context):
45418 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
45419 (sift_states_backward, clean_state_log_if_needed):
45420 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
45421 (find_recover_state, transit_state_sb, transit_state_mb):
45422 (transit_state_bkref, build_trtable, match_ctx_clean):
45424 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
45425 to work around an assumption that REG_MISSING is negative.
45427 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
45428 (seek_collating_symbol_entry) [defined _LIBC]:
45429 (lookup_collation_sequence_value) [defined _LIBC]:
45430 (build_range_exp, build_collating_symbol) [defined _LIBC]:
45431 Use prototypes rather than old-style function definitions.
45432 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
45433 (transit_state_sb) [0]:
45434 (find_collation_sequence_value) [defined _LIBC]: Likewise.
45436 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
45439 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
45440 (optimize_subexps, lower_subexp):
45441 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
45442 since the signed shift might overflow. Use 1u<<31 instead.
45443 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
45445 * lib/regexec.c (check_dst_limits_calc_pos_1,
45446 check_subexp_matching_top): Likewise.
45448 * lib/regcomp.c (optimize_subexps, lower_subexp):
45449 Use CHAR_BIT rather than 8, for clarity.
45450 * lib/regexec.c (check_dst_limits_calc_pos_1):
45451 (check_subexp_matching_top): Likewise.
45452 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
45453 have to worry about portability issues when shifting it left.
45454 Remove no-longer-needed test for table_size > 0.
45455 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
45456 in a word, as the resulting behavior is undefined.
45457 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
45458 in one case, a <= should have been an <, and in another case the
45459 whole test was missing.
45460 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
45461 the standard name CHAR_BIT.
45462 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
45463 this is not true on one's complement and signed-magnitude hosts.
45465 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
45467 (struct re_dfa_t): Remove unused member states_alloc.
45468 * lib/regcomp.c (init_dfa): Don't initialize unused members.
45470 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
45472 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
45473 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
45474 and large-file glibc and in 32-bit large-file Solaris.
45476 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
45478 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
45479 lengths fit in regoff_t; this isn't true if regoff_t is the same
45481 * lib/regex.c (re_search_internal): 5th arg is LAST_START
45482 (= START + RANGE) instead of RANGE. This avoids overflow
45483 problems when regoff_t is the same width as size_t.
45484 All callers changed.
45485 (re_search_2_stub): Check for overflow when adding the
45486 sizes of the two strings.
45487 (re_search_stub): Check for overflow when adding START
45488 to RANGE; if it occurs, substitute the extreme value.
45490 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
45492 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
45494 2005-08-31 Jim Meyering <jim@meyering.net>
45496 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
45497 a pointer-to-const.
45498 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
45499 (register_state): Likewise.
45500 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
45501 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
45502 (group_nodes_into_DFAstates): Likewise.
45504 2005-08-31 Jim Meyering <jim@meyering.net>
45506 * check-module: Add a FIXME comment.
45508 2005-08-31 Eric Blake <ebb9@byu.net>
45510 * modules/unistd-safer (Files): Add unistd--.h.
45511 * modules/stdio-safer (Files): Add stdio--.h.
45513 2005-08-31 Derek Price <derek@ximbiot.com>
45515 * lib/getdelim.c (getdelim): Return EOF on EOF.
45516 Reported by Larry Jones <lawrence.jones@ugs.com>.
45518 2005-08-31 Bruno Haible <bruno@clisp.org>
45520 Avoid unnecessary diffs in the generated lib/Makefile.am.
45521 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
45522 the generated files.
45523 (func_import): Don't set cmd.
45525 2005-08-31 Bruno Haible <bruno@clisp.org>
45527 * lib/strstr.c: Include <stddef.h>, for NULL.
45528 * lib/strcasestr.c: Likewise.
45529 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
45531 2005-08-31 Bruno Haible <bruno@clisp.org>
45533 * gnulib-tool: New option --macro-prefix.
45534 (func_import): Use macro_prefix.
45535 (import): Handle option --macro-prefix.
45537 2005-08-31 Bruno Haible <bruno@clisp.org>
45539 * gnulib-tool (import): Rename most ac_* variables to cached_*.
45540 Also use new variables cached_lgpl, cached_libtool.
45542 2005-08-31 Bruno Haible <bruno@clisp.org>
45544 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
45545 always instantiating them.
45547 2005-08-31 Bruno Haible <bruno@clisp.org>
45549 * gnulib-tool (func_import): Read the previous cached settings
45550 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
45551 earlier added by gnulib but are now dropped. Warn when a gnulib file
45552 overwrites a non-gnulib file.
45554 2005-08-31 Bruno Haible <bruno@clisp.org>
45556 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
45557 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
45558 projects that don't keep autogenerated files in CVS. Put into
45559 actioncmd only the specified modules, not the transitive closure.
45561 2005-08-31 Bruno Haible <bruno@clisp.org>
45563 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
45564 Create directories that shall be filled.
45565 (import): Don't look for gl_* macros in configure.ac. Recurse across
45566 all directories containing a gnulib-cache.m4 files, if meaningful.
45568 2005-08-31 Bruno Haible <bruno@clisp.org>
45570 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
45571 (import): Set seen_libtool when we see gl_LIBTOOL.
45573 2005-08-31 Bruno Haible <bruno@clisp.org>
45575 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
45576 declaration macro definitions from generated gnulib.m4.
45578 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
45580 * lib/iconvme.h: Add prototype for iconv_alloc.
45582 2005-08-29 Simon Josefsson <jas@extundo.com>
45584 * lib/iconvme.c: Fix errno.
45586 2005-08-29 Bruno Haible <bruno@clisp.org>
45588 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
45589 that it works when the directory contains spaces.
45591 2005-08-29 Bruno Haible <bruno@clisp.org>
45593 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
45595 2005-08-29 Bruno Haible <bruno@clisp.org>
45597 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
45600 2005-08-29 Bruno Haible <bruno@clisp.org>
45601 and Stepan Kasal <kasal@ucw.cz>
45603 * check-module: If more parameters are given, check each of them
45604 separately; add more exceptions, as noted by Jim Meyering.
45605 (check_module): New procedure.
45606 (%exempt_header): Now contains all exceptions.
45608 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
45610 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
45612 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
45614 * lib/iconvme.c: Split iconv_string into iconv_alloc.
45616 2005-08-28 Bruno Haible <bruno@clisp.org>
45618 * m4/gnulib-tool.m4: New file.
45620 2005-08-27 Jim Meyering <jim@meyering.net>
45622 * modules/unistd-safer (Files): Add pipe-safer.c.
45623 * modules/fcntl-safer (Files): Add creat-safer.c.
45625 2005-08-27 Jim Meyering <jim@meyering.net>
45627 * m4/stdlib-safer.m4: New file. From coreutils.
45628 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
45629 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
45630 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
45631 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
45632 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
45634 2005-08-27 Jim Meyering <jim@meyering.net>
45636 * lib/fopen-safer.c: Merge minor changes from coreutils.
45637 * lib/dup-safer.c: Likewise.
45638 * lib/fd-safer.c: Likewise.
45640 Merge from coreutils.
45641 * lib/stdio--.h: New file.
45642 * lib/stdlib--.h: New file.
45643 * lib/mkstemp-safer.c: New file.
45645 GNU tar needs these.
45646 * lib/pipe-safer.c: New file.
45647 * lib/creat-safer.c: New file.
45648 * lib/fcntl--.h (creat): Define to creat_safer.
45649 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
45650 * lib/unistd--.h (pipe): Define to pipe_safer.
45651 * lib/unistd-safer.h: Declare pipe_safer.
45653 2005-08-26 Simon Josefsson <jas@extundo.com>
45655 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
45656 Haible <bruno@clisp.org>.
45658 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
45660 * lib/regex_internal.h: Remove all references to
45661 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
45663 (bitset_not, bitset_merge, bitset_not_merge):
45664 (bitset_mask, re_string_allocate, re_string_construct):
45665 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
45666 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
45667 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
45668 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
45669 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
45670 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
45671 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
45672 (re_acquire_state_context):
45673 Remove unnecessary forward decls.
45674 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
45675 Put __attribute at function definition,
45676 now that the function decl has been removed.
45677 * lib/regex_internal.c (re_string_peek_byte_case):
45678 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
45681 2005-08-25 Stepan Kasal <kasal@ucw.cz>
45683 * m4/regex.m4: Add AC_PREREQ(2.50).
45684 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
45686 2005-08-25 Simon Josefsson <jas@extundo.com>
45688 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
45691 2005-08-25 Simon Josefsson <jas@extundo.com>
45693 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
45694 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
45695 GLIBC specific code.
45697 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
45699 Make regex safe for g++. This fixes one real bug (an "err"
45700 that should have been "*err"). g++ problem reported by
45702 * lib/regex_internal.h (re_calloc): New macro, consistent with
45703 re_malloc etc. All callers of calloc changed to use re_calloc.
45704 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
45705 not int. All callers changed.
45706 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
45707 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
45708 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
45709 (find_recover_state): Change "err" to "*err"; this fixes what
45710 appears to be a real bug.
45711 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
45714 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
45716 * modules/regex (Depends-on): Add malloc, since the code
45717 assumes that !malloc(0) means failure.
45719 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
45721 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
45723 alloca modernization/simplification for regex.
45724 * lib/regex.c: Remove portability cruft for alloca. This no longer
45725 needs to be at the start of the file, and can be moved into
45726 regex_internal.h and simplified.
45727 * lib/regex_internal.h: Include <alloca.h>.
45728 (__libc_use_alloca) [!defined _LIBC]: New macro.
45729 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
45730 now works outside glibc.
45732 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
45734 * config/srclist.txt: Add glibc bugs 1241, 1245.
45736 2005-08-25 Jim Meyering <jim@meyering.net>
45738 * lib/open-safer.c: Include <config.h>.
45739 Otherwise, we'd lose LARGEFILE support in any file using
45742 2005-08-25 Bruno Haible <bruno@clisp.org>
45744 * m4/minmax.m4: Require autoconf 2.52.
45745 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
45746 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
45747 alternatives of translit over the alphabet.
45748 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
45750 2005-08-24 Simon Josefsson <jas@extundo.com>
45752 * tests/test-getpass.c: New file.
45754 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
45756 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
45757 for GNU regex features.
45759 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
45761 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
45762 * lib/regex.h (regerror): Likewise.
45764 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
45765 requires this. (The code never needed it.)
45767 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
45768 All uses of recently-renamed identifiers changed to use the new,
45769 POSIX-compliant names. The code will build and run just fine
45770 without these changes, but it's better to eat our own dog food
45771 and use the standard-conforming names.
45773 * lib/regex.h: Fix a multitude of POSIX name space violations.
45774 These changes have an effect only for programs that define
45775 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
45776 do not change anything for programs compiled in the normal way.
45777 Also, there is no effect on the ABI.
45779 (_REGEX_SOURCE): New macro.
45780 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
45781 defined and _GNU_SOURCE is not; this fixes a name space violation.
45783 Rename the following macros to obey POSIX requirements.
45784 The old names are still visible as macros if _REGEX_SOURCE is defined.
45785 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
45786 RE_BACKSLASH_ESCAPE_IN_LISTS.
45787 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
45788 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
45789 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
45790 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
45791 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
45792 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
45793 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
45794 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
45795 (REG_INTERVALS): renamed from RE_INTERVALS.
45796 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
45797 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
45798 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
45799 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
45800 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
45801 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
45802 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
45803 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
45804 RE_UNMATCHED_RIGHT_PAREN_ORD.
45805 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
45806 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
45807 (REG_DEBUG): renamed from RE_DEBUG.
45808 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
45809 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
45810 unusual, since we can't clash with the POSIX REG_ICASE.
45811 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
45812 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
45813 (REG_NO_SUB): renamed from RE_NO_SUB.
45814 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
45815 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
45816 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
45817 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
45818 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
45819 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
45820 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
45821 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
45822 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
45823 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
45824 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
45825 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
45826 RE_SYNTAX_POSIX_MINIMAL_BASIC.
45827 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
45828 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
45829 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
45830 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
45831 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
45832 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
45833 (REG_FIXED): Renamed from REGS_FIXED.
45834 (REG_NREGS): Renamed from RE_NREGS.
45836 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
45837 of other REG_* macros, since POSIX says the user is allowed to
45838 #undef these macros selectively.
45840 (reg_errcode_t): Update comment stating what other tables need
45843 Rename the following enum values to obey POSIX requirements.
45844 The old names are still visible as macros.
45845 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
45846 is not defined, since GNU is supposed to be a superset of POSIX as
45847 much as possible, and since we want reg_errcode_t to be a signed
45848 type for implementation consistency.
45849 (_REG_NOERROR): Renamed from REG_NOERROR.
45850 (_REG_NOMATCH): Renamed from REG_NOMATCH.
45851 (_REG_BADPAT): Renamed from REG_BADPAT.
45852 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
45853 (_REG_ECTYPE): Renamed from REG_ECTYPE.
45854 (_REG_EESCAPE): Renamed from REG_EESCAPE.
45855 (_REG_ESUBREG): Renamed from REG_ESUBREG.
45856 (_REG_EBRACK): Renamed from REG_EBRACK.
45857 (_REG_EPAREN): Renamed from REG_EPAREN.
45858 (_REG_EBRACE): Renamed from REG_EBRACE.
45859 (_REG_BADBR): Renamed from REG_BADBR.
45860 (_REG_ERANGE): Renamed from REG_ERANGE.
45861 (_REG_ESPACE): Renamed from REG_ESPACE.
45862 (_REG_BADRPT): Renamed from REG_BADRPT.
45863 (_REG_EEND): Renamed from REG_EEND.
45864 (_REG_ESIZE): Renamed from REG_ESIZE.
45865 (_REG_ERPAREN): Renamed from REG_ERPAREN.
45866 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
45867 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
45868 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
45869 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
45871 (_REG_RE_NAME, _REG_RM_NAME): New macros.
45872 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
45873 changed. But support the old name if the new one is not defined
45874 and if _REGEX_SOURCE.
45876 Change the following member names in struct re_pattern_buffer.
45877 The old names are still supported if !_REGEX_SOURCE.
45878 The new names are always supported, regardless of _REGEX_SOURCE.
45879 (re_buffer): Renamed from buffer.
45880 (re_allocated): Renamed from allocated.
45881 (re_used): Renamed from used.
45882 (re_syntax): Renamed from syntax.
45883 (re_fastmap): Renamed from fastmap.
45884 (re_translate): Renamed from translate.
45885 (re_can_be_null): Renamed from can_be_null.
45886 (re_regs_allocated): Renamed from regs_allocated.
45887 (re_fastmap_accurate): Renamed from fastmap_accurate.
45888 (re_no_sub): Renamed from no_sub.
45889 (re_not_bol): Renamed from not_bol.
45890 (re_not_eol): Renamed from not_eol.
45891 (re_newline_anchor): Renamed from newline_anchor.
45893 Change the following member names in struct re_registers.
45894 The old names are still supported if !_REGEX_SOURCE.
45895 The new names are always supported, regardless of _REGEX_SOURCE.
45896 (rm_num_regs): Renamed from num_regs.
45897 (rm_start): Renamed from start.
45898 (rm_end): Renamed from end.
45900 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
45901 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
45902 Prepend __ to parameter names.
45904 Undo yesterday's changes.
45906 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
45908 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
45909 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
45912 2005-08-24 Jim Meyering <jim@meyering.net>
45914 Sync from coreutils.
45915 * m4/fcntl-safer.m4: New file.
45917 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
45918 and object files for this module.
45920 2005-08-24 Jim Meyering <jim@meyering.net>
45922 Sync from coreutils.
45923 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
45925 2005-08-24 Jim Meyering <jim@meyering.net>
45927 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
45928 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
45930 2005-08-24 Jim Meyering <jim@meyering.net>
45932 * modules/fcntl-safer: New module.
45933 * modules/fts (Depends-on): Add fcntl-safer.
45934 * MODULES.html.sh (File descriptor based Input/Output):
45937 2005-08-24 Bruno Haible <bruno@clisp.org>
45939 Support for unit test modules.
45940 * modules/README: Mention tests modules.
45941 * modules/TEMPLATE-TESTS: New file.
45942 * gnulib-tool: New options --extract-tests-module, --with-tests and
45943 --tests-base (unused for the moment).
45944 (testsbase, inctests): New variables.
45945 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
45946 (func_verify_module): Exclude TEMPLATE-TESTS.
45947 (func_verify_nontests_module, func_verify_tests_module): New functions.
45948 (func_get_dependencies): Add implicit dependency for tests modules.
45949 (func_get_tests_module): New function.
45950 (func_modules_transitive_closure): When --with-tests was specified,
45951 include the unit tests as well, unless explicitly avoided.
45952 (func_emit_lib_Makefile_am): Ignore the tests modules here.
45953 (func_emit_tests_Makefile_am): New function.
45954 (func_create_testdir): When --with-tests was specified, emit a
45956 * MODULES.html.sh (Future developments): Update.
45958 2005-08-24 Bruno Haible <bruno@clisp.org>
45960 * modules/tls-tests: New file.
45961 * tests/test-tls.c: New file, from GNU gettext.
45963 2005-08-24 Bruno Haible <bruno@clisp.org>
45965 * modules/lock-tests: New file.
45966 * tests/test-lock.c: New file, from GNU gettext.
45968 2005-08-24 Bruno Haible <bruno@clisp.org>
45970 * lib/lock.h: Add multiple inclusion guard.
45971 * lib/tls.h: Add multiple inclusion guard.
45973 2005-08-24 Bruno Haible <bruno@clisp.org>
45975 * gnulib-tool: Add support for the --aux-dir option to
45976 --create-testdir, --create-megatestdir, --test, --megatest.
45977 (func_create_testdir, func_create_megatestdir): Optionally emit a
45978 AC_CONFIG_AUX_DIR directive.
45979 (create-testdir, create-megatestdir, test, megatest): Provide a
45980 default value for $auxdir.
45982 2005-08-24 Bruno Haible <bruno@clisp.org>
45984 * gnulib-tool (import): Use compound statement instead of subshell
45987 2005-08-24 Bruno Haible <bruno@clisp.org>
45989 * gnulib-tool (import): Change --aux-dir default to "build-aux".
45991 2005-08-24 Bruno Haible <bruno@clisp.org>
45993 * gnulib-tool (func_version): Update.
45995 2005-08-24 Bruno Haible <bruno@clisp.org>
45997 * gnulib-tool (func_import, func_create_testdir,
45998 func_create_megatestdir): Quote all autoconf macro arguments.
46000 2005-08-24 Bruno Haible <bruno@clisp.org>
46002 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
46003 option --force, because --force causes the aclocal.m4 of each
46004 subdirectory to be newer than the corresponding config.h.in.
46006 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
46008 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
46009 All contents moved to gl_REGEX.
46010 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
46011 assume that it does.
46013 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
46015 * lib/regex.h (REG_NOSYS)
46016 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
46017 Define, since POSIX requires it as of 2001.
46019 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
46020 New private symbol, used to keep the enum signed in all cases.
46021 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
46023 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
46025 * lib/regex_internal.c (re_string_skip_chars, register_state):
46027 Remove forward decls; no longer needed now that we use prototypes.
46028 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
46029 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
46030 (clean_state_log_if_needed): Likewise.
46032 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
46034 * config/srclist.txt: Add glibc bugs 1231-1233.
46036 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
46038 Fix problems reported by Sam Steingold in
46039 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
46040 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
46041 assumed that reg_errcode_t is a signed type, which is not
46042 necessarily true if _XOPEN_SOURCE is not defined.
46043 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
46044 since some compilers warn about it otherwise.
46046 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
46048 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
46049 (init_word_char, create_initial_state, duplicate_node_closure):
46050 (fetch_token, peek_token_bracket, build_range_exp):
46051 (build_collating_symbol): Remove forward decls; no longer needed
46052 now that we use prototypes.
46055 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
46056 (re_compile_fastmap_iter, regcomp, regerror, regfree):
46057 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
46058 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
46059 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
46060 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
46061 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
46062 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
46063 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
46064 (build_range_exp, build_collating_symbol, parse_bracket_exp):
46065 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
46066 (build_charclass, build_charclass_op, fetch_number, create_tree):
46067 (create_token_tree, mark_opt_subexp, duplicate_tree):
46068 Use prototypes rather than old-style definitions.
46070 * lib/regex_internal.c:
46071 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
46072 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
46073 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
46074 (re_string_reconstruct, re_string_peek_byte_case):
46075 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
46076 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
46077 (re_node_set_init_copy, re_node_set_add_intersect):
46078 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
46079 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
46080 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
46081 (re_acquire_state, re_acquire_state_context, register_state):
46082 (create_ci_newstate, create_cd_newstate, free_state):
46084 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
46086 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
46087 (re_search_internal, prune_impossible_nodes):
46088 (acquire_init_state_context, check_matching, static):
46089 (check_halt_node_context, check_halt_state_context, proceed_next_node):
46090 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
46091 (update_regs, sift_states_backward, build_sifted_states):
46092 (clean_state_log_if_needed, merge_state_array):
46093 (update_cur_sifted_state, add_epsilon_src_nodes):
46094 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
46095 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
46096 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
46097 (find_recover_state, check_subexp_matching_top, transit_state_mb):
46098 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
46099 (check_arrival, check_arrival_add_next_nodes):
46100 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
46101 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
46102 (check_node_accept_bytes, check_node_accept, extend_buffers):
46103 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
46104 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
46108 * lib/regex_internal.h:
46109 (re_string_allocate, re_string_construct, re_string_reconstruct):
46110 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
46111 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
46112 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
46113 (re_string_context_at, re_string_peek_byte_case):
46114 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
46115 is defined, since we now use prototypes always.
46117 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
46118 C89 or better. All uses removed.
46120 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
46122 * config/srclist.txt: Add glibc bugs 1220-1227.
46124 2005-08-20 Jim Meyering <jim@meyering.net>
46126 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
46127 of unused local, dfa.
46129 2005-08-20 Bruno Haible <bruno@clisp.org>
46131 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
46133 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
46135 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
46136 (re_node_set_insert_last, re_dfa_add_node):
46137 Rename local variables to avoid GCC shadowing warnings.
46139 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
46141 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
46142 [defined lint]: Suppress bogus uninitialized-variable warnings.
46144 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
46145 and let the caller return REG_ESPACE if out of space. This
46146 removes an uninitialied-variable warning with GCC 4.0.1, and also
46147 avoids taking the address of a local variable. All callers
46150 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
46152 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
46153 $LIBCSRC/posix/regexec.c.
46154 Add glibc bug 1217 for regcomp.c.
46156 2005-08-19 Jim Meyering <jim@meyering.net>
46158 * lib/regexec.c (proceed_next_node): Redo local variables to
46159 avoid GCC shadowing warnings.
46161 2005-08-18 Bruno Haible <bruno@clisp.org>
46163 * lib/strstr.c (strstr): Fix return value in multibyte case.
46164 * lib/strcasestr.c (strcasestr): Likewise.
46166 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
46168 * lib/regex.h: Remove useless space-before-tab. From coreutils.
46170 2005-08-17 Jim Meyering <jim@meyering.net>
46172 Make the %s format (seconds since the epoch) work for a negative
46173 number and when used with a zero-padded field width, e.g. %015s.
46175 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
46176 label so that it precedes the code to set `digits'. Otherwise,
46177 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
46178 print `00-22'. Now, it prints `-0022', as it should.
46180 2005-08-17 Bruno Haible <bruno@clisp.org>
46182 * modules/strstr (Files): Add m4/mbrtowc.m4.
46183 (Depends-on): Add mbuiter.
46185 2005-08-17 Bruno Haible <bruno@clisp.org>
46187 * modules/strcasestr: New file.
46188 * MODULES.html.sh (String handling, based on ANSI C 89): Add
46191 2005-08-17 Bruno Haible <bruno@clisp.org>
46193 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
46195 2005-08-17 Bruno Haible <bruno@clisp.org>
46197 * modules/mbuiter: New file.
46198 * MODULES.html.sh (Extended multibyte and wide character utilities):
46201 2005-08-17 Bruno Haible <bruno@clisp.org>
46203 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
46204 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
46206 2005-08-17 Bruno Haible <bruno@clisp.org>
46208 * m4/strcasestr.m4: New file.
46210 2005-08-17 Bruno Haible <bruno@clisp.org>
46212 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
46213 * lib/strstr.c: Completely rewritten, with multibyte locale support.
46215 2005-08-17 Bruno Haible <bruno@clisp.org>
46217 * lib/strcasestr.h: New file.
46218 * lib/strcasestr.c: New file.
46220 2005-08-17 Bruno Haible <bruno@clisp.org>
46222 * lib/strcasecmp.c: Use mbuiter.h.
46224 2005-08-17 Bruno Haible <bruno@clisp.org>
46226 * lib/mbuiter.h: New file.
46228 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
46230 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
46231 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
46232 and gl_GETOPT are both invoked via different paths (as happens
46233 with GNU tar CVS because it uses both argp and getopt), the former
46236 2005-08-16 Bruno Haible <bruno@clisp.org>
46238 * modules/tls: New file.
46239 * MODULES.html.sh (Multithreading): Add tls.
46241 2005-08-16 Bruno Haible <bruno@clisp.org>
46243 * modules/strnlen1: New file.
46244 * MODULES.html.sh (String handling): Add strnlen1.
46246 2005-08-16 Bruno Haible <bruno@clisp.org>
46248 * modules/strcase (Files): Add m4/mbrtowc.m4.
46249 (Depends-on): Add strnlen1, mbchar.
46251 2005-08-16 Bruno Haible <bruno@clisp.org>
46253 * modules/mbiter: New file.
46254 * MODULES.html.sh (Extended multibyte and wide character utilities):
46257 2005-08-16 Bruno Haible <bruno@clisp.org>
46259 * modules/mbfile: New file.
46260 * MODULES.html.sh (Extended multibyte and wide character utilities):
46263 2005-08-16 Bruno Haible <bruno@clisp.org>
46265 * modules/mbchar: New file.
46266 * MODULES.html.sh (Extended multibyte and wide character utilities):
46269 2005-08-16 Bruno Haible <bruno@clisp.org>
46271 * m4/tls.m4: New file, from GNU gettext.
46273 2005-08-16 Bruno Haible <bruno@clisp.org>
46275 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
46277 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
46279 2005-08-16 Bruno Haible <bruno@clisp.org>
46281 * m4/mbiter.m4: New file.
46283 2005-08-16 Bruno Haible <bruno@clisp.org>
46285 * m4/mbfile.m4: New file.
46287 2005-08-16 Bruno Haible <bruno@clisp.org>
46289 * m4/mbchar.m4: New file.
46291 2005-08-16 Bruno Haible <bruno@clisp.org>
46293 * lib/tls.h: New file, from GNU gettext.
46294 * lib/tls.c: New file, from GNU gettext.
46296 2005-08-16 Bruno Haible <bruno@clisp.org>
46298 * lib/strnlen1.h: New file.
46299 * lib/strnlen1.c: New file.
46301 2005-08-16 Bruno Haible <bruno@clisp.org>
46303 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
46304 (mbi_init): Update.
46305 (mbi_avail, mbi_advance): Let the iteration end before the terminating
46306 NUL byte, not after it.
46308 2005-08-16 Bruno Haible <bruno@clisp.org>
46310 * lib/strcase.h (strcasecmp): Add note in comments.
46311 * lib/strncasecmp.c: Use code from strcasecmp.c.
46312 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
46313 (strcasecmp): Work correctly in multibyte locales.
46315 2005-08-16 Bruno Haible <bruno@clisp.org>
46317 * lib/mbiter.h: New file.
46319 2005-08-16 Bruno Haible <bruno@clisp.org>
46321 * lib/mbfile.h: New file.
46323 2005-08-16 Bruno Haible <bruno@clisp.org>
46325 * lib/mbchar.h: New file.
46326 * lib/mbchar.c: New file.
46328 2005-08-16 Bruno Haible <bruno@clisp.org>
46330 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
46331 the valid ones. Makes the comparison operations transitive:
46332 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
46333 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
46335 2005-08-15 Simon Josefsson <jas@extundo.com>
46337 * modules/ssize_t (License): Change to 'unlimited'.
46339 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
46341 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
46343 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
46344 Add comments for each pending glibc patch.
46346 2005-08-15 Bruno Haible <bruno@clisp.org>
46348 * lib/regex.h (__restrict_arr): Don't define to __restrict if
46349 __cplusplus is defined.
46351 2005-08-14 Jim Meyering <jim@meyering.net>
46353 Sync from coreutils.
46355 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
46356 Use the hash-table-based cycle-detection code not just when
46357 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
46358 Reported by James Youngman in
46359 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
46360 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
46361 FTS_TIGHT_CYCLE_CHECK.
46362 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
46363 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
46365 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
46366 * lib/fts.c (fd_safer): Remove decl.
46367 Include fcntl--.h rather than unistd-safer.h
46368 (fts_safe_changedir): Don't call fd_safer; no longer needed
46369 now that we include fcntl--.h.
46371 2005-08-12 Simon Josefsson <jas@extundo.com>
46373 * modules/getndelim2: Use ssize_t module.
46374 * modules/getnline: Likewise.
46375 * modules/safe-read: Likewise.
46376 * modules/xreadlink: Likewise.
46378 * modules/ssize_t: New file.
46380 2005-08-12 Simon Josefsson <jas@extundo.com>
46382 * m4/readline.m4: Look for termcap, curses or ncurses if required.
46384 2005-08-12 Simon Josefsson <jas@extundo.com>
46386 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46389 2005-08-12 Simon Josefsson <jas@extundo.com>
46391 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
46392 readline, getdelim and check_version.
46393 (Support for systems lacking ISO C 99: Sizes of integer types):
46396 2005-08-12 Bruno Haible <bruno@clisp.org>
46398 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
46400 2005-08-11 Simon Josefsson <jas@extundo.com>
46402 * modules/readline: New file.
46404 * modules/strnlen (Files): Add strnlen.h.
46406 2005-08-11 Simon Josefsson <jas@extundo.com>
46408 * m4/readline.m4: New file.
46410 2005-08-11 Simon Josefsson <jas@extundo.com>
46412 * lib/readline.h, readline.c: New file.
46414 2005-08-11 Simon Josefsson <jas@extundo.com>
46416 * doc/gnulib.texi (Initial import, Finishing touches): Mention
46419 2005-08-11 Bruno Haible <bruno@clisp.org>
46421 * lib/strnlen.h (strnlen): Change parameter name to match comment.
46423 2005-08-10 Stepan Kasal <kasal@ucw.cz>
46425 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
46427 2005-08-10 Simon Josefsson <jas@extundo.com>
46429 * tests/test-iconvme.c: New file.
46431 2005-08-10 Simon Josefsson <jas@extundo.com>
46433 * m4/strnlen.m4: New file.
46435 * m4/strndup.m4: Don't check for strnlen declaration, done in
46438 2005-08-10 Simon Josefsson <jas@extundo.com>
46440 * lib/strndup.c: Use strnlen.h.
46442 * lib/strnlen.h: New file.
46444 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46448 2005-08-02 Simon Josefsson <jas@extundo.com>
46450 * modules/readline: New file.
46452 2005-08-02 Simon Josefsson <jas@extundo.com>
46454 * modules/getdelim: New file.
46456 * modules/getline: Rewrite, don't use getndelim2.
46458 2005-08-02 Simon Josefsson <jas@extundo.com>
46460 * m4/getline.m4: Separate out getdelim stuff into separate module.
46462 * m4/getdelim.m4: New file.
46464 2005-08-02 Simon Josefsson <jas@extundo.com>
46466 * lib/getline.h, getline.c: Rewrite.
46468 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
46470 2005-07-31 Bruno Haible <bruno@clisp.org>
46472 * lib/lock.h (gl_lock_initializer): New macro.
46473 (gl_lock_define_initialized): Use it.
46474 (gl_rwlock_initializer): New macro.
46475 (gl_rwlock_define_initialized): Use it.
46476 (gl_recursive_lock_initializer): New macro.
46477 (gl_recursive_lock_define_initialized): Use it.
46479 2005-07-30 Karl Berry <karl@gnu.org>
46481 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
46482 Report from Ben Pfaff, regarding getopt.
46484 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
46486 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
46488 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
46489 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
46490 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
46491 (gl_GETOPT): Use the new macros. Most of the implementation
46492 is moved to the new macros. This is for programs like Emacs
46493 that don't want all the functionality of gl_GETOPT.
46495 2005-07-26 Bruno Haible <bruno@clisp.org>
46497 * m4/lock.m4: Update from GNU gettext.
46499 2005-07-26 Bruno Haible <bruno@clisp.org>
46501 * lib/lock.h: Update from GNU gettext.
46502 * lib/lock.c: Update from GNU gettext.
46504 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
46506 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
46507 obsolescent AC_TRY_RUN. Include the default includes files, for
46510 2005-07-24 Bruno Haible <bruno@clisp.org>
46512 * modules/visibility: New file.
46513 * MODULES.html.sh (Misc): Add visibility.
46515 2005-07-24 Bruno Haible <bruno@clisp.org>
46517 * m4/visibility.m4: New file.
46519 2005-07-24 Bruno Haible <bruno@clisp.org>
46521 * doc/visibility.texi: New file.
46523 2005-07-22 Bruno Haible <bruno@clisp.org>
46525 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
46526 $(ALLOCA_H), redundant through BUILT_SOURCES.
46527 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
46528 redundant through BUILT_SOURCES.
46529 * modules/byteswap (Makefile.am): Remove explicit dependency on
46530 $(BYTESWAP_H), redundant through BUILT_SOURCES.
46531 * modules/fnmatch (Makefile.am): Remove explicit dependency on
46532 $(FNMATCH_H), redundant through BUILT_SOURCES.
46533 * modules/getopt (Makefile.am): Remove explicit dependency on
46534 $(GETOPT_H), redundant through BUILT_SOURCES.
46535 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
46536 redundant through BUILT_SOURCES.
46537 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
46538 redundant through BUILT_SOURCES.
46539 * modules/stdbool (Makefile.am): Remove explicit dependency on
46540 $(STDBOOL_H), redundant through BUILT_SOURCES.
46541 * modules/stdint (Makefile.am): Remove explicit dependency on
46542 $(STDINT_H), redundant through BUILT_SOURCES.
46543 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
46544 Remove explicit dependency on $(SYSEXITS_H).
46545 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
46547 2005-07-18 Simon Josefsson <jas@extundo.com>
46549 * lib/check-version.c (check_version): Accept identical versions too.
46551 2005-07-18 Bruno Haible <bruno@clisp.org>
46553 * modules/lock: New file.
46554 * MODULES.html.sh (Multithreading): New section.
46556 2005-07-18 Bruno Haible <bruno@clisp.org>
46558 * m4/lock.m4: New file, from GNU gettext.
46560 2005-07-18 Bruno Haible <bruno@clisp.org>
46562 * lib/lock.h: New file, from GNU gettext.
46563 * lib/lock.c: New file, from GNU gettext.
46565 2005-07-18 Bruno Haible <bruno@clisp.org>
46567 * lib/lock.h (gl_once_t): New type.
46568 (gl_once_define, gl_once): New macros.
46569 * lib/lock.c (fresh_once): New variable.
46570 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
46573 2005-07-16 Simon Josefsson <jas@extundo.com>
46575 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
46576 workaround, suggested by Bruno.
46578 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
46580 * modules/xalloc (Depends-on): Add xalloc-die.
46581 * modules/xvasprintf (Depends-on): Add xalloc-die.
46583 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
46585 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
46586 with a minor change.
46588 2005-07-15 Bruno Haible <bruno@clisp.org>
46590 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
46591 When using lib/poll.c, define poll as rpl_poll.
46593 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
46595 * modules/argp (Depends-on): Remove unlocked-io.
46597 2005-07-14 Derek Price <derek@ximbiot.com>
46599 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
46600 for glob symlink bug.
46602 2005-07-14 Bruno Haible <bruno@clisp.org>
46604 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
46605 Instead, test for *_unlocked function declarations directly.
46607 2005-07-11 Simon Josefsson <jas@extundo.com>
46609 * modules/size_max: New file.
46611 * modules/xsize: Depend on size_max module for size_max.m4.
46613 2005-07-11 Simon Josefsson <jas@extundo.com>
46615 * lib/size_max.h: New file.
46617 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
46619 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
46620 copyright symbol and the year.
46621 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
46622 (version_etc_va): Use parameterized copyright notice.
46623 Reword to conform to the current GNU coding standards.
46625 2005-07-11 Karl Berry <karl@gnu.org>
46627 * doc/gnulib.texi (Quoting): new node.
46628 (Initial import): more info, from Patrice.
46630 2005-07-11 Bruno Haible <bruno@clisp.org>
46632 * gnulib-tool (func_usage): Document option --avoid.
46633 (Command line options): Handle --avoid.
46634 (func_acceptable): New function.
46635 (func_modules_transitive_closure): Use it.
46637 2005-07-11 Bruno Haible <bruno@clisp.org>
46639 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
46640 Reported by Jim Meyering.
46642 2005-07-10 Bruno Haible <bruno@clisp.org>
46644 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
46645 Needed when size_t is smaller than 'unsigned int'.
46646 Reported by Paul Eggert.
46648 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
46650 * modules/argp (Depends-on): Add unlocked-io
46652 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
46654 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
46657 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
46659 * config/srclist.txt: Comment out regcomp.c, since we have a porting
46662 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
46663 and Paul Eggert <eggert@cs.ucla.edu>
46665 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
46666 in wint_t, not wchar_t. Remove now-unnecessary cast.
46668 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
46670 * modules/regex (Files): Add lib/regex_internal.c,
46671 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
46672 (Depends-on): Add extensions.
46673 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
46675 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
46677 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
46679 * m4/same.m4 (gl_SAME): Likewise.
46680 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
46682 * m4/regex.m4: Adjust to new libc regex implementation.
46683 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
46684 all the .c and .h parts of (the new) regex.
46685 Quote the m4 stuff better.
46686 Check for RE_ICASE bug of old gnulib.
46687 Check for REG_STARTEND of recent libc.
46688 Rename local variables from jm_* to gl_*.
46689 Quote operand of "test -f".
46690 Say "recent enough" version of libc, not "version 2".
46691 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
46692 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
46693 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
46694 Remove check for btowc, isascii.
46695 Require AM_LANGINFO_CODESET.
46697 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
46699 * lib/regex.c, regex.h: Sync from libc.
46700 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
46702 New files, synced from libc, except that regex_internal.h
46703 currently has a small porting fix.
46705 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
46707 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
46708 regex_internal.c, regexec.c.
46709 Add regex_internal.h too, but as a comment, since the libc version
46710 is currently broken in gnulib mode.
46712 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
46714 Support programs like Emacs that use gnulib but not gettext.
46715 * MODULES.html.sh (Internationalization functions): Add gettext-h.
46716 * modules/gettext-h: New file.
46717 * modules/gettext (Files): Remove lib/gettext.h.
46718 (Depends-on): Add gettext-h.
46719 (Makefile.am): Remove lib_SOURCES.
46720 * modules/argmatch, modules/c-stack, modules/closeout:
46721 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
46722 * modules/execute, modules/file-type, modules/getaddrinfo:
46723 * modules/getopt, modules/human, modules/javacomp:
46724 * modules/javaexec, modules/mkdir-p, modules/obstack:
46725 * modules/openat, modules/pagealign_alloc, modules/pipe:
46726 * modules/quotearg, modules/regex, modules/rpmatch:
46727 * modules/unicodeio, modules/userspec, modules/version-etc:
46728 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
46730 Depend on gettext-h, not gettext.
46732 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
46734 * gnulib-tool (func_import): Add support for 'public domain' license.
46735 * modules/alloca, modules/atexit, modules/memmove:
46736 Now public domain, not GPL.
46737 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
46738 * modules/realloc, modules/strerror, modules/strtod:
46741 2005-07-05 Bruno Haible <bruno@clisp.org>
46743 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
46744 autoconf CVS. Needed for mingw.
46746 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
46748 Remove the dependency of the strftime module on the tzset module.
46749 * modules/strftime (Depends-on): Remove dependency on tzset.
46751 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
46753 Remove the dependency of the strftime module on the tzset module.
46754 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
46755 gl_FUNC_TZSET_CLOBBER.
46757 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
46759 Remove the dependency of the strftime module on the tzset module.
46760 * lib/strftime.c (my_strftime)
46761 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
46762 Copy the input structure, to work around some of the bug with
46763 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
46764 Solaris releases, you should also use the tzset module, but we won't
46765 require it as a dependency any more since we don't want LGPLed code
46766 to depend on GPLed code.
46768 2005-07-02 Jim Meyering <jim@meyering.net>
46770 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
46771 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
46772 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
46773 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
46775 2005-07-02 Jim Meyering <jim@meyering.net>
46777 * lib/backupfile.c (backup_args): Change a `0' to NULL.
46779 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
46781 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
46782 declares only 'struct timespec;' (!).
46784 2005-07-01 Jim Meyering <jim@meyering.net>
46786 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
46787 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
46788 * lib/save-cwd.c, tempname.c:
46789 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
46790 and don't include <sys/file.h>).
46792 2005-06-29 Jim Meyering <jim@meyering.net>
46794 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
46795 type name. Use the variable name instead.
46796 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
46799 2005-06-28 Simon Josefsson <jas@extundo.com>
46801 * modules/check-version (Files): Add check-version.m4.
46803 2005-06-28 Simon Josefsson <jas@extundo.com>
46805 * m4/check-version.m4: New file, suggested by Jim Meyering
46806 <jim@meyering.net>.
46808 2005-06-28 Simon Josefsson <jas@extundo.com>
46810 * lib/check-version.h, lib/check-version.c: New files.
46812 2005-06-28 Simon Josefsson <jas@extundo.com>
46814 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
46815 collision with global variable. Better indentation. Don't
46816 increment buffer pointer beyond buffer end. Based on comments
46817 from Paul Eggert <eggert@cs.ucla.edu>.
46819 * lib/base64.h: Indent.
46821 2005-06-28 Simon Josefsson <jas@extundo.com>
46823 * doc/gnulib.texi (Library version handling): New section.
46825 2005-06-28 Jim Meyering <jim@meyering.net>
46827 * check-module (find_included_lib_files): Hard-code another
46828 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
46829 but modules/fts-lgpl (correctly) does not list those files.
46831 * modules/canonicalize (Files): Add lib/pathmax.h.
46833 2005-06-25 Simon Josefsson <jas@extundo.com>
46835 * modules/check-version: New file.
46837 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
46839 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
46840 initializer of struct addrinfo, as an indication that we don't
46841 care how many members the structure has.
46843 2005-06-24 Derek Price <derek@ximbiot.com>
46844 and Bruno Haible <bruno@clisp.org>
46846 Remove stat module & update lstat.
46847 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
46848 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
46849 * m4/stat.m4: Remove this file.
46851 2005-06-24 Derek Price <derek@ximbiot.com>
46852 and Bruno Haible <bruno@clisp.org>
46854 Remove stat module & update lstat.
46855 * lib/stat.c: Remove this file...
46856 (slash_aware_lstat): ...moving this content and its support...
46857 * lib/lstat.c (rpl_lstat): ...into here.
46858 * lib/lstat.h: New file.
46860 2005-06-24 Derek Price <derek@ximbiot.com>
46861 and Bruno Haible <bruno@clisp.org>
46863 Remove stat module & update lstat.
46864 * config/srclist.txt (libc sources): Remove stat.
46866 2005-06-24 Derek Price <derek@ximbiot.com>
46867 and Bruno Haible <bruno@clisp.org>
46869 Remove stat module & update lstat.
46870 * MODULES.html.sh (stat): Remove.
46871 * MODULES.html: Regenerated.
46872 * modules/lstat (Description): Correct function name.
46873 (Files): Add "lstat.h".
46874 (Depends-on): Remove stat, add xalloc, stat-macros.
46875 * modules/stat: Remove this file.
46876 (Include): Add "lstat.h", remove <sys/stat.h>.
46878 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
46880 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
46881 (ranged_convert): Don't save conversion in a temporary struct.
46882 This causes a warning with GCC 4.0.0, and anyway in the typical
46883 case it's not worth the extra 100 bytes or so of code.
46884 (ranged_convert, __mktime_internal): When calling a function via a
46885 pointer P, use P () rather than (*P) (), as we now assume C89 or
46888 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
46890 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
46891 "who -r" failed to give output. Problem reported by Tim Waugh.
46893 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
46894 (xcalloc): Use it to avoid needless tests.
46895 Problem reported by Jim Meyering.
46897 2005-06-20 Derek Price <derek@ximbiot.com>
46899 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
46900 unnecessary for Autoconfs > 2.59c.
46902 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
46904 * lib/argp.h (__option_is_short): Check upper limit of
46905 __key. Isprint() requires its argument to have the value
46906 of an unsigned char or EOF.
46908 2005-06-16 Jim Meyering <jim@meyering.net>
46910 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
46911 when either N or S is zero.
46913 2005-06-16 Derek Price <derek@ximbiot.com>
46915 * m4/bison.m4: Declare YACC & YFLAGS precious.
46917 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
46919 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
46920 multibyte string or pattern, fall back on unibyte matching.
46921 Problem reported by James Youngman.
46923 2005-06-08 Bruno Haible <bruno@clisp.org>
46925 * modules/csharpcomp: New file.
46926 * MODULES.html.sh (C#): Add csharpcomp.
46928 2005-06-08 Bruno Haible <bruno@clisp.org>
46930 * m4/csharpcomp.m4: New file, from GNU gettext.
46932 2005-06-08 Bruno Haible <bruno@clisp.org>
46934 * lib/csharpcomp.h: New file, from GNU gettext.
46935 * lib/csharpcomp.c: New file, from GNU gettext.
46936 * lib/csharpcomp.sh.in: New file, from GNU gettext.
46938 2005-06-08 Bruno Haible <bruno@clisp.org>
46940 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
46943 2005-06-07 Derek Price <derek@ximbiot.com>
46946 * lib/glob_.h: Indent nested #ifdef.
46948 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
46950 Sync from coreutils.
46951 Use "file name" when talking about file names, instead of "filename"
46952 or "path", as per the GNU coding standards.
46953 * lib/mkdir-p.c: Renamed from makepath.c.
46954 (make_dir_parents): Renamed from make_path. All callers changed.
46955 * lib/mkdir-p.h: Likewise. All includers changed.
46956 * lib/filenamecat.c: Renamed from path-concat.c.
46957 (file_name_concat): Renamed from path_concat. All callers changed.
46958 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
46959 * lib/filenamecat.h: Likewise. All includers changed.
46960 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
46961 in comments or local variable names.
46962 * lib/basename.c: Likewise.
46963 * lib/canonicalize.c, canonicalize.h: Likewise.
46964 * lib/dirname.c, dirname.h: Likewise.
46965 * lib/euidaccess.c: Likewise.
46966 * lib/exclude.c: Likewise
46967 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
46968 * lib/fsusage.c, fsuage.h: Likewise.
46969 * lib/fts.c, fts_.h: Likewise.
46970 * lib/getcwd.c: Likewise.
46971 * lib/getloadavg.c: Likewise.
46972 * lib/mkstemp.c: Likewise.
46973 * lib/mountlist.c, mountlist.h: Likewise.
46974 * lib/openat.c, openat.h: Likewise.
46975 * lib/readlink-stub.c: Likewise.
46976 * lib/readutmp.c, readutmp.h: Likewise.
46977 * lib/rename.c: Likewise.
46978 * lib/rmdir.c: Likewise.
46979 * lib/same.c: Likewise.
46980 * lib/savedir.c: Likewise.
46981 * lib/stripslash.c: Likewise.
46982 * lib/tempname.c: Likewise.
46983 * lib/xreadlink.c: Likewise.
46984 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
46986 * lib/exclude.h: Likewise.
46988 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
46989 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
46990 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
46991 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
46992 * lib/pathmax.h: Include <limits.h> unconditionally, since other
46993 files have been getting away with it for years (MORE/BSD 4.3
46995 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
46996 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
46998 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
46999 Define to 256, not 255, as per modern POSIX.
47001 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
47003 Sync from coreutils.
47004 Use "file name" when talking about file names, instead of "filename"
47005 or "path", as per the GNU coding standards.
47006 * MODULES.html.sh: mkdir-p renamed from makepath.
47007 filenamecat renamed from path-concat.
47008 * modules/filenamecat: Renamed from modules/path-concat.
47009 (Files): filenamecat.h and filenamecat.c renamed from
47010 path-concat.h and path-concat.c.
47011 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
47012 (Include): filenamecat.h, not path-concat.h.
47013 * modules/mkdir-p: Renamed from modules/makepath.
47014 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
47016 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
47017 (Include): mkdir-p.h, not makepath.h.
47019 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
47021 Sync from coreutils.
47022 * m4/mkdir-p.m4: Renamed from makepath.m4.
47023 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
47024 Rename files from makepath.c to mkdir-p.c, and from
47025 makepath.h to mkdir-p.h.
47026 * m4/filenamecat.m4: Renamed from path-concat.m4.
47027 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
47028 Rename files from path-concat.c to filenamecat.c,
47029 and from path-concat.h to filenamecat.h.
47030 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
47031 "file name" in local variables or comments.
47032 * m4/rename.m4: Likewise.
47034 2005-06-01 Bruno Haible <bruno@clisp.org>
47036 * modules/csharpexec: New file.
47037 * MODULES.html.sh (C#): New section.
47039 2005-06-01 Bruno Haible <bruno@clisp.org>
47041 * m4/csharp.m4: New file, from GNU gettext.
47042 * m4/csharpexec.m4: New file, from GNU gettext.
47044 2005-06-01 Bruno Haible <bruno@clisp.org>
47046 * lib/csharpexec.h: New file, from GNU gettext.
47047 * lib/csharpexec.c: New file, from GNU gettext.
47048 * lib/csharpexec.sh.in: New file, from GNU gettext.
47050 2005-05-31 Derek Price <derek@ximbiot.com>
47051 Paul Eggert <eggert@cs.ucla.edu>
47054 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
47056 2005-05-31 Derek Price <derek@ximbiot.com>
47057 Paul Eggert <eggert@cs.ucla.edu>
47060 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
47062 2005-05-29 Derek Price <derek@ximbiot.com>
47064 * config/srclist.txt (glob_.h, glob.c): Add these files.
47066 2005-05-29 Derek Price <derek@ximbiot.com>
47068 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
47069 * modules/glob: New file.
47070 * modules/getlogin_r: Add link to POSIX spec in description.
47072 2005-05-29 Derek Price <derek@ximbiot.com>
47073 Paul Eggert <eggert@cs.ucla.edu>
47075 * m4/glob.m4: New file.
47077 2005-05-29 Derek Price <derek@ximbiot.com>
47078 Paul Eggert <eggert@cs.ucla.edu>
47080 * lib/glob_.h, lib/glob.c: New files.
47082 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
47084 * modules/fts (Files): Remove m4/inttypes-pri.m4.
47085 * modules/fts-lgpl (Depends-on): Remove gettext.
47087 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
47089 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
47090 and don't require gt_INTTYPES_PRI.
47092 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
47094 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
47096 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
47097 the configuration hassle isn't worth it.
47098 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
47099 (LONGEST_MODIFIER, PRIuMAX): Remove.
47101 2005-05-27 Bruno Haible <bruno@clisp.org>
47103 * lib/getlogin_r.h: Remove second include of <stddef.h>.
47105 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
47107 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
47108 _POSIX_PTHREAD_SEMANTICS for Solaris.
47110 2005-05-25 Derek Price <derek@ximbiot.com>
47112 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
47114 2005-05-25 Derek Price <derek@ximbiot.com>
47115 Paul Eggert <eggert@cs.ucla.edu>
47117 * modules/getlogin_r, m4/getlogin_r.m4: New files.
47118 * lib/getlogin_r.c, getlogin_r.h: New files.
47120 2005-05-25 Bruno Haible <bruno@clisp.org>
47121 Derek Price <derek@ximbiot.com>
47123 * lib/getlogin_r.h: Simplify API documentation.
47125 2005-05-23 Derek Price <derek@ximbiot.com>
47127 * modules/minmax (Files): Add m4/minmax.m4.
47128 (configure.ac): Add gl_MINMAX.
47130 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
47132 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
47133 so that unistd-safer.h (GPL'ed code) need not be included.
47135 2005-05-22 Bruno Haible <bruno@clisp.org>
47137 * m4/minmax.m4: New file.
47138 Based on a patch by Derek Price <derek@ximbiot.com>.
47140 2005-05-22 Bruno Haible <bruno@clisp.org>
47142 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
47143 (INT64_MIN): Fix definition.
47144 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
47146 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
47147 NEED_SIGNED_INT_TYPES.
47149 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
47150 HAVE_SYSTEM_INTTYPES.
47152 2005-05-22 Bruno Haible <bruno@clisp.org>
47154 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
47155 Also include <sys/param.h> if it defines MIN, MAX.
47156 Based on a patch by Derek Price <derek@ximbiot.com>.
47158 2005-05-21 Jim Meyering <jim@meyering.net>
47160 * modules/fts (Files): Add m4/inttypes-pri.m4.
47161 (Depends-on): Add lstat and remove gettext. Alphabetize.
47163 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
47166 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
47167 (setup_dir, free_dir): New functions.
47168 (enter_dir, leave_dir): Define trivial
47169 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
47170 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
47171 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
47172 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
47173 Move to fts-cycle.c.
47174 (fts_open): Use setup_dir.
47175 (fts_close): Use free_dir.
47176 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
47177 This adds a label and some gotos, but the alternatives were messier.
47178 Check for memory allocation failure when entering a dir.
47179 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
47180 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
47181 (FTS): New member fts_cycle, that is a union that contains the
47182 old active_dir_ht and cycle_state. All uses changed to mention
47183 fts_cycle.ht and fts_cycle.state.
47184 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
47185 fts.c, with the following changes:
47186 (setup_dir, free_dir): New functions.
47187 (enter_dir): Now returns bool. Return true if successful, false
47188 if memory exhausted. All callers changed.
47189 Do not bother partly cleaning up on
47190 memory allocation failure; that is free_dir's job.
47191 However, free ad if hash_insert fails, to avoid memory leak.
47192 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
47193 fts->fts_options to see which union member to use.
47195 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
47197 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
47198 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
47200 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
47202 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
47204 2005-05-20 Jim Meyering <jim@meyering.net>
47206 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
47207 Now a macro, to pacify GCC.
47209 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
47211 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
47214 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
47216 * lib/chown.c (rpl_chown): Return -1 on failure.
47218 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
47220 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
47221 Don't check for stddef.h.
47222 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
47223 don't use its results.
47224 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
47225 since we include them unconditionally. Don't require
47226 AM_STDBOOL_H, since stdbool is a prerequisite.
47227 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
47228 since we assume C89 or better.
47229 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
47230 as we don't use their results.
47231 Don't check for fchdir, memmove, memset, strrchr, as we use
47232 them unconditionally.
47233 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
47234 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
47236 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
47238 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
47239 Include <stddef.h> unconditionally, since we assume C89 now.
47240 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
47241 * lib/fts.c: Include fts_.h first, to check interface.
47242 Do not include intprops.h; no longer needed.
47243 Include cycle-check.h and hash.h, since fts_.h no longer does.
47244 Remove unnecessary casts of closedir to void.
47245 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
47246 decide whether to decrement nlinks.
47247 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
47248 (FTS): Use struct hash_table * instead of Hash_table, so that
47249 we no longer need to include hash.h here.
47251 2005-05-18 Jim Meyering <jim@meyering.net>
47253 * modules/dirfd (License): Change to LGPL. Most of the code
47254 is already in the public domain.
47256 2005-05-18 Jim Meyering <jim@meyering.net>
47258 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
47259 Reported by Yoann Vandoorselaere.
47261 2005-05-17 Jim Meyering <jim@meyering.net>
47263 * m4/fts.m4: New file, from coreutils.
47265 2005-05-17 Jim Meyering <jim@meyering.net>
47267 * lib/fts.c, lib/fts_.h: New files, from coreutils.
47269 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
47271 Sync from coreutils.
47272 * m4/unlinkdir.m4: New file.
47274 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
47276 Sync from coreutils.
47277 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
47278 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
47279 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
47280 White space changes only.
47281 * lib/makepath.c (make_path): Port to hosts where leading "//" is
47283 * lib/yesno.c: Include getline.h, not ctype.h.
47284 (yesno): Don't remove leading white space; POSIX doesn't allow it.
47285 Use getline to remove arbitrary restriction on response length.
47287 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
47289 * config/srclist-update: Spell out "Street" in FSF postal
47290 mail address; this is the style the FSF seems to prefer.
47292 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
47293 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
47294 this updates FSF postal mail address.
47296 Sync from coreutils.
47297 * modules/unlinkdir: New file.
47298 * modules/yesno (Depends-on): Add getline.
47299 * MODULES.html.sh (File system functions): Add unlinkdir.
47301 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
47303 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
47305 Change the initial comment to refer to GPL, not LGPL.
47306 gnulib-tool will change it to LGPL as needed.
47308 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
47309 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
47310 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
47311 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
47312 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
47313 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
47314 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
47315 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
47316 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
47317 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
47318 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
47319 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
47320 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
47321 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
47322 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
47323 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
47324 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
47325 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
47326 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
47327 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
47328 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
47329 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
47330 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
47331 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
47332 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
47333 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
47334 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
47335 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
47336 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
47337 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
47338 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
47339 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
47340 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
47341 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
47342 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
47343 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
47344 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
47345 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
47346 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
47347 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
47348 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
47349 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
47350 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
47351 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
47352 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
47353 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
47354 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
47355 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
47356 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
47357 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
47358 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
47359 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
47360 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
47361 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
47362 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
47363 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
47364 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
47365 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
47366 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
47367 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
47368 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
47369 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
47370 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
47371 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
47372 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
47373 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
47374 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
47375 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
47376 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
47377 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
47378 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
47379 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
47380 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
47381 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
47382 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
47383 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
47384 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
47385 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
47386 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
47387 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
47388 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
47389 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
47390 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
47391 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
47392 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
47393 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
47394 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
47395 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
47396 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
47397 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
47398 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
47399 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
47400 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
47401 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
47402 lib/yesno.c, lib/yesno.h:
47403 Update FSF postal mail address.
47405 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
47407 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
47408 tests/test-memmem.c, tests/test-stpncpy.c:
47409 Update FSF postal mail address.
47411 2005-05-13 Bruno Haible <bruno@clisp.org>
47413 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
47414 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
47415 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
47416 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
47417 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
47418 Add support for 64-bit integers in the MSVC compiler.
47420 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
47422 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
47424 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
47426 * gnulib-tool (func_import): Sort and uniquify recommended includes.
47428 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
47430 * doc/getdate.texi (General date syntax): Don't say that date
47431 date --iso-8601=ns generates acceptable dates; it doesn't yet.
47432 Problem reported by Nic Ferrier.
47434 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47436 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
47437 specified in ai_socktype. Fix invalid ai_protocol
47438 check. ai_protocol is usually set to 0 or depending on
47439 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
47440 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
47441 ai_socktype / ai_protocol in the returned addrinfo structure.
47443 2005-05-10 Simon Josefsson <jas@extundo.com>
47445 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
47446 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47448 2005-05-10 Karl Berry <karl@gnu.org>
47450 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
47451 (from http://www.gnu.org/licenses).
47452 * doc/COPYING.LIB: also rename to COPYING.LESSER.
47453 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
47456 2005-05-10 Karl Berry <karl@gnu.org>
47458 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
47459 (COPYING.DOC): remove.
47461 * config/srclist-update: new FSF address.
47463 2005-05-10 Derek Price <derek@ximbiot.com>
47465 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
47468 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47469 Bruno Haible <bruno@clisp.org>
47471 * modules/inet_ntop: New file.
47472 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47475 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47476 Bruno Haible <bruno@clisp.org>
47478 * m4/inet_ntop.m4: New file.
47480 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
47481 Bruno Haible <bruno@clisp.org>
47483 * lib/inet_ntop.h: New file.
47484 * lib/inet_ntop.c: New file, from glibc with modifications.
47486 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
47488 * modules/time_r (License): Change to LGPL.
47489 * modules/extensions (License): Change to LGPL. Actually,
47490 the license is more permissive than that, but currently gnulib-tool
47491 doesn't know how to handle more-permissive licenses.
47493 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
47494 Problem reported by Dave Love.
47496 2005-05-08 Jim Meyering <jim@meyering.net>
47498 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
47501 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
47503 * modules/argmatch (Depends-on): Add stdbool.
47504 * modules/backupfile (Depends-on): Likewise.
47505 * modules/chdir-long (Depends-on): Likewise.
47506 * modules/closeout (Depends-on): Likewise.
47507 * modules/cycle-check (Depends-on): Likewise.
47508 * modules/dirname (Depends-on): Likewise.
47509 * modules/fnmatch (Depends-on): Likewise.
47510 * modules/fsusage (Depends-on): Likewise.
47511 * modules/fwriteerror (Depends-on): Likewise.
47512 * modules/getcwd (Depends-on): Likewise.
47513 * modules/getloadavg (Depends-on): Likewise.
47514 * modules/hard-locale (Depends-on): Likewise.
47515 * modules/makepath (Depends-on): Likewise.
47516 * modules/mountlist (Depends-on): Likewise.
47517 * modules/nanosleep (Depends-on): Likewise.
47518 * modules/posixtm (Depends-on): Likewise.
47519 * modules/quotearg (Depends-on): Likewise.
47520 * modules/readtokens (Depends-on): Likewise.
47521 * modules/readtokens0 (Depends-on): Likewise.
47522 * modules/readutmp (Depends-on): Likewise.
47523 * modules/save-cwd (Depends-on): Likewise.
47524 * modules/strftime (Depends-on): Likewise.
47525 * modules/userspec (Depends-on): Likewise.
47526 * modules/utimecmp (Depends-on): Likewise.
47527 * modules/xgetcwd (Depends-on): Likewise.
47528 * modules/xnanosleep (Depends-on): Likewise.
47529 * modules/xstrtod (Depends-on): Likewise.
47530 * modules/yesno (Depends-on): Likewise.
47532 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
47534 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
47537 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
47539 Merge from coreutils. Among other things,
47540 add bulletproofing for cases where stdin, stdout, or stderr are closed.
47541 * lib/fd-safer.c: New file.
47542 * lib/fcntl-safer.h, open-safer.c: Remove.
47543 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
47544 * lib/dup-safer.c: Include unistd-safer.h first.
47545 Don't include errno.h.
47546 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
47547 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
47548 * lib/file-type.c: Rely on file-type.h change.
47549 * lib/getloadavg.c: Include unistd-safer.h.
47550 (getloadavg): Use safer open.
47551 * lib/getusershell.c: Include "stdio-safer.h".
47552 (getusershell): Use safer fopen.
47553 * lib/long-options.c (long_options): Use NULL rather than 0.
47554 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
47556 * lib/modechange.c: Likewise.
47557 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
47558 (MODE_DONE): New constant.
47559 (struct mode_change): Remove 'next' member.
47560 (make_node_op_equals): New function; like the old one of the
47561 same name, except it allocates an array.
47562 (mode_compile, mode_create_from_ref): Use it.
47563 (mode_compile): Allocate result as an array, not a linked list.
47564 Parse octal string ourself, so that we catch mistakes like "+0".
47565 (mode_adjust): Arg is an array, not a linked list.
47566 * lib/modechange.c: Include stat-macros.h, xalloc.h.
47567 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
47568 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
47569 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
47570 Remove. This is now stat-macros.h's job.
47571 (talloc): Remove. All callers replaced by xalloc, so that
47572 our invokers don't have to worry about reporting memory failures.
47573 (make_node_op_equals): Remove.
47574 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
47576 (struct mode_change): Moved here from modechange.h.
47577 (mode_append_entry): Remove.
47578 (mode_compile): Remove MASKED_OPS arg, since it encouraged
47579 apps to have incorrect behavior. Use simpler algorithm for head
47580 and tail. Don't futz with umask; that's now the job of mode_adjust.
47581 Detect more invalid usages rather than having somewhat-random behavior.
47582 Don't insert an "a=" action, as that leads to incorrect behavior.
47583 (mode_compile, mode_create_from_ref): Return NULL on error instead
47584 of an enum, since now there's only one way to have an error. All
47586 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
47587 at the correct time. Simplify calculation of "+u" and its ilk.
47588 Don't mishandle "+X".
47589 (mode_free): Remove "register" and localize decls.
47590 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
47591 (struct mode_change): Move to modechange.c; callers don't
47592 need to see this stuff.
47593 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
47594 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
47595 (mode_change, mode_adjust): Reflect the new signatures noted above.
47596 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
47597 that might redefine system include files.
47598 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
47599 (my_usleep): Use NULL rather than (void *) 0.
47600 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
47601 Use siginterrupt to specify that system calls should be interrupted.
47602 (rpl_nanosleep): Move initialization of suspended closer to call of
47604 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
47605 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
47606 (desirable_utmp_entry): New function.
47607 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
47608 using x2nrealloc, to simplify logic.
47609 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
47610 size calculation. Do not assume utmp file is a regular file.
47611 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
47612 (READ_UTMP_CHECK_PIDS): New constant.
47613 * lib/save-cwd.c: Include unistd-safer.h.
47614 (save_cwd): Use fd_safer.
47615 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
47616 [!_LIBC] Include "stat-macros.h" instead.
47617 * lib/unistd-safer.h (fd_safer): New decl.
47619 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
47621 * modules/getloadavg (Depends-on): Add unistd-safer.
47622 * modules/getusershell (Depends-on): Add stdio-safer.
47623 * modules/lstat (Depends-on): Remove xalloc.
47624 * modules/mkstemp (Depends-on): Add stat-macros.
47625 * modules/modechange (Depends-on): Remove xstrtol.
47626 Add stat-macros, xalloc.
47627 * modules/save-cwd (Depends-on): Add unistd-safer.
47628 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
47629 * modules/unistd-safer (Files): Add lib/fd-safer.c
47630 (Makefile.am): Remove lib_SOURCES.
47632 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
47633 Remove fcntl-safer; unistd-safer supersedes it.
47635 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
47637 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
47639 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
47640 (gl_PREREQ_CHOWN): Remove.
47641 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
47642 it. Don't require AC_HEADER_STAT.
47643 (gl_PREREQ_LSTAT): Remove.
47644 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
47645 Don't require AC_HEADER_STAT.
47646 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
47647 (gl_PREREQ_RMDIR): Remove.
47648 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
47649 mention stat-macros.h or AC_HEADER_STAT, since we'll make
47650 the stat-macros module a prerequisite.
47651 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
47652 * m4/filemode.m4 (gl_FILEMODE): Likewise.
47653 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
47654 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
47655 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
47657 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
47658 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
47660 * m4/fcntl-safer.m4: Remove.
47661 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
47662 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
47663 Invoke gl_PREREQ_FD_SAFER.
47664 (gl_PREREQ_FD_SAFER): New macro.
47665 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
47666 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
47667 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
47668 Remove duplicate call to AC_LIBOBJ(readutmp).
47669 (gl_PREREQ_READUTMP): Remove. All uses inlined.
47671 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
47672 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
47674 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
47676 * MODULES.html.sh (Misc): Add byteswap.
47678 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
47680 * modules/getcwd (Depends-on): Add extensions.
47681 * modules/openat (Depends-on): Likewise.
47683 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
47685 * modules/byteswap: New file.
47687 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
47689 * m4/byteswap.m4: New file.
47691 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
47693 * lib/byteswap_.h: New file.
47695 2005-04-25 Karl Berry <karl@gnu.org>
47697 * m4/gettext.m4: Update from GNU gettext 0.14.4.
47699 2005-04-25 Albert Chin <china@thewrittenword.com>
47701 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
47704 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
47706 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
47707 (func_ln_if_changed) Remove forcibly for no error message
47708 in case file does not exist.
47710 2005-04-19 Simon Josefsson <jas@extundo.com>
47712 * gnulib-tool (Options): Make --symlink mean --symbolic.
47714 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
47716 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
47718 2005-04-16 Simon Josefsson <jas@extundo.com>
47720 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
47722 2005-04-15 Simon Josefsson <jas@extundo.com>
47724 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
47726 2005-04-15 Simon Josefsson <jas@extundo.com>
47728 * gnulib-tool: Rename --symlink to --symbolic.
47730 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
47732 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
47733 symbolic links to files instead of copying/moving. Add --aux-dir,
47734 specifying directory relative --dir where auxiliary build tools
47737 2005-04-14 Bruno Haible <bruno@clisp.org>
47739 * modules/allocsa (License): Change to LGPL.
47740 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47742 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
47744 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
47745 that "UTC +1 second" continues to work. Problem reported
47746 by Dmitry V. Levin.
47747 (relunit_snumber): New rule.
47750 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
47752 * lib/getdate.y (universal_time_zone_table): New constant.
47753 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
47754 universal_time_zone_table.
47755 (lookup_zone): Prefer universal_time_zone_table to
47756 local_time_zone_table, so that "GMT" time stamps are allowed in
47757 London during the summer. Problem reported by Ian Abbott.
47759 2005-04-12 Jim Meyering <jim@meyering.net>
47761 * lib/human.c (humblock): Set *options even when returning due to
47762 xstrtoumax conversion failure. Thanks to a used-uninitialized
47763 warning from gcc-4.
47765 2005-04-09 Jim Meyering <jim@meyering.net>
47767 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
47768 -Wuninitialized: initialize tm0.tm_year.
47770 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
47772 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
47773 count, since there's no maximum. All uses changed.
47774 Add member dsts_seen.
47775 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
47777 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
47778 Use pc_rels_seen to decide whther a date is absolute.
47780 * lib/getdate.y (number): Don't overwrite year.
47781 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
47784 2005-04-02 Simon Josefsson <jas@extundo.com>
47786 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
47787 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
47789 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
47791 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
47792 where no absolute path name can be longer than PATH_MAX.
47794 2005-03-27 Jim Meyering <jim@meyering.net>
47796 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
47798 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
47800 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
47801 "one's complement" -> "ones' complement" in comment, as per Knuth.
47802 "value of type" -> "type or expression" in comment.
47803 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
47805 2005-03-26 Jim Meyering <jim@meyering.net>
47808 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
47809 Correct typos: s/or/of/.
47811 2005-03-26 Jim Meyering <jim@meyering.net>
47813 * modules/check-include-files: Move to ../ and rename to...
47814 * check-module: ...this.
47816 2005-03-25 Jim Meyering <jim@meyering.net>
47818 * modules/xvasprintf (Files): Add xalloc.h.
47820 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
47822 * modules/gettext (Files): config/config.rpath ->
47823 build-aux/config.rpath
47824 * modules/iconv (Files): Likewise.
47825 Problem reported by Oskar Liljeblad.
47827 2005-03-23 Jim Meyering <jim@meyering.net>
47829 * modules/check-include-files: New script to check for
47830 missing dependencies, multiple includes, etc.
47832 * modules/c-strtold (Depends-on): Add xalloc.
47833 * modules/c-strtod (Depends-on): Add xalloc.
47834 * modules/hash (Depends-on): Add xalloc.
47835 (Files): Remove lib/xalloc.h.
47837 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
47838 * modules/userspec (Files): Add lib/inttostr.h.
47840 2005-03-23 Jim Meyering <jim@meyering.net>
47842 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
47844 2005-03-22 Jim Meyering <jim@meyering.net>
47846 * modules/stat-macros: New module.
47847 * modules/canonicalize, modules/euidaccess, modules/file-type,
47848 * modules/filemode, modules/lchown, modules/makepath,
47849 * modules/rmdir, modules/stat: Depend on new stat-macros module
47850 rather than listing lib/stat-macros.h manually.
47851 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
47853 2005-03-22 Jim Meyering <jim@meyering.net>
47855 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
47857 2005-03-22 Bruno Haible <bruno@clisp.org>
47859 * config/srclist.txt: Replace target directory 'config' with
47861 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
47862 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
47865 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
47867 * modules/chdir-long (Depends-on): Add mempcpy.
47869 * modules/acl, modules/backupfile, modules/c-strtod,
47870 modules/c-strtold, modules/canon-host, modules/canonicalize,
47871 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
47872 modules/exclude, modules/exitfail, modules/file-type,
47873 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
47874 modules/getdate, modules/getline, modules/getpagesize,
47875 modules/getpass, modules/getugroups, modules/group-member,
47876 modules/hard-locale, modules/hash, modules/human, modules/idcache,
47877 modules/inttostr, modules/long-options, modules/makepath,
47878 modules/md5, modules/memcasecmp, modules/memcoll,
47879 modules/modechange, modules/mountlist, modules/path-concat,
47880 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
47881 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
47882 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
47883 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
47884 modules/strftime, modules/strndup, modules/strverscmp,
47885 modules/timespec, modules/unlocked-io, modules/userspec,
47886 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
47888 Remove lib_SOURCES line from Makefile.am section, as this is now
47889 done automatically by the corresponding Autoconf macro.
47891 2005-03-21 Jim Meyering <jim@meyering.net>
47893 Changes imported from coreutils.
47895 * lib/cycle-check.c: Don't include xalloc.h.
47897 * lib/path-concat.c: Don't include assert.h.
47898 (path_concat): Remove assertion that would have triggered
47899 for ABASE starting with more than one slash.
47900 Reported by Andreas Schwab.
47902 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
47903 properly when ABASE is an absolute file name.
47904 Correct the description of this function.
47905 Include <assert.h>.
47906 Add an assertion and a test driver.
47907 This fixes a bug introduced on 2004-07-02.
47908 Andreas Schwab reported the resulting failure of cp --parents:
47909 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
47911 2005-03-21 Jim Meyering <jim@meyering.net>
47913 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
47914 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
47916 2005-03-21 Jim Meyering <jim@meyering.net>
47917 and Paul Eggert <eggert@cs.ucla.edu>
47919 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
47920 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
47921 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
47922 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
47923 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
47924 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
47925 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
47926 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
47927 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
47928 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
47929 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
47930 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
47931 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
47932 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
47933 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
47934 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
47935 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
47938 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
47940 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
47941 (which shouldn't happen), generate nothing instead of returning 0
47942 immediately, so that nstrftime (NULL, ...) doesn't return 0.
47944 2005-03-16 Bruno Haible <bruno@clisp.org>
47946 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
47947 HAVE_LONGLONG_64BIT.
47949 2005-03-16 Bruno Haible <bruno@clisp.org>
47951 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
47952 HAVE_LONGLONG_64BIT.
47954 2005-03-16 Bruno Haible <bruno@clisp.org>
47956 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
47957 HAVE_LONGLONG_64BIT.
47959 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
47961 * lib/strftime.c (my_strftime): Prepend space to format so that we can
47962 reliably distinguish strftime failure from empty output on POSIX
47965 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
47967 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
47968 (iconv_string): Don't guess a size-zero buffer, as that might cause
47969 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
47970 result would be 'too large', where 'too large' is (heuristically)
47971 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
47972 overflow concerns. This will prevent some unwanted malloc failures
47973 when the inputs are very large.
47975 2005-03-15 Karl Berry <karl@gnu.org>
47977 * config/srclist.txt (config.rpath): from gettext.
47978 * config/config.rpath: update.
47980 2005-03-15 Bruno Haible <bruno@clisp.org>
47982 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
47985 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
47988 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
47991 2005-03-14 Simon Josefsson <jas@extundo.com>
47993 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
47996 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
47998 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
47999 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
48001 * lib/strtol.c: Likewise.
48003 2005-03-14 Jim Meyering <jim@meyering.net>
48005 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
48006 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
48007 to be nonzero so that we (and caller) can detect the difference
48008 between a valid zero-length expansion and an error return, even
48009 when the underlying strftime fails before writing anything into
48012 2005-03-14 Bruno Haible <bruno@clisp.org>
48014 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
48015 Update from GNU gettext 0.14.3.
48017 2005-03-10 Jim Meyering <jim@meyering.net>
48019 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
48021 2005-03-10 Jim Meyering <jim@meyering.net>
48023 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
48024 so that this module works on systems without fchdir.
48026 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
48028 Factor int-properties macros into a single file, except for
48029 glibc-related files.
48030 * lib/intprops.h: New file.
48031 * lib/getloadavg.c: Include it instead of limits.h.
48032 (INT_STRLEN_BOUND): Remove.
48033 * lib/human.c: Include intprops.h.
48034 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
48035 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
48037 * lib/inttostr.h: Include intprops.h instead of limits.h.
48038 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
48039 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
48040 for consistency with intprops.h.
48041 (time_t_is_integer, twos_complement_arithmetic): Use them.
48042 * lib/sig2str.h: Include <signal.h>, intprops.h.
48043 (INT_STRLEN_BOUND): Remove.
48044 * lib/strftime.c (TYPE_SIGNED): Remove.
48045 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
48046 * lib/strtol.c: Adjust comments to match intprops.h.
48047 * lib/userspec.c: Include intprops.h.
48048 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
48049 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
48050 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
48051 instead of rolling our own expressions.
48052 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
48054 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
48056 (my_strftime): Do not mishandle years close to INT_MAX, by doing
48057 the right thing even if adding 1900 would overflow. Similarly
48058 for tm_mon + 1 and tm_yday + 1.
48059 Make %Y always equivalent to %C%y, and similarly for %G and %g.
48060 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
48061 (DO_SIGNED_NUMBER): New macro.
48062 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
48064 2005-03-07 Bruno Haible <bruno@clisp.org>
48066 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
48068 2005-03-07 Bruno Haible <bruno@clisp.org>
48070 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
48072 2005-03-04 Derek R. Price <derek@ximbiot.com>
48074 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
48075 (func_import): Only replace files via --import when they have actually
48078 2005-03-03 Derek R. Price <derek@ximbiot.com>
48080 * m4/mmap-anon.m4: New file.
48081 * m4/pagealign_alloc.m4: New file.
48083 2005-03-03 Derek R. Price <derek@ximbiot.com>
48084 Bruno Haible <bruno@clisp.org>
48086 * modules/pagealign_alloc: New file.
48087 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
48089 2005-03-03 Derek R. Price <derek@ximbiot.com>
48090 Bruno Haible <bruno@clisp.org>
48092 * lib/pagealign_alloc.h: New file.
48093 * lib/pagealign_alloc.c: New file.
48095 2005-03-03 Bruno Haible <bruno@clisp.org>
48097 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
48098 Use an all-permissive copyright notice, recommended by RMS.
48100 2005-03-02 Bruno Haible <bruno@clisp.org>
48102 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
48103 of AIX, the replacement has to be done only after <string.h> is
48104 included, therefore not in config.h. stpncpy.h does the replacement,
48105 and stpncpy.c uses it.
48107 2005-03-02 Bruno Haible <bruno@clisp.org>
48109 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
48112 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
48114 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
48115 The workaround isn't strictly needed for POSIX conformance, and
48116 it's too much of a pain to configure and maintain. We'll ask
48117 people to fix their kernels instead.
48118 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
48119 (NANOSLEEP_BUG_WORKAROUND): Remove.
48120 (xnanosleep): Remove the workaround.
48122 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
48124 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
48125 Reported by Derek Price.
48126 (Include): Add "timespec.h".
48128 * modules/xnanosleep (Depends-on): Remove gethrxtime.
48130 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
48132 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
48133 to detect nanosleep bug.
48135 2005-03-01 Bruno Haible <bruno@clisp.org>
48137 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
48139 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
48141 * modules/gethrxtime: New file.
48142 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
48143 (Depends-on): Add gethrxtime.
48144 (configure.ac): Add gl_XNANOSLEEP.
48145 (Makefile.am): Remove lib_SOURCES line.
48147 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
48149 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
48150 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
48152 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
48154 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
48155 * lib/timespec.h (gettime): Return void, since it always
48156 succeeds now. All uses changed.
48157 * lib/gettime.c (gettime) Likewise.
48158 [HAVE_NANOTIME]: Prefer nanotime.
48159 Assume gettimeofday succeeds, as POSIX requires.
48160 Assime time () succeeds, since other code already does.
48161 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
48162 (timespec_subtract): Remove.
48163 (NANOSLEEP_BUG_WORKAROUND): New constant.
48164 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
48165 things considerably. Use it only on GNU/Linux hosts, since the
48166 workaround shouldn't be needed elsewhere.
48168 2005-02-24 Bruno Haible <bruno@clisp.org>
48170 * modules/gettext (Files): Add m4/glibc2.m4.
48172 2005-02-24 Bruno Haible <bruno@clisp.org>
48174 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
48175 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
48177 Update from GNU gettext 0.14.2.
48178 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
48180 2005-02-24 Bruno Haible <bruno@clisp.org>
48182 * lib/localcharset.c: Update from GNU gettext 0.14.2.
48183 * lib/config.charset: Update from GNU gettext 0.14.2.
48185 2005-02-24 Bruno Haible <bruno@clisp.org>
48187 * lib/gettext.h: Update from GNU gettext 0.14.2.
48189 2005-02-23 Simon Josefsson <jas@extundo.com>
48191 * m4/iconvme.m4: New file.
48193 2005-02-23 Jim Meyering <jim@meyering.net>
48195 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
48197 Thanks to Bruno Haible for catching it.
48199 2005-02-22 Simon Josefsson <jas@extundo.com>
48201 * modules/iconvme: New file.
48203 * MODULES.html.sh: Add iconvme.
48205 2005-02-22 Simon Josefsson <jas@extundo.com>
48207 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
48209 2005-02-22 Simon Josefsson <jas@extundo.com>
48211 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
48213 2005-02-22 Jim Meyering <jim@meyering.net>
48215 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
48218 2005-02-20 Neil Conway <neilc@samurai.com>
48220 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
48221 returned by OSX/Darwin if the specified buffer is not large
48222 enough for the hostname.
48224 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48226 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
48227 pass it to _help, otherwise the latter coredumps trying to
48228 dereference state.root_argp.
48230 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
48232 * modules/chdir-long (Depends-on): Add memrchr.
48233 * modules/memrchr (Files): Add lib/memrchr.h.
48234 (Include): "memrchr.h".
48236 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
48238 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
48240 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
48242 * lib/memrchr.h: New file.
48243 * lib/chdir-long.c: Include it.
48244 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
48245 Don't bother including stddef.h.
48247 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
48249 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
48251 Include <sys/types.h>, for dev_t.
48252 (ME_DUMMY, ME_REMOTE): Move from here....
48253 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
48254 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
48256 Include mountlist.h first, to test the interface.
48258 2005-01-29 Bruno Haible <bruno@clisp.org>
48260 * lib/progname.c (program_name): Initialize.
48261 Needed when linking statically on MacOS X.
48263 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
48265 Sync from coreutils.
48266 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
48267 (Depends-on): Add c-strtod.
48268 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
48270 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
48272 Sync from coreutils.
48273 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
48275 Remove files that are specific to coreutils.
48276 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
48278 2005-01-28 Bruno Haible <bruno@clisp.org>
48280 * modules/javacomp: New file.
48281 * MODULES.html.sh (Java): Add javacomp.
48283 2005-01-28 Bruno Haible <bruno@clisp.org>
48285 * m4/javacomp.m4: New file, from GNU gettext.
48287 2005-01-28 Bruno Haible <bruno@clisp.org>
48289 * lib/javacomp.sh.in: New file, from GNU gettext.
48290 * lib/javacomp.h: New file, from GNU gettext.
48291 * lib/javacomp.c: New file, from GNU gettext.
48293 2005-01-26 Simon Josefsson <jas@extundo.com>
48295 * lib/gai_strerror.c: Use GPL in header.
48297 2005-01-26 Bruno Haible <bruno@clisp.org>
48299 * modules/javaexec: New file.
48300 * MODULES.html.sh (Java): Add javaexec.
48302 2005-01-26 Bruno Haible <bruno@clisp.org>
48304 * m4/javaexec.m4: New file, from GNU gettext.
48306 2005-01-26 Bruno Haible <bruno@clisp.org>
48308 * lib/javaexec.sh.in: New file, from GNU gettext.
48309 * lib/javaexec.h: New file, from GNU gettext.
48310 * lib/javaexec.c: New file, from GNU gettext.
48312 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48314 * modules/lchown (Depends-on): Remove lchown.h
48316 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48318 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
48319 must be defined if the header file was not found, in order
48320 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
48322 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48324 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
48325 initializers for struct pentry_state.
48326 (__argp_error): Check return value of __asprintf
48327 (__argp_failure): Translate error message
48329 * lib/argp-parse.c: Removed braces around the expansion of N_()
48331 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
48333 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
48334 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
48335 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
48336 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
48337 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
48338 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
48339 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
48340 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
48341 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
48342 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
48343 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
48344 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
48345 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
48346 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
48347 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
48348 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
48349 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
48350 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
48351 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
48352 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
48353 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
48354 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
48355 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
48356 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
48357 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
48358 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
48359 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
48360 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
48361 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
48362 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
48363 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
48364 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
48365 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
48366 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
48367 xstrtol.m4, xstrtoumax.m4, yesno.m4:
48368 Use an all-permissive copyright notice, recommended by RMS.
48370 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
48372 * modules/chdir-long (Depends-on): Remove mempcpy.
48374 2005-01-21 Jim Meyering <jim@meyering.net>
48376 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
48377 same value as for Solaris 9.
48379 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
48380 component length. This included changing the parameter to be
48381 of type `char *' rather than `char const *'.
48382 * lib/chdir-long.h (chdir_long): Update prototype.
48384 * lib/openat.c (fdopendir, fstatat): New functions.
48385 * lib/openat.h: Include headers required for use of DIR and struct
48387 [AT_SYMLINK_NOFOLLOW]: Define.
48388 (fdopendir, fstatat): Add prototypes.
48390 2005-01-21 Bruno Haible <bruno@clisp.org>
48392 * modules/classpath: New file.
48393 * MODULES.html.sh (Java): Add classpath.
48395 2005-01-21 Bruno Haible <bruno@clisp.org>
48397 * lib/classpath.h: New file, from GNU gettext.
48398 * lib/classpath.c: New file, from GNU gettext.
48400 2005-01-20 Simon Josefsson <jas@extundo.com>
48402 * modules/version-etc-fsf: New file.
48404 2005-01-20 Simon Josefsson <jas@extundo.com>
48406 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
48407 * lib/version-etc.c: Remove version_etc_copyright.
48408 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
48409 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
48411 2005-01-20 Simon Josefsson <jas@extundo.com>
48413 * lib/base64.h (isbase64): Add.
48415 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
48416 using a unsigned prototype, don't inline.
48417 (base64_decode): Use it.
48419 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
48421 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
48424 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
48426 * lib/save-cwd.c (save_cwd): Remove code to support the case
48427 where fchdir is missing or flaky.
48429 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
48431 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
48433 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
48435 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
48436 AC_LIBSOURCES now does this.
48437 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
48438 with new ullong_max module.
48440 2005-01-19 Bruno Haible <bruno@clisp.org>
48442 * modules/sh-quote: New file.
48443 * MODULES.html.sh (Executing programs): Add sh-quote.
48445 2005-01-19 Bruno Haible <bruno@clisp.org>
48447 * lib/sh-quote.h: New file, from GNU gettext.
48448 * lib/sh-quote.c: New file, from GNU gettext.
48450 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
48452 Merge from coreutils.
48453 * m4/ullong_max.m4: New file.
48454 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
48455 (gl_MACROS): Assume localeconv exists.
48457 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
48459 Merge changes from coreutils, as described below in several
48460 changelogs dated today.
48462 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
48463 (O_DIRECTORY): Remove; not needed here, since "." must be
48464 a directory. All uses removed.
48465 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
48466 universal on Suns, and we also need to test for IRIX.
48467 Revamp code to use 'if' rather than '#if'.
48468 Avoid unnecessary comparison of cwd->desc to 0.
48470 * lib/utimens.c (futimens): Robustify the previous patch, by checking
48471 for known valid error numbers rather than observed invalid ones.
48473 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
48475 * modules/ullong_max: New file.
48477 * modules/chdir-long, modules/openat: New files.
48478 * modules/save-cwd (Depends-on): Depend on chdir-long.
48479 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
48481 2005-01-18 Jim Meyering <jim@meyering.net>
48483 Merge from coreutils.
48484 * m4/chdir-long.m4, m4/openat.m4: New files.
48485 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
48486 save-cwd.h. Add AC_LIBOBJ for save-cwd.
48487 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
48488 is sane and DOES follow symlinks. Besides, testing 20 different
48489 systems found no broken chown implementations.
48490 Prompted by a change in rsync's copy of this macro.
48491 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
48493 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
48495 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
48496 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
48497 NULL-means-set-to-current-time semantics.
48498 Remove temporary file immediately, rather than waiting
48499 for configure's at-exit trap code to do it.
48501 2005-01-18 Jim Meyering <jim@meyering.net>
48503 * lib/version-etc.c (version_etc_copyright): Update copyright date.
48505 * lib/utimens.c (futimens): Account for the fact that futimes
48506 can also fail with errno == ENOSYS or errno == ENOENT.
48507 Patch from Dmitry V. Levin.
48509 Change the name of the robust chdir function from chdir to chdir_long.
48510 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
48511 (restore_cwd): Use chdir_long, not chdir.
48512 * lib/chdir-long.c: Renamed from chdir.c.
48513 * lib/chdir-long.h: Renamed from chdir.h.
48514 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
48517 2005-01-18 Bruno Haible <bruno@clisp.org>
48519 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
48520 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
48521 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
48522 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
48523 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
48524 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
48525 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
48526 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
48527 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
48528 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
48529 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
48530 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
48531 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
48532 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
48533 Use an all-permissive copyright notice, recommended by RMS.
48535 2005-01-18 Bob Proulx <bob@proulx.com>
48537 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
48538 simplify offsetof() macro construct to avoid compile failure with
48539 native HP-UX 11.0 ANSI C compiler.
48541 2005-01-17 Bruno Haible <bruno@clisp.org>
48543 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
48544 redundant because stpncpy.m4 takes care of it.
48546 2005-01-17 Bruno Haible <bruno@clisp.org>
48548 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
48550 2005-01-17 Bruno Haible <bruno@clisp.org>
48552 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
48555 2005-01-17 Bruno Haible <bruno@clisp.org>
48557 * lib/fwriteerror.h (fwriteerror): Change specification to include
48559 * lib/fwriteerror.c: Include <stdbool.h>.
48560 (fwriteerror): At the end, close the file stream. Record whether
48561 stdout was already closed.
48563 2005-01-17 Bruno Haible <bruno@clisp.org>
48565 * lib/execute.c (environ): Declare if needed.
48566 * lib/pipe.c (environ): Likewise.
48567 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
48569 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48571 * modules/argp: Depend on vsnprintf
48573 2005-01-10 Jim Meyering <jim@meyering.net>
48575 * modules/closeout (Depends-on): Add atexit.
48577 2005-01-06 Bruno Haible <bruno@clisp.org>
48579 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
48581 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
48583 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
48584 definitions to be after all include files, to avoid collisions.
48585 Problem reported by Bob Proulx.
48587 2005-01-04 Jim Meyering <jim@meyering.net>
48589 Changes imported from coreutils.
48590 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
48591 as the mkstemp template, use a temporary directory and an
48592 8.3-friendly template to avoid trouble on systems like DJGPP.
48593 Reported by Juan M. Guerrero via Stepan Kasal.
48594 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
48595 close. Remove the temporary directory right away, rather than waiting
48596 for configure's at-exit trap code to do it.
48597 Suggestion from Stepan Kasal.
48599 2005-01-01 Simon Josefsson <jas@extundo.com>
48601 * gnulib-tool: Print #include directives when --import'ing.
48603 2004-12-28 Simon Josefsson <jas@extundo.com>
48605 * tests/test-base64.c: Include required header files. Remove
48608 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
48610 * modules/error (Depends-on): Remove gettext.
48612 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
48614 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
48615 not needed. This removes a dependency on the gettext module.
48616 [defined _LIBC]: Do not include <libintl.h>; not needed.
48618 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
48620 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
48621 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
48623 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
48625 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
48628 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
48630 * modules/getdate (Depends-on): Remove alloca-opt.
48632 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
48634 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
48636 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
48638 * lib/argp-parse.c: Include <stddef.h>.
48639 (alignof, alignto): New macros.
48640 (parser_init): Don't assume that void * is aligned sufficiently
48643 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
48644 need to extend the stack.
48645 (YYINITDEPTH): New macro, so that the initial stack isn't overly
48648 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48650 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
48652 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
48654 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
48655 (2004-10-24) change. Apparently this was a false alarm.
48657 * modules/getdate: Depend on alloca-opt, not alloca.
48659 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
48661 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
48662 Remove now-obsolete comment about AIX.
48663 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
48664 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
48665 (YYMAXDEPTH): New macro.
48667 2004-12-18 Simon Josefsson <jas@extundo.com>
48669 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
48671 2004-12-18 Bruno Haible <bruno@clisp.org>
48673 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
48675 2004-12-18 Bruno Haible <bruno@clisp.org>
48677 * lib/fatal-signal.c (fatal_signals): Make non-const.
48678 (init_fatal_signals): New function.
48679 (uninstall_handlers, install_handlers): Ignore signals that were set to
48681 (at_fatal_signal): Call init_fatal_signals.
48682 (init_fatal_signal_set): Likewise. Ignore signals that were set to
48684 Reported by Paul Eggert.
48686 2004-12-18 Bruno Haible <bruno@clisp.org>
48688 * doc/alloca.texi: New file.
48689 * doc/alloca-opt.texi: New file.
48691 2004-12-17 Jim Meyering <jim@meyering.net>
48693 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
48694 Otherwise, install-sh could exit with improper exit status when
48695 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
48697 2004-12-16 Simon Josefsson <jas@extundo.com>
48699 * tests/test-base64.c: Add license.
48701 2004-12-15 Stepan Kasal <address@hidden>
48703 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
48705 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
48707 * modules/getcwd (Files): Add m4/d-ino.m4.
48708 Suggested by Mark D. Baushke.
48710 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
48712 * lib/getdate.y (textint): New member "negative".
48713 (time_zone_hhmm): New function.
48714 Expect 14 shift-reduce conflicts, not 13.
48715 (o_colon_minutes): New rule.
48716 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
48717 (yylex): Set the "negative" member of signed numbers.
48719 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
48721 * doc/getdate.texi (Time of day items, Time zone items):
48722 Describe new formats +00:00, UTC+00:00.
48724 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
48726 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
48727 spurious "-l"s. Problem reported by Stepan Kasal.
48729 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
48731 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
48732 in Autoconf 2.59. Problem reported by Mark D. Baushke.
48734 2004-12-04 Simon Josefsson <jas@extundo.com>
48736 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
48737 Vandoorselaere <yoann@prelude-ids.org>.
48739 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
48741 Changes imported from coreutils.
48742 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
48744 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
48746 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
48748 Changes imported from coreutils.
48749 * lib/hard-locale.c: Assume <locale.h> exists.
48750 Include "strdup.h".
48751 (GLIBC_VERSION): New macro.
48752 (hard_locale): Assume setlocale exists.
48753 Rewrite to avoid #ifdef.
48754 Use strdup rather than malloc + strcpy.
48755 * lib/human.c: Assume <locale.h> exists.
48756 (human_readable): Assume localeconv exists.
48758 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
48760 * modules/hard-locale (Depends-on): Add strdup.
48762 2004-12-01 Jakub Jelinek <jakub@redhat.com>
48764 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
48765 convert T2, not T. (Imported from libc.)
48767 2004-11-30 Simon Josefsson <jas@extundo.com>
48769 * modules/restrict (License): Change to LGPL.
48771 2004-11-30 Simon Josefsson <jas@extundo.com>
48773 * m4/restrict.m4: Add copyright and copying conditions.
48775 2004-11-30 Simon Josefsson <jas@extundo.com>
48777 * m4/base64.m4: New file.
48779 2004-11-30 Simon Josefsson <jas@extundo.com>
48781 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
48784 * tests/test-base64.c: New file.
48786 * modules/base64: New file.
48788 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
48790 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
48791 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
48793 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
48795 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
48797 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
48798 (__getcwd.c): Don't restore errno; glibc doesn't.
48799 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
48800 first, falling back to our code only if its results look suspicious.
48801 Ensure that the resulting buffer is only as large as necessary.
48803 * lib/readutmp.c: Include readutmp.h first.
48804 Include <errno.h>, since readutmp.h no longer does that.
48805 * lib/readutmp.h: Don't include <errno.h>,
48806 <sys/param.h>, <time.h>; not needed to establish interface.
48807 (errno): Remove decl.
48808 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
48809 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
48810 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
48812 2004-11-28 Simon Josefsson <jas@extundo.com>
48814 * lib/base64.h, base64.c: New file.
48816 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
48818 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
48820 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
48822 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
48823 (Depends-on): Remove pathmax, same. Add mempcpy.
48824 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
48825 (Makefile.am): Append getcwd.h to lib_SOURCES.
48826 (Include): Add getcwd.h.
48827 (Maintainer): Change from Jim Meyering to "all, glibc",
48828 since getdate now uses intended-for-glibc code.
48829 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
48830 (Depends-on): Depend on getcwd. Do not depend on pathmax.
48832 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
48834 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
48835 HP's ANSI C compiler.
48836 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
48837 Declaring int functions causes warnings on some modern systems and
48838 shouldn't be needed to compile on ancient ones.
48839 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
48842 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
48843 with the following changes.
48844 (__set_errno): Parenthesize properly.
48845 Include <stdbool.h>.
48846 (MIN, MAX, MATCHING_INO): New macros.
48847 (__getcwd): Define with prototype, not K&R form.
48848 Use heuristics to allocate default buffer on stack if possible.
48849 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
48850 behavior, and to avoid the PATH_MAX limit when computing
48852 Use MATCHING_INO to compare inode number to file.
48853 Check for arithmetic overflow in size calculations.
48854 Fix bug in reallocation of dot array that caused getcwd to fail
48855 on directories nested deeper than 75.
48856 Be more careful about saving errno on error.
48857 Do not use realloc; use only free+malloc, as this is a bit
48858 more flexible and avoids a needless copy operation.
48859 Do not inspect st_dev and st_ino for symbolic links; POSIX
48860 doesn't specify the latter.
48861 Check for closedir errors.
48862 Avoid needless casts.
48863 Use "#ifdef weak_alias" around weak_alias, to be like other
48865 The following changes to getcwd.c have effect only when used in
48866 gnulib; they have no effect inside glibc proper.
48867 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
48868 as alloca isn't used.
48869 (alloca, __alloca): Likewise.
48870 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
48871 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
48872 unconditionally, as gnulib assumes C89 or better.
48873 Do not include <sys/param.h>.
48874 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
48875 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
48877 (NULL) [!defined NULL]: Remove; we assume C89 or better.
48878 Include <dirent.h> in a way that is compatible with modern Autoconf.
48879 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
48880 New macros, if not already defined.
48881 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
48882 Use "_LIBC", not "defined _LIBC", for consistency.
48883 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
48885 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
48886 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
48887 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
48888 credit only to Jim Meyering and adjust the copyright dates.
48889 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
48890 <stdlib.h>, <unistd.h>, "pathmax.h".
48891 Instead, include "xgetcwd.h" (first) and "getcwd.h".
48892 (INITIAL_BUFFER_SIZE): Remove.
48893 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
48895 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
48897 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
48898 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
48899 Use the _ONCE methods, for efficiency.
48900 Check for fcntl.h. In test program, include <errno.h>
48901 and <fcntl.h> if available. Remove old K&R cruft from
48902 test program. Check for common errors in GNU/Linux,
48903 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
48904 don't do AC_LIBOBJ, as that's getcwd.m4's job.
48905 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
48906 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
48908 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
48909 accommodate new getcwd.c.
48910 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
48911 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
48912 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
48913 that's all we need now.
48915 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48917 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
48918 argp-parse.c depends on getopt internals, that means we should
48919 always use our getopt, to be on the safe side.
48920 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
48921 order not to spoil the result of an eventual previous invocation
48922 of gl_GETOPT_SUBSTITUTE.
48924 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
48926 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
48927 redefinition warnings. To avoid them, include the defines
48928 in `#if !defined __need_getopt ... #endif'. The only place
48929 where __getopt_argv_const is used is in definitions
48930 of getopt_long and getopt_long_only below, which are as well
48931 protected by `#ifndef __need_getopt'.
48932 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
48933 __need_getopt after including <stdio.h> and <unistd.h> These
48934 headers might have defined it.
48936 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
48938 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
48940 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
48942 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
48943 (futimens): New function, which uses futimes if available.
48944 (futimens, utimens): Support timespec==NULL, with same semantics
48945 as utime and utimens.
48946 * lib/utimens.h (futimens): New decl.
48948 2004-11-23 Jim Meyering <jim@meyering.net>
48950 * lib/getopt_.h: Remove trailing blanks.
48952 2004-11-23 Jim Meyering <jim@meyering.net>
48954 * lib/__fpending.c: Add comment.
48956 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
48958 * modules/canonicalize (Depends-on): Add xreadlink.
48959 Problem reported by James Youngman.
48961 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
48963 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
48965 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
48966 optopt): Use them instead of invoking ## directly; otherwise, the
48967 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
48969 2004-11-19 Bruno Haible <bruno@clisp.org>
48971 * lib/strtok_r.c: Move comments from here...
48972 * lib/strtok_r.h: ... to here.
48974 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
48976 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
48977 implementations that mishandle size_t overflow.
48979 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
48981 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
48982 might fail. Problem reported by Yoann Vandoorselaere.
48983 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
48984 implementations that mishandle size_t overflow.
48986 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
48988 * modules/canon-host (Depends-on): Add strdup.
48990 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
48992 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
48994 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
48996 * lib/canon-host.c: Include "strdup.h".
48997 (canon_host): Use getaddrinfo if available, so that IPv6 works.
48998 Use strdup instead of malloc/strcpy to duplicate strings.
49000 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
49001 (human_space_before_unit): New constant.
49002 * lib/human.c (human_readable): Support it.
49004 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
49005 (xgetcwd): Set errno correctly when failing.
49006 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
49007 the failure is actually due to a PATH_MAX problem.
49009 Further getopt changes to make it more likely that glibc will
49010 buy the changes back.
49011 * lib/getopt.c (POSIXLY_CORRECT): New constant.
49012 (getopt): Use it, so to preserve glibc semantic
49013 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
49014 when compiling for libc.
49015 * lib/getopt_.h (__getopt_argv_const): Bring it back.
49016 (getopt_long, getopt_long_only): Use it.
49018 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
49019 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
49020 (getopt): Argv is now char * const *, as per standard.
49021 (_getopt_internal_r, _getopt_internal): Argv is now char **,
49022 not char *__getopt_argv_const *.
49023 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
49024 _getopt_long_only_r): Likewise.
49025 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
49026 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
49027 _getopt_long_r, _getopt_long_only_r): Likewise.
49028 * lib/getopt_.h (__getopt_argv_const): Remove.
49029 (getopt): Argv is now char * const *, as per standard.
49031 * lib/getdate.y (tORDINAL): New token.
49032 (day, relunit): Allow it for relative times.
49033 (relative_time_table): Use tORDINAL for ordinals.
49035 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
49037 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
49038 Document that "second" isn't allowed as an ordinal number.
49040 2004-11-16 Jim Meyering <jim@meyering.net>
49042 * modules/closeout (Depends-on): Add fpending.
49044 2004-11-15 Jim Meyering <jim@meyering.net>
49046 * lib/closeout.c: Include "__fpending.h" once again.
49047 Include <stdbool.h>.
49048 (close_stdout): Don't fail just because stdout was closed initially,
49049 since some programs don't write to stdout in the normal course of
49050 operation (other than --version and --help), and we don't want this
49051 function to make e.g. `touch file >&-' fail.
49052 But do fail if it was closed and someone has tried to write to it.
49053 E.g., `printf foo >&-' must fail.
49055 2004-11-13 Jim Meyering <jim@meyering.net>
49057 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
49059 2004-11-12 Simon Josefsson <jas@extundo.com>
49061 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
49062 small doc fix is still pending.
49064 2004-11-11 Simon Josefsson <jas@extundo.com>
49066 * modules/strtok_r: New file.
49068 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49071 2004-11-11 Simon Josefsson <jas@extundo.com>
49073 * m4/strtok_r.m4: New file.
49075 * m4/getopt.m4: Replace opterr.
49077 2004-11-11 Simon Josefsson <jas@extundo.com>
49079 * lib/strtok_r.h, strtok_r.c: New file.
49081 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
49083 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
49084 of replacing opterr, getopt, etc. This should handle the
49085 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
49087 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
49089 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
49090 we can stop lying to compilers about the constness of argv when we
49091 are compiled outside glibc.
49092 (getopt, getopt_long, getopt_long_only): Use it.
49093 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
49094 _getopt_internal, getopt): Likewise.
49095 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
49096 _getopt_long_only_r): Likewise.
49097 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
49098 _getopt_long_r, _getopt_long_only_r): Likewise.
49100 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
49101 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
49102 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
49103 the other external symbols.
49104 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
49105 declaration, since the above renaming now works around collisions.
49107 2004-11-11 Jim Meyering <jim@meyering.net>
49109 * lib/linebreak.c: Remove trailing blanks.
49110 * lib/alloca_.h: Likewise.
49111 * lib/acosl.c: Likewise.
49112 * lib/euidaccess.c: Likewise.
49113 * lib/allocsa.h: Likewise.
49115 2004-11-10 Simon Josefsson <jas@extundo.com>
49117 * m4/getaddrinfo.m4: New file.
49119 2004-11-10 Simon Josefsson <jas@extundo.com>
49121 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
49123 2004-11-10 Simon Josefsson <jas@extundo.com>
49125 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49128 * modules/getaddrinfo: New file.
49130 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
49132 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
49134 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
49136 * lib/mktime.c (SHR): New macro, which is a portable
49137 substitute for >> that should work even on Crays.
49138 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
49139 Problem reported by Mark D. Baushke in
49140 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
49141 * lib/getdate.y (SHR): Likewise.
49143 * lib/strftime.c (SHR): Likewise.
49145 * lib/quotearg.c (struct quoting_options): Use unsigned int for
49146 quote_these_too, so that right shifts are well defined. All uses
49149 2004-11-10 Jim Meyering <jim@meyering.net>
49151 Ensure that no close failure goes unreported.
49152 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
49153 return early when it seems there's nothing to flush.
49154 Don't include __fpending.h.
49156 2004-11-10 Jim Meyering <jim@meyering.net>
49158 * modules/closeout (Depends-on): Remove fpending.
49160 2004-11-10 Jim Meyering <jim@meyering.net>
49162 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
49164 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
49166 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
49168 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
49169 and AC_REQUIRE when possible, to avoid duplicate checks.
49170 Check for <wchar.h>.
49172 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
49174 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
49176 2004-11-09 Bruno Haible <bruno@clisp.org>
49178 * m4/sockpfaf.m4: New file.
49180 2004-11-05 Bruno Haible <bruno@clisp.org>
49182 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
49183 Reported by Mark D. Baushke <mdb@cvshome.org>.
49185 2004-11-04 Bruno Haible <bruno@clisp.org>
49187 2004-09-11 Bruno Haible <bruno@clisp.org>
49188 * allocsa.valgrind: New file.
49189 2004-02-06 Bruno Haible <bruno@clisp.org>
49190 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
49191 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
49192 Reported by Christopher Seip <chris.seip@hp.com>.
49194 2004-11-04 Bruno Haible <bruno@clisp.org>
49196 * modules/allocsa (Files): Add lib/allocsa.valgrind.
49197 (Makefile.am): Distribute it.
49199 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
49201 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
49202 with errno == ERANGE if the buffer is too small.
49203 Problem reported by Mark D. Baushke.
49205 2004-11-03 Albert Chin <china@thewrittenword.com>
49206 Paul Eggert <eggert@cs.ucla.edu>
49208 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
49209 equivalent, substitute $ac_type for equivalent type rather than
49210 blindly using uint32_t *always* which won't work if uint32_t is not
49211 available. Define _UINT32_T to work around typedef of uint32_t if
49212 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
49215 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
49217 * m4/jm-macros.m4: Sync from coreutils.
49218 (gl_MACROS): Check for mbrlen, for pathchk.
49219 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
49221 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
49223 * lib/xreadlink.c (MAXSIZE): New macro.
49224 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
49225 size does not exceed MAXSIZE. Avoid cast.
49226 As suggested by Mark D. Baushke in
49227 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
49228 if readlink fails with buffer size just under MAXSIZE, try again
49231 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
49233 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
49235 2004-11-02 Derek R. Price <derek@ximbiot.com>
49236 and Paul Eggert <eggert@cs.ucla.edu>
49238 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
49239 (get_date): Overparenthesize to avoid GCC warning.
49241 2004-11-02 Bruno Haible <bruno@clisp.org>
49243 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
49246 2004-11-02 Bruno Haible <bruno@clisp.org>
49248 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
49249 function returns void.
49251 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
49253 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
49254 fflush_unlocked, flockfile, funlockfile, funlockfile,
49255 fputs_unlocked, putc_unlocked.
49257 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
49259 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
49260 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
49263 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
49265 * modules/getdate (Files): Add doc/getdate.texi.
49266 (Depends-on): Add setenv, xalloc.
49268 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
49270 * lib/getdate.y: Add support for TZ="foo" within a date string.
49271 Fix some bugs near time_t boundaries. Reject dates with
49272 out-of-range components, e.g., "Sept 31".
49273 Include <stdlib.h>, "setenv.h", "xalloc.h".
49274 (ISDIGIT_LOCALE): Remove; unused.
49275 Note that the TZ and time functions used here are not reentrant.
49276 (mktime_ok, get_tz): New functions.
49277 (TZBUFSIZE): New constant.
49278 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
49279 This requires that we sometimes generate our own TZ="XXX..." setting.
49281 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
49283 * doc/getdate.texi: New file, from coreutils with modifications for
49284 the new TZ parsing.
49286 2004-10-27 Derek R. Price <derek@ximbiot.com>
49288 * lib/mktime.c (not_equal_tm): Remove redundant check.
49290 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
49292 * modules/regex (lib_SOURCES): Add regex.c.
49293 Reported by James Youngman in
49294 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
49296 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
49298 * lib/getdate.y: Use Bison 1.875 features, and some minor
49299 code cleanups. This change does not affect semantics.
49300 Don't include <stdlib.h>; no longer needed.
49301 Don't include unlocked-io.h; only the "#if TEST" code uses
49302 stdio, and performance isn't crucial there.
49303 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
49304 Bison 1.875 features as described below.
49305 All uses of "PC." replaced by "pc->".
49306 (YYSTYPE): Add a forward declaration.
49307 (yylex, yyerror): Use full prototypes in forward decls.
49308 Use "%pure-parser" rather than obsolescent "%pure_parser".
49309 Use %parse-param and %lex-param instead of obsolescent
49310 YYPARSE_PARAM and YYLEX_PARAM.
49311 (meridian_table, month_and_day_table, time_units_table,
49312 relative_time_table, time_zone_table, military_table,
49313 lookup_zone, lookup_word, get_date):
49314 Use NULL instead of 0 where appropriate.
49315 (to_hour): Avoid abort (), to avoid a dependency on
49317 (yyerror, yylex): Now accepts parser_control * arg.
49318 (main) [TEST]: Use '\0' rather than 0 for char.
49320 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
49322 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
49324 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
49326 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
49327 It's now the caller's responsibility to handle the case where
49328 !HAVE_GETPAGESIZE && !defined getpagesize.
49330 * lib/mktime.c (leapyear): Arg is long int, not int.
49332 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
49334 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
49336 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
49338 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
49339 missing. Problem reported by James Youngman.
49341 2004-10-16 Simon Josefsson <jas@extundo.com>
49343 * gnulib-tool: Fix comments. Fix parse problem.
49344 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
49346 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
49348 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
49349 implementation of getopt_long. Problem reported by Alexander Taler in:
49350 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
49352 2004-10-15 Bruno Haible <bruno@clisp.org>
49354 * gnulib-tool: Untabify. Initialize supplied_libname.
49355 (func_usage): More homogenous output.
49356 (func_modules_transitive_closure, func_modules_to_filelist,
49357 func_emit_lib_Makefile_am): New functions.
49358 (func_import): New function, extracted from big case statement. Use
49359 func_get_license, func_modules_transitive_closure,
49360 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
49361 opt_lgpl. Don't use test -a, as it's not portable.
49362 (func_create_testdir): Use func_modules_transitive_closure,
49363 func_modules_to_filelist, func_emit_lib_Makefile_am.
49365 2004-10-15 Bruno Haible <bruno@clisp.org>
49367 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
49369 2004-10-15 Bruno Haible <bruno@clisp.org>
49371 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
49372 the portions belonging to each module.
49373 Suggested by Derek Robert Price <derek@ximbiot.com>.
49375 2004-10-12 Simon Josefsson <jas@extundo.com>
49377 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
49378 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
49381 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
49383 * modules/vsnprintf: New file.
49385 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
49387 * m4/vsnprintf.m4: New file.
49389 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
49391 * lib/vsnprintf.h: New file.
49392 * lib/vsnprintf.c: New file.
49394 2004-10-11 Bruno Haible <bruno@clisp.org>
49396 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
49399 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
49401 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
49403 2004-10-07 Bruno Haible <bruno@clisp.org>
49405 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
49406 fits into the provided buffer.
49408 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
49410 * lib/diacrit.c, diacrit.h: Add GPL notice.
49412 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
49414 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
49415 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
49416 This avoids a potential constant-folding bug.
49418 2004-10-05 Bruno Haible <bruno@clisp.org>
49420 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
49421 for the declaration of strsep.
49423 2004-10-05 Bruno Haible <bruno@clisp.org>
49425 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
49427 2004-10-04 Simon Josefsson <jas@extundo.com>
49429 * modules/memmem: New file.
49430 * tests/test-memmem.c: New file.
49431 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
49433 2004-10-04 Simon Josefsson <jas@extundo.com>
49435 * m4/memmem.m4: New file.
49437 2004-10-04 Simon Josefsson <jas@extundo.com>
49439 * lib/memmem.h: New file.
49440 * lib/memmem.c: New file, taken from glibc.
49442 2004-10-04 Simon Josefsson <jas@extundo.com>
49444 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
49445 '#ifdef USE_UNLOCKED_IO'.
49447 2004-10-04 Simon Josefsson <jas@extundo.com>
49449 * config/srclist.txt: Add memmem from glibc.
49451 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
49453 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
49455 * modules/argmatch, modules/argp, modules/closeout, modules/error,
49456 modules/exclude, modules/getdate, modules/getline,
49457 modules/getndelim2, modules/getpass, modules/getpass-gnu,
49458 modules/getusershell, modules/linebuffer, modules/md5,
49459 modules/mountlist, modules/posixtm, modules/readtokens,
49460 modules/readutmp, modules/regex, modules/sha1,
49461 modules/version-etc, modules/yesno:
49462 Remove dependency on unlocked-io.
49464 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
49466 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
49468 * m4/unlocked-io.m4: Add copyright notice.
49469 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
49471 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
49473 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
49474 * lib/xmalloc.c (xmemdup): Likewise.
49475 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
49476 XFREE): Remove these long-obsolescent macros.
49477 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
49478 * lib/xstrdup.c: Remove.
49480 * lib/regex.c (re_comp): Cast gettext return value to char *,
49481 Problem reported by Martin Neitzel via Mark D. Baushke.
49483 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
49485 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
49486 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
49487 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
49488 regex.c, sha1.c, version-etc.c, yesno.c:
49489 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
49490 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
49491 the includer's responsibility.
49493 Sync from coreutils.
49495 * lib/modechange.c (mode_compile): Don't decrement a pointer that
49496 points to the start of a string, as the C Standard says the
49497 resulting behavior is undefined.
49499 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
49500 simple -> simple_backups, numbered_existing ->
49501 numbered_existing_backups, numbered -> numbered_backups
49502 to avoid shadowing problems. All uses changed.
49503 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
49504 * lib/backupfile.c (check_extension, numbered_backup):
49505 Rename locals to avoid shadowing 'basename'.
49506 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
49509 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
49510 * lib/.cvsignore: Add getopt.h.
49512 2004-10-04 Bruno Haible <bruno@clisp.org>
49514 * modules/README: New file.
49515 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
49518 2004-10-02 Jim Meyering <jim@meyering.net>
49520 * lib/dirfd.h, getpagesize.h: Add copyright notice.
49522 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
49524 * modules/strsep: New file.
49526 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
49528 * m4/strsep.m4: New file.
49530 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
49532 * lib/strsep.h: New file.
49533 * lib/strsep.c: New file.
49535 2004-10-01 Simon Josefsson <jas@extundo.com>
49537 * lib/snprintf.c (snprintf): Handle size==0.
49539 2004-10-01 Simon Josefsson <jas@extundo.com>
49540 Bruno Haible <bruno@clisp.org>
49542 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
49543 (snprintf): Declare 'args'.
49545 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
49547 * lib/snprintf.c: Remove comments as to why each header is needed.
49549 2004-10-01 Bruno Haible <bruno@clisp.org>
49551 * MODULES.html.sh: Add strsep.
49553 2004-09-30 Simon Josefsson <jas@extundo.com>
49555 * modules/snprintf: New file.
49557 2004-09-30 Simon Josefsson <jas@extundo.com>
49559 * m4/snprintf.m4: New file.
49561 2004-09-30 Simon Josefsson <jas@extundo.com>
49563 * lib/snprintf.h, lib/snprintf.c: New files.
49565 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
49567 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
49568 (hol_entry_help): Never translate an empty string.
49569 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
49570 * lib/argp.h (OPTION_NO_TRANS): New option.
49572 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
49574 * modules/argp (Maintainer): Replace Simon Josefsson
49575 by Sergey Poznyakoff.
49577 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
49579 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
49580 changes merged back into glibc.
49582 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
49584 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
49586 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
49588 * lib/xvasprintf.c: Include xalloc.h.
49589 (xvasprintf): Use xalloc_die, not xmalloc_die.
49591 2004-09-29 Bruno Haible <bruno@clisp.org>
49593 * modules/alloca-opt: New file, derived from modules/alloca.
49594 * modules/allocsa: Depend on alloca-opt instead of alloca.
49595 * modules/setenv: Likewise.
49596 * modules/vasnprintf: Likewise.
49597 * MODULES.html.sh: Add alloca-opt.
49599 2004-09-28 Simon Josefsson <jas@extundo.com>
49601 * gnulib-tool: New parameter --lgpl, to asseert that modules are
49602 LGPL, and to replace license template from GPL to LGPL.
49604 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
49606 * modules/dummy: Change license to LGPL.
49608 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
49610 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
49612 2004-09-24 Simon Josefsson <jas@extundo.com>
49614 * modules/minmax (License): Change from GPL to LGPL.
49616 2004-09-23 Simon Josefsson <jas@extundo.com>
49618 * gnulib-tool (--import): Typo.
49620 2004-09-23 Simon Josefsson <jas@extundo.com>
49622 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
49624 2004-09-22 Bruno Haible <bruno@clisp.org>
49626 * modules/*: Add 'License' field.
49627 * gnulib-tool: Accept --extract-license option.
49628 (func_get_license): New function.
49630 2004-09-21 Bruno Haible <bruno@clisp.org>
49632 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
49633 Reported by Simon Josefsson.
49635 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
49637 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
49638 gl_AC_TYPE_LONG_LONG.
49640 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
49642 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
49644 2004-09-18 Simon Josefsson <jas@extundo.com>
49645 and Paul Eggert <eggert@cs.ucla.edu>
49647 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
49648 calls with autoreconf. Define GL_LIB.
49650 2004-09-14 Karl Berry <karl@gnu.org>
49652 * config/srclist.txt: unsync setenv.c, sigh.
49654 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
49656 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
49657 Problem reported by Bruno Haible in:
49658 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
49660 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
49662 * config/srclist.txt: Comment out argp-pvh.c.
49664 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
49666 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
49667 in case some system header has #define'd it. Problem reported by
49668 Soeren D. Schulze in
49669 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
49671 2004-09-09 Karl Berry <karl@gnu.org>
49673 * regex.[ch]: delete from the root. These were supposed to be
49674 synced with emacs cvs, but this has not happened for about
49675 a year, and anyway nothing else uses emacs regex.[ch].
49676 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
49677 lib/regex[.ch] is untouched.
49679 2004-09-09 Bruno Haible <bruno@clisp.org>
49681 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
49683 2004-09-09 Bruno Haible <bruno@clisp.org>
49685 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
49687 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
49689 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
49691 * modules/xvasprintf: New file.
49692 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
49694 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
49696 * lib/xvasprintf.h: New file.
49697 * lib/xvasprintf.c: New file.
49698 * lib/xasprintf.c: New file.
49700 2004-09-08 Bruno Haible <bruno@clisp.org>
49702 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
49704 2004-09-08 Bruno Haible <bruno@clisp.org>
49706 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
49707 length is > INT_MAX.
49708 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
49711 2004-09-08 Bruno Haible <bruno@clisp.org>
49713 * lib/stdint_.h: New file, taken from GNU clisp.
49715 2004-09-08 Bruno Haible <bruno@clisp.org>
49716 Oskar Liljeblad <oskar@osk.mine.nu>
49718 * modules/stdint: New file.
49719 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
49721 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
49723 Import from coreutils.
49724 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
49725 strings on unbounded length. alloca's performance benefits aren't
49726 that important here.
49727 (V_STRDUP): Remove.
49728 (parse_with_separator): New function, with most of the internals
49729 of the old parse_user_spec. Allow user to omit both user and group,
49730 for compatibility with FreeBSD.
49731 Clone only the user name, not the entire spec.
49732 Do not set *uid, *gid unless entirely successful.
49733 Avoid memory leak in some failing cases.
49734 Fix regression for USER.GROUP reported by Dmitry V. Levin in
49735 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
49736 (parse_user_spec): Rewrite to use parse_with_separator.
49738 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
49740 * modules/userspec: Don't depend on alloca.
49742 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
49744 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
49746 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
49748 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
49749 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
49750 utimecmp, utimens, xnanosleep. Rename sha to sha1.
49752 2004-08-16 Simon Josefsson <jas@extundo.com>
49754 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
49755 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
49756 Add --dry-run for --import.
49757 Let user provided command line parameters override configure.ac
49760 2004-08-12 Simon Josefsson <jas@extundo.com>
49762 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
49763 as discussed with Paul Eggert in threads rooted at
49764 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
49766 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
49767 Before, the test was empty, and relied on ELIDE_CODE in source
49769 (gl_PREREQ_GETOPT): New macro.
49770 (gl_GETOPT): Use them.
49772 2004-08-12 Simon Josefsson <jas@extundo.com>
49774 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
49775 * lib/getopt_.h: Renamed from getopt.h.
49777 2004-08-12 Simon Josefsson <jas@extundo.com>
49779 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
49780 Change default library name from libfoo to libgnu.
49781 Now, if you have a configure.ac that says:
49784 gl_MODULES(error getopt etcetera)
49786 you can import all you need by running:
49787 ../gnulib/gnulib-tool --import
49789 * modules/getopt (Files): Rename getopt.h to getopt_.h.
49790 (Makefile.am): Rewrite, use logic from argz.
49791 (Include): Use <getopt.h> instead of "getopt.h".
49793 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
49795 * modules/argp (Files): Add m4/unlocked-io.m4.
49796 (Depends-on): Add extensions.
49798 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
49800 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
49801 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
49802 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
49803 Check for program_invocation_name, program_invocation_short_name,
49804 flockfile, funlockfile, features.h, _getopt_long_only_r.
49806 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
49808 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
49809 its complicated substitute.
49810 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
49811 and program_invocation_name.
49812 (__argp_basename) [!_LIBC]: Remove; the only use was
49813 replaced by its body.
49814 (__argp_short_program_name): Change condition from
49815 !defined __argp_short_program_name to
49816 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
49817 to match argp-namefrob.h.
49818 (__argp_failure): Don't assume strerror_r returns char *.
49819 * lib/argp-parse.c (N_): Define unconditionally.
49820 (argp_default_options): Fill out initializers with 0 to avoid
49823 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
49825 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
49828 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
49830 Merge from coreutils.
49832 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
49834 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
49835 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
49837 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
49839 Merge from coreutils.
49841 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
49842 wmemchr or wmemcpy. Problem reported by Robert Dahlem
49843 for Reliant Unix 5.43.
49845 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
49846 (union fooround): Use uintmax_t, not long int.
49847 The rest is a merge from libc:
49848 [defined _LIBC]: Include <shlib-compat.h>.
49849 (_obstack) [defined _LIBC]: Remove after 2.3.4.
49851 * lib/settime.c (settime): Recode to avoid warning with
49854 * lib/strverscmp.c: Convert to UTF-8.
49856 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
49858 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
49861 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
49863 * modules/xalloc-die: New file.
49864 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
49866 * modules/md5 (Files): Add m4/uint32_t.m4.
49867 * modules/sha1: Renamed from modules/sha.
49869 Rename lib/sha.h to lib/sha1.h.
49870 Rename lib/sha.c to lib/sha1.c.
49871 Rename m4/sha.m4 to m4/sha1.m4.
49872 (lib_SOURCES): Likewise.
49873 (configure.ac): Rename gl_SHA to gl_SHA1.
49874 (Include): sha.h -> sha1.h.
49876 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
49878 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
49879 * m4/sha1.m4: Renamed from sha.m4.
49880 (gl_SHA1): Renamed from gl_SHA. All uses changed.
49882 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
49884 * lib/obstack.h (obstack_empty_p):
49885 Don't assume that chunk->contents is suitably aligned.
49886 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
49887 Likewise. Problem reported by Benno in
49888 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
49890 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
49891 readable. This could be improved further but it'd take some work.
49893 2004-08-08 Simon Josefsson <jas@extundo.com>
49895 * modules/xgethostname (Depends-on): Remove exit and error (not
49898 * modules/getpass-gnu: Add getpass.h.
49899 (Depends-on): Add stdbool.
49900 * modules/getpass: Add getpass.h.
49902 2004-08-08 Simon Josefsson <jas@extundo.com>
49904 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
49905 Check getpass declaration.
49907 2004-08-08 Simon Josefsson <jas@extundo.com>
49909 * lib/xgethostname.c: Don't include error.h (not used).
49911 * lib/getpass.h: Add.
49912 * lib/getpass.c: Include getpass.h first.
49914 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
49916 * lib/xalloc-die.c: New file.
49917 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
49919 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
49920 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
49922 (_, N_, xalloc_die): Move to xalloc-die.c.
49923 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
49924 so that we needn't mess with xalloc_msg_memory_exhausted.
49926 * lib/sha1.h: Renamed from sha.h.
49927 (SHA1_H): Renamed from _SHA_H.
49928 (sha1_ctx): Renamed from sha_ctx.
49929 (sha1_init_ctx): Renamed from sha_init_ctx.
49930 (sha1_process_block): Renamed from sha_process_block.
49931 (sha1_process_bytes): Renamed from sha_process_bytes.
49932 (sha1_finish_ctx): Renamed from sha_finish_ctx.
49933 (sha1_read_ctx): Renamed from sha_read_ctx.
49934 (sha1_stream): Renamed from sha_stream.
49935 (sha1_buffer): Renamed from sha_buffer.
49936 * lib/sha1.c: Likewise; renamed from sha.c.
49937 Do not include <sys/types.h>.
49938 Include <stddef.h> rather than <stdlib.h>.
49940 2004-08-08 Bruno Haible <bruno@clisp.org>
49942 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
49943 FILESYSTEM_PREFIX_LEN.
49944 * lib/progreloc.c: Likewise.
49945 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
49947 2004-08-06 Simon Josefsson <jas@extundo.com>
49949 * modules/progname (Depends-on): Don't depend on stdbool.
49951 2004-08-06 Simon Josefsson <jas@extundo.com>
49953 * modules/getsubopt: New file.
49954 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49957 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
49959 More merge from coreutils.
49961 * m4/utimens.m4, m4/utimecmp.m4: New files.
49962 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
49963 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
49964 prereq.m4, sha.m4: Import changes from coreutils.
49966 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
49968 More merge from coreutils.
49969 * modules/raise, modules/readtokens0, modules/utimens:
49970 * modules/utimecmp, module/xnanosleep: New files.
49971 * modules/strftime: Add lib/strftime.h.
49972 Change include from <time.h> to "strftime.h".
49973 * modules/yesno: Add lib/yesno.h.
49974 * modules/backupfile: Remove lib/addext.c.
49975 * modules/euidaccess: Add stat-macros.h.
49976 * modules/canonicalize, modules/euidaccess,
49977 modules/filemode, modules/lchown, modules/makepath,
49978 modules/rmdir, modules/stat: Likewise.
49980 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
49983 * lib/argp-help.c (make_hol, hol_append): Don't assume that
49984 SIZE_MAX is a valid preprocessor constant.
49985 (__argp_basename): Change from "#ifndef _LIBC"
49986 to "#ifndef __argp_short_program_name", so that
49987 we don't compile these functions for tar.
49989 More merges from coreutils.
49990 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
49991 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
49992 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
49993 * lib/addext.c: Remove; no longer needed.
49994 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
49995 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
49996 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
49997 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
49998 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
49999 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
50000 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
50001 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
50002 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
50003 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50004 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
50005 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
50006 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
50007 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
50008 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
50009 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
50010 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
50011 Import changes from coreutils.
50013 2004-08-05 Simon Josefsson <jas@extundo.com>
50015 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
50017 2004-08-05 Simon Josefsson <jas@extundo.com>
50019 * m4/getsubopt.m4: New file.
50021 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
50023 Merge from coreutils.
50025 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
50026 * m4/getcwd-path-max.m4: New files.
50028 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
50029 FILESYSTEM_PREFIX_LEN ->
50030 FILE_SYSTEM_PREFIX_LEN.
50031 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
50032 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
50033 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
50034 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
50036 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
50037 prerequisite modules now handle the DOS stuff.
50038 Don't check for unistd.h.
50040 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
50042 Merge from coreutils.
50044 * lib/.gdb-history: Remove; this doesn't belong here.
50046 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
50047 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
50048 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
50049 * lib/getcwd.c: New files.
50051 * lib/dirname.h: Include <stdbool.h>.
50052 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
50053 for consistency with POSIX terminology. All uses changed.
50054 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
50055 (strip_trailing_slashes): Use bool for booleans.
50056 * lib/stripslash.c (strip_trailing_slashes): Likewise.
50058 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
50059 sometimes returns a positive errno value even when it succeeds.
50060 (print_errno_message) [!LIBC]: Fall back on strerror if
50061 __strerror_r fails.
50063 * lib/path-concat.c (mempcpy): Don't define if a system header defines
50064 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
50065 (longest_relative_suffix): New function.
50066 (path_concat): Use it. Assume first argument is not NULL.
50067 Port to DOS. Omit redundant separators.
50068 Report an error instead of returning NULL.
50069 Use mempcpy instead of memcpy.
50070 (xpath_concat): Remove: not declared or used.
50072 * lib/same.h: Include <stdbool.h>
50073 (same_name): Return bool, not int.
50074 * lib/same.c (same_name): Likewise.
50075 (errno): Don't declare; we assume C89 or better now.
50077 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
50078 if not already defined.
50080 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
50081 * lib/dup-safer.c (errno): Likewise.
50083 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
50085 Merge from coreutils.
50086 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
50087 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
50088 * modules/path-concat: Don't depend on strdup.
50090 2004-08-03 Simon Josefsson <jas@extundo.com>
50092 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
50093 * lib/progname.h: Don't include stdbool.h.
50095 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
50097 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
50098 * MODULES.html.sh (func_all_modules): Remove fatal.
50100 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
50102 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
50104 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
50106 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
50109 2004-08-02 Simon Josefsson <jas@extundo.com>
50111 * lib/getsubopt.h: New file, with comments from Bruno Haible.
50112 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
50113 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
50115 2004-08-01 Simon Josefsson <jas@extundo.com>
50117 * lib/xgetdomainname.c: Include stdlib.h, for free().
50119 2004-07-19 Bruno Haible <bruno@clisp.org>
50121 * MODULES.html.sh (func_all_modules): Add dummy.
50123 2004-07-16 Simon Josefsson <jas@extundo.com>
50125 * modules/dummy: New file.
50127 2004-07-16 Simon Josefsson <jas@extundo.com>
50129 * lib/dummy.c: New file.
50131 2004-07-16 Bruno Haible <bruno@clisp.org>
50133 * lib/backupfile.h: Add extern "C" for C++.
50134 * lib/closeout.h: Likewise.
50135 * lib/copy-file.h: Likewise.
50136 * lib/findprog.h: Likewise.
50137 * lib/full-write.h: Likewise.
50138 * lib/pathname.h: Likewise.
50139 * lib/progname.h: Likewise.
50140 * lib/stpcpy.h: Likewise.
50141 * lib/stpncpy.h: Likewise.
50142 * lib/strcase.h: Likewise.
50143 * lib/strstr.h: Likewise.
50144 * lib/xalloc.h: Likewise.
50146 * lib/mbswidth.h: Add extern "C" for C++.
50147 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
50149 2004-07-13 Robert Millan <robertmh@gnu.org>
50151 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
50153 2004-07-09 Simon Josefsson <jas@extundo.com>
50155 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
50156 failed without this.)
50158 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
50160 * modules/chown (Files): Add lib/fchown-stub.c, since
50161 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
50163 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
50165 * lib/fchown-stub.c: New file.
50167 2004-06-24 Jim Meyering <jim@meyering.net>
50169 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
50171 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
50173 * modules/argz: Omit "#include".
50175 * MODULES.html.sh (func_all_modules): Add calloc, to match
50176 2004-06-01 addition of calloc module.
50178 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
50180 * m4/argz.m4: New file, which is autoupdated from libtool.
50182 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
50184 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
50187 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
50189 * config/srclist-update: Don't insist on "USA." before the
50190 close-comment, as libtool omits the period and puts the */ on a
50192 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
50193 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
50195 2004-06-22 Gary V. Vaughan <gary@gnu.org>
50197 * modules/argz: New file.
50198 * MODULES.html.sh (func_all_modules): Add argz.
50200 2004-06-12 Jim Meyering <jim@meyering.net>
50201 and Paul Eggert <eggert@cs.ucla.edu>
50203 * modules/hash (Files): Add lib/xalloc.h.
50204 * modules/pipe (Depends-on): Add wait-process.
50205 * modules/stat (Depends-on): Add xalloc.
50206 * modules/userspec (Files): Add lib/userspec.h.
50209 Upgrade from gettext-0.13.
50210 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
50211 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
50212 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
50214 2004-06-10 Jim Meyering <jim@meyering.net>
50216 * lib/calloc.c: New file.
50218 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
50220 * lib/getdate.y (yylex): Allow space between sign and number.
50221 Problem reported by Dan Jacobson.
50223 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
50225 Merge from coreutils CVS.
50227 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
50228 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
50229 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
50230 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
50231 xstrtol.m4: Fix copyright date and/or serial number.
50233 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
50234 See if we need an fchown replacement.
50235 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
50236 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
50237 and use the replacement function if we detect either defect.
50239 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
50242 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
50243 and Jim Meyering <jim@meyering.net>
50245 Merge from coreutils CVS.
50247 * lib/stat-macros.h: New file, with contents from file-type.h
50248 and coreutils' system.h.
50249 * lib/file-type.c: Include "stat-macros.h".
50250 * lib/file-type.h (file_type): Move all macro definitions to new file,
50253 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
50254 Wrap old code with this conditional.
50255 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
50256 function that does not dereference symlinks.
50257 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
50259 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
50260 dependency problems.
50261 (xreadlink): Accept new arg SIZE, for efficiency.
50262 All decls and uses changed.
50263 * lib/xreadlink.h: Include <stddef.h>, for size_t.
50265 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
50266 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
50268 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
50271 2004-06-01 Jim Meyering <jim@meyering.net>
50273 * m4/calloc.m4: New file.
50275 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
50277 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
50278 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
50279 Also, fix a typo in a diagnostic.
50281 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
50283 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
50284 or AC_FUNC_REALLOC.
50286 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
50288 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
50289 macros to be defined.
50290 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
50291 the allocator returns NULL because the requested size is zero.
50293 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
50295 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
50296 var. Add comment explaining why libc still defines it. This
50297 merges the following patch from glibc:
50298 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
50300 2004-05-20 Andreas Schwab <schwab@suse.de>
50302 * m4/free.m4: Replace free if it not known to work, not the other
50305 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
50307 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
50308 present in glibc since revision 1.1 of this file.
50309 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
50310 obstack_alignment_mask, obstack_alloc, obstack_base,
50311 obstack_blank, obstack_blank_fast, obstack_chunk_size,
50312 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
50313 obstack_grow0, obstack_init, obstack_int_grow,
50314 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
50315 obstack_next_free, obstack_object_size, obstack_ptr_grow,
50316 obstack_ptr_grow_fast, obstack_room): Remove declarations of
50317 nonexistent functions.
50319 2004-05-18 Karl Berry <karl@gnu.org>
50321 * config/srclist.txt: break link for vasnprintf.c.
50323 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
50325 Port obstack to the AS/400, where pointers are 16 bytes wide and
50326 you cannot cast an integer to a valid pointer. This patch is
50327 currently waiting to be integrated into glibc; see
50328 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
50330 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
50331 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
50332 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
50333 (struct obstack): temp member is now a union of a pointer and
50334 an integer, instead of an integer. All integer uses changed.
50335 This does not affect the physical layout of struct obstack,
50336 except on hosts (like the AS/400) where the size or alignment of
50337 void * is greater than that of ptrdiff_t.
50338 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
50339 __STDC__)]: Store temporary in pointer member of union, not
50341 * lib/obstack.c: Include <stddef.h>, for offsetof.
50342 (struct fooalign): Remove; it doesn't need a name.
50343 (union fooround): Change double to long double, and add void *.
50344 (DEFAULT_ALIGNMENT): Use offsetof to compute.
50345 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
50346 not a macro. Hence the values are always int; so remove all
50347 casts-to-int in uses.
50349 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
50351 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
50352 we can get this patch merged into glibc.
50354 2004-05-17 Derek R. Price <derek@ximbiot.com>
50355 Paul Eggert <eggert@cs.ucla.edu>
50357 * m4/argp: Depend on alloca.
50359 2004-05-17 Derek R. Price <derek@ximbiot.com>
50360 Paul Eggert <eggert@cs.ucla.edu>
50362 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
50365 2004-05-17 Bruno Haible <bruno@clisp.org>
50367 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
50368 precision that consists of a '.' followed by an empty digit string.
50369 Patch by Tor Lillqvist <tml@iki.fi>.
50371 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
50373 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
50374 for backward compatibility with older code. We need our own
50375 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
50376 it under some other name, and our alloca.h will define it.
50378 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
50379 Derek Price <derek@ximbiot.com>
50381 * lib/alloca.c: Include <alloca.h>, to get our interface.
50382 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
50383 include <alloca.h> first. Use C89 prototype for alloca; this
50384 requires including <stddef.h> for size_t. Use extern "C" if C++.
50385 Use #elif for simplicity, since we can assume C89 now.
50386 Don't try to source the system alloca.h since it will not be found
50387 and to prevent recursively including its replacement.
50388 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
50389 * lib/regex.c: Likewise.
50391 2004-05-16 Derek Price <derek@ximbiot.com>
50392 Paul Eggert <eggert@cs.ucla.edu>
50394 getline cleanup. This changes the getndelim2 API: both order of
50395 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
50398 * lib/getline.c: Don't include stddef.h or stdio.h, since our
50399 interface does that.
50400 (getline): Always use getdelim, so that we don't have two
50401 copies of this code.
50402 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
50404 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
50405 (GETNDELIM2_MAXIMUM): New macro.
50406 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
50407 instead of the old practice of delim2==0. All callers changed.
50408 Return -1 on overflow, instead of returning junk.
50409 Do not set *linesize unless allocation succeeds.
50410 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
50411 that we include sys/types.h.
50412 * lib/getnline.h: Likewise.
50413 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
50414 (getndelim2): Reorder arguments.
50415 * lib/getnline.c (getnline, getndelim):
50416 Don't discard the NMAX argument.
50417 (getnline): Invoke getndelim, to avoid code duplication.
50418 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
50419 of (size_t) -1 by callers of the getnline family.
50421 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
50423 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
50424 Check for gettimeofday.
50425 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
50426 Check for settimeofday, stime.
50428 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
50430 * lib/nanosleep.c (suspended): Change its type from int to
50431 sig_atomic_t volatile.
50432 (first_call): Make it private to rpl_nanosleep, and have it
50433 be zero initially as that's a bit faster.
50434 (my_usleep): Round up fractional times instead of truncating them,
50435 as this is the usual meaning for 'sleep'.
50437 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
50439 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
50440 (ENOSYS): Define if not defined.
50441 (settime): Fall back on stime if it exists and settimeofday fails.
50442 But don't bother with fallbacks if a method fails with errno == EPERM.
50444 2004-05-11 Jim Meyering <jim@meyering.net>
50446 Prior to this change, the save_cwd caller required read access to the
50447 current directory on most systems (ones with the fchdir function).
50449 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
50450 fails, try write-only, and finally, resort to using xgetcwd.
50452 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
50454 * lib/obstack.c, obstack.h: Import changes from libc.
50456 2004-04-28 Bruno Haible <bruno@clisp.org>
50458 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
50459 also implicitly appends .exe to executables.
50460 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
50461 accepts Windows pathnames.
50462 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
50463 Treat Cygwin like Windows, since it now accepts Windows pathnames.
50464 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
50465 Treat Cygwin like Windows, since it now accepts Windows pathnames.
50466 Reported by Derek Robert Price <derek@ximbiot.com>.
50468 2004-04-21 Karl Berry <karl@gnu.org>
50470 * config/srclist.txt (localcharset.c): break sync.
50472 2004-04-20 Paul Eggert <eggert@twinsun.com>
50474 * m4/host-os.m4: Add a copyright notice.
50476 2004-04-20 Jim Meyering <jim@meyering.net>
50478 Change UTILS_ to gl_ in AC_DEFINE'd names.
50479 Change utils_- and jm_-prefixed variables, too.
50480 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
50481 UTILS_FUNC_MKDIR_TRAILING_SLASH.
50482 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
50484 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
50485 Don't emit trailing blanks.
50486 Also rename jm_-prefixed variables to have gl_ prefix.
50488 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
50489 Also rename jm_-prefixed variables to have gl_ prefix.
50491 * m4/jm-macros.m4: Reflect the renamings.
50492 * m4/prereq.m4: Likewise.
50494 2004-04-20 Jim Meyering <jim@meyering.net>
50496 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
50499 2004-04-20 Jim Meyering <jim@meyering.net>
50500 Bruno Haible <bruno@clisp.org>
50502 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
50503 memory when realloc fails.
50505 2004-04-19 Jim Meyering <jim@meyering.net>
50507 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
50508 now that readutmp.c may call `free (0)'.
50510 2004-04-19 Bruno Haible <bruno@clisp.org>
50512 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
50513 * m4/inttypes_h.m4: Likewise.
50514 * m4/stdint_h.m4: Likewise.
50515 * m4/intmax_t.m4: Likewise.
50516 * m4/uintmax_t.m4: Likewise.
50518 2004-04-18 Jim Meyering <jim@meyering.net>
50520 * m4/prereq.m4: Don't forbid jm_ prefix.
50522 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
50523 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
50524 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
50525 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
50526 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
50527 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
50528 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
50529 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
50530 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
50531 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
50532 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
50533 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
50534 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
50535 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
50536 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
50537 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
50538 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
50539 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
50540 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
50542 2004-04-18 Jim Meyering <jim@meyering.net>
50544 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
50545 failure, don't leak memory and do call END_UTMP_ENT.
50547 2004-04-16 Jim Meyering <jim@meyering.net>
50549 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
50550 coreutils' stat program.
50551 (gl_PREREQ): Don't require jm_PREREQ_STAT.
50553 2004-04-11 Paul Eggert <eggert@twinsun.com>
50555 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
50557 (CHAR_BIT): Remove, since we assume C89.
50558 Include <stdint.h> if available, as per current Autoconf CVS advice.
50560 2004-03-31 Jim Meyering <jim@meyering.net>
50562 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
50563 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
50564 * m4/xalloc.m4: Likewise.
50566 2004-03-30 Paul Eggert <eggert@twinsun.com>
50568 Merge from coreutils.
50570 * m4/inttostr.m4: New file.
50571 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
50572 Require AM_STDBOOL_H and gl_TIMESPEC instead.
50573 Require gl_CLOCK_TIME.
50574 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
50576 2004-03-30 Paul Eggert <eggert@twinsun.com>
50578 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
50579 not bool, to be more consistent with Unix conventions.
50580 Suggested by Bruno Haible.
50582 Merge from coreutils.
50584 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
50585 * lib/umaxtostr.c: New files.
50587 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
50588 the usual <time.h> dance.
50589 (get_date): Change signature to support fractional time stamps.
50590 All callers changed.
50591 * lib/getdate.y: Include "getdate.h" first, as we can now
50592 assume C89 and don't need to worry about 'const'.
50593 Similarly, include "unlocked-io.h" near start, not in middle.
50594 Include <limits.h>.
50595 (textint.value): Use long int rather than int.
50596 (textint.digits): Use size_t rather than int.
50597 (BILLION, LOG10_BILLION): New constants.
50598 (parser_control): New member rel_ns. Members day_ordinal,
50599 time_zone, month, day, hour, minutes, rel_year, rel_month,
50600 rel_day, rel_hour, rel_minutes, rel_seconds
50601 are now long int, not int. Member seconds is now struct timespec,
50602 not int. New member timespec_seen. Members dates_seen, days_seen,
50603 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
50605 (%union.intval): Now long int, not int.
50606 New member timespec.
50607 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
50608 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
50609 (spec): Now is a timespec or an item list.
50610 (timespec, items): New nonterminals.
50611 (time, rel, relunit, number, get_date):
50612 Add support for fractional seconds.
50613 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
50614 (gmtime, localtime, mktime): Remove decls; not needed with C89.
50615 (to_hour): First arg is now long int, not int.
50616 (to_year): Returns long int, not int.
50617 Don't treat year -70 like 70.
50618 (tm_diff): Returns long int, not int.
50619 (lookup_word): Use bool instead of int when appropriate.
50620 (yylex): Use size_t for count, not int.
50621 Detect overflow when parsing large integer constants.
50622 Add support for fractions.
50623 (get_date): Make pointers 'const' if possible.
50624 Use more-portable code to detect integer overflow.
50625 (main) [TEST]: Adjust to above changes. Test for localtime failure.
50626 Don't use ctime; it's not reliable if the year has >4 digits.
50628 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
50629 This is for compatibility with BSD.
50631 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
50632 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
50633 From coreutils' system.h.
50635 * lib/userspec.c: Don't include "posixver.h".
50636 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
50637 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
50638 compatible extension. Simplify code by removing a boolean int
50639 that was always nonzero if a string was nonnull.
50641 2004-03-30 Jim Meyering <jim@meyering.net>
50643 Merge from coreutils.
50645 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
50646 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
50647 on some systems one must include <grp.h> before it.
50648 Reported by Christian Krackowizer.
50650 2004-03-30 Jim Meyering <jim@meyering.net>
50652 Merge from coreutils.
50654 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
50656 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
50657 an empty input stream.
50659 * lib/readtokens.c: Include <stdbool.h>.
50660 (readtoken): Use `size_t' rather than int/long.
50661 All callers adjusted.
50662 Use `bool' rather than `int' where appropriate.
50663 Use memset rather than an explicit loop.
50664 Use x2nrealloc rather than xrealloc.
50665 Allow the use of `\0' as a delimiter.
50666 (readtokens): Likewise.
50667 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
50669 2004-03-30 Jim Meyering <jim@meyering.net>
50671 * m4/realloc.m4: Remove file, since now it does no more than
50672 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
50673 the `configure.ac' section of module/realloc.
50674 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
50676 2004-03-30 Bruno Haible <bruno@clisp.org>
50678 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
50681 2004-03-29 Paul Eggert <eggert@twinsun.com>
50683 Merge changes to getloadavg.c from coreutils and Emacs.
50685 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
50686 Define to an expression, not to the empty string.
50687 Include cloexec.h and xalloc.h.
50688 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
50689 Use set_cloexec_flag rather than rolling our own.
50690 * lib/cloexec.c, lib/cloexec.h: New files.
50692 2004-03-29 Paul Eggert <eggert@twinsun.com>
50694 * m4/cloexec.m4: New file.
50696 2004-03-18 Paul Eggert <eggert@twinsun.com>
50698 * lib/getopt.h: Sync with libc CVS.
50700 2004-03-18 Paul Eggert <eggert@twinsun.com>
50701 Bruno Haible <bruno@clisp.org>
50703 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
50706 2004-03-18 Paul Eggert <eggert@twinsun.com>
50707 Bruno Haible <bruno@clisp.org>
50709 * lib/mbswidth.h: Include <wchar.h> only if
50710 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
50712 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
50714 2004-03-09 Paul Eggert <eggert@twinsun.com>
50716 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
50717 Sync with libc CVS.
50718 * lib/getopt_int.h: New file, also synced from libc.
50720 2004-03-09 Paul Eggert <eggert@twinsun.com>
50722 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
50723 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
50724 Bring back getopt.c, getopt.h, getopt1.c.
50726 2004-03-07 Paul Eggert <eggert@twinsun.com>
50728 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
50729 All uses changed. Check for sa_sigaction member; this fixes
50730 a bug first reported by Jason Andrade in
50731 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
50733 2004-03-07 Paul Eggert <eggert@twinsun.com>
50735 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
50736 '#if' expressions. Unlike the code it replaces, it does not
50737 depend on (defined _SC_PAGESIZE). However, it does depend on
50738 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
50739 first reported by Jason Andrade in
50740 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
50742 2004-02-25 Simon Josefsson <jas@extundo.com>
50744 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
50746 2004-02-25 Simon Josefsson <jas@extundo.com>
50748 * lib/strdup.h: New file.
50749 * lib/strdup.c: Include it.
50750 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
50751 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
50753 2004-02-23 Karl Berry <karl@gnu.org>
50755 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
50756 (from fencepost.gnu.org:/gd/gnuorg).
50758 2004-02-23 Karl Berry <karl@gnu.org>
50760 * config/srclistvars.sh (GNUORG) [karl]: redefine.
50761 * config/srclist.txt: add maintain/standards documents.
50763 2004-02-18 Bruno Haible <bruno@clisp.org>
50765 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
50766 Reported by Derek Robert Price <derek@ximbiot.com>.
50768 2004-02-16 Karl Berry <karl@gnu.org>
50770 * config/mkinstalldirs, install-sh: update from automake.
50772 2004-02-06 Karl Berry <karl@gnu.org>
50774 * m4/po.m4: update from gettext 0.14.1.
50776 2004-02-06 Karl Berry <karl@gnu.org>
50778 * lib/config.charset: update from gettext 0.14.1.
50780 2004-02-05 Paul Eggert <eggert@twinsun.com>
50782 Add comments and code, prompted by suggestions from Bruno Haible
50784 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
50785 describing the enum quoting_style values.
50786 * lib/quotearg.c (quotearg_alloc): New function.
50787 (quotearg_buffer_restyled): Treat lone { and } as special.
50788 Treat = as special. Work around bug with older shells
50789 that "see" a '\' that is really the 2nd byte of a multibyte char.
50790 Quote empty string with shell_quoting_style.
50792 2004-02-03 Bruno Haible <bruno@clisp.org>
50794 * m4/pipe.m4: New file, from GNU gettext.
50796 2004-02-03 Bruno Haible <bruno@clisp.org>
50798 * lib/pipe.h: New file, from GNU gettext.
50799 * lib/pipe.c: New file, from GNU gettext.
50801 2004-01-27 Bruno Haible <bruno@clisp.org>
50803 * m4/execute.m4: New file, from GNU gettext.
50805 2004-01-27 Bruno Haible <bruno@clisp.org>
50807 * lib/execute.h: New file, from GNU gettext.
50808 * lib/execute.c: New file, from GNU gettext.
50809 * lib/w32spawn.h: New file, from GNU gettext.
50811 2004-01-24 Paul Eggert <eggert@twinsun.com>
50813 Merge from diffutils.
50815 * lib/file-type.c (file_type): Add typed memory objects.
50816 * lib/file-type.h (S_TYPEISTMO): New macro.
50818 * lib/c-stack.h (c_stack_action): Remove argv argument.
50819 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
50820 (die): Don't calculate message unless segv_action returns.
50821 (get_stack_location, min_address_from_argv, max_address_from_argv,
50822 volatile stack_base, volatile_stack_size): Remove.
50823 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
50824 that every segmentation violation is a stack overflow. (Ouch!)
50825 See Debian bug 136249 (still outstanding) for more info about why
50826 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
50828 2004-01-24 Paul Eggert <eggert@twinsun.com>
50830 Exit-status fix from coreutils.
50832 Use exit_failure consistently in place of EXIT_FAILURE,
50833 so that program exit statuses are consistent on failure.
50835 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
50836 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
50837 * lib/argmatch.h: Comment fix to match the above.
50838 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
50839 Now a macro referring to exit_failure, instead of a separate
50840 variable. Include "exitfail.h" to get it.
50841 * lib/xstrtol.h: Include "exitfail.h".
50842 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
50844 * lib/long-options.c (parse_long_options): Use prototype
50845 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
50848 2004-01-21 Jim Meyering <jim@meyering.net>
50850 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
50851 so as not to conflict with a different-sized __mktime_internal
50852 function in GNU libc.
50853 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
50854 Problem building statically-linked `ls' reported by Michael Brunnbauer.
50856 2004-01-20 Karl Berry <karl@gnu.org>
50858 * config/config.guess: update from config.
50860 * config/srclistvars.sh: GNUWWWLICENSES for karl.
50862 2004-01-20 Bruno Haible <bruno@clisp.org>
50864 Safer stack allocation.
50865 * lib/setenv.c: Include allocsa.h.
50866 (alloca): Remove fallback definition.
50867 (freea): Remove macro.
50868 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
50871 2004-01-20 Bruno Haible <bruno@clisp.org>
50873 * m4/eealloc.m4: New file, from GNU gettext.
50875 2004-01-20 Bruno Haible <bruno@clisp.org>
50877 * m4/allocsa.m4: New file, from GNU gettext.
50879 2004-01-20 Bruno Haible <bruno@clisp.org>
50881 * lib/xallocsa.h: New file, from GNU gettext.
50882 * lib/xallocsa.c: New file, from GNU gettext.
50884 2004-01-20 Bruno Haible <bruno@clisp.org>
50886 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
50888 2004-01-20 Bruno Haible <bruno@clisp.org>
50890 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
50891 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
50894 2004-01-20 Bruno Haible <bruno@clisp.org>
50896 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
50899 2004-01-20 Bruno Haible <bruno@clisp.org>
50901 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
50903 2004-01-20 Bruno Haible <bruno@clisp.org>
50905 * lib/eealloc.h: New file.
50907 2004-01-20 Bruno Haible <bruno@clisp.org>
50909 * lib/binary-io.h: Avoid warnings on Cygwin.
50911 2004-01-20 Bruno Haible <bruno@clisp.org>
50913 * lib/allocsa.h: New file, from GNU gettext.
50914 * lib/allocsa.c: New file, from GNU gettext.
50916 2004-01-18 Karl Berry <karl@gnu.org>
50918 * doc/gpl.texi, doc/lgpl.texi: new files.
50920 2004-01-18 Karl Berry <karl@gnu.org>
50922 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
50923 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
50925 2004-01-15 Paul Eggert <eggert@twinsun.com>
50927 Merge from coreutils.
50929 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
50930 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
50931 (gl_DEFAULT_POSIX2_VERSION): Move
50932 the documentation from 'configure' into 'config.hin',
50933 so that 'configure --help' isn't burdened by it and
50934 we don't have to worry about its formatting there.
50935 Reword the documentation so that it's more succinct
50936 and can be run together into a single paragraph.
50937 * m4/same.m4 (gl_SAME): Check for pathconf.
50939 2004-01-15 Paul Eggert <eggert@twinsun.com>
50941 Merge from coreutils.
50943 * lib/posixver.c: Include posixver.h.
50945 * lib/same.c: Include <stdbool.h>, <limits.h>.
50946 (_POSIX_NAME_MAX): Define if not defined.
50948 (same_name): If file names are silently truncated, report
50949 that the file names are the same if they are the same after
50950 the silent truncation.
50952 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
50953 conversion function.
50954 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
50955 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
50958 2004-01-15 Jim Meyering <jim@meyering.net>
50960 Merge from coreutils.
50962 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
50963 if no library is required.
50964 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
50965 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
50966 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
50967 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
50968 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
50969 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
50970 value, $ac_cv_search_crypt, if it's "none required".
50971 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
50972 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
50973 not gl_FUNC_GETLOADAVG.
50974 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
50975 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
50977 2004-01-15 Jim Meyering <jim@meyering.net>
50979 Merge from coreutils.
50981 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
50982 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
50983 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
50985 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
50986 optional configure-time default.
50988 * lib/version-etc.c (version_etc_copyright): Update copyright date.
50990 * lib/xreadlink.c (xreadlink): Correct outdated comment.
50992 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
50994 Merge from coreutils.
50996 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
50997 value, $ac_cv_search_nanosleep, if it's "none required".
50999 2004-01-14 Paul Eggert <eggert@twinsun.com>
51001 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
51002 with like-named macro in fnmatch.c.
51003 (EXT): Use an internal constant instead.
51005 Merge fnmatch patches from glibc.
51006 * lib/fnmatch.c (mbsinit): Remove define.
51007 Add libc_hidden_ver (__fnmatch, fnmatch).
51008 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
51009 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
51011 2004-01-14 Karl Berry <karl@gnu.org>
51013 * config/install-sh: update from automake.
51015 2004-01-13 Karl Berry <karl@gnu.org>
51017 * config/install-sh: update from automake.
51019 2004-01-09 Karl Berry <karl@gnu.org>
51021 * config/install-sh: update from automake.
51023 2004-01-05 Karl Berry <karl@gnu.org>
51025 * config/config.{sub,guess}: update from config.
51027 2003-12-31 Karl Berry <karl@gnu.org>
51029 * config/depcomp: update from automake.
51031 2003-12-14 Karl Berry <karl@gnu.org>
51033 * lib/config.charset: update from gettext-runtime.
51035 2003-12-03 Paul Eggert <eggert@twinsun.com>
51037 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
51038 Bug reported by Alfred M. Szmidt.
51040 2003-12-03 Bruno Haible <bruno@clisp.org>
51042 * m4/gettext.m4: Upgrade from gettext-0.13.
51043 * m4/po.m4: Upgrade from gettext-0.13.
51044 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
51045 * m4/intmax.m4: New file, from gettext-0.13.
51046 * m4/printf-posix.m4: New file, from gettext-0.13.
51048 2003-11-29 Karl Berry <karl@gnu.org>
51050 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
51052 2003-11-25 Paul Eggert <eggert@twinsun.com>
51053 Bruno Haible <bruno@clisp.org>
51055 * lib/printf-parse.h: Don't include sys/types.h.
51056 (ARG_NONE): New macro.
51057 (char_directive): Change type of *arg_index fields to size_t.
51058 * lib/printf-parse.c: Don't include sys/types.h.
51059 (SSIZE_MAX): Remove macro.
51060 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
51061 Remove unnecessary overflow check.
51062 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
51065 2003-11-25 Bruno Haible <bruno@clisp.org>
51067 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
51069 2003-11-25 Bruno Haible <bruno@clisp.org>
51071 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
51074 2003-11-24 Paul Eggert <eggert@twinsun.com>
51076 * modules/alloca: Remove dependency on xalloc.
51078 2003-11-24 Paul Eggert <eggert@twinsun.com>
51080 * lib/alloca.c: Remove dependency on xalloc module.
51081 (xalloc_die): Remove.
51082 (memory_full) [!defined emacs]: New macro.
51083 [!defined emacs]: Don't include xalloc.h.
51084 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
51085 address arithmetic overflows. Change datatypes a bit to avoid
51088 2003-11-22 Jim Meyering <jim@meyering.net>
51090 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
51093 2003-11-21 Karl Berry <karl@gnu.org>
51095 * config/config.{sub,guess}: update from config.
51097 2003-11-18 Karl Berry <karl@gnu.org>
51099 * config/config.{sub,guess}: update from config.
51101 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
51103 2003-11-17 Paul Eggert <eggert@twinsun.com>
51105 * README: Mention that S+T cannot overflow if S is the size of
51106 an existing object and T is sufficiently small.
51108 2003-11-17 Jim Meyering <jim@meyering.net>
51110 On systems without utime and without a utimes function capable of
51111 dealing with a NULL struct utimbuf* argument, this utime replacement
51112 could -- in unusual circumstances -- leak a file descriptor.
51113 * lib/utime.c: Include <unistd.h> and <errno.h>.
51114 (utime_null): Be sure to close `fd' and to preserve errno.
51115 Reported by Geoff Collyer via Arnold Robbins.
51117 2003-11-17 Bruno Haible <bruno@clisp.org>
51119 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
51120 (Depends-on): Add xsize.
51122 2003-11-17 Bruno Haible <bruno@clisp.org>
51124 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
51126 2003-11-17 Bruno Haible <bruno@clisp.org>
51128 * lib/vasnprintf.c (alloca): Remove fallback definition.
51129 (freea): Remove definition.
51130 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
51131 Reported by Paul Eggert.
51133 2003-11-16 Paul Eggert <eggert@twinsun.com>
51134 Bruno Haible <bruno@clisp.org>
51136 Protect against address arithmetic overflow.
51137 * lib/printf-args.h: Include stddef.h.
51138 (arguments): Change type of field 'count' to size_t.
51139 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
51140 'unsigned int' where appropriate.
51141 * lib/printf-parse.h: Include sys/types.h.
51142 (char_directive): Change type of *arg_index fields to ssize_t.
51143 (char_directives): Change type of fields 'count', max_*_length to
51145 * lib/printf-parse.c: Include sys/types.h and xsize.h.
51146 (SSIZE_MAX): Define fallback value.
51147 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
51148 instead of 'int' where appropriate. Check a_allocated, d_allocated
51149 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
51150 * lib/vasnprintf.c: Include xsize.h.
51151 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
51152 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
51153 overflow. Avoid wraparound when converting a width or precision from
51156 2003-11-16 Bruno Haible <bruno@clisp.org>
51158 Update from GNU gettext.
51159 * lib/printf-parse.c: Generalize to it can be compiled for wide
51161 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
51162 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
51163 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
51164 SNPRINTF): New macros.
51165 Don't include <alloca.h> if the file is used inside libintl.
51166 (local_wcslen): New function, for Solaris 2.5.1.
51167 (VASNPRINTF): Use it instead of wcslen.
51169 2003-11-16 Bruno Haible <bruno@clisp.org>
51171 * lib/xsize.h (xmax): New function.
51172 (xsum, xsum3, xsum4): Declare as "pure" functions.
51174 2003-11-12 Paul Eggert <eggert@twinsun.com>
51176 * modules/xalloc (Files): Undo latest change, since xalloc.h
51177 no longer needs SIZE_MAX or PTRDIFF_MAX.
51179 2003-11-12 Paul Eggert <eggert@twinsun.com>
51181 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
51184 2003-11-12 Paul Eggert <eggert@twinsun.com>
51186 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
51187 "return", to pacify some unknown compiler. Problem reported
51188 by Joerg Schilling.
51190 2003-11-12 Paul Eggert <eggert@twinsun.com>
51192 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
51193 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
51194 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
51195 heuristic is just as accurate as far as we know, and it removes a
51196 dependency on size_max.m4 and ptrdiff_max.m4.
51198 2003-11-11 Bruno Haible <bruno@clisp.org>
51200 * modules/xsize (Files): Add m4/size_max.m4.
51201 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
51203 2003-11-11 Bruno Haible <bruno@clisp.org>
51205 * m4/size_max.m4: New file.
51206 * m4/ptrdiff_max.m4: New file.
51207 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
51208 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
51209 (gl_XALLOC): Invoke it.
51211 2003-11-11 Bruno Haible <bruno@clisp.org>
51213 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
51214 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
51217 2003-11-10 Paul Eggert <eggert@twinsun.com>
51219 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
51220 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
51221 rejected some allocations of exactly SIZE_MAX - 2 bytes.
51223 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
51224 not (size_t) -1, since it's defined here.
51226 2003-11-09 Karl Berry <karl@gnu.org>
51228 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
51230 2003-11-06 Paul Eggert <eggert@twinsun.com>
51232 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
51233 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
51234 Reject sizes of exactly SIZE_MAX bytes.
51235 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
51236 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
51238 2003-11-05 Bruno Haible <bruno@clisp.org>
51240 * lib/xsize.h: Include limits.h, to avoid a possible collision with
51241 SIZE_MAX defined in <limits.h> on Solaris.
51243 2003-11-04 Jim Meyering <jim@meyering.net>
51245 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
51246 variable names, rather than @VAR@.
51247 * modules/poll: Likewise.
51249 2003-11-04 Bruno Haible <bruno@clisp.org>
51251 * modules/xsize: New file.
51252 * modules/linebreak: Depend on xsize.
51253 * MODULES.html.sh (func_all_modules): Add xsize.
51255 2003-11-04 Bruno Haible <bruno@clisp.org>
51257 * m4/xsize.m4: New file.
51259 2003-11-04 Bruno Haible <bruno@clisp.org>
51261 * lib/xsize.h: New file.
51262 * lib/linebreak.c: Include xsize.h.
51263 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
51264 argument for overflow.
51265 Suggested by Paul Eggert.
51267 2003-11-03 Karl Berry <karl@gnu.org>
51269 * config/config.{guess,sub}: update from config.
51271 2003-11-03 Jim Meyering <jim@meyering.net>
51273 * modules/userspec (lib_SOURCES): Add userspec.h.
51274 (Include): Add "userspec.h".
51275 Improve description.
51277 2003-11-03 Jim Meyering <jim@meyering.net>
51279 * lib/userspec.c: Include "userspec.h".
51280 * lib/userspec.h: New file.
51282 2003-11-03 Bruno Haible <bruno@clisp.org>
51284 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
51286 2003-11-03 Bruno Haible <bruno@clisp.org>
51288 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
51289 available, to avoid (extremely rare) race condition.
51290 Suggested by Paul Eggert.
51292 2003-11-02 Karl Berry <karl@gnu.org>
51294 * config/srclist.txt (vasprintf.c): sync broken, sigh.
51296 2003-10-31 Paul Eggert <eggert@twinsun.com>
51298 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
51299 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
51300 (read_filesystem_list): Set and use me_type_malloced.
51301 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
51302 whatever the type happens to be), for brevity and consistency.
51303 Check for size calculation overflow on Alphas running OSF/1.
51305 2003-10-31 Jim Meyering <jim@meyering.net>
51307 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
51309 * lib/linebuffer.c: Include <string.h> for declaration of memset.
51311 2003-10-30 Paul Eggert <eggert@twinsun.com>
51312 Bruno Haible <bruno@clisp.org>
51314 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
51315 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
51317 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
51319 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
51320 netbsd*-gnu*. Suggested by Robert Millan.
51322 2003-10-29 Paul Eggert <eggert@twinsun.com>
51324 * modules/group-member: Depend on stdbool.
51326 2003-10-29 Paul Eggert <eggert@twinsun.com>
51328 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
51330 2003-10-29 Paul Eggert <eggert@twinsun.com>
51332 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
51333 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
51334 after the 'gnu' in these cases. This fixes some bugs in the
51335 previous change, and is based on suggestions by Robert Millan.
51337 2003-10-29 Paul Eggert <eggert@twinsun.com>
51339 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
51340 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
51342 * lib/quotearg.c (quotearg_n_options): Use it.
51343 * lib/group-member.c: Include <stdbool.h>.
51344 (free_group_info): Arg is now const *; don't free arg.
51345 (get_group_info): Now returns bool and accepts struct group_info *,
51346 rather than returning a malloc'ed struct group_info *.
51347 All uses changed. Check for overflow in internal size calculation.
51349 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
51350 rather than xmalloc/xrealloc.
51351 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
51352 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
51353 conformance bug: the old code used a pointer after freeing the
51354 storage that it addressed.
51355 * lib/hash.c (hash_initialize): Simplify the code by using
51356 xalloc_oversized rather than doing it by hand.
51357 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
51358 the buffer preserved. Use free and xmalloc instead.
51359 * lib/quotearg.c (quotearg_n_options): Likewise.
51360 Use a simpler test for size overflow. Don't use xalloc_oversized
51361 because unsigned int might be wider than size_t (!); this suggests
51362 that we should switch from unsigned int to size_t for slot numbers.
51364 2003-10-28 Paul Eggert <eggert@twinsun.com>
51366 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
51367 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
51368 NetBSD kernels. Requested by Richard Stallman.
51370 2003-10-27 Paul Eggert <eggert@twinsun.com>
51372 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
51373 to allocate the returned structure. Do not allocate a subarray,
51374 as x2nrealloc will do that.
51375 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
51376 instead of xnrealloc.
51377 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
51379 2003-10-27 Bruno Haible <bruno@clisp.org>
51381 * lib/stdbool_.h: Better support for BeOS.
51383 2003-10-26 Paul Eggert <eggert@twinsun.com>
51385 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
51388 2003-10-26 Paul Eggert <eggert@twinsun.com>
51390 * lib/xalloc.h (xalloc_oversized): New static inline function, for
51391 callers that want to do their own size-overflow checking. Include
51392 <stdbool.h>, since xalloc_oversized returns bool.
51393 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
51394 to use xalloc_oversized.
51396 Add two functions x2realloc, x2nrealloc, for programs that grow
51397 arrays dynamically by doubling their sizes.
51398 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
51399 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
51402 Port to C99 semantics for 'inline' of external functions.
51403 Bug reported by Bruno Haible.
51404 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
51405 with the old contents of xnmalloc.
51406 (xnmalloc, xmalloc): Use it.
51407 (xnrealloc_inline): New static inline function,
51408 with the old contents of xnrealloc.
51409 (xnrealloc, xrealloc): Use it.
51411 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
51414 2003-10-26 Karl Berry <karl@gnu.org>
51416 * config/srclist.txt (COPYING.DOC): no longer available from
51417 /gd/gnuorg; don't know where the ultimate source is.
51419 2003-10-25 Paul Eggert <eggert@twinsun.com>
51421 Fix several address-calculation bugs in the hash modules,
51422 plus some minor code cleanup.
51424 * lib/hash.h: Include <stdbool.h>, for bool.
51425 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
51426 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
51427 hash_get_n_entries, hash_get_max_bucket_length,
51428 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
51429 hash_rehash): Use size_t rather than unsigned.
51430 * lib/hash.c (struct hash_table, hash_get_n_buckets,
51431 hash_get_n_buckets_used, hash_get_n_entries,
51432 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
51433 hash_get_entries, hash_do_for_each, hash_string, is_prime,
51434 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
51436 (SIZE_MAX): Define if not defined.
51437 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
51438 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
51440 Use const * when possible.
51441 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
51442 (check_tuning): Fix bug: if tuning parameters were very close to
51443 0 or 1, rounding errors could have caused subscript violations.
51444 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
51445 (hash_initialize): Add 'fail:' label
51446 to free table and return NULL, and use it to simplify code.
51447 Use calloc rather than clearing the storage ourself.
51448 (hash_initialize, hash_rehash): Check for arithmetic overflow in
51449 buffer size calculations.
51450 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
51451 Include <stddef.h>, for size_t.
51452 * lib/hash-pjw.c (hash_pjw): Likewise.
51453 Switch to method described by Bruno Haible.
51454 Include <limits.h>, for CHAR_BIT.
51455 (SIZE_BITS): New macro.
51457 2003-10-23 Paul Eggert <eggert@twinsun.com>
51459 * m4/getline.m4 (AM_FUNC_GETLINE):
51460 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
51461 hosts. Problem reported by Derek Robert Price in
51462 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
51463 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
51464 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
51466 2003-10-21 Paul Eggert <eggert@twinsun.com>
51468 * lib/getndelim2.c (getndelim2): When size calculation overflows,
51469 ceiling the allocation at NMAX bytes rather than silently
51470 discarding input bytes before NMAX is reached. This makes
51471 a difference only if NMAX exceeds SIZE_MAX / 2.
51473 * lib/obstack.c: Merge from glibc.
51474 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
51475 Add libc_hidden_def (_obstack_newchunk).
51476 (_obstack_free) [! defined _LIBC]: Remove.
51477 [defined _LIBC]: Make a strong alias from obstack_free, rather than
51478 a clone of the function body.
51479 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
51480 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
51482 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
51484 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
51487 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
51488 (obstack_ptr_grow_fast, obstack_int_grow_fast):
51489 Don't use lvalue casts, as GCC plans to remove support for them
51490 in GCC 3.5. Reported by Joseph S. Myers. This bug
51491 was also present in the non-GCC version, indicating that this
51492 code had always been buggy and had never been widely used.
51493 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
51494 Use the fast variant of each macro, rather than copying the
51495 definiens of the fast variant; that way, we'll be more likely to
51496 catch future bugs in the fast variants.
51498 2003-10-20 Bruno Haible <bruno@clisp.org>
51500 * modules/wait-process: New file.
51501 * MODULES.html.sh (func_all_modules): Add wait-process.
51503 2003-10-20 Bruno Haible <bruno@clisp.org>
51505 * m4/wait-process.m4: New file.
51507 2003-10-20 Bruno Haible <bruno@clisp.org>
51509 * lib/wait-process.h: New file, from GNU gettext.
51510 * lib/wait-process.c: New file, from GNU gettext.
51512 2003-10-19 Jim Meyering <jim@meyering.net>
51514 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
51517 2003-10-18 Karl Berry <karl@gnu.org>
51519 * config/config.guess: update from config.
51521 2003-10-16 Paul Eggert <eggert@twinsun.com>
51523 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
51524 (getgroups): First arg is int, not size_t.
51525 Don't let 'free' mangle errno.
51527 2003-10-16 Paul Eggert <eggert@twinsun.com>
51529 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
51531 2003-10-16 Karl Berry <karl@gnu.org>
51533 * config/config.{guess,sub}: update from config.
51535 2003-10-16 Jim Meyering <jim@meyering.net>
51537 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
51540 2003-10-15 Paul Eggert <eggert@twinsun.com>
51542 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
51543 (SIZE_MAX): Remove.
51544 (new_exclude, add_exclude_file): Initial size no longer needs to
51546 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
51547 our own address arithmetic overflow checking.
51549 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
51550 (fnmatch): Do not alloca more than 2000 wide characters;
51551 instead, use malloc for large buffers.
51552 Check for address arithmetic overflow, and return -1
51553 with errno set to ENOMEM in that case.
51554 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
51555 (NEW_PATTERN): Do not alloca more than 8000 bytes;
51556 instead, return -1. Check for address arithmetic overflow.
51558 2003-10-14 Paul Eggert <eggert@twinsun.com>
51560 Handle invalid suffixes and overflow independently, so that
51561 callers can treat them independently as needed. Fix some bugs in
51562 suffix handling, e.g., "100k@" was not diagnosed as an invalid
51563 suffix for a human-readable blocksize. The major caller-visible
51564 change is the addition of a new
51565 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
51566 that both overflow and suffix chars were found.
51568 * lib/human.c (humblock): Don't check separately for invalid suffix
51569 char; that is xstrtoumax's job (now that its bug is fixed).
51570 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
51571 INTMAX_MAX]: New macros.
51572 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
51573 TYPE_MAXIMUM): New macros.
51574 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
51575 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
51576 if overflow occurs, as it's what __strtol does and it's more useful
51578 (__xstrtol): If __strtol reports some error other than ERANGE,
51579 reflect it to the caller as LONGINT_INVALID. If it reports
51580 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
51581 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
51582 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
51584 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
51585 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
51586 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
51587 [defined UINTMAX_MAX]: New macros.
51589 2003-10-14 Bruno Haible <bruno@clisp.org>
51591 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
51593 2003-10-14 Bruno Haible <bruno@clisp.org>
51595 * m4/sig_atomic_t: New file, from GNU gettext.
51596 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
51598 2003-10-14 Bruno Haible <bruno@clisp.org>
51600 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
51601 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
51602 Also use volatile where needed.
51604 2003-10-12 Paul Eggert <eggert@twinsun.com>
51606 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
51607 Change maintainer from Bruno Haible to 'all'.
51609 2003-10-12 Paul Eggert <eggert@twinsun.com>
51611 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
51613 2003-10-12 Paul Eggert <eggert@twinsun.com>
51615 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
51616 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
51617 and define in terms of the other primitives.
51618 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
51619 (SIZE_MAX): Define if not already defined.
51620 (array_size_overflow): New function.
51621 (xalloc_die): Abort instead of exiting if 'error' returns.
51622 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
51623 (xmalloc, xrealloc): Use them.
51624 (xcalloc): Check for address arithmetic overflow.
51625 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
51626 a bit faster than strcpy.
51628 2003-10-10 Simon Josefsson <jas@extundo.com>
51630 * modules/argp (Depends-on): Add restrict and strcase.
51632 2003-10-10 Simon Josefsson <jas@extundo.com>
51634 * m4/argp.m4: Add AC_C_INLINE.
51636 2003-10-08 Paul Eggert <eggert@twinsun.com>
51638 Merge getpass from libc, plus a few fixes.
51640 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
51641 Include <stdbool.h>.
51642 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
51643 __fsetlocking to empty.
51644 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
51645 do include <bits/libc-lock.h>.
51646 Do not include <fcntl.h>; not needed.
51647 [_LIBC]: Include <wchar.h>.
51648 (NOTCANCEL_MODE): New macro.
51649 (flockfile, funlockfile) [_LIBC]: New macros.
51650 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
51651 [!_LIBC]: New macros.
51652 (call_fclose): New function.
51653 (getpass): Use it. Save tty stream separately; this simplifies the
51654 code and makes it more reliable if stdin happens to equal stdout.
51655 Invoke __fsetlocking on tty.
51656 Handle thread cancellation if needed.
51657 Namespace cleanup (use __tcgetattr, __getline).
51658 Use bool for Booleans.
51659 [USE_IN_LIBIO]: Handle wide streams.
51660 [!_LIBC]: Unconditionally do the fseek, since we don't know what
51661 stream might go where.
51663 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
51664 doesn't have to include <stdio.h> before us.
51665 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
51666 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
51667 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
51668 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
51669 if not declared, so that we can use getpass.c code from libc without
51671 (flockfile, ftrylockfile, funlockfile): New macros.
51673 2003-10-08 Paul Eggert <eggert@twinsun.com>
51675 * modules/getpass: Depend on stdbool.
51677 2003-10-08 Paul Eggert <eggert@twinsun.com>
51679 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
51681 2003-10-07 Karl Berry <karl@gnu.org>
51683 * config/config.{guess,sub}: update from config.
51685 2003-10-06 Jim Meyering <jim@meyering.net>
51686 Bruno Haible <bruno@clisp.org>
51688 This lets translators provide better translations for the
51689 "Written by ..." part of --version output.
51690 * lib/version-etc.h: Include stdarg.h.
51691 (version_etc_copyright): Declare as readonly.
51692 (version_etc): Make this function variadic with a NULL-terminated list
51693 of author name strings.
51694 (version_etc_va): New declaration.
51695 * lib/version-etc.c: Include stdarg.h, stdlib.h.
51696 (version_etc_copyright): Declare as readonly.
51697 (version_etc_va): New function. Provide a different translatable string
51698 for each possible number of authors < 10. Abbreviate when there are 10
51700 (version_etc): Make this function variadic. Call version_etc_va.
51701 Suggestion from Gary V. Vaughan.
51703 * lib/long-options.h (parse_long_options): Change prototype: the
51704 authors string is moved to the end and becomes variadic.
51705 * lib/long-options.c: Include stdarg.h.
51706 (parse_long_options): Make this function variadic, too.
51707 Call version_etc_va, not version_etc.
51709 2003-10-06 Bruno Haible <bruno@clisp.org>
51711 * modules/version-etc-2: Remove file.
51712 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
51714 2003-10-06 Bruno Haible <bruno@clisp.org>
51716 * modules/fatal-signal: New file.
51717 * MODULES.html.sh (func_all_modules): Add fatal-signal.
51719 2003-10-06 Bruno Haible <bruno@clisp.org>
51721 * m4/fatal-signal.m4: New file.
51722 * m4/signalblocking.m4: New file, from GNU gettext.
51724 2003-10-06 Bruno Haible <bruno@clisp.org>
51726 * lib/version-etc-2.h: Remove file.
51727 * lib/version-etc-2.c: Remove file.
51729 2003-10-06 Bruno Haible <bruno@clisp.org>
51731 * lib/fatal-signal.h: New file, from GNU gettext.
51732 * lib/fatal-signal.c: New file, from GNU gettext.
51734 2003-10-05 Paul Eggert <eggert@twinsun.com>
51736 * README: Rework advice for preventing empty .o files.
51737 Don't recommend ELIDE constructs. Recommend <stddef.h>,
51740 2003-10-04 Karl Berry <karl@gnu.org>
51742 * lib/argp*: update from libc.
51744 2003-10-04 Karl Berry <karl@gnu.org>
51746 * config/config.{guess,sub}: update from config.
51748 2003-10-02 Bruno Haible <bruno@clisp.org>
51750 * modules/lchown (Include): Add lchown.h.
51751 * modules/time_r (Include): Use "..." syntax.
51752 * modules/xgetdomainname (Include): Add xgetdomainname.h.
51754 2003-10-01 Simon Josefsson <jas@extundo.com>
51756 * MODULES.html.sh (func_all_modules): Move gethostname from section
51757 'based on' to section 'lacking' POSIX:2001.
51759 2003-10-01 Larry Jones <lawrence.jones@eds.com>
51761 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
51762 to output mode on the same stream.
51764 2003-09-29 Paul Eggert <eggert@twinsun.com>
51766 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
51767 Fix arg typo in previous patch.
51769 2003-09-28 Jim Meyering <jim@meyering.net>
51771 * lib/error.c: Correct cpp indentation.
51773 2003-09-27 Paul Eggert <eggert@twinsun.com>
51775 * modules/free: New file.
51777 2003-09-27 Paul Eggert <eggert@twinsun.com>
51779 * m4/free.m4: New file.
51781 2003-09-27 Paul Eggert <eggert@twinsun.com>
51783 * lib/minmax.h (MIN, MAX)
51784 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
51785 Omit the special code that used __typeof__, since we worry that
51786 it could be more trouble than it's worth. See:
51787 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
51788 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
51790 * lib/free.c: New file.
51792 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
51794 Trivial fixes to Makefile.am parts of module listings.
51795 * modules/strstr: Append strstr.h to lib_SOURCES.
51796 * modules/strcase: Likewise, for strcase.h.
51798 2003-09-27 Karl Berry <karl@gnu.org>
51800 * config/mkinstalldirs: update from automake.
51802 2003-09-26 Paul Eggert <eggert@twinsun.com>
51804 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
51805 (error_tail): Do not loop, reallocating temporary buffer, since
51806 the output cannot contain more wide characters than the input
51807 contains bytes, the size must be big enough already. This avoids
51808 one potential size overflow calculation. Check for size overflow
51809 when calculating temporary buffer size. Free temporary buffer
51810 when done, if it was allocated with malloc; this plugs a memory
51811 leak. Remove casts from void * to pointers, that are no longer
51812 needed now that we're assuming C89 or better.
51814 Merge error changes from glibc.
51816 * lib/error.c, error.h: Update copyright notice header to match glibc.
51817 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
51818 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
51819 Disable cancellation while printing error.
51820 * lib/error.h: Prepend __ to parameter names.
51822 2003-09-26 Jim Meyering <jim@meyering.net>
51824 * lib/error.c (error_tail): Move some declarations
51825 into inner scope where the local variables are used.
51827 2003-09-26 Bruno Haible <bruno@clisp.org>
51829 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
51831 Don't define stpncpy through config.h; it's now done through stpncpy.h.
51833 2003-09-26 Bruno Haible <bruno@clisp.org>
51835 * lib/stpncpy.h (gnu_stpncpy): New declaration.
51836 (stpncpy): Define as alias for gnu_stpncpy.
51837 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
51839 2003-09-25 Simon Josefsson <jas@extundo.com>
51841 * lib/xgetdomainname.h: New file.
51842 * lib/xgetdomainname.c: New file.
51844 2003-09-25 Simon Josefsson <jas@extundo.com>
51845 Bruno Haible <bruno@clisp.org>
51847 * modules/getdomainname: New file.
51848 * modules/xgetdomainname: New file.
51849 * MODULES.html.sh (func_all_modules): Add getdomainname,
51852 2003-09-25 Simon Josefsson <jas@extundo.com>
51853 Bruno Haible <bruno@clisp.org>
51855 * m4/getdomainname.m4: New file.
51857 2003-09-25 Simon Josefsson <jas@extundo.com>
51858 Bruno Haible <bruno@clisp.org>
51860 * lib/getdomainname.h: New file.
51861 * lib/getdomainname.c: New file.
51863 2003-09-25 Karl Berry <karl@gnu.org>
51865 * lib/argp-fmtstream.c, argp-help.c: update from libc.
51867 2003-09-25 Karl Berry <karl@gnu.org>
51869 * config/install-sh: update from automake.
51871 2003-09-25 Bruno Haible <bruno@clisp.org>
51873 * modules/version-etc-2: New file, from modules/version-etc with
51875 * MODULES.html.sh (func_all_modules): Add version-etc-2.
51877 2003-09-25 Bruno Haible <bruno@clisp.org>
51879 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
51880 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
51882 2003-09-24 Simon Josefsson <jas@extundo.com>
51884 * modules/xgethostname: Add xgethostname.h.
51886 2003-09-24 Paul Eggert <eggert@twinsun.com>
51888 * lib/linebuffer.c (freebuffer): Don't free the argument, just
51889 the buffer associated with the argument. Bug reported by
51892 2003-09-24 Paul Eggert <eggert@twinsun.com>
51894 * README: Document assumptions that 'int' is at least 32 bits
51895 wide, that integer arithmetic is 2's complement without overflow,
51896 that there are no holes in integer values, that adding sizes of
51897 two nonoverlapping objects can't overflow, and that all-bits-zero
51898 yields scalar zero. Fix spelling and capitalization typos.
51900 2003-09-19 Karl Berry <karl@gnu.org>
51902 * lib/argp.h: update from libc.
51904 2003-09-17 Paul Eggert <eggert@twinsun.com>
51906 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
51907 to avoid spurious warnings like "AC_RUN_IFELSE was called before
51908 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
51910 2003-09-17 Paul Eggert <eggert@twinsun.com>
51912 * gnulib-tool: Use "test -h", not "test -L", for portability
51913 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
51914 (tags_regexp): Remove, since \| doesn't conform to POSIX.
51915 (sed_extract_prog): Issue s commands one-by-one, rather than
51916 using \| in one s command.
51918 2003-09-16 Paul Eggert <eggert@twinsun.com>
51920 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
51921 input error, instead of returning NULL the next time we are called
51922 (and therefore losing track of errno).
51924 2003-09-16 Bruno Haible <bruno@clisp.org>
51926 * gnulib-tool (func_create_testdir): Warn about duplicated
51929 2003-09-15 Paul Eggert <eggert@twinsun.com>
51931 * modules/argmatch, modules/fatal, modules/obstack,
51932 modules/xalloc, modules/xgethostname: Sort dependencies by
51933 importance, not alphabetically.
51935 2003-09-15 Paul Eggert <eggert@twinsun.com>
51937 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
51938 fails, so that the caller gets the proper errno.
51940 * lib/readutmp.c (read_utmp): Likewise.
51941 Check for fstat error. Close stream and free storage
51944 2003-09-14 Karl Berry <karl@gnu.org>
51946 * config/srclist.txt (strdup.c): disable for c89 changes.
51948 2003-09-14 Jim Meyering <jim@meyering.net>
51950 * lib/getloadavg.c: Correct cpp indentation.
51951 * lib/strdup.c: Likewise.
51952 * lib/vasnprintf.c: Likewise.
51954 2003-09-14 Bruno Haible <bruno@clisp.org>
51956 * modules/fwriteerror: New file.
51957 * MODULES.html.sh (func_all_modules): Add fwriteerror.
51959 2003-09-14 Bruno Haible <bruno@clisp.org>
51961 * lib/fwriteerror.h: New file.
51962 * lib/fwriteerror.c: New file.
51964 2003-09-12 Paul Eggert <eggert@twinsun.com>
51966 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
51967 modules/xgethostname, modules/xalloc: Depend on exit.
51969 2003-09-12 Paul Eggert <eggert@twinsun.com>
51971 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
51973 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
51974 and AC_MINIX, too, so that their extensions are available.
51976 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
51977 This macro has been superseded by gl_BACKUPFILE.
51979 More patches to assume C89 or better.
51981 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
51983 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
51985 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
51986 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
51987 Include <string.h>, <stdlib.h> unconditionally.
51988 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
51989 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
51990 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
51991 headers or for string.h.
51992 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
51995 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
51997 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
51998 * m4/userspec.m4 (gl_USERSPEC): Likewise.
51999 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
52000 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
52001 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
52002 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
52004 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
52005 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
52006 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
52008 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
52009 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
52010 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
52013 2003-09-12 Paul Eggert <eggert@twinsun.com>
52015 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
52016 * lib/obstack.c [!defined _LIBC]: Likewise.
52017 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
52018 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
52019 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
52021 More changes to assume C89 or better.
52023 * lib/error.c (error_tail): Assume vprintf.
52025 * lib/argmatch.c (getenv): Remove decl.
52026 * lib/progreloc.c (get_full_program_name): Define via prototype.
52027 * lib/setenv.c (clearenv): Likewise.
52028 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
52030 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
52031 (malloc, memcpy): Remove decls.
52032 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
52033 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
52034 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
52035 (memcpy): Remove macro.
52036 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
52037 (__P): Remove. All uses removed.
52038 (PTR): Remove. All uses changed to void *.
52039 (CHAR_BIT, NULL): Remove.
52040 (spaces, zeros, memset_space, memset_zero)
52041 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
52043 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
52044 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
52045 Define with prototype.
52046 Remove now-unnecessary prototype decl.
52047 (extra_args_spec): Assume ANSI C. All uses changed.
52048 (extra_args_spec_iso): Remove.
52049 (my_strftime, emacs_strftimeu): Define via prototype.
52050 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
52052 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
52053 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
52054 (strtoul, strtol): Remove decls.
52055 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
52057 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
52058 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
52059 (LOCALE_PARAM_PROTO): New macro.
52060 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
52061 (INTERNAL (strtol), strtol): Define with a prototype.
52062 (PARAMS): Remove. All uses removed.
52063 * lib/tempname.c: Include <string.h> unconditionally.
52064 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
52065 * lib/xgethostname.c (main): Define with a prototype.
52066 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
52067 Include <stdlib.h> unconditionally.
52068 (calloc, malloc, realloc, free): Remove decls.
52069 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
52070 Include <stdlib.h> unconditionally. Sort include file names.
52072 (xstrtod): Define with a prototype.
52073 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
52074 (strtol, strtoul): Remove decls.
52076 2003-09-11 Paul Eggert <eggert@twinsun.com>
52078 More patches to assume C89 or better.
52079 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
52080 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
52081 string.h, memchr, STDC_HEADERS.
52083 2003-09-11 Paul Eggert <eggert@twinsun.com>
52085 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
52086 Include <stdlib.h>, <string.h> unconditionally.
52087 Remove now-unnecessary cast to char *.
52088 * lib/strnlen.c: Include <string.h> unconditionally.
52089 * lib/yesno.c (yesno): Define with a prototype.
52091 2003-09-11 Bruno Haible <bruno@clisp.org>
52093 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
52095 2003-09-10 Jim Meyering <jim@meyering.net>
52097 * lib/error.c: Correct indentation of cpp directives.
52099 2003-09-10 Bruno Haible <bruno@clisp.org>
52101 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
52102 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
52103 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
52104 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
52105 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
52106 <stdlib.h> and <string.h> checks.
52107 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
52108 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
52110 2003-09-10 Bruno Haible <bruno@clisp.org>
52112 * lib/strcspn.c: Include <string.h> unconditionally.
52113 * lib/strpbrk.c: Include <string.h> unconditionally.
52114 * lib/strstr.c: Include <string.h> unconditionally.
52115 * lib/unicodeio.c: Include <string.h> unconditionally.
52116 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
52117 * lib/unsetenv.c: Likewise.
52118 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
52119 * lib/yesno.c: Include <stdlib.h> unconditionally.
52120 (rpmatch): Add prototype.
52122 2003-09-09 Paul Eggert <eggert@twinsun.com>
52124 More patches to assume C89 or better.
52125 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
52126 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
52127 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
52129 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
52131 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
52133 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
52135 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
52136 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
52137 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
52139 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
52140 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
52142 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
52144 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
52145 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
52146 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
52147 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
52148 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
52149 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
52151 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
52152 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
52153 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
52154 C headers, or for string.h.
52155 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
52156 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
52157 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
52158 headers, memory.h, stdlib.h, string.h, strings.h.
52159 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
52160 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
52161 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
52163 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
52164 headers, memory.h, string.h.
52165 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
52166 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
52168 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
52170 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
52171 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
52172 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
52173 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
52174 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
52176 2003-09-09 Paul Eggert <eggert@twinsun.com>
52180 * lib/acosl.c (main): Use a prototype.
52181 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
52184 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
52186 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
52187 (getopt, etopt_long, getopt_long_only, _getopt_internal)
52188 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
52190 * lib/getopt.c (const): Remove macro.
52191 Include <string.h> unconditionally.
52192 (my_index): Remove; all uses changed to strchr.
52193 (strlen): Remove decl.
52194 (exchange): Remove forward decl; no longer needed.
52195 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
52196 Define with prototype.
52197 * lib/getopt1.c (const): Remove macro.
52198 (getopt_long, getopt_long_only, main): Define with prototype.
52200 * lib/getugroups.c: Include <string.h> unconditionally.
52202 * lib/getusershell.c: Include <stdlib.h> unconditionally.
52203 (getusershell, setusershell, endusershell, readname, main):
52204 Define with prototypes.
52206 * lib/group-member.c: Include group-member.h first.
52207 Include <stdlib.h> unconditionally.
52209 * lib/hard-locale.c: Include hard-locale.h first.
52210 Include <stdlib.h>, <string.h> unconditionally.
52212 * lib/hash.c (free, malloc): Remove decls.
52213 Include <stdlib.h> unconditionally.
52215 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
52216 (getenv): Do not declare.
52218 * lib/idcache.c: Include <string.h> unconditionally.
52220 * lib/long-options.c: Include long-options.h first, to test interface.
52221 Include <stdlib.h> unconditionally.
52223 * lib/makepath.c: Include makepath.h first, to test interface.
52224 Include <stdlib.h> and <string.h> unconditionally.
52226 * lib/linebuffer.c: Include <stdlib.h>.
52227 (free): Remove decl.
52229 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
52230 stddef.h. rpl_malloc returns void *, not char *.
52231 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
52234 * lib/md5.h: Include <limits.h> unconditionally.
52235 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
52236 (__P): Remove; all uses removed.
52237 * lib/md5.c: Include "md5.h" first.
52238 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
52239 md5_buffer, md5_process_bytes, md5_process_block):
52240 Define with prototypes.
52241 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
52242 * lib/sha.c: Include "sha.h" first.
52243 Include <stdlib.h>, <string.h> unconditionally.
52245 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
52246 * lib/memcmp.c (__ptr_t): Likewise.
52247 * lib/memrchr.c (__ptr_t): Likewise.
52248 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
52249 Include <string.h> unconditionally.
52250 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
52251 * lib/memchr.c: Include <stdlib.h> unconditionally.
52252 * lib/memchr.c (LONG_MAX): Remove.
52253 * lib/memrchr.c (LONG_MAX): Likewise.
52254 * lib/memchr.c (__memchr): Define via a prototype.
52255 * lib/memrchr.c (__memrchr): Likewise.
52256 * lib/memcmp.c (__P): Remove, and remove all uses.
52257 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
52258 Remove forward decls; no longer needed.
52259 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
52260 Use types required by C89 in prototype.
52262 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
52263 * lib/savedir.c: Likewise.
52264 * lib/mkdir.c (free): Remove decl.
52265 * lib/rmdir.c (rmdir): Define with a prototype.
52266 * lib/savedir.c: Include savedir.h first, to test interface.
52268 * lib/mktime.c (STDC_HEADERS): Remove.
52269 Include <stdlib.h>, <string.h> unconditionally.
52271 * lib/modechange.c: Include <stdlib.h> unconditionally.
52272 (malloc): Remove decl.
52274 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
52275 (free): Remove decl.
52277 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
52278 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
52279 (This type really should be intptr_t, but that's a C99ism.)
52280 (_obstack_memcpy): Remove: all uses changed to memcpy.
52281 Include <string.h> unconditionally.
52282 (struct obstack): Assume __STDC__ for types of members
52283 chunkfun, freefun, extra_arg.
52284 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
52285 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
52286 obstack_begin, obstack_specify_allocation,
52287 obstack_specify_allocation_with_arg, obstack_chunkfun,
52288 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
52289 Remove unprototyped decls and the macros that use them.
52290 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
52291 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
52292 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
52293 (defined __STDC__ && __STDC__)]:
52294 Remove nonprototyped code.
52295 Include <stdlib.h> unconditionally.
52296 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
52297 _obstack_allocated_p, _obstack_free, obstack_free,
52298 _obstack_memory_used, print_and_abort):
52299 Define using prototypes.
52300 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
52301 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
52302 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
52303 obstack_next_free, obstack_object_size, obstack_room) [0]:
52304 Remove unused, unprototyped code.
52306 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
52308 * lib/physmem.c (physmem_total, physmem_available, main): Define
52311 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
52312 (main): Define with a prototype.
52314 * lib/posixver.c (getenv): Remove decl.
52316 * lib/putenv.c (malloc): Returns void *, not char *.
52317 Include <string.h> unconditionally.
52318 (strchr, memcpy, NULL): Do not define.
52320 * lib/readtokens.c: Include readtokens.h first, to test interface.
52321 Include <stdlib.h>, <string.h> unconditionally.
52322 (init_tokenbuffer): Define with a prototype.
52324 * lib/regex.c (PARAMS): Remove. All uses removed.
52325 All uses of _RE_ARGS removed, too.
52326 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52328 (bzero): Assume memset exists.
52329 (memcmp, memcpy, NULL): Remove.
52330 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
52331 char, or assignments to local vars of type signed char.
52332 (init_syntax_once, PREFIX(extract_number_and_incr),
52333 PREFIX(print_partial_compiled_pattern),
52334 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
52335 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
52336 PREFIX(regex_grow_registers), PREFIX(regex_compile),
52337 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
52338 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
52339 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
52340 wcs_compile_range, byte_compile_range, truncate_wchar,
52341 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
52342 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
52343 count_mbs_length, wcs_re_match_2_internal,
52344 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
52345 PREFIX(alt_match_null_string_p),
52346 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
52347 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
52348 regfree, PREFIX(extract_number)): Define with prototype. Remove
52349 now-unnecessary declaration, if any.
52350 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
52352 Remove now-unnecessary casts among pointer types.
52353 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
52355 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
52356 (free): Remove decl.
52358 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
52360 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
52361 (free): Remove decl.
52363 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
52364 * lib/xgetcwd.c: Likewise.
52366 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
52367 (free): Remove decl.
52369 * lib/strchrnul.c (strchrnul): Define with a prototype.
52370 Fix bug: c_in was not converted to char before searching.
52372 The following changes are not K&R related:
52374 * lib/group-member.h: Include <sys/types.h>, so that this file is
52376 * lib/makepath.h: Likewise.
52378 * lib/getusershell.c (readname, default_index, line_size, readname):
52379 Use size_t, not int, for sizes.
52380 (readname): If the size overflows, report an error instead of
52383 2003-09-09 Paul Eggert <eggert@twinsun.com>
52385 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
52388 2003-09-09 Paul Eggert <eggert@twinsun.com>
52390 * README: New section: portability guidelines.
52392 2003-09-09 Derek Robert Price <derek@ximbiot.com>
52394 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
52397 2003-09-09 Derek Robert Price <derek@ximbiot.com>
52399 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
52401 2003-09-08 Paul Eggert <eggert@twinsun.com>
52403 Assume C89 or better; remove K&R cruft.
52404 A few of these changes were first proposed by Derek Robert Price
52405 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
52407 * lib/addext.c: Include <string.h> unconditionally.
52408 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
52409 Don't declare getenv or malloc.
52411 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
52412 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
52414 (find_stack_direction, alloca): Use prototypes.
52416 * lib/atexit.c (atexit): Define using a prototype.
52418 * lib/basename.c, dirname.c, stripslash.c:
52419 Include <string.h> unconditionally.
52421 * lib/bcopy.c: Include <stddef.h>.
52422 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
52424 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
52426 * lib/error.h (error, error_at_line, error_print_progname)
52427 [! (defined (__STDC__) && __STDC__)]: Remove decls.
52428 * lib/error.c: Include error.h first, to check interface.
52429 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
52430 (VA_START): Remove; all uses changeed to va_start.
52431 (exit, strerror): Remove decls.
52432 (error_print_progname): Prototype uncondionally.
52433 Don't include <errno.h>; no longer needed.
52434 (private_strerror): Remove.
52435 (error_tail): Always define.
52436 (error, error_at_line): Assume C89 or better; always use prototypes.
52437 * lib/fatal.c: Include "fatal.h" first, to test interface.
52438 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
52439 (VA_START): Remove; all uses changed to va_start.
52440 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
52442 (exit): Remove decl.
52443 (fatal): Prototype unconditionally. Assume va_start works.
52444 Abort at end, to pacify gcc.
52446 * lib/euidaccess.c (main): Define with a prototype.
52448 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
52450 * lib/exitfail.c: Include <stdlib.h> unconditionally.
52452 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
52454 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
52455 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
52456 (getenv): Remove decl.
52457 (fnmatch): Define using a prototype.
52458 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
52459 (FCT): Define using a prototype.
52461 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
52463 * lib/gethostname.c: Include <stddef.h>.
52464 (gethostname): Define with prototype. Length is size_t, not int.
52466 2003-09-08 Paul Eggert <eggert@twinsun.com>
52468 Assume C89 or better; remove K&R cruft.
52469 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
52470 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
52471 string.h, getenv, malloc.
52472 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
52474 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
52475 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
52476 do not check for strerror.
52477 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
52478 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
52479 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
52480 do not check for doprnt or vprintf.
52481 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
52482 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
52484 2003-09-08 Paul Eggert <eggert@twinsun.com>
52486 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
52487 getversion.c should have been removed then, but was accidentally
52490 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
52491 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
52493 2003-09-08 Karl Berry <karl@gnu.org>
52495 * config/config.sub, config.guess, srclistvars.sh: update from savannah
52496 config, forget about prep.
52498 * config/depcomp, missing: update from automake.
52500 2003-09-07 Paul Eggert <eggert@twinsun.com>
52502 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
52503 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
52505 2003-09-07 Paul Eggert <eggert@twinsun.com>
52507 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
52508 copy_tm_result. Bug reported by Simon Josefsson in
52509 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
52511 2003-09-06 Paul Eggert <eggert@twinsun.com>
52513 * m4/time_r.m4: New file.
52514 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
52515 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
52516 is. Check for timegm declaration.
52517 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
52518 Do not check for gmtime_r.
52519 Replace mktime if __mktime_internal does not exist and if mktime
52520 hasn't been replaced already.
52522 2003-09-06 Paul Eggert <eggert@twinsun.com>
52524 * lib/time_r.c, lib/time_r.h: New files.
52526 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
52528 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
52529 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
52531 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
52533 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
52534 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
52535 Include <time_r.h>.
52537 * lib/timegm.c: Switch to glibc implementation, with the following
52539 [defined HAVE_CONFIG_H]: Include <config.h>.
52540 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
52541 (__mktime_internal) [!defined _LIBC]: New decl.
52542 (__gmtime_r) [!defined _LIBC]: New macro and function.
52543 (timegm): Use a prototype, since gnulib assumes C89.
52544 Do not bother declaring tmp to be const, as it's not really usefu.
52545 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
52546 (timegm): Declare only if HAVE_DECL_TIMEGM.
52548 2003-09-06 Paul Eggert <eggert@twinsun.com>
52550 * MODULES.html.sh (func_all_modules): Add time_r.
52551 * modules/time_r: New file.
52552 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
52553 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
52555 2003-09-03 Paul Eggert <eggert@twinsun.com>
52557 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
52558 Bug reported by Lute Kamstra in
52559 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
52561 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
52562 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
52563 course with correspondingly smaller numbers for tomorrow and
52564 yesterday. From Tadayoshi Funaba. Originally installed into
52565 sh-utils on 1999-08-07, but the patch got lost (I guess during the
52568 2003-08-31 Simon Josefsson <jas@extundo.com>
52570 * modules/timegm: New file.
52571 * MODULES.html.sh (func_all_modules): Add timegm.
52573 2003-08-31 Simon Josefsson <jas@extundo.com>
52575 * m4/timegm.m4: New file.
52577 2003-08-31 Simon Josefsson <jas@extundo.com>
52579 * lib/timegm.h: New file.
52580 * lib/timegm.c: New file. Based on
52581 wget-1.8.2/src/http.c:mktime_from_utc.
52583 2003-08-31 Karl Berry <karl@gnu.org>
52585 * lib/argp.h: update from libc.
52587 2003-08-28 Bruno Haible <bruno@clisp.org>
52589 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
52590 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
52591 followed by '#define fnmatch fnmatch_posix' gives an error.
52593 2003-08-28 Bruno Haible <bruno@clisp.org>
52595 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
52596 warning on QNX, which defines O_BINARY to 000000.
52598 2003-08-27 Jim Meyering <jim@meyering.net>
52600 * m4/mkstemp.m4: Require that the system mkstemp be able to create
52601 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
52602 would fail after 32. Reported by Danny Levinson. Details here:
52603 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
52605 2003-08-24 Bruno Haible <bruno@clisp.org>
52607 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
52608 MSVC7 <stdio.h> is included later.
52610 2003-08-22 Simon Josefsson <jas@extundo.com>
52612 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
52614 2003-08-20 Karl Berry <karl@gnu.org>
52616 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
52618 2003-08-20 Bruno Haible <bruno@clisp.org>
52620 * modules/progname: New file.
52621 * MODULES.html.sh (func_all_modules): Add progname.
52623 2003-08-20 Bruno Haible <bruno@clisp.org>
52625 * lib/progname.h: New file, from GNU gettext.
52626 * lib/progname.c: New file, from GNU gettext.
52627 * lib/progreloc.c: New file, from GNU gettext.
52629 2003-08-19 Jim Meyering <jim@meyering.net>
52631 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
52632 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
52634 2003-08-19 Bruno Haible <bruno@clisp.org>
52636 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
52639 2003-08-19 Bruno Haible <bruno@clisp.org>
52641 * lib/xstrdup.c: Assume <string.h> exists.
52643 2003-08-18 Paul Eggert <eggert@twinsun.com>
52645 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
52648 2003-08-18 Jim Meyering <jim@meyering.net>
52650 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
52651 * m4/lib-ld.m4: Likewise.
52653 2003-08-18 Jim Meyering <jim@meyering.net>
52655 * lib/setenv.h: Indent nested cpp directive.
52656 * lib/vasnprintf.c: Remove trailing blanks.
52658 2003-08-17 Simon Josefsson <jas@extundo.com>
52660 * modules/xstrndup: New file.
52661 * MODULES.html.sh (func_all_modules): Add xstrndup.
52663 2003-08-17 Simon Josefsson <jas@extundo.com>
52665 * modules/argp: Fix autoconf macro name. Add more dependencies.
52667 2003-08-17 Simon Josefsson <jas@extundo.com>
52669 * m4/xstrndup.m4: New file.
52671 2003-08-17 Simon Josefsson <jas@extundo.com>
52673 * m4/argp.m4: New file.
52675 2003-08-17 Simon Josefsson <jas@extundo.com>
52676 Bruno Haible <bruno@clisp.org>
52678 * lib/xstrndup.h: New file.
52679 * lib/xstrndup.c: New file.
52681 2003-08-17 Bruno Haible <bruno@clisp.org>
52683 * modules/strndup (Files, Include): Add lib/strndup.h.
52685 2003-08-17 Bruno Haible <bruno@clisp.org>
52687 * modules/euidaccess (Files): Add lib/euidaccess.h.
52689 2003-08-17 Bruno Haible <bruno@clisp.org>
52691 * lib/strndup.h: New file.
52693 2003-08-17 Bruno Haible <bruno@clisp.org>
52695 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
52696 like AC_GNU_SOURCE.
52697 * modules/extensions (configure.ac): Comment out the invocation of
52698 gl_USE_SYSTEM_EXTENSIONS.
52700 2003-08-16 Paul Eggert <eggert@twinsun.com>
52702 Merges from coreutils, etc.
52703 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
52704 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
52705 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
52707 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
52708 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
52710 2003-08-16 Paul Eggert <eggert@twinsun.com>
52712 Document merge from coreutils.
52713 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
52714 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
52715 * modules/utime: Add m4/utimes-null.m4.
52717 2003-08-16 Paul Eggert <eggert@twinsun.com>
52719 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
52720 space, undoing this 2003-08-12 change:
52721 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
52723 2003-08-16 Paul Eggert <eggert@twinsun.com>
52725 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
52726 strtoul.c from libc, undoing this 2003-08-12 change:
52727 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
52729 2003-08-16 Jim Meyering <jim@meyering.net>
52731 Merges from coreutils.
52732 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
52733 prefix. Adjust cache variables similarly. Create 500 rather than
52734 just 300 files, to exercise bug on Darwin6.5, too.
52735 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
52737 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
52738 AM_SYS_POSIX_TERMIOS.
52739 Reported by mkc@mathdogs.com.
52740 Also change use of $am_cv_sys_posix_termios
52741 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
52742 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
52743 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
52744 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
52745 in /proc/mounts until it finds one with matching device number. This
52746 is unnecessary when the FILE argument *is* a mount point. No stat call
52747 is necessary in that case. So, disable the statvfs-testing code on
52748 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
52749 as RedHat bug# 84846.
52750 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
52751 to 1MB, so as not to render systems with no stack size limit (e.g.,
52752 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
52753 Include <unistd.h>. On some systems,
52754 it is required for the definition of _SC_PAGESIZE.
52756 2003-08-16 Jim Meyering <jim@meyering.net>
52758 Merge from coreutils.
52759 * lib/xstrtoimax.c: #else #if -> #elif.
52760 * lib/xstrtoumax.c: Likewise.
52762 2003-08-16 Jim Meyering <jim@meyering.net>
52764 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
52765 * m4/utimes.m4: Removed.
52766 * m4/utimes-null.m4: Renamed from utimes.m4.
52768 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
52769 to 1MB, so as not to render systems with no stack size limit (e.g.,
52770 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
52771 Include <unistd.h>. On some systems,
52772 it is required for the definition of _SC_PAGESIZE.
52774 2003-08-16 Jim Meyering <jim@meyering.net>
52775 and Paul Eggert <eggert@cs.ucla.edu>
52777 Merges from coreutils, etc.
52779 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
52780 using the latest version from cvs. This avoids problems with #line
52781 directives using a vendor (Sun) compiler.
52782 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
52783 Don't set GETGROUPS_LIB here; now it's
52784 done via getgroups.m4's wrapper function.
52785 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
52786 rather than just in sh-util/configure.in, so that the
52787 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
52789 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
52790 AC_FUNC_GETLOADAVG where to find getloadavg.c.
52791 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
52792 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
52793 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
52794 Remove code that is now done by the newly-required macros.
52795 Append $(EXEEXT) to DF_PROG.
52796 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
52797 Do not invoke or require the following here,
52798 since prereq.m4 or some gnulib .m4 now does this for us:
52799 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
52800 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
52801 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
52802 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
52803 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
52804 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
52805 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
52807 Do not replace the following functions, as this is now the job
52808 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
52809 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
52810 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
52811 atexit getpass, strdup, getpagesize.
52813 Do not check for the following functions, as this is now the job
52814 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
52815 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
52817 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
52818 Check for sys/sysctl.h.
52819 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
52820 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
52821 of checking for ssize_t ourselves.
52823 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
52824 Require every macro that gnulib/modules/* suggests for us.
52825 (jm_PREREQ_ADDEXT): New macro.
52826 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
52827 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
52829 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
52830 (gl_PHYSMEM): Use it.
52831 Also check for `table' function.
52832 Check for new headers and functions.
52833 Add check for sys/sysmp.h.
52834 With suggestions from Kaveh Ghazi.
52835 Ignore headers that are present but cannot be compiled. This
52836 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
52839 2003-08-15 Paul Eggert <eggert@twinsun.com>
52841 Document merge from coreutils.
52842 * modules/userspec: Depend on posixver.
52843 * modules/strftime: Depend on tzset.
52845 2003-08-15 Paul Eggert <eggert@twinsun.com>
52847 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
52848 rather than tab, after '#' in shell-script copyright notices.
52849 Suggested by Bruno Haible.
52851 2003-08-15 Paul Eggert <eggert@twinsun.com>
52853 * config/srclist-update: Use three spaces, rather than tab, after '#'
52854 in shell-script copyright notices. Suggested by Bruno Haible.
52855 Remove unnecessary parenthesization in regular expression.
52857 2003-08-15 Jim Meyering <jim@meyering.net>
52859 Merge from coreutils.
52860 * lib/xgethostname.c: Include <stdlib.h>.
52861 (xghostname): Don't exit for anything other than memory-related
52862 failure; just return NULL.
52863 * lib/userspec.c: Include "posixver.h".
52864 (parse_user_spec): Accept `.' as a separator only
52865 in pre-POSIX-200112 mode.
52866 * lib/strtoimax.c: Use #elif rather than #else #if.
52867 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
52868 Remove function, now that we can rely on a working tzset function.
52869 [!_LIBC]: Ensure that the required autoconf test has been run.
52870 [!defined _NL_CURRENT && HAVE_STRFTIME]:
52871 Use underlying_strftime for %r.
52872 * lib/sha.c: Merge in some clean-up and optimization changes from
52874 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
52875 Ensure that it is a multiple of 64.
52876 Rearrange loop exit tests so as to avoid performing an
52877 additional fread after encountering an error or EOF.
52878 * lib/realloc.c: Update copyright date.
52880 2003-08-15 Jim Meyering <jim@meyering.net>
52881 and Paul Eggert <eggert@twinsun.com>
52883 Merge from coreutils.
52884 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
52885 member but strut utmpx does not. Needed for AIX 4.3.3.
52886 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
52888 2003-08-15 Jim Meyering <jim@meyering.net>
52889 and Paul Eggert <eggert@cs.ucla.edu>
52891 Merges from coreutils, etc.
52892 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
52893 Require gl_FUNC_TZSET_CLOBBER.
52894 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
52895 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
52898 2003-08-14 Paul Eggert <eggert@twinsun.com>
52900 Help the merge from coreutils.
52901 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
52902 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
52903 * m4/tzset.m4: Use it too.
52905 2003-08-14 Paul Eggert <eggert@twinsun.com>
52907 * modules/tzset: New file.
52909 2003-08-14 Jim Meyering <jim@meyering.net>
52911 Merges from coreutils.
52912 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
52913 variable names, rather than @FNMATCH_H@.
52914 * modules/alloca: Likewise for $(ALLOCA_H).
52916 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
52917 the three copies of the literal target, `fnmatch.h'.
52918 * modules/alloca (alloca.h): Likewise.
52920 2003-08-14 Jim Meyering <jim@meyering.net>
52922 Merge from coreutils.
52923 * m4/tzset.m4: New file.
52924 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
52925 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
52926 otherwise, AIX 5.1 systems would end up using the latter.
52927 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
52928 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
52929 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
52930 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
52932 2003-08-14 Jim Meyering <jim@meyering.net>
52934 Merge from coreutils.
52935 * lib/obstack.h: Whitespace changes.
52936 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
52937 and xcalloc return values.
52938 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
52939 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
52940 hang on OSF/1 5.1 for DIR on both local and remote file systems.
52941 Reported by (and fix confirmed by) Nelson H. F. Beebe.
52942 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
52944 Use mntctl's return value to drive the entry-processing loop, since
52945 we can't rely on the value of the vmt_length member in the last
52946 entry. On some systems doing so could result in exhausting
52947 virtual memory. Based in part on a patch from Mike Jetzer.
52949 2003-08-14 Jim Meyering <jim@meyering.net>
52950 and Paul Eggert <eggert@twinsun.com>
52952 Merges from coreutils, plus other fixes.
52953 * lib/physmem.c: Merge in portability changes from gcc/libiberty
52954 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
52955 for credits and details. Thanks to Kaveh Ghazi for helping
52956 to keep these files in sync.
52957 (ARRAY_SIZE): Define it.
52958 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
52959 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
52960 (memcasecmp): Don't assume size_t fits in unsigned int.
52961 Remove casts and duplicate code.
52962 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
52963 (memcpy): Remove definition.
52964 Merge in some clean-up and optimization changes from glibc.
52965 [BLOCKSIZE]: Move definition to top of file.
52966 Ensure that it is a multiple of 64.
52967 Rearrange loop exit tests so as to avoid performing an
52968 additional fread after encountering an error or EOF.
52969 * lib/md5.h (md5_uintptr): Define.
52970 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
52971 return to the initial working directory. Preserve errno
52973 * lib/idcache.c: Include "xalloc.h".
52974 (xmalloc, xrealloc): Remove decls.
52975 (getuser): Remove casts no longer required in C89.
52976 * lib/human.c: Include stdio.h, for sprintf.
52977 * lib/group-member.c: Include "xalloc.h".
52978 (xmalloc, xrealloc): Remove decls.
52979 (get_group_info): Remove casts no longer required in C89.
52980 * lib/getusershell.c (readname): Remove casts no longer required in
52982 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
52983 * lib/getline.c: Whitespace fix, from coreutils.
52985 2003-08-13 Paul Eggert <eggert@twinsun.com>
52987 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
52990 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
52991 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
52992 Undo previous (whitespace-only) change.
52994 2003-08-13 Paul Eggert <eggert@twinsun.com>
52996 * lib/exclude.c: Include <ctype.h>
52997 (IN_CTYPE_DOMAIN): New macro.
52998 (is_space): New fn.
52999 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
53002 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
53003 Undo previous (whitespace-only) change.
53005 2003-08-13 Paul Eggert <eggert@twinsun.com>
53007 * config/srclist-update: Change update back to the old behavior,
53008 leaving whitespace alone. Use one 'sed' command rather than a
53010 (fixlicense): Now a variable, not a function.
53011 (remove_trailing_blanks): Remove.
53012 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
53013 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
53014 Undo previous (whitespace-only) change.
53016 2003-08-12 Paul Eggert <eggert@twinsun.com>
53018 Merge from coreutils.
53019 * modules/euidaccess: Add lib_SOURCES, include for new
53022 2003-08-12 Paul Eggert <eggert@twinsun.com>
53024 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
53025 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
53026 Normalize leading white space and remove trailing white space.
53028 Merge from coreutils
53029 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
53031 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
53032 0.12.1. These files are now being upgraded automatically by
53033 ../config/srclist-update.
53035 2003-08-12 Paul Eggert <eggert@twinsun.com>
53037 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
53038 Normalize leading white space and remove trailing white space.
53039 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
53040 notice, as per ../config/srclist-update.
53042 Merge from coreutils.
53043 * lib/euidaccess.h: New file.
53044 * lib/euidaccess.c: Include it.
53045 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
53046 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
53047 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
53049 2003-08-12 Paul Eggert <eggert@twinsun.com>
53051 * config/srclist-update: Add copyright notice.
53052 (remove_id_lines, remove_trailing_blanks): New constants.
53053 (fixfile): Use them to normalize spacing a bit in copied files.
53054 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
53055 Normalize leading white space and remove trailing white space.
53057 * config/texinfo.tex: Sync with texinfo.
53059 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
53060 strtoul.c from libc, to merge coreutils whitespace changes.
53062 * config/srclist.txt: Get the following m4 files from gettext:
53063 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
53064 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
53065 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
53068 2003-08-12 Karl Berry <karl@gnu.org>
53070 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
53073 2003-08-11 Paul Eggert <eggert@twinsun.com>
53075 * modules/gnu-source, m4/gnu-source.m4:
53076 Remove; we're assuming Autoconf 2.54 or later now.
53077 Suggested by Bruno Haible.
53078 * MODULES.html.sh (func_all_modules): Remove gnu-source.
53080 2003-08-11 Bruno Haible <bruno@clisp.org>
53082 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
53084 2003-08-11 Bruno Haible <bruno@clisp.org>
53086 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
53087 (vasnprintf): Use it instead of wcslen.
53089 2003-08-11 Bruno Haible <bruno@clisp.org>
53091 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
53092 value to ensure that _Bool promotes to int. Use #define for _Bool when
53093 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
53095 2003-08-10 Karl Berry <karl@gnu.org>
53097 * lib/regex.h: update from libc (whitespace fix).
53099 2003-08-09 Paul Eggert <eggert@twinsun.com>
53101 Merge some files from coreutils. These changes were
53102 originally made by Jim Meyering.
53103 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
53104 many older Unixes require this.
53105 * lib/alloca.c (alloca): Remove cast to argument of free;
53106 no longer needed in C89.
53107 * lib/alloca_.h, regex.h: Fix white space to match
53108 what GNU indent does.
53110 2003-08-09 Paul Eggert <eggert@twinsun.com>
53112 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
53113 apparently Emacs's Unicode mode got confused before my 2003-08-05
53116 2003-08-08 Paul Eggert <eggert@twinsun.com>
53118 * m4/extensions.m4: New file.
53119 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
53120 Require gl_USE_SYSTEM_EXTENSIONS.
53121 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
53122 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
53124 2003-08-08 Paul Eggert <eggert@twinsun.com>
53126 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
53127 * modules/extensions, modules/gnu-source: New files.
53128 * modules/timespec, modules/unlocked-io: Depend on extensions.
53130 2003-08-07 Paul Eggert <eggert@twinsun.com>
53132 * modules/restrict: New file.
53133 * MODULES.html.sh (func_all_modules): Add restrict.
53134 * modules/regex: Depend on restrict.
53136 2003-08-07 Paul Eggert <eggert@twinsun.com>
53138 * m4/restrict.m4: New file.
53139 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
53141 2003-08-07 Bruno Haible <bruno@clisp.org>
53143 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
53144 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
53146 2003-08-07 Bruno Haible <bruno@clisp.org>
53148 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
53149 makes the module 'getndelim2' compatible with the module 'getline'.
53151 2003-08-05 Paul Eggert <eggert@twinsun.com>
53153 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
53154 byte with "\201" to avoid glitches when editing that source file
53155 with multi-gnome-terminal.
53157 2003-08-05 Paul Eggert <eggert@twinsun.com>
53159 * lib/bumpalloc.h: Remove.
53161 2003-08-05 Paul Eggert <eggert@twinsun.com>
53163 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
53164 * modules/bumpalloc: Remove.
53166 2003-08-04 Paul Eggert <eggert@twinsun.com>
53168 * lib/getloadavg.c: Change copyright notice and spacing to conform to
53171 Merge from coreutils.
53172 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
53174 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
53175 from Karl Berry, implemented by Jim Meyering.
53176 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
53177 from Dmitry V. Levin.
53178 Remove anachronistic cast of xrealloc.
53179 * lib/fnmatch_.h (__const): Remove. Use 'const'.
53180 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
53181 type. Otherwise, it wouldn't compile with at least /bin/cc on
53182 ymp-cray-unicos9.0.2.X.
53183 Combine two mostly-identical uses of alloca into one.
53184 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
53186 2003-08-04 Dave Love <d.love@dl.ac.uk>
53190 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
53191 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
53192 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
53193 obsolete NLIST_NAME_UNION.
53194 [__GNU__]: Undef BSD and FSCALE.
53195 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
53197 2003-08-03 Paul Eggert <eggert@twinsun.com>
53199 * lib/stdbool_.h (_Bool): Make it signed char, instead of
53200 an enum type, so that it's guaranteed to promote to int. See:
53201 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
53203 2003-08-03 Karl Berry <karl@gnu.org>
53205 * config/depcomp: update from automake.
53207 2003-07-31 Paul Eggert <eggert@twinsun.com>
53209 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
53210 (strerror): Don't assume that a printable int fits in 14 bytes.
53212 2003-07-31 Bruno Haible <bruno@clisp.org>
53214 * modules/getpass-gnu: New file.
53215 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
53217 2003-07-31 Bruno Haible <bruno@clisp.org>
53219 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
53221 2003-07-24 Karl Berry <karl@gnu.org>
53223 * config/missing: update from automake.
53225 2003-07-24 Derek Robert Price <derek@ximbiot.com>
53226 Bruno Haible <bruno@clisp.org>
53228 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
53229 * lib/getline.c (getline, getdelim): Likewise.
53230 Remove _GNU_SOURCE define; now it's defined in config.h through
53233 2003-07-23 Karl Berry <karl@gnu.org>
53235 * config/config.sub: update from prep.
53237 2003-07-22 Paul Eggert <eggert@twinsun.com>
53239 * modules/xalloc (Depends-on): Add exitfail.
53240 * modules/xmemcoll: Likewise.
53242 2003-07-22 Paul Eggert <eggert@twinsun.com>
53244 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
53245 over-parenthesization in macros.
53247 Sync with coreutils.
53249 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
53252 Use `exit_failure' for xalloc and xmemcoll instead of their own
53253 private exit-failure variables.
53254 * lib/xalloc.h (xalloc_exit_failure): Remove.
53255 * lib/xmalloc.c: Likewise. Include exitfail.h.
53256 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
53257 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
53258 * lib/xmemcoll.c: Likewise. Include exitfail.h.
53259 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
53261 2003-07-20 Jim Meyering <jim@meyering.net>
53263 * modules/closeout (Depends-on): Add exitfail.
53264 Suggestion from Bruno Haible.
53266 2003-07-19 Karl Berry <karl@gnu.org>
53268 * config/config.sub: update from prep.
53270 2003-07-18 Paul Eggert <eggert@twinsun.com>
53272 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
53274 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
53275 to test that it can stand by itself. Include "exitfail.h".
53276 Clients should set exit_failure instead.
53277 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
53279 2003-07-18 Bruno Haible <bruno@clisp.org>
53281 * modules/getndelim2: New file.
53282 * modules/getline: Share files with module getndelim2.
53283 * modules/getnline: Depend on getndelim2 instead of sharing files with
53284 it. Add getnline.c to lib_SOURCES.
53285 * MODULES.html.sh (func_all_modules): Add getndelim2.
53287 2003-07-18 Bruno Haible <bruno@clisp.org>
53289 * m4/getndelim2.m4: New file.
53290 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
53291 invoke gl_PREREQ_GETNDELIM2.
53292 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
53293 gl_PREREQ_GETNDELIM2.
53294 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
53297 2003-07-18 Bruno Haible <bruno@clisp.org>
53299 * lib/getndelim2.h: New file.
53300 * lib/getndelim2.c: Make into a module of its own. Include config.h,
53302 (getndelim2): Make non-static. Change return type to ssize_t.
53303 * lib/getline.h: Change argument names.
53304 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
53305 * lib/getnline.c: Include getndelim2.h.
53307 2003-07-18 Andreas Schwab <schwab@suse.de>
53309 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
53311 2003-07-17 Karl Berry <karl@gnu.org>
53313 * config/config.sub: update from prep.
53315 2003-07-17 Bruno Haible <bruno@clisp.org>
53317 * modules/getnline: New file.
53318 * modules/getline: Add lib/getndelim2.c to source file list.
53319 * MODULES.html.sh (func_all_modules): Add getnline.
53321 2003-07-17 Bruno Haible <bruno@clisp.org>
53323 * m4/getnline.m4: New file.
53325 2003-07-17 Bruno Haible <bruno@clisp.org>
53327 * m4/Makefile.am.in: Remove file.
53328 * m4/Makefile.am: Remove file.
53329 * m4/Makefile.in: Remove file.
53331 2003-07-17 Bruno Haible <bruno@clisp.org>
53333 * lib/getnline.h: New file.
53334 * lib/getnline.c: New file.
53335 * lib/getndelim2.c: New file, extracted from getline.c.
53336 (getndelim2): Renamed from getdelim2, with added nmax argument.
53337 * lib/getline.c: Include getndelim2.c.
53338 (getdelim2): Moved out to getndelim2.c.
53339 (getline, getdelim): Update.
53341 2003-07-17 Bruno Haible <bruno@clisp.org>
53343 * lib/Makefile.am: Remove file.
53344 * lib/Makefile.in: Remove file.
53346 2003-07-17 Bruno Haible <bruno@clisp.org>
53348 * configure.in: Remove file.
53349 * Makefile.in: Remove file.
53351 2003-07-17 Bruno Haible <bruno@clisp.org>
53353 * MODULES.html.sh: Put the </BODY> right before </HTML>.
53355 2003-07-16 Karl Berry <karl@gnu.org>
53357 * config/srclist-update: was running fixlicense twice, which caused
53358 texinfo.tex to be nullified for some reason. Simplify,
53359 $gplsrc is no longer needed as far as I can see?
53361 2003-07-16 Jim Meyering <jim@meyering.net>
53363 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
53365 2003-07-15 Paul Eggert <eggert@twinsun.com>
53367 * config/srclist.txt: Get the following files from gettext-runtime/intl
53368 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
53369 ref-del.sin. From Bruno Haible.
53370 * config/srclist-update (fixfile): Change grep pattern again, since the
53371 previous fix didn't work (there was another trailing $). Use
53372 '[$]' to escape the $s.
53374 2003-07-15 Karl Berry <karl@gnu.org>
53376 * lib/vasnprintf.c: update from gettext.
53378 2003-07-15 Karl Berry <karl@gnu.org>
53380 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
53381 gets expanded when surrounded by '$'.
53383 2003-07-15 Jim Meyering <jim@meyering.net>
53385 * modules/save-cwd: Don't depend on error. From Derek Price.
53387 2003-07-15 Jim Meyering <jim@meyering.net>
53389 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
53391 2003-07-14 Simon Josefsson <jas@extundo.com>
53393 * modules/mempcpy: New file.
53394 * MODULES.html.sh (func_all_modules): Add mempcpy.
53396 2003-07-14 Simon Josefsson <jas@extundo.com>
53398 * m4/mempcpy.m4: New file.
53400 2003-07-14 Simon Josefsson <jas@extundo.com>
53402 * lib/mempcpy.h: New file.
53403 * lib/mempcpy.c: New file.
53405 2003-07-14 Paul Eggert <eggert@twinsun.com>
53407 * modules/getdate, modules/posixtm: Depend on mktime.
53409 2003-07-14 Paul Eggert <eggert@twinsun.com>
53411 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
53412 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
53413 unicodeio.c, unicodeio.h, unlocked-io.h:
53414 Switch from LGPL to GPL.
53416 2003-07-14 Paul Eggert <eggert@twinsun.com>
53418 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
53419 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
53420 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
53421 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
53422 vasprintf.c, vasprintf.h: Regenerate. These files are now being
53423 updated automatically by ../config/srclist-update. This changes
53424 their license from LPGL to GPL.
53426 2003-07-14 Paul Eggert <eggert@twinsun.com>
53428 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
53429 assumed to refer to the root of the most recent stable gettext version.
53430 * config/srclistvars.sh: Add defaults for eggert.
53431 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
53432 Match "This program" as well as "The program". This is needed
53435 2003-07-14 Jim Meyering <jim@meyering.net>
53437 Don't emit diagnostics. Let callers do that.
53438 * lib/save-cwd.c: Don't include "error.h".
53439 (save_cwd): Don't call error. Ensure that errno is valid
53440 when returning nonzero.
53442 * lib/save-cwd.h (restore_cwd): Update prototype.
53443 * lib/save-cwd.c (restore_cwd): Remove two parameters.
53444 Simplify. Don't call error upon failure. Let callers do that.
53445 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
53446 when auditing is enabled. But don't bother updating the #if.
53448 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
53450 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
53451 it breaks C++ compilation.
53452 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
53454 2003-07-10 Simon Josefsson <jas@extundo.com>
53456 * modules/strchrnul (Makefile.am): Add strchrnul.h.
53458 2003-07-10 Jim Meyering <jim@meyering.net>
53460 * m4/clock_time.m4: Remove trailing blank.
53461 * m4/intmax_t.m4: Likewise.
53463 2003-07-10 Jim Meyering <jim@meyering.net>
53465 * lib/vasnprintf.c: Remove trailing blanks.
53466 Make cpp indentation consistent.
53468 2003-07-09 Paul Eggert <eggert@twinsun.com>
53470 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
53471 posixver.c, strftime.c, strnlen.c, strverscmp.c:
53472 Switch from LGPL to GPL.
53474 2003-07-09 Paul Eggert <eggert@twinsun.com>
53476 * config/srclist.txt: Sort sublists. Add
53477 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
53478 that differ from gnulib for one reason or another; we'd like this list
53479 to be smaller but for now let's document what we have.
53481 2003-07-08 Paul Eggert <eggert@twinsun.com>
53483 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
53484 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
53485 and sweeter "eval x=$x".
53486 * config/srclist.txt: Get lib/argp* from glibc.
53488 2003-07-07 Paul Eggert <eggert@twinsun.com>
53490 * lib/mktime.c: Fix some boundary cases and remove need for floating
53493 Issue a compile-time diagnostic if time_t is floating point, or if
53494 two's complement arithmetic is not in effect, or if arithmetic
53495 right shift does not propagate the sign. These assumptions were
53496 all in the original code but they weren't checked.
53498 (TIME_T_MIDPOINT, verify): New macros.
53499 (__isleap): Remove; it has integer overflow problems.
53500 (leapyear): New function, without those problems.
53501 (ydhms_tm_diff): Remove; splitting into two parts.
53502 (ydhms_diff): New function, containing the arithmetic part of
53503 the old ydhms_tm_diff function. Issue a compile-time
53504 diagnostic if we are not using C99 integer division.
53505 Avoid casts when possible.
53506 (guess_time_tm): New function, containing the checking part of
53507 the old ydhms_tm_diff function. Return the new value, rather than
53508 the difference between it and the old. Accept a new argument T
53509 so that *T specifies the old value. Check for overflow in the result.
53511 (__mktime_internal): Use a time_t offset, not a long int offset.
53512 This undoes the 2003-06-04 change, which is no longer needed now
53513 that we have better overflow checking.
53514 (localtime_offset): Likewise.
53516 (__mktime_internal): Avoid harmful overflow on hosts where time_t
53517 and long are 64-bit but int is only 32-bit.
53518 (ydhms_diff): Use long int to store year1 and yday1.
53519 Issue a compile-time diagnostic if long int is not wide enough.
53521 (__mktime_internal): Use long int to store adjusted year and yday.
53522 Use plain C rather than preprocessor commands, if that doesn't
53524 Check for overflow (and try to repair) after each probe
53525 rather than checking only at the very end. This avoids some bugs
53526 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
53527 does not equal GMT offset at maximum time).
53528 Use integer to check for overflow rather than floating point; this
53529 is more portable to non-IEEE hosts, and is a tad faster.
53530 When we detect that we are oscillating between two values,
53531 don't check whether tm_isdst has the requested value, since
53532 we already know the answer. When tm_isdst has the wrong value,
53533 use a different heuristic to find the right one, based on the
53534 extreme values actually observed in practice in tz2003a,
53535 rather than the (overly optimistic) "previous 3 calendar quarters".
53537 (not_equal_tm, print_tm, check_result): Use "const T" rather than
53538 "T const" to accommodate glibc style.
53539 (check_result): Use less-confusing report format. "long" -> "long int.
53541 Don't loop if the iteration overflows time_t.
53542 Allow a negative step in the iteration.
53544 2003-07-06 Karl Berry <karl@gnu.org>
53546 * config/depcomp: update from automake.
53547 * config/config.sub: update from prep.
53549 2003-07-03 Karl Berry <karl@gnu.org>
53551 * config/config.guess: update from prep.
53553 2003-07-01 Paul Eggert <eggert@twinsun.com>
53555 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
53556 xreadlink.c now includes it unconditionally.
53558 2003-07-01 Paul Eggert <eggert@twinsun.com>
53560 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
53561 having it depend on HAVE_SYS_TYPES_H.
53563 2003-07-01 Bruno Haible <bruno@clisp.org>
53565 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
53566 <sys/types.h> should be sufficient.
53567 Reported by Paul Eggert.
53569 2003-06-26 Karl Berry <karl@gnu.org>
53571 * config/depcomp: update from automake.
53573 2003-06-26 Bruno Haible <bruno@clisp.org>
53575 * modules/human: Depend on module stdbool.
53577 2003-06-25 Bruno Haible <bruno@clisp.org>
53579 * modules/readlink: New file.
53580 * modules/xreadlink: Depend on it.
53581 * MODULES.html.sh (func_all_modules): Add readlink.
53583 2003-06-25 Bruno Haible <bruno@clisp.org>
53585 * m4/readlink.m4: New file.
53587 2003-06-25 Bruno Haible <bruno@clisp.org>
53589 * lib/readlink.c: New file.
53591 2003-06-22 Karl Berry <karl@gnu.org>
53593 * config/srclist.txt: update mkinstalldirs from automake.
53594 * config/mkinstalldirs: update.
53596 2003-06-22 Bruno Haible <bruno@clisp.org>
53598 Portability to mingw32.
53599 * m4/ssize_t.m4: New file, from GNU gettext.
53600 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
53601 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
53603 2003-06-22 Bruno Haible <bruno@clisp.org>
53605 * modules/safe-read: Add m4/ssize_t.m4.
53606 * modules/xreadlink: Add m4/ssize_t.m4.
53608 2003-06-20 Bruno Haible <bruno@clisp.org>
53610 Assume C89, so PARAMS isn't needed.
53611 * lib/unicodeio.h (PARAMS): Remove.
53612 * lib/unicodeio.c: Don't use PARAMS.
53614 2003-06-18 Karl Berry <karl@gnu.org>
53616 * config/config.{guess,sub}: update from prep.
53618 2003-06-18 Jim Meyering <jim@meyering.net>
53620 Merge changes from coreutils.
53621 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
53622 Remove explicit declarations of xmalloc and realloc.
53624 (read_utmp): Remove anachronistic cast of xmalloc.
53626 2003-06-17 Paul Eggert <eggert@twinsun.com>
53628 Assume C89, so PARAMS isn't needed.
53629 * lib/backupfile.h (PARAMS): Remove. All uses removed.
53630 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
53631 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
53632 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
53633 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
53634 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
53635 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
53636 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
53637 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
53638 lib/xstrtod.h, lib/xstrtol.h: Likewise.
53639 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
53640 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
53641 no longer needed. Anyway, config.h should always be included before any
53644 2003-06-11 Simon Josefsson <jas@extundo.com>
53646 * modules/sysexits: New file.
53647 * MODULES.html.sh (func_all_modules): Add sysexits.
53649 2003-06-11 Simon Josefsson <jas@extundo.com>
53651 * lib/sysexit_.h: New file.
53653 2003-06-11 Derek Price <derek@ximbiot.com>
53655 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
53658 2003-06-11 Bruno Haible <bruno@clisp.org>
53660 * m4/sysexits.m4: New file.
53662 2003-06-10 Simon Josefsson <jas@extundo.com>
53664 * lib/argp.h: New file, from glibc.
53665 * lib/argp-ba.c: New file, from glibc.
53666 * lib/argp-eexst.c: New file, from glibc.
53667 * lib/argp-fmtstream.c: New file, from glibc.
53668 * lib/argp-fmtstream.h: New file, from glibc.
53669 * lib/argp-fs-xinl.c: New file, from glibc.
53670 * lib/argp-help.c: New file, from glibc.
53671 * lib/argp-namefrob.h: New file, from glibc.
53672 * lib/argp-parse.c: New file, from glibc.
53673 * lib/argp-pv.c: New file, from glibc.
53674 * lib/argp-pvh.c: New file, from glibc.
53675 * lib/argp-xinl.c: New file, from glibc.
53677 2003-06-10 Simon Josefsson <jas@extundo.com>
53679 * modules/strchrnul: New file.
53681 2003-06-10 Simon Josefsson <jas@extundo.com>
53683 * modules/argp: New file.
53685 2003-06-10 Simon Josefsson <jas@extundo.com>
53687 * m4/strchrnul.m4: New file.
53689 2003-06-10 Simon Josefsson <jas@extundo.com>
53691 * lib/strchrnul.h: New file.
53692 * lib/strchrnul.c: New file.
53694 2003-06-10 Bruno Haible <bruno@clisp.org>
53696 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
53698 2003-06-07 Karl Berry <karl@gnu.org>
53700 * config/config.{guess,sub}: update from prep.
53702 2003-06-07 Jim Meyering <jim@meyering.net>
53704 * modules/strtod: Use $(...) notation, not @...@ for
53705 AC_REPLACE'd variables.
53706 * modules/localcharset: Likewise.
53708 2003-06-07 Jim Meyering <jim@meyering.net>
53710 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
53711 in place of my name in the copyright comment.
53712 Remove definition and uses of __P.
53715 * lib/stat.c: Don't declare xmalloc explicitly.
53716 Instead, include "xalloc.h".
53717 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
53718 xrealloc, and xcalloc return values.
53719 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
53721 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
53723 2003-06-07 Bruno Haible <bruno@clisp.org>
53725 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
53726 avoid AC_CONFIG_LINKS.
53727 * modules/fnmatch (Makefile.am): Use explicit creation rule for
53728 fnmatch.h, to avoid AC_CONFIG_LINKS.
53729 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
53731 2003-06-07 Bruno Haible <bruno@clisp.org>
53733 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
53734 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
53735 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
53737 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
53738 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
53741 2003-06-06 Jim Meyering <jim@meyering.net>
53743 Merge from coreutils.
53744 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
53745 Consolidate declarations and initializations of *_base* locals.
53747 Merge from coreutils.
53748 This avoids a core dump on systems without GNU putenv,
53749 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
53750 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
53751 (unsetenv): New static function, from GNU libc.
53752 (rpl_putenv): Use it.
53754 * lib/modechange.c: Remove trailing blanks.
53756 Merge from coreutils.
53757 * lib/fsusage.c: Remove declaration of statfs.
53758 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
53760 * lib/posixtm.c: Include <stdbool.h> unconditionally.
53762 2003-06-06 Jim Meyering <jim@meyering.net>
53764 * lib/stdbool_.h: Renamed from stdbool.h.in.
53766 2003-06-06 Jim Meyering <jim@meyering.net>
53767 Bruno Haible <bruno@clisp.org>
53769 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
53770 Adjust Makefile.am snippet not to redirect directly to target.
53771 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
53773 2003-06-05 Paul Eggert <eggert@twinsun.com>
53775 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
53776 mismatch, look in future quarters as well as past. This fixes a
53777 bug when processing fall-backwards gaps immediately after a long
53778 period of daylight-saving time.
53780 * lib/mktime.c: Assume freestanding C89 or better.
53781 (HAVE_LIMITS_H): Remove. Assume it's 1.
53782 (__P): Remove; not used.
53783 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
53784 (mktime, not_equal_tm, print_tm, check_result,
53785 main): Use prototypes. Use const * where appropriate.
53786 (main): Fix typo in testing code that uncovered by above changes.
53787 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
53789 2003-06-04 Paul Eggert <eggert@twinsun.com>
53791 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
53792 locale.h, localeconv. This merges changes from coreutils.
53794 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
53795 It can be removed after the next Autoconf is released.
53796 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
53799 2003-06-04 Paul Eggert <eggert@twinsun.com>
53801 * lib/mktime.c: Fix Debian bug 177940
53802 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
53803 (localtime_offset): Now long int, not time_t, because we want it
53804 to be guaranteed to be signed. All uses changed.
53805 (__mktime_internal): If overflow would occur when adding offset,
53808 Merge 'human' changes from coreutils. Rewrite to support
53809 locale-specific notations like thousands separators.
53810 * lib/human.c: Simplify authorship notice.
53811 Include human.h immediately after config.h.
53812 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
53813 <limits.h>: Do not include, since human.h does.
53814 (SIZE_MAX, UINTMAX_MAX): New macros.
53815 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
53816 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
53817 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
53818 (power_letter): Renamed from suffixes.
53819 (generate_suffix_backwards): Remove.
53820 (adjust_value): Now takes int style (because of human.h changes)
53821 and long double value (for greater precision on some platforms).
53822 (group_number): New function.
53823 (human_readable): Use it. Use integer options, not enum.
53824 Put the options before the sizes in the arg list.
53825 Support all the new options.
53826 The old human_readable function has been removed;
53827 use inttostr.h instead.
53828 (human_readable, default_block_size, humblock):
53829 Use uintmax_t, not int, for block sizes.
53830 (human_readable_inexact, block_size_types): Remove.
53831 (block_size_opts): New constant.
53832 (human_options): Renamed from human_block_size, with new signature
53833 that allows block sizes up to UINTMAX_MAX. All callers changed.
53834 * lib/human.h: Add copyright and authorship notice.
53835 Include <limits.h> and <stdbool.h> unconditionally.
53836 (PARAMS): Remove. All uses removed.
53837 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
53838 (enum human_inexact_style): Remove tag; now a nameless enum.
53839 (human_floor, human_ceiling, human_round_to_even): Now have
53840 values 2, 0, 1 rather than -1, 1, 0.
53841 (human_group_digits, human_suppress_point_zero, human_autoscale,
53842 human_base_1024, human_SI, human_B): New constants.
53843 (human_readable_inexact, human_block_size): Remove.
53844 (human_readable): Size args are now uintmax_t, not int.
53845 (human_options): New decl.
53847 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
53848 unnecessary now that we assume C89 or better. This change
53849 imported from coreutils.
53851 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
53852 arbitrarily. This is the same patch as 2003-05-28, but it got lost
53853 in the 2003-05-30 sync from glibc.
53855 .h files should stand alone, but we shouldn't include <sys/types.h>
53856 if we can get away with just <stddef.h>.
53858 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
53859 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
53860 rather than <sys/types.h>, as we merely need size_t.
53861 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
53863 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
53864 Include <stdio.h>, to get FILE.
53865 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
53866 memcasecmp.h has included <stddef.h> and all we need is size_t.
53867 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
53868 our interface, instead of including <sys/types.h>
53870 2003-06-04 Paul Eggert <eggert@twinsun.com>
53872 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
53873 now, as glibc mktime is buggy on non-glibc systems.
53875 2003-06-03 Karl Berry <karl@gnu.org>
53877 * config/config.sub: update from prep.
53879 2003-06-02 Paul Eggert <eggert@twinsun.com>
53882 Fix some minor time-related bugs with POSIX time arguments.
53883 Some valid time stamps were being rejected (notably -1, and
53884 time stamps before 1900 on 64-bit hosts). And some invalid
53885 time stamps were being accepted, e.g. September 31.
53887 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
53888 that we can return (time_t) -1 successfully.
53889 * lib/posixtm.c: Likewise.
53890 [HAVE_STDBOOL_H]: Include <stdbool.h>.
53891 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
53892 (t): Remove static var.
53893 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
53894 of static var. All uses changed.
53895 (year): Do not reject years before 1900; they can occur with
53897 (posix_time_parse): Do not check for out-of-range components;
53898 that is now the caller's responsibility, since our checks were
53899 only approximations.
53900 (posixtime): Use mktime to check for out-of-range components,
53901 since it knows them exactly.
53902 If mktime returns (time_t) -1, check whether an error actually occurred
53903 by invoking localtime on -1.
53904 (main) [TEST_POSIXTIME]: Check for input data errors, and report
53905 posixtime failures better.
53906 Improve the test data (in comments only).
53908 2003-06-02 Karl Berry <karl@gnu.org>
53910 * config/mkinstalldirs (version): new variable.
53911 (--version): new option.
53912 (usage): improve message.
53914 2003-05-30 Karl Berry <karl@gnu.org>
53916 * lib/mktime.c: update from libc.
53918 2003-05-30 Bruno Haible <bruno@clisp.org>
53920 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
53921 * config/config.rpath: Upgrade to gettext-0.12.1.
53923 2003-05-30 Bruno Haible <bruno@clisp.org>
53925 * m4/gettext.m4: Upgrade to gettext-0.12.1.
53926 * m4/nls.m4: New file, from gettext-0.12.1.
53927 * m4/po.m4: New file, from gettext-0.12.1.
53928 * m4/progtest.m4: Upgrade to gettext-0.12.1.
53930 2003-05-30 Bruno Haible <bruno@clisp.org>
53932 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
53933 * lib/localcharset.h: Likewise.
53934 * lib/localcharset.c: Likewise.
53936 2003-05-29 Karl Berry <karl@gnu.org>
53938 * config/config.rpath: update from gettext.
53940 2003-05-28 Paul Eggert <eggert@twinsun.com>
53942 Assume the headers required for C89 freestanding compilers.
53943 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
53944 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
53945 * m4/human.m4 (gl_HUMAN): Likewise.
53946 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
53947 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
53948 * m4/userspec.m4 (gl_USERSPEC): Likewise.
53949 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
53950 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53951 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
53953 2003-05-28 Paul Eggert <eggert@twinsun.com>
53955 Assume the headers required for C89 freestanding compilers.
53956 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
53957 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
53958 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
53959 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
53960 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
53961 define, since <limits.h> is guaranteed to do that.
53962 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
53963 * lib/exclude.c: Include <stdbool.h> unconditionally.
53964 * lib/tempname.c: Include <stddef.h> unconditionally.
53965 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
53966 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
53967 <stddef.h> does that.
53968 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
53969 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
53970 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
53972 * lib/xstrtol.c: Likewise.
53973 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
53974 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
53976 * lib/addext.c (addext): Use assignment rather than cast, to avoid
53977 warnings on some platforms.
53979 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
53982 2003-05-26 Jim Meyering <jim@meyering.net>
53984 Merge in a change from coreutils:
53985 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
53986 that is guaranteed to be `no'. Use `no_such_member' to indicate
53987 that condition, rather than `-1' which is slightly misleading.
53988 Change the name of the cache variable to have the gl_ prefix.
53989 Prompted by a patch from Richard Dawe for DJGPP.
53991 2003-05-24 Karl Berry <karl@gnu.org>
53993 * config/config.guess: update from prep.
53995 2003-05-22 Karl Berry <karl@gnu.org>
53997 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
53999 2003-05-20 Karl Berry <karl@gnu.org>
54001 * config/config.guess: update from prep.
54003 2003-05-18 Karl Berry <karl@gnu.org>
54005 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
54006 might actually be set by the user.
54008 * config/depcomp, install-sh, mdate-sh: update from automake.
54010 2003-05-17 Bruno Haible <bruno@clisp.org>
54012 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
54013 invalid expansion for AC_EGREP_CPP.
54014 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
54015 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
54016 Suggested by Akim Demaille <akim@epita.fr> in
54017 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
54019 2003-05-12 Jim Meyering <jim@meyering.net>
54021 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
54022 the space-padded-by-default conversion specifiers, %e, %k, %l.
54024 2003-05-12 Bruno Haible <bruno@clisp.org>
54026 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
54027 the string is longer than 4 KB.
54029 2003-05-11 Karl Berry <karl@gnu.org>
54031 * config/config.{guess,sub}: update from prep.
54033 2003-05-09 Bruno Haible <bruno@clisp.org>
54035 * modules/error: Add m4/strerror_r.m4 to file list.
54037 2003-05-03 Bruno Haible <bruno@clisp.org>
54039 Upgrade to Unicode-4.0.
54040 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
54041 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
54042 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
54043 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
54044 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
54045 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
54046 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
54047 Change width of U+E0100..U+E01EF from 1 to 0.
54049 2003-04-25 Jim Meyering <jim@meyering.net>
54051 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
54052 of type size_t, not int.
54054 2003-04-25 Bruno Haible <bruno@clisp.org>
54056 * lib/copy-file.c: Include <stddef.h>, for size_t.
54058 2003-04-21 Paul Eggert <eggert@twinsun.com>
54060 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
54061 code which expansion is under static control. Patch imported from
54062 Akim Demaille's patch to Bison; see
54063 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
54065 2003-04-14 Bruno Haible <bruno@clisp.org>
54067 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
54069 2003-04-11 Jim Meyering <jim@meyering.net>
54071 Merge changes from Coreutils.
54073 2003-03-22 Jim Meyering <jim@meyering.net>
54075 * lib/strftime.c (widen): Cast alloca return value to proper type.
54077 2003-01-19 Ulrich Drepper <drepper@redhat.com>
54080 * lib/strftime.c (my_strftime): Handle very large width
54081 specifications for numeric values correctly. Improve checks for
54084 2003-01-19 Jim Meyering <jim@meyering.net>
54086 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
54088 (nl_get_alt_digit) [! defined my_strftime]: Define.
54089 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
54090 _nl_get_alt_digit and _nl_get_walt_digit.
54092 * lib/strftime.c (my_strftime): Merge in locale-related changes from
54093 libc. These changes have no effect outside of _LIBC.
54095 2003-04-10 Bruno Haible <bruno@clisp.org>
54097 * modules/findprog: New file.
54098 * MODULES.html.sh (func_all_modules): Add it.
54100 2003-04-10 Bruno Haible <bruno@clisp.org>
54102 * m4/findprog.m4: New file.
54103 * m4/eaccess.m4: New file.
54105 2003-04-10 Bruno Haible <bruno@clisp.org>
54107 * lib/findprog.h: New file, from GNU gettext.
54108 * lib/findprog.c: New file, from GNU gettext.
54110 2003-04-05 Jim Meyering <jim@meyering.net>
54112 Merge changes from Coreutils.
54114 * lib/exclude.h (PARAMS): Remove definition and uses.
54115 * lib/exclude.c: Remove uses of `PARAMS'.
54117 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
54118 Add test-cases for DOS filenames. Declare program_name.
54119 (main): Set up program_name. Patch by Rich Dawe.
54121 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
54123 Use mntctl's return value to drive the entry-processing loop, since
54124 we can't rely on the value of the vmt_length member in the last
54125 entry. On some systems doing so could result in exhausting
54126 virtual memory. Based in part on a patch from Mike Jetzer.
54128 2003-04-04 Bruno Haible <bruno@clisp.org>
54130 * modules/linebreak: New file.
54131 * MODULES.html.sh (func_all_modules): Add it.
54133 2003-04-04 Bruno Haible <bruno@clisp.org>
54135 * m4/linebreak.m4: New file.
54137 2003-04-04 Bruno Haible <bruno@clisp.org>
54139 * lib/linebreak.h: New file, from GNU gettext.
54140 * lib/linebreak.c: New file, from GNU gettext with slight
54142 * lib/lbrkprop.h: New file, from GNU gettext.
54144 2003-04-03 Bruno Haible <bruno@clisp.org>
54146 * modules/utf8-ucs4: New file.
54147 * modules/utf16-ucs4: New file.
54148 * modules/ucs4-utf8: New file.
54149 * modules/ucs4-utf16: New file.
54150 * MODULES.html.sh (func_all_modules): Add them.
54152 2003-04-03 Bruno Haible <bruno@clisp.org>
54154 * m4/utf-ucs4.m4: New file.
54155 * m4/ucs4-utf.m4: New file.
54157 2003-04-03 Bruno Haible <bruno@clisp.org>
54159 * lib/utf8-ucs4.h: New file, from GNU gettext.
54160 * lib/utf16-ucs4.h: New file, from GNU gettext.
54161 * lib/ucs4-utf8.h: New file, from GNU gettext.
54162 * lib/ucs4-utf16.h: New file, from GNU gettext.
54164 2003-04-02 Bruno Haible <bruno@clisp.org>
54166 * modules/binary-io: New file.
54167 * MODULES.html.sh (func_all_modules): Add it.
54169 2003-04-02 Bruno Haible <bruno@clisp.org>
54171 * lib/binary-io.h: New file, from GNU gettext.
54173 2003-04-01 Bruno Haible <bruno@clisp.org>
54175 * modules/pathname: New file.
54176 * MODULES.html.sh (func_all_modules): Add it.
54178 2003-04-01 Bruno Haible <bruno@clisp.org>
54180 * lib/pathname.h: New file, from GNU gettext.
54181 * lib/concatpath.c: New file, from GNU gettext.
54183 2003-03-30 Bruno Haible <bruno@clisp.org>
54185 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
54187 2003-03-30 Bruno Haible <bruno@clisp.org>
54189 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
54190 function chown() doesn't exist.
54192 2003-03-28 Bruno Haible <bruno@clisp.org>
54194 * modules/copy-file: New file.
54195 * MODULES.html.sh (func_all_modules): Add it.
54197 2003-03-28 Bruno Haible <bruno@clisp.org>
54199 * m4/copy-file.m4: New file.
54201 2003-03-28 Bruno Haible <bruno@clisp.org>
54203 * lib/copy-file.h: New file, from GNU gettext.
54204 * lib/copy-file.c: New file, from GNU gettext.
54206 2003-03-18 Jim Meyering <jim@meyering.net>
54208 * lib/quote.c (quote_n): Fix typo in comment.
54210 2003-03-18 Bruno Haible <bruno@clisp.org>
54212 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
54214 * m4/onceonly_2_57.m4: Likewise.
54216 2003-03-17 Bruno Haible <bruno@clisp.org>
54218 * m4/onceonly.m4: Require autoconf 2.54 or newer.
54219 (m4_quote): Remove macro.
54220 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
54222 2003-03-14 Jim Meyering <jim@meyering.net>
54224 Merge changes from Coreutils.
54225 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
54226 to be const, in order to avoid warnings.
54227 (obstack_room): Likewise.
54228 (obstack_empty_p): Likewise.
54230 2003-03-14 Bruno Haible <bruno@clisp.org>
54232 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
54233 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
54235 2003-03-13 Paul Eggert <eggert@twinsun.com>
54237 Merge changes from Bison.
54238 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
54239 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
54240 when compiling Bison 1.875's `bitset bset = obstack_alloc
54241 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
54242 * lib/hash.c: Include <stdbool.h> unconditionally.
54244 2003-03-13 Paul Eggert <eggert@twinsun.com>
54246 * m4/onceonly.m4 (m4_quote): New macro.
54247 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
54248 Quote AC_FOREACH variable-expansions properly.
54250 2003-03-13 Paul Eggert <eggert@twinsun.com>
54252 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
54254 2003-03-09 Paul Eggert <eggert@twinsun.com>
54256 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
54257 Reported by Bruce Becker; see:
54258 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
54260 2003-03-03 Paul Eggert <eggert@twinsun.com>
54261 Bruno Haible <bruno@clisp.org>
54263 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
54264 Reported by John Hughes, see
54265 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
54267 2003-02-20 Bruno Haible <bruno@clisp.org>
54269 * MODULES.html.sh (func_all_modules): Add poll.
54271 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
54273 * modules/poll: New file.
54275 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
54277 * lib/poll_.h: New file.
54278 * lib/poll.c: New file.
54280 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
54282 * m4/poll.m4: New file.
54284 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
54286 * modules/mathl: New file.
54288 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
54290 * lib/mathl.h: New file.
54291 * lib/acosl.c: New file.
54292 * lib/asinl.c: New file.
54293 * lib/atanl.c: New file.
54294 * lib/ceill.c: New file.
54295 * lib/cosl.c: New file.
54296 * lib/expl.c: New file.
54297 * lib/floorl.c: New file.
54298 * lib/frexpl.c: New file.
54299 * lib/ldexpl.c: New file.
54300 * lib/logl.c: New file.
54301 * lib/sincosl.c: New file.
54302 * lib/sinl.c: New file.
54303 * lib/sqrtl.c: New file.
54304 * lib/tanl.c: New file.
54305 * lib/trigl.c: New file.
54306 * lib/trigl.h: New file.
54308 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
54310 * m4/mathl.m4: New file.
54312 2003-02-18 Bruno Haible <bruno@clisp.org>
54314 * MODULES.html.sh (func_all_modules): Add mathl.
54316 2003-02-17 Bruno Haible <bruno@clisp.org>
54318 * modules/mkdtemp: New module.
54319 * MODULES.html.sh (func_all_modules): Add it.
54321 2003-02-17 Bruno Haible <bruno@clisp.org>
54323 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
54325 2003-02-17 Bruno Haible <bruno@clisp.org>
54327 * lib/mkdtemp.h: New file, from GNU gettext.
54328 * lib/mkdtemp.c: New file, from GNU gettext.
54330 2003-02-02 Jim Meyering <jim@meyering.net>
54332 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
54335 2003-01-31 Bruno Haible <bruno@clisp.org>
54337 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
54339 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
54341 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
54343 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
54346 2003-01-31 Bruno Haible <bruno@clisp.org>
54348 * lib/rename.c: #undef rename before defining rpl_rename.
54349 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
54351 2003-01-30 Bruno Haible <bruno@clisp.org>
54353 * modules/vasnprintf, modules/vasprintf: New modules.
54354 * MODULES.html.sh (func_all_modules): Add them.
54356 2003-01-30 Bruno Haible <bruno@clisp.org>
54358 * m4/signed.m4: New file, from GNU gettext.
54359 * m4/longdouble.m4: New file, from GNU gettext.
54360 * m4/wchar_t.m4: New file, from GNU gettext.
54361 * m4/wint_t.m4: New file, from GNU gettext.
54362 * m4/vasnprintf.m4: New file.
54363 * m4/vasprintf.m4: New file.
54365 2003-01-30 Bruno Haible <bruno@clisp.org>
54367 * lib/printf-args.h: New file, from GNU gettext.
54368 * lib/printf-args.c: New file, from GNU gettext.
54369 * lib/printf-parse.h: New file, from GNU gettext.
54370 * lib/printf-parse.c: New file, from GNU gettext.
54371 * lib/vasnprintf.h: New file, from GNU gettext.
54372 * lib/vasnprintf.c: New file, from GNU gettext.
54373 * lib/asnprintf.c: New file, from GNU gettext.
54374 * lib/vasprintf.h: New file, from GNU gettext with modifications.
54375 * lib/vasprintf.c: New file, from GNU gettext.
54376 * lib/asprintf.c: New file, from GNU gettext.
54378 2003-01-29 Bruno Haible <bruno@clisp.org>
54380 * modules/stpncpy: New module.
54381 * MODULES.html.sh (func_all_modules): Add it.
54383 2003-01-29 Bruno Haible <bruno@clisp.org>
54385 * m4/stpncpy.m4: New file.
54387 2003-01-29 Bruno Haible <bruno@clisp.org>
54389 * lib/stpncpy.h: New file, from GNU gettext with modifications.
54390 * lib/stpncpy.c: New file, from GNU gettext with modifications.
54392 2003-01-28 Bruno Haible <bruno@clisp.org>
54394 * modules/c-ctype: New module.
54395 * MODULES.html.sh (func_all_modules): Add it.
54397 2003-01-28 Bruno Haible <bruno@clisp.org>
54399 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
54401 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
54404 2003-01-27 Bruno Haible <bruno@clisp.org>
54406 * modules/xsetenv: New module.
54407 * MODULES.html.sh (func_all_modules): Add it.
54409 2003-01-27 Bruno Haible <bruno@clisp.org>
54411 * lib/xsetenv.h: New file, from GNU gettext.
54412 * lib/xsetenv.c: New file, from GNU gettext.
54414 2003-01-23 Jim Meyering <jim@meyering.net>
54416 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
54417 from working on systems without dirfd (at least Irix and OSF1/Tru64).
54419 2003-01-23 Bruno Haible <bruno@clisp.org>
54421 * modules/minmax: New module.
54422 * MODULES.html.sh (func_all_modules): Add it.
54424 2003-01-23 Bruno Haible <bruno@clisp.org>
54426 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
54429 2003-01-22 Bruno Haible <bruno@clisp.org>
54431 * modules/exit: New module.
54432 * MODULES.html.sh (func_all_modules): Add it.
54434 2003-01-22 Bruno Haible <bruno@clisp.org>
54436 * lib/exit.h: New file, from GNU gettext.
54438 2003-01-19 Bruno Haible <bruno@clisp.org>
54440 * gnulib-tool: Recognize option --extract-maintainer.
54441 (func_get_maintainer): New function.
54442 * modules/*: Add Maintainer entry.
54444 2003-01-16 Jim Meyering <jim@meyering.net>
54446 * m4/regex.m4: The `regex' struct is both input and output.
54447 Initialize it before each use. Patch by Tim Waugh.
54449 2003-01-16 Bruno Haible <bruno@clisp.org>
54451 * MODULES.html.sh: Add a table of contents. Add the module name as
54452 leftmost column. Add hyperlinks.
54454 2003-01-15 Bruno Haible <bruno@clisp.org>
54456 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
54458 2003-01-15 Bruno Haible <bruno@clisp.org>
54460 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
54461 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
54464 2003-01-15 Bruno Haible <bruno@clisp.org>
54466 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
54468 2003-01-15 Bruno Haible <bruno@clisp.org>
54470 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
54471 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
54473 2003-01-14 Jim Meyering <jim@meyering.net>
54475 * lib/same.c (same_name): Tweak a comment.
54477 2003-01-14 Bruno Haible <bruno@clisp.org>
54479 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
54480 when a string comparison is sufficient.
54482 2003-01-14 Bruno Haible <bruno@clisp.org>
54484 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
54487 2003-01-14 Bruno Haible <bruno@clisp.org>
54489 * lib/hash-pjw.c: Add comment about low quality of this function.
54491 2003-01-13 Bruno Haible <bruno@clisp.org>
54493 * modules/stpcpy: Distribute lib/stpcpy.h.
54494 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
54496 2003-01-13 Bruno Haible <bruno@clisp.org>
54498 * modules/*: Add a description.
54499 * modules/strpbrk: Fix Makefile.am snippet.
54500 * modules/strtoimax: Fix dependencies.
54501 * modules/strtoumax: Likewise.
54503 2003-01-13 Bruno Haible <bruno@clisp.org>
54505 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
54506 * modules/alloca (Makefile.am): All object files depend on alloca.h.
54507 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
54509 2003-01-13 Bruno Haible <bruno@clisp.org>
54511 * gnulib-tool (func_create_testdir): Store config/* files in the main
54513 * config.rpath: Move to ...
54514 * config/config.rpath: ... here.
54515 * modules/gettext: Contains config/config.rpath, not config.rpath.
54516 * modules/iconv: Likewise.
54518 2003-01-12 Paul Eggert <eggert@twinsun.com>
54520 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
54521 to avoid collisions with libcurses and libreadline.
54523 * m4/getstr.m4: Remove.
54524 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
54526 2003-01-12 Paul Eggert <eggert@twinsun.com>
54528 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
54529 to avoid collisions with libcurses and libreadline.
54531 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
54532 * lib/getstr.h, getstr.c: Remove.
54533 * lib/getline.c: Include "getline.h", to check interface.
54534 Move body of old getstr.c here: this defines MIN_CHUNK and
54535 declares getdelim2, which is renamed from getstr.
54536 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
54538 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
54540 * lib/linebuffer.h: Likewise.
54541 (readline): Remove backward-compatibility macro.
54543 2003-01-12 Paul Eggert <eggert@twinsun.com>
54545 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
54546 to avoid collisions with libcurses and libreadline.
54548 * MODULES.html.sh: Remove getstr.
54549 * modules/getline: Depend on unlocked-io, not getstr.
54551 2003-01-12 Jim Meyering <jim@meyering.net>
54553 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
54555 2003-01-10 Bruno Haible <bruno@clisp.org>
54557 * modules/alloca: Change Makefile.am requirements. Simplify Include
54558 requirements. Add lib/alloca_.h to file list.
54560 2003-01-10 Bruno Haible <bruno@clisp.org>
54562 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
54564 2003-01-10 Bruno Haible <bruno@clisp.org>
54566 * lib/alloca_.h: New file.
54567 * lib/getdate.y: Unconditionally include alloca.h.
54568 * lib/makepath.c: Likewise.
54569 * lib/setenv.c: Likewise.
54570 * lib/userspec.c: Likewise.
54572 2003-01-09 Karl Berry <karl@gnu.org>
54574 * MODULES.html.sh: include `dirname $0` in PATH, to find
54577 2003-01-09 Bruno Haible <bruno@clisp.org>
54579 * modules/stdbool: Change configure.ac, Makefile.am requirements.
54580 Simplify Include requirements. Add lib/stdbool.h.in to file list.
54582 2003-01-09 Bruno Haible <bruno@clisp.org>
54584 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
54586 2003-01-09 Bruno Haible <bruno@clisp.org>
54588 * lib/stdbool.h.in: New file.
54590 2003-01-09 Bruno Haible <bruno@clisp.org>
54592 * gnulib-tool (func_all_modules): Ignore files ending in ~.
54593 * MODULES.html.sh: Likewise.
54595 2003-01-08 Jim Meyering <jim@meyering.net>
54597 * lib/full-write.c: Undefine and define-away `const' after inclusion
54598 of errno.h, not before. Suggestion from Bruno Haible.
54600 2003-01-08 Bruno Haible <bruno@clisp.org>
54602 * modules/full-read: Depend on full-write.
54604 2003-01-08 Bruno Haible <bruno@clisp.org>
54606 * lib/safe-read.c: Include specification header first, to ensure its
54608 * lib/full-write.c: Likewise.
54610 2003-01-07 Jim Meyering <jim@meyering.net>
54612 * lib/full-write.c: Rework so that it may serve to define full_read,
54614 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
54616 2003-01-07 Bruno Haible <bruno@clisp.org>
54618 * lib/strtoimax.c: Include <stdint.h> as an alternative to
54620 * lib/xstrtol.h: Likewise.
54621 * lib/xstrtoimax.c: Likewise.
54622 * lib/xstrtoumax.c: Likewise.
54623 * lib/human.h: Likewise.
54625 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
54626 on systems that have <inttypes.h> but not <stdint.h>.
54628 2003-01-07 Bruno Haible <bruno@clisp.org>
54630 * MODULES.html.sh: Add copyright notice.
54631 (missed_files): Omit CVS directory entries.
54632 (func_module): Make it work with sed-3.02.
54633 * MODULES.txt: Remove file.
54635 2003-01-06 Jim Meyering <jim@meyering.net>
54637 * lib/version-etc.c: Update year in translatable copyright string.
54639 2003-01-03 Karl Berry <karl@gnu.org>
54641 * config/config.{guess,sub}: update from prep.
54643 2003-01-02 Karl Berry <karl@gnu.org>
54645 * doc/COPYING.DOC: belatedly updated to 1.2.
54647 2003-01-01 Karl Berry <karl@gnu.org>
54649 * gnulib-tool (func_verify_module): report module name $module in
54650 error message, not $1.
54651 * gnulib-tool (create-testdir): don't complain if destdir couldn't
54652 be created, only if it doesn't exist.
54653 * gnulib-tool (last_checkin_date): don't expand the $Date here.
54655 2002-12-31 Paul Eggert <eggert@twinsun.com>
54657 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
54659 2002-12-31 Paul Eggert <eggert@twinsun.com>
54661 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
54662 memcmp if strcoll doesn't work.
54664 2002-12-31 Bruno Haible <bruno@clisp.org>
54666 * lib/utime.c (utime_null): No need to call ftruncate if the file was
54669 2002-12-31 Bruno Haible <bruno@clisp.org>
54671 * lib/memcoll.c (STRCOLL): New macro.
54674 2002-12-31 Bruno Haible <bruno@clisp.org>
54676 * lib/localcharset.h: New file.
54677 * lib/localcharset.c: Include it.
54678 * lib/unicodeio.c: Likewise.
54680 2002-12-31 Bruno Haible <bruno@clisp.org>
54682 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
54683 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
54685 2002-12-31 Bruno Haible <bruno@clisp.org>
54687 * lib/getline.h: Include <stddef.h>, for size_t.
54689 * lib/unicodeio.h: Include <stddef.h>, for size_t.
54690 * lib/unicodeio.c: Don't include <stddef.h>.
54692 2002-12-31 Bruno Haible <bruno@clisp.org>
54694 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
54697 2002-12-24 Karl Berry <karl@gnu.org>
54699 * config/config.guess: update from prep.
54701 2002-12-24 Bruno Haible <bruno@clisp.org>
54703 General infrasructure.
54704 * m4/README: Rewritten.
54705 * m4/onceonly.m4: New file.
54706 * m4/onceonly_2_57.m4: New file.
54709 * m4/atexit.m4: New file.
54712 * m4/strtod.m4: New file.
54715 * m4/strtol.m4: New file.
54718 * m4/strtoul.m4: New file.
54721 * m4/memchr.m4: New file.
54724 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
54725 (jm_FUNC_MEMCMP): Invoke it.
54728 * m4/memcpy.m4: New file.
54731 * m4/memmove.m4: New file.
54734 * m4/memset.m4: New file.
54737 * m4/strcspn.m4: New file.
54740 * m4/strpbrk.m4: New file.
54743 * m4/strstr.m4: New file.
54746 * m4/strerror.m4: New file.
54749 * m4/mktime.m4: Renamed from jm-mktime.m4.
54750 (gl_PREREQ_MKTIME): New macro.
54751 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
54754 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
54755 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
54756 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
54759 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
54760 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
54761 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
54764 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
54765 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
54766 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
54768 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
54771 * m4/xalloc.m4: New file.
54774 * m4/alloca.m4: New file.
54777 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
54778 (jm_FUNC_PUTENV): Invoke it.
54781 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
54782 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
54783 when invoked twice.
54784 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
54788 * m4/memrchr.m4: New file.
54791 * m4/stpcpy.m4: New file.
54794 * m4/strcase.m4: New file.
54797 * m4/strdup.m4: New file.
54800 * m4/strnlen.m4: New file.
54803 * m4/strndup.m4: New file.
54806 * m4/xstrtod.m4: New file.
54809 * m4/xstrtol.m4: New file.
54812 * m4/getdate.m4: New file.
54814 Module unlocked-io.
54815 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
54816 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
54817 * m4/jm-glibc-io.m4n: Remove file.
54819 Module long-options.
54820 * m4/long-options.m4: New file.
54823 * m4/md5.m4: New file.
54826 * m4/sha.m4: New file.
54829 * m4/getstr.m4: New file.
54832 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
54833 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
54834 <sys/types.h>, for size_t. Use the function name gnu_getline, not
54835 simply getline. Infoke gl_PREREQ_GETLINE.
54838 * m4/obstack.m4: New file.
54841 * m4/hash.m4: New file.
54844 * m4/readtokens.m4: New file.
54847 * m4/strverscmp.m4: New file.
54850 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
54854 * m4/strtoll.m4: New file.
54857 * m4/strtoull.m4: New file.
54860 * m4/strtoimax.m4: New file.
54863 * m4/strtoumax.m4: New file.
54866 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
54867 jm_AC_PREREQ_XSTRTOIMAX.
54868 Moved the strtol prerequisites to strtol.m4.
54869 Moved the strtoll prerequisites to strtoll.m4.
54870 Moved the strtoimax prerequisites to strtoimax.m4.
54873 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
54874 jm_AC_PREREQ_XSTRTOUMAX.
54875 Moved the strtoul prerequisites to strtoul.m4.
54876 Moved the strtoull prerequisites to strtoull.m4.
54877 Moved the strtoumax prerequisites to strtoumax.m4.
54880 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
54881 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
54884 * m4/dup2.m4: New file.
54887 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
54888 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
54891 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
54892 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
54894 Module gettimeofday.
54895 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
54896 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
54897 gl_PREREQ_GETTIMEOFDAY.
54900 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
54901 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
54904 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
54905 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
54906 jm_AC_TYPE_UINTMAX_T.
54907 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
54910 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
54911 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
54914 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
54915 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
54918 * m4/timespec.m4 (gl_TIMESPEC): New macro.
54919 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
54920 * m4/st_mtim.m4: Indentation.
54923 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
54924 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
54925 gl_PREREQ_NANOSLEEP.
54928 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
54929 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
54930 (gl_REGEX): New macro.
54933 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
54934 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
54937 * m4/rmdir.m4: New file.
54940 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
54941 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
54942 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
54945 * m4/dirname.m4: New file.
54948 * m4/getopt.m4: New file.
54950 Module unistd-safer.
54951 * m4/unistd-safer.m4: New file.
54954 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
54956 (gl_PREREQ_FNMATCH_EXTRA): New macro.
54957 (gl_FUNC_FNMATCH_POSIX): New macro.
54958 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
54959 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
54963 * m4/exclude.m4: New file.
54966 * m4/human.m4: New file.
54972 * m4/backupfile.m4: New file.
54973 * m4/d-ino.m4: Indentation.
54976 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
54977 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
54978 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
54981 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
54985 * m4/euidaccess.m4: New file.
54988 * m4/file-type.m4: New file.
54991 * m4/fileblocks.m4: New file.
54994 * m4/filemode.m4: New file.
54997 * m4/isdir.m4: New file.
55000 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
55001 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
55004 * m4/makepath.m4: New file.
55007 * m4/modechange.m4: New file.
55010 * m4/mountlist.m4: New file.
55011 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
55014 Module path-concat.
55015 * m4/path-concat.m4: New file.
55018 * m4/pathmax.m4: New file.
55021 * m4/same.m4: New file.
55024 * m4/save-cwd.m4: New file.
55027 * m4/savedir.m4: New file.
55030 * m4/xgetcwd.m4: New file.
55031 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
55034 * m4/xreadlink.m4: New file.
55037 * m4/safe-read.m4: New file.
55040 * m4/safe-write.m4: New file.
55043 * m4/closeout.m4: New file.
55045 Module stdio-safer.
55046 * m4/stdio-safer.m4: New file.
55049 * m4/getpass.m4: New file.
55052 * m4/getugroups.m4: New file.
55054 Module group-member.
55055 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
55056 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
55059 * m4/idcache.m4: New file.
55062 * m4/userspec.m4: New file.
55065 * m4/clock_time.m4: New file.
55066 * m4/gettime.m4: New file.
55069 * m4/settime.m4: New file.
55072 * m4/posixtm.m4: New file.
55074 Module gethostname.
55075 * m4/gethostname.m4: New file.
55078 * m4/canon-host.m4: New file.
55081 * m4/codeset.m4: New file, from gettext-0.11.5.
55082 * m4/gettext.m4: New file, from gettext-0.11.5.
55083 * m4/glibc21.m4: New file, from gettext-0.11.5.
55084 * m4/iconv.m4: New file, from gettext-0.11.5.
55085 * m4/intdiv0.m4: New file, from gettext-0.11.5.
55086 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
55087 * m4/inttypes.m4: New file, from gettext-0.11.5.
55088 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
55089 * m4/isc-posix.m4: New file, from gettext-0.11.5.
55090 * m4/lcmessage.m4: New file, from gettext-0.11.5.
55091 * m4/lib-ld.m4: New file, from gettext-0.11.5.
55092 * m4/lib-link.m4: New file, from gettext-0.11.5.
55093 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
55094 * m4/progtest.m4: New file, from gettext-0.11.5.
55095 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
55096 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
55097 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
55099 Module localcharset.
55100 * m4/localcharset.m4: New file.
55102 Module hard-locale.
55103 * m4/hard-locale.m4: New file.
55106 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
55108 * m4/mbrtowc.m4: Add comment.
55111 * m4/memcasecmp.m4: New file.
55114 * m4/memcoll.m4: New file.
55117 * m4/unicodeio.m4: New file.
55120 * m4/rpmatch.m4: New file.
55123 * m4/yesno.m4: New file.
55126 * m4/exitfail.m4: New file.
55129 * m4/c-stack.m4 (gl_C_STACK): New macro.
55130 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
55133 * m4/error.m4 (gl_ERROR): New macro.
55134 (jm_PREREQ_ERROR): Use onceonly macros.
55137 * m4/fatal.m4: New file.
55140 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
55141 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
55143 Module getpagesize.
55144 * m4/getpagesize.m4: New file.
55146 Module getusershell.
55147 * m4/getusershell.m4: New file.
55150 * m4/physmem.m4: New file.
55153 * m4/posixver.m4: New file.
55156 * m4/quotearg.m4: New file.
55159 * m4/quote.m4: New file.
55162 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
55165 * m4/sig2str.m4: New file.
55168 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
55170 * m4/intmax_t.m4: New file.
55171 * m4/d-type.m4: Indentation.
55172 * m4/jm-macros.m4: Update.
55173 * m4/prereq.m4 (jm_PREREQ): Update.
55174 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
55175 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
55176 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
55177 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
55178 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
55179 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
55180 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
55181 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
55182 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
55183 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
55184 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
55185 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
55186 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
55187 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
55188 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
55189 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
55190 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
55191 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
55192 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
55194 2002-12-24 Bruno Haible <bruno@clisp.org>
55196 * MODULES.txt: Update according to m4/ changes.
55199 * config.rpath: New file, from gettext-0.11.5.
55201 * modules/*: New module descriptions.
55202 * gnulib-tool: New file.
55203 * MODULES.html.sh: New file.
55205 2002-12-21 Karl Berry <karl@gnu.org>
55207 * doc/fdl.texi: update to version 1.2.
55209 2002-12-19 Karl Berry <karl@gnu.org>
55211 * config/config.guess: update from prep.
55213 2002-12-18 Bruno Haible <bruno@clisp.org>
55215 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
55216 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
55218 2002-12-17 Bruno Haible <bruno@clisp.org>
55220 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
55221 stdlib.h, string.h.
55223 2002-12-17 Bruno Haible <bruno@clisp.org>
55225 * lib/canon-host.c (strdup): Remove unused declaration.
55227 * lib/fsusage.c: Include full_read.h.
55228 (get_fs_usage): Use full_read instead of safe_read.
55230 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
55232 2002-12-12 Karl Berry <karl@gnu.org>
55234 * config/config.guess: update from prep.
55236 2002-12-11 Bruno Haible <bruno@clisp.org>
55238 * m4/setenv.m4: New file, from gettext-0.11.5.
55240 2002-12-11 Bruno Haible <bruno@clisp.org>
55242 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
55244 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
55247 2002-12-11 Bruno Haible <bruno@clisp.org>
55249 * setenv.c (alloca): Fall back to malloc.
55250 (freea): New macro.
55251 (setenv): Use freea() to free memory allocated with alloca().
55253 2002-11-13 Bruno Haible <bruno@clisp.org>
55255 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
55256 function declarations.
55257 * unsetenv.c (unsetenv): Likewise.
55259 2002-03-04 Bruno Haible <bruno@clisp.org>
55261 Portability to AIX 4.3.3.
55262 * unsetenv.c: New file, extracted from setenv.c.
55263 * setenv.c: Move the unsetenv() function to unsetenv.c.
55265 2001-12-20 Bruno Haible <bruno@clisp.org>
55267 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
55268 use malloc instead. For SunOS 4.
55270 2001-12-11 Bruno Haible <bruno@clisp.org>
55272 * setenv.c: Declare alloca.
55273 (compar_fn_t): New typedef.
55274 (KNOWN_VALUE, STORE_VALUE): Use it.
55276 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
55279 2002-12-10 Paul Eggert <eggert@twinsun.com>
55281 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
55282 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
55283 Choose values that are less likely to collide with system fnmatch
55285 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
55286 defined (e.g., a pure POSIX system).
55287 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
55288 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
55290 2002-12-06 Paul Eggert <eggert@twinsun.com>
55292 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
55293 a pain in practice to deal with generated m4 files. This change
55294 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
55296 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
55297 and jm-glibc-io.m4, as they are no longer a special case.
55298 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
55299 kludge and the auto-generation stuff. Check only whether the
55300 functions are declared, not whether they exist, since older hosts
55301 that don't declare the functions can't use the optimization anyway.
55303 2002-12-06 Jim Meyering <jim@meyering.net>
55305 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
55307 Merge in changes from libc's misc/error.c, in preparation
55308 for the merge of gnulib's changes back into libc.
55310 * lib/error.c (_): Define only if not already defined.
55311 Move definition to follow all #include directives.
55312 Include unlocked-io.h only if !_LIBC.
55313 [_LIBC]: Include <libio/libioP.h>.
55314 [USE_IN_LIBIO]: Include <libio/iolibio.h>
55315 (fflush): Tweak definition to use INTUSE.
55318 2002-12-05 Paul Eggert <eggert@twinsun.com>
55320 * lib/alloca.c [defined emacs]: Include "lisp.h".
55321 (xalloc_die) [defined emacs]: New macro.
55322 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
55323 [! defined emacs]: Include <xalloc.h>.
55324 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
55325 (pointer): Typedef to POINTER_TYPE *.
55326 (malloc): Remove decl; we now always use xmalloc.
55327 (alloca): Use old-style definition, since Emacs needs this.
55328 Check for arithmetic overflow when computing combined size.
55330 2002-12-04 Paul Eggert <eggert@twinsun.com>
55332 Do not generate unlocked-io.h automatically, since it's easier to
55333 maintain it by hand.
55335 * lib/unlocked-io.h: New file, from GNU diffutils,
55336 but with proper copyright notice and attribution.
55337 * lib/gen-uio: Remove.
55338 * lib/Makefile.am: Add copyright notice.
55339 (libfetish_a_SOURCES): Add unlocked-io.h.
55340 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
55341 (DISTCLEANFILES, io_functions): Remove macros.
55342 (EXTRA_DIST): Remove gen_uio.
55343 (unlocked-io.h): Remove rule.
55345 2002-12-04 Jim Meyering <jim@meyering.net>
55347 Reflect the fact that stat.c and lstat.c are no longer generated.
55348 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
55349 (DISTCLEANFILES): Likewise.
55350 (EXTRA_DIST): Likewise.
55351 (all_local): Don't depend on stat.c or lstat.c.
55352 (stat.c, lstat.c): Remove rules.
55353 (EXTRA_DIST): Remove xstat.in.
55355 * lib/xstat.in: Remove file. Contents moved into stat.c.
55356 * lib/stat.c: New file. Contents mostly from xstat.in.
55357 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
55358 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
55360 * lib/safe-read.c: Rework so that it may serve to define safe_write,
55362 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
55364 2002-12-03 Jim Meyering <jim@meyering.net>
55366 * lib/safe-read.c, safe-write.c: Change variable names and comments,
55367 but not semantics, to minimize the differences between these two files.
55368 (safe_read): Change comment to mention SAFE_READ_ERROR.
55370 * lib/safe-read.c (IS_EINTR): Define.
55371 (safe_read): Use IS_EINTR in place of in-function cpp directives.
55373 2002-12-02 Jim Meyering <jim@meyering.net>
55375 * lib/safe-read.c (EINTR): Define.
55376 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
55377 (INT_MAX): Provide fallback.
55378 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
55380 * lib/safe-read.h (SAFE_READ_ERROR): Define.
55382 2002-12-02 Bruno Haible <bruno@clisp.org>
55384 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
55385 Define, taken from safe-read.c.
55386 (INT_MAX): Provide fallback.
55387 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
55388 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
55390 * lib/safe-read.c (EINTR): Remove definition.
55391 (safe_read): Don't use EINTR if it is absent.
55393 2002-12-01 Jim Meyering <jim@meyering.net>
55395 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
55397 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
55399 2002-11-27 Paul Eggert <eggert@twinsun.com>
55401 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
55402 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
55403 with `if (! (value < limit)) abort ();', for readability.
55405 2002-11-26 Karl Berry <karl@gnu.org>
55407 * lib/strdup.c: copy from libc again, with jim's ok.
55408 * lib/.cppi-disable: re-add strdup.c
55410 2002-11-25 Karl Berry <karl@gnu.org>
55412 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
55413 instead of "strtol.c".
55415 2002-11-25 Karl Berry <karl@gnu.org>
55417 * config/install-sh: update from automake for variable quoting, $0 in
55420 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
55421 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
55424 2002-11-25 Jim Meyering <jim@meyering.net>
55426 * lib/mktime.c: Sync from libc, now that it has the latest fix.
55428 2002-11-24 Karl Berry <karl@gnu.org>
55430 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
55431 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
55433 2002-11-24 Jim Meyering <jim@meyering.net>
55435 Update from coreutils:
55437 * lib/mktime.c: Merge in changes from libc.
55439 Avoid a link-time failure on some Linux systems.
55440 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
55442 (__mon_yday): Declare with the STATIC attribute.
55443 (__mktime_internal): Likewise.
55444 Based on a report from Greg Schafer.
55446 2002-11-23 Jim Meyering <jim@meyering.net>
55448 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
55449 Use `unsigned', not `int', as type of index.
55451 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
55453 * lib/fsusage.c: Remove unneeded parentheses around operands of
55456 2002-11-22 Paul Eggert <eggert@twinsun.com>
55458 * lib/quotearg.h: Allow multiple inclusion by surrounding with
55459 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
55460 so that we can be included first.
55461 (PARAMS): Remove; we now assume C89 or later. All uses removed.
55462 * lib/quotearg.c: Include quotearg.h immediately after config.h.
55463 No need to include stddef.h or sys/types.h any more.
55464 Surround local include files with "", not "<>".
55465 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
55466 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
55467 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
55468 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
55469 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
55470 (ISPRINT): Remove; no longer needed now that we assume C89.
55472 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
55475 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
55476 quotearg_char): Use SIZE_MAX rather than
55477 (size_t) -1 when we are talking about "infinity".
55479 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
55481 2002-11-22 Paul Eggert <eggert@twinsun.com>
55483 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
55484 hint that one should use `if (! x) abort ();' rather than `assert
55485 (x);', and anyway it's one less thing to worry about configuring.
55486 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
55487 hash_rehash, hash_insert): Use abort rather than assert.
55489 2002-11-22 Bruno Haible <bruno@clisp.org>
55491 * lib/safe-read.h: Assume C89. Add comments.
55492 (safe_read): Change return type to size_t.
55493 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
55494 byte counts > SSIZE_MAX correctly.
55495 * lib/safe-write.h: New file.
55496 * lib/safe-write.c: New file.
55497 * lib/full-read.h: New file.
55498 * lib/full-read.c: New file.
55499 * lib/full-write.h: Assume C89. Add comments.
55500 * lib/full-write.c: Include safe-write.h.
55501 (full_write): Rewritten to use safe_write.
55502 Suggested by Jim Meyering and Paul Eggert.
55504 2002-11-21 Jim Meyering <jim@meyering.net>
55506 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
55508 Merge in changes from the coreutils.
55510 2002-09-25 Paul Eggert <eggert@twinsun.com>
55511 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
55513 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
55514 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
55515 int. Work more efficiently if X is the same width as uintmax_t.
55516 Do not compare X to -1, to avoid bogus compiler warning.
55517 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
55518 Don't assume that f_frsize and f_bsize are the same type.
55520 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
55521 warning on FreeBSD.
55523 * lib/makepath.c (make_path): Restore umask *before* creating the final
55525 (make_path): Minor reformatting.
55527 * lib/xmalloc.c: Adjust to work with new autoconf macros,
55528 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
55529 HAVE_MALLOC/HAVE_REALLOC.
55531 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
55532 dummy ones. At least on GNU/Linux systems, `auto' means something
55534 From Michael Stone.
55536 2002-11-21 Bruno Haible <bruno@clisp.org>
55538 Remove case insensitive option matching.
55539 * lib/argmatch.h (argcasematch): Remove declaration.
55540 (ARGCASEMATCH): Remove macro.
55541 (__xargmatch_internal): Remove case_sensitive argument.
55542 (XARGMATCH): Update.
55543 (XARGCASEMATCH): Remove macro.
55544 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
55545 case_sensitive argument.
55546 (argcasematch): Remove function.
55547 (__xargmatch_internal): Remove case_sensitive argument.
55548 (main): Use XARGMATCH instead of XARGCASEMATCH.
55550 * lib/xmalloc.c: Change compile-time error message. Add comment about
55551 required autoconf version.
55553 2002-11-20 Paul Eggert <eggert@twinsun.com>
55555 Merge argmatch cleanups from Bison. Assume C89.
55557 * lib/argmatch.c: Include config.h here, not in argmatch.h.
55558 Include stdlib.h, for EXIT_FAILURE.
55559 Always include <string.h>, since we assume C89.
55560 (EXIT_FAILURE): Remove pre-C89 bug workaround.
55561 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
55562 Include <stddef.h> instead, since it's all we need for size_t.
55563 (PARAMS): Remove. All uses removed.
55564 (ARRAY_CARDINALITY): Do not bother to #undef.
55565 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
55566 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
55567 Remove unnecessary parentheses.
55568 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
55569 Insert necessary parentheses.
55570 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
55571 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
55573 2002-11-19 Bruno Haible <bruno@clisp.org>
55575 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
55576 * lib/mbswidth.h: Include <stddef.h>, for size_t.
55578 * lib/mbswidth.h (PARAMS): Remove macro.
55579 (mbswidth, mbsnwidth): Use ANSI C function declarations.
55580 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
55582 * lib/gcd.h (PARAMS): Remove macro.
55583 (gcd): Use ANSI C function declarations.
55584 * lib/gcd.c (gcd): Likewise.
55586 2002-11-15 Bruno Haible <bruno@clisp.org>
55588 * lib/strcspn.c: Include <stddef.h>.
55589 (strcspn): Use ANSI C function declaration. Change return type to
55591 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
55592 (strpbrk): Use NULL.
55593 * lib/strpbrk.h (PARAMS): Remove macro.
55594 (strpbrk): Use ANSI C function declaration.
55595 * lib/strstr.c: Don't include <sys/types.h>.
55596 * lib/strstr.h (PARAMS): Remove macro.
55597 (strstr): Use ANSI C function declarations.
55599 2002-11-14 Karl Berry <karl@gnu.org>
55601 * config/mkinstalldirs: `do' on separate line, instead of
55604 2002-11-06 Bruno Haible <bruno@clisp.org>
55606 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
55607 * lib/gcd.c (gcd): Likewise.
55609 2002-11-05 Bruno Haible <bruno@clisp.org>
55611 * lib/gcd.h: New file, from gettext-0.11.5.
55612 * lib/gcd.c: New file, from gettext-0.11.5.
55614 2002-11-05 Bruno Haible <bruno@clisp.org>
55616 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
55617 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
55618 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
55619 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
55621 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
55623 * lib/makepath.c: Include gettext.h instead of <locale.h> and
55626 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
55627 * lib/human.c: Include gettext.h instead of <libintl.h>.
55628 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
55629 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
55630 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
55631 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
55632 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
55633 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
55634 (textdomain): Remove definition.
55635 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
55637 * lib/long-options.c: Remove include of <libintl.h> and definition of
55639 * lib/same.c: Remove include of <libintl.h> and definition of _.
55641 2002-11-04 Owen Taylor <otaylor@redhat.com>
55643 * lib/config.charset: A few additions for Solaris.
55645 2002-11-04 Bruno Haible <haible@clisp.cons.org>
55647 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
55648 * lib/localcharset.c (locale_charset): Declare as extern "C".
55650 2002-11-04 Bruno Haible <haible@clisp.cons.org>
55652 * lib/config.charset: msdos in uk_UA uses CP1125.
55654 2002-11-04 Bruno Haible <bruno@clisp.org>
55656 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
55657 * lib/strcase.h: New file, from GNU gettext-0.11.5.
55658 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
55659 * lib/strstr.h: New file, from GNU gettext-0.11.5.
55660 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
55662 2002-11-04 Bruno Haible <bruno@clisp.org>
55664 * lib/localcharset.c (locale_charset): Don't return an empty string.
55666 2002-11-04 Bruno Haible <bruno@clisp.org>
55668 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
55671 2002-11-04 Bruno Haible <bruno@clisp.org>
55673 * lib/config.charset: Update for newest glibc. Add canonical names
55674 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
55676 2002-11-04 Bruno Haible <bruno@clisp.org>
55678 * lib/config.charset: Add support for NetBSD.
55680 2002-11-04 Bruno Haible <bruno@clisp.org>
55682 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
55684 2002-11-01 Bruno Haible <bruno@clisp.org>
55686 * configure.in: Add AC_CONFIG_AUX_DIR call.
55687 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
55689 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
55691 2002-09-28 Karl Berry <karl@gnu.org>
55693 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
55694 installed automake until the next release, since changes have been
55697 2002-09-25 Karl Berry <karl@gnu.org>
55699 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
55700 * lib/getopt*: copy from libc/posix.
55701 * lib/gettext.h: copy from gettext.
55702 * lib/.cppi-disable: add strdup.c, gettext.h.
55704 2002-09-25 Karl Berry <karl@gnu.org>
55706 * config/srclist.txt: enable gettext.h check.
55707 * config/config.{guess,sub}: update from prep.
55708 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
55709 from automake 1.6.3.
55712 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
55714 * regex.c (PATFETCH): Remove the translating fetch.
55715 (PATFETCH_RAW): Rename to PATFETCH.
55716 (set_image_of_range): New fun.
55717 (SET_RANGE_TABLE_WORK_AREA): Use it.
55718 (regex_compile): Don't translate the pattern chars so eagerly.
55719 Only do it when inserting an `exactn' bytecode or when handling
55721 (mutually_exclusive_p): Avoid empty statement.
55723 2002-07-06 Jim Meyering <meyering@lucent.com>
55725 * m4/README: Don't mention Makefile.am.in.
55726 Outline how I've tested changes to .m4 files. Yep, it's a pain.
55728 2002-07-01 Jim Meyering <meyering@lucent.com>
55730 * lib/c-stack.c: Include sys/time.h.
55731 From Volker Borchert.
55733 2002-06-26 Paul Eggert <eggert@twinsun.com>
55735 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
55737 2002-06-26 Paul Eggert <eggert@twinsun.com>
55739 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
55740 New macro. Use it uniformly instead of
55741 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
55742 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
55743 reported by Vin Shelton.
55745 2002-06-22 Paul Eggert <eggert@twinsun.com>
55747 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
55748 Do not assume SA_SIGINFO behavior.
55749 Bug reported by Jim Meyering on NetBSD 1.5.2.
55751 2002-06-22 Jim Meyering <meyering@lucent.com>
55753 * m4/c-stack.m4: New file, from diffutils-2.8.2.
55754 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
55756 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
55757 now that configure.ac uses AC_GNU_SOURCE.
55758 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
55759 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
55761 Update to latest tools. Suggestions from Paul Eggert.
55762 * m4/stdbool.m4: New file, from diffutils-2.8.2.
55763 * m4/gnu-source.m4: Update from diffutils-2.8.2.
55764 * m4/fnmatch.m4: Likewise.
55765 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
55766 to AC_HEADER_STDBOOL
55768 2002-06-22 Jim Meyering <meyering@lucent.com>
55770 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
55771 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
55773 2002-06-22 Jim Meyering <meyering@lucent.com>
55775 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
55777 * lib/exitfail.c, exitfail.h: Likewise.
55778 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
55780 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
55782 (EXTRA_DIST): Add fnmatch_loop.c.
55783 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
55785 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
55786 * lib/fnmatch.c: Update from diffutils-2.8.2.
55787 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
55788 * lib/fnmatch.h: Remove file.
55790 2002-06-21 Jim Meyering <meyering@lucent.com>
55792 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
55793 * m4/mbrtowc.m4: Likewise.
55795 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
55796 * m4/mbswidth.m4: Reflect name change:
55797 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
55798 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
55800 * m4/lib-link.m4: Update from gettext-0.11.2.
55801 * m4/gettext.m4: Likewise.
55803 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
55804 From Alfred M. Szmidt.
55806 2002-06-18 Paul Eggert <eggert@twinsun.com>
55808 * lib/file-type.h: Report an error if neither S_ISREG nor
55809 S_IFREG is defined, instead of using a test specific to glibc
55810 2.2. This should be safe, since POSIX requires S_ISREG and
55811 Unix Version 7 had S_IFREG. We don't need to check for
55812 <sys/types.h> since we don't use any symbols that it defines.
55814 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
55816 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
55817 $@-t, so that each temporary file name is unique and valid in the first
55818 8 characters, for operation under DOS.
55820 2002-06-15 Paul Eggert <eggert@twinsun.com>
55822 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
55824 2002-06-15 Jim Meyering <meyering@lucent.com>
55826 Work even with DJGPP 2.03, which lacks support for symlinks.
55828 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
55830 * lib/lchown.c (S_ISLNK): Likewise.
55832 2002-06-15 Jim Meyering <meyering@lucent.com>
55834 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
55835 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
55836 have been included before this file.
55838 2002-06-14 Jim Meyering <meyering@lucent.com>
55840 * lib/file-type.h: Use the version from diffutils-2.8.2.
55841 * lib/file-type.c: Likewise.
55843 2002-06-07 Jim Meyering <meyering@lucent.com>
55845 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
55846 They're needed at least for NetBSD 1.5.2.
55847 ($statxfs_includes): Include those same headers.
55848 ($statxfs_includes): Include sys/vfs.h if available.
55849 ($statxfs_includes): Likewise for sys/statvfs.h.
55850 Check for the following members in both structs statfs and statvfs:
55851 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
55853 2002-06-01 Jim Meyering <meyering@lucent.com>
55855 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
55856 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
55858 2002-05-28 Jim Meyering <meyering@lucent.com>
55860 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
55861 Reported by Volker Borchert.
55863 2002-05-27 Jim Meyering <meyering@lucent.com>
55865 Fix a problem seen only on nonconforming systems whereby ls.c's
55866 use of localtime, and then of gettimeofday would cause trouble:
55867 the localtime call used to initialize rpl_gettimeofday's save
55868 mechanism would clobber ls's current local time information so
55869 that in any long listing the first file would always be listed
55870 with date 1970-01-01. Analysis by Volker Borchert.
55872 * lib/gettimeofday.c (localtime): Undefine.
55873 (rpl_localtime): New function.
55875 2002-05-27 Jim Meyering <meyering@lucent.com>
55877 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
55880 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
55881 use the replacement function; it wouldn't resolve at link time.
55882 Reported by Volker Borchert.
55884 2002-05-22 Jim Meyering <meyering@lucent.com>
55886 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
55888 * lib/file-type.h: New file.
55889 * lib/file-type.c (file_type): New file/function. Extracted from
55892 2002-04-30 Jim Meyering <meyering@lucent.com>
55894 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
55896 2002-04-29 Paul Eggert <eggert@twinsun.com>
55898 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
55900 2002-04-29 Paul Eggert <eggert@twinsun.com>
55902 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
55903 Do not check for alloca.h (no longer used) or stdbool.h (was never
55904 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
55906 2002-04-29 Paul Eggert <eggert@twinsun.com>
55908 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
55910 2002-04-29 Jim Meyering <meyering@lucent.com>
55912 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
55913 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
55914 Use AC_FUNC_STRNLEN here instead.
55916 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
55917 With autoconf-2.53a, it's part of AC_PROG_CC.
55919 2002-04-28 Paul Eggert <eggert@twinsun.com>
55921 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
55922 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
55924 2002-04-28 Paul Eggert <eggert@twinsun.com>
55926 * lib/sig2str.h, lib/sig2str.c: New files.
55927 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
55929 2002-04-28 Paul Eggert <eggert@twinsun.com>
55931 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
55932 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
55933 of 127, since 64 is the largest conceivable number for ancient
55935 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
55937 2002-04-28 Jim Meyering <meyering@lucent.com>
55939 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
55941 2002-04-24 Jim Meyering <meyering@lucent.com>
55943 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
55944 (jm_PREREQ): Use it.
55946 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
55947 mach/mach.h fcntl.h.
55948 Check for this function: setlocale.
55950 2002-04-24 Jim Meyering <meyering@lucent.com>
55952 * lib/gettext.h: New file, from Gettext.
55953 * lib/Makefile.am (INCLUDES): Remove -I../intl.
55954 (libfetish_a_SOURCES): Add gettext.h.
55956 2002-04-16 Jim Meyering <meyering@lucent.com>
55958 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
55959 ut_pid, ut_id, ut_exit.
55961 2002-04-16 Jim Meyering <meyering@lucent.com>
55963 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
55964 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
55965 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
55967 2002-04-12 Jim Meyering <meyering@lucent.com>
55969 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
55970 now-bogus check for f_type in sys/mount.h. Instead, just test for the
55971 existence of the getmntinfo function. Needed for Darwin 5.3.
55973 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
55974 This is necessary at least on Darwin 5.3.
55976 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
55977 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
55978 strnlen.o in the library, and that makes some versions of ranlib
55981 2002-04-12 Jim Meyering <meyering@lucent.com>
55983 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
55985 2002-04-09 Jim Meyering <meyering@lucent.com>
55987 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
55988 to be more precise. Rather than saying we're checking whether the
55989 function `works', say what we're testing.
55990 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
55991 Reported by Bruno Haible.
55993 2002-03-10 Jim Meyering <meyering@lucent.com>
55995 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
55996 Suggestion from Santiago Vila.
55998 2002-03-08 Jim Meyering <meyering@lucent.com>
56000 * lib/rename.c: Mention that this wrapper is needed also on
56001 mips-dec-ultrix4.4 systems.
56003 2002-03-02 Jim Meyering <meyering@lucent.com>
56005 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
56006 not HAVE_CLOCK_SETTIME.
56008 2002-02-27 Paul Eggert <eggert@twinsun.com>
56010 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
56011 Check for clock_settime.
56013 2002-02-27 Paul Eggert <eggert@twinsun.com>
56015 * lib/nanosleep.h: Rename to....
56016 * lib/timespec.h: New name for nanosleep.h. All uses changed.
56018 * lib/gettime.c: New file.
56019 * lib/settime.c: New file.
56020 * lib/stime.c: Remove.
56022 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
56023 timespec.h. Remove nanosleep.h.
56025 2002-02-25 Paul Eggert <eggert@twinsun.com>
56027 * m4/acl.m4: New file.
56028 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
56029 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
56031 2002-02-25 Paul Eggert <eggert@twinsun.com>
56033 * lib/acl.c, lib/acl.h: New files.
56034 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
56036 2002-02-24 Jim Meyering <meyering@lucent.com>
56038 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
56039 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
56040 cause trouble. Reported by Nelson Beebe.
56042 2002-02-23 Paul Eggert <eggert@twinsun.com>
56044 * lib/path-concat.c (xpath_concat): Reorder code to pacify
56045 compilers that don't know that xalloc_die never returns.
56047 2002-02-20 Jim Meyering <meyering@lucent.com>
56049 * lib/getdate.c: Regenerate using bison-1.33.
56051 2002-02-17 Jim Meyering <meyering@lucent.com>
56053 * config/config.guess (main): Don't use `head -1'; it's no longer
56054 portable. Use `sed 1q' instead.
56056 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
56058 * m4/codeset.m4: Upgrade to gettext-0.11.
56059 * m4/gettext.m4: Upgrade to gettext-0.11.
56060 * m4/glibc21.m4: Upgrade to gettext-0.11.
56061 * m4/iconv.m4: Upgrade to gettext-0.11.
56062 * m4/isc-posix.m4: Upgrade to gettext-0.11.
56063 * m4/lcmessage.m4: Upgrade to gettext-0.11.
56064 * m4/lib-ld.m4: New file, from gettext-0.11.
56065 * m4/lib-link.m4: New file, from gettext-0.11.
56066 * m4/lib-prefix.m4: New file, from gettext-0.11.
56067 * m4/progtest.m4: Upgrade to gettext-0.11.
56069 2002-02-15 Paul Eggert <eggert@twinsun.com>
56071 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
56072 (jm_PREREQ): Use it.
56074 2002-02-15 Paul Eggert <eggert@twinsun.com>
56076 * lib/posixver.c, lib/posixver.h: New files.
56077 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
56079 2002-02-02 Paul Eggert <eggert@twinsun.com>
56080 Bruno Haible <bruno@clisp.org>
56082 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
56083 (fwrite_success_callback): New declaration.
56084 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
56085 print_unicode_char. Call failure callback instead of error.
56086 (fwrite_success_callback): New function.
56087 (exit_failure_callback): New function.
56088 (fallback_failure_callback): New function.
56089 (print_unicode_char): Call unicode_to_mb.
56091 2002-01-26 Jim Meyering <meyering@lucent.com>
56093 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
56094 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
56096 2002-01-26 Jim Meyering <meyering@lucent.com>
56098 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
56100 2002-01-22 Paul Eggert <eggert@twinsun.com>
56102 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
56104 2002-01-22 Jim Meyering <meyering@lucent.com>
56106 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
56107 Otherwise, some versions of automake would omit the rule that makes
56108 Makefile from Makefile.in.
56110 2002-01-21 Paul Eggert <eggert@twinsun.com>
56112 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
56113 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
56114 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
56115 (memcoll): Set errno to zero if there is no error.
56117 * lib/quotearg.c (quotearg_buffer_restyled):
56118 Fix bug with quoting buffers containing NUL when backslashing escapes.
56119 This bug was exposed by the other changes in this patch.
56120 (quotearg_n_options): New arg ARGSIZE.
56121 All callers changed.
56122 (quoting_options_from_style): New function.
56123 (quotearg_n_style): Use it.
56124 (quotearg_n_style_mem): New function.
56126 * lib/quotearg.h (quotearg_n_style_mem): New function.
56128 2002-01-19 Jim Meyering <meyering@lucent.com>
56130 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
56131 Remove useless quotes: DF_PROG="df".
56132 * m4/strnlen.m4: New file.
56134 2002-01-16 Paul Eggert <eggert@twinsun.com>
56136 * lib/backupfile.c (ISDIGIT): Comment fix.
56137 * lib/getdate.y (ISDIGIT): Likewise.
56138 * lib/posixtm.c (ISDIGIT, year): Likewise.
56139 * lib/strverscmp.c (ISDIGIT): Likewise.
56140 * lib/userspec.c (ISDIGIT): Likewise.
56142 2002-01-16 Jim Meyering <meyering@lucent.com>
56144 * lib/getdate.y: Add three semicolons, each just before a closing
56145 brace. Bison (as of version 1.31) no longer papers over that mistake.
56147 2002-01-05 Jim Meyering <meyering@lucent.com>
56149 * lib/version-etc.c (version_etc_copyright): Update copyright year.
56151 2001-12-19 Paul Eggert <eggert@twinsun.com>
56153 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
56154 not silently exit merely because the output buffer happens to
56155 have nothing pending.
56157 2001-12-18 Paul Eggert <eggert@twinsun.com>
56159 See the big note in ../ChangeLog.
56160 * lib/human.c (suffixes): Prefer K to k for 1024.
56161 (generate_suffix_backwards): New function.
56162 (human_readable_inexact): Use it.
56163 * lib/xstrtol.c (__xstrtol): If there is no number but there
56164 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
56165 Accept 'K' as well as 'k'.
56167 2001-12-15 Jim Meyering <meyering@lucent.com>
56169 * lib/regex.h (__restrict_arr): Update from libc.
56171 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
56172 as `remote' if the name starts with `//'. Suggested by Michael Stone.
56175 2001-12-14 Jim Meyering <meyering@lucent.com>
56177 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
56178 Suggestion from Bruno Haible.
56180 2001-12-10 Jim Meyering <meyering@lucent.com>
56182 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
56183 xrealloc, Instead, include "xalloc.h".
56184 (initbuffer): Don't cast xmalloc return value to char*.
56185 (readline): Reword comment.
56186 Don't cast xrealloc return value to char*
56187 Return NULL, not 0.
56189 2001-12-09 Jim Meyering <meyering@lucent.com>
56191 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
56192 about `signed and unsigned type in conditional expression'.
56193 * lib/posixtm.c (posix_time_parse): Likewise.
56195 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
56197 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
56198 to avoid a pedantic warning.
56200 * lib/getstr.c: Don't include assert.h.
56201 (getstr): Remove warning-evoking assertions.
56202 Return -1 if offset parameter is out of bounds.
56203 Change the type of a local from int to size_t.
56205 * lib/strftime.c (my_strftime_localtime_r): Include this function
56206 definition in the `#if ! HAVE_TM_GMTOFF' block.
56208 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
56209 Include xalloc.h instead.
56211 2001-12-02 Jim Meyering <meyering@lucent.com>
56213 * lib/tempname.c: Don't declare getenv, thus reverting the change of
56214 2001-11-18. It's no longer necessary, now that stdlib.h is always
56217 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
56218 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
56220 2001-11-30 Akim Demaille <akim@epita.fr>
56222 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
56223 before being defined.
56225 2001-11-27 Paul Eggert <eggert@twinsun.com>
56227 * lib/quotearg.h (quotearg_n, quotearg_n_style):
56228 First arg is int, not unsigned.
56229 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
56230 (SIZE_MAX, UINT_MAX): New macros.
56231 (quotearg_n_options): Abort if N is negative.
56232 Avoid overflow check on hosts where size_t is 64 bits and int
56233 is 32 bits, as overflow is impossible there.
56234 Fix off-by-one typo that caused unnecessary reallocation.
56236 2001-11-27 Jim Meyering <meyering@lucent.com>
56238 * lib/tempname.c: Merge with version from libc.
56239 * lib/regex.c: Likewise.
56241 * lib/tempname.c: Include stdlib.h unconditionally. On some old
56242 systems for which STDC_HEADERS is 0, it was not included, resulting in
56243 a warning about an integer-to-pointer conversion problem with getenv.
56244 Reported by Volker Borchert.
56246 2001-11-26 Jim Meyering <meyering@lucent.com>
56248 * lib/gtod.h: Remove file.
56249 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
56250 * lib/gettimeofday.c: Don't include gtod.h.
56251 (GTOD_init): Remove function.
56252 (rpl_gettimeofday): Do its job here instead, rather than aborting.
56253 Suggestion from Volker Borchert.
56255 2001-11-23 Jim Meyering <meyering@lucent.com>
56257 * lib/hash.h (struct hash_table): Don't define here. Merely declare
56259 * lib/hash.c (struct hash_table): Define it here instead.
56261 2001-11-22 Jim Meyering <meyering@lucent.com>
56263 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
56265 2001-11-20 Jim Meyering <meyering@lucent.com>
56267 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
56268 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
56270 2001-11-19 Jim Meyering <meyering@lucent.com>
56272 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
56273 directory. Use "conftestXXXXXX" as the template.
56274 Suggestion from Paul Eggert.
56276 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
56277 immediately, so the test doesn't mistakenly hit the max-open-files
56280 2001-11-18 Paul Eggert <eggert@twinsun.com>
56282 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
56283 (TEMPORARIES): New macro.
56284 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
56285 removes an artificial limitation (e.g. HP-UX 10.20, where
56288 2001-11-18 Jim Meyering <meyering@lucent.com>
56290 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
56292 2001-11-18 Jim Meyering <meyering@lucent.com>
56294 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
56297 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
56298 files will be created before anything else.
56300 2001-11-17 Paul Eggert <eggert@twinsun.com>
56302 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
56303 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
56305 2001-11-17 Jim Meyering <meyering@lucent.com>
56307 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
56308 Prompted by a report from Bob Proulx.
56310 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
56311 Instead, require UTILS_FUNC_MKSTEMP.
56313 2001-11-17 Jim Meyering <meyering@lucent.com>
56315 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
56316 Now, that's done as part of AC_FUNC_STRTOD.
56318 2001-11-17 Jim Meyering <meyering@lucent.com>
56320 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
56321 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
56322 rather than group writable. Patch by Juan F. Codagnone.
56324 * lib/readtokens.c: Remove explicit declarations of xmalloc and
56325 xrealloc, Instead, include "xalloc.h".
56327 * lib/mountlist.c: Include unlocked-io.h after all system headers.
56328 Remove explicit declarations of xmalloc, xrealloc,
56329 and xstrdup. Instead, include "xalloc.h".
56331 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
56333 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
56335 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
56337 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
56338 Reported by Padraig Brady.
56340 * lib/mkstemp.c: #undef mkstemp.
56342 (rpl_mkstemp): Rename from mkstemp.
56345 2001-11-16 Jim Meyering <meyering@lucent.com>
56347 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
56348 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
56349 determine the amount of total physical memory, use pstat_getstatic.
56350 HPUX-11 doesn't define _SC_PHYS_PAGES.
56351 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
56352 If sysconf couldn't be used to determine the amount of available
56353 physical memory, use both pstat_getstatic and pstat_getdynamic.
56354 Based on a patch from Bob Proulx.
56356 2001-11-10 Jim Meyering <meyering@lucent.com>
56358 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
56359 (jm_PREREQ): Use it.
56361 2001-11-09 Jim Meyering <meyering@lucent.com>
56363 * m4/jm-macros.m4: Require autoconf-2.52f.
56364 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
56365 Use these AC_-prefixed names, not the AM_-prefixed ones.
56367 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
56369 2001-11-05 Jim Meyering <meyering@lucent.com>
56371 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
56373 2001-11-04 Jim Meyering <meyering@lucent.com>
56375 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
56378 2001-11-03 Jim Meyering <meyering@lucent.com>
56380 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
56383 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
56384 know the name of the variable in the macro definition.
56386 2001-11-03 Jim Meyering <meyering@lucent.com>
56388 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
56389 in argmatch_to_argument call.
56391 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
56394 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
56395 e.g., a fault due to an attempt to free a NULL pointer.
56397 2001-11-01 Jim Meyering <meyering@lucent.com>
56399 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
56400 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
56402 2001-11-01 Jim Meyering <meyering@lucent.com>
56404 * lib/dirfd.c, lib/dirfd.h: New files.
56405 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
56407 * lib/hash.c (hash_print) [TESTING]: Clean up.
56409 2001-10-22 Paul Eggert <eggert@twinsun.com>
56411 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
56412 to avoid a warning if -Wall.
56414 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
56417 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
56418 (per RMS's instructions, this is now the canonical source)
56419 * lgpl/, gpl/: New directories.
56421 2001-10-21 Paul Eggert <eggert@twinsun.com>
56423 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
56425 2001-10-21 Jim Meyering <meyering@lucent.com>
56427 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
56428 this code would end up calling gettext even in packages built
56429 with --disable-nls.
56430 * lib/getopt.c (_): Likewise.
56431 * lib/regex.c (_): Likewise.
56433 2001-10-20 Paul Eggert <eggert@twinsun.com>
56435 * m4/error.m4 (jm_PREREQ_ERROR):
56436 Do not invoke AC_CHECK_FUNCS with strerror_r, as
56437 AC_FUNC_STRERROR_R does that.
56438 Check for strerror declaration.
56440 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
56441 are supposed to have them these days.
56442 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
56443 Merge changes from latest Autoconf CVS.
56444 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
56445 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
56446 POSIX decided to standardize on the int flavor of strerror_r.
56448 2001-10-20 Paul Eggert <eggert@twinsun.com>
56450 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
56451 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
56452 Use strerror_r that is only a macro, even if it is not a function.
56453 (strerror): Check for HAVE_DECL_STRERROR before declaring.
56454 (private_strerror): Use prototypes, not old-style function definition.
56455 (print_errno_message): New function.
56456 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
56457 char*-flavored one.
56458 (error_tail, error, error_at_line): Use it.
56460 2001-10-11 Jim Meyering <meyering@lucent.com>
56462 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
56463 and quote_n (1, ... to avoid clobbering a buffer.
56465 2001-10-05 Jim Meyering <meyering@lucent.com>
56467 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
56469 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
56470 * lib/hash-pjw.h: New file.
56472 2001-09-30 Jim Meyering <meyering@lucent.com>
56474 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
56475 `struct fsstat' has the `f_fstypename' member.
56476 Use that to define FS_TYPE, which is now used to make
56477 the getfsstat link test tighter.
56479 2001-09-30 Jim Meyering <meyering@lucent.com>
56481 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
56482 Include <sys/ucred.h>, for Apple Darwin.
56483 Include sys/mount.h and sys/fs_types.h only if available.
56485 (read_filesystem_list): Use FS_TYPE.
56487 2001-09-29 Paul Eggert <eggert@twinsun.com>
56489 * lib/exclude.c (excluded_filename): 0 -> false, since it's
56492 2001-09-29 Jim Meyering <meyering@lucent.com>
56494 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
56495 [one-argument getmntent function]): Include stdio.h before mntent.h.
56496 SunOS 4.1.x needs it for the declaration of `FILE'.
56497 Patch by Volker Borchert.
56499 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
56500 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
56501 sys/fs_types.h, and make the link-test for getfsstat guard #include
56502 directives with appropriate #if HAVE_*_H tests so that we can
56503 detect getfsstat on Apple Darwin1.3.7 systems.
56504 Reported by Nelson Beebe.
56505 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
56507 2001-09-28 Paul Eggert <eggert@twinsun.com>
56509 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
56510 #defines strtoimax. Also treat the other strto* functions
56513 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
56514 Check for strtoul and strtoumax,
56515 as those declarations are made even in the signed case.
56516 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
56517 Likewise, for strtol and strtoimax.
56519 2001-09-28 Paul Eggert <eggert@twinsun.com>
56521 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
56522 #defines strtoimax. Also treat the other strto* functions
56525 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
56526 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
56527 (strtoimax, strtoumax): Do not declare if already defined as a macro.
56529 2001-09-26 Jim Meyering <meyering@lucent.com>
56531 Most macros in unlocked-io.h had the wrong number of arguments.
56532 * lib/gen-uio: New script.
56533 (USE_UNLOCKED_IO): Define to 1 if not already defined.
56534 * lib/unlocked-io.hin: Remove file.
56535 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
56536 rather than trying to embed it here.
56537 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
56538 Reported by Padraig Brady.
56540 2001-09-25 Volker Borchert <bt@teknon.de>
56542 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
56545 2001-09-24 Jim Meyering <meyering@lucent.com>
56547 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
56549 2001-09-23 Jim Meyering <meyering@lucent.com>
56551 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
56552 instead of the mere test for existence of mntent.h. The latter
56553 would get a false-positive on AIX 3.4 systems.
56554 In the outer getmntent if-block, don't die if neither of the getmntent
56555 tests succeeds. Instead, just fall through and continue with the
56558 2001-09-23 Jim Meyering <meyering@lucent.com>
56560 * lib/mountlist.c: Remove useless parentheses in #if directives.
56561 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
56562 the deprecated MOUNTED symbol is no longer defined in mntent.h.
56564 2001-09-22 Jim Meyering <meyering@lucent.com>
56566 * m4/gettext.m4: New file. From gettext.
56567 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
56568 * m4/progtest.m4: Likewise
56569 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
56570 * m4/glibc21.m4: Likewise.
56572 * m4/libintl.m4: Remove. No longer used.
56574 2001-09-22 Jim Meyering <meyering@lucent.com>
56576 * lib/localcharset.c: Update from latest gettext.
56577 * lib/config.charset: Likewise.
56579 2001-09-20 Jim Meyering <meyering@lucent.com>
56581 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
56583 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
56586 2001-09-20 Jim Meyering <meyering@lucent.com>
56588 * lib/xstrtol.c (strtoimax): Guard declaration with
56589 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
56590 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
56591 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
56592 (strtoumax): Likewise, for completeness (it wasn't necessary).
56594 2001-09-17 Paul Eggert <eggert@twinsun.com>
56596 * lib/strtoimax.c (HAVE_LONG_LONG):
56597 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
56598 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
56599 to work around bug in IBM C compiler.
56601 2001-09-17 Jim Meyering <meyering@lucent.com>
56603 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
56604 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
56605 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
56606 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
56607 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
56608 whenever the right hand side need not be expanded by the shell.
56610 2001-09-16 Paul Eggert <eggert@twinsun.com>
56612 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
56613 library. It's not correct, as some older glibcs are buggy.
56614 fnmatch wasn't fixed until glibc 2.2.
56616 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
56617 special shell magic here.
56619 2001-09-16 Jim Meyering <meyering@lucent.com>
56621 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
56622 * m4/jm-macros.m4: Require it.
56624 2001-09-16 Jim Meyering <meyering@lucent.com>
56626 * lib/mkdir.c: New file.
56628 2001-09-15 Jim Meyering <meyering@lucent.com>
56630 * m4/jm-macros.m4: Check for help2man.
56632 2001-09-11 Jim Meyering <meyering@lucent.com>
56634 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
56635 The body, by Paul Eggert, was moved here from configure.in.
56636 * m4/jm-macros.m4: Require UTILS_HOST_OS.
56638 2001-09-04 Paul Eggert <eggert@twinsun.com>
56640 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
56641 (jm_PREREQ): Use it.
56643 2001-09-04 Paul Eggert <eggert@twinsun.com>
56645 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
56646 Use ssize_t, not int, to store result of readlink.
56647 Check for ssize_t overflow as well as size_t overflow,
56648 as POSIX says the result of readlink is implementation-defined
56649 when ssize_t overflows.
56650 Remove unnecessary cast to char*.
56651 Use free+malloc instead of realloc, as the storage doesn't need
56652 to be preserved and it's clearer and can be more efficient that way.
56653 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
56654 * lib/xreadlink.h (xreadlink): Update prototype.
56656 2001-09-04 Paul Eggert <eggert@twinsun.com>
56658 * lib/xgetcwd.c: Revert some of the previous change; intead,
56659 fix the HAVE_GETCWD_NULL code to behave more like the
56660 !HAVE_GETCWD_NULL code used to.
56662 Include "xalloc.h".
56663 (xgetcwd): Do not return NULL when memory is exhausted; instead,
56666 2001-09-03 Paul Eggert <eggert@twinsun.com>
56668 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
56669 sys/param.h, as pathmax.h includes them.
56671 2001-09-03 Paul Eggert <eggert@twinsun.com>
56673 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
56674 (jm_PREREQ_XGETCWD): New macro.
56676 * m4/getcwd.m4: New file.
56678 2001-09-03 Paul Eggert <eggert@twinsun.com>
56680 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
56681 like the HAVE_GETCWD_NULL code.
56682 Include pathmax.h if not HAVE_GETCWD.
56683 Do not include xalloc.h.
56684 (INITIAL_BUFFER_SIZE): New symbol.
56685 Do not use xmalloc / xrealloc, since the caller is responsible for
56686 handling errors. Preserve errno around `free' during failure.
56687 Do not overrun buffer when using getwd.
56689 2001-09-03 Paul Eggert <eggert@twinsun.com>
56691 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
56692 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
56695 2001-09-03 Paul Eggert <eggert@twinsun.com>
56697 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
56698 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
56699 spotted by Jim Meyering.
56701 2001-09-03 Jim Meyering <meyering@lucent.com>
56703 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
56706 2001-09-02 Jim Meyering <meyering@lucent.com>
56708 * lib/error.c: Update from GNU libc.
56710 2001-09-01 Jim Meyering <meyering@lucent.com>
56712 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
56715 2001-09-01 Jim Meyering <meyering@lucent.com>
56717 * lib/xreadlink.c: New file.
56718 * lib/xreadlink.h: New file.
56719 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
56722 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
56723 doesn't conflict with sparc Solaris 7's definition in
56724 /usr/include/sys/int_types.h.
56726 * lib/exclude.c: Use `""', not `<>' to #include non-system header
56728 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
56729 and strncasecmp as r-values. Unixware didn't have declarations.
56731 2001-08-31 Paul Eggert <eggert@twinsun.com>
56733 * lib/xstrtol.h: Add copyright notice.
56734 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
56735 LONGINT_INVALID_SUFFIX_CHAR.
56737 2001-08-31 Paul Eggert <eggert@twinsun.com>
56739 * lib/xstrtol.c (strtoimax): New decl.
56741 2001-08-31 Paul Eggert <eggert@twinsun.com>
56743 * lib/xgetcwd.c: Don't include pathmax.h.
56744 Include stdlib.h and unistd.h if available.
56746 (xmalloc, xstrdup, free): Remove decls.
56747 (xgetcwd): Don't assume sizes fit in unsigned.
56748 Check for overflow when computing sizes.
56749 Simplify reallocation code.
56751 2001-08-31 Paul Eggert <eggert@twinsun.com>
56753 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
56754 a directory's st_size can have an arbitrary value, so the old
56755 usage could waste an arbitrary amount of memory. All uses
56757 * lib/savedir.h: Update prototype.
56759 2001-08-31 Paul Eggert <eggert@twinsun.com>
56761 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
56763 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
56766 Also, make the following further changes to make this file's
56767 configuration more similar to that of strtol.c:
56768 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
56769 (strtoumax, uintmax_t, strtoull, strtol): Remove.
56770 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
56771 (strtoimax): Renamed from strtoumax. All uses of unsigned values
56772 changed to signed values.
56774 And make the following changes as well:
56775 Fix copyright notice, as 1999 was missing.
56776 (verify): New macro.
56777 (strtoimax): Check sizes at compile-time, not run-time.
56778 Prefer strtol to strtoll if both work.
56779 (main): Remove; it was not that useful and was a pain to maintain.
56781 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
56783 2001-08-31 Jim Meyering <meyering@lucent.com>
56785 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
56786 Use an initial, malloc'd, buffer of length 128 rather than
56787 a statically allocated one of length 1024.
56789 2001-08-30 Paul Eggert <eggert@twinsun.com>
56791 Simplify code, partly by assuming autoconf 2.52 semantics.
56793 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
56795 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
56796 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
56798 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
56799 Move AC_REQUIRE to next-to-top level, to avoid confusion.
56800 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
56801 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
56802 jm_AC_HEADER_INTTYPES_H.
56803 * m4/jm-macros.m4 (jm_MACROS): Likewise.
56805 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
56807 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
56808 Quote first arg of AC_DEFUN.
56809 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
56810 since they are needed to parse the include file even if we need
56811 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
56812 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
56813 but with opposite signedness.
56815 2001-08-30 Paul Eggert <eggert@twinsun.com>
56817 Merge 'exclude' changes from tar 1.13.22.
56818 This fixes one or two unlikely storage allocation overflow bugs,
56819 but doesn't change user-visible behavior otherwise.
56821 2001-08-30 Paul Eggert <eggert@twinsun.com>
56823 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
56824 (jm_PREREQ_EXCLUDE): New macro.
56826 2001-08-30 Paul Eggert <eggert@twinsun.com>
56828 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
56831 2001-08-30 Paul Eggert <eggert@twinsun.com>
56833 * lib/hash.c: Remove '2001' from copyright notice.
56835 2001-08-30 Paul Eggert <eggert@twinsun.com>
56837 * lib/full-write.h: New file.
56838 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
56839 * lib/full-write.c: Correct credits, as cccp.c no longer
56840 exists and anyway it was so heavily changed from the old cccp
56841 code as to be unrecognizable. Include full-write.h.
56842 (full_write) Return size_t, with short writes meaning failure.
56843 All callers changed. This fixes a bug with large buffers
56845 * lib/utime.c: Include full-write.h.
56847 2001-08-30 Paul Eggert <eggert@twinsun.com>
56849 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
56850 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
56851 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
56852 Include if available.
56853 (<xalloc.h>): Include
56854 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
56855 (verify): New macro. Use it to verify that EXCLUDE macros do not
56856 collide with FNM macros.
56857 (struct patopts): New struct.
56858 (struct exclude): Use it, as exclude patterns now come with options.
56859 (new_exclude): Support above changes.
56860 (new_exclude, add_exclude_file):
56861 Initial size must now be a power of two to simplify overflow checking.
56862 (free_exclude, fnmatch_no_wildcards): New function.
56863 (excluded_filename): No longer requires options arg, as the options
56864 are determined by add_exclude. Now returns bool, not int.
56865 (excluded_filename, add_exclude):
56866 Add support for the fancy new exclusion options.
56867 (add_exclude, add_exclude_file): Now takes int options arg.
56868 Check for arithmetic overflow when computing sizes.
56869 (add_exclude_file): xrealloc might modify errno, so don't
56870 realloc until after errno might be used.
56872 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
56874 (free_exclude): New decl.
56875 (add_exclude, add_exclude_file): Now takes int options arg.
56876 (excluded_filename): No longer requires options arg, as the options
56877 are determined by add_exclude. Now returns bool, not int.
56879 2001-08-30 Paul Eggert <eggert@twinsun.com>
56881 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
56883 2001-08-27 Jim Meyering <meyering@lucent.com>
56885 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
56887 * lib/version-etc.c (N_): Remove definition.
56888 Revert most of last change.
56889 Instead, simply don't mark the `Copyright...' string for translation.
56890 Based on advice from Paul Eggert.
56892 * lib/strtoxmax.c: Tweak comment.
56894 2001-08-26 Jim Meyering <meyering@lucent.com>
56896 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
56898 * m4/xstrtoimax.m4: New file.
56899 * m4/xstrtoumax.m4: Add comments explaining why we
56900 AC_REPLACE_FUNCS(strtol).
56902 2001-08-26 Jim Meyering <meyering@lucent.com>
56904 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
56905 of copyright with `%s' so translators don't get an untranslated
56907 (COPYRIGHT_YEAR): Define.
56908 (version_etc): Use fprintf rather than fputs.
56909 Suggestion from Ulrich Drepper.
56911 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
56913 * lib/strtoll.c: New file, from GNU libc.
56914 * lib/xstrtoimax.c: New file.
56916 * lib/xstrtol.h: Add xstrtoimax.
56917 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
56918 * lib/strtoimax.c: New file. Likewise, but first define
56921 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
56923 * lib/strtoxmax.c: ... then renamed to this.
56925 2001-08-18 Paul Eggert <eggert@twinsun.com>
56927 * m4/inttypes.m4: Add AC_PREREQ(2.13).
56928 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
56929 (jm_AC_TYPE_INTMAX_T): New macro.
56930 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
56932 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
56934 * m4/longlong.m4: Renamed from ulonglong.m4.
56935 * m4/inttypes.m4: Renamed from inttypes_h.m4.
56936 * m4/uintmax_t.m4: Removed.
56938 2001-08-13 Paul Eggert <eggert@twinsun.com>
56940 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
56941 Port to Solaris 8, where 'sed' requires a space after the 'r'
56942 command, and where sh dislikes "$/". Clean up the spacing a bit.
56943 Redirect output to $tmp just once.
56945 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
56947 * lib/addext.c (<errno.h>): Include.
56948 (errno): Declare if not defined.
56949 (addext): Work correctly when pathconf returns -1 and leaves
56950 errno alone because there is no limit. Also, work even if
56951 pathconf returns a value greater than SIZE_MAX.
56953 2001-08-12 Jim Meyering <meyering@lucent.com>
56955 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
56956 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
56957 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
56958 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
56959 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
56960 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
56961 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
56962 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
56963 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
56964 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
56965 utime.m4, utimes.m4, xstrtoumax.m4:
56966 Quote the first argument in each use of AC_DEFUN.
56968 2001-08-12 Jim Meyering <meyering@lucent.com>
56970 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
56971 Simply `return getcwd (NULL, 0);'.
56972 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
56973 Use 1300 as initial value for length, not PATH_MAX.
56975 * lib/pathmax.h: Clean up cpp syntax.
56977 2001-08-12 Jim Meyering <meyering@lucent.com>
56979 * lib/gettimeofday.c: New file.
56980 * lib/gtod.h: New file.
56981 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
56983 2001-08-05 Jim Meyering <meyering@lucent.com>
56985 * m4/jm-macros.m4: Require autoconf-2.52.
56987 2001-08-04 Jim Meyering <meyering@lucent.com>
56989 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
56990 stmt, to get in sync with glibc.
56992 2001-08-03 Paul Eggert <eggert@twinsun.com>
56994 The following changes are from gettext 0.10.39 as maintained by
56997 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
56998 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
56999 with inverted sense. All uses changed.
57001 * lib/mbswidth.c: Don't include <limits.h>.
57002 Include <stdlib.h> and <string.h> unconditionally.
57003 (iswcntrl, mbsinit, ISCNTRL): New macros.
57004 (mbsnwidth): Use K&R style function declarations.
57005 Don't bother checking for MB_LEN_MAX == 1, since the compiler
57006 can optimize it when MB_CUR_MAX == 1.
57007 The width of control characters is zero, not 1.
57009 2001-08-03 Paul Eggert <eggert@twinsun.com>
57011 The following changes are from gettext 0.10.39 as maintained by
57012 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
57014 * m4/codeset.m4: Upgrade to serial AM1.
57015 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
57016 all uses changed. Quote first arg of AC_DEFUN.
57017 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
57019 * m4/iconv.m4: Upgrade to serial AM2.
57020 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
57021 Add --with-libconv-prefix.
57022 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
57023 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
57024 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
57025 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
57026 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
57028 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
57029 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
57030 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
57031 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
57032 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
57033 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
57034 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
57035 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
57036 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
57038 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
57041 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
57042 not the default value.
57044 2001-06-25 Bruno Haible <haible@clisp.cons.org>
57045 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
57046 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
57047 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
57048 Also check for iswcntrl, used for wcwidth fallback.
57049 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
57052 2001-08-03 Jim Meyering <meyering@lucent.com>
57054 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
57055 as it was in the original. Reported by Paul Eggert.
57057 2001-07-16 Jim Meyering <meyering@lucent.com>
57059 * m4/gettimeofday.m4: New file.
57060 Prompted by a report from Bernhard Baehr.
57062 2001-07-15 Jim Meyering <meyering@lucent.com>
57064 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
57065 stuff. Now it's in ../Makefile.cfg.
57067 2001-07-15 Jim Meyering <meyering@lucent.com>
57069 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
57070 (BUILT_SOURCES): Add unlocked-io.h.
57071 (io_functions): Define.
57072 (unlocked-io.h): New rule.
57073 (DISTCLEANFILES): Add unlocked-io.h.
57074 (all-local): Depend on unlocked-io.h, to ensure it is created.
57076 * lib/unlocked-io.hin: New file
57078 * lib/regex.c: Update from glibc.
57080 2001-07-05 Jim Meyering <meyering@lucent.com>
57082 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
57084 (libfetish_a_SOURCES): Put all .h files here instead.
57085 Remove a thus-exposed (better checks in automake) duplicate and
57086 two unnecessary .h files.
57088 2001-07-04 Jim Meyering <meyering@lucent.com>
57090 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
57091 that generates jm-glibc-io.m4 so that it doesn't trigger any make
57094 2001-07-02 Jim Meyering <meyering@lucent.com>
57096 The following changes were prompted by suggestions from Bruno Haible.
57098 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
57100 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
57101 definition of EXTRA_DIST.
57102 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
57103 ensure that the generated file is created/updated whenever the list
57104 of $(unlocked_functions) is changed.
57105 (jm-glibc-io.m4): New rule.
57106 (unlocked-io.h): New rule -- currently unused.
57108 2001-06-24 Jim Meyering <meyering@lucent.com>
57110 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
57111 unmatched right bracket, rather than kludging it with an extra,
57112 falsely-matching quote in a comment. Patch by Akim Demaille.
57114 2001-06-11 Jim Meyering <meyering@lucent.com>
57116 * lib/regex.c: Update from GNU libc.
57118 2001-05-27 Jim Meyering <meyering@lucent.com>
57120 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
57121 Check for ut_type in struct utmp.
57123 2001-05-27 Jim Meyering <meyering@lucent.com>
57125 * lib/readutmp.h (UT_TYPE): Define.
57127 2001-05-24 Jim Meyering <meyering@lucent.com>
57129 * lib/argmatch.c: Include "quote.h".
57130 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
57131 quote function. Reported by Göran Uddeborg.
57133 2001-05-22 Jim Meyering <meyering@lucent.com>
57135 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
57136 now that we use the package-supplied version unconditionally.
57137 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
57139 2001-05-21 Jim Meyering <meyering@lucent.com>
57141 * m4/regex.m4: Change a couple backticks to single quotes to avoid
57142 shell syntax errors.
57144 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
57146 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
57148 2001-05-20 Paul Eggert <eggert@twinsun.com>
57150 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
57151 Don't bother to check library strftime, since
57152 we'll be using our own my_strftime function anyway.
57153 Define my_strftime instead of strftime.
57155 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
57157 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
57158 which is not yet declared.
57160 2001-05-15 Jim Meyering <meyering@lucent.com>
57162 * m4/regex.m4: Use proper quoting so brackets appear in the test
57164 Reported by, and with help from, Bruno Haible.
57166 2001-05-13 Jim Meyering <meyering@lucent.com>
57168 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
57171 2001-05-11 Paul Eggert <eggert@twinsun.com>
57173 dirname code cleanup. base_name now behaves more compatibly
57174 with POSIX basename when given file names that have trailing
57175 slashes, and similarly for dir_name. Add new primitives
57176 base_len and dir_len. Put the directory-name-related decls
57179 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
57180 * lib/backupfile.c (base_name): Likewise.
57181 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
57182 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
57183 * lib/makepath.c (strip_trailing_slashes): Likewise.
57184 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
57185 ISSLASH): Likewise.
57186 * lib/rename.c (strip_trailing_slashes): Likewise.
57187 * lib/same.c (base_name): Likewise.
57188 * lib/stripslash.c (ISSLASH): Likewise.
57190 * lib/addext.c: Include <dirname.h> after size_t is defined.
57191 * lib/backupfile.c: Likewise.
57193 * lib/addext.c (addext): Use base_len to trim redundant
57194 trailing slashes instead of doing it ourselves.
57195 But do not trim the last slash if it is not redundant.
57197 * lib/backupfile.c (find_backup_file_name,
57198 max_backup_version): Use base_len instead of rolling it ourselves.
57199 Handle the case of "" and (on DOS) "C:" correctly.
57201 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
57202 needed. Include <string.h>, <dirname.h>.
57203 (base_name): Allow file names ending in slashes, other than names
57204 that are all slashes. In this case, return the basename followed
57205 by the slashes. This is more general, and can be used in places
57206 where the original base_name purposely had an assertion failure.
57207 (base_len): New function.
57209 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
57210 Do not include <assert.h>; no longer needed.
57212 (memrchr): Remove decl.
57213 (dir_name_r): Remove.
57214 (dir_len): Renamed from dirlen. All callers changed.
57215 Rewrite in terms of base_name, for simplicity and consistency.
57216 (dir_name): Never return NULL. All callers changed.
57217 Do not include <stdlib.h> in test program; no longer needed.
57218 return 0; is fine for test program.
57220 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
57222 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
57224 * lib/path-concat.c (path_concat): Use base_len to compute
57225 base length, not strlen; this means we cannot rely on memcpy
57228 * lib/same.c (STREQ): Remove.
57229 (same_name): Handle the case where the basename ends in trailing '/'.
57231 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
57232 a slash was stripped. Do not strip the last slash after a
57233 file system prefix.
57235 2001-05-11 Paul Eggert <eggert@twinsun.com>
57237 * lib/Makefile.am (libfetish_a_SOURCES):
57238 Add strftime.c, since we now compile it on all hosts.
57240 * lib/strftime.c (my_strftime):
57241 Define to nstrftime if emacs, but only if my_strftime is not defined.
57242 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
57243 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
57244 Add one more extra argument: a nanoseconds value.
57247 (my_strftime function): Add %N format.
57248 (emacs_strftimeu): Renamed from emacs_strftime,
57249 with extra ut argument.
57251 2001-05-09 Paul Eggert <eggert@twinsun.com>
57253 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
57255 2001-04-21 Jim Meyering <meyering@lucent.com>
57257 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
57260 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
57262 * m4/ftruncate.m4: Check for chsize.
57263 Link with ftruncate.o unconditionally if ftruncate is missing.
57264 This was required when cross-compiling to i586-mingw32msvc.
57266 2001-04-08 Jim Meyering <meyering@lucent.com>
57268 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
57269 recomputed; that's necessary when the offset spans a DST transition.
57270 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
57272 2001-04-02 Jim Meyering <meyering@lucent.com>
57274 * lib/regex.h, regex.c: Update from GNU libc.
57276 2001-03-24 Jim Meyering <meyering@lucent.com>
57278 * m4/jm-macros.m4: Require autoconf-2.49d.
57280 2001-03-20 Bruno Haible <haible@clisp.cons.org>
57282 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
57284 2001-03-19 Paul Eggert <eggert@twinsun.com>
57286 * lib/version-etc.c (version_etc_copyright): Update to 2001.
57288 2001-03-17 Jim Meyering <meyering@lucent.com>
57290 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
57291 now that the version in autoconf is equivalent.
57292 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
57294 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
57295 Suggestion from Akim Demaille.
57297 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
57298 (jm_PREREQ_TEMPNAME): New function.
57300 2001-03-16 Paul Eggert <eggert@twinsun.com>
57302 * lib/tempname.c (uint64_t): Define to uintmax_t if
57303 not defined, and if UINT64_MAX is not defined.
57304 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
57305 Reported by John David Anglin.
57307 2001-03-15 Bruno Haible <haible@clisp.cons.org>
57309 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
57310 resolve alias if codeset is empty.
57311 * lib/config.charset (BeOS): Use wildcard syntax.
57313 2001-03-13 Jim Meyering <meyering@lucent.com>
57315 * lib/path-concat.c (path_concat)
57316 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
57317 concatenating e.g., `C:' and `foo'.
57320 2001-03-06 Bruno Haible <haible@clisp.cons.org>
57322 * lib/localcharset.c (locale_charset): Don't use
57323 setlocale(LC_CTYPE,NULL). Don't return NULL.
57324 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
57326 2001-03-06 Bruno Haible <haible@clisp.cons.org>
57328 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
57329 support for DOS/DJGPP.
57331 2001-03-01 Paul Eggert <eggert@twinsun.com>
57333 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
57334 lacks mkstemp. Compile our own tempname.c if we compile our own
57335 mkstemp.c, as mkstemp relies on tempname.
57337 2001-03-01 Jim Meyering <meyering@lucent.com>
57339 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
57340 AH_VERBATIM really does output its argument verbatim.
57342 2001-02-28 Paul Eggert <eggert@twinsun.com>
57344 * lib/Makefile.am (libfetish_a_SOURCES):
57345 Add dup-safer.c, fopen-safer.c.
57346 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
57348 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
57349 * lib/unistd-safer.h: New files.
57351 2001-02-25 Paul Eggert <eggert@twinsun.com>
57353 The mkstemp replacement is taken from glibc 2.2.2, with some
57354 portability fixes for use outside glibc, as follows:
57356 * lib/tempname.c (struct_stat64): New macro.
57357 (direxists, __gen_tempname): Use it.
57358 This avoids a portability problem with Solaris 8.
57360 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
57361 (<stddef.h>, <stdint.h>, <string.h>):
57362 Include only if STDC_HEADERS || _LIBC.
57363 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
57364 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
57365 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
57366 (__set_errno): Define this macro if <errno.h> doesn't.
57367 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
57368 Define these macros if <stdio.h> doesn't.
57369 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
57370 Define these macros if <sys/stat.h>
57371 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
57372 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
57373 __xstat64): Define if not _LIBC.
57374 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
57375 (__gen_tempname): Invoke gettimeofday only if
57376 HAVE_GETTIMEOFDAY || _LIBC;
57377 otherwise, fall back on plain "time".
57378 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
57380 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
57382 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
57384 2001-02-18 Paul Eggert <eggert@twinsun.com>
57386 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
57388 2001-02-17 Paul Eggert <eggert@twinsun.com>
57390 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
57391 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
57392 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
57393 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
57395 2001-02-17 Paul Eggert <eggert@twinsun.com>
57397 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
57398 Remove workaround macros for hosts that have mbrtowc but not
57399 mbstate_t, as we now insist on proper declarations for both
57400 before using mbrtowc.
57402 2001-02-17 Jim Meyering <meyering@lucent.com>
57404 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
57405 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
57406 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
57409 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
57410 rather than AC_CACHE_VAL.
57412 2001-02-17 Jim Meyering <meyering@lucent.com>
57414 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
57415 around included file name.
57417 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
57419 * lib/strftime.c: Update from GNU libc (the only changes were to
57422 2001-02-17 Jim Meyering <meyering@lucent.com>
57424 * lib/regex.c: Update from libc.
57426 2001-02-17 Bruno Haible <haible@clisp.cons.org>
57428 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
57431 2001-02-16 Paul Eggert <eggert@twinsun.com>
57433 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
57434 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
57435 Reported by Mark Hounschell via Paul Eggert.
57437 2001-02-07 Jim Meyering <meyering@lucent.com>
57439 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
57441 2001-02-05 Jim Meyering <meyering@lucent.com>
57443 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
57444 it includes the patch required for `large file' support with at least
57445 HP-UX's 10.20 /bin/cc.
57447 2001-02-03 Jim Meyering <meyering@lucent.com>
57449 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
57450 AS_IF, now that it works once again (mysteriously).
57451 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
57453 2001-01-30 Jim Meyering <meyering@lucent.com>
57455 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
57456 * m4/chown.m4: Rename conftestchown to conftest.chown.
57457 * m4/rename.m4: s/conftestdir/conftest.d1/ and
57458 s/conftestdir2/conftest.d2/.
57459 * m4/utimes.m4: s/conftestdata/conftest.data/
57460 Inspired by Pavel Roskin's change in autoconf.
57462 2001-01-30 Bruno Haible <haible@clisp.cons.org>
57464 * lib/config.charset: Update for FreeBSD 4.2.
57466 2001-01-27 Jim Meyering <meyering@lucent.com>
57468 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
57470 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
57472 2001-01-26 Jim Meyering <meyering@lucent.com>
57474 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
57475 quotearg.c includes it.
57477 2001-01-26 Jim Meyering <meyering@lucent.com>
57479 * lib/quotearg.c: Include stddef.h.
57480 * lib/quote.c: Include stddef.h.
57481 Reported by Axel Kittenberger.
57483 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
57484 line in double quotes so that it evokes a better diagnostic.
57485 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
57486 Reported by Axel Kittenberger.
57488 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
57490 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
57491 as if it was a `charset'.
57493 2001-01-21 Bruno Haible <haible@clisp.cons.org>
57495 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
57498 2001-01-21 Bruno Haible <haible@clisp.cons.org>
57500 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
57501 to avoid a warning. Add back 'const' to inptr.
57503 2001-01-20 Jim Meyering <meyering@lucent.com>
57505 Be sure that headers are checked before used in code compiled
57506 for the type checks.
57507 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
57508 In place of that, invoke jm_CHECK_ALL_TYPES.
57509 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
57510 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
57511 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
57512 The check for ssize_t was mistakenly run before the test for unistd.h.
57514 The configure-time check for stdbool.h was missing.
57515 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
57516 (jm_PREREQ_HASH): New function.
57518 2001-01-17 Jim Meyering <meyering@lucent.com>
57520 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
57521 for autoconf-2.49c.
57522 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
57524 2001-01-16 Jim Meyering <meyering@lucent.com>
57526 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
57529 2001-01-14 Jim Meyering <meyering@lucent.com>
57531 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
57532 foo and bar. Create conftestdir/ in the script, not in the C code.
57533 Remove directories in the script, not in the C code.
57534 Remove conftestdir{,2} before trying to create the directory.
57535 Make the entire configure script fail if the mkdir fails.
57537 2001-01-14 Jim Meyering <meyering@lucent.com>
57539 * lib/rename.c: New file. From Volker Borchert.
57540 Include stdlib.h, string.h or strings.h, and xalloc.h.
57541 Use strip_trailing_slashes rather than open-coding it.
57543 2001-01-03 Paul Eggert <eggert@twinsun.com>
57545 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
57547 2001-01-03 Jim Meyering <meyering@lucent.com>
57549 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
57550 of local `inptr' to avoid warning with some system declarations of
57553 2001-01-02 Volker Borchert <bt@teknon.de>
57555 * m4/rename.m4: New file.
57556 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
57558 2001-01-01 Jim Meyering <meyering@lucent.com>
57560 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
57561 even on systems with utmpx.h. It's necessary for the declaration of
57562 utmp's ut_user member. Reported by Andreas Jaeger.
57564 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
57565 available. They are required for the declarations of getgrgid and
57567 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
57568 Reported by Andreas Jaeger.
57570 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
57572 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
57573 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
57574 so `make install' also works in VPATH builds.
57576 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
57578 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
57579 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
57580 can be used in subdirectories.
57582 2000-12-29 Paul Eggert <eggert@twinsun.com>
57584 * lib/modechange.c: Do not assume that mode_t uses the
57585 traditional octal encoding. E.g. "chmod 1 FOO" should set
57586 the other-execute bit of FOO even if S_IXOTH != 1.
57588 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
57589 WOTH, XOTH, ALLM): New macros.
57590 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
57591 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
57593 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
57594 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
57596 No need to use uintmax_t; unsigned long is long enough.
57597 Don't bother to get suffix since we don't use it.
57599 2000-12-26 Jim Meyering <meyering@lucent.com>
57601 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
57602 better with autoheader.
57604 2000-12-24 Jim Meyering <meyering@lucent.com>
57606 * lib/hash.c (is_prime): Return explicit boolean values.
57607 (hash_get_first): Return NULL to appease Irix5.6's 89.
57608 Reported by Nelson Beebe.
57610 2000-12-19 Bruno Haible <haible@clisp.cons.org>
57612 * lib/localcharset.c (locale_charset): Add support for Win32.
57614 2000-12-18 Paul Eggert <eggert@twinsun.com>
57616 * lib/physmem.h, lib/physmem.c: New files.
57618 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
57619 (noinst_HEADERS): Add physmem.h.
57621 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
57622 't' for compatibility with Solaris 8 sort.
57624 2000-12-18 Bruno Haible <haible@clisp.cons.org>
57626 * lib/config.charset: Add support for BeOS.
57628 2000-12-17 Jim Meyering <meyering@lucent.com>
57630 * m4/dos.m4 (jm_AC_DOS): New file and macro.
57631 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
57633 2000-12-16 Jim Meyering <meyering@lucent.com>
57635 This bug had a serious impact on chown: `chown N:M FILE' (for integer
57636 N and M) would have treated it like `chown N:N FILE'.
57638 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
57640 2000-12-16 Jim Meyering <meyering@lucent.com>
57642 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
57643 SHELLS_FILE to a file name that's useful on djgpp systems.
57645 (ADDITIONAL_DEFAULT_SHELLS): Define.
57646 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
57647 Based mostly on a patch from Prashant TR.
57649 2000-12-16 Bruno Haible <haible@clisp.cons.org>
57651 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
57652 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
57653 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
57655 2000-12-08 Andreas Schwab <schwab@suse.de>
57657 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
57658 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
57660 2000-12-07 Jim Meyering <meyering@lucent.com>
57662 * lib/stripslash.c (ISSLASH): Define.
57663 (strip_trailing_slashes): Use ISSLASH rather than comparing against
57667 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
57668 (dir_name_r): Declare this function as static.
57669 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
57670 manifest itself on a name containing a mix of slashes and
57672 Make this function work with names starting with a DOS-style
57673 drive letter and colon prefix.
57674 (dir_name): Append `.' if necessary.
57675 Based mostly on patches from Prashant TR and Eli Zaretskii.
57677 * lib/dirname.h (dir_name_r): Remove prototype.
57679 2000-12-06 Paul Eggert <eggert@twinsun.com>
57681 * m4/off_t-format.m4: Remove this file.
57682 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
57684 2000-12-06 Jim Meyering <meyering@lucent.com>
57686 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
57687 replacement strtoull, we may well need the replacement strtoul, too.
57688 Check for declarations of strtoul and strtoull.
57689 Check for strtol. Mainly as a cue to cause automake to include
57690 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
57691 Check for limits.h -- strtol.c needs it.
57693 2000-12-05 Jim Meyering <meyering@lucent.com>
57695 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
57697 2000-12-04 Jim Meyering <meyering@lucent.com>
57699 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
57700 Also include memory.h, stdlib.h, unistd.h if appropriate.
57701 Reported by Andreas Jaeger (conflicting declaration of malloc).
57703 2000-12-02 Jim Meyering <meyering@lucent.com>
57705 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
57706 * m4/jm-macros.m4 (jm_MACROS): require it.
57708 2000-12-02 Jim Meyering <meyering@lucent.com>
57710 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
57712 2000-12-01 Paul Eggert <eggert@twinsun.com>
57714 * lib/memrchr.c: Include <config.h> before any system include file.
57716 2000-11-30 Jim Meyering <meyering@lucent.com>
57718 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
57720 2000-11-30 Jim Meyering <meyering@lucent.com>
57722 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
57724 2000-11-29 Paul Eggert <eggert@twinsun.com>
57726 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
57728 2000-11-26 Jim Meyering <meyering@lucent.com>
57730 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
57732 2000-11-22 Paul Eggert <eggert@twinsun.com>
57734 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
57735 size of (size_t) -1; it's not portable.
57737 2000-11-17 Jim Meyering <meyering@lucent.com>
57739 * lib/strstr.c: Update from GNU libc.
57741 2000-11-17 Akim Demaille <akim@epita.fr>
57743 * lib/obstack.h: Formatting changes.
57744 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
57745 prevent type checking.
57746 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
57747 cast the value to (void *): assigning a `foo *' to a `void *'
57749 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
57751 2000-11-16 Jim Meyering <meyering@lucent.com>
57753 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
57755 2000-11-11 Jim Meyering <meyering@lucent.com>
57757 * lib/error.c: Add a couple #includes, merging from GNU libc version.
57759 2000-11-10 Jim Meyering <meyering@lucent.com>
57761 * lib/obstack.h: Update from GNU libc.
57762 * lib/obstack.c: Likewise.
57764 2000-11-08 Bruno Haible <haible@clisp.cons.org>
57766 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
57768 2000-11-06 Paul Eggert <eggert@twinsun.com>
57770 * lib/getusershell.c (setusershell): Use rewind rather than
57771 fseek/fseeko, to avoid configuration hassles with fseeko.
57772 Don't bother opening SHELLS_FILE if shellstream is NULL;
57773 it's not necessary.
57775 2000-11-05 Jim Meyering <meyering@lucent.com>
57777 * lib/makepath.h (make_dir): Declare.
57778 * lib/makepath.c (make_dir): Remove `static' attribute.
57781 2000-11-04 Jim Meyering <meyering@lucent.com>
57783 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
57785 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
57787 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
57788 last one in a bucket, advance to the next bucket.
57790 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
57792 * lib/fnmatch.c: Do not comment out all the code if we are using
57793 the GNU C library, because in some cases we are replacing buggy
57794 code in the GNU C library itself.
57796 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
57798 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
57799 (regex_compile): Catch bogus \(\1\).
57801 2000-10-30 Paul Eggert <eggert@twinsun.com>
57803 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
57804 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
57805 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
57807 2000-10-30 Paul Eggert <eggert@twinsun.com>
57809 * lib/error.h, getline.h, modechange.h:
57810 Remove "2000" from Copyright line, as the file hasn't been
57811 changed this year other than in the copyright notice.
57813 * lib/xalloc.h: Add "2000" to Copyright line, as this file
57814 was changed this year.
57816 2000-10-29 Jim Meyering <meyering@lucent.com>
57818 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
57820 * m4/ls-mntd-fs.m4: Likewise
57822 2000-10-29 Jim Meyering <meyering@lucent.com>
57824 * lib/xstat.in: Fix grammar in comment.
57826 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
57828 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
57829 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
57830 doesn't define __restrict_arr.
57832 2000-10-28 Jim Meyering <meyering@lucent.com>
57834 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
57835 (jm_PREREQ_MEMCHR): New function.
57837 2000-10-28 Jim Meyering <meyering@lucent.com>
57839 * lib/memchr.c: Update from libc.
57840 Adjust for portability:
57841 [HAVE_STDLIB_H]: Include stdlib.h.
57842 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
57843 Undef __memchr, too.
57844 [!weak_alias]: Define __memchr to memchr.
57846 * lib/regex.c: Update from libc.
57847 * lib/regex.h: Likewise.
57848 * lib/getopt1.c: Likewise.
57849 * lib/memcmp.c: Likewise.
57851 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
57852 Avoid using fseek, when possible -- it's broken by design.
57853 Patch by Ulrich Drepper.
57855 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
57857 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
57858 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
57859 Giving in to popular pressure to shut up the compiler with casts.
57861 2000-10-26 Jim Meyering <meyering@lucent.com>
57863 * lib/strftime.c: Update from libc.
57865 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
57867 * regex.c: More `unsigned char' -> `re_char' changes.
57868 Also change several `int' into `re_wchar_t'.
57869 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
57870 (PUSH_FAILURE_POINTER): Don't cast any more.
57871 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
57872 We want GCC to complain, since this piece of code makes
57873 re_match non-reentrant, which *should* be fixed.
57874 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
57875 (EXTEND_BUFFER): Use RETALLOC.
57876 (SET_LIST_BIT): Don't cast.
57877 (re_wchar_t): New type.
57878 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
57879 that those two functions will always properly return.
57880 (IMMEDIATE_QUIT_CHECK): Cast to void.
57881 (analyse_first): Use recursion rather than an explicit stack.
57882 (re_compile_fastmap): Can't fail anymore.
57883 (re_search_2): Don't check re_compile_fastmap for failure.
57884 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
57885 Now also sets the new value (passed in a new argument).
57886 (re_match_2_internal): Use it.
57887 Also, use a new var `reg' of type size_t when looping through regs
57888 rather than reuse the inappropriate `mcnt'.
57890 2000-10-25 Jim Meyering <meyering@lucent.com>
57892 * lib/obstack.c: Update from libc.
57894 2000-10-24 Kenichi Handa <handa@etl.go.jp>
57896 * regex.c (regex_compile): Change the way of handling a range from
57897 a char less than 256 to a char not less than 256.
57899 2000-10-24 Andrew Innes <andrewi@gnu.org>
57901 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
57903 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
57904 so that re_search functions only quit when callers expect them to.
57906 2000-10-23 Jim Meyering <meyering@lucent.com>
57908 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
57909 wrong. That set_locale call must not have any side effects.
57912 2000-10-22 Jim Meyering <meyering@lucent.com>
57914 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
57915 [CYCLIC]: Remove now-unused definition.
57917 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
57918 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
57919 Suggestion from Ulrich Drepper.
57921 2000-10-21 Jim Meyering <meyering@lucent.com>
57923 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
57924 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
57925 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
57927 2000-10-21 Jim Meyering <meyering@lucent.com>
57929 * lib/dirname.c (memrchr): Declare if necessary.
57930 (dir_name): Remove the restriction that there be no
57931 trailing slashes. Now, this code skips past them, effectively
57933 [TEST_DIRNAME] (main): New unit tests.
57935 * lib/memrchr.c: New file from GNU libc.
57936 Undef __memrchr, too.
57937 [!weak_alias]: Define __memrchr to memrchr.
57938 Guard weak_alias use with `#ifdef weak_alias'.
57940 2000-10-21 Jim Meyering <meyering@lucent.com>
57942 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
57943 (dir_name): Use dir_name_r.
57944 * lib/dirname.h (dir_name_r): Declare it.
57946 2000-10-17 Jim Meyering <meyering@lucent.com>
57948 * lib/quote.h (PARAMS): Define and use.
57949 Reported by Akim Demaille.
57951 * lib/getopt.c: Update from libc.
57953 2000-10-16 Jim Meyering <meyering@lucent.com>
57955 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
57959 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
57961 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
57963 2000-09-25 Jim Meyering <meyering@lucent.com>
57965 * lib/md5.h (rol): Define (from GnuPG).
57967 * lib/sha.c: Give credit (GnuPG) where due.
57968 (M): Use rol rather than open-coding it.
57969 Add a FIXME comment.
57971 2000-09-21 Jim Meyering <meyering@lucent.com>
57973 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
57974 Reported by Michael Stone.
57976 2000-09-20 Jim Meyering <meyering@lucent.com>
57978 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
57979 (noinst_HEADERS): Add sha.h.
57980 Based on code from Scott G. Miller and from GnuPG.
57982 2000-09-18 Jim Meyering <meyering@lucent.com>
57984 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
57985 LIBS. Otherwise, everyone ends up linking with -lelf for some
57987 Reported by Mike Stone.
57989 2000-09-15 Jim Meyering <meyering@lucent.com>
57991 * lib/regex.c: Update from libc.
57993 2000-09-10 Jim Meyering <meyering@lucent.com>
57995 * lib/getopt.c (_getopt_internal): Update from glibc.
57997 2000-09-09 Jim Meyering <meyering@lucent.com>
57999 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
58000 think it should be used as a general replacement for isascii.
58001 * lib/fnmatch.c: Likewise.
58002 * lib/mbswidth.c: Likewise
58003 * lib/regex.c: Likewise.
58006 * lib/userspec.c: Include sys/param.h and limits.h.
58008 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58009 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
58010 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
58011 UID, GID. Check range.
58013 2000-09-06 Jim Meyering <meyering@lucent.com>
58015 * lib/getopt.c (_getopt_internal): Update from glibc.
58017 2000-08-30 Jim Meyering <meyering@lucent.com>
58019 * lib/strftime.c: Merge in changes from GNU libc.
58021 2000-08-26 Jim Meyering <meyering@lucent.com>
58023 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
58024 * m4/fpending.m4: New file.
58026 2000-08-26 Jim Meyering <meyering@lucent.com>
58028 * lib/closeout.c: Include "__fpending.h".
58029 (close_stdout_status): Return right away if there's nothing to flush.
58031 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
58032 * lib/__fpending.c: New file.
58033 * lib/__fpending.h: New file.
58035 2000-08-20 Jim Meyering <meyering@lucent.com>
58037 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
58038 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
58039 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
58041 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
58043 Improve fileutils installation on systems where running
58044 programs (like install) can't be unlinked.
58045 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
58046 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
58048 2000-08-07 Paul Eggert <eggert@twinsun.com>
58050 Standardize on "memory exhausted" instead of "Memory exhausted"
58051 or "virtual memory exhausted".
58052 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
58053 "virtual memory exhausted".
58054 * lib/same.c (same_name): Invoke xalloc_die instead of printing
58056 * lib/userspec.c (parse_user_spec): Likewise.
58057 * lib/bumpalloc.h: comment fix
58058 * lib/same.c, userspec.c: Include xalloc.h.
58060 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
58061 not char *const and pointing to a constant array.
58062 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
58063 (xrealloc): Comment fix.
58065 * lib/userspec.c (parse_user_spec):
58066 Don't translate a message until just before returning,
58067 to avoid unnecessary translation.
58069 2000-08-07 Jim Meyering <meyering@lucent.com>
58071 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
58072 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
58073 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
58074 getgroups.c, gethostname.c, getopt.h, group-member.c,
58075 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
58076 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
58077 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
58078 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
58079 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
58080 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
58081 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
58082 yesno.c: Back out Copyright date changes for each file with no change
58083 this year. This eases coordination with other programs using the same
58084 source code modules. From Paul Eggert.
58086 2000-08-06 Paul Eggert <eggert@twinsun.com>
58088 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
58089 not char, for compatibility with glibc 2.1.3 strftime.c.
58091 2000-08-03 Greg McGary <greg@mcgary.org>
58093 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
58094 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
58095 (EXTEND_BUFFER): Use them.
58097 2000-08-01 Jim Meyering <meyering@lucent.com>
58099 * lib/dirname.c (ISSLASH): Define.
58100 (BACKSLASH_IS_PATH_SEPARATOR): Define.
58101 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
58102 both `\' and `/' may be use as path separators.
58103 Based on a patch from Prashant TR.
58105 2000-07-31 Paul Eggert <eggert@twinsun.com>
58107 * lib/quotearg.c (quotearg_n_options): Don't make the initial
58108 slot vector a constant, since it might get modified.
58110 2000-07-31 Jim Meyering <meyering@lucent.com>
58112 * lib/xmalloc.c: Use `virtual memory exhausted', not
58113 `Memory exhausted'.
58114 * lib/obstack.c (print_and_abort): Likewise.
58116 2000-07-30 Paul Eggert <eggert@twinsun.com>
58118 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
58119 buffer, so that the caller can always quote one small
58120 component of a "memory exhausted" message in slot 0.
58121 From a suggestion by Jim Meyering.
58123 2000-07-30 Jim Meyering <meyering@lucent.com>
58125 * lib/makepath.c (make_path): Quote the other instance, too.
58127 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
58128 (STATIC_BUF_SIZE): Define.
58129 (quotearg_n_options): Use only statically allocated storage when
58130 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
58131 than STATIC_BUF_SIZE.
58133 2000-07-29 Jim Meyering <meyering@lucent.com>
58135 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
58136 * lib/dirname.c (dir_name): Likewise.
58138 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
58141 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
58142 (dir_name): Assert that there are no trailing slashes.
58144 2000-07-29 Bruno Haible <haible@clisp.cons.org>
58146 * lib/mbswidth.h (mbswidth): Add a flags argument.
58147 (mbswidth): New declaration.
58148 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
58149 * lib/mbswidth.c (mbswidth): Add a flags argument.
58150 (mbsnwidth): New function.
58152 2000-07-24 Jim Meyering <meyering@lucent.com>
58154 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
58156 2000-07-23 Paul Eggert <eggert@twinsun.com>
58158 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
58160 2000-07-23 Paul Eggert <eggert@twinsun.com>
58162 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
58163 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
58164 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
58165 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
58166 invoke multibyte primitives.
58168 2000-07-23 Paul Eggert <eggert@twinsun.com>
58171 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
58172 so that mbstate_t is always defined.
58174 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
58175 be 1 in at least one GCC installation, and this configuration
58176 error is likely to be common. Ignoring MB_LEN_MAX hurts
58177 performance on hosts that have mbrtowc but have only unibyte
58178 locales, but I assume these hosts are rare.
58180 2000-07-23 Paul Eggert <eggert@twinsun.com>
58182 * lib/mbswidth.c (_XOPEN_SOURCE):
58183 Don't define; this causes problems on Solaris 7.
58184 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
58186 2000-07-23 Jim Meyering <meyering@lucent.com>
58188 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
58189 too: getgrgid, getpwuid, getuid.
58191 2000-07-23 Jim Meyering <meyering@lucent.com>
58193 * lib/basename.c (base_name): Add an assertion.
58195 2000-07-23 Bruno Haible <haible@clisp.cons.org>
58197 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
58198 shadow its mbsinit function.
58200 2000-07-17 Bruno Haible <haible@clisp.cons.org>
58202 * lib/mbswidth.h: New file.
58203 * lib/mbswidth.c: New file.
58204 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
58205 (noinst_HEADERS): Add mbswidth.h.
58207 2000-07-17 Bruno Haible <haible@clisp.cons.org>
58209 * lib/config.charset: Add support for FreeBSD. Improve support for
58212 2000-07-16 Bruno Haible <haible@clisp.cons.org>
58214 * m4/mbswidth.m4: New file.
58215 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
58217 2000-07-15 Jim Meyering <meyering@lucent.com>
58219 * lib/makepath.c: Include quote.h.
58220 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
58221 corresponding argument in a `quote (...)' call.
58222 Give better diagnostics.
58224 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
58225 (noinst_HEADERS): Add quote.h.
58227 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
58228 from tar's src/misc.c.
58229 * lib/quote.h: New file. Prototypes for same.
58231 2000-07-14 Paul Eggert <eggert@twinsun.com>
58233 From a suggestion by Bruno Haible.
58234 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
58235 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
58236 to decide whether to define the BeOS workaround macro;
58237 this adjusts to the change to AC_MBSTATE_T.
58239 2000-07-14 Jim Meyering <meyering@lucent.com>
58241 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
58242 jm_AC_TYPE_UINTMAX_T.
58244 2000-07-13 Paul Eggert <eggert@twinsun.com>
58246 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
58248 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
58249 quotearg_buffer_restyled): Add support for
58250 clocale_quoting_style. Undo previous change to
58251 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
58252 and "{RIGHT QUOTATION MARK}" msgids.
58254 2000-07-10 Paul Eggert <eggert@twinsun.com>
58256 From a suggestion by Bruno Haible.
58257 * m4/mbstate_t.m4 (AC_MBSTATE_T):
58258 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
58259 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
58260 and mbstate_t, to a single-part test that simply defines mbstate_t.
58261 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
58262 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
58264 2000-07-10 Jim Meyering <meyering@lucent.com>
58266 * m4/strerror_r.m4: Mirror the correction made in autoconf.
58268 * m4/gnu-source.m4: Output to confdefs.h directly.
58269 Suggestion from Akim Demaille.
58271 2000-07-09 Paul Eggert <eggert@twinsun.com>
58273 The old behavior of quoting `like this' doesn't look good with
58274 newer, ISO-style fonts. See:
58275 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
58277 Instead, quote "like this" by default. Let the translator
58278 tailor the locale-specific quoting behavior by providing
58279 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
58281 * lib/quotearg.c (N_): New macro.
58282 (gettext_default): New function.
58283 (quotearg_buffer_restyled): Use
58284 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
58285 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
58287 2000-07-09 Jim Meyering <meyering@lucent.com>
58289 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
58290 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
58292 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
58293 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
58295 2000-07-09 Jim Meyering <meyering@lucent.com>
58297 * lib/Most files: Update copyright dates to include 2000.
58299 2000-07-08 Jim Meyering <meyering@lucent.com>
58301 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
58303 (xgethostname): Remove now-unnecessary #ifdef.
58304 Move declaration of `err' into loop where it's used.
58306 2000-07-05 Paul Eggert <eggert@twinsun.com>
58307 and Bruno Haible <haible@clisp.cons.org>
58309 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
58310 only if the test for an object-type mbstate_t fails. This
58311 prevents us from mistakenly reporting that mbstate_t is a
58312 system object type after we "#define mbstate_t int" to work
58315 2000-07-05 Paul Eggert <eggert@twinsun.com>
58316 and Bruno Haible <haible@clisp.cons.org>
58318 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
58320 2000-07-05 Bruno Haible <haible@clisp.cons.org>
58322 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
58324 Include <ctype.h> for use of isalpha.
58326 2000-07-05 Bruno Haible <haible@clisp.cons.org>
58328 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
58329 by allocating a larger buffer. Test the gethostname return value for
58330 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
58331 returns an error and ENAMETOOLONG isn't defined.
58333 2000-07-05 Bruno Haible <haible@clisp.cons.org>
58335 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
58338 2000-07-04 Jim Meyering <meyering@lucent.com>
58340 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
58341 of the deprecated AC_CHECKING.
58343 2000-07-04 Jim Meyering <meyering@lucent.com>
58345 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
58346 Reported by Bruno Haible.
58348 2000-07-04 Jim Meyering <meyering@lucent.com>
58350 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
58351 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
58354 2000-07-03 Paul Eggert <eggert@twinsun.com>
58356 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
58357 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
58359 2000-07-03 Paul Eggert <eggert@twinsun.com>
58360 and Bruno Haible <haible@clisp.cons.org>
58362 * lib/quotearg.c (mbrtowc):
58363 Assign to *pwc, and return 1 only if result is nonzero.
58364 (iswprint): Use ISPRINT when substituting our own mbrtowc.
58366 2000-07-03 Jim Meyering <meyering@lucent.com>
58368 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
58370 2000-07-03 Jim Meyering <meyering@lucent.com>
58372 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
58373 This is necessary to get a definition of e.g., UTMP_FILE on
58377 2000-07-02 Jim Meyering <meyering@lucent.com>
58379 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
58381 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
58382 AC_LIBOBJ(function_name).
58383 * m4/chown.m4: Likewise.
58384 * m4/fnmatch.m4: Likewise.
58385 * m4/ftruncate.m4: Likewise.
58386 * m4/getgroups.m4: Likewise.
58387 * m4/getline.m4: Likewise.
58388 * m4/group-member.m4: Likewise.
58389 * m4/jm-macros.m4: Likewise.
58390 * m4/lstat.m4: Likewise.
58391 * m4/malloc.m4: Likewise.
58392 * m4/memcmp.m4: Likewise.
58393 * m4/nanosleep.m4: Likewise.
58394 * m4/putenv.m4: Likewise.
58395 * m4/realloc.m4: Likewise.
58396 * m4/regex.m4: Likewise.
58397 * m4/stat.m4: Likewise.
58398 * m4/strftime.m4: Likewise.
58400 2000-07-02 Jim Meyering <meyering@lucent.com>
58402 * lib/quotearg.c (mbstate_t): Don't define here.
58404 2000-07-02 Jim Meyering <meyering@lucent.com>
58406 * lib/nanosleep.c (SIGCONT): Define if not already defined.
58408 2000-07-01 Jim Meyering <meyering@lucent.com>
58410 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
58412 2000-07-01 Jim Meyering <meyering@lucent.com>
58414 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
58417 2000-07-01 Bruno Haible <haible@clisp.cons.org>
58419 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
58420 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
58422 2000-07-01 Bruno Haible <haible@clisp.cons.org>
58424 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
58425 per change in ../m4/ls-mntd-fs.m4.
58426 (read_filesystem_list): Ignore symbolic links.
58428 2000-06-29 Jim Meyering <meyering@lucent.com>
58430 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
58431 for declaration of strcmp.
58433 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
58435 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
58436 Avoid warning by casting result to `char *' to remove `const'.
58438 2000-06-28 Jim Meyering <meyering@lucent.com>
58440 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
58441 included by quotearg.c, for which we perform this test. From
58444 2000-06-27 Bruno Haible <haible@clisp.cons.org>
58446 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
58447 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
58448 <utmpx.h> exists, put readutmp.o into LIBOBJS.
58450 2000-06-27 Bruno Haible <haible@clisp.cons.org>
58452 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
58454 2000-06-26 Paul Eggert <eggert@twinsun.com>
58456 savedir now sets errno on failure and invokes xmalloc to get memory.
58457 Fix a couple of other minor bugs while we're at it.
58459 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
58460 (NAMLEN): Remove macro.
58461 (malloc, realloc): Remove decls.
58462 (stpcpy): Likewise.
58463 ("xalloc.h"): Include.
58464 (NAME_SIZE_DEFAULT): New macro.
58465 (savedir): Use xmalloc / xrealloc to allocate memory.
58466 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
58467 Skip "" directory entries.
58468 Use strlen to calculate directory entry length, since the old method
58469 is rarely used these days and isn't worth supporting.
58470 Don't use a pointer after freeing it.
58471 Check for integer overflow when calculating allocation size.
58472 Use memcpy to copy entries, instead of stpcpy.
58473 Set errno properly when returning NULL.
58474 Check for readdir error.
58476 2000-06-26 Jim Meyering <meyering@lucent.com>
58478 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
58480 2000-06-25 Jim Meyering <meyering@lucent.com>
58482 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
58483 Linux header bug when _XOPEN_SOURCE is defined to 500.
58485 2000-06-25 Bruno Haible <haible@clisp.cons.org>
58487 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
58490 2000-06-25 Bruno Haible <haible@clisp.cons.org>
58492 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
58494 Don't include <stdlib.h>. Don't declare malloc, realloc.
58496 2000-06-24 Jim Meyering <meyering@lucent.com>
58498 * m4/strerror_r.m4: Revive this file -- to try out an experimental
58499 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
58500 for which strerror does return char*, but which lacks a conveniently
58501 accessible declaration of the function. If the compile-test says
58502 strerror_r doesn't work, then resort to a `run'-test that works on
58503 BeOS and segfaults on DEC Unix.
58505 2000-06-24 Jim Meyering <meyering@lucent.com>
58507 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
58509 2000-06-23 Paul Eggert <eggert@twinsun.com>
58511 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
58512 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
58514 2000-06-23 Paul Eggert <eggert@twinsun.com>
58516 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
58517 (mbrtowc, mbstate_t): Define substitutes if
58518 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
58519 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
58520 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
58522 2000-06-23 Jim Meyering <meyering@lucent.com>
58524 * m4/afs.m4: Add missing AC_MSG_RESULT.
58525 Reported by Bruno Haible.
58527 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
58528 Suggestion from Bruno Haible.
58530 2000-06-23 Jim Meyering <meyering@lucent.com>
58532 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
58534 2000-06-21 Jim Meyering <meyering@lucent.com>
58536 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
58538 2000-06-21 Jim Meyering <meyering@lucent.com>
58540 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
58541 (noinst_HEADERS): Add getstr.h.
58543 * lib/getline.c (getstr): Move into a separate file.
58544 * lib/getstr.c (getstr): New file, extracted from getline.c, with
58545 the following changes: new parameter, delim2; both delim[12]
58546 parameters have type `int', not `char'. The latter would lose
58547 with 8-bit delimiters.
58548 * lib/getstr.h: New file.
58550 2000-06-21 Bruno Haible <haible@clisp.cons.org>
58552 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
58553 than 1024, return a memory chunk of least possible size, instead
58554 of size PATH_MAX + 2. In the loop, increment the size proportionally.
58555 Use free/xmalloc instead of xrealloc to avoid copying for very long
58558 2000-06-21 Bruno Haible <haible@clisp.cons.org>
58560 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
58563 2000-06-21 Bruno Haible <haible@clisp.cons.org>
58565 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
58566 address, not strdup. Include <stdlib.h> and don't declare free().
58568 2000-06-19 Jim Meyering <meyering@lucent.com>
58570 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
58572 2000-06-18 Jim Meyering <meyering@lucent.com>
58574 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
58576 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
58577 `checking whether...' message to be consistent with that of the
58580 2000-06-18 Jim Meyering <meyering@lucent.com>
58582 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
58583 Besides, these days every porting target provides a mkdir function.
58585 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
58586 needed. (this snippet comes from src/system.h).
58588 2000-06-16 Bruno Haible <haible@clisp.cons.org>
58590 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
58592 2000-06-15 Paul Eggert <eggert@twinsun.com>
58594 * lib/human.c (adjust_value): New function.
58595 (human_readable_inexact): Apply rounding style even when
58596 printing approximate values.
58598 2000-06-14 Paul Eggert <eggert@twinsun.com>
58600 * lib/human.c (human_readable_inexact): Allow an input block
58601 size that is not a multiple of the output block size, and vice versa.
58602 Reported by Piergiorgio Sartor.
58604 2000-06-14 Paul Eggert <eggert@twinsun.com>
58606 * lib/getdate.y (get_date): Apply relative times after time
58607 zone indicator, not before. Reported by Todd A. Jacobs.
58609 2000-06-13 Jim Meyering <meyering@lucent.com>
58611 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
58613 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
58615 2000-06-12 Paul Eggert <eggert@twinsun.com>
58617 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
58619 2000-06-12 Jim Meyering <meyering@lucent.com>
58621 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
58622 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
58624 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
58625 the optional argument, `lib'.
58627 2000-06-08 Jim Meyering <meyering@lucent.com>
58629 * m4/largefile.m4: Remove file (now that it's part of autoconf).
58631 2000-06-04 Paul Eggert <eggert@twinsun.com>
58633 Rewrite largefile configuration so that we don't need to run
58634 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
58635 AC_CANONICAL_HOST in configure.in -- jmm]
58637 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
58638 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
58639 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
58640 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
58641 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
58643 Instead of inspecting the output of getconf, try to compile the
58644 test program without and with the macro definition.
58645 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
58646 for getconf. Instead, check for the needed flags by compiling
58649 2000-06-04 Paul Eggert <eggert@twinsun.com>
58651 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
58653 2000-06-04 Jim Meyering <meyering@lucent.com>
58655 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
58656 SunOS 4.1.4 for which gid_t is an unsigned type.
58658 2000-06-03 Jim Meyering <meyering@lucent.com>
58660 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
58661 now that autoconf requires that.
58663 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
58664 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
58665 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
58667 2000-06-03 Jim Meyering <meyering@lucent.com>
58669 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
58671 2000-06-03 Bruno Haible <haible@clisp.cons.org>
58673 * m4/glibc21.m4: New file.
58674 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
58676 2000-06-03 Bruno Haible <haible@clisp.cons.org>
58678 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
58679 newer, don't install charset.alias.
58680 * lib/config.charset: Change the Linux/glibc rules so they become empty
58681 on glibc-2.1 or newer.
58683 2000-06-02 Jim Meyering <meyering@lucent.com>
58685 * lib/mountlist.c: Back out last change. Instead, do this...
58686 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
58687 me_dummy member using the same `ignore'-testing code.
58688 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
58692 2000-05-29 Jim Meyering <meyering@lucent.com>
58694 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
58695 mounts with the `ignore' attribute. Based on a patch from
58698 2000-05-28 Jim Meyering <meyering@lucent.com>
58700 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
58701 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58702 * m4/stat.m4: Likewise.
58703 * m4/lstat.m4: Likewise.
58704 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
58706 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
58707 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
58709 2000-05-26 Jim Meyering <meyering@lucent.com>
58711 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
58713 2000-05-24 Jim Meyering <meyering@lucent.com>
58715 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
58716 autoconf requires that.
58717 * m4/lib-check.m4: Likewise.
58718 * m4/jm-macros.m4: Likewise.
58719 * m4/strftime.m4: Likewise.
58721 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
58722 AC_CHECK_DECLS, now that autoconf requires that.
58724 2000-05-22 Jim Meyering <meyering@lucent.com>
58726 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
58727 * m4/lstat.m4: Likewise.
58729 2000-05-22 Jim Meyering <meyering@lucent.com>
58731 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
58733 2000-05-20 Jim Meyering <meyering@lucent.com>
58735 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
58736 (jm_PREREQ): Use it.
58738 2000-05-18 Jim Meyering <meyering@lucent.com>
58740 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
58741 back, too, since it may have been modified by allocate_entry.
58742 (hash_delete): Rewrite to use neither the assignment operator
58743 nor the comma operator in an if-expression.
58745 2000-05-15 Paul Eggert <eggert@twinsun.com>
58748 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
58749 Remove; no longer needed.
58750 "quotearg.h": Add include.
58751 (file_name): Do not bother to explicitly initialize to NULL; it's less
58752 efficient on some hosts.
58753 (close_stdout_status): Remove test as to whether stdout was already
58754 closed; it breaks for the case "echo x | sort >&-".
58755 Quote file name colons.
58756 Do not assume that _("write error") lacks format strings.
58758 2000-05-15 Jim Meyering <meyering@lucent.com>
58760 * lib/version-etc.c (version_etc_copyright): Update the copyright
58761 string used in all --version output.
58763 2000-05-14 Jim Meyering <meyering@lucent.com>
58765 * lib/closeout.c (close_stdout_set_file_name): New function.
58766 (close_stdout_status): Use new file-scoped global.
58767 Return right away if fstat says the stdout file descriptor is invalid.
58768 * lib/closeout.h (close_stdout_set_file_name): Declare.
58770 2000-05-10 Jim Meyering <meyering@lucent.com>
58772 * lib/closeout.c [default_exit_status]: New file-scoped variable.
58773 (close_stdout_set_status): New function.
58774 * lib/closeout.h (close_stdout_set_status): Declare.
58776 2000-05-09 Jim Meyering <meyering@lucent.com>
58778 * m4/gettext.m4: Rename this...
58779 * m4/libintl.m4: ...to this.
58781 2000-05-08 Jim Meyering <meyering@lucent.com>
58783 * lib/long-options.c: Don't include closeout.h.
58784 (parse_long_options): Don't call close_stdout for --version.
58786 2000-05-06 Paul Eggert <eggert@twinsun.com>
58788 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
58789 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
58790 2.1.3 bug. This avoids a clash when files like regex.c define
58793 2000-05-06 Jim Meyering <meyering@lucent.com>
58795 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
58796 (AC_REPLACE_FUNCS): Add strnlen.
58798 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
58799 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
58801 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
58802 AC_SEARCH_LIBS call for nanosleep.
58803 (LIB_NANOSLEEP): Set and AC_SUBST.
58805 2000-05-06 Jim Meyering <meyering@lucent.com>
58807 * lib/strnlen.c: Undefine __strnlen and strnlen.
58808 [!weak_alias]: Define __strnlen to strnlen.
58810 * lib/atexit.c: New file, from libiberty.
58812 2000-05-06 Jim Meyering <meyering@lucent.com>
58814 * lib/closeout.c (close_stdout_status): Also check for errors on the
58817 2000-05-05 Jim Meyering <meyering@lucent.com>
58819 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
58820 AC_SEARCH_LIBS call for clock_gettime.
58821 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
58823 * m4/search-libs.m4: Update from autoconf.
58825 su doesn't work on Solaris 2.6.
58826 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
58827 <shadow.h>. Reported by Dragos Harabor.
58829 2000-05-05 Bruno Haible <haible@clisp.cons.org>
58831 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
58832 memcpy instead of xmalloc, xrealloc, path_concat.
58833 (locale_charset): Treat empty environment variables as absent.
58834 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
58836 2000-05-04 Jim Meyering <meyering@lucent.com>
58838 * lib/getopt.c: Update from glibc.
58839 * lib/obstack.c: Likewise.
58840 * lib/obstack.h: Likewise.
58841 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
58844 * lib/regex.h: Likewise.
58845 * lib/strndup.c: Likewise.
58846 * lib/strnlen.c: New file, from glibc.
58848 2000-05-03 Jim Meyering <meyering@lucent.com>
58850 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
58852 2000-05-02 Paul Eggert <eggert@twinsun.com>
58854 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
58855 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
58856 compile-time test, rather than inspecting host and OS, to
58857 decide whether to define _LARGEFILE_SOURCE.
58859 2000-05-01 Jim Meyering <meyering@lucent.com>
58861 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
58863 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
58864 Based on a patch from Bruno Haible.
58866 2000-05-01 Jim Meyering <meyering@lucent.com>
58868 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
58870 2000-04-29 Jim Meyering <meyering@lucent.com>
58872 * lib/path-concat.c: Declare strdup only if it's not defined.
58873 * lib/canon-host.c: Likewise.
58875 2000-04-28 Jim Meyering <meyering@lucent.com>
58877 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
58878 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
58879 is included first, then limits.h is included by locale.h by libintl.h.
58880 From John David Anglin.
58882 2000-04-25 Jim Meyering <meyering@lucent.com>
58884 * lib/makepath.c (S_IRWXUGO): Define.
58885 (make_path): Always perform explicit chmod if MODE specifies any
58886 of the `special' permission bits. Prompted by a bug report against
58887 install from Mate Wierdl and Joost van Baal.
58889 2000-04-18 Jim Meyering <meyering@lucent.com>
58891 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
58892 (jm_PREREQ): Use it.
58894 2000-04-18 Jim Meyering <meyering@lucent.com>
58896 * lib/README: New file.
58898 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
58899 getpagesize. For BeOS. Based on a patch from Bruno Haible.
58901 2000-04-17 Jim Meyering <meyering@lucent.com>
58904 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
58905 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
58906 Suggestion from Akim Demaille.
58908 2000-04-17 Jim Meyering <meyering@lucent.com>
58910 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
58911 the definition of it to rpl_strftime also defined-away the system's
58914 2000-04-15 Jim Meyering <meyering@lucent.com>
58916 Use `C' to denote so-called `contiguous' files, the same way
58918 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
58919 (ftypelet): Use S_ISCTG.
58920 From Michael Deutschmann.
58922 2000-04-14 Jim Meyering <meyering@lucent.com>
58924 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
58925 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
58928 2000-04-14 Jim Meyering <meyering@lucent.com>
58930 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
58932 2000-04-13 Jim Meyering <meyering@lucent.com>
58934 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
58935 AH_VERBATIM to insert required #ifndef into config.h.in.
58936 Suggestion from Akim Demaille.
58938 2000-04-12 Jim Meyering <meyering@lucent.com>
58940 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
58941 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
58942 Christian Krackowizer.
58944 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
58945 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
58946 (AC_SYS_LARGEFILE): Require.
58947 (AM_C_PROTOTYPES): Require.
58949 2000-04-08 Jim Meyering <meyering@lucent.com>
58951 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
58952 names don't conflict. Reported by Eli Zaretskii.
58954 2000-04-07 Jim Meyering <meyering@lucent.com>
58956 * lib/putenv.c: Move inclusion of errno.h so it follows that of
58957 sys/types.h, to work around system header problems on AIX 3.2.5.
58960 2000-04-07 Bruno Haible <haible@clisp.cons.org>
58962 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
58963 bug. Deal with the different error behavior of Irix iconv.
58965 2000-04-05 Paul Eggert <eggert@twinsun.com>
58967 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
58968 IRIX if the installer said otherwise.
58970 2000-04-05 Jim Meyering <meyering@lucent.com>
58972 Portability tweaks required for ultrix4.3.
58973 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
58974 (jm_CHECK_DECLS): Add getutent to the list of functions.
58975 (_jm_DECL_HEADERS): Add utmpx.h.
58976 From John David Anglin.
58978 * m4/strftime.m4: Back out the 2000-04-02 change.
58979 Instead of that change, simply undefine putenv in the test program.
58981 2000-04-05 Jim Meyering <meyering@lucent.com>
58983 Portability tweaks required for ultrix4.3.
58984 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
58986 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
58987 * lib/canon-host.c: Declare strdup.
58988 * lib/path-concat.c: Likewise.
58989 From John David Anglin.
58991 2000-04-04 Jim Meyering <meyering@lucent.com>
58993 Be more DOS 8.3-friendly.
58994 * lib/ref-add.sin: Renamed from ref-add.sed.in.
58995 * lib/ref-del.sin: Renamed from ref-del.sed.in.
58996 * lib/Makefile.am: Reflect renaming.
58997 Reported by Eli Zaretskii.
58999 Use a temporary file name that won't clash with `charset.alias'
59000 in the DOS 8.3 name space.
59001 * lib/Makefile.am (charset_tmp): Define.
59002 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
59003 (uninstall-local): Likewise.
59004 Reported by Eli Zaretskii.
59006 2000-04-03 Jim Meyering <meyering@lucent.com>
59008 * m4/gettext.m4: Fix typo in comment.
59010 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
59011 textutils/configure.in). Suggestion from Paul Eggert.
59012 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
59014 2000-04-02 Paul Eggert <eggert@twinsun.com>
59016 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
59017 variable in the shell rather than using putenv, which isn't
59018 portable. This avoids the configure-time inter-test dependency
59019 on the potentially-renamed putenv function.
59021 2000-03-30 Paul Eggert <eggert@twinsun.com>
59023 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
59024 before checking struct stat.st_blksize, so that
59025 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
59027 2000-03-29 Paul Eggert <eggert@twinsun.com>
59029 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
59030 since strftime.c uses HAVE_STRFTIME to decide whether to use
59031 the underlying strftime.
59033 2000-03-29 Paul Eggert <eggert@twinsun.com>
59035 * lib/time/strftime.c (my_strftime): Make sure we call the system
59036 strftime, not ourselves, when invoking the underlying strftime.
59038 2000-03-24 Jim Meyering <meyering@lucent.com>
59040 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
59041 (charset_alias): Define.
59042 (install-exec-local): Factor out common code.
59043 (uninstall-local): Split lines longer than 80.
59044 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
59045 (SUFFIXES): Define.
59046 (.sed.in.sed): New rule. Don't redirect directly to $@.
59047 (CLEANFILES): Add ref-add.sed and ref-del.sed.
59049 2000-03-19 Bruno Haible <haible@clisp.cons.org>
59051 * lib/config.charset: Output a line containing "Packages using this
59053 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
59054 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
59055 ref-del.sed): New rules.
59057 2000-03-17 Jim Meyering <meyering@lucent.com>
59059 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
59060 Otherwise, include <strings.h>
59062 2000-03-17 Bruno Haible <haible@clisp.cons.org>
59064 * lib/unicodeio.c (utf8_wctomb): New function.
59065 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
59066 format instead of in UCS-4 with platform dependent endianness.
59068 2000-03-10 Jim Meyering <meyering@lucent.com>
59070 * m4/lib-check.m4: Look for getspnam in -lgen, too.
59071 From Marco Franzen.
59073 2000-03-07 Paul Eggert <eggert@twinsun.com>
59075 * lib/savedir.c (savedir): Work even if directory size is
59076 negative; this can happen with some screwy NFS configurations.
59078 2000-03-06 Jim Meyering <meyering@lucent.com>
59080 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
59081 if it's NULL (because we ran out of memory). From Bruno Haible.
59083 2000-03-05 Jim Meyering <meyering@lucent.com>
59085 * lib/localcharset.c ("path-concat.h"): Include.
59086 (get_charset_aliases): Use path_concat instead of ANSI string
59089 * lib/unicodeio.h (PARAMS): Define.
59090 Use it to guard prototype.
59092 2000-03-04 Jim Meyering <meyering@lucent.com>
59094 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
59095 for lib/localcharset.c.
59097 2000-03-04 Jim Meyering <meyering@lucent.com>
59099 * lib/Makefile.am (install-exec-local): Create $(libdir) before
59100 installing into it.
59101 (uninstall-local): Uncomment this rule so `make distcheck' works
59104 * lib/unicodeio.c (<errno.h>): Include it.
59105 (errno): Declare if not defined.
59107 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
59109 * lib/config.charset: New version, incorporating remarks from a linux
59110 i18n mailing list. From Bruno Haible.
59112 2000-03-04 Bruno Haible <haible@clisp.cons.org>
59114 * m4/codeset.m4: New file.
59115 * m4/iconv.m4: New file.
59116 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
59118 2000-03-03 Jim Meyering <meyering@lucent.com>
59120 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
59122 2000-03-02 Jim Meyering <meyering@lucent.com>
59124 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
59125 the messages come out on separate lines.
59127 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
59128 rather than jm_CHECK_DECLARATIONS.
59129 * m4/decl.m4: Remove now-unused file.
59131 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
59134 2000-03-02 Jim Meyering <meyering@lucent.com>
59136 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
59138 2000-03-01 Jim Meyering <meyering@lucent.com>
59140 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
59141 * lib/unicodeio.c: Likewise.
59143 2000-03-01 Bruno Haible <haible@clisp.cons.org>
59145 * lib/config.charset: New file.
59146 * lib/localcharset.c: New file.
59147 * lib/unicodeio.h, lib/unicodeio.c: New files.
59148 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
59149 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
59150 (noinst_HEADERS): Add unicodeio.h.
59151 (all-local, install-exec-local, charset.alias): New targets.
59153 2000-02-28 Paul Eggert <eggert@twinsun.com>
59155 * lib/quotearg.c (ALERT_CHAR): New macro.
59156 (quotearg_buffer_restyled): Use it.
59158 2000-02-27 Jim Meyering <meyering@lucent.com>
59160 * m4/check-decl.m4: Add getenv to the list.
59162 2000-02-27 Jim Meyering <meyering@lucent.com>
59164 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
59165 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
59167 * lib/backupfile.c: Guard inclusion of stdlib.h with
59168 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
59169 Declare malloc if needed.
59171 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
59172 `#ifndef HAVE_DECL..'
59173 now that autoconf always defines the HAVE_DECL_ symbols.
59174 * lib/human.c: Likewise.
59175 * lib/same.c: Likewise.
59176 * lib/strtoumax.c: Likewise.
59178 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
59179 declaration check was not run.
59180 * lib/hash.c: Likewise.
59181 * lib/human.c: Likewise.
59182 * lib/same.c: Likewise.
59183 * lib/strtoumax.c: Likewise.
59185 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
59186 `.', then first look up the entire `.'-containing string as a login
59189 2000-02-23 Jim Meyering <meyering@lucent.com>
59191 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
59192 in place of my hack.
59194 2000-02-18 Paul Eggert <eggert@twinsun.com>
59196 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
59197 (textint): New typedef.
59198 (parser_control): Member year changed from int to textint.
59200 (YYSTYPE): Removed; replaced by %union with int and textint members.
59201 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
59202 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
59203 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
59204 (tSNUMBER, tUNUMBER): Now of type <textintval>.
59205 (date, number, to_year): Use width of number in digits, not its value,
59206 to determine whether it's a 2-digit year, or a 2-digit time.
59207 (yylex): Store number of digits of numeric tokens.
59208 Reported by John Kendall.
59210 (parser_control): Changed from struct parser_control to typedef (for
59211 consistency). All uses changed.
59213 (tID): Removed; not used.
59214 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
59216 2000-02-14 Paul Eggert <eggert@twinsun.com>
59218 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
59219 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
59221 2000-02-12 Jim Meyering <meyering@lucent.com>
59223 * lib/userspec.c (ISDIGIT): Define it.
59224 (isdigit): Remove definition.
59225 (is_number): Use ISDIGIT, not isdigit.
59226 <libintl.h>: Include.
59227 (_ and N_): Define.
59228 (parse_user_spec): Mark translatable strings.
59230 2000-02-10 Jim Meyering <meyering@lucent.com>
59232 With these changes, nanosleep.[ch] are finally enough like the other
59233 lib/* replacement files to compile on a few more losing systems.
59235 * lib/nanosleep.h: Don't include config.h.
59236 Remove prototype from declaration of nanosleep.
59237 (PARAMS): Remove now-unneeded definition.
59238 * lib/nanosleep.c: #undef nanosleep.
59239 (rpl_nanosleep): Rename from nanosleep.
59241 2000-02-10 Jim Meyering <meyering@lucent.com>
59243 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
59244 gnu_nanosleep to rpl_nanosleep.
59246 2000-02-09 Jim Meyering <meyering@lucent.com>
59248 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
59249 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
59251 2000-02-08 Akim Demaille <akim@epita.fr>
59253 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
59254 `[' and `]' and remove uses of `changequote'.
59255 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
59256 (AC_SYS_LARGEFILE): Likewise.
59257 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
59258 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
59260 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
59261 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
59262 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
59263 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
59265 2000-02-05 Jim Meyering <meyering@lucent.com>
59267 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
59268 Remove explicit use of AC_HEADER_TIME. It is required by
59269 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
59270 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
59271 in autoconf whereby the expansion of the latter ended up preceding
59272 the expansion of its prerequisite, AC_HEADER_TIME.
59273 Reported by Volker Borchert.
59275 2000-02-03 Jim Meyering <meyering@lucent.com>
59277 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
59279 2000-02-03 Jim Meyering <meyering@lucent.com>
59281 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
59282 rather than with `#if HAVE_UTMPNAME'.
59284 2000-02-02 Jim Meyering <meyering@lucent.com>
59286 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
59287 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
59288 Reported by Eli Zaretskii.
59290 2000-02-01 Jim Meyering <meyering@lucent.com>
59292 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
59294 2000-01-31 Jim Meyering <meyering@lucent.com>
59296 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
59297 functions. Add the time.h and sys/time.h headers along with the
59298 AC_REQUIRE'ment of AC_HEADER_TIME.
59300 2000-01-31 Jim Meyering <meyering@lucent.com>
59302 * lib/nanosleep.h (nanosleep): Guard declaration with
59303 `#if ! HAVE_DECL_NANOSLEEP'.
59304 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
59305 the declaration in that vendor's sys/timers.h.
59306 Reported by Christian Krackowizer.
59308 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
59309 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
59310 (ISPRINT): Likewise.
59311 Reported by Tom Tromey.
59313 2000-01-30 Jim Meyering <meyering@lucent.com>
59315 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
59317 * m4/prereq.m4 (utmp_includes): Define.
59318 Check for ut_user and ut_name members in both struct utmpx
59321 2000-01-30 Jim Meyering <meyering@lucent.com>
59323 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
59324 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
59325 header files where only utmpx.ut_user is declared.
59327 * lib/readutmp.h (UT_USER): Define.
59329 2000-01-29 Jim Meyering <meyering@lucent.com>
59331 * m4/lib-check.m4: New file containing library-related checks from
59332 fileutils and sh-utils (textutils had none).
59334 2000-01-28 Jim Meyering <meyering@lucent.com>
59336 * m4/perl.m4: Change format of warning message to look more like that
59337 from the missing script. Suggestion from François Pinard.
59339 2000-01-25 Jim Meyering <meyering@lucent.com>
59341 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
59342 well as time.h in the compile check.
59343 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
59344 Fix typo in cross-compiling case: s/yes/no/.
59346 2000-01-23 Jim Meyering <meyering@lucent.com>
59348 * m4/jm-macros.m4: Move df-related tests here from
59349 fileutils/configure.in
59351 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
59352 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
59354 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
59355 s/space/ac_fsusage_space/.
59356 (jm_FILE_SYSTEM_USAGE): Take two parameters.
59358 * m4/ftruncate.m4: New file (derived from part of
59359 fileutils/configure.in).
59360 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
59361 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
59363 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
59364 AC_SUBST these here, rather than just in sh-util/configure.in, so
59365 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
59367 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
59368 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
59369 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
59370 (AC_SUBST(POW_LIBM)): Likewise.
59371 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
59373 2000-01-23 Jim Meyering <meyering@lucent.com>
59375 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
59378 2000-01-22 Jim Meyering <meyering@lucent.com>
59380 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
59382 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
59384 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
59386 (AC_CHECK_HEADERS): Likewise for sh-utils.
59387 (AC_CHECK_HEADERS): Likewise for textutils.
59388 Merge the three lists of headers.
59390 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
59391 from fileutils' configure.in.
59393 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
59394 code. Moved tests into their own function (_jm_DECL_HEADERS) in
59397 * m4/check-decl.m4: Use #if rather than #ifdef.
59398 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
59399 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
59400 (_jm_DECL_HEADERS): Define new function.
59401 (jm_CHECK_DECLARATIONS): Require it.
59403 2000-01-22 Jim Meyering <meyering@lucent.com>
59405 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
59406 [! HAVE_DECL_STRTOULL]: Declare strtoull.
59407 Required for some AIX systems. Reported by Christian Krackowizer.
59408 [TESTING] (main): New function.
59410 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
59411 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
59414 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
59417 * lib/strverscmp.c (ISDIGIT): Define.
59418 (strverscmp): Use ISDIGIT, not isdigit.
59420 2000-01-19 Jim Meyering <meyering@lucent.com>
59422 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
59423 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
59424 defines `struct timespec' in <sys/time.h>
59426 * m4/c-bs-a.m4: Remove uses of changequote altogether.
59427 Thanks to Akim for explaining.
59429 2000-01-17 Paul Eggert <eggert@twinsun.com>
59431 * lib/nanosleep.c (nanosleep):
59432 Don't use SA_INTERRUPT to decide whether to call sigaction, as
59433 POSIX.1 doesn't require SA_INTERRUPT and some systems
59434 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
59435 it's been part of POSIX.1 since day 1 (in 1988).
59437 2000-01-17 Jim Meyering <meyering@lucent.com>
59439 * lib/interlock: Remove unused file. Reported by François Pinard.
59441 2000-01-16 Paul Eggert <eggert@twinsun.com>
59443 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
59444 alert, backslash, formfeed, and vertical tab unnecessarily in
59445 shell quoting style.
59447 2000-01-16 Jim Meyering <meyering@lucent.com>
59449 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
59450 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
59451 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
59452 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
59454 2000-01-16 Jim Meyering <meyering@lucent.com>
59456 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
59457 because the latter didn't work.
59459 2000-01-15 Jim Meyering <meyering@lucent.com>
59461 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
59462 (AC_REPLACE_FUNCS): Add memcpy and memset.
59463 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
59465 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
59467 2000-01-12 Jim Meyering <meyering@lucent.com>
59469 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
59470 (jm_PREREQ): Use it.
59471 (jm_PREREQ_READUTMP): New macro.
59472 (jm_PREREQ): Use it.
59474 2000-01-11 Paul Eggert <eggert@twinsun.com>
59476 Quote multibyte characters correctly.
59477 * m4/c-bs-a.m4: New file.
59478 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
59479 (jm_PREREQ): Use it.
59481 2000-01-11 Paul Eggert <eggert@twinsun.com>
59483 * m4/uintmax_t.m4: Port to autoconf 2.13.
59485 2000-01-08 Jim Meyering <meyering@ascend.com>
59487 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
59488 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
59490 2000-01-04 Jim Meyering <meyering@ascend.com>
59492 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
59493 jm_STRUCT_DIRENT_D_TYPE.
59494 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
59495 jm_STRUCT_DIRENT_D_INO.
59496 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
59498 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
59500 * m4/utime.m4: Likewise.
59502 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
59503 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
59505 2000-01-03 Paul Eggert <eggert@twinsun.com>
59507 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
59508 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
59510 2000-01-02 Jim Meyering <meyering@ascend.com>
59512 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
59513 remember if this is necessary.
59515 1999-12-26 Jim Meyering <meyering@ascend.com>
59517 * m4/jm-macros.m4: Use it here.
59518 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
59520 1999-12-23 Jim Meyering <meyering@ascend.com>
59522 * m4/jm-macros.m4: Check for clock_gettime (moved from
59523 fileutils/configure.in)
59524 Check for gettimeofday.
59526 1999-12-20 Jim Meyering <meyering@ascend.com>
59528 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
59529 autoconf-2.14a-1999-12-20.
59531 1999-12-19 Jim Meyering <meyering@ascend.com>
59533 * m4/lstat-slash.m4: New file.
59534 * m4/jm-macros.m4: Use the new macro:
59535 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59537 1999-12-07 Jim Meyering <meyering@ascend.com>
59539 * m4/perl.m4: Require that File::Compare be available, too.
59540 Too many systems seem to lack it.
59542 * m4/strftime.m4: Add checks for most of the cpp macros tested in
59543 GNU's strftime.c. Prompted by a patch from Paul Eggert.
59545 1999-11-18 Paul Eggert <eggert@twinsun.com>
59547 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
59548 problem with the QNX 4.25 shell, which doesn't propagate exit
59549 status of failed commands inside shell assignments.
59551 1999-11-17 Jim Meyering <meyering@ascend.com>
59553 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
59555 1999-11-07 Jim Meyering <meyering@ascend.com>
59557 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
59559 1999-11-06 Jim Meyering <meyering@ascend.com>
59561 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
59562 * m4/jm-macros.m4 (jm_MACROS): Use it here.
59564 1999-11-05 Jim Meyering <meyering@ascend.com>
59566 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
59567 configure.in of textutils, fileutils, and sh-utils into this one
59568 (shared between those packages) file.
59569 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
59570 AC_STRUCT_ST_BLKSIZE.
59572 1999-11-03 Jim Meyering <meyering@ascend.com>
59574 * m4/ssize_t.m4: Remove file. No longer needed since the new version
59575 of AC_CHECK_TYPE checks includes unistd.h.
59576 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
59577 Suggestion from Akim Demaille.
59579 1999-10-30 Jim Meyering <meyering@ascend.com>
59581 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
59583 * m4/ls-mntd-fs.m4: Likewise.
59584 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
59585 * m4/jm-winsz1.m4: Likewise.
59587 * m4/const.m4: Remove file, since the fix made it into the experimental
59588 version of autoconf.
59589 * m4/mktime.m4: Likewise.
59591 * m4/check-type.m4: Remove file, now that the latest version of
59592 AC_CHECK_TYPE takes a third arg to specify additional #includes.
59594 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
59595 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
59598 1999-10-04 Jim Meyering <meyering@ascend.com>
59600 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
59602 1999-09-22 Paul Eggert <eggert@twinsun.com>
59604 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
59605 2.95.1 bug with HP-UX 10.20.
59607 1999-09-17 Jim Meyering <meyering@ascend.com>
59609 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
59610 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
59611 due to missing strdup (against sh-utils-2.0).
59613 1999-08-29 Jim Meyering <meyering@ascend.com>
59615 * m4/jm-macros.m4: Require jm_BISON.
59616 * m4/bison.m4: New file.
59618 1999-08-17 Paul Eggert <eggert@twinsun.com>
59620 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
59621 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
59623 1999-08-05 Jim Meyering <meyering@ascend.com>
59625 * m4/getline.m4: Rename test file from conftestdata to conftest.data
59626 to avoid conflicts with `conftest' on 8+3 filesystems.
59627 Suggestion from Eli Zaretskii.
59629 1999-08-04 Jim Meyering <meyering@ascend.com>
59631 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
59632 fileutils and sh-utils (textutils's getline test was inadequate).
59633 (AM_FUNC_GETLINE): Run this test.
59634 (AC_CHECK_FUNCS): Check for getdelim.
59635 Reported by Bob Proulx.
59637 1999-08-02 Jim Meyering <meyering@ascend.com>
59639 * m4/jm-macros.m4: Add a comment.
59641 1999-08-01 Paul Eggert <eggert@twinsun.com>
59643 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
59644 <inttypes.h> defines strtoumax as a macro (and not as a
59647 1999-08-01 Paul Eggert <eggert@twinsun.com>
59649 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
59650 that we can shift, multiply and divide unsigned long long
59651 values; Ultrix cc can't do it.
59653 1999-08-01 Paul Eggert <eggert@twinsun.com>
59655 * m4/mktime.m4: New file, which is a preview of what should appear
59656 in the next public autoconf release.
59658 1999-08-01 Paul Eggert <eggert@twinsun.com>
59660 * m4/lfs.m4: Remove this file.
59661 * m4/largefile.m4: New file. It contains the old contents of
59662 lfs.m4, except that all names with prefix AC_LFS have been
59663 changed to use the prefix AC_SYS_LARGEFILE instead, to be
59664 compatible with future autoconf versions. Also, some minor m4
59665 quoting problems have been fixed.
59667 1999-08-01 Paul Eggert <eggert@twinsun.com>
59669 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
59670 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
59671 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
59672 and simplify the shell code.
59674 1999-08-01 Jim Meyering <meyering@ascend.com>
59676 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
59679 1999-07-20 Jim Meyering <meyering@ascend.com>
59681 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
59683 1999-07-15 Jim Meyering <meyering@ascend.com>
59685 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
59687 1999-05-22 Jim Meyering <meyering@ascend.com>
59689 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
59691 1999-05-20 Jim Meyering <meyering@ascend.com>
59693 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
59694 Add a colon after each `then' in case $4 is empty.
59696 1999-05-16 Jim Meyering <meyering@ascend.com>
59698 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
59700 1999-05-10 Jim Meyering <meyering@ascend.com>
59702 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
59704 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
59707 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
59709 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
59711 1999-05-04 Paul Eggert <eggert@twinsun.com>
59713 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
59714 not CPPFLAGS, so that linking works correctly in IRIX.
59716 1999-04-30 Paul Eggert <eggert@twinsun.com>
59718 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
59720 1999-04-20 Paul Eggert <eggert@twinsun.com>
59722 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
59723 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
59724 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
59725 jm_AC_TYPE_UNSIGNED_LONG_LONG.
59726 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
59728 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
59730 1999-04-20 Jim Meyering <meyering@ascend.com>
59732 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
59733 AC_REPLACE xstroull if necessary. From Paul Eggert.
59734 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
59736 1999-04-18 Jim Meyering <meyering@ascend.com>
59738 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
59739 * m4/jm-macros.m4: Use it.
59741 1999-04-06 Jim Meyering <meyering@ascend.com>
59743 * m4/strftime.m4: Remove test for %f.
59745 1999-03-29 Jim Meyering <meyering@ascend.com>
59747 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
59748 superset of the AC_TYPE_* checks in the textutils, fileutils,
59749 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
59752 1999-03-28 Jim Meyering <meyering@ascend.com>
59754 * m4/jm-macros.m4: Define GNU_PACKAGE here.
59755 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
59756 replaced e.g., in the *.sh files of the sh-utils.
59758 1999-03-20 Jim Meyering <meyering@ascend.com>
59760 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
59761 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
59762 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
59764 1999-03-19 Jim Meyering <meyering@ascend.com>
59766 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
59768 1999-03-12 Jim Meyering <meyering@ascend.com>
59770 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
59772 1999-03-07 Jim Meyering <meyering@ascend.com>
59774 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
59777 1999-02-17 Jim Meyering <meyering@ascend.com>
59779 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
59780 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
59782 1999-02-07 Jim Meyering <meyering@ascend.com>
59784 * m4/group-member.m4: New file -- extracted from sh-utils'
59787 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
59788 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
59790 1999-02-06 Jim Meyering <meyering@ascend.com>
59792 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
59793 * m4/fnmatch.m4: Likewise.
59794 * m4/getgroups.m4: Likewise.
59795 * m4/lstat.m4: Likewise.
59796 * m4/malloc.m4: Likewise.
59797 * m4/putenv.m4: Likewise.
59798 * m4/realloc.m4: Likewise.
59799 * m4/regex.m4: Likewise.
59800 * m4/stat.m4: Likewise.
59801 * m4/strftime.m4: Likewise.
59802 Suggestion from Alain Magloire.
59804 * m4/chown.m4: Use `.$ac_objext', not `.o'.
59805 * m4/fnmatch.m4: Likewise.
59806 * m4/getgroups.m4: Likewise.
59807 * m4/getline.m4: Likewise.
59808 * m4/lstat.m4: Likewise.
59809 * m4/malloc.m4: Likewise.
59810 * m4/memcmp.m4: Likewise.
59811 * m4/putenv.m4: Likewise.
59812 * m4/realloc.m4: Likewise.
59813 * m4/regex.m4: Likewise.
59814 * m4/stat.m4: Likewise.
59815 * m4/strftime.m4: Likewise.
59816 Suggestion from Alain Magloire.
59818 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
59821 * m4/regex.m4: Add a run-time Test for proper operation of
59822 re_compile_pattern.
59824 1999-01-31 Jim Meyering <meyering@ascend.com>
59826 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
59828 1999-01-30 Jim Meyering <meyering@ascend.com>
59830 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
59832 * m4/jm-mktime.m4: Make this a wrapper around the official
59833 AM_FUNC_MKTIME rather than my private copy, now that the official one
59835 * m4/mktime.m4: Remove file.
59837 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
59838 * m4/uptime.m4: Likewise.
59839 * m4/uintmax_t.m4: Likewise.
59841 1999-01-28 Jim Meyering <meyering@ascend.com>
59843 * m4/jm-macros.m4: Use jm_AFS.
59844 * m4/afs.m4: New file (from fileutils' configure.in).
59846 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
59847 * m4/chown.m4: Likewise.
59848 * m4/d-ino.m4: Likewise.
59849 * m4/d-type.m4: Likewise.
59850 * m4/fnmatch.m4: Likewise.
59851 * m4/getgroups.m4: Likewise.
59852 * m4/gettext.m4: Likewise.
59853 * m4/jm-mktime.m4: Likewise.
59854 * m4/jm-winsz2.m4: Likewise.
59855 * m4/lcmessage.m4: Likewise.
59856 * m4/ls-mntd-fs.m4: Likewise.
59857 * m4/malloc.m4: Likewise.
59858 * m4/memcmp.m4: Likewise.
59859 * m4/putenv.m4: Likewise.
59860 * m4/realloc.m4: Likewise.
59861 * m4/st_mtim.m4: Likewise.
59862 * m4/strftime.m4: Likewise.
59864 1999-01-16 Jim Meyering <meyering@ascend.com>
59866 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
59867 (ARGMATCH_DIE_DECL): Define.
59869 1999-01-12 Jim Meyering <meyering@ascend.com>
59871 * m4/Makefile.am.in: Rewrite to avoid using fmt.
59872 Reported by Lars Hecking.
59874 1999-01-10 Jim Meyering <meyering@ascend.com>
59876 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
59878 * m4/inttypes_h.m4: Likewise.
59879 * m4/lstat.m4: Likewise.
59880 * m4/malloc.m4: Likewise.
59881 * m4/readdir.m4: Likewise.
59882 * m4/realloc.m4: Likewise.
59883 * m4/st_dm_mode.m4: Likewise.
59884 * m4/stat.m4: Likewise.
59885 * m4/utimbuf.m4: Likewise.
59886 * m4/utimes.m4: Likewise.
59888 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
59889 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
59890 comments in config.h.in are meaningful.
59892 * m4/jm-macros.m4: Require autoconf-2.13 here.
59894 * m4/regex.m4: By default, don't use the included regex.c on systems
59895 with glibc 2. Suggestion from Uli Drepper.
59897 1999-01-02 Jim Meyering <meyering@ascend.com>
59899 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
59901 1998-12-18 Jim Meyering <meyering@ascend.com>
59903 * m4/Makefile.am.in (Makefile.am): Simplify rule.
59904 Based on a suggestion from Lars Hecking.
59906 1998-11-16 Paul Eggert <eggert@twinsun.com>
59908 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
59910 1998-11-16 Jim Meyering <meyering@ascend.com>
59912 * m4/lfs.m4: Double-quote the `uname...` expression.
59914 1998-11-14 Jim Meyering <meyering@ascend.com>
59916 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
59917 * m4/stat.m4: Likewise.
59919 1998-11-03 Jim Meyering <meyering@ascend.com>
59921 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
59922 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
59924 1998-10-18 Jim Meyering <meyering@ascend.com>
59926 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
59928 1998-10-17 Jim Meyering <meyering@ascend.com>
59930 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
59931 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
59932 calls for those previously hard-coded headers. Instead, take a new
59934 (jm_CHECK_DECLARATIONS): Reflect interface change.
59935 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
59936 (jm_CHECK_DECL_LOCALTIME_R): New macro.
59938 * m4/mktime.m4: Test for spring-forward gap before long-running test.
59940 1998-10-14 Jim Meyering <meyering@ascend.com>
59942 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
59943 instead of "TZ=America/Vancouver". From Paul Eggert.
59945 1998-10-11 Jim Meyering <meyering@ascend.com>
59947 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
59948 This adds a test for a recently added compatibility fix for mktime.c.
59949 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
59951 1998-09-27 Jim Meyering <meyering@ascend.com>
59953 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
59955 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
59956 ../configure.in, including a change from Gordon Matzigkeit to allow
59957 cross-compiling for the Hurd.
59959 * m4/glibc.m4: New file/macro to test for the GNU C Library
59960 versions 1 and 2. From Gordon Matzigkeit.
59963 1998-09-21 Jim Meyering <meyering@ascend.com>
59965 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
59967 1998-08-18 Paul Eggert <eggert@twinsun.com>
59969 Port nanosecond-resolution times to UnixWare 2.1.2 and
59970 pedantic Solaris 2.6.
59972 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
59974 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
59975 Generate name of ns member, instead of just 1 or undef.
59976 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
59978 1998-08-15 Jim Meyering <meyering@ascend.com>
59980 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
59981 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
59982 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
59983 instead of jm_TYPE_SSIZE_T.
59985 1998-08-12 Jim Meyering <meyering@ascend.com>
59987 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
59989 1998-08-02 Jim Meyering <meyering@ascend.com>
59991 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
59992 in acconfig.h manually.
59994 1998-07-31 Paul Eggert <eggert@twinsun.com>
59996 * m4/st_mtim.m4: New file.
59998 1998-07-28 Jim Meyering <meyering@ascend.com>
60000 * m4/utimes.m4: Undef stat.
60002 1998-07-25 Jim Meyering <meyering@ascend.com>
60004 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
60005 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
60007 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
60009 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
60010 uid and gid actually remain unchanged.
60012 1998-07-07 Jim Meyering <meyering@ascend.com>
60014 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
60016 1998-07-04 Jim Meyering <meyering@ascend.com>
60018 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
60019 to prove that this macro can be used in packages without regex.c.
60021 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
60023 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
60026 1998-07-03 Jim Meyering <meyering@ascend.com>
60028 * m4/gettext.m4: Add -lintl if it's found to be necessary.
60030 * m4/gettext.m4: New file -- from gettext-0.10.35.
60031 * m4/lcmessage.m4: Likewise.
60032 * m4/progtest.m4: Likewise.
60034 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
60035 * m4/jm-macros.m4: Require the new macro.
60037 1998-06-29 Jim Meyering <meyering@ascend.com>
60039 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
60040 for the definition of NGROUPS (used in a system header included
60043 1998-06-28 Jim Meyering <meyering@ascend.com>
60045 * m4/ls-mntd-fs.m4: New file.
60046 * m4/fstypename.m4: New file.
60048 * m4/jm-macros.m4: Require the new macro.
60049 * m4/jm-glibc-io.m4: New file.
60051 1998-05-19 Jim Meyering <meyering@ascend.com>
60053 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
60054 * m4/lchown.m4: New file.
60056 * m4/Makefile.am.in: New file.
60057 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
60059 1998-05-14 Jim Meyering <meyering@ascend.com>
60061 * m4/Makefile.am (EXTRA_DIST): Add them.
60062 * m4/jm-macros.m4: New file.
60063 * m4/utimbuf.m4: New file.
60065 1998-05-12 Jim Meyering <meyering@ascend.com>
60067 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
60069 1998-05-11 Jim Meyering <meyering@ascend.com>
60071 * m4/isc-posix.m4: New file.
60073 1998-05-10 Jim Meyering <meyering@ascend.com>
60075 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
60077 1998-05-09 Jim Meyering <meyering@ascend.com>
60079 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
60080 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
60083 * m4/ssize_t.m4: New file.
60084 * m4/mktime.m4: Remove file -- the new automake has this now.
60086 1998-04-26 Jim Meyering <meyering@ascend.com>
60088 * m4/assert.m4: New file.
60089 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
60091 1998-04-05 Jim Meyering <meyering@ascend.com>
60093 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
60094 (jm_PREREQ): Use it here.
60096 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
60098 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
60101 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
60103 * m4/prereq.m4: New file.
60104 * m4/error.m4: New file.
60105 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
60107 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
60109 * m4/getline.m4: Don't set am_cv_func_working_getline before the
60110 cache-check for the same variable -- that defeated the purpose of
60111 the test; the test program was never run. This was a problem only
60112 on systems with losing getline functions -- HP-UX 10.20 is one.
60113 Reported by Bjorn Helgaas.
60115 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
60117 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
60119 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
60121 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
60123 * m4/const.m4: New file. Use an initializer in this declaration
60124 typedef int charset[2]; const charset x;
60125 Reported by Bob Glickstein.
60127 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
60129 * m4/chown.m4: Fix reversed types on -1 args to chown.
60132 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
60134 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
60135 Add lseek and memchr.
60137 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
60138 T.E.Dickey <dickey@clark.net> said that some older preprocessors
60139 have a 20-character limit on names.
60141 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
60143 * m4/inttypes_h.m4: New file.
60144 * m4/uintmax_t.m4: New file.
60145 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
60154 Copyright (C) 1997-2009 Free Software Foundation, Inc.
60156 Copying and distribution of this file, with or without
60157 modification, are permitted provided the copyright notice
60158 and this notice are preserved.